-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from LuisValgoi/issue-57
[ISSUE-57] Base Version of Shell Buttons
- Loading branch information
1 parent
b648391
commit fb9e647
Showing
6 changed files
with
85 additions
and
16 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
packages/ui5-webcomponents-react-seed/src/components/Popover/Info/PopoverInfo.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,20 @@ | ||
import React from 'react'; | ||
|
||
import { Popover } from '@ui5/webcomponents-react/lib/Popover'; | ||
import { PlacementType } from '@ui5/webcomponents-react/lib/PlacementType'; | ||
import { FlexBoxDirection, Title } from '@ui5/webcomponents-react'; | ||
import { FlexBox } from '@ui5/webcomponents-react/lib/FlexBox'; | ||
import { spacing } from '@ui5/webcomponents-react-base'; | ||
|
||
export default function PopoverInfo({ popoverRef, placementType, title, children }) { | ||
return ( | ||
<Popover ref={popoverRef} placementType={placementType && PlacementType.Bottom}> | ||
<FlexBox direction={FlexBoxDirection.Column}> | ||
<div className="popover-header"> | ||
<Title style={spacing.sapUiContentPadding}>{title}</Title> | ||
</div> | ||
<div className="popover-content">{children}</div> | ||
</FlexBox> | ||
</Popover> | ||
); | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/ui5-webcomponents-react-seed/src/components/Popover/List/PopoverListItems.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,19 @@ | ||
import { List, StandardListItem } from '@ui5/webcomponents-react'; | ||
import React from 'react'; | ||
import PopoverInfo from '../Info/PopoverInfo'; | ||
|
||
export default function PopoverListItems({ popoverRef, title, items }) { | ||
return ( | ||
<PopoverInfo popoverRef={popoverRef} title={title}> | ||
<List> | ||
{items.map((item, index) => { | ||
return ( | ||
<StandardListItem key={index} selected={item.selected} info={item.info} icon={item.icon} description={item.description} onClick={item.onClick}> | ||
{item.children} | ||
</StandardListItem> | ||
); | ||
})} | ||
</List> | ||
</PopoverInfo> | ||
); | ||
} |
44 changes: 35 additions & 9 deletions
44
packages/ui5-webcomponents-react-seed/src/components/Shell/Shell.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
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