forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(subcomponents): Make all subcomponents avaliable from base compon…
…ent (patternfly#916) This allows all subcomponents to be available from the pf-react packages.
- Loading branch information
1 parent
ec56ab9
commit 4c4989b
Showing
19 changed files
with
194 additions
and
9 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/patternfly-3/patternfly-react/src/components/Button/Button.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import { Button } from 'react-bootstrap'; | ||
import ButtonGroup from './ButtonGroup'; | ||
import DropdownButton from './DropdownButton'; | ||
import SplitButton from './SplitButton'; | ||
|
||
Button.Dropdown = DropdownButton; | ||
Button.Group = ButtonGroup; | ||
Button.Split = SplitButton; | ||
|
||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/patternfly-3/patternfly-react/src/components/Chart/Chart.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { default as AreaChart } from './AreaChart'; | ||
import { default as BarChart } from './BarChart'; | ||
import { BulletChart } from './BulletChart/index'; | ||
import { default as DonutChart } from './DonutChart'; | ||
import { default as GroupedBarChart } from './GroupedBarChart'; | ||
import { default as LineChart } from './LineChart'; | ||
import { default as PieChart } from './PieChart'; | ||
import { default as SingleAreaChart } from './SingleAreaChart'; | ||
import { default as SingleLineChart } from './SingleLineChart'; | ||
import { default as SparklineChart } from './SparklineChart'; | ||
import { default as StackedBarChart } from './StackedBarChart'; | ||
|
||
const Chart = { | ||
AreaChart, | ||
BarChart, | ||
BulletChart, | ||
DonutChart, | ||
GroupedBarChart, | ||
LineChart, | ||
PieChart, | ||
SingleAreaChart, | ||
SingleLineChart, | ||
SparklineChart, | ||
StackedBarChart | ||
}; | ||
|
||
export default Chart; |
3 changes: 3 additions & 0 deletions
3
packages/patternfly-3/patternfly-react/src/components/Dropdown/Dropdown.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { default as NavDropdown } from './NavDropdown'; | ||
import { Dropdown } from 'react-bootstrap'; | ||
|
||
Dropdown.NavDropdown = NavDropdown; | ||
|
||
export default Dropdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 14 additions & 3 deletions
17
packages/patternfly-3/patternfly-react/src/components/Label/DisposableLabel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/patternfly-3/patternfly-react/src/components/Label/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import Label from './Label'; | ||
import DisposableLabel from './DisposableLabel'; | ||
import RemoveButton from './RemoveButton'; | ||
import CompoundLabel from './CompoundLabel'; | ||
|
||
export { default as Label } from './Label'; | ||
export { DisposableLabel, RemoveButton, CompoundLabel }; | ||
export { Label, DisposableLabel, RemoveButton, CompoundLabel }; |
3 changes: 3 additions & 0 deletions
3
packages/patternfly-3/patternfly-react/src/components/ListGroup/ListGroup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { ListGroup } from 'react-bootstrap'; | ||
import { default as ListGroupItem } from './ListGroupItem'; | ||
|
||
ListGroup.ListGroupItem = ListGroupItem; | ||
|
||
export default ListGroup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/patternfly-3/patternfly-react/src/components/Nav/Nav.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import { Nav } from 'react-bootstrap'; | ||
import { default as NavItem } from './NavItem'; | ||
|
||
Nav.Item = NavItem; | ||
|
||
export default Nav; |
26 changes: 26 additions & 0 deletions
26
packages/patternfly-3/patternfly-react/src/components/Pagination/Pagination.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import paginate from './paginate'; | ||
import { PAGINATION_VIEW, PAGINATION_VIEW_TYPES } from './PaginationConstants'; | ||
import Pager from './Pager'; | ||
import Paginator from './Paginator'; | ||
import PaginationRow from './PaginationRow'; | ||
import PaginationRowAmountOfPages from './PaginationRowAmountOfPages'; | ||
import PaginationRowArrowIcon from './PaginationRowArrowIcon'; | ||
import PaginationRowBack from './PaginationRowBack'; | ||
import PaginationRowButtonGroup from './PaginationRowButtonGroup'; | ||
import PaginationRowForward from './PaginationRowForward'; | ||
import PaginationRowItems from './PaginationRowItems'; | ||
|
||
export const Pagination = { | ||
paginate, | ||
Pager, | ||
Paginator, | ||
PAGINATION_VIEW, | ||
PAGINATION_VIEW_TYPES, | ||
Row: PaginationRow, | ||
RowAmountOfPages: PaginationRowAmountOfPages, | ||
RowArrowIcon: PaginationRowArrowIcon, | ||
RowBack: PaginationRowBack, | ||
RowButtonGroup: PaginationRowButtonGroup, | ||
RowForward: PaginationRowForward, | ||
RowItems: PaginationRowItems | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/patternfly-3/patternfly-react/src/components/Tabs/Tabs.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
import { Tabs } from 'react-bootstrap'; | ||
import { default as TabContainer } from './TabContainer'; | ||
import { default as TabContent } from './TabContent'; | ||
import { default as TabPane } from './TabPane'; | ||
import { default as Tab } from './Tab'; | ||
|
||
Tabs.Tab = Tab; | ||
Tabs.TabContainer = TabContainer; | ||
Tabs.TabContent = TabContent; | ||
Tabs.TabPane = TabPane; | ||
|
||
export default Tabs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.