Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
tlabaj committed Nov 1, 2023
1 parent 3bb3f11 commit d639fb7
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/react-core/src/demos/DashboardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const DashboardBreadcrumb = (
);

const PageTemplateTitle = (
<PageSection variant="light">
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">This is a full page demo.</Text>
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/demos/examples/Nav/NavDefault.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -72,7 +71,7 @@ export const NavDefault: React.FunctionComponent = () => {
breadcrumb={DashboardBreadcrumb}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/demos/examples/Nav/NavExpandable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -98,7 +97,7 @@ export const NavExpandableDemo: React.FunctionComponent = () => {
breadcrumb={DashboardBreadcrumb}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
7 changes: 3 additions & 4 deletions packages/react-core/src/demos/examples/Nav/NavFlyout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
PageToggleButton,
Expand Down Expand Up @@ -270,9 +269,9 @@ export const NavFlyout: React.FunctionComponent = () => {
skipToContent={PageSkipToContent}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.darker}>Section with darker background</PageSection>
<PageSection variant={PageSectionVariants.dark}>Section with dark background</PageSection>
<PageSection variant={PageSectionVariants.light}>Section with light background</PageSection>
<PageSection>Section 1</PageSection>
<PageSection>Section 2</PageSection>
<PageSection>Section 3</PageSection>
</Page>
);
};
9 changes: 4 additions & 5 deletions packages/react-core/src/demos/examples/Nav/NavGrouped.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
NavItem,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -80,7 +79,7 @@ export const NavGrouped: React.FunctionComponent = () => {
skipToContent={PageSkipToContent}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand All @@ -89,9 +88,9 @@ export const NavGrouped: React.FunctionComponent = () => {
</Text>
</TextContent>
</PageSection>
<PageSection variant={PageSectionVariants.light}>Light</PageSection>
<PageSection variant={PageSectionVariants.dark}>Dark</PageSection>
<PageSection variant={PageSectionVariants.darker}>Darker</PageSection>
<PageSection>Section 1</PageSection>
<PageSection>Section 2</PageSection>
<PageSection>Section 3</PageSection>
<PageSection>Content</PageSection>
</Page>
</>
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/demos/examples/Nav/NavHorizontal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
SkipToContent,
TextContent,
Text,
Expand Down Expand Up @@ -211,7 +210,7 @@ export const NavHorizontal: React.FunctionComponent = () => {
return (
<React.Fragment>
<Page header={Header} skipToContent={PageSkipToContent} breadcrumb={DashboardBreadcrumb} mainContainerId={pageId}>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSectionTypes,
PageToggleButton,
SkipToContent,
Expand Down Expand Up @@ -271,7 +270,7 @@ export const NavHorizontalWithSubnav: React.FunctionComponent = () => {
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited>
{DashboardBreadcrumb}
</PageSection>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/demos/examples/Nav/NavManual.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
PageToggleButton,
Expand Down Expand Up @@ -247,7 +246,7 @@ export const NavManual: React.FunctionComponent = () => {
skipToContent={PageSkipToContent}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
3 changes: 1 addition & 2 deletions packages/react-core/src/demos/examples/Nav/NavWithSubnav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Page,
PageSection,
PageSectionTypes,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -116,7 +115,7 @@ export const NavWithSubnav: React.FunctionComponent = () => {
<PageSection type={PageSectionTypes.breadcrumb} isWidthLimited>
{DashboardBreadcrumb}
</PageSection>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -70,7 +69,7 @@ export const NavLight: React.FunctionComponent = () => {
skipToContent={PageSkipToContent}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
NavList,
Page,
PageSection,
PageSectionVariants,
SkipToContent,
TextContent,
Text
Expand Down Expand Up @@ -66,7 +65,7 @@ export const NavTertiary: React.FunctionComponent = () => {
skipToContent={PageSkipToContent}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
SelectList,
SelectOption,
PageSection,
PageSectionVariants,
Toolbar,
ToolbarContent,
ToolbarGroup,
Expand Down Expand Up @@ -483,7 +482,7 @@ export const ConsoleLogViewerToolbar: React.FC = () => {

return (
<DashboardWrapper sidebarNavOpen={!mobileView} onPageResize={onPageResize}>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<Toolbar id="log-viewer-toolbar" inset={{ default: 'insetNone' }}>
<ToolbarContent>{items}</ToolbarContent>
</Toolbar>
Expand Down
4 changes: 2 additions & 2 deletions packages/react-core/src/demos/examples/Wizard/InPage.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import { PageSection, PageSectionTypes, PageSectionVariants, Wizard, WizardStep } from '@patternfly/react-core';
import { PageSection, PageSectionTypes, Wizard, WizardStep } from '@patternfly/react-core';
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';

export const WizardFullPage: React.FunctionComponent = () => (
<React.Fragment>
<DashboardWrapper hasPageTemplateTitle>
<PageSection type={PageSectionTypes.wizard} variant={PageSectionVariants.light}>
<PageSection type={PageSectionTypes.wizard}>
<Wizard>
<WizardStep name="Information" id="wizard-step-1">
<p>Step 1 content</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
Page,
PageSection,
PageSectionTypes,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -159,13 +158,13 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
breadcrumb={PageBreadcrumb}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">A demo of a wizard in a page.</Text>
</TextContent>
</PageSection>
<PageSection type={PageSectionTypes.wizard} variant={PageSectionVariants.light}>
<PageSection type={PageSectionTypes.wizard}>
<Wizard>
<WizardStep body={null} name="Information" id="wizard-step-1">
{createStepContentWithDrawer('Information step')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
Page,
PageSection,
PageSectionTypes,
PageSectionVariants,
PageSidebar,
PageSidebarBody,
SkipToContent,
Expand Down Expand Up @@ -164,13 +163,13 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
breadcrumb={PageBreadcrumb}
mainContainerId={pageId}
>
<PageSection variant={PageSectionVariants.light}>
<PageSection>
<TextContent>
<Text component="h1">Main title</Text>
<Text component="p">A demo of a wizard in a page.</Text>
</TextContent>
</PageSection>
<PageSection type={PageSectionTypes.wizard} variant={PageSectionVariants.light}>
<PageSection type={PageSectionTypes.wizard} ß>
<Wizard>
<WizardStep body={null} name="Information" id="wizard-step-1">
{createStepContentWithDrawer('Information step')}
Expand Down

0 comments on commit d639fb7

Please sign in to comment.