@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.
Files changed (202) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/components/package.json +1 -8
  3. package/deprecated/package.json +1 -8
  4. package/dist/dynamic/components/AboutModal/package.json +1 -8
  5. package/dist/dynamic/components/Accordion/package.json +1 -8
  6. package/dist/dynamic/components/ActionList/package.json +1 -8
  7. package/dist/dynamic/components/Alert/package.json +1 -8
  8. package/dist/dynamic/components/Avatar/package.json +1 -8
  9. package/dist/dynamic/components/BackToTop/package.json +1 -8
  10. package/dist/dynamic/components/Backdrop/package.json +1 -8
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -8
  12. package/dist/dynamic/components/Badge/package.json +1 -8
  13. package/dist/dynamic/components/Banner/package.json +1 -8
  14. package/dist/dynamic/components/Brand/package.json +1 -8
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -8
  16. package/dist/dynamic/components/Button/package.json +1 -8
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -8
  18. package/dist/dynamic/components/Card/package.json +1 -8
  19. package/dist/dynamic/components/Checkbox/package.json +1 -8
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -8
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -8
  22. package/dist/dynamic/components/Content/package.json +1 -8
  23. package/dist/dynamic/components/DataList/package.json +1 -8
  24. package/dist/dynamic/components/DatePicker/package.json +1 -8
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -8
  26. package/dist/dynamic/components/Divider/package.json +1 -8
  27. package/dist/dynamic/components/Drawer/package.json +1 -8
  28. package/dist/dynamic/components/Dropdown/package.json +1 -8
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -8
  30. package/dist/dynamic/components/EmptyState/package.json +1 -8
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -8
  32. package/dist/dynamic/components/FileUpload/package.json +1 -8
  33. package/dist/dynamic/components/Form/package.json +1 -8
  34. package/dist/dynamic/components/FormSelect/package.json +1 -8
  35. package/dist/dynamic/components/HelperText/package.json +1 -8
  36. package/dist/dynamic/components/Hint/package.json +1 -8
  37. package/dist/dynamic/components/Icon/package.json +1 -8
  38. package/dist/dynamic/components/InputGroup/package.json +1 -8
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -8
  40. package/dist/dynamic/components/Label/package.json +1 -8
  41. package/dist/dynamic/components/List/package.json +1 -8
  42. package/dist/dynamic/components/LoginPage/package.json +1 -8
  43. package/dist/dynamic/components/Masthead/package.json +1 -8
  44. package/dist/dynamic/components/Menu/package.json +1 -8
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -8
  46. package/dist/dynamic/components/Modal/package.json +1 -8
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -8
  48. package/dist/dynamic/components/Nav/package.json +1 -8
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -8
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -8
  51. package/dist/dynamic/components/NumberInput/package.json +1 -8
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -8
  53. package/dist/dynamic/components/Page/package.json +1 -8
  54. package/dist/dynamic/components/Pagination/package.json +1 -8
  55. package/dist/dynamic/components/Panel/package.json +1 -8
  56. package/dist/dynamic/components/Popover/package.json +1 -8
  57. package/dist/dynamic/components/Progress/package.json +1 -8
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -8
  59. package/dist/dynamic/components/Radio/package.json +1 -8
  60. package/dist/dynamic/components/SearchInput/package.json +1 -8
  61. package/dist/dynamic/components/Select/package.json +1 -8
  62. package/dist/dynamic/components/Sidebar/package.json +1 -8
  63. package/dist/dynamic/components/SimpleList/package.json +1 -8
  64. package/dist/dynamic/components/Skeleton/package.json +1 -8
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -8
  66. package/dist/dynamic/components/Slider/package.json +1 -8
  67. package/dist/dynamic/components/Spinner/package.json +1 -8
  68. package/dist/dynamic/components/Switch/package.json +1 -8
  69. package/dist/dynamic/components/Tabs/package.json +1 -8
  70. package/dist/dynamic/components/TextArea/package.json +1 -8
  71. package/dist/dynamic/components/TextInput/package.json +1 -8
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -8
  73. package/dist/dynamic/components/Tile/package.json +1 -8
  74. package/dist/dynamic/components/TimePicker/package.json +1 -8
  75. package/dist/dynamic/components/Timestamp/package.json +1 -8
  76. package/dist/dynamic/components/Title/package.json +1 -8
  77. package/dist/dynamic/components/ToggleGroup/package.json +1 -8
  78. package/dist/dynamic/components/Toolbar/package.json +1 -8
  79. package/dist/dynamic/components/Tooltip/package.json +1 -8
  80. package/dist/dynamic/components/TreeView/package.json +1 -8
  81. package/dist/dynamic/components/Truncate/package.json +1 -8
  82. package/dist/dynamic/components/Wizard/hooks/package.json +1 -8
  83. package/dist/dynamic/components/Wizard/package.json +1 -8
  84. package/dist/dynamic/deprecated/components/Chip/package.json +1 -8
  85. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -8
  86. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -8
  87. package/dist/dynamic/deprecated/components/Modal/package.json +1 -8
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -8
  89. package/dist/dynamic/deprecated/components/package.json +1 -8
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -8
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -8
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -8
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -8
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -8
  95. package/dist/dynamic/helpers/constants/package.json +1 -8
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -8
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -8
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -8
  99. package/dist/dynamic/helpers/package.json +1 -8
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -8
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -8
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -8
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -8
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -8
  105. package/dist/dynamic/helpers/util/package.json +1 -8
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -8
  107. package/dist/dynamic/layouts/Flex/package.json +1 -8
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -8
  109. package/dist/dynamic/layouts/Grid/package.json +1 -8
  110. package/dist/dynamic/layouts/Level/package.json +1 -8
  111. package/dist/dynamic/layouts/Split/package.json +1 -8
  112. package/dist/dynamic/layouts/Stack/package.json +1 -8
  113. package/dist/dynamic/styles/package.json +1 -8
  114. package/dist/esm/components/Accordion/AccordionContent.d.ts +3 -0
  115. package/dist/esm/components/Accordion/AccordionContent.d.ts.map +1 -1
  116. package/dist/esm/components/Accordion/AccordionContent.js +2 -2
  117. package/dist/esm/components/Accordion/AccordionContent.js.map +1 -1
  118. package/dist/esm/components/Accordion/AccordionExpandableContentBody.d.ts +1 -1
  119. package/dist/esm/components/Accordion/AccordionExpandableContentBody.d.ts.map +1 -1
  120. package/dist/esm/components/Accordion/AccordionExpandableContentBody.js +5 -1
  121. package/dist/esm/components/Accordion/AccordionExpandableContentBody.js.map +1 -1
  122. package/dist/esm/components/Accordion/AccordionItem.d.ts +1 -1
  123. package/dist/esm/components/Accordion/AccordionItem.d.ts.map +1 -1
  124. package/dist/esm/components/Accordion/AccordionItem.js +8 -4
  125. package/dist/esm/components/Accordion/AccordionItem.js.map +1 -1
  126. package/dist/esm/components/Pagination/Pagination.d.ts +2 -0
  127. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  128. package/dist/esm/components/Pagination/Pagination.js +2 -2
  129. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  130. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts +3 -0
  131. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  132. package/dist/esm/components/Pagination/PaginationOptionsMenu.js +19 -16
  133. package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  134. package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
  135. package/dist/esm/components/Wizard/Wizard.js +5 -1
  136. package/dist/esm/components/Wizard/Wizard.js.map +1 -1
  137. package/dist/esm/components/Wizard/WizardContext.d.ts.map +1 -1
  138. package/dist/esm/components/Wizard/WizardContext.js +4 -0
  139. package/dist/esm/components/Wizard/WizardContext.js.map +1 -1
  140. package/dist/esm/components/Wizard/WizardStep.d.ts +2 -2
  141. package/dist/esm/components/Wizard/WizardStep.d.ts.map +1 -1
  142. package/dist/esm/components/Wizard/WizardToggle.d.ts.map +1 -1
  143. package/dist/esm/components/Wizard/WizardToggle.js +1 -2
  144. package/dist/esm/components/Wizard/WizardToggle.js.map +1 -1
  145. package/dist/js/components/Accordion/AccordionContent.d.ts +3 -0
  146. package/dist/js/components/Accordion/AccordionContent.d.ts.map +1 -1
  147. package/dist/js/components/Accordion/AccordionContent.js +2 -2
  148. package/dist/js/components/Accordion/AccordionContent.js.map +1 -1
  149. package/dist/js/components/Accordion/AccordionExpandableContentBody.d.ts +1 -1
  150. package/dist/js/components/Accordion/AccordionExpandableContentBody.d.ts.map +1 -1
  151. package/dist/js/components/Accordion/AccordionExpandableContentBody.js +4 -1
  152. package/dist/js/components/Accordion/AccordionExpandableContentBody.js.map +1 -1
  153. package/dist/js/components/Accordion/AccordionItem.d.ts +1 -1
  154. package/dist/js/components/Accordion/AccordionItem.d.ts.map +1 -1
  155. package/dist/js/components/Accordion/AccordionItem.js +7 -4
  156. package/dist/js/components/Accordion/AccordionItem.js.map +1 -1
  157. package/dist/js/components/Pagination/Pagination.d.ts +2 -0
  158. package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
  159. package/dist/js/components/Pagination/Pagination.js +2 -2
  160. package/dist/js/components/Pagination/Pagination.js.map +1 -1
  161. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts +3 -0
  162. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  163. package/dist/js/components/Pagination/PaginationOptionsMenu.js +19 -16
  164. package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  165. package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
  166. package/dist/js/components/Wizard/Wizard.js +5 -1
  167. package/dist/js/components/Wizard/Wizard.js.map +1 -1
  168. package/dist/js/components/Wizard/WizardContext.d.ts.map +1 -1
  169. package/dist/js/components/Wizard/WizardContext.js +4 -0
  170. package/dist/js/components/Wizard/WizardContext.js.map +1 -1
  171. package/dist/js/components/Wizard/WizardStep.d.ts +2 -2
  172. package/dist/js/components/Wizard/WizardStep.d.ts.map +1 -1
  173. package/dist/js/components/Wizard/WizardToggle.d.ts.map +1 -1
  174. package/dist/js/components/Wizard/WizardToggle.js +1 -2
  175. package/dist/js/components/Wizard/WizardToggle.js.map +1 -1
  176. package/dist/umd/assets/{output-ZK-DtcVp.css → output-CNxOEygf.css} +7815 -7815
  177. package/dist/umd/react-core.min.js +1 -1
  178. package/helpers/package.json +1 -8
  179. package/layouts/package.json +1 -8
  180. package/next/package.json +1 -8
  181. package/package.json +2 -2
  182. package/src/components/Accordion/AccordionContent.tsx +9 -2
  183. package/src/components/Accordion/AccordionExpandableContentBody.tsx +8 -3
  184. package/src/components/Accordion/AccordionItem.tsx +6 -3
  185. package/src/components/Accordion/__tests__/AccordionItem.test.tsx +6 -0
  186. package/src/components/Pagination/Pagination.tsx +4 -0
  187. package/src/components/Pagination/PaginationOptionsMenu.tsx +42 -34
  188. package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +42 -38
  189. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +854 -774
  190. package/src/components/Wizard/Wizard.tsx +6 -1
  191. package/src/components/Wizard/WizardContext.tsx +5 -0
  192. package/src/components/Wizard/WizardStep.tsx +2 -2
  193. package/src/components/Wizard/WizardToggle.tsx +1 -2
  194. package/src/components/Wizard/__tests__/WizardStep.test.tsx +0 -5
  195. package/src/components/Wizard/examples/Wizard.md +0 -2
  196. package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +13 -3
  197. package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +15 -4
  198. package/src/components/Wizard/examples/WizardWithCustomFooter.tsx +24 -9
  199. package/src/demos/examples/Wizard/InModalWithDrawer.tsx +10 -5
  200. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +10 -5
  201. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +10 -5
  202. 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 = false,
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. Can be set to null for exclusion of WizardBody. */
20
- body?: Omit<Omit<WizardBodyProps, 'children'>, 'children'> | null;
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={null} name="Step 1" id="with-drawer-step-1">
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 body={null} key="with-drawer-substep-1" name="Substep 1" id="with-drawer-substep-1">
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 body={null} key="with-drawer-substep-2" name="Substep 2" id="with-drawer-substep-2">
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
- <Button onClick={onValidate}>Validate</Button>
100
- <Button variant="secondary" onClick={goToPrevStep}>
101
- Back
102
- </Button>
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
- <Button variant="secondary" onClick={goToPrevStep} isDisabled={isLoading}>
44
- Back
45
- </Button>
46
- <Button variant="primary" onClick={onNext} isLoading={isLoading} isDisabled={isLoading}>
47
- Async Next
48
- </Button>
49
- <Button variant="link" onClick={close} isDisabled={isLoading}>
50
- Cancel
51
- </Button>
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={null} name="Information" id="wizard-step-1">
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={null} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
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={null} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
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={null} name="Additional" id="wizard-step-3">
106
+ <WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
107
107
  {createStepContentWithDrawer('Additional step')}
108
108
  </WizardStep>
109
- <WizardStep body={null} name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}>
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={null} name="Information" id="wizard-step-1">
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={null} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
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={null} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
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={null} name="Additional" id="wizard-step-3">
113
+ <WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
114
114
  {createStepContentWithDrawer('Additional step')}
115
115
  </WizardStep>
116
- <WizardStep body={null} name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}>
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={null} name="Information" id="wizard-step-1">
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={null} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
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={null} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
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={null} name="Additional" id="wizard-step-3">
184
+ <WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
185
185
  {createStepContentWithDrawer('Additional step')}
186
186
  </WizardStep>
187
- <WizardStep body={null} name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}>
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={null} name="Information" id="wizard-step-1">
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={null} name="Substep A" id="wizard-step-2a" key="wizard-step-2a">
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={null} name="Substep B" id="wizard-step-2b" key="wizard-step-2b">
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={null} name="Additional" id="wizard-step-3">
189
+ <WizardStep body={{ hasNoPadding: true }} name="Additional" id="wizard-step-3">
190
190
  {createStepContentWithDrawer('Additional step')}
191
191
  </WizardStep>
192
- <WizardStep body={null} name="Review" id="wizard-step-4" footer={{ nextButtonText: 'Finish' }}>
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>