@patternfly/react-core 6.0.0-alpha.86 → 6.0.0-alpha.88

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 (289) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/AboutModal/package.json +1 -1
  5. package/dist/dynamic/components/Accordion/package.json +1 -1
  6. package/dist/dynamic/components/ActionList/package.json +1 -1
  7. package/dist/dynamic/components/Alert/package.json +1 -1
  8. package/dist/dynamic/components/Avatar/package.json +1 -1
  9. package/dist/dynamic/components/BackToTop/package.json +1 -1
  10. package/dist/dynamic/components/Backdrop/package.json +1 -1
  11. package/dist/dynamic/components/BackgroundImage/package.json +1 -1
  12. package/dist/dynamic/components/Badge/package.json +1 -1
  13. package/dist/dynamic/components/Banner/package.json +1 -1
  14. package/dist/dynamic/components/Brand/package.json +1 -1
  15. package/dist/dynamic/components/Breadcrumb/package.json +1 -1
  16. package/dist/dynamic/components/Button/package.json +1 -1
  17. package/dist/dynamic/components/CalendarMonth/package.json +1 -1
  18. package/dist/dynamic/components/Card/package.json +1 -1
  19. package/dist/dynamic/components/Checkbox/package.json +1 -1
  20. package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
  21. package/dist/dynamic/components/CodeBlock/package.json +1 -1
  22. package/dist/dynamic/components/Content/package.json +1 -1
  23. package/dist/dynamic/components/DataList/package.json +1 -1
  24. package/dist/dynamic/components/DatePicker/package.json +1 -1
  25. package/dist/dynamic/components/DescriptionList/package.json +1 -1
  26. package/dist/dynamic/components/Divider/package.json +1 -1
  27. package/dist/dynamic/components/Drawer/package.json +1 -1
  28. package/dist/dynamic/components/Dropdown/package.json +1 -1
  29. package/dist/dynamic/components/DualListSelector/package.json +1 -1
  30. package/dist/dynamic/components/EmptyState/package.json +1 -1
  31. package/dist/dynamic/components/ExpandableSection/package.json +1 -1
  32. package/dist/dynamic/components/FileUpload/package.json +1 -1
  33. package/dist/dynamic/components/Form/package.json +1 -1
  34. package/dist/dynamic/components/FormSelect/package.json +1 -1
  35. package/dist/dynamic/components/HelperText/package.json +1 -1
  36. package/dist/dynamic/components/Hint/package.json +1 -1
  37. package/dist/dynamic/components/Icon/package.json +1 -1
  38. package/dist/dynamic/components/InputGroup/package.json +1 -1
  39. package/dist/dynamic/components/JumpLinks/package.json +1 -1
  40. package/dist/dynamic/components/Label/package.json +1 -1
  41. package/dist/dynamic/components/List/package.json +1 -1
  42. package/dist/dynamic/components/LoginPage/package.json +1 -1
  43. package/dist/dynamic/components/Masthead/package.json +1 -1
  44. package/dist/dynamic/components/Menu/package.json +1 -1
  45. package/dist/dynamic/components/MenuToggle/package.json +1 -1
  46. package/dist/dynamic/components/Modal/package.json +1 -1
  47. package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
  48. package/dist/dynamic/components/Nav/package.json +1 -1
  49. package/dist/dynamic/components/NotificationBadge/package.json +1 -1
  50. package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
  51. package/dist/dynamic/components/NumberInput/package.json +1 -1
  52. package/dist/dynamic/components/OverflowMenu/package.json +1 -1
  53. package/dist/dynamic/components/Page/package.json +1 -1
  54. package/dist/dynamic/components/Pagination/package.json +1 -1
  55. package/dist/dynamic/components/Panel/package.json +1 -1
  56. package/dist/dynamic/components/Popover/package.json +1 -1
  57. package/dist/dynamic/components/Progress/package.json +1 -1
  58. package/dist/dynamic/components/ProgressStepper/package.json +1 -1
  59. package/dist/dynamic/components/Radio/package.json +1 -1
  60. package/dist/dynamic/components/SearchInput/package.json +1 -1
  61. package/dist/dynamic/components/Select/package.json +1 -1
  62. package/dist/dynamic/components/Sidebar/package.json +1 -1
  63. package/dist/dynamic/components/SimpleList/package.json +1 -1
  64. package/dist/dynamic/components/Skeleton/package.json +1 -1
  65. package/dist/dynamic/components/SkipToContent/package.json +1 -1
  66. package/dist/dynamic/components/Slider/package.json +1 -1
  67. package/dist/dynamic/components/Spinner/package.json +1 -1
  68. package/dist/dynamic/components/Switch/package.json +1 -1
  69. package/dist/dynamic/components/Tabs/package.json +1 -1
  70. package/dist/dynamic/components/TextArea/package.json +1 -1
  71. package/dist/dynamic/components/TextInput/package.json +1 -1
  72. package/dist/dynamic/components/TextInputGroup/package.json +1 -1
  73. package/dist/dynamic/components/Tile/package.json +1 -1
  74. package/dist/dynamic/components/TimePicker/package.json +1 -1
  75. package/dist/dynamic/components/Timestamp/package.json +1 -1
  76. package/dist/dynamic/components/Title/package.json +1 -1
  77. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  78. package/dist/dynamic/components/Toolbar/package.json +1 -1
  79. package/dist/dynamic/components/Tooltip/package.json +1 -1
  80. package/dist/dynamic/components/TreeView/package.json +1 -1
  81. package/dist/dynamic/components/Truncate/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  83. package/dist/dynamic/components/Wizard/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  88. package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
  89. package/dist/dynamic/deprecated/components/package.json +1 -1
  90. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  91. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  92. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  93. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  94. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  95. package/dist/dynamic/helpers/constants/package.json +1 -1
  96. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  97. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  98. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  99. package/dist/dynamic/helpers/package.json +1 -1
  100. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  101. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  102. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  103. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  104. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  105. package/dist/dynamic/helpers/util/package.json +1 -1
  106. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  107. package/dist/dynamic/layouts/Flex/package.json +1 -1
  108. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  109. package/dist/dynamic/layouts/Grid/package.json +1 -1
  110. package/dist/dynamic/layouts/Level/package.json +1 -1
  111. package/dist/dynamic/layouts/Split/package.json +1 -1
  112. package/dist/dynamic/layouts/Stack/package.json +1 -1
  113. package/dist/dynamic/styles/package.json +1 -1
  114. package/dist/dynamic-modules.json +3 -11
  115. package/dist/esm/components/Content/Content.d.ts +3 -3
  116. package/dist/esm/components/Content/Content.d.ts.map +1 -1
  117. package/dist/esm/components/Content/Content.js +24 -24
  118. package/dist/esm/components/Content/Content.js.map +1 -1
  119. package/dist/esm/components/Content/index.d.ts +0 -3
  120. package/dist/esm/components/Content/index.d.ts.map +1 -1
  121. package/dist/esm/components/Content/index.js +0 -3
  122. package/dist/esm/components/Content/index.js.map +1 -1
  123. package/dist/esm/components/Page/Page.d.ts +2 -0
  124. package/dist/esm/components/Page/Page.d.ts.map +1 -1
  125. package/dist/esm/components/Page/Page.js +2 -2
  126. package/dist/esm/components/Page/Page.js.map +1 -1
  127. package/dist/esm/components/Page/PageGroup.d.ts +3 -1
  128. package/dist/esm/components/Page/PageGroup.d.ts.map +1 -1
  129. package/dist/esm/components/Page/PageGroup.js +2 -2
  130. package/dist/esm/components/Page/PageGroup.js.map +1 -1
  131. package/dist/esm/components/Page/PageSection.d.ts +1 -1
  132. package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
  133. package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
  134. package/dist/esm/components/Wizard/Wizard.js +5 -3
  135. package/dist/esm/components/Wizard/Wizard.js.map +1 -1
  136. package/dist/esm/components/Wizard/WizardContext.d.ts.map +1 -1
  137. package/dist/esm/components/Wizard/WizardContext.js +13 -3
  138. package/dist/esm/components/Wizard/WizardContext.js.map +1 -1
  139. package/dist/esm/demos/DashboardWrapper.d.ts.map +1 -1
  140. package/dist/esm/demos/DashboardWrapper.js +4 -4
  141. package/dist/esm/demos/DashboardWrapper.js.map +1 -1
  142. package/dist/js/components/Content/Content.d.ts +3 -3
  143. package/dist/js/components/Content/Content.d.ts.map +1 -1
  144. package/dist/js/components/Content/Content.js +26 -26
  145. package/dist/js/components/Content/Content.js.map +1 -1
  146. package/dist/js/components/Content/index.d.ts +0 -3
  147. package/dist/js/components/Content/index.d.ts.map +1 -1
  148. package/dist/js/components/Content/index.js +0 -3
  149. package/dist/js/components/Content/index.js.map +1 -1
  150. package/dist/js/components/Page/Page.d.ts +2 -0
  151. package/dist/js/components/Page/Page.d.ts.map +1 -1
  152. package/dist/js/components/Page/Page.js +2 -2
  153. package/dist/js/components/Page/Page.js.map +1 -1
  154. package/dist/js/components/Page/PageGroup.d.ts +3 -1
  155. package/dist/js/components/Page/PageGroup.d.ts.map +1 -1
  156. package/dist/js/components/Page/PageGroup.js +2 -2
  157. package/dist/js/components/Page/PageGroup.js.map +1 -1
  158. package/dist/js/components/Page/PageSection.d.ts +1 -1
  159. package/dist/js/components/Page/PageSection.d.ts.map +1 -1
  160. package/dist/js/components/Wizard/Wizard.d.ts.map +1 -1
  161. package/dist/js/components/Wizard/Wizard.js +5 -3
  162. package/dist/js/components/Wizard/Wizard.js.map +1 -1
  163. package/dist/js/components/Wizard/WizardContext.d.ts.map +1 -1
  164. package/dist/js/components/Wizard/WizardContext.js +13 -3
  165. package/dist/js/components/Wizard/WizardContext.js.map +1 -1
  166. package/dist/js/demos/DashboardWrapper.d.ts.map +1 -1
  167. package/dist/js/demos/DashboardWrapper.js +3 -3
  168. package/dist/js/demos/DashboardWrapper.js.map +1 -1
  169. package/dist/styles/base-no-reset.css +6 -6
  170. package/dist/styles/base.css +8 -8
  171. package/dist/umd/assets/{output-DncgfZci.css → output-DbCJu18k.css} +3884 -3885
  172. package/dist/umd/react-core.min.js +1 -1
  173. package/helpers/package.json +1 -1
  174. package/layouts/package.json +1 -1
  175. package/next/package.json +1 -1
  176. package/package.json +6 -6
  177. package/src/components/AboutModal/examples/AboutModalBasic.tsx +19 -19
  178. package/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +21 -21
  179. package/src/components/AboutModal/examples/AboutModalWithoutProductName.tsx +19 -19
  180. package/src/components/Content/Content.tsx +6 -6
  181. package/src/components/Content/__tests__/Content.test.tsx +194 -20
  182. package/src/components/Content/__tests__/__snapshots__/Content.test.tsx.snap +1 -1
  183. package/src/components/Content/examples/Content.md +13 -13
  184. package/src/components/Content/examples/ContentBody.tsx +12 -10
  185. package/src/components/Content/examples/ContentDescriptionList.tsx +9 -11
  186. package/src/components/Content/examples/ContentHeadings.tsx +7 -7
  187. package/src/components/Content/examples/ContentOrderedList.tsx +10 -10
  188. package/src/components/Content/examples/ContentPlainList.tsx +22 -18
  189. package/src/components/Content/examples/ContentUnorderedList.tsx +12 -12
  190. package/src/components/Content/examples/ContentVisited.tsx +23 -23
  191. package/src/components/Content/examples/ContentWrapper.tsx +7 -7
  192. package/src/components/Content/index.ts +0 -3
  193. package/src/components/DataList/examples/DataListWidthModifiers.tsx +10 -12
  194. package/src/components/Icon/examples/IconInline.tsx +10 -12
  195. package/src/components/Modal/examples/ModalCustomHeader.tsx +4 -6
  196. package/src/components/Page/Page.tsx +4 -1
  197. package/src/components/Page/PageGroup.tsx +5 -0
  198. package/src/components/Page/PageSection.tsx +1 -1
  199. package/src/components/Page/__tests__/Page.test.tsx +21 -0
  200. package/src/components/Page/__tests__/PageGroup.test.tsx +20 -0
  201. package/src/components/Page/__tests__/PageSection.test.tsx +27 -0
  202. package/src/components/Page/examples/Page.md +2 -2
  203. package/src/components/Page/examples/PageWithOrWithoutFill.tsx +4 -5
  204. package/src/components/Slider/examples/SliderActions.tsx +2 -2
  205. package/src/components/Slider/examples/SliderContinuous.tsx +3 -3
  206. package/src/components/Slider/examples/SliderDisabled.tsx +2 -2
  207. package/src/components/Slider/examples/SliderDiscrete.tsx +14 -14
  208. package/src/components/Spinner/examples/SpinnerInline.tsx +10 -12
  209. package/src/components/Wizard/Wizard.tsx +5 -3
  210. package/src/components/Wizard/WizardContext.tsx +13 -4
  211. package/src/demos/Banner.md +14 -25
  212. package/src/demos/CardView/examples/CardView.tsx +5 -6
  213. package/src/demos/DashboardWrapper.tsx +6 -7
  214. package/src/demos/DataList/examples/DataListBasic.tsx +17 -20
  215. package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +7 -9
  216. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +6 -8
  217. package/src/demos/JumpLinks.md +3 -3
  218. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +7 -8
  219. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +7 -8
  220. package/src/demos/RTL/examples/PaginatedTable.jsx +5 -7
  221. package/src/demos/RTL/examples/PaginatedTable.tsx +5 -7
  222. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +14 -15
  223. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +7 -8
  224. package/src/demos/examples/DashboardWrapper.js +6 -7
  225. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -3
  226. package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -13
  227. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +5 -6
  228. package/src/demos/examples/Nav/NavDefault.tsx +8 -9
  229. package/src/demos/examples/Nav/NavExpandable.tsx +8 -9
  230. package/src/demos/examples/Nav/NavGrouped.tsx +8 -9
  231. package/src/demos/examples/Nav/NavHorizontal.tsx +7 -8
  232. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +7 -8
  233. package/src/demos/examples/Nav/NavManual.tsx +7 -8
  234. package/src/demos/examples/Nav/NavWithSubnav.tsx +8 -9
  235. package/src/demos/examples/Page/PageContextSelector.tsx +5 -6
  236. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -6
  237. package/src/demos/examples/Page/PageStickySectionGroup.tsx +5 -6
  238. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -6
  239. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +10 -14
  240. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +7 -8
  241. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +8 -10
  242. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +7 -8
  243. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +7 -8
  244. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +8 -10
  245. package/src/demos/examples/Tabs/ModalTabs.tsx +5 -6
  246. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +4 -5
  247. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +4 -6
  248. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +5 -6
  249. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +8 -9
  250. package/dist/esm/components/Content/TextContent.d.ts +0 -11
  251. package/dist/esm/components/Content/TextContent.d.ts.map +0 -1
  252. package/dist/esm/components/Content/TextContent.js +0 -10
  253. package/dist/esm/components/Content/TextContent.js.map +0 -1
  254. package/dist/esm/components/Content/TextList.d.ts +0 -18
  255. package/dist/esm/components/Content/TextList.d.ts.map +0 -1
  256. package/dist/esm/components/Content/TextList.js +0 -22
  257. package/dist/esm/components/Content/TextList.js.map +0 -1
  258. package/dist/esm/components/Content/TextListItem.d.ts +0 -16
  259. package/dist/esm/components/Content/TextListItem.d.ts.map +0 -1
  260. package/dist/esm/components/Content/TextListItem.js +0 -22
  261. package/dist/esm/components/Content/TextListItem.js.map +0 -1
  262. package/dist/js/components/Content/TextContent.d.ts +0 -11
  263. package/dist/js/components/Content/TextContent.d.ts.map +0 -1
  264. package/dist/js/components/Content/TextContent.js +0 -14
  265. package/dist/js/components/Content/TextContent.js.map +0 -1
  266. package/dist/js/components/Content/TextList.d.ts +0 -18
  267. package/dist/js/components/Content/TextList.d.ts.map +0 -1
  268. package/dist/js/components/Content/TextList.js +0 -26
  269. package/dist/js/components/Content/TextList.js.map +0 -1
  270. package/dist/js/components/Content/TextListItem.d.ts +0 -16
  271. package/dist/js/components/Content/TextListItem.d.ts.map +0 -1
  272. package/dist/js/components/Content/TextListItem.js +0 -26
  273. package/dist/js/components/Content/TextListItem.js.map +0 -1
  274. package/src/components/Content/TextContent.tsx +0 -25
  275. package/src/components/Content/TextList.tsx +0 -43
  276. package/src/components/Content/TextListItem.tsx +0 -40
  277. package/src/components/Content/__tests__/Generated/TextContent.test.tsx +0 -13
  278. package/src/components/Content/__tests__/Generated/TextList.test.tsx +0 -13
  279. package/src/components/Content/__tests__/Generated/TextListItem.test.tsx +0 -13
  280. package/src/components/Content/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +0 -11
  281. package/src/components/Content/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +0 -11
  282. package/src/components/Content/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +0 -11
  283. package/src/components/Content/__tests__/TextContent.test.tsx +0 -48
  284. package/src/components/Content/__tests__/TextList.test.tsx +0 -52
  285. package/src/components/Content/__tests__/TextListItem.test.tsx +0 -47
  286. package/src/components/Content/__tests__/__snapshots__/TextContent.test.tsx.snap +0 -11
  287. package/src/components/Content/__tests__/__snapshots__/TextList.test.tsx.snap +0 -11
  288. package/src/components/Content/__tests__/__snapshots__/TextListItem.test.tsx.snap +0 -11
  289. package/src/components/Text/examples/Text.md +0 -8
@@ -1,15 +1,13 @@
1
1
  import React from 'react';
2
- import { TextList, TextListVariants, TextListItem, TextListItemVariants } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentDescriptionList: React.FunctionComponent = () => (
5
- <TextList component={TextListVariants.dl}>
6
- <TextListItem component={TextListItemVariants.dt}>Web</TextListItem>
7
- <TextListItem component={TextListItemVariants.dd}>
8
- The part of the Internet that contains websites and web pages
9
- </TextListItem>
10
- <TextListItem component={TextListItemVariants.dt}>HTML</TextListItem>
11
- <TextListItem component={TextListItemVariants.dd}>A markup language for creating web pages</TextListItem>
12
- <TextListItem component={TextListItemVariants.dt}>CSS</TextListItem>
13
- <TextListItem component={TextListItemVariants.dd}>A technology to make HTML look better</TextListItem>
14
- </TextList>
5
+ <Content component={ContentVariants.dl}>
6
+ <Content component={ContentVariants.dt}>Web</Content>
7
+ <Content component={ContentVariants.dd}>The part of the Internet that contains websites and web pages</Content>
8
+ <Content component={ContentVariants.dt}>HTML</Content>
9
+ <Content component={ContentVariants.dd}>A markup language for creating web pages</Content>
10
+ <Content component={ContentVariants.dt}>CSS</Content>
11
+ <Content component={ContentVariants.dd}>A technology to make HTML look better</Content>
12
+ </Content>
15
13
  );
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
- import { Text, TextVariants } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentHeadings: React.FunctionComponent = () => (
5
5
  <>
6
- <Text component={TextVariants.h1}>Hello World</Text>
7
- <Text component={TextVariants.h2}>Second level</Text>
8
- <Text component={TextVariants.h3}>Third level</Text>
9
- <Text component={TextVariants.h4}>Fourth level</Text>
10
- <Text component={TextVariants.h5}>Fifth level</Text>
11
- <Text component={TextVariants.h6}>Sixth level</Text>
6
+ <Content component={ContentVariants.h1}>Hello World</Content>
7
+ <Content component={ContentVariants.h2}>Second level</Content>
8
+ <Content component={ContentVariants.h3}>Third level</Content>
9
+ <Content component={ContentVariants.h4}>Fourth level</Content>
10
+ <Content component={ContentVariants.h5}>Fifth level</Content>
11
+ <Content component={ContentVariants.h6}>Sixth level</Content>
12
12
  </>
13
13
  );
@@ -1,14 +1,14 @@
1
1
  import React from 'react';
2
- import { TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentOrderedList: React.FunctionComponent = () => (
5
- <TextList component={TextListVariants.ol}>
6
- <TextListItem>Donec blandit a lorem id convallis.</TextListItem>
7
- <TextListItem>Cras gravida arcu at diam gravida gravida.</TextListItem>
8
- <TextListItem>Integer in volutpat libero.</TextListItem>
9
- <TextListItem>Donec a diam tellus.</TextListItem>
10
- <TextListItem>Aenean nec tortor orci.</TextListItem>
11
- <TextListItem>Quisque aliquam cursus urna, non bibendum massa viverra eget.</TextListItem>
12
- <TextListItem>Vivamus maximus ultricies pulvinar.</TextListItem>
13
- </TextList>
5
+ <Content component={ContentVariants.ol}>
6
+ <Content component={ContentVariants.li}>Donec blandit a lorem id convallis.</Content>
7
+ <Content component={ContentVariants.li}>Cras gravida arcu at diam gravida gravida.</Content>
8
+ <Content component={ContentVariants.li}>Integer in volutpat libero.</Content>
9
+ <Content component={ContentVariants.li}>Donec a diam tellus.</Content>
10
+ <Content component={ContentVariants.li}>Aenean nec tortor orci.</Content>
11
+ <Content component={ContentVariants.li}>Quisque aliquam cursus urna, non bibendum massa viverra eget.</Content>
12
+ <Content component={ContentVariants.li}>Vivamus maximus ultricies pulvinar.</Content>
13
+ </Content>
14
14
  );
@@ -1,24 +1,28 @@
1
1
  import React from 'react';
2
- import { Text, TextVariants, TextList, TextListVariants, TextListItem } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentPlainList: React.FunctionComponent = () => (
5
5
  <>
6
- <Text component={TextVariants.h3}>Plain unordered list</Text>
7
- <TextList isPlain>
8
- <TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
9
- <TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>
10
- <TextListItem>Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.</TextListItem>
11
- <TextListItem>Ut non enim metus.</TextListItem>
12
- </TextList>
13
- <Text component={TextVariants.h3}>Plain ordered list</Text>
14
- <TextList component={TextListVariants.ol} isPlain>
15
- <TextListItem>Donec blandit a lorem id convallis.</TextListItem>
16
- <TextListItem>Cras gravida arcu at diam gravida gravida.</TextListItem>
17
- <TextListItem>Integer in volutpat libero.</TextListItem>
18
- <TextListItem>Donec a diam tellus.</TextListItem>
19
- <TextListItem>Aenean nec tortor orci.</TextListItem>
20
- <TextListItem>Quisque aliquam cursus urna, non bibendum massa viverra eget.</TextListItem>
21
- <TextListItem>Vivamus maximus ultricies pulvinar.</TextListItem>
22
- </TextList>
6
+ <Content component={ContentVariants.h3}>Plain unordered list</Content>
7
+ <Content component={ContentVariants.ul} isPlainList>
8
+ <Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
9
+ <Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
10
+ <Content component={ContentVariants.li}>
11
+ Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
12
+ </Content>
13
+ <Content component={ContentVariants.li}>Ut non enim metus.</Content>
14
+ </Content>
15
+ <Content component={ContentVariants.h3}>Plain ordered list</Content>
16
+ <Content component={ContentVariants.ol} isPlainList>
17
+ <Content component={ContentVariants.li}>Donec blandit a lorem id convallis.</Content>
18
+ <Content component={ContentVariants.li}>
19
+ {' '}
20
+ component={ContentVariants.li}Cras gravida arcu at diam gravida gravida.
21
+ </Content>
22
+ <Content component={ContentVariants.li}>Integer in volutpat libero.</Content>
23
+ <Content component={ContentVariants.li}>Aenean nec tortor orci.</Content>
24
+ <Content component={ContentVariants.li}>Quisque aliquam cursus urna, non bibendum massa viverra eget.</Content>
25
+ <Content component={ContentVariants.li}>Vivamus maximus ultricies pulvinar.</Content>
26
+ </Content>
23
27
  </>
24
28
  );
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
- import { TextList, TextListItem } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentUnorderedList: React.FunctionComponent = () => (
5
- <TextList>
6
- <TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
7
- <TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>
8
- <TextListItem>
5
+ <Content component={ContentVariants.ul}>
6
+ <Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
7
+ <Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
8
+ <Content component={ContentVariants.li}>
9
9
  Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
10
- <TextList>
11
- <TextListItem>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</TextListItem>
12
- <TextListItem>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</TextListItem>
13
- </TextList>
14
- </TextListItem>
15
- <TextListItem>Ut non enim metus.</TextListItem>
16
- </TextList>
10
+ <Content component={ContentVariants.ul}>
11
+ <Content component={ContentVariants.li}>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</Content>
12
+ <Content component={ContentVariants.li}>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</Content>
13
+ </Content>
14
+ </Content>
15
+ <Content component={ContentVariants.li}>Ut non enim metus.</Content>
16
+ </Content>
17
17
  );
@@ -1,34 +1,34 @@
1
1
  import React from 'react';
2
- import { TextContent, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentVisited: React.FunctionComponent = () => (
5
5
  <>
6
- <TextContent>
7
- <Text component={TextVariants.h3}>Link example</Text>
8
- <Text component={TextVariants.p}>
9
- <Text component={TextVariants.a} isVisitedLink href="#">
6
+ <Content>
7
+ <Content component={ContentVariants.h3}>Link example</Content>
8
+ <Content component={ContentVariants.p}>
9
+ <Content component={ContentVariants.a} isVisitedLink href="#">
10
10
  Click to visit link
11
- </Text>
12
- </Text>
13
- </TextContent>
11
+ </Content>
12
+ </Content>
13
+ </Content>
14
14
  <br />
15
- <TextContent isVisited>
16
- <Text component={TextVariants.h3}>Link content example</Text>
17
- <Text component={TextVariants.p}>
18
- <Text component={TextVariants.a} href="#">
15
+ <Content isVisitedLink>
16
+ <Content component={ContentVariants.h3}>Link content example</Content>
17
+ <Content component={ContentVariants.p}>
18
+ <Content component={ContentVariants.a} href="#">
19
19
  content link 1
20
- </Text>
21
- </Text>
22
- <Text component={TextVariants.p}>
23
- <Text component={TextVariants.a} href="#">
20
+ </Content>
21
+ </Content>
22
+ <Content component={ContentVariants.p}>
23
+ <Content component={ContentVariants.a} href="#">
24
24
  content link 2
25
- </Text>
26
- </Text>
27
- <Text component={TextVariants.p}>
28
- <Text component={TextVariants.a} href="#">
25
+ </Content>
26
+ </Content>
27
+ <Content component={ContentVariants.p}>
28
+ <Content component={ContentVariants.a} href="#">
29
29
  content link 3
30
- </Text>
31
- </Text>
32
- </TextContent>
30
+ </Content>
31
+ </Content>
32
+ </Content>
33
33
  </>
34
34
  );
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import { TextContent, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Content, ContentVariants } from '@patternfly/react-core';
3
3
 
4
4
  export const ContentWrapper: React.FunctionComponent = () => (
5
- <TextContent>
6
- <Text component={TextVariants.p}>
7
- Text with a component of type "p" still renders the same when wrapped with a TextContent.
8
- </Text>
9
- <p>If located within a wrapping TextContent, html elements are styled as well!</p>
10
- </TextContent>
5
+ <Content>
6
+ <Content component={ContentVariants.p}>
7
+ Content with a component of type "p" still renders the same when wrapped with a Content.
8
+ </Content>
9
+ <p>If located within a wrapping Content, html elements are styled as well!</p>
10
+ </Content>
11
11
  );
@@ -1,4 +1 @@
1
1
  export * from './Content';
2
- export * from './TextContent';
3
- export * from './TextList';
4
- export * from './TextListItem';
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import {
3
+ Content,
3
4
  DataList,
4
5
  DataListItem,
5
6
  DataListCell,
@@ -9,9 +10,6 @@ import {
9
10
  DataListContent,
10
11
  DataListItemCells,
11
12
  DataListItemRow,
12
- Text,
13
- TextVariants,
14
- TextContent,
15
13
  Dropdown,
16
14
  DropdownList,
17
15
  DropdownItem,
@@ -44,9 +42,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
44
42
  return (
45
43
  <>
46
44
  <div key="example-1">
47
- <TextContent>
48
- <Text component={TextVariants.h4}>Default fitting - example 1</Text>
49
- </TextContent>
45
+ <Content>
46
+ <h4>Default fitting - example 1</h4>
47
+ </Content>
50
48
  <DataList aria-label="Width modifier data list example 1">
51
49
  <DataListItem aria-labelledby="width-ex1-item1">
52
50
  <DataListItemRow>
@@ -71,9 +69,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
71
69
  </DataList>
72
70
  </div>
73
71
  <div key="example-2">
74
- <TextContent>
75
- <Text component={TextVariants.h4}>Flex modifiers - example 2</Text>
76
- </TextContent>
72
+ <Content>
73
+ <h4>Flex modifiers - example 2</h4>
74
+ </Content>
77
75
  <DataList aria-label="Width modifier data list example 2">
78
76
  <DataListItem aria-labelledby="width-ex2-item1">
79
77
  <DataListItemRow>
@@ -139,9 +137,9 @@ export const DataListWidthModifiers: React.FunctionComponent = () => {
139
137
  </DataList>
140
138
  </div>
141
139
  <div key="example-3">
142
- <TextContent>
143
- <Text component={TextVariants.h4}>Flex modifiers - example 3</Text>
144
- </TextContent>
140
+ <Content>
141
+ <h4>Flex modifiers - example 3</h4>
142
+ </Content>
145
143
  <DataList aria-label="Width modifier data list example 3">
146
144
  <DataListItem aria-labelledby="width-ex3-item1" isExpanded={show}>
147
145
  <DataListItemRow>
@@ -1,26 +1,24 @@
1
1
  import React from 'react';
2
- import { Icon, Text, TextContent } from '@patternfly/react-core';
2
+ import { Icon, Content } from '@patternfly/react-core';
3
3
  import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
4
4
 
5
5
  export const IconInline: React.FunctionComponent = () => (
6
6
  <React.Fragment>
7
- <TextContent>
8
- <Text component="h1">
7
+ <Content>
8
+ <h1>
9
9
  Heading
10
10
  <Icon isInline>
11
11
  <PlusCircleIcon />
12
12
  </Icon>
13
- </Text>
14
- <Text component="p">
15
- Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus.
16
- </Text>
17
- <Text component="h2">
13
+ </h1>
14
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit Sed hendrerit nisi in cursus maximus.</p>
15
+ <h2>
18
16
  Second level
19
17
  <Icon isInline>
20
18
  <PlusCircleIcon />
21
19
  </Icon>
22
- </Text>
23
- <Text component="p">
20
+ </h2>
21
+ <p>
24
22
  <Icon isInline>
25
23
  <PlusCircleIcon />
26
24
  </Icon>
@@ -33,7 +31,7 @@ export const IconInline: React.FunctionComponent = () => (
33
31
  </strong>
34
32
  blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus
35
33
  venenatis. Suspendisse potenti.
36
- </Text>
34
+ </p>
37
35
  <small>
38
36
  Sometimes you need small text
39
37
  <Icon isInline>
@@ -57,6 +55,6 @@ export const IconInline: React.FunctionComponent = () => (
57
55
  <PlusCircleIcon />
58
56
  </Icon>
59
57
  extra large
60
- </TextContent>
58
+ </Content>
61
59
  </React.Fragment>
62
60
  );
@@ -8,7 +8,7 @@ import {
8
8
  ModalVariant,
9
9
  Title,
10
10
  TitleSizes,
11
- TextContent,
11
+ Content,
12
12
  Flex
13
13
  } from '@patternfly/react-core';
14
14
 
@@ -34,12 +34,10 @@ export const ModalCustomHeaderFooter: React.FunctionComponent = () => {
34
34
  aria-describedby="modal-custom-header-description"
35
35
  >
36
36
  <ModalHeader>
37
- <TextContent>
38
- <Title id="modal-custom-header-label" headingLevel="h1" size={TitleSizes['2xl']}>
39
- Custom header modal
40
- </Title>
37
+ <Content>
38
+ <h1 id="modal-custom-header-label">Custom header modal</h1>
41
39
  <p>Add custom content to the header by not passing the titles prop the modal box header component.</p>
42
- </TextContent>
40
+ </Content>
43
41
  </ModalHeader>
44
42
  <ModalBody>
45
43
  <span id="modal-custom-header-description">
@@ -94,6 +94,8 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
94
94
  groupProps?: PageGroupProps;
95
95
  /** Additional props of the breadcrumb */
96
96
  breadcrumbProps?: PageBreadcrumbProps;
97
+ /** Enables children to fill the available vertical space. Child page sections or groups that should fill should be passed the isFilled property. */
98
+ isContentFilled?: boolean;
97
99
  }
98
100
 
99
101
  export interface PageState {
@@ -249,6 +251,7 @@ class Page extends React.Component<PageProps, PageState> {
249
251
  additionalGroupedContent,
250
252
  groupProps,
251
253
  breadcrumbProps,
254
+ isContentFilled,
252
255
  ...rest
253
256
  } = this.props;
254
257
  const { mobileView, mobileIsSidebarOpen, desktopIsSidebarOpen, width, height } = this.state;
@@ -294,7 +297,7 @@ class Page extends React.Component<PageProps, PageState> {
294
297
  const Component: keyof JSX.IntrinsicElements = mainComponent;
295
298
 
296
299
  const main = (
297
- <div className={css(styles.pageMainContainer)}>
300
+ <div className={css(styles.pageMainContainer, isContentFilled && styles.modifiers.fill)}>
298
301
  <Component
299
302
  ref={this.mainRef}
300
303
  role={role}
@@ -17,6 +17,8 @@ export interface PageGroupProps extends React.HTMLProps<HTMLDivElement> {
17
17
  xl?: 'top' | 'bottom';
18
18
  '2xl'?: 'top' | 'bottom';
19
19
  };
20
+ /** Enables the page group to fill the available vertical space if true, or disable filling if false. */
21
+ isFilled?: boolean;
20
22
  /** Modifier indicating if PageGroup should have a shadow at the top */
21
23
  hasShadowTop?: boolean;
22
24
  /** Modifier indicating if PageGroup should have a shadow at the bottom */
@@ -31,6 +33,7 @@ export const PageGroup = ({
31
33
  className = '',
32
34
  children,
33
35
  stickyOnBreakpoint,
36
+ isFilled,
34
37
  hasShadowTop = false,
35
38
  hasShadowBottom = false,
36
39
  hasOverflowScroll = false,
@@ -52,6 +55,8 @@ export const PageGroup = ({
52
55
  className={css(
53
56
  styles.pageMainGroup,
54
57
  formatBreakpointMods(stickyOnBreakpoint, styles, 'sticky-', getVerticalBreakpoint(height), true),
58
+ isFilled === false && styles.modifiers.noFill,
59
+ isFilled === true && styles.modifiers.fill,
55
60
  hasShadowTop && styles.modifiers.shadowTop,
56
61
  hasShadowBottom && styles.modifiers.shadowBottom,
57
62
  hasOverflowScroll && styles.modifiers.overflowScroll,
@@ -27,7 +27,7 @@ export interface PageSectionProps extends React.HTMLProps<HTMLDivElement> {
27
27
  variant?: 'default' | 'secondary';
28
28
  /** Section type variant */
29
29
  type?: 'default' | 'subnav' | 'breadcrumb' | 'tabs' | 'wizard';
30
- /** Enables the page section to fill the available vertical space */
30
+ /** Enables the page section to fill the available vertical space if true, or disable filling if false. */
31
31
  isFilled?: boolean;
32
32
  /** Limits the width of the section */
33
33
  isWidthLimited?: boolean;
@@ -13,6 +13,8 @@ import { PageBreadcrumb } from '../PageBreadcrumb';
13
13
  import { PageGroup } from '../PageGroup';
14
14
  import { Masthead } from '../../Masthead';
15
15
 
16
+ import styles from '@patternfly/react-styles/css/components/Page/page';
17
+
16
18
  const props = {
17
19
  'aria-label': 'Page layout',
18
20
  id: 'PageId',
@@ -352,4 +354,23 @@ describe('Page', () => {
352
354
  expect(screen.getByTestId('page-test-id')).toHaveAttribute('id', props.id);
353
355
  expect(asFragment()).toMatchSnapshot();
354
356
  });
357
+
358
+ test(`Does not render with ${styles.modifiers.fill} or ${styles.modifiers.noFill} if isContentFilled is not passed`, () => {
359
+ render(<Page {...props} role="main"></Page>);
360
+
361
+ expect(screen.getByRole('main').parentElement).not.toHaveClass(styles.modifiers.fill);
362
+ expect(screen.getByRole('main').parentElement).not.toHaveClass(styles.modifiers.noFill);
363
+ });
364
+
365
+ test(`Renders with ${styles.modifiers.fill} if isContentFilled={true} is passed`, () => {
366
+ render(<Page {...props} role="main" isContentFilled={true}></Page>);
367
+
368
+ expect(screen.getByRole('main').parentElement).toHaveClass(styles.modifiers.fill);
369
+ });
370
+
371
+ test(`Does not render with ${styles.modifiers.noFill} if isContentFilled={false} is passed`, () => {
372
+ render(<Page {...props} role="main" isContentFilled={false}></Page>);
373
+
374
+ expect(screen.getByRole('main').parentElement).not.toHaveClass(styles.modifiers.noFill);
375
+ });
355
376
  });
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { render, screen } from '@testing-library/react';
3
3
  import { PageGroup } from '../PageGroup';
4
+ import styles from '@patternfly/react-styles/css/components/Page/page';
4
5
 
5
6
  describe('page group', () => {
6
7
  test('Verify basic render', () => {
@@ -71,4 +72,23 @@ describe('page group', () => {
71
72
 
72
73
  expect(consoleWarning).toHaveBeenCalled();
73
74
  });
75
+
76
+ test(`Does not render with ${styles.modifiers.fill} or ${styles.modifiers.noFill} if isFilled is not passed`, () => {
77
+ render(<PageGroup>test</PageGroup>);
78
+
79
+ expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.fill);
80
+ expect(screen.getByText('test')).not.toHaveClass(styles.modifiers.noFill);
81
+ });
82
+
83
+ test(`Renders with ${styles.modifiers.fill} if isFilled={true} is passed`, () => {
84
+ render(<PageGroup isFilled={true}>test</PageGroup>);
85
+
86
+ expect(screen.getByText('test')).toHaveClass(styles.modifiers.fill);
87
+ });
88
+
89
+ test(`Renders with ${styles.modifiers.noFill} if isFilled={false} is passed`, () => {
90
+ render(<PageGroup isFilled={false}>test</PageGroup>);
91
+
92
+ expect(screen.getByText('test')).toHaveClass(styles.modifiers.noFill);
93
+ });
74
94
  });
@@ -153,3 +153,30 @@ test('Does not render with PageBody wrapper when hasBodyWrapper is false', () =>
153
153
 
154
154
  expect(screen.getByText('test')).not.toHaveClass(styles.pageMainBody);
155
155
  });
156
+
157
+ test(`Does not render with ${styles.modifiers.fill} or ${styles.modifiers.noFill} if isFilled is not passed`, () => {
158
+ render(<PageSection component="main">test</PageSection>);
159
+
160
+ expect(screen.getByRole('main')).not.toHaveClass(styles.modifiers.fill);
161
+ expect(screen.getByRole('main')).not.toHaveClass(styles.modifiers.noFill);
162
+ });
163
+
164
+ test(`Renders with ${styles.modifiers.fill} if isFilled={true} is passed`, () => {
165
+ render(
166
+ <PageSection component="main" isFilled={true}>
167
+ test
168
+ </PageSection>
169
+ );
170
+
171
+ expect(screen.getByRole('main')).toHaveClass(styles.modifiers.fill);
172
+ });
173
+
174
+ test(`Renders with ${styles.modifiers.noFill} if isFilled={false} is passed`, () => {
175
+ render(
176
+ <PageSection component="main" isFilled={false}>
177
+ test
178
+ </PageSection>
179
+ );
180
+
181
+ expect(screen.getByRole('main')).toHaveClass(styles.modifiers.noFill);
182
+ });
@@ -62,9 +62,9 @@ When the `isManagedSidebar` property is true, it manages the sidebar open/close
62
62
 
63
63
  ### Filled page sections
64
64
 
65
- By default, the last page section is "filled", meaning it fills the available vertical space of a page.
65
+ By default, page sections will not expand to fill in the available vertical space in a page.
66
66
 
67
- To change the default behavior, use the `isFilled` property. To make other page sections "filled", set `isFilled` equal to "true". To disable the last page section from being "filled", set `isFilled` equal to "false".
67
+ To change this default behavior, pass `isContentFilled` to the `<Page>` component and `isFilled={true}` to any child `<PageSection>` or `<PageGroup>` component that you want to fill the space. If multiple components are set to fill, then the available space will be split equally between them.
68
68
 
69
69
  ```ts file="./PageWithOrWithoutFill.tsx"
70
70
 
@@ -60,13 +60,12 @@ export const PageWithOrWithoutFill: React.FunctionComponent = () => {
60
60
  );
61
61
 
62
62
  return (
63
- <Page masthead={masthead} sidebar={sidebar}>
63
+ <Page isContentFilled masthead={masthead} sidebar={sidebar}>
64
64
  <PageSection>A default page section</PageSection>
65
- <PageSection isFilled={true}>This section fills the available space.</PageSection>
66
- <PageSection isFilled={false}>
67
- This section is set to not fill the available space, since the last page section is set to fill the available
68
- space by default.
65
+ <PageSection isFilled={true} variant="secondary">
66
+ This section fills the available space.
69
67
  </PageSection>
68
+ <PageSection>A default page section</PageSection>
70
69
  </Page>
71
70
  );
72
71
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider, SliderOnChangeEvent, Button, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent, Button, Content } from '@patternfly/react-core';
3
3
  import MinusIcon from '@patternfly/react-icons/dist/esm/icons/minus-icon';
4
4
  import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
5
5
  import LockIcon from '@patternfly/react-icons/dist/esm/icons/lock-icon';
@@ -64,7 +64,7 @@ export const SliderActions: React.FunctionComponent = () => {
64
64
 
65
65
  return (
66
66
  <>
67
- <Text component={TextVariants.h3}>Slider value is: {value1}</Text>
67
+ <Content component="h3">Slider value is: {value1}</Content>
68
68
  <Slider
69
69
  value={value1}
70
70
  onChange={onChange1}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Checkbox, Slider, SliderOnChangeEvent, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Checkbox, Slider, SliderOnChangeEvent, Content } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderContinuous: React.FunctionComponent = () => {
5
5
  const [hasTooltipOverThumb, setHasTooltipOverThumb] = React.useState(false);
@@ -15,14 +15,14 @@ export const SliderContinuous: React.FunctionComponent = () => {
15
15
  onChange={(_event: React.FormEvent<HTMLInputElement>, checked: boolean) => setHasTooltipOverThumb(checked)}
16
16
  style={{ marginBottom: 20 }}
17
17
  />
18
- <Text component={TextVariants.h3}>Slider Value is: {value}</Text>
18
+ <Content component="h3">Slider Value is: {value}</Content>
19
19
  <Slider
20
20
  hasTooltipOverThumb={hasTooltipOverThumb}
21
21
  value={value}
22
22
  onChange={(_event: SliderOnChangeEvent, value: number) => setValue(value)}
23
23
  />
24
24
  <br />
25
- <Text component={TextVariants.h3}>Slider value is: {valueCustom}</Text>
25
+ <Content component="h3">Slider value is: {valueCustom}</Content>
26
26
  <Slider
27
27
  onChange={(_event: SliderOnChangeEvent, value: number) => setValueCustom(value)}
28
28
  value={valueCustom}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Slider, SliderOnChangeEvent, Text, TextVariants } from '@patternfly/react-core';
2
+ import { Slider, SliderOnChangeEvent, Content } from '@patternfly/react-core';
3
3
 
4
4
  export const SliderDisabled: React.FunctionComponent = () => {
5
5
  const [value, setValue] = React.useState(50);
@@ -22,7 +22,7 @@ export const SliderDisabled: React.FunctionComponent = () => {
22
22
 
23
23
  return (
24
24
  <>
25
- <Text component={TextVariants.h3}>Slider value is: {displayValue()}</Text>
25
+ <Content component="h3">Slider value is: {displayValue()}</Content>
26
26
  <Slider
27
27
  isDisabled
28
28
  value={value}