@patternfly/react-core 6.0.0-alpha.87 → 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 (245) hide show
  1. package/CHANGELOG.md +6 -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/demos/DashboardWrapper.d.ts.map +1 -1
  124. package/dist/esm/demos/DashboardWrapper.js +4 -4
  125. package/dist/esm/demos/DashboardWrapper.js.map +1 -1
  126. package/dist/js/components/Content/Content.d.ts +3 -3
  127. package/dist/js/components/Content/Content.d.ts.map +1 -1
  128. package/dist/js/components/Content/Content.js +26 -26
  129. package/dist/js/components/Content/Content.js.map +1 -1
  130. package/dist/js/components/Content/index.d.ts +0 -3
  131. package/dist/js/components/Content/index.d.ts.map +1 -1
  132. package/dist/js/components/Content/index.js +0 -3
  133. package/dist/js/components/Content/index.js.map +1 -1
  134. package/dist/js/demos/DashboardWrapper.d.ts.map +1 -1
  135. package/dist/js/demos/DashboardWrapper.js +3 -3
  136. package/dist/js/demos/DashboardWrapper.js.map +1 -1
  137. package/dist/umd/assets/{output-InLLAkYl.css → output-DbCJu18k.css} +3546 -3546
  138. package/dist/umd/react-core.min.js +1 -1
  139. package/helpers/package.json +1 -1
  140. package/layouts/package.json +1 -1
  141. package/next/package.json +1 -1
  142. package/package.json +2 -2
  143. package/src/components/AboutModal/examples/AboutModalBasic.tsx +19 -19
  144. package/src/components/AboutModal/examples/AboutModalComplexUserPositionedContent.tsx +21 -21
  145. package/src/components/AboutModal/examples/AboutModalWithoutProductName.tsx +19 -19
  146. package/src/components/Content/Content.tsx +6 -6
  147. package/src/components/Content/__tests__/Content.test.tsx +194 -20
  148. package/src/components/Content/__tests__/__snapshots__/Content.test.tsx.snap +1 -1
  149. package/src/components/Content/examples/Content.md +13 -13
  150. package/src/components/Content/examples/ContentBody.tsx +12 -10
  151. package/src/components/Content/examples/ContentDescriptionList.tsx +9 -11
  152. package/src/components/Content/examples/ContentHeadings.tsx +7 -7
  153. package/src/components/Content/examples/ContentOrderedList.tsx +10 -10
  154. package/src/components/Content/examples/ContentPlainList.tsx +22 -18
  155. package/src/components/Content/examples/ContentUnorderedList.tsx +12 -12
  156. package/src/components/Content/examples/ContentVisited.tsx +23 -23
  157. package/src/components/Content/examples/ContentWrapper.tsx +7 -7
  158. package/src/components/Content/index.ts +0 -3
  159. package/src/components/DataList/examples/DataListWidthModifiers.tsx +10 -12
  160. package/src/components/Icon/examples/IconInline.tsx +10 -12
  161. package/src/components/Modal/examples/ModalCustomHeader.tsx +4 -6
  162. package/src/components/Slider/examples/SliderActions.tsx +2 -2
  163. package/src/components/Slider/examples/SliderContinuous.tsx +3 -3
  164. package/src/components/Slider/examples/SliderDisabled.tsx +2 -2
  165. package/src/components/Slider/examples/SliderDiscrete.tsx +14 -14
  166. package/src/components/Spinner/examples/SpinnerInline.tsx +10 -12
  167. package/src/demos/Banner.md +14 -25
  168. package/src/demos/CardView/examples/CardView.tsx +5 -6
  169. package/src/demos/DashboardWrapper.tsx +6 -7
  170. package/src/demos/DataList/examples/DataListBasic.tsx +17 -20
  171. package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +7 -9
  172. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +6 -8
  173. package/src/demos/JumpLinks.md +3 -3
  174. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +7 -8
  175. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +7 -8
  176. package/src/demos/RTL/examples/PaginatedTable.jsx +5 -7
  177. package/src/demos/RTL/examples/PaginatedTable.tsx +5 -7
  178. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +14 -15
  179. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +7 -8
  180. package/src/demos/examples/DashboardWrapper.js +6 -7
  181. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -3
  182. package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -13
  183. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +5 -6
  184. package/src/demos/examples/Nav/NavDefault.tsx +8 -9
  185. package/src/demos/examples/Nav/NavExpandable.tsx +8 -9
  186. package/src/demos/examples/Nav/NavGrouped.tsx +8 -9
  187. package/src/demos/examples/Nav/NavHorizontal.tsx +7 -8
  188. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +7 -8
  189. package/src/demos/examples/Nav/NavManual.tsx +7 -8
  190. package/src/demos/examples/Nav/NavWithSubnav.tsx +8 -9
  191. package/src/demos/examples/Page/PageContextSelector.tsx +5 -6
  192. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -6
  193. package/src/demos/examples/Page/PageStickySectionGroup.tsx +5 -6
  194. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -6
  195. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +10 -14
  196. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +7 -8
  197. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +8 -10
  198. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +7 -8
  199. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +7 -8
  200. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +8 -10
  201. package/src/demos/examples/Tabs/ModalTabs.tsx +5 -6
  202. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +4 -5
  203. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +4 -6
  204. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +5 -6
  205. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +8 -9
  206. package/dist/esm/components/Content/TextContent.d.ts +0 -11
  207. package/dist/esm/components/Content/TextContent.d.ts.map +0 -1
  208. package/dist/esm/components/Content/TextContent.js +0 -10
  209. package/dist/esm/components/Content/TextContent.js.map +0 -1
  210. package/dist/esm/components/Content/TextList.d.ts +0 -18
  211. package/dist/esm/components/Content/TextList.d.ts.map +0 -1
  212. package/dist/esm/components/Content/TextList.js +0 -22
  213. package/dist/esm/components/Content/TextList.js.map +0 -1
  214. package/dist/esm/components/Content/TextListItem.d.ts +0 -16
  215. package/dist/esm/components/Content/TextListItem.d.ts.map +0 -1
  216. package/dist/esm/components/Content/TextListItem.js +0 -22
  217. package/dist/esm/components/Content/TextListItem.js.map +0 -1
  218. package/dist/js/components/Content/TextContent.d.ts +0 -11
  219. package/dist/js/components/Content/TextContent.d.ts.map +0 -1
  220. package/dist/js/components/Content/TextContent.js +0 -14
  221. package/dist/js/components/Content/TextContent.js.map +0 -1
  222. package/dist/js/components/Content/TextList.d.ts +0 -18
  223. package/dist/js/components/Content/TextList.d.ts.map +0 -1
  224. package/dist/js/components/Content/TextList.js +0 -26
  225. package/dist/js/components/Content/TextList.js.map +0 -1
  226. package/dist/js/components/Content/TextListItem.d.ts +0 -16
  227. package/dist/js/components/Content/TextListItem.d.ts.map +0 -1
  228. package/dist/js/components/Content/TextListItem.js +0 -26
  229. package/dist/js/components/Content/TextListItem.js.map +0 -1
  230. package/src/components/Content/TextContent.tsx +0 -25
  231. package/src/components/Content/TextList.tsx +0 -43
  232. package/src/components/Content/TextListItem.tsx +0 -40
  233. package/src/components/Content/__tests__/Generated/TextContent.test.tsx +0 -13
  234. package/src/components/Content/__tests__/Generated/TextList.test.tsx +0 -13
  235. package/src/components/Content/__tests__/Generated/TextListItem.test.tsx +0 -13
  236. package/src/components/Content/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +0 -11
  237. package/src/components/Content/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +0 -11
  238. package/src/components/Content/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +0 -11
  239. package/src/components/Content/__tests__/TextContent.test.tsx +0 -48
  240. package/src/components/Content/__tests__/TextList.test.tsx +0 -52
  241. package/src/components/Content/__tests__/TextListItem.test.tsx +0 -47
  242. package/src/components/Content/__tests__/__snapshots__/TextContent.test.tsx.snap +0 -11
  243. package/src/components/Content/__tests__/__snapshots__/TextList.test.tsx.snap +0 -11
  244. package/src/components/Content/__tests__/__snapshots__/TextListItem.test.tsx.snap +0 -11
  245. package/src/components/Text/examples/Text.md +0 -8
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Card,
4
4
  CardBody,
5
+ Content,
5
6
  Gallery,
6
7
  GalleryItem,
7
8
  Nav,
@@ -11,9 +12,7 @@ import {
11
12
  PageSection,
12
13
  PageSidebar,
13
14
  PageSidebarBody,
14
- SkipToContent,
15
- TextContent,
16
- Text
15
+ SkipToContent
17
16
  } from '@patternfly/react-core';
18
17
  import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
19
18
  import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
@@ -72,13 +71,13 @@ export const NavDefault: React.FunctionComponent = () => {
72
71
  mainContainerId={pageId}
73
72
  >
74
73
  <PageSection>
75
- <TextContent>
76
- <Text component="h1">Main title</Text>
77
- <Text component="p">
78
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
74
+ <Content>
75
+ <h1>Main title</h1>
76
+ <p>
77
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
79
78
  of its relative line height of 1.5.
80
- </Text>
81
- </TextContent>
79
+ </p>
80
+ </Content>
82
81
  </PageSection>
83
82
  <PageSection>
84
83
  <Gallery hasGutter>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Card,
4
4
  CardBody,
5
+ Content,
5
6
  Gallery,
6
7
  GalleryItem,
7
8
  Nav,
@@ -12,9 +13,7 @@ import {
12
13
  PageSection,
13
14
  PageSidebar,
14
15
  PageSidebarBody,
15
- SkipToContent,
16
- TextContent,
17
- Text
16
+ SkipToContent
18
17
  } from '@patternfly/react-core';
19
18
  import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
20
19
  import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
@@ -98,13 +97,13 @@ export const NavExpandableDemo: React.FunctionComponent = () => {
98
97
  mainContainerId={pageId}
99
98
  >
100
99
  <PageSection>
101
- <TextContent>
102
- <Text component="h1">Main title</Text>
103
- <Text component="p">
104
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
100
+ <Content>
101
+ <h1>Main title</h1>
102
+ <p>
103
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
105
104
  of its relative line height of 1.5.
106
- </Text>
107
- </TextContent>
105
+ </p>
106
+ </Content>
108
107
  </PageSection>
109
108
  <PageSection>
110
109
  <Gallery hasGutter>
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import {
3
+ Content,
3
4
  Nav,
4
5
  NavGroup,
5
6
  NavItem,
@@ -7,9 +8,7 @@ import {
7
8
  PageSection,
8
9
  PageSidebar,
9
10
  PageSidebarBody,
10
- SkipToContent,
11
- TextContent,
12
- Text
11
+ SkipToContent
13
12
  } from '@patternfly/react-core';
14
13
  import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
15
14
 
@@ -80,13 +79,13 @@ export const NavGrouped: React.FunctionComponent = () => {
80
79
  mainContainerId={pageId}
81
80
  >
82
81
  <PageSection>
83
- <TextContent>
84
- <Text component="h1">Main title</Text>
85
- <Text component="p">
86
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
82
+ <Content>
83
+ <h1>Main title</h1>
84
+ <p>
85
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
87
86
  of its relative line height of 1.5.
88
- </Text>
89
- </TextContent>
87
+ </p>
88
+ </Content>
90
89
  </PageSection>
91
90
  <PageSection>Section 1</PageSection>
92
91
  <PageSection>Section 2</PageSection>
@@ -6,6 +6,7 @@ import {
6
6
  ButtonVariant,
7
7
  Card,
8
8
  CardBody,
9
+ Content,
9
10
  Divider,
10
11
  Dropdown,
11
12
  DropdownGroup,
@@ -24,8 +25,6 @@ import {
24
25
  Page,
25
26
  PageSection,
26
27
  SkipToContent,
27
- TextContent,
28
- Text,
29
28
  Toolbar,
30
29
  ToolbarContent,
31
30
  ToolbarGroup,
@@ -216,13 +215,13 @@ export const NavHorizontal: React.FunctionComponent = () => {
216
215
  mainContainerId={pageId}
217
216
  >
218
217
  <PageSection>
219
- <TextContent>
220
- <Text component="h1">Main title</Text>
221
- <Text component="p">
222
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
218
+ <Content>
219
+ <h1>Main title</h1>
220
+ <p>
221
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
223
222
  of its relative line height of 1.5.
224
- </Text>
225
- </TextContent>
223
+ </p>
224
+ </Content>
226
225
  </PageSection>
227
226
  <PageSection>
228
227
  <Gallery hasGutter>
@@ -6,6 +6,7 @@ import {
6
6
  ButtonVariant,
7
7
  Card,
8
8
  CardBody,
9
+ Content,
9
10
  Divider,
10
11
  Dropdown,
11
12
  DropdownGroup,
@@ -27,8 +28,6 @@ import {
27
28
  PageSectionTypes,
28
29
  PageToggleButton,
29
30
  SkipToContent,
30
- TextContent,
31
- Text,
32
31
  Toolbar,
33
32
  ToolbarContent,
34
33
  ToolbarGroup,
@@ -271,13 +270,13 @@ export const NavHorizontalWithSubnav: React.FunctionComponent = () => {
271
270
  {DashboardBreadcrumb}
272
271
  </PageSection>
273
272
  <PageSection>
274
- <TextContent>
275
- <Text component="h1">Main title</Text>
276
- <Text component="p">
277
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
273
+ <Content>
274
+ <h1>Main title</h1>
275
+ <p>
276
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
278
277
  of it’s relative line height of 1.5.
279
- </Text>
280
- </TextContent>
278
+ </p>
279
+ </Content>
281
280
  </PageSection>
282
281
  <PageSection>
283
282
  <Gallery hasGutter>
@@ -6,6 +6,7 @@ import {
6
6
  ButtonVariant,
7
7
  Card,
8
8
  CardBody,
9
+ Content,
9
10
  Divider,
10
11
  Dropdown,
11
12
  DropdownGroup,
@@ -28,8 +29,6 @@ import {
28
29
  PageSidebarBody,
29
30
  PageToggleButton,
30
31
  SkipToContent,
31
- TextContent,
32
- Text,
33
32
  Toolbar,
34
33
  ToolbarContent,
35
34
  ToolbarGroup,
@@ -247,13 +246,13 @@ export const NavManual: React.FunctionComponent = () => {
247
246
  mainContainerId={pageId}
248
247
  >
249
248
  <PageSection>
250
- <TextContent>
251
- <Text component="h1">Main title</Text>
252
- <Text component="p">
253
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
249
+ <Content>
250
+ <h1>Main title</h1>
251
+ <p>
252
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
254
253
  of its relative line height of 1.5.
255
- </Text>
256
- </TextContent>
254
+ </p>
255
+ </Content>
257
256
  </PageSection>
258
257
  <PageSection>
259
258
  <Gallery hasGutter>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Card,
4
4
  CardBody,
5
+ Content,
5
6
  Gallery,
6
7
  GalleryItem,
7
8
  Nav,
@@ -12,9 +13,7 @@ import {
12
13
  PageSectionTypes,
13
14
  PageSidebar,
14
15
  PageSidebarBody,
15
- SkipToContent,
16
- TextContent,
17
- Text
16
+ SkipToContent
18
17
  } from '@patternfly/react-core';
19
18
  import { DashboardBreadcrumb } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
20
19
  import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardHeader';
@@ -116,13 +115,13 @@ export const NavWithSubnav: React.FunctionComponent = () => {
116
115
  {DashboardBreadcrumb}
117
116
  </PageSection>
118
117
  <PageSection>
119
- <TextContent>
120
- <Text component="h1">Main title</Text>
121
- <Text component="p">
122
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
118
+ <Content>
119
+ <h1>Main title</h1>
120
+ <p>
121
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
123
122
  of it’s relative line height of 1.5.
124
- </Text>
125
- </TextContent>
123
+ </p>
124
+ </Content>
126
125
  </PageSection>
127
126
  <PageSection>
128
127
  <Gallery hasGutter>
@@ -31,8 +31,7 @@ import {
31
31
  PageSidebarBody,
32
32
  PageToggleButton,
33
33
  SkipToContent,
34
- Text,
35
- TextContent,
34
+ Content,
36
35
  Toolbar,
37
36
  ToolbarContent,
38
37
  ToolbarGroup,
@@ -298,10 +297,10 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => {
298
297
  isBreadcrumbWidthLimited
299
298
  >
300
299
  <PageSection isWidthLimited>
301
- <TextContent>
302
- <Text component="h1">Main title</Text>
303
- <Text component="p">This is a full page demo.</Text>
304
- </TextContent>
300
+ <Content>
301
+ <Content component="h1">Main title</Content>
302
+ <Content component="p">This is a full page demo.</Content>
303
+ </Content>
305
304
  </PageSection>
306
305
  <PageSection isWidthLimited>
307
306
  <Gallery hasGutter>
@@ -8,6 +8,7 @@ import {
8
8
  ButtonVariant,
9
9
  Card,
10
10
  CardBody,
11
+ Content,
11
12
  Divider,
12
13
  Dropdown,
13
14
  DropdownGroup,
@@ -31,8 +32,6 @@ import {
31
32
  PageSidebarBody,
32
33
  PageToggleButton,
33
34
  SkipToContent,
34
- Text,
35
- TextContent,
36
35
  Toolbar,
37
36
  ToolbarContent,
38
37
  ToolbarGroup,
@@ -270,10 +269,10 @@ export const PageStickySectionBreadcrumb: React.FunctionComponent = () => {
270
269
  }}
271
270
  >
272
271
  <PageSection isWidthLimited>
273
- <TextContent>
274
- <Text component="h1">Main title</Text>
275
- <Text component="p">This is a full page demo.</Text>
276
- </TextContent>
272
+ <Content>
273
+ <h1>Main title</h1>
274
+ <p>This is a full page demo.</p>
275
+ </Content>
277
276
  </PageSection>
278
277
  <PageSection isWidthLimited>
279
278
  <Gallery hasGutter>
@@ -8,6 +8,7 @@ import {
8
8
  ButtonVariant,
9
9
  Card,
10
10
  CardBody,
11
+ Content,
11
12
  Divider,
12
13
  Dropdown,
13
14
  DropdownGroup,
@@ -31,8 +32,6 @@ import {
31
32
  PageSidebarBody,
32
33
  PageToggleButton,
33
34
  SkipToContent,
34
- Text,
35
- TextContent,
36
35
  Toolbar,
37
36
  ToolbarContent,
38
37
  ToolbarGroup,
@@ -266,10 +265,10 @@ export const PageStickySectionGroup: React.FunctionComponent = () => {
266
265
  isBreadcrumbGrouped
267
266
  additionalGroupedContent={
268
267
  <PageSection isWidthLimited>
269
- <TextContent>
270
- <Text component="h1">Main title</Text>
271
- <Text component="p">This is a full page demo.</Text>
272
- </TextContent>
268
+ <Content>
269
+ <h1>Main title</h1>
270
+ <p>This is a full page demo.</p>
271
+ </Content>
273
272
  </PageSection>
274
273
  }
275
274
  groupProps={{
@@ -8,6 +8,7 @@ import {
8
8
  ButtonVariant,
9
9
  Card,
10
10
  CardBody,
11
+ Content,
11
12
  Divider,
12
13
  Dropdown,
13
14
  DropdownGroup,
@@ -33,8 +34,6 @@ import {
33
34
  PageSidebarBody,
34
35
  PageToggleButton,
35
36
  SkipToContent,
36
- Text,
37
- TextContent,
38
37
  Toolbar,
39
38
  ToolbarContent,
40
39
  ToolbarGroup,
@@ -266,10 +265,10 @@ export const PageStickySectionGroupAlternate: React.FunctionComponent = () => {
266
265
  </Breadcrumb>
267
266
  </PageBreadcrumb>
268
267
  <PageSection isWidthLimited>
269
- <TextContent>
270
- <Text component="h1">Main title</Text>
271
- <Text component="p">This is a full page demo.</Text>
272
- </TextContent>
268
+ <Content>
269
+ <h1>Main title</h1>
270
+ <p>This is a full page demo.</p>
271
+ </Content>
273
272
  </PageSection>{' '}
274
273
  </PageGroup>
275
274
  <PageSection>
@@ -6,6 +6,7 @@ import {
6
6
  CardHeader,
7
7
  CardBody,
8
8
  CardTitle,
9
+ Content,
9
10
  Divider,
10
11
  Drawer,
11
12
  DrawerActions,
@@ -24,14 +25,11 @@ import {
24
25
  MenuToggle,
25
26
  MenuToggleCheckbox,
26
27
  PageSection,
27
- PageSectionVariants,
28
28
  Pagination,
29
29
  Progress,
30
30
  Select,
31
31
  SelectList,
32
32
  SelectOption,
33
- TextContent,
34
- Text,
35
33
  Title,
36
34
  Toolbar,
37
35
  ToolbarFilter,
@@ -573,11 +571,9 @@ export const PrimaryDetailCardView: React.FunctionComponent = () => {
573
571
  </Button>
574
572
  </FlexItem>
575
573
  <FlexItem>
576
- <TextContent>
577
- <Text component="small" className="pf-v6-u-color-200 pf-v6-u-font-family-text">
578
- Provided by Red Hat
579
- </Text>
580
- </TextContent>
574
+ <Content>
575
+ <small className="pf-v6-u-color-200 pf-v6-u-font-family-text">Provided by Red Hat</small>
576
+ </Content>
581
577
  </FlexItem>
582
578
  </Flex>
583
579
  </CardTitle>
@@ -620,11 +616,11 @@ export const PrimaryDetailCardView: React.FunctionComponent = () => {
620
616
 
621
617
  return (
622
618
  <DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
623
- <PageSection variant={PageSectionVariants.light}>
624
- <TextContent>
625
- <Text component="h1">Projects</Text>
626
- <Text component="p">This is a demo that showcases Patternfly Cards.</Text>
627
- </TextContent>
619
+ <PageSection>
620
+ <Content>
621
+ <h1>Projects</h1>
622
+ <p>This is a demo that showcases Patternfly cards.</p>
623
+ </Content>
628
624
  </PageSection>
629
625
  <PageSection isFilled padding={{ default: 'noPadding' }}>
630
626
  <Toolbar id="card-view-data-toolbar-group-types" clearAllFilters={onDelete}>
@@ -634,7 +630,7 @@ export const PrimaryDetailCardView: React.FunctionComponent = () => {
634
630
  </PageSection>
635
631
  <PageSection isFilled padding={{ default: 'noPadding' }}>
636
632
  <Drawer isExpanded={isDrawerExpanded} className={'pf-m-inline-on-2xl'}>
637
- <DrawerContent panelContent={panelContent} colorVariant="no-background">
633
+ <DrawerContent panelContent={panelContent}>
638
634
  <DrawerContentBody hasPadding>{drawerContent}</DrawerContentBody>
639
635
  </DrawerContent>
640
636
  </Drawer>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Button,
4
4
  ButtonVariant,
5
+ Content,
5
6
  DataList,
6
7
  DataListAction,
7
8
  DataListCell,
@@ -30,8 +31,6 @@ import {
30
31
  Progress,
31
32
  Stack,
32
33
  StackItem,
33
- Text,
34
- TextContent,
35
34
  TextInput,
36
35
  Title,
37
36
  Select,
@@ -419,13 +418,13 @@ export const PrimaryDetailContentPadding: React.FunctionComponent = () => {
419
418
  return (
420
419
  <DashboardWrapper>
421
420
  <PageSection>
422
- <TextContent>
423
- <Text component="h1">Main title</Text>
424
- <Text component="p">
425
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
421
+ <Content>
422
+ <h1>Main title</h1>
423
+ <p>
424
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
426
425
  of it's relative line height of 1.5.
427
- </Text>
428
- </TextContent>
426
+ </p>
427
+ </Content>
429
428
  </PageSection>
430
429
  <Divider component="div" />
431
430
  <PageSection padding={{ default: 'noPadding' }}>
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Card,
4
+ Content,
4
5
  DataList,
5
6
  DataListCell,
6
7
  DataListItem,
@@ -25,10 +26,7 @@ import {
25
26
  FlexItem,
26
27
  MenuToggle,
27
28
  PageSection,
28
- PageSectionVariants,
29
29
  Progress,
30
- Text,
31
- TextContent,
32
30
  Title
33
31
  } from '@patternfly/react-core';
34
32
  import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
@@ -183,14 +181,14 @@ export const PrimaryDetailDataListInCard: React.FunctionComponent = () => {
183
181
 
184
182
  return (
185
183
  <DashboardWrapper>
186
- <PageSection variant={PageSectionVariants.light}>
187
- <TextContent>
188
- <Text component="h1">Main title</Text>
189
- <Text component="p">
190
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
184
+ <PageSection>
185
+ <Content>
186
+ <h1>Main title</h1>
187
+ <p>
188
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
191
189
  of it’s relative line height of 1.5.
192
- </Text>
193
- </TextContent>
190
+ </p>
191
+ </Content>
194
192
  </PageSection>
195
193
  <Divider component="div" />
196
194
  <PageSection>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Button,
4
4
  ButtonVariant,
5
+ Content,
5
6
  DataList,
6
7
  DataListAction,
7
8
  DataListCell,
@@ -30,8 +31,6 @@ import {
30
31
  Progress,
31
32
  Stack,
32
33
  StackItem,
33
- Text,
34
- TextContent,
35
34
  TextInput,
36
35
  Title,
37
36
  Select,
@@ -419,13 +418,13 @@ export const PrimaryDetailFullPage: React.FunctionComponent = () => {
419
418
  return (
420
419
  <DashboardWrapper mainContainerId="main-content-page-layout-default-nav">
421
420
  <PageSection>
422
- <TextContent>
423
- <Text component="h1">Main title</Text>
424
- <Text component="p">
425
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
421
+ <Content>
422
+ <h1>Main title</h1>
423
+ <p>
424
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
426
425
  of it's relative line height of 1.5.
427
- </Text>
428
- </TextContent>
426
+ </p>
427
+ </Content>
429
428
  </PageSection>
430
429
  <Divider component="div" />
431
430
  <PageSection padding={{ default: 'noPadding' }}>
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Button,
4
4
  ButtonVariant,
5
+ Content,
5
6
  DataList,
6
7
  DataListAction,
7
8
  DataListCell,
@@ -30,8 +31,6 @@ import {
30
31
  Progress,
31
32
  Stack,
32
33
  StackItem,
33
- Text,
34
- TextContent,
35
34
  TextInput,
36
35
  Title,
37
36
  Select,
@@ -419,13 +418,13 @@ export const PrimaryDetailInlineModifier: React.FunctionComponent = () => {
419
418
  return (
420
419
  <DashboardWrapper>
421
420
  <PageSection>
422
- <TextContent>
423
- <Text component="h1">Main title</Text>
424
- <Text component="p">
425
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
421
+ <Content>
422
+ <h1>Main title</h1>
423
+ <p>
424
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
426
425
  of it's relative line height of 1.5.
427
- </Text>
428
- </TextContent>
426
+ </p>
427
+ </Content>
429
428
  </PageSection>
430
429
  <Divider component="div" />
431
430
  <PageSection padding={{ default: 'noPadding' }}>
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Card,
4
+ Content,
4
5
  Divider,
5
6
  Drawer,
6
7
  DrawerActions,
@@ -13,13 +14,10 @@ import {
13
14
  Flex,
14
15
  FlexItem,
15
16
  PageSection,
16
- PageSectionVariants,
17
17
  Progress,
18
18
  SimpleList,
19
19
  SimpleListGroup,
20
20
  SimpleListItem,
21
- Text,
22
- TextContent,
23
21
  Title
24
22
  } from '@patternfly/react-core';
25
23
  import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
@@ -92,14 +90,14 @@ export const PrimaryDetailSimpleListInCard: React.FunctionComponent = () => {
92
90
 
93
91
  return (
94
92
  <DashboardWrapper>
95
- <PageSection variant={PageSectionVariants.light}>
96
- <TextContent>
97
- <Text component="h1">Main title</Text>
98
- <Text component="p">
99
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
93
+ <PageSection>
94
+ <Content>
95
+ <h1>Main title</h1>
96
+ <p>
97
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
100
98
  of it’s relative line height of 1.5.
101
- </Text>
102
- </TextContent>
99
+ </p>
100
+ </Content>
103
101
  </PageSection>
104
102
  <Divider component="div" />
105
103
  <PageSection>