-
Notifications
You must be signed in to change notification settings - Fork 30
CONSOLE-3305: add DetailsPage and associated components #14
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
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
114229d
horizontal tabs
vidyanambiar 7001104
Horizontal navigation with routing
vidyanambiar f1876f9
Page header
vidyanambiar a09d43a
Option to have action menu icon after text
vidyanambiar cbd1a49
Option to add icon before of after page heading title
vidyanambiar 31098b5
detailspage & storybook
vidyanambiar 71aa44b
update stories based on changes to header component
vidyanambiar 9339af9
Fix test performance
vojtechszocs 535f6e1
Add Resource Summary
kdoberst 0c82ee9
Add action buttons to list view
kdoberst 0710c90
Use API Extractor on distributable packages
vojtechszocs cfb2f84
Pull AnyObject and EitherNotBoth helpers from monorepo common
florkbr 59fd2c1
Revert "Merge pull request #196 from florkbr/update-lib-utils-to-use-…
florkbr 0b8b5f1
Support CommonJS build for all dist packages
vojtechszocs a4a701b
Reorganize files to match new repo
rhamilto 2afcb15
Refactor for docs
rhamilto 8b53cf2
Add beta to DetailsPage.md
rhamilto File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
21 changes: 21 additions & 0 deletions
21
.../patternfly-docs/content/extensions/extended-components/examples/ActionButtonsExample.tsx
This file contains hidden or 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,21 @@ | ||
| import React from 'react'; | ||
| import { ActionButtons } from '@patternfly/react-component-groups'; | ||
|
|
||
| export const BasicExample: React.FunctionComponent = () => ( | ||
| <ActionButtons | ||
| actionButtons={[ | ||
| { | ||
| children: 'Primary action', | ||
| // eslint-disable-next-line no-console | ||
| onClick: () => {console.log('Primary action clicked')}, | ||
| tooltip: 'Click me!', | ||
| }, | ||
| { | ||
| children: 'Secondary action', | ||
| // eslint-disable-next-line no-console | ||
| onClick: () => {console.log('Secondary action clicked')}, | ||
| variant: 'secondary', | ||
| }, | ||
| ]} | ||
| /> | ||
| ); |
27 changes: 27 additions & 0 deletions
27
...ule/patternfly-docs/content/extensions/extended-components/examples/ActionMenuExample.tsx
This file contains hidden or 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 React from 'react'; | ||
| import { ActionMenu } from '@patternfly/react-component-groups'; | ||
|
|
||
| export const BasicExample: React.FC = () => ( | ||
| <ActionMenu | ||
| actions={[ | ||
| { | ||
| children: 'Edit resource', | ||
| itemID: 'action-menu-example-1', | ||
| cta: { | ||
| // eslint-disable-next-line no-console | ||
| callback: () => console.log('Edit resource clicked'), | ||
| }, | ||
| }, | ||
| { | ||
| children: 'Delete resource', | ||
| itemID: 'action-menu-example-2', | ||
| cta: { | ||
| // eslint-disable-next-line no-console | ||
| callback: () => console.log('Delete resource clicked'), | ||
| }, | ||
| isDisabled: true, | ||
| }, | ||
| ]} | ||
| id='action-menu-example' | ||
| /> | ||
| ); |
55 changes: 55 additions & 0 deletions
55
...ternfly-docs/content/extensions/extended-components/examples/ActionMenuGroupedExample.tsx
This file contains hidden or 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,55 @@ | ||
| import React from 'react'; | ||
| import { ActionMenu } from '@patternfly/react-component-groups'; | ||
|
|
||
| export const BasicExample: React.FunctionComponent = () => ( | ||
| <ActionMenu | ||
| groupedActions={[ | ||
| { | ||
| groupId: 'group1', | ||
| groupActions: [ | ||
| { | ||
| children: 'Edit resource', | ||
| itemID: 'action-menu-grouped-group-1-example-1', | ||
| cta: { | ||
| // eslint-disable-next-line no-console | ||
| callback: () => console.log('Edit resource clicked'), | ||
| }, | ||
| }, | ||
| { | ||
| children: 'Delete resource', | ||
| itemID: 'action-menu-grouped-group-1-example-2', | ||
| cta: { | ||
| // eslint-disable-next-line no-console | ||
| callback: () => console.log('Delete resource clicked'), | ||
| }, | ||
| isDisabled: true, | ||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| groupId: 'group2', | ||
| label: 'Links', | ||
| groupActions: [ | ||
| { | ||
| children: 'GitHub', | ||
| itemID: 'action-menu-grouped-group-2-example-1', | ||
| cta: { | ||
| href: 'https://github.com/', | ||
| external: true, | ||
| }, | ||
| }, | ||
| { | ||
| children: 'Link', | ||
| itemID: 'action-menu-grouped-group-2-example-2', | ||
| cta: { | ||
| href: '/#', | ||
| }, | ||
| description: 'Description of link', | ||
| }, | ||
| ], | ||
| }, | ||
| ]} | ||
| displayLabelBeforeIcon | ||
| id='action-menu-grouped-example' | ||
| /> | ||
| ); |
14 changes: 14 additions & 0 deletions
14
...le/patternfly-docs/content/extensions/extended-components/examples/BreadcrumbsExample.tsx
This file contains hidden or 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,14 @@ | ||
| import React from 'react'; | ||
| import { BrowserRouter as Router } from 'react-router-dom'; | ||
| import { Breadcrumbs } from '@patternfly/react-component-groups'; | ||
|
|
||
| export const BasicExample: React.FunctionComponent = () => ( | ||
| <Router> | ||
| <Breadcrumbs | ||
| breadcrumbs={[ | ||
| { children: 'Resources', to: '/resources' }, | ||
| { children: 'Resource details', to: '/resources/example-resource' }, | ||
| ]} | ||
| /> | ||
| </Router> | ||
| ); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.