@patternfly/react-core 4.202.32 → 4.202.33
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 +8 -0
- package/dist/esm/components/Wizard/Wizard.d.ts +2 -0
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +3 -2
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.d.ts +2 -0
- package/dist/esm/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardHeader.js +2 -2
- package/dist/esm/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts +2 -0
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +3 -2
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.d.ts +2 -0
- package/dist/js/components/Wizard/WizardHeader.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardHeader.js +2 -2
- package/dist/js/components/Wizard/WizardHeader.js.map +1 -1
- package/dist/umd/react-core.js +5 -4
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/Wizard/Wizard.tsx +5 -0
- package/src/components/Wizard/WizardHeader.tsx +5 -2
- package/src/components/Wizard/examples/Wizard.md +168 -103
- package/src/components/AboutModal/__tests__/Generated/AboutModal.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/AboutModalBox.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxBrand.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxCloseButton.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxContent.test.tsx +0 -21
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHeader.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalBoxHero.test.tsx +0 -13
- package/src/components/AboutModal/__tests__/Generated/AboutModalContainer.test.tsx +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModal.test.tsx.snap +0 -3
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBox.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxBrand.test.tsx.snap +0 -15
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +0 -33
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxContent.test.tsx.snap +0 -27
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHeader.test.tsx.snap +0 -19
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalBoxHero.test.tsx.snap +0 -10
- package/src/components/AboutModal/__tests__/Generated/__snapshots__/AboutModalContainer.test.tsx.snap +0 -3
- package/src/components/Accordion/__tests__/Generated/Accordion.test.tsx +0 -22
- package/src/components/Accordion/__tests__/Generated/__snapshots__/Accordion.test.tsx.snap +0 -12
- package/src/components/Alert/__tests__/Generated/Alert.test.tsx +0 -26
- package/src/components/Alert/__tests__/Generated/__snapshots__/Alert.test.tsx.snap +0 -47
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncher.test.tsx +0 -36
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncher.test.tsx.snap +0 -30
- package/src/components/Avatar/__tests__/Generated/Avatar.test.tsx +0 -13
- package/src/components/Avatar/__tests__/Generated/__snapshots__/Avatar.test.tsx.snap +0 -11
- package/src/components/Backdrop/__tests__/Generated/Backdrop.test.tsx +0 -13
- package/src/components/Backdrop/__tests__/Generated/__snapshots__/Backdrop.test.tsx.snap +0 -11
- package/src/components/BackgroundImage/__tests__/Generated/BackgroundImage.test.tsx +0 -13
- package/src/components/BackgroundImage/__tests__/Generated/__snapshots__/BackgroundImage.test.tsx.snap +0 -47
- package/src/components/Badge/__tests__/Generated/Badge.test.tsx +0 -13
- package/src/components/Badge/__tests__/Generated/__snapshots__/Badge.test.tsx.snap +0 -9
- package/src/components/Brand/__tests__/Generated/Brand.test.tsx +0 -13
- package/src/components/Brand/__tests__/Generated/__snapshots__/Brand.test.tsx.snap +0 -11
- package/src/components/Breadcrumb/__tests__/Generated/Breadcrumb.test.tsx +0 -13
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbHeading.test.tsx +0 -15
- package/src/components/Breadcrumb/__tests__/Generated/BreadcrumbItem.test.tsx +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/Breadcrumb.test.tsx.snap +0 -19
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbHeading.test.tsx.snap +0 -22
- package/src/components/Breadcrumb/__tests__/Generated/__snapshots__/BreadcrumbItem.test.tsx.snap +0 -17
- package/src/components/Button/__tests__/Generated/Button.test.tsx +0 -31
- package/src/components/Button/__tests__/Generated/__snapshots__/Button.test.tsx.snap +0 -17
- package/src/components/Card/__tests__/Generated/Card.test.tsx +0 -15
- package/src/components/Card/__tests__/Generated/CardBody.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardFooter.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHead.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/CardHeader.test.tsx +0 -13
- package/src/components/Card/__tests__/Generated/__snapshots__/Card.test.tsx.snap +0 -15
- package/src/components/Card/__tests__/Generated/__snapshots__/CardBody.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardFooter.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHead.test.tsx.snap +0 -11
- package/src/components/Card/__tests__/Generated/__snapshots__/CardHeader.test.tsx.snap +0 -11
- package/src/components/Checkbox/__tests__/Generated/Checkbox.test.tsx +0 -26
- package/src/components/Checkbox/__tests__/Generated/__snapshots__/Checkbox.test.tsx.snap +0 -35
- package/src/components/Chip/__tests__/Generated/Chip.test.tsx +0 -24
- package/src/components/Chip/__tests__/Generated/__snapshots__/Chip.test.tsx.snap +0 -46
- package/src/components/ChipGroup/__tests__/Generated/ChipGroup.test.tsx +0 -24
- package/src/components/ChipGroup/__tests__/Generated/__snapshots__/ChipGroup.test.tsx.snap +0 -33
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyButton.test.tsx +0 -26
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyExpanded.test.tsx +0 -21
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopyToggle.test.tsx +0 -22
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyButton.test.tsx.snap +0 -31
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +0 -14
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopyToggle.test.tsx.snap +0 -32
- package/src/components/ContextSelector/__tests__/Generated/ContextSelector.test.tsx +0 -28
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorItem.test.tsx +0 -23
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorMenuList.test.tsx +0 -13
- package/src/components/ContextSelector/__tests__/Generated/ContextSelectorToggle.test.tsx +0 -26
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelector.test.tsx.snap +0 -49
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorItem.test.tsx.snap +0 -15
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorMenuList.test.tsx.snap +0 -12
- package/src/components/ContextSelector/__tests__/Generated/__snapshots__/ContextSelectorToggle.test.tsx.snap +0 -35
- package/src/components/DataList/__tests__/Generated/DataList.test.tsx +0 -21
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataList.test.tsx.snap +0 -12
- package/src/components/Divider/__tests__/Generated/Divider.test.tsx +0 -13
- package/src/components/Divider/__tests__/Generated/__snapshots__/Divider.test.tsx.snap +0 -9
- package/src/components/Drawer/__tests__/Generated/Drawer.test.tsx +0 -13
- package/src/components/Drawer/__tests__/Generated/__snapshots__/Drawer.test.tsx.snap +0 -13
- package/src/components/Dropdown/__tests__/Generated/Dropdown.test.tsx +0 -27
- package/src/components/Dropdown/__tests__/Generated/DropdownGroup.test.tsx +0 -13
- package/src/components/Dropdown/__tests__/Generated/DropdownToggle.test.tsx +0 -34
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleAction.test.tsx +0 -22
- package/src/components/Dropdown/__tests__/Generated/DropdownToggleCheckbox.test.tsx +0 -25
- package/src/components/Dropdown/__tests__/Generated/Toggle.test.tsx +0 -31
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Dropdown.test.tsx.snap +0 -27
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownGroup.test.tsx.snap +0 -16
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggle.test.tsx.snap +0 -34
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -15
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -30
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/Toggle.test.tsx.snap +0 -17
- package/src/components/EmptyState/__tests__/Generated/EmptyState.test.tsx +0 -13
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyState.test.tsx.snap +0 -17
- package/src/components/ExpandableSection/__tests__/Generated/ExpandableSection.test.tsx +0 -24
- package/src/components/ExpandableSection/__tests__/Generated/__snapshots__/ExpandableSection.test.tsx.snap +0 -46
- package/src/components/Form/__tests__/Generated/ActionGroup.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/Form.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/FormGroup.test.tsx +0 -27
- package/src/components/Form/__tests__/Generated/FormHelperText.test.tsx +0 -13
- package/src/components/Form/__tests__/Generated/__snapshots__/ActionGroup.test.tsx.snap +0 -19
- package/src/components/Form/__tests__/Generated/__snapshots__/Form.test.tsx.snap +0 -12
- package/src/components/Form/__tests__/Generated/__snapshots__/FormGroup.test.tsx.snap +0 -38
- package/src/components/Form/__tests__/Generated/__snapshots__/FormHelperText.test.tsx.snap +0 -11
- package/src/components/FormSelect/__tests__/Generated/FormSelect.test.tsx +0 -26
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelect.test.tsx.snap +0 -18
- package/src/components/InputGroup/__tests__/Generated/InputGroup.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/InputGroupText.test.tsx +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroup.test.tsx.snap +0 -13
- package/src/components/InputGroup/__tests__/Generated/__snapshots__/InputGroupText.test.tsx.snap +0 -13
- package/src/components/Label/__tests__/Generated/Label.test.tsx +0 -13
- package/src/components/Label/__tests__/Generated/__snapshots__/Label.test.tsx.snap +0 -17
- package/src/components/LabelGroup/__tests__/Generated/LabelGroup.test.tsx +0 -29
- package/src/components/LabelGroup/__tests__/Generated/__snapshots__/LabelGroup.test.tsx.snap +0 -34
- package/src/components/LoginPage/__tests__/Generated/Login.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginFooterItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginForm.test.tsx +0 -34
- package/src/components/LoginPage/__tests__/Generated/LoginMainBody.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooter.test.tsx +0 -21
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterBandItem.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginMainFooterLinksItem.test.tsx +0 -22
- package/src/components/LoginPage/__tests__/Generated/LoginMainHeader.test.tsx +0 -13
- package/src/components/LoginPage/__tests__/Generated/LoginPage.test.tsx +0 -30
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/Login.test.tsx.snap +0 -19
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooterItem.test.tsx.snap +0 -7
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginForm.test.tsx.snap +0 -150
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainBody.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooter.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterBandItem.test.tsx.snap +0 -11
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +0 -17
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginMainHeader.test.tsx.snap +0 -24
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginPage.test.tsx.snap +0 -60
- package/src/components/Modal/__tests__/Generated/Modal.test.tsx +0 -35
- package/src/components/Modal/__tests__/Generated/ModalBox.test.tsx +0 -22
- package/src/components/Modal/__tests__/Generated/ModalBoxBody.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxCloseButton.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxDescription.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxFooter.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalBoxHeader.test.tsx +0 -13
- package/src/components/Modal/__tests__/Generated/ModalContent.test.tsx +0 -36
- package/src/components/Modal/__tests__/Generated/__snapshots__/Modal.test.tsx.snap +0 -3
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBox.test.tsx.snap +0 -18
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxBody.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxCloseButton.test.tsx.snap +0 -29
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxDescription.test.tsx.snap +0 -12
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxFooter.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalBoxHeader.test.tsx.snap +0 -11
- package/src/components/Modal/__tests__/Generated/__snapshots__/ModalContent.test.tsx.snap +0 -3
- package/src/components/Nav/__tests__/Generated/Nav.test.tsx +0 -22
- package/src/components/Nav/__tests__/Generated/__snapshots__/Nav.test.tsx.snap +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/NotificationBadge.test.tsx +0 -15
- package/src/components/NotificationBadge/__tests__/Generated/__snapshots__/NotificationBadge.test.tsx.snap +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawer.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerBody.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroup.test.tsx +0 -23
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerGroupList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerHeader.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerList.test.tsx +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItem.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemBody.test.tsx +0 -15
- package/src/components/NotificationDrawer/__tests__/Generated/NotificationDrawerListItemHeader.test.tsx +0 -22
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawer.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerBody.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroup.test.tsx.snap +0 -51
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerGroupList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerHeader.test.tsx.snap +0 -31
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerList.test.tsx.snap +0 -13
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItem.test.tsx.snap +0 -14
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemBody.test.tsx.snap +0 -20
- package/src/components/NotificationDrawer/__tests__/Generated/__snapshots__/NotificationDrawerListItemHeader.test.tsx.snap +0 -44
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenu.test.tsx +0 -26
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenu.test.tsx.snap +0 -24
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenu.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuContent.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuGroup.test.tsx +0 -15
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuItem.test.tsx +0 -13
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenu.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuContent.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuGroup.test.tsx.snap +0 -11
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuItem.test.tsx.snap +0 -13
- package/src/components/Page/__tests__/Generated/PageHeader.test.tsx +0 -28
- package/src/components/Page/__tests__/Generated/PageSection.test.tsx +0 -22
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeader.test.tsx.snap +0 -10
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSection.test.tsx.snap +0 -13
- package/src/components/Popover/__tests__/Generated/Popover.test.tsx +0 -40
- package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +0 -9
- package/src/components/Progress/__tests__/Generated/Progress.test.tsx +0 -27
- package/src/components/Progress/__tests__/Generated/__snapshots__/Progress.test.tsx.snap +0 -63
- package/src/components/SkipToContent/__tests__/Generated/SkipToContent.test.tsx +0 -15
- package/src/components/SkipToContent/__tests__/Generated/__snapshots__/SkipToContent.test.tsx.snap +0 -15
- package/src/components/Spinner/__tests__/Generated/Spinner.test.tsx +0 -13
- package/src/components/Spinner/__tests__/Generated/__snapshots__/Spinner.test.tsx.snap +0 -22
- package/src/components/Tabs/__tests__/Generated/TabButton.test.tsx +0 -20
- package/src/components/Tabs/__tests__/Generated/Tabs.test.tsx +0 -29
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabButton.test.tsx.snap +0 -16
- package/src/components/Tabs/__tests__/Generated/__snapshots__/Tabs.test.tsx.snap +0 -75
- package/src/components/Text/__tests__/Generated/Text.test.tsx +0 -13
- package/src/components/Text/__tests__/Generated/__snapshots__/Text.test.tsx.snap +0 -15
- package/src/components/Toolbar/__tests__/Generated/Toolbar.test.tsx +0 -24
- package/src/components/Toolbar/__tests__/Generated/ToolbarItem.test.tsx +0 -20
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/Toolbar.test.tsx.snap +0 -25
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarItem.test.tsx.snap +0 -14
- package/src/components/Tooltip/__tests__/Generated/Tooltip.test.tsx +0 -33
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/Tooltip.test.tsx.snap +0 -9
- package/src/layouts/Bullseye/__tests__/Generated/Bullseye.test.tsx +0 -13
- package/src/layouts/Bullseye/__tests__/Generated/__snapshots__/Bullseye.test.tsx.snap +0 -11
- package/src/layouts/Flex/__tests__/Generated/Flex.test.tsx +0 -13
- package/src/layouts/Flex/__tests__/Generated/__snapshots__/Flex.test.tsx.snap +0 -11
- package/src/layouts/Gallery/__tests__/Generated/Gallery.test.tsx +0 -13
- package/src/layouts/Gallery/__tests__/Generated/__snapshots__/Gallery.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/Grid.test.tsx +0 -15
- package/src/layouts/Grid/__tests__/Generated/GridItem.test.tsx +0 -36
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/Grid.test.tsx.snap +0 -11
- package/src/layouts/Grid/__tests__/Generated/__snapshots__/GridItem.test.tsx.snap +0 -11
- package/src/layouts/Level/__tests__/Generated/Level.test.tsx +0 -13
- package/src/layouts/Level/__tests__/Generated/__snapshots__/Level.test.tsx.snap +0 -11
- package/src/layouts/Split/__tests__/Generated/Split.test.tsx +0 -13
- package/src/layouts/Split/__tests__/Generated/__snapshots__/Split.test.tsx.snap +0 -11
- package/src/layouts/Stack/__tests__/Generated/Stack.test.tsx +0 -13
- package/src/layouts/Stack/__tests__/Generated/__snapshots__/Stack.test.tsx.snap +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.202.
|
|
3
|
+
"version": "4.202.33",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"generate": "node scripts/copyStyles.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patternfly/react-icons": "^4.53.
|
|
38
|
-
"@patternfly/react-styles": "^4.52.
|
|
39
|
-
"@patternfly/react-tokens": "^4.54.
|
|
37
|
+
"@patternfly/react-icons": "^4.53.33",
|
|
38
|
+
"@patternfly/react-styles": "^4.52.33",
|
|
39
|
+
"@patternfly/react-tokens": "^4.54.33",
|
|
40
40
|
"focus-trap": "6.2.2",
|
|
41
41
|
"react-dropzone": "9.0.0",
|
|
42
42
|
"tippy.js": "5.1.2",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "be595a28a0caac9e45ad672c4f290b8241ad17b4"
|
|
64
64
|
}
|
|
@@ -54,6 +54,8 @@ export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
54
54
|
descriptionId?: string;
|
|
55
55
|
/** The wizard description */
|
|
56
56
|
description?: React.ReactNode;
|
|
57
|
+
/** Component type of the description */
|
|
58
|
+
descriptionComponent?: 'div' | 'p';
|
|
57
59
|
/** Flag indicating whether the close button should be in the header */
|
|
58
60
|
hideClose?: boolean;
|
|
59
61
|
/** Callback function to close the wizard */
|
|
@@ -111,6 +113,7 @@ export class Wizard extends React.Component<WizardProps, WizardState> {
|
|
|
111
113
|
static defaultProps: PickOptional<WizardProps> = {
|
|
112
114
|
title: null,
|
|
113
115
|
description: '',
|
|
116
|
+
descriptionComponent: 'p',
|
|
114
117
|
className: '',
|
|
115
118
|
startAtStep: 1,
|
|
116
119
|
nextButtonText: 'Next',
|
|
@@ -312,6 +315,7 @@ export class Wizard extends React.Component<WizardProps, WizardState> {
|
|
|
312
315
|
height,
|
|
313
316
|
title,
|
|
314
317
|
description,
|
|
318
|
+
descriptionComponent,
|
|
315
319
|
onClose,
|
|
316
320
|
onSave,
|
|
317
321
|
onBack,
|
|
@@ -453,6 +457,7 @@ export class Wizard extends React.Component<WizardProps, WizardState> {
|
|
|
453
457
|
onClose={onClose}
|
|
454
458
|
title={title}
|
|
455
459
|
description={description}
|
|
460
|
+
descriptionComponent={descriptionComponent}
|
|
456
461
|
closeButtonAriaLabel={closeButtonAriaLabel}
|
|
457
462
|
hideClose={hideClose}
|
|
458
463
|
/>
|
|
@@ -12,6 +12,8 @@ export interface WizardHeaderProps {
|
|
|
12
12
|
title: string;
|
|
13
13
|
/** Description of the wizard */
|
|
14
14
|
description?: React.ReactNode;
|
|
15
|
+
/** Component type of the description */
|
|
16
|
+
descriptionComponent?: 'div' | 'p';
|
|
15
17
|
/** Flag indicating whether the close button should be in the header */
|
|
16
18
|
hideClose?: boolean;
|
|
17
19
|
/** Aria-label applied to the X (Close) button */
|
|
@@ -29,6 +31,7 @@ export const WizardHeader: React.FunctionComponent<WizardHeaderProps> = ({
|
|
|
29
31
|
hideClose,
|
|
30
32
|
closeButtonAriaLabel,
|
|
31
33
|
titleId,
|
|
34
|
+
descriptionComponent: Component = 'p',
|
|
32
35
|
descriptionId
|
|
33
36
|
}: WizardHeaderProps) => (
|
|
34
37
|
<div className={css(styles.wizardHeader)}>
|
|
@@ -41,9 +44,9 @@ export const WizardHeader: React.FunctionComponent<WizardHeaderProps> = ({
|
|
|
41
44
|
{title || <> </>}
|
|
42
45
|
</Title>
|
|
43
46
|
{description && (
|
|
44
|
-
<
|
|
47
|
+
<Component className={css(styles.wizardDescription)} id={descriptionId}>
|
|
45
48
|
{description}
|
|
46
|
-
</
|
|
49
|
+
</Component>
|
|
47
50
|
)}
|
|
48
51
|
</div>
|
|
49
52
|
);
|
|
@@ -12,7 +12,9 @@ import FinishedStep from './FinishedStep';
|
|
|
12
12
|
import SampleForm from './SampleForm';
|
|
13
13
|
|
|
14
14
|
## Examples
|
|
15
|
+
|
|
15
16
|
### Basic
|
|
17
|
+
|
|
16
18
|
```js
|
|
17
19
|
import React from 'react';
|
|
18
20
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -31,19 +33,13 @@ class SimpleWizard extends React.Component {
|
|
|
31
33
|
{ name: 'Review', component: <p>Review step content</p>, nextButtonText: 'Finish' }
|
|
32
34
|
];
|
|
33
35
|
const title = 'Basic wizard';
|
|
34
|
-
return
|
|
35
|
-
<Wizard
|
|
36
|
-
navAriaLabel={`${title} steps`}
|
|
37
|
-
mainAriaLabel={`${title} content`}
|
|
38
|
-
steps={steps}
|
|
39
|
-
height={400}
|
|
40
|
-
/>
|
|
41
|
-
);
|
|
36
|
+
return <Wizard navAriaLabel={`${title} steps`} mainAriaLabel={`${title} content`} steps={steps} height={400} />;
|
|
42
37
|
}
|
|
43
38
|
}
|
|
44
39
|
```
|
|
45
40
|
|
|
46
41
|
### Anchors for nav items
|
|
42
|
+
|
|
47
43
|
```js
|
|
48
44
|
import React from 'react';
|
|
49
45
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -58,35 +54,45 @@ class WizardWithNavAnchors extends React.Component {
|
|
|
58
54
|
render() {
|
|
59
55
|
const steps = [
|
|
60
56
|
{
|
|
61
|
-
name:
|
|
57
|
+
name: (
|
|
58
|
+
<div>
|
|
59
|
+
<ExternalLinkAltIcon /> PF3
|
|
60
|
+
</div>
|
|
61
|
+
),
|
|
62
62
|
component: <p>Step 1: Read about PF3</p>,
|
|
63
63
|
stepNavItemProps: { navItemComponent: 'a', href: 'https://www.patternfly.org/v3/', target: '_blank' }
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
name:
|
|
66
|
+
name: (
|
|
67
|
+
<div>
|
|
68
|
+
<ExternalLinkAltIcon /> PF4
|
|
69
|
+
</div>
|
|
70
|
+
),
|
|
67
71
|
component: <p>Step 2: Read about PF4</p>,
|
|
68
72
|
stepNavItemProps: { navItemComponent: 'a', href: 'https://www.patternfly.org/v4/', target: '_blank' }
|
|
69
73
|
},
|
|
70
74
|
{
|
|
71
|
-
name:
|
|
72
|
-
|
|
75
|
+
name: (
|
|
76
|
+
<div>
|
|
77
|
+
<SlackHashIcon /> Join us on slack
|
|
78
|
+
</div>
|
|
79
|
+
),
|
|
80
|
+
component: (
|
|
81
|
+
<Button variant="link" component="a" target="_blank" href="https://patternfly.slack.com/">
|
|
82
|
+
Join the conversation
|
|
83
|
+
</Button>
|
|
84
|
+
),
|
|
73
85
|
stepNavItemProps: { navItemComponent: 'a', href: 'https://patternfly.slack.com/', target: '_blank' }
|
|
74
86
|
}
|
|
75
87
|
];
|
|
76
88
|
const title = 'Anchor link wizard';
|
|
77
|
-
return
|
|
78
|
-
<Wizard
|
|
79
|
-
navAriaLabel={`${title} steps`}
|
|
80
|
-
mainAriaLabel={`${title} content`}
|
|
81
|
-
steps={steps}
|
|
82
|
-
height={400}
|
|
83
|
-
/>
|
|
84
|
-
);
|
|
89
|
+
return <Wizard navAriaLabel={`${title} steps`} mainAriaLabel={`${title} content`} steps={steps} height={400} />;
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
```
|
|
88
93
|
|
|
89
94
|
### Incrementally enabled steps
|
|
95
|
+
|
|
90
96
|
```js
|
|
91
97
|
import React from 'react';
|
|
92
98
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -103,8 +109,8 @@ class IncrementallyEnabledStepsWizard extends React.Component {
|
|
|
103
109
|
});
|
|
104
110
|
};
|
|
105
111
|
this.closeWizard = () => {
|
|
106
|
-
console.log(
|
|
107
|
-
}
|
|
112
|
+
console.log('close wizard');
|
|
113
|
+
};
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
render() {
|
|
@@ -115,7 +121,13 @@ class IncrementallyEnabledStepsWizard extends React.Component {
|
|
|
115
121
|
{ id: 2, name: 'Second step', component: <p>Step 2 content</p>, canJumpTo: stepIdReached >= 2 },
|
|
116
122
|
{ id: 3, name: 'Third step', component: <p>Step 3 content</p>, canJumpTo: stepIdReached >= 3 },
|
|
117
123
|
{ id: 4, name: 'Fourth step', component: <p>Step 4 content</p>, canJumpTo: stepIdReached >= 4 },
|
|
118
|
-
{
|
|
124
|
+
{
|
|
125
|
+
id: 5,
|
|
126
|
+
name: 'Review',
|
|
127
|
+
component: <p>Review step content</p>,
|
|
128
|
+
nextButtonText: 'Finish',
|
|
129
|
+
canJumpTo: stepIdReached >= 5
|
|
130
|
+
}
|
|
119
131
|
];
|
|
120
132
|
const title = 'Incrementally enabled wizard';
|
|
121
133
|
return (
|
|
@@ -133,6 +145,7 @@ class IncrementallyEnabledStepsWizard extends React.Component {
|
|
|
133
145
|
```
|
|
134
146
|
|
|
135
147
|
### Expandable steps
|
|
148
|
+
|
|
136
149
|
```js
|
|
137
150
|
import React from 'react';
|
|
138
151
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -144,19 +157,19 @@ class SimpleWizard extends React.Component {
|
|
|
144
157
|
|
|
145
158
|
render() {
|
|
146
159
|
const steps = [
|
|
147
|
-
{
|
|
160
|
+
{
|
|
148
161
|
name: 'First step',
|
|
149
162
|
steps: [
|
|
150
163
|
{ name: 'Substep A', component: <p>Substep A content</p> },
|
|
151
|
-
{ name: 'Substep B', component: <p>Substep B content</p> }
|
|
164
|
+
{ name: 'Substep B', component: <p>Substep B content</p> }
|
|
152
165
|
]
|
|
153
166
|
},
|
|
154
167
|
{ name: 'Second step', component: <p>Step 2 content</p> },
|
|
155
|
-
{
|
|
156
|
-
name: 'Third step',
|
|
168
|
+
{
|
|
169
|
+
name: 'Third step',
|
|
157
170
|
steps: [
|
|
158
171
|
{ name: 'Substep C', component: <p>Substep C content</p> },
|
|
159
|
-
{ name: 'Substep D', component: <p>Substep D content</p> }
|
|
172
|
+
{ name: 'Substep D', component: <p>Substep D content</p> }
|
|
160
173
|
]
|
|
161
174
|
},
|
|
162
175
|
{ name: 'Fourth step', component: <p>Step 4 content</p> },
|
|
@@ -177,6 +190,7 @@ class SimpleWizard extends React.Component {
|
|
|
177
190
|
```
|
|
178
191
|
|
|
179
192
|
### Finished
|
|
193
|
+
|
|
180
194
|
```js
|
|
181
195
|
import React from 'react';
|
|
182
196
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -187,12 +201,11 @@ class FinishedStepWizard extends React.Component {
|
|
|
187
201
|
super(props);
|
|
188
202
|
|
|
189
203
|
this.closeWizard = () => {
|
|
190
|
-
console.log(
|
|
191
|
-
}
|
|
204
|
+
console.log('close wizard');
|
|
205
|
+
};
|
|
192
206
|
}
|
|
193
207
|
|
|
194
208
|
render() {
|
|
195
|
-
|
|
196
209
|
const steps = [
|
|
197
210
|
{ name: 'First step', component: <p>Step 1 content</p> },
|
|
198
211
|
{ name: 'Second step', component: <p>Step 2 content</p> },
|
|
@@ -216,6 +229,7 @@ class FinishedStepWizard extends React.Component {
|
|
|
216
229
|
```
|
|
217
230
|
|
|
218
231
|
### Enabled on form validation
|
|
232
|
+
|
|
219
233
|
```js
|
|
220
234
|
import React from 'react';
|
|
221
235
|
import { Button, Wizard, Form, FormGroup, TextInput } from '@patternfly/react-core';
|
|
@@ -232,8 +246,8 @@ class ValidationWizard extends React.Component {
|
|
|
232
246
|
};
|
|
233
247
|
|
|
234
248
|
this.closeWizard = () => {
|
|
235
|
-
console.log(
|
|
236
|
-
}
|
|
249
|
+
console.log('close wizard');
|
|
250
|
+
};
|
|
237
251
|
|
|
238
252
|
this.onFormChange = (isValid, value) => {
|
|
239
253
|
this.setState(
|
|
@@ -287,17 +301,27 @@ class ValidationWizard extends React.Component {
|
|
|
287
301
|
{
|
|
288
302
|
id: 2,
|
|
289
303
|
name: 'Substep A with validation',
|
|
290
|
-
component:
|
|
291
|
-
<SampleForm formValue={formValue} isFormValid={isFormValid} onChange={this.onFormChange} />
|
|
292
|
-
),
|
|
304
|
+
component: <SampleForm formValue={formValue} isFormValid={isFormValid} onChange={this.onFormChange} />,
|
|
293
305
|
enableNext: isFormValid,
|
|
294
306
|
canJumpTo: stepIdReached >= 2
|
|
295
307
|
},
|
|
296
308
|
{ id: 3, name: 'Substep B', component: <p>Substep B</p>, canJumpTo: stepIdReached >= 3 }
|
|
297
309
|
]
|
|
298
310
|
},
|
|
299
|
-
{
|
|
300
|
-
|
|
311
|
+
{
|
|
312
|
+
id: 4,
|
|
313
|
+
name: 'Additional',
|
|
314
|
+
component: <p>Step 3 content</p>,
|
|
315
|
+
enableNext: allStepsValid,
|
|
316
|
+
canJumpTo: stepIdReached >= 4
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
id: 5,
|
|
320
|
+
name: 'Review',
|
|
321
|
+
component: <p>Step 4 content</p>,
|
|
322
|
+
nextButtonText: 'Close',
|
|
323
|
+
canJumpTo: stepIdReached >= 5
|
|
324
|
+
}
|
|
301
325
|
];
|
|
302
326
|
const title = 'Enabled on form validation wizard';
|
|
303
327
|
return (
|
|
@@ -321,7 +345,7 @@ class ValidationWizard extends React.Component {
|
|
|
321
345
|
|
|
322
346
|
This example demonstrates how to use the `WizardContextConsumer` to consume the `WizardContext`. `WizardContext` can be used to imperatively move to a specific wizard step.
|
|
323
347
|
|
|
324
|
-
The definition of the `WizardContext` is as follows:
|
|
348
|
+
The definition of the `WizardContext` is as follows:
|
|
325
349
|
|
|
326
350
|
```
|
|
327
351
|
interface WizardContext {
|
|
@@ -348,7 +372,7 @@ class ValidateButtonPressWizard extends React.Component {
|
|
|
348
372
|
};
|
|
349
373
|
|
|
350
374
|
this.closeWizard = () => {
|
|
351
|
-
console.log(
|
|
375
|
+
console.log('close wizard');
|
|
352
376
|
};
|
|
353
377
|
|
|
354
378
|
this.validateLastStep = onNext => {
|
|
@@ -373,7 +397,11 @@ class ValidateButtonPressWizard extends React.Component {
|
|
|
373
397
|
name: 'Final Step',
|
|
374
398
|
component: (
|
|
375
399
|
<>
|
|
376
|
-
{stepsValid === 1 &&
|
|
400
|
+
{stepsValid === 1 && (
|
|
401
|
+
<div style={{ padding: '15px 0' }}>
|
|
402
|
+
<Alert variant="warning" title="Validation failed, please try again" />
|
|
403
|
+
</div>
|
|
404
|
+
)}
|
|
377
405
|
<SampleForm formValue="Validating on button press" isFormValid={stepsValid !== 1} />
|
|
378
406
|
</>
|
|
379
407
|
)
|
|
@@ -391,14 +419,18 @@ class ValidateButtonPressWizard extends React.Component {
|
|
|
391
419
|
<Button variant="primary" type="submit" onClick={onNext}>
|
|
392
420
|
Forward
|
|
393
421
|
</Button>
|
|
394
|
-
<Button
|
|
422
|
+
<Button
|
|
423
|
+
variant="secondary"
|
|
424
|
+
onClick={onBack}
|
|
425
|
+
className={activeStep.name === 'Step 1' ? 'pf-m-disabled' : ''}
|
|
426
|
+
>
|
|
395
427
|
Backward
|
|
396
428
|
</Button>
|
|
397
429
|
<Button variant="link" onClick={onClose}>
|
|
398
430
|
Cancel
|
|
399
431
|
</Button>
|
|
400
432
|
</>
|
|
401
|
-
)
|
|
433
|
+
);
|
|
402
434
|
}
|
|
403
435
|
// Final step buttons
|
|
404
436
|
return (
|
|
@@ -406,7 +438,8 @@ class ValidateButtonPressWizard extends React.Component {
|
|
|
406
438
|
<Button onClick={() => this.validateLastStep(onNext)}>Validate</Button>
|
|
407
439
|
<Button onClick={() => goToStepByName('Step 1')}>Go to Beginning</Button>
|
|
408
440
|
</>
|
|
409
|
-
)
|
|
441
|
+
);
|
|
442
|
+
}}
|
|
410
443
|
</WizardContextConsumer>
|
|
411
444
|
</WizardFooter>
|
|
412
445
|
);
|
|
@@ -426,6 +459,7 @@ class ValidateButtonPressWizard extends React.Component {
|
|
|
426
459
|
```
|
|
427
460
|
|
|
428
461
|
### Progressive steps
|
|
462
|
+
|
|
429
463
|
```js
|
|
430
464
|
import React from 'react';
|
|
431
465
|
import { Button, Radio, Wizard, WizardFooter, WizardContextConsumer, Alert } from '@patternfly/react-core';
|
|
@@ -445,8 +479,8 @@ class ProgressiveWizard extends React.Component {
|
|
|
445
479
|
updateStepRadio: 'Quick'
|
|
446
480
|
};
|
|
447
481
|
this.closeWizard = () => {
|
|
448
|
-
console.log(
|
|
449
|
-
}
|
|
482
|
+
console.log('close wizard');
|
|
483
|
+
};
|
|
450
484
|
this.onGoToStep = ({ id, name }, { prevId, prevName }) => {
|
|
451
485
|
// Remove steps after the currently clicked step
|
|
452
486
|
if (name === 'Get started') {
|
|
@@ -470,66 +504,90 @@ class ProgressiveWizard extends React.Component {
|
|
|
470
504
|
this.getNextStep = (activeStep, callback) => {
|
|
471
505
|
if (activeStep.name === 'Get started') {
|
|
472
506
|
if (this.state.getStartedStepRadio === 'Create') {
|
|
473
|
-
this.setState(
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
507
|
+
this.setState(
|
|
508
|
+
{
|
|
509
|
+
showCreateStep: true,
|
|
510
|
+
showUpdateStep: false,
|
|
511
|
+
showOptionsStep: false,
|
|
512
|
+
showReviewStep: false
|
|
513
|
+
},
|
|
514
|
+
() => {
|
|
515
|
+
callback();
|
|
516
|
+
}
|
|
517
|
+
);
|
|
481
518
|
} else {
|
|
482
|
-
this.setState(
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
519
|
+
this.setState(
|
|
520
|
+
{
|
|
521
|
+
showCreateStep: false,
|
|
522
|
+
showUpdateStep: true,
|
|
523
|
+
showOptionsStep: false,
|
|
524
|
+
showReviewStep: false
|
|
525
|
+
},
|
|
526
|
+
() => {
|
|
527
|
+
callback();
|
|
528
|
+
}
|
|
529
|
+
);
|
|
490
530
|
}
|
|
491
531
|
} else if (activeStep.name === 'Create options' || activeStep.name === 'Update options') {
|
|
492
|
-
this.setState(
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
532
|
+
this.setState(
|
|
533
|
+
{
|
|
534
|
+
showOptionsStep: true,
|
|
535
|
+
showReviewStep: false
|
|
536
|
+
},
|
|
537
|
+
() => {
|
|
538
|
+
callback();
|
|
539
|
+
}
|
|
540
|
+
);
|
|
498
541
|
} else if (activeStep.name === 'Substep 3') {
|
|
499
|
-
this.setState(
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
542
|
+
this.setState(
|
|
543
|
+
{
|
|
544
|
+
showReviewStep: true
|
|
545
|
+
},
|
|
546
|
+
() => {
|
|
547
|
+
callback();
|
|
548
|
+
}
|
|
549
|
+
);
|
|
504
550
|
} else {
|
|
505
551
|
callback();
|
|
506
552
|
}
|
|
507
553
|
};
|
|
508
554
|
this.getPreviousStep = (activeStep, callback) => {
|
|
509
555
|
if (activeStep.name === 'Review') {
|
|
510
|
-
this.setState(
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
556
|
+
this.setState(
|
|
557
|
+
{
|
|
558
|
+
showReviewStep: false
|
|
559
|
+
},
|
|
560
|
+
() => {
|
|
561
|
+
callback();
|
|
562
|
+
}
|
|
563
|
+
);
|
|
515
564
|
} else if (activeStep.name === 'Substep 1') {
|
|
516
|
-
this.setState(
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
565
|
+
this.setState(
|
|
566
|
+
{
|
|
567
|
+
showOptionsStep: false
|
|
568
|
+
},
|
|
569
|
+
() => {
|
|
570
|
+
callback();
|
|
571
|
+
}
|
|
572
|
+
);
|
|
521
573
|
} else if (activeStep.name === 'Create options') {
|
|
522
|
-
this.setState(
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
574
|
+
this.setState(
|
|
575
|
+
{
|
|
576
|
+
showCreateStep: false
|
|
577
|
+
},
|
|
578
|
+
() => {
|
|
579
|
+
callback();
|
|
580
|
+
}
|
|
581
|
+
);
|
|
527
582
|
} else if (activeStep.name === 'Update options') {
|
|
528
|
-
this.setState(
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
583
|
+
this.setState(
|
|
584
|
+
{
|
|
585
|
+
showUpdateStep: false
|
|
586
|
+
},
|
|
587
|
+
() => {
|
|
588
|
+
callback();
|
|
589
|
+
}
|
|
590
|
+
);
|
|
533
591
|
} else {
|
|
534
592
|
callback();
|
|
535
593
|
}
|
|
@@ -653,7 +711,7 @@ class ProgressiveWizard extends React.Component {
|
|
|
653
711
|
...(showCreateStep ? [createStep] : []),
|
|
654
712
|
...(showUpdateStep ? [updateStep] : []),
|
|
655
713
|
...(showOptionsStep ? [optionsStep] : []),
|
|
656
|
-
...(showReviewStep ? [reviewStep] : [])
|
|
714
|
+
...(showReviewStep ? [reviewStep] : [])
|
|
657
715
|
];
|
|
658
716
|
|
|
659
717
|
const CustomFooter = (
|
|
@@ -665,14 +723,19 @@ class ProgressiveWizard extends React.Component {
|
|
|
665
723
|
<Button variant="primary" type="submit" onClick={() => this.getNextStep(activeStep, onNext)}>
|
|
666
724
|
{activeStep.name === 'Review' ? 'Finish' : 'Next'}
|
|
667
725
|
</Button>
|
|
668
|
-
<Button
|
|
726
|
+
<Button
|
|
727
|
+
variant="secondary"
|
|
728
|
+
onClick={() => this.getPreviousStep(activeStep, onBack)}
|
|
729
|
+
className={activeStep.name === 'Get Started' ? 'pf-m-disabled' : ''}
|
|
730
|
+
>
|
|
669
731
|
Back
|
|
670
732
|
</Button>
|
|
671
733
|
<Button variant="link" onClick={onClose}>
|
|
672
734
|
Cancel
|
|
673
735
|
</Button>
|
|
674
736
|
</>
|
|
675
|
-
)
|
|
737
|
+
);
|
|
738
|
+
}}
|
|
676
739
|
</WizardContextConsumer>
|
|
677
740
|
</WizardFooter>
|
|
678
741
|
);
|
|
@@ -693,6 +756,7 @@ class ProgressiveWizard extends React.Component {
|
|
|
693
756
|
```
|
|
694
757
|
|
|
695
758
|
### Remember last step
|
|
759
|
+
|
|
696
760
|
```js
|
|
697
761
|
import React from 'react';
|
|
698
762
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -704,18 +768,18 @@ class RememberLastStepWizard extends React.Component {
|
|
|
704
768
|
step: 1
|
|
705
769
|
};
|
|
706
770
|
this.closeWizard = () => {
|
|
707
|
-
console.log(
|
|
708
|
-
}
|
|
771
|
+
console.log('close wizard');
|
|
772
|
+
};
|
|
709
773
|
this.onMove = (curr, prev) => {
|
|
710
774
|
this.setState({
|
|
711
775
|
step: curr.id
|
|
712
776
|
});
|
|
713
|
-
}
|
|
777
|
+
};
|
|
714
778
|
this.onSave = () => {
|
|
715
779
|
this.setState({
|
|
716
|
-
step: 1
|
|
717
|
-
})
|
|
718
|
-
}
|
|
780
|
+
step: 1
|
|
781
|
+
});
|
|
782
|
+
};
|
|
719
783
|
}
|
|
720
784
|
|
|
721
785
|
render() {
|
|
@@ -748,6 +812,7 @@ class RememberLastStepWizard extends React.Component {
|
|
|
748
812
|
```
|
|
749
813
|
|
|
750
814
|
### Wizard in modal
|
|
815
|
+
|
|
751
816
|
```js
|
|
752
817
|
import React from 'react';
|
|
753
818
|
import { Button, Wizard } from '@patternfly/react-core';
|
|
@@ -784,6 +849,7 @@ class WizardInModal extends React.Component {
|
|
|
784
849
|
<Wizard
|
|
785
850
|
title={title}
|
|
786
851
|
description="Simple Wizard Description"
|
|
852
|
+
descriptionComponent="div"
|
|
787
853
|
steps={steps}
|
|
788
854
|
onClose={this.handleModalToggle}
|
|
789
855
|
isOpen={isOpen}
|
|
@@ -793,4 +859,3 @@ class WizardInModal extends React.Component {
|
|
|
793
859
|
}
|
|
794
860
|
}
|
|
795
861
|
```
|
|
796
|
-
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { AboutModal } from '../../AboutModal';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('AboutModal should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(
|
|
12
|
-
<AboutModal
|
|
13
|
-
children={<div>ReactNode</div>}
|
|
14
|
-
className={"''"}
|
|
15
|
-
isOpen={false}
|
|
16
|
-
onClose={(): any => undefined}
|
|
17
|
-
productName={"''"}
|
|
18
|
-
trademark={"''"}
|
|
19
|
-
brandImageSrc={'string'}
|
|
20
|
-
brandImageAlt={'string'}
|
|
21
|
-
backgroundImageSrc={"''"}
|
|
22
|
-
noAboutModalBoxContentContainer={false}
|
|
23
|
-
appendTo={null}
|
|
24
|
-
/>
|
|
25
|
-
);
|
|
26
|
-
expect(view.container).toMatchSnapshot();
|
|
27
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { AboutModalBox } from '../../AboutModalBox';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('AboutModalBox should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(<AboutModalBox children={<div>ReactNode</div>} className={"''"} />);
|
|
12
|
-
expect(view.container).toMatchSnapshot();
|
|
13
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { AboutModalBoxBrand } from '../../AboutModalBoxBrand';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('AboutModalBoxBrand should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(<AboutModalBoxBrand className={"''"} src={"''"} alt={'string'} />);
|
|
12
|
-
expect(view.container).toMatchSnapshot();
|
|
13
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This test was generated
|
|
3
|
-
*/
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import { render } from '@testing-library/react';
|
|
6
|
-
import { AboutModalBoxCloseButton } from '../../AboutModalBoxCloseButton';
|
|
7
|
-
// any missing imports can usually be resolved by adding them here
|
|
8
|
-
import {} from '../..';
|
|
9
|
-
|
|
10
|
-
it('AboutModalBoxCloseButton should match snapshot (auto-generated)', () => {
|
|
11
|
-
const view = render(<AboutModalBoxCloseButton className={"''"} onClose={() => undefined as any} />);
|
|
12
|
-
expect(view.container).toMatchSnapshot();
|
|
13
|
-
});
|