@patternfly/react-core 6.0.0-alpha.25 → 6.0.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/Chip/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/DragDrop/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/Text/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/Tile/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/dynamic/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Dropdown/package.json +1 -1
- package/dist/dynamic/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/dynamic/deprecated/components/PageHeader/package.json +1 -1
- package/dist/dynamic/deprecated/components/Select/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/favorites/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/next/components/Modal/package.json +1 -1
- package/dist/dynamic/next/components/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/esm/components/Drawer/Drawer.d.ts +1 -0
- package/dist/esm/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/esm/components/Drawer/Drawer.js +1 -0
- package/dist/esm/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.d.ts +1 -1
- package/dist/esm/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerContent.js +2 -4
- package/dist/esm/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerHead.d.ts +0 -2
- package/dist/esm/components/Drawer/DrawerHead.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerHead.js +2 -4
- package/dist/esm/components/Drawer/DrawerHead.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +2 -2
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelDescription.d.ts +10 -0
- package/dist/esm/components/Drawer/DrawerPanelDescription.d.ts.map +1 -0
- package/dist/esm/components/Drawer/DrawerPanelDescription.js +10 -0
- package/dist/esm/components/Drawer/DrawerPanelDescription.js.map +1 -0
- package/dist/esm/components/Drawer/DrawerSection.d.ts +1 -1
- package/dist/esm/components/Drawer/DrawerSection.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerSection.js +1 -1
- package/dist/esm/components/Drawer/DrawerSection.js.map +1 -1
- package/dist/esm/components/Drawer/__tests__/DrawerPanelDescription.d.ts +2 -0
- package/dist/esm/components/Drawer/__tests__/DrawerPanelDescription.d.ts.map +1 -0
- package/dist/esm/components/Drawer/__tests__/DrawerPanelDescription.js +21 -0
- package/dist/esm/components/Drawer/__tests__/DrawerPanelDescription.js.map +1 -0
- package/dist/esm/components/Drawer/index.d.ts +1 -0
- package/dist/esm/components/Drawer/index.d.ts.map +1 -1
- package/dist/esm/components/Drawer/index.js +1 -0
- package/dist/esm/components/Drawer/index.js.map +1 -1
- package/dist/js/components/Drawer/Drawer.d.ts +1 -0
- package/dist/js/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/js/components/Drawer/Drawer.js +1 -0
- package/dist/js/components/Drawer/Drawer.js.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.d.ts +1 -1
- package/dist/js/components/Drawer/DrawerContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerContent.js +2 -4
- package/dist/js/components/Drawer/DrawerContent.js.map +1 -1
- package/dist/js/components/Drawer/DrawerHead.d.ts +0 -2
- package/dist/js/components/Drawer/DrawerHead.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerHead.js +2 -4
- package/dist/js/components/Drawer/DrawerHead.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +2 -2
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelDescription.d.ts +10 -0
- package/dist/js/components/Drawer/DrawerPanelDescription.d.ts.map +1 -0
- package/dist/js/components/Drawer/DrawerPanelDescription.js +14 -0
- package/dist/js/components/Drawer/DrawerPanelDescription.js.map +1 -0
- package/dist/js/components/Drawer/DrawerSection.d.ts +1 -1
- package/dist/js/components/Drawer/DrawerSection.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerSection.js +1 -1
- package/dist/js/components/Drawer/DrawerSection.js.map +1 -1
- package/dist/js/components/Drawer/__tests__/DrawerPanelDescription.d.ts +2 -0
- package/dist/js/components/Drawer/__tests__/DrawerPanelDescription.d.ts.map +1 -0
- package/dist/js/components/Drawer/__tests__/DrawerPanelDescription.js +24 -0
- package/dist/js/components/Drawer/__tests__/DrawerPanelDescription.js.map +1 -0
- package/dist/js/components/Drawer/index.d.ts +1 -0
- package/dist/js/components/Drawer/index.d.ts.map +1 -1
- package/dist/js/components/Drawer/index.js +1 -0
- package/dist/js/components/Drawer/index.js.map +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +2 -2
- package/src/components/Drawer/Drawer.tsx +1 -0
- package/src/components/Drawer/DrawerContent.tsx +3 -3
- package/src/components/Drawer/DrawerHead.tsx +3 -9
- package/src/components/Drawer/DrawerPanelContent.tsx +3 -2
- package/src/components/Drawer/DrawerPanelDescription.tsx +23 -0
- package/src/components/Drawer/DrawerSection.tsx +2 -1
- package/src/components/Drawer/__tests__/Drawer.test.tsx +4 -4
- package/src/components/Drawer/__tests__/DrawerPanelContent.test.tsx +31 -0
- package/src/components/Drawer/__tests__/DrawerPanelDescription.tsx +28 -0
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +163 -187
- package/src/components/Drawer/__tests__/__snapshots__/DrawerPanelDescription.tsx.snap +11 -0
- package/src/components/Drawer/examples/Drawer.md +4 -4
- package/src/components/Drawer/examples/DrawerBasic.tsx +5 -1
- package/src/components/Drawer/examples/DrawerBasicInline.tsx +1 -1
- package/src/components/Drawer/examples/DrawerBreakpoint.tsx +1 -1
- package/src/components/Drawer/examples/DrawerFocusTrap.tsx +1 -1
- package/src/components/Drawer/examples/DrawerInlinePanelEnd.tsx +1 -1
- package/src/components/Drawer/examples/DrawerInlinePanelStart.tsx +1 -1
- package/src/components/Drawer/examples/DrawerModifiedContentPadding.tsx +1 -1
- package/src/components/Drawer/examples/DrawerModifiedPanelPadding.tsx +2 -2
- package/src/components/Drawer/examples/DrawerPanelBottom.tsx +1 -1
- package/src/components/Drawer/examples/DrawerPanelEnd.tsx +1 -1
- package/src/components/Drawer/examples/DrawerPanelStart.tsx +1 -1
- package/src/components/Drawer/examples/DrawerResizableAtEnd.tsx +1 -1
- package/src/components/Drawer/examples/DrawerResizableAtStart.tsx +1 -1
- package/src/components/Drawer/examples/DrawerResizableOnBottom.tsx +1 -1
- package/src/components/Drawer/examples/DrawerResizableOnInline.tsx +1 -1
- package/src/components/Drawer/examples/DrawerSecondaryBackground.tsx +6 -7
- package/src/components/Drawer/examples/DrawerStackedContentBodyElements.tsx +3 -4
- package/src/components/Drawer/examples/DrawerStatic.tsx +1 -1
- package/src/components/Drawer/index.ts +1 -0
- package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +2 -2
- package/src/demos/examples/Wizard/InModalWithDrawer.tsx +2 -2
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +2 -2
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +2 -2
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +2 -2
- package/src/deprecated/components/Wizard/__tests__/Wizard.test.tsx +0 -1
- package/src/deprecated/components/Wizard/examples/WizardWithDrawer.tsx +11 -7
|
@@ -46,11 +46,10 @@ export const DrawerSecondaryBackground: React.FunctionComponent = () => {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
const panelContent = (
|
|
49
|
-
|
|
50
|
-
<DrawerPanelContent colorVariant={DrawerColorVariant.default}>
|
|
49
|
+
<DrawerPanelContent colorVariant={panelSecondary ? DrawerColorVariant.secondary : DrawerColorVariant.default}>
|
|
51
50
|
<DrawerHead>
|
|
52
51
|
<span tabIndex={isExpanded ? 0 : -1} ref={drawerRef}>
|
|
53
|
-
|
|
52
|
+
Drawer panel header
|
|
54
53
|
</span>
|
|
55
54
|
<DrawerActions>
|
|
56
55
|
<DrawerCloseButton onClick={onCloseClick} />
|
|
@@ -93,11 +92,11 @@ export const DrawerSecondaryBackground: React.FunctionComponent = () => {
|
|
|
93
92
|
Toggle drawer
|
|
94
93
|
</Button>
|
|
95
94
|
<Drawer isExpanded={isExpanded} onExpand={onExpand}>
|
|
96
|
-
{
|
|
97
|
-
|
|
95
|
+
<DrawerSection colorVariant={sectionSecondary ? DrawerColorVariant.secondary : DrawerColorVariant.default}>
|
|
96
|
+
drawer-section
|
|
97
|
+
</DrawerSection>
|
|
98
98
|
<DrawerContent
|
|
99
|
-
|
|
100
|
-
colorVariant={DrawerColorVariant.default}
|
|
99
|
+
colorVariant={contentSecondary ? DrawerColorVariant.secondary : DrawerColorVariant.default}
|
|
101
100
|
panelContent={panelContent}
|
|
102
101
|
>
|
|
103
102
|
<DrawerContentBody>{drawerContent}</DrawerContentBody>
|
|
@@ -32,15 +32,14 @@ export const DrawerStackedContentBodyElements: React.FunctionComponent = () => {
|
|
|
32
32
|
<DrawerPanelContent>
|
|
33
33
|
<DrawerHead>
|
|
34
34
|
<Title headingLevel="h3" size="2xl" tabIndex={isExpanded ? 0 : -1} ref={drawerRef}>
|
|
35
|
-
|
|
35
|
+
Drawer panel header in a Title
|
|
36
36
|
</Title>
|
|
37
37
|
<DrawerActions>
|
|
38
38
|
<DrawerCloseButton onClick={onCloseClick} />
|
|
39
39
|
</DrawerActions>
|
|
40
|
-
drawer-panel
|
|
41
40
|
</DrawerHead>
|
|
42
|
-
<DrawerPanelBody hasNoPadding>
|
|
43
|
-
<DrawerPanelBody>
|
|
41
|
+
<DrawerPanelBody hasNoPadding>Drawer panel body with no padding</DrawerPanelBody>
|
|
42
|
+
<DrawerPanelBody>Drawer panel body</DrawerPanelBody>
|
|
44
43
|
</DrawerPanelContent>
|
|
45
44
|
);
|
|
46
45
|
|
|
@@ -31,7 +31,7 @@ export const DrawerStatic: React.FunctionComponent = () => {
|
|
|
31
31
|
<DrawerPanelContent>
|
|
32
32
|
<DrawerHead>
|
|
33
33
|
<span tabIndex={isExpanded ? 0 : -1} ref={drawerRef}>
|
|
34
|
-
|
|
34
|
+
Drawer panel header
|
|
35
35
|
</span>
|
|
36
36
|
<DrawerActions>
|
|
37
37
|
<DrawerCloseButton onClick={onCloseClick} />
|
|
@@ -3,6 +3,7 @@ export * from './DrawerActions';
|
|
|
3
3
|
export * from './DrawerCloseButton';
|
|
4
4
|
export * from './DrawerContent';
|
|
5
5
|
export * from './DrawerContentBody';
|
|
6
|
+
export * from './DrawerPanelDescription';
|
|
6
7
|
export * from './DrawerHead';
|
|
7
8
|
export * from './DrawerPanelBody';
|
|
8
9
|
export * from './DrawerPanelContent';
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Drawer,
|
|
5
5
|
DrawerContent,
|
|
6
6
|
DrawerPanelContent,
|
|
7
|
+
DrawerColorVariant,
|
|
7
8
|
DrawerHead,
|
|
8
9
|
DrawerActions,
|
|
9
10
|
DrawerCloseButton,
|
|
@@ -26,8 +27,7 @@ const StepContentWithDrawer: React.FunctionComponent = () => {
|
|
|
26
27
|
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onWizardExpand}>
|
|
27
28
|
<DrawerContent
|
|
28
29
|
panelContent={
|
|
29
|
-
|
|
30
|
-
<DrawerPanelContent widths={{ default: 'width_50' }}>
|
|
30
|
+
<DrawerPanelContent widths={{ default: 'width_50' }} colorVariant={DrawerColorVariant.secondary}>
|
|
31
31
|
<DrawerHead>
|
|
32
32
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
33
33
|
Drawer content: <strong>{activeStep?.name}</strong>
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
Drawer,
|
|
5
5
|
DrawerContent,
|
|
6
6
|
DrawerPanelContent,
|
|
7
|
+
DrawerColorVariant,
|
|
7
8
|
DrawerHead,
|
|
8
9
|
DrawerActions,
|
|
9
10
|
DrawerCloseButton,
|
|
@@ -37,8 +38,7 @@ export const WizardModalWithDrawerDemo: React.FunctionComponent = () => {
|
|
|
37
38
|
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
|
|
38
39
|
<DrawerContent
|
|
39
40
|
panelContent={
|
|
40
|
-
|
|
41
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
41
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
42
42
|
<DrawerHead>
|
|
43
43
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
44
44
|
Drawer content: {stepName}
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
DrawerCloseButton,
|
|
7
7
|
DrawerContent,
|
|
8
8
|
DrawerPanelContent,
|
|
9
|
+
DrawerColorVariant,
|
|
9
10
|
DrawerHead,
|
|
10
11
|
Flex,
|
|
11
12
|
Modal,
|
|
@@ -40,8 +41,7 @@ export const WizardModalWithDrawerInfoStepDemo: React.FunctionComponent = () =>
|
|
|
40
41
|
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
|
|
41
42
|
<DrawerContent
|
|
42
43
|
panelContent={
|
|
43
|
-
|
|
44
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
44
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
45
45
|
<DrawerHead>
|
|
46
46
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
47
47
|
Drawer content: {stepName}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
DrawerCloseButton,
|
|
10
10
|
DrawerContent,
|
|
11
11
|
DrawerPanelContent,
|
|
12
|
+
DrawerColorVariant,
|
|
12
13
|
DrawerHead,
|
|
13
14
|
Flex,
|
|
14
15
|
Nav,
|
|
@@ -118,8 +119,7 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
|
|
|
118
119
|
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
|
|
119
120
|
<DrawerContent
|
|
120
121
|
panelContent={
|
|
121
|
-
|
|
122
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
122
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
123
123
|
<DrawerHead>
|
|
124
124
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
125
125
|
Drawer content: {stepName}
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
DrawerContent,
|
|
11
11
|
DrawerHead,
|
|
12
12
|
DrawerPanelContent,
|
|
13
|
+
DrawerColorVariant,
|
|
13
14
|
Flex,
|
|
14
15
|
Nav,
|
|
15
16
|
NavItem,
|
|
@@ -119,8 +120,7 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
|
|
|
119
120
|
<Drawer isInline isExpanded={isDrawerExpanded} onExpand={onExpand}>
|
|
120
121
|
<DrawerContent
|
|
121
122
|
panelContent={
|
|
122
|
-
|
|
123
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
123
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
124
124
|
<DrawerHead>
|
|
125
125
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
126
126
|
Drawer content: {stepName}
|
|
@@ -104,7 +104,6 @@ describe('Wizard', () => {
|
|
|
104
104
|
|
|
105
105
|
test('wiz with drawer', () => {
|
|
106
106
|
const wizDrawerPanelContent = (
|
|
107
|
-
// TODO: MAy need to update with issue #9979. Removed light color variant.
|
|
108
107
|
<DrawerPanelContent>
|
|
109
108
|
<DrawerHead>
|
|
110
109
|
<span>This wizard has a drawer with drawer panel content</span>
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Button,
|
|
4
|
+
DrawerActions,
|
|
5
|
+
DrawerCloseButton,
|
|
6
|
+
DrawerHead,
|
|
7
|
+
DrawerPanelContent,
|
|
8
|
+
DrawerColorVariant
|
|
9
|
+
} from '@patternfly/react-core';
|
|
3
10
|
import { Wizard as WizardDeprecated } from '@patternfly/react-core/deprecated';
|
|
4
11
|
|
|
5
12
|
export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
@@ -20,8 +27,7 @@ export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
|
20
27
|
};
|
|
21
28
|
|
|
22
29
|
const panel1Content = (
|
|
23
|
-
|
|
24
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
30
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
25
31
|
<DrawerHead>
|
|
26
32
|
<span tabIndex={isDrawerExpanded ? 0 : -1} ref={drawerRef}>
|
|
27
33
|
drawer-panel-1 content
|
|
@@ -34,8 +40,7 @@ export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
|
34
40
|
);
|
|
35
41
|
|
|
36
42
|
const panel2Content = (
|
|
37
|
-
|
|
38
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
43
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
39
44
|
<DrawerHead>
|
|
40
45
|
<span tabIndex={0} ref={drawerRef}>
|
|
41
46
|
drawer-panel-2 content
|
|
@@ -48,8 +53,7 @@ export const WizardWithDrawer: React.FunctionComponent = () => {
|
|
|
48
53
|
);
|
|
49
54
|
|
|
50
55
|
const panel3Content = (
|
|
51
|
-
|
|
52
|
-
<DrawerPanelContent widths={{ default: 'width_33' }}>
|
|
56
|
+
<DrawerPanelContent widths={{ default: 'width_33' }} colorVariant={DrawerColorVariant.secondary}>
|
|
53
57
|
<DrawerHead>
|
|
54
58
|
<span tabIndex={0} ref={drawerRef}>
|
|
55
59
|
drawer-panel-3 content
|