@patternfly/react-core 6.0.0-alpha.83 → 6.0.0-alpha.85
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 +17 -0
- package/components/package.json +1 -8
- package/deprecated/package.json +1 -8
- package/dist/dynamic/components/AboutModal/package.json +1 -8
- package/dist/dynamic/components/Accordion/package.json +1 -8
- package/dist/dynamic/components/ActionList/package.json +1 -8
- package/dist/dynamic/components/Alert/package.json +1 -8
- package/dist/dynamic/components/Avatar/package.json +1 -8
- package/dist/dynamic/components/BackToTop/package.json +1 -8
- package/dist/dynamic/components/Backdrop/package.json +1 -8
- package/dist/dynamic/components/BackgroundImage/package.json +1 -8
- package/dist/dynamic/components/Badge/package.json +1 -8
- package/dist/dynamic/components/Banner/package.json +1 -8
- package/dist/dynamic/components/Brand/package.json +1 -8
- package/dist/dynamic/components/Breadcrumb/package.json +1 -8
- package/dist/dynamic/components/Button/package.json +1 -8
- package/dist/dynamic/components/CalendarMonth/package.json +1 -8
- package/dist/dynamic/components/Card/package.json +1 -8
- package/dist/dynamic/components/Checkbox/package.json +1 -8
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -8
- package/dist/dynamic/components/CodeBlock/package.json +1 -8
- package/dist/dynamic/components/Content/package.json +1 -8
- package/dist/dynamic/components/DataList/package.json +1 -8
- package/dist/dynamic/components/DatePicker/package.json +1 -8
- package/dist/dynamic/components/DescriptionList/package.json +1 -8
- package/dist/dynamic/components/Divider/package.json +1 -8
- package/dist/dynamic/components/Drawer/package.json +1 -8
- package/dist/dynamic/components/Dropdown/package.json +1 -8
- package/dist/dynamic/components/DualListSelector/package.json +1 -8
- package/dist/dynamic/components/EmptyState/package.json +1 -8
- package/dist/dynamic/components/ExpandableSection/package.json +1 -8
- package/dist/dynamic/components/FileUpload/package.json +1 -8
- package/dist/dynamic/components/Form/package.json +1 -8
- package/dist/dynamic/components/FormSelect/package.json +1 -8
- package/dist/dynamic/components/HelperText/package.json +1 -8
- package/dist/dynamic/components/Hint/package.json +1 -8
- package/dist/dynamic/components/Icon/package.json +1 -8
- package/dist/dynamic/components/InputGroup/package.json +1 -8
- package/dist/dynamic/components/JumpLinks/package.json +1 -8
- package/dist/dynamic/components/Label/package.json +1 -8
- package/dist/dynamic/components/List/package.json +1 -8
- package/dist/dynamic/components/LoginPage/package.json +1 -8
- package/dist/dynamic/components/Masthead/package.json +1 -8
- package/dist/dynamic/components/Menu/package.json +1 -8
- package/dist/dynamic/components/MenuToggle/package.json +1 -8
- package/dist/dynamic/components/Modal/package.json +1 -8
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -8
- package/dist/dynamic/components/Nav/package.json +1 -8
- package/dist/dynamic/components/NotificationBadge/package.json +1 -8
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -8
- package/dist/dynamic/components/NumberInput/package.json +1 -8
- package/dist/dynamic/components/OverflowMenu/package.json +1 -8
- package/dist/dynamic/components/Page/package.json +1 -8
- package/dist/dynamic/components/Pagination/package.json +1 -8
- package/dist/dynamic/components/Panel/package.json +1 -8
- package/dist/dynamic/components/Popover/package.json +1 -8
- package/dist/dynamic/components/Progress/package.json +1 -8
- package/dist/dynamic/components/ProgressStepper/package.json +1 -8
- package/dist/dynamic/components/Radio/package.json +1 -8
- package/dist/dynamic/components/SearchInput/package.json +1 -8
- package/dist/dynamic/components/Select/package.json +1 -8
- package/dist/dynamic/components/Sidebar/package.json +1 -8
- package/dist/dynamic/components/SimpleList/package.json +1 -8
- package/dist/dynamic/components/Skeleton/package.json +1 -8
- package/dist/dynamic/components/SkipToContent/package.json +1 -8
- package/dist/dynamic/components/Slider/package.json +1 -8
- package/dist/dynamic/components/Spinner/package.json +1 -8
- package/dist/dynamic/components/Switch/package.json +1 -8
- package/dist/dynamic/components/Tabs/package.json +1 -8
- package/dist/dynamic/components/TextArea/package.json +1 -8
- package/dist/dynamic/components/TextInput/package.json +1 -8
- package/dist/dynamic/components/TextInputGroup/package.json +1 -8
- package/dist/dynamic/components/Tile/package.json +1 -8
- package/dist/dynamic/components/TimePicker/package.json +1 -8
- package/dist/dynamic/components/Timestamp/package.json +1 -8
- package/dist/dynamic/components/Title/package.json +1 -8
- package/dist/dynamic/components/ToggleGroup/package.json +1 -8
- package/dist/dynamic/components/Toolbar/package.json +1 -8
- package/dist/dynamic/components/Tooltip/package.json +1 -8
- package/dist/dynamic/components/TreeView/package.json +1 -8
- package/dist/dynamic/components/Truncate/package.json +1 -8
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -8
- package/dist/dynamic/components/Wizard/package.json +1 -8
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -8
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -8
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -8
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -8
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -8
- package/dist/dynamic/deprecated/components/package.json +1 -8
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -8
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -8
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -8
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -8
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -8
- package/dist/dynamic/helpers/constants/package.json +1 -8
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -8
- package/dist/dynamic/helpers/fileUtils/package.json +1 -8
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -8
- package/dist/dynamic/helpers/package.json +1 -8
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -8
- package/dist/dynamic/helpers/typeUtils/package.json +1 -8
- package/dist/dynamic/helpers/useInterval/package.json +1 -8
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -8
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -8
- package/dist/dynamic/helpers/util/package.json +1 -8
- package/dist/dynamic/layouts/Bullseye/package.json +1 -8
- package/dist/dynamic/layouts/Flex/package.json +1 -8
- package/dist/dynamic/layouts/Gallery/package.json +1 -8
- package/dist/dynamic/layouts/Grid/package.json +1 -8
- package/dist/dynamic/layouts/Level/package.json +1 -8
- package/dist/dynamic/layouts/Split/package.json +1 -8
- package/dist/dynamic/layouts/Stack/package.json +1 -8
- package/dist/dynamic/styles/package.json +1 -8
- package/dist/esm/components/Accordion/AccordionContent.d.ts +3 -0
- package/dist/esm/components/Accordion/AccordionContent.d.ts.map +1 -1
- package/dist/esm/components/Accordion/AccordionContent.js +2 -2
- package/dist/esm/components/Accordion/AccordionContent.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionExpandableContentBody.d.ts +1 -1
- package/dist/esm/components/Accordion/AccordionExpandableContentBody.d.ts.map +1 -1
- package/dist/esm/components/Accordion/AccordionExpandableContentBody.js +5 -1
- package/dist/esm/components/Accordion/AccordionExpandableContentBody.js.map +1 -1
- package/dist/esm/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/esm/components/Accordion/AccordionItem.d.ts.map +1 -1
- package/dist/esm/components/Accordion/AccordionItem.js +8 -4
- package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/esm/components/Pagination/Pagination.d.ts +2 -0
- package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/esm/components/Pagination/Pagination.js +2 -2
- package/dist/esm/components/Pagination/Pagination.js.map +1 -1
- package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts +3 -0
- package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
- package/dist/esm/components/Pagination/PaginationOptionsMenu.js +19 -16
- package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +5 -1
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardContext.js +4 -0
- package/dist/esm/components/Wizard/WizardContext.js.map +1 -1
- package/dist/esm/components/Wizard/WizardStep.d.ts +2 -2
- package/dist/esm/components/Wizard/WizardStep.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/esm/components/Wizard/WizardToggle.js +1 -2
- package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/js/components/Accordion/AccordionContent.d.ts +3 -0
- package/dist/js/components/Accordion/AccordionContent.d.ts.map +1 -1
- package/dist/js/components/Accordion/AccordionContent.js +2 -2
- package/dist/js/components/Accordion/AccordionContent.js.map +1 -1
- package/dist/js/components/Accordion/AccordionExpandableContentBody.d.ts +1 -1
- package/dist/js/components/Accordion/AccordionExpandableContentBody.d.ts.map +1 -1
- package/dist/js/components/Accordion/AccordionExpandableContentBody.js +4 -1
- package/dist/js/components/Accordion/AccordionExpandableContentBody.js.map +1 -1
- package/dist/js/components/Accordion/AccordionItem.d.ts +1 -1
- package/dist/js/components/Accordion/AccordionItem.d.ts.map +1 -1
- package/dist/js/components/Accordion/AccordionItem.js +7 -4
- package/dist/js/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/js/components/Pagination/Pagination.d.ts +2 -0
- package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/js/components/Pagination/Pagination.js +2 -2
- package/dist/js/components/Pagination/Pagination.js.map +1 -1
- package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts +3 -0
- package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
- package/dist/js/components/Pagination/PaginationOptionsMenu.js +19 -16
- package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
- package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/js/components/Wizard/Wizard.js +5 -1
- package/dist/js/components/Wizard/Wizard.js.map +1 -1
- package/dist/js/components/Wizard/WizardContext.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardContext.js +4 -0
- package/dist/js/components/Wizard/WizardContext.js.map +1 -1
- package/dist/js/components/Wizard/WizardStep.d.ts +2 -2
- package/dist/js/components/Wizard/WizardStep.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.d.ts.map +1 -1
- package/dist/js/components/Wizard/WizardToggle.js +1 -2
- package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
- package/dist/umd/assets/{output-ZK-DtcVp.css → output-CNxOEygf.css} +7815 -7815
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -8
- package/layouts/package.json +1 -8
- package/next/package.json +1 -8
- package/package.json +2 -2
- package/src/components/Accordion/AccordionContent.tsx +9 -2
- package/src/components/Accordion/AccordionExpandableContentBody.tsx +8 -3
- package/src/components/Accordion/AccordionItem.tsx +6 -3
- package/src/components/Accordion/__tests__/AccordionItem.test.tsx +6 -0
- package/src/components/Pagination/Pagination.tsx +4 -0
- package/src/components/Pagination/PaginationOptionsMenu.tsx +42 -34
- package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +42 -38
- package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +854 -774
- package/src/components/Wizard/Wizard.tsx +6 -1
- package/src/components/Wizard/WizardContext.tsx +5 -0
- package/src/components/Wizard/WizardStep.tsx +2 -2
- package/src/components/Wizard/WizardToggle.tsx +1 -2
- package/src/components/Wizard/__tests__/WizardStep.test.tsx +0 -5
- package/src/components/Wizard/examples/Wizard.md +0 -2
- package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +13 -3
- package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +15 -4
- package/src/components/Wizard/examples/WizardWithCustomFooter.tsx +24 -9
- package/src/demos/examples/Wizard/InModalWithDrawer.tsx +10 -5
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +10 -5
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +10 -5
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +10 -5
|
@@ -77,7 +77,7 @@ export const Wizard = ({
|
|
|
77
77
|
onStepChange,
|
|
78
78
|
onSave,
|
|
79
79
|
onClose,
|
|
80
|
-
shouldFocusContent =
|
|
80
|
+
shouldFocusContent = true,
|
|
81
81
|
...wrapperProps
|
|
82
82
|
}: WizardProps) => {
|
|
83
83
|
const [activeStepIndex, setActiveStepIndex] = React.useState(startIndex);
|
|
@@ -92,6 +92,11 @@ export const Wizard = ({
|
|
|
92
92
|
}
|
|
93
93
|
}, [startIndex]);
|
|
94
94
|
|
|
95
|
+
// When children change, active step index should reset
|
|
96
|
+
React.useEffect(() => {
|
|
97
|
+
setActiveStepIndex(startIndex);
|
|
98
|
+
}, [children, startIndex]);
|
|
99
|
+
|
|
95
100
|
const focusMainContentElement = () =>
|
|
96
101
|
setTimeout(() => {
|
|
97
102
|
wrapperRef?.current?.focus && wrapperRef.current.focus();
|
|
@@ -74,6 +74,11 @@ export const WizardContextProvider: React.FunctionComponent<WizardContextProvide
|
|
|
74
74
|
const [currentSteps, setCurrentSteps] = React.useState<WizardStepType[]>(initialSteps);
|
|
75
75
|
const [currentFooter, setCurrentFooter] = React.useState<WizardFooterType>();
|
|
76
76
|
|
|
77
|
+
// Callback to update steps if they change after initial render
|
|
78
|
+
React.useEffect(() => {
|
|
79
|
+
setCurrentSteps(initialSteps);
|
|
80
|
+
}, [initialSteps]);
|
|
81
|
+
|
|
77
82
|
// Combined initial and current state steps
|
|
78
83
|
const steps = React.useMemo(
|
|
79
84
|
() =>
|
|
@@ -16,8 +16,8 @@ export interface WizardStepProps {
|
|
|
16
16
|
id: string | number;
|
|
17
17
|
/** Optional for when the step is used as a parent to sub-steps */
|
|
18
18
|
children?: React.ReactNode | undefined;
|
|
19
|
-
/** Props for WizardBody that wraps content by default.
|
|
20
|
-
body?: Omit<Omit<WizardBodyProps, 'children'>, 'children'
|
|
19
|
+
/** Props for WizardBody that wraps content by default. */
|
|
20
|
+
body?: Omit<Omit<WizardBodyProps, 'children'>, 'children'>;
|
|
21
21
|
/** Optional list of sub-steps */
|
|
22
22
|
steps?: React.ReactElement<WizardStepProps>[];
|
|
23
23
|
/** Flag to disable the step's navigation item */
|
|
@@ -73,8 +73,7 @@ export const WizardToggle = ({
|
|
|
73
73
|
|
|
74
74
|
return (
|
|
75
75
|
<React.Fragment key={step.id}>
|
|
76
|
-
{activeStep?.id === step.id &&
|
|
77
|
-
(body || body === undefined ? <WizardBody {...body}>{children}</WizardBody> : children)}
|
|
76
|
+
{activeStep?.id === step.id && <WizardBody {...body}>{children}</WizardBody>}
|
|
78
77
|
|
|
79
78
|
<div key={step.id} style={{ display: 'none' }}>
|
|
80
79
|
<WizardStep {...propsWithoutChildren} />
|
|
@@ -55,11 +55,6 @@ test('renders with children', () => {
|
|
|
55
55
|
expect(screen.getByText('content')).toBeVisible();
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
test('excludes WizardBody when body is set to null', () => {
|
|
59
|
-
render(<WizardStep id="test-step" name="Test step" body={null} />);
|
|
60
|
-
expect(screen.queryByRole('main')).toBeNull();
|
|
61
|
-
});
|
|
62
|
-
|
|
63
58
|
test('updates "isDisabled" in context when the value changes', () => {
|
|
64
59
|
render(<WizardStep {...testStep} isDisabled />);
|
|
65
60
|
expect(setStep).toHaveBeenCalledWith({ ...testStepProps, isDisabled: true, isVisited: true });
|
|
@@ -65,8 +65,6 @@ import layout from '@patternfly/react-styles/css/layouts/Bullseye/bullseye';
|
|
|
65
65
|
|
|
66
66
|
To focus the main content element of the `Wizard`, pass in the `shouldFocusContent` property. It is recommended that this is passed in so that users can navigate through a `WizardStep` content in order.
|
|
67
67
|
|
|
68
|
-
If a `WizardStep` is passed a `body={null}` property, you must manually handle focus.
|
|
69
|
-
|
|
70
68
|
```ts file="./WizardFocusOnNextBack.tsx"
|
|
71
69
|
|
|
72
70
|
```
|
|
@@ -59,17 +59,27 @@ const StepContentWithDrawer: React.FunctionComponent = () => {
|
|
|
59
59
|
|
|
60
60
|
export const WizardStepDrawerContent: React.FunctionComponent = () => (
|
|
61
61
|
<Wizard height={400} title="With drawer wizard">
|
|
62
|
-
<WizardStep body={
|
|
62
|
+
<WizardStep body={{ hasNoPadding: true }} name="Step 1" id="with-drawer-step-1">
|
|
63
63
|
<StepContentWithDrawer />
|
|
64
64
|
</WizardStep>
|
|
65
65
|
<WizardStep
|
|
66
66
|
name="Step 2"
|
|
67
67
|
id="with-drawer-step-2"
|
|
68
68
|
steps={[
|
|
69
|
-
<WizardStep
|
|
69
|
+
<WizardStep
|
|
70
|
+
body={{ hasNoPadding: true }}
|
|
71
|
+
key="with-drawer-substep-1"
|
|
72
|
+
name="Substep 1"
|
|
73
|
+
id="with-drawer-substep-1"
|
|
74
|
+
>
|
|
70
75
|
<StepContentWithDrawer />
|
|
71
76
|
</WizardStep>,
|
|
72
|
-
<WizardStep
|
|
77
|
+
<WizardStep
|
|
78
|
+
body={{ hasNoPadding: true }}
|
|
79
|
+
key="with-drawer-substep-2"
|
|
80
|
+
name="Substep 2"
|
|
81
|
+
id="with-drawer-substep-2"
|
|
82
|
+
>
|
|
73
83
|
<StepContentWithDrawer />
|
|
74
84
|
</WizardStep>
|
|
75
85
|
]}
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
|
+
ActionList,
|
|
6
|
+
ActionListGroup,
|
|
7
|
+
ActionListItem,
|
|
5
8
|
Alert,
|
|
6
9
|
EmptyState,
|
|
7
10
|
EmptyStateFooter,
|
|
@@ -96,10 +99,18 @@ const LastStepFooter: React.FunctionComponent<LastStepFooterProps> = ({
|
|
|
96
99
|
|
|
97
100
|
return (
|
|
98
101
|
<WizardFooterWrapper>
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
<ActionList>
|
|
103
|
+
<ActionListGroup>
|
|
104
|
+
<ActionListItem>
|
|
105
|
+
<Button variant="secondary" onClick={goToPrevStep}>
|
|
106
|
+
Back
|
|
107
|
+
</Button>
|
|
108
|
+
</ActionListItem>
|
|
109
|
+
<ActionListItem>
|
|
110
|
+
<Button onClick={onValidate}>Validate</Button>
|
|
111
|
+
</ActionListItem>
|
|
112
|
+
</ActionListGroup>
|
|
113
|
+
</ActionList>
|
|
103
114
|
</WizardFooterWrapper>
|
|
104
115
|
);
|
|
105
116
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
+
ActionList,
|
|
5
|
+
ActionListGroup,
|
|
6
|
+
ActionListItem,
|
|
4
7
|
Button,
|
|
5
8
|
Flex,
|
|
6
9
|
FlexItem,
|
|
@@ -40,15 +43,27 @@ const CustomStepTwoFooter = () => {
|
|
|
40
43
|
|
|
41
44
|
return (
|
|
42
45
|
<WizardFooterWrapper>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
<ActionList>
|
|
47
|
+
<ActionListGroup>
|
|
48
|
+
<ActionListItem>
|
|
49
|
+
<Button variant="secondary" onClick={goToPrevStep} isDisabled={isLoading}>
|
|
50
|
+
Back
|
|
51
|
+
</Button>
|
|
52
|
+
</ActionListItem>
|
|
53
|
+
<ActionListItem>
|
|
54
|
+
<Button variant="primary" onClick={onNext} isLoading={isLoading} isDisabled={isLoading}>
|
|
55
|
+
Async Next
|
|
56
|
+
</Button>
|
|
57
|
+
</ActionListItem>
|
|
58
|
+
</ActionListGroup>
|
|
59
|
+
<ActionListGroup>
|
|
60
|
+
<ActionListItem>
|
|
61
|
+
<Button variant="link" onClick={close} isDisabled={isLoading}>
|
|
62
|
+
Cancel
|
|
63
|
+
</Button>
|
|
64
|
+
</ActionListItem>
|
|
65
|
+
</ActionListGroup>
|
|
66
|
+
</ActionList>
|
|
52
67
|
</WizardFooterWrapper>
|
|
53
68
|
);
|
|
54
69
|
};
|
|
@@ -88,25 +88,30 @@ export const WizardModalWithDrawerDemo: React.FunctionComponent = () => {
|
|
|
88
88
|
}
|
|
89
89
|
height={400}
|
|
90
90
|
>
|
|
91
|
-
<WizardStep body={
|
|
91
|
+
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
92
92
|
{createStepContentWithDrawer('Information step')}
|
|
93
93
|
</WizardStep>
|
|
94
94
|
<WizardStep
|
|
95
95
|
name="Configuration"
|
|
96
96
|
id="wizard-step-2"
|
|
97
97
|
steps={[
|
|
98
|
-
<WizardStep body={
|
|
98
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
|
|
99
99
|
{createStepContentWithDrawer('Configuration substep A')}
|
|
100
100
|
</WizardStep>,
|
|
101
|
-
<WizardStep body={
|
|
101
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
|
|
102
102
|
{createStepContentWithDrawer('Configuration substep B')}
|
|
103
103
|
</WizardStep>
|
|
104
104
|
]}
|
|
105
105
|
/>
|
|
106
|
-
<WizardStep body={
|
|
106
|
+
<WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
|
|
107
107
|
{createStepContentWithDrawer('Additional step')}
|
|
108
108
|
</WizardStep>
|
|
109
|
-
<WizardStep
|
|
109
|
+
<WizardStep
|
|
110
|
+
body={{ hasNoPadding: true }}
|
|
111
|
+
name="Review"
|
|
112
|
+
id="wizard-step-4"
|
|
113
|
+
footer={{ nextButtonText: 'Finish' }}
|
|
114
|
+
>
|
|
110
115
|
{createStepContentWithDrawer('Review step')}
|
|
111
116
|
</WizardStep>
|
|
112
117
|
</Wizard>
|
|
@@ -95,25 +95,30 @@ export const WizardModalWithDrawerInfoStepDemo: React.FunctionComponent = () =>
|
|
|
95
95
|
}
|
|
96
96
|
height={400}
|
|
97
97
|
>
|
|
98
|
-
<WizardStep body={
|
|
98
|
+
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
99
99
|
{createStepContentWithDrawer('Information step')}
|
|
100
100
|
</WizardStep>
|
|
101
101
|
<WizardStep
|
|
102
102
|
name="Configuration"
|
|
103
103
|
id="wizard-step-2"
|
|
104
104
|
steps={[
|
|
105
|
-
<WizardStep body={
|
|
105
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
|
|
106
106
|
{createStepContentWithDrawer('Configuration substep A')}
|
|
107
107
|
</WizardStep>,
|
|
108
|
-
<WizardStep body={
|
|
108
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
|
|
109
109
|
{createStepContentWithDrawer('Configuration substep B')}
|
|
110
110
|
</WizardStep>
|
|
111
111
|
]}
|
|
112
112
|
/>
|
|
113
|
-
<WizardStep body={
|
|
113
|
+
<WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
|
|
114
114
|
{createStepContentWithDrawer('Additional step')}
|
|
115
115
|
</WizardStep>
|
|
116
|
-
<WizardStep
|
|
116
|
+
<WizardStep
|
|
117
|
+
body={{ hasNoPadding: true }}
|
|
118
|
+
name="Review"
|
|
119
|
+
id="wizard-step-4"
|
|
120
|
+
footer={{ nextButtonText: 'Finish' }}
|
|
121
|
+
>
|
|
117
122
|
{createStepContentWithDrawer('Review step')}
|
|
118
123
|
</WizardStep>
|
|
119
124
|
</Wizard>
|
|
@@ -166,25 +166,30 @@ export const WizardFullPageWithDrawerDemo: React.FunctionComponent = () => {
|
|
|
166
166
|
</PageSection>
|
|
167
167
|
<PageSection type={PageSectionTypes.wizard}>
|
|
168
168
|
<Wizard>
|
|
169
|
-
<WizardStep body={
|
|
169
|
+
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
170
170
|
{createStepContentWithDrawer('Information step')}
|
|
171
171
|
</WizardStep>
|
|
172
172
|
<WizardStep
|
|
173
173
|
name="Configuration"
|
|
174
174
|
id="wizard-step-2"
|
|
175
175
|
steps={[
|
|
176
|
-
<WizardStep body={
|
|
176
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
|
|
177
177
|
{createStepContentWithDrawer('Configuration substep A')}
|
|
178
178
|
</WizardStep>,
|
|
179
|
-
<WizardStep body={
|
|
179
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
|
|
180
180
|
{createStepContentWithDrawer('Configuration substep B')}
|
|
181
181
|
</WizardStep>
|
|
182
182
|
]}
|
|
183
183
|
/>
|
|
184
|
-
<WizardStep body={
|
|
184
|
+
<WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
|
|
185
185
|
{createStepContentWithDrawer('Additional step')}
|
|
186
186
|
</WizardStep>
|
|
187
|
-
<WizardStep
|
|
187
|
+
<WizardStep
|
|
188
|
+
body={{ hasNoPadding: true }}
|
|
189
|
+
name="Review"
|
|
190
|
+
id="wizard-step-4"
|
|
191
|
+
footer={{ nextButtonText: 'Finish' }}
|
|
192
|
+
>
|
|
188
193
|
{createStepContentWithDrawer('Review step')}
|
|
189
194
|
</WizardStep>
|
|
190
195
|
</Wizard>
|
|
@@ -171,25 +171,30 @@ export const WizardFullPageWithDrawerInfoStepDemo: React.FunctionComponent = ()
|
|
|
171
171
|
</PageSection>
|
|
172
172
|
<PageSection type={PageSectionTypes.wizard} ß>
|
|
173
173
|
<Wizard>
|
|
174
|
-
<WizardStep body={
|
|
174
|
+
<WizardStep body={{ hasNoPadding: true }} name="Information" id="wizard-step-1">
|
|
175
175
|
{createStepContentWithDrawer('Information step')}
|
|
176
176
|
</WizardStep>
|
|
177
177
|
<WizardStep
|
|
178
178
|
name="Configuration"
|
|
179
179
|
id="wizard-step-2"
|
|
180
180
|
steps={[
|
|
181
|
-
<WizardStep body={
|
|
181
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
|
|
182
182
|
{createStepContentWithDrawer('Configuration substep A')}
|
|
183
183
|
</WizardStep>,
|
|
184
|
-
<WizardStep body={
|
|
184
|
+
<WizardStep body={{ hasNoPadding: true }} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
|
|
185
185
|
{createStepContentWithDrawer('Configuration substep B')}
|
|
186
186
|
</WizardStep>
|
|
187
187
|
]}
|
|
188
188
|
/>
|
|
189
|
-
<WizardStep body={
|
|
189
|
+
<WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
|
|
190
190
|
{createStepContentWithDrawer('Additional step')}
|
|
191
191
|
</WizardStep>
|
|
192
|
-
<WizardStep
|
|
192
|
+
<WizardStep
|
|
193
|
+
body={{ hasNoPadding: true }}
|
|
194
|
+
name="Review"
|
|
195
|
+
id="wizard-step-4"
|
|
196
|
+
footer={{ nextButtonText: 'Finish' }}
|
|
197
|
+
>
|
|
193
198
|
{createStepContentWithDrawer('Review step')}
|
|
194
199
|
</WizardStep>
|
|
195
200
|
</Wizard>
|