@patternfly/react-core 6.0.0-alpha.87 → 6.0.0-alpha.89

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 (246) hide show
  1. package/CHANGELOG.md +10 -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-D3SMJk_R.css} +5393 -5393
  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/Slider.md +1 -1
  163. package/src/components/Slider/examples/SliderActions.tsx +2 -2
  164. package/src/components/Slider/examples/SliderContinuous.tsx +3 -3
  165. package/src/components/Slider/examples/SliderDisabled.tsx +2 -2
  166. package/src/components/Slider/examples/SliderDiscrete.tsx +14 -14
  167. package/src/components/Spinner/examples/SpinnerInline.tsx +10 -12
  168. package/src/demos/Banner.md +14 -25
  169. package/src/demos/CardView/examples/CardView.tsx +5 -6
  170. package/src/demos/DashboardWrapper.tsx +6 -7
  171. package/src/demos/DataList/examples/DataListBasic.tsx +17 -20
  172. package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +7 -9
  173. package/src/demos/DescriptionList/examples/DescriptionListBasic.tsx +6 -8
  174. package/src/demos/JumpLinks.md +3 -3
  175. package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +7 -8
  176. package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +7 -8
  177. package/src/demos/RTL/examples/PaginatedTable.jsx +5 -7
  178. package/src/demos/RTL/examples/PaginatedTable.tsx +5 -7
  179. package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +14 -15
  180. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +7 -8
  181. package/src/demos/examples/DashboardWrapper.js +6 -7
  182. package/src/demos/examples/JumpLinks/JumpLinksWithDrawer.js +3 -3
  183. package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -13
  184. package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +5 -6
  185. package/src/demos/examples/Nav/NavDefault.tsx +8 -9
  186. package/src/demos/examples/Nav/NavExpandable.tsx +8 -9
  187. package/src/demos/examples/Nav/NavGrouped.tsx +8 -9
  188. package/src/demos/examples/Nav/NavHorizontal.tsx +7 -8
  189. package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +7 -8
  190. package/src/demos/examples/Nav/NavManual.tsx +7 -8
  191. package/src/demos/examples/Nav/NavWithSubnav.tsx +8 -9
  192. package/src/demos/examples/Page/PageContextSelector.tsx +5 -6
  193. package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -6
  194. package/src/demos/examples/Page/PageStickySectionGroup.tsx +5 -6
  195. package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -6
  196. package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +10 -14
  197. package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +7 -8
  198. package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +8 -10
  199. package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +7 -8
  200. package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +7 -8
  201. package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +8 -10
  202. package/src/demos/examples/Tabs/ModalTabs.tsx +5 -6
  203. package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +4 -5
  204. package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +4 -6
  205. package/src/demos/examples/Wizard/InPageWithDrawer.tsx +5 -6
  206. package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +8 -9
  207. package/dist/esm/components/Content/TextContent.d.ts +0 -11
  208. package/dist/esm/components/Content/TextContent.d.ts.map +0 -1
  209. package/dist/esm/components/Content/TextContent.js +0 -10
  210. package/dist/esm/components/Content/TextContent.js.map +0 -1
  211. package/dist/esm/components/Content/TextList.d.ts +0 -18
  212. package/dist/esm/components/Content/TextList.d.ts.map +0 -1
  213. package/dist/esm/components/Content/TextList.js +0 -22
  214. package/dist/esm/components/Content/TextList.js.map +0 -1
  215. package/dist/esm/components/Content/TextListItem.d.ts +0 -16
  216. package/dist/esm/components/Content/TextListItem.d.ts.map +0 -1
  217. package/dist/esm/components/Content/TextListItem.js +0 -22
  218. package/dist/esm/components/Content/TextListItem.js.map +0 -1
  219. package/dist/js/components/Content/TextContent.d.ts +0 -11
  220. package/dist/js/components/Content/TextContent.d.ts.map +0 -1
  221. package/dist/js/components/Content/TextContent.js +0 -14
  222. package/dist/js/components/Content/TextContent.js.map +0 -1
  223. package/dist/js/components/Content/TextList.d.ts +0 -18
  224. package/dist/js/components/Content/TextList.d.ts.map +0 -1
  225. package/dist/js/components/Content/TextList.js +0 -26
  226. package/dist/js/components/Content/TextList.js.map +0 -1
  227. package/dist/js/components/Content/TextListItem.d.ts +0 -16
  228. package/dist/js/components/Content/TextListItem.d.ts.map +0 -1
  229. package/dist/js/components/Content/TextListItem.js +0 -26
  230. package/dist/js/components/Content/TextListItem.js.map +0 -1
  231. package/src/components/Content/TextContent.tsx +0 -25
  232. package/src/components/Content/TextList.tsx +0 -43
  233. package/src/components/Content/TextListItem.tsx +0 -40
  234. package/src/components/Content/__tests__/Generated/TextContent.test.tsx +0 -13
  235. package/src/components/Content/__tests__/Generated/TextList.test.tsx +0 -13
  236. package/src/components/Content/__tests__/Generated/TextListItem.test.tsx +0 -13
  237. package/src/components/Content/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +0 -11
  238. package/src/components/Content/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +0 -11
  239. package/src/components/Content/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +0 -11
  240. package/src/components/Content/__tests__/TextContent.test.tsx +0 -48
  241. package/src/components/Content/__tests__/TextList.test.tsx +0 -52
  242. package/src/components/Content/__tests__/TextListItem.test.tsx +0 -47
  243. package/src/components/Content/__tests__/__snapshots__/TextContent.test.tsx.snap +0 -11
  244. package/src/components/Content/__tests__/__snapshots__/TextList.test.tsx.snap +0 -11
  245. package/src/components/Content/__tests__/__snapshots__/TextListItem.test.tsx.snap +0 -11
  246. package/src/components/Text/examples/Text.md +0 -8
@@ -7,6 +7,7 @@ import {
7
7
  CardHeader,
8
8
  CardTitle,
9
9
  CardBody,
10
+ Content,
10
11
  Divider,
11
12
  Dropdown,
12
13
  DropdownItem,
@@ -24,8 +25,6 @@ import {
24
25
  OverflowMenuItem,
25
26
  PageSection,
26
27
  Pagination,
27
- TextContent,
28
- Text,
29
28
  Toolbar,
30
29
  ToolbarItem,
31
30
  ToolbarFilter,
@@ -470,10 +469,10 @@ export const CardViewBasic: React.FunctionComponent = () => {
470
469
  <React.Fragment>
471
470
  <DashboardWrapper mainContainerId="main-content-card-view-default-nav" breadcrumb={null}>
472
471
  <PageSection>
473
- <TextContent>
474
- <Text component="h1">Projects</Text>
475
- <Text component="p">This is a demo that showcases PatternFly cards.</Text>
476
- </TextContent>
472
+ <Content>
473
+ <h1>Projects</h1>
474
+ <p>This is a demo that showcases PatternFly cards.</p>
475
+ </Content>
477
476
  <Toolbar id="toolbar-group-types" clearAllFilters={onDelete}>
478
477
  <ToolbarContent>{toolbarItems}</ToolbarContent>
479
478
  </Toolbar>
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
2
2
  import {
3
3
  Breadcrumb,
4
4
  BreadcrumbItem,
5
+ Content,
5
6
  Nav,
6
7
  NavItem,
7
8
  NavList,
@@ -10,9 +11,7 @@ import {
10
11
  PageSection,
11
12
  PageSidebar,
12
13
  PageSidebarBody,
13
- SkipToContent,
14
- Text,
15
- TextContent
14
+ SkipToContent
16
15
  } from '../components';
17
16
  import { DashboardHeader } from './DashboardHeader';
18
17
 
@@ -38,10 +37,10 @@ export const DashboardBreadcrumb = (
38
37
 
39
38
  const PageTemplateTitle = (
40
39
  <PageSection>
41
- <TextContent>
42
- <Text component="h1">Main title</Text>
43
- <Text component="p">This is a full page demo.</Text>
44
- </TextContent>
40
+ <Content>
41
+ <h1>Main title</h1>
42
+ <p>This is a full page demo.</p>
43
+ </Content>
45
44
  </PageSection>
46
45
  );
47
46
 
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Button,
4
+ Content,
4
5
  DataList,
5
6
  DataListItem,
6
7
  DataListCell,
@@ -14,11 +15,7 @@ import {
14
15
  OverflowMenuControl,
15
16
  OverflowMenuItem,
16
17
  PageSection,
17
- PageSectionVariants,
18
18
  Pagination,
19
- Text,
20
- TextContent,
21
- TextVariants,
22
19
  Toolbar,
23
20
  ToolbarItem,
24
21
  ToolbarContent
@@ -76,11 +73,11 @@ export const DataListBasic: React.FunctionComponent = () => {
76
73
  return (
77
74
  <React.Fragment>
78
75
  <DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
79
- <PageSection variant={PageSectionVariants.light}>
80
- <TextContent>
81
- <Text component="h1">Projects</Text>
82
- <Text component="p">This is a demo that showcases PatternFly Data List</Text>
83
- </TextContent>
76
+ <PageSection>
77
+ <Content>
78
+ <h1>Projects</h1>
79
+ <p>This is a demo that showcases PatternFly data list</p>
80
+ </Content>
84
81
  </PageSection>
85
82
  <PageSection isFilled>
86
83
  <Toolbar id="toolbar-group-types">
@@ -94,13 +91,13 @@ export const DataListBasic: React.FunctionComponent = () => {
94
91
  <DataListCell isFilled={false} key="buttons1">
95
92
  <Flex direction={{ default: 'column' }}>
96
93
  <FlexItem>
97
- <Text component={TextVariants.p}>patternfly</Text>
94
+ <Content component="p">patternfly</Content>
98
95
  </FlexItem>
99
96
  <FlexItem>
100
- <Text component={TextVariants.small}>
97
+ <Content component="small">
101
98
  Working repo for
102
99
  <a href="http://www.patternfly.org/">PatternFly</a>
103
- </Text>
100
+ </Content>
104
101
  </FlexItem>
105
102
  <FlexItem>
106
103
  <Flex spaceItems={{ default: 'spaceItemsSm' }}>
@@ -139,10 +136,10 @@ export const DataListBasic: React.FunctionComponent = () => {
139
136
  <DataListCell isFilled={false} key="buttons2">
140
137
  <Flex direction={{ default: 'column' }}>
141
138
  <FlexItem>
142
- <Text component={TextVariants.small}>patternfly-elements</Text>
139
+ <Content component="small">patternfly-elements</Content>
143
140
  </FlexItem>
144
141
  <FlexItem>
145
- <Text component={TextVariants.small}>PatternFly elements</Text>
142
+ <Content component="small">PatternFly elements</Content>
146
143
  </FlexItem>
147
144
  <FlexItem>
148
145
  <Flex spaceItems={{ default: 'spaceItemsSm' }}>
@@ -191,7 +188,7 @@ export const DataListBasic: React.FunctionComponent = () => {
191
188
  <DataListCell isFilled={false} key="Demo-item3">
192
189
  <Flex direction={{ default: 'column' }}>
193
190
  <FlexItem>
194
- <Text component={TextVariants.small}>patternfly-unified-design-kit</Text>
191
+ <Content component="small">patternfly-unified-design-kit</Content>
195
192
  </FlexItem>
196
193
  </Flex>
197
194
  </DataListCell>,
@@ -216,13 +213,13 @@ export const DataListBasic: React.FunctionComponent = () => {
216
213
  <DataListCell isFilled={false} key="buttons4">
217
214
  <Flex direction={{ default: 'column' }}>
218
215
  <FlexItem>
219
- <Text component={TextVariants.small}>patternfly</Text>
216
+ <Content component="small">patternfly</Content>
220
217
  </FlexItem>
221
218
  <FlexItem>
222
- <Text component={TextVariants.small}>
219
+ <Content component="small">
223
220
  Working repo for
224
221
  <a href="http://www.patternfly.org/">PatternFly</a>
225
- </Text>
222
+ </Content>
226
223
  </FlexItem>
227
224
  <FlexItem>
228
225
  <Flex spaceItems={{ default: 'spaceItemsSm' }}>
@@ -262,10 +259,10 @@ export const DataListBasic: React.FunctionComponent = () => {
262
259
  <DataListCell isFilled={false} key="buttons5">
263
260
  <Flex direction={{ default: 'column' }}>
264
261
  <FlexItem>
265
- <Text component={TextVariants.small}>patternfly-elements</Text>
262
+ <Content component="small">patternfly-elements</Content>
266
263
  </FlexItem>
267
264
  <FlexItem>
268
- <Text component={TextVariants.small}>PatternFly elements</Text>
265
+ <Content component="small">PatternFly elements</Content>
269
266
  </FlexItem>
270
267
  <FlexItem>
271
268
  <Flex spaceItems={{ default: 'spaceItemsSm' }}>
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Button,
4
+ Content,
4
5
  DataList,
5
6
  DataListItem,
6
7
  DataListItemRow,
@@ -22,10 +23,7 @@ import {
22
23
  SearchInput,
23
24
  Tooltip,
24
25
  Icon,
25
- PageSection,
26
- PageSectionVariants,
27
- Text,
28
- TextContent
26
+ PageSection
29
27
  } from '@patternfly/react-core';
30
28
 
31
29
  import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
@@ -135,11 +133,11 @@ export const DataListExpandableControlInToolbar: React.FunctionComponent = () =>
135
133
  return (
136
134
  <React.Fragment>
137
135
  <DashboardWrapper mainContainerId="main-content-datalist-view-default-nav" breadcrumb={null}>
138
- <PageSection variant={PageSectionVariants.light}>
139
- <TextContent>
140
- <Text component="h1">Projects</Text>
141
- <Text component="p">This is a demo that showcases PatternFly Data List</Text>
142
- </TextContent>
136
+ <PageSection>
137
+ <Content>
138
+ <h1>Projects</h1>
139
+ <p>This is a demo that showcases PatternFly data list</p>
140
+ </Content>
143
141
  </PageSection>
144
142
  <PageSection isFilled>
145
143
  {renderToolbar()}
@@ -5,12 +5,10 @@ import {
5
5
  DescriptionListGroup,
6
6
  DescriptionListDescription,
7
7
  PageSection,
8
- PageSectionVariants,
9
8
  Card,
10
9
  CardBody,
11
10
  CardHeader,
12
- TextContent,
13
- Text,
11
+ Content,
14
12
  Title,
15
13
  Divider,
16
14
  Flex,
@@ -21,11 +19,11 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
21
19
 
22
20
  export const DescriptionListBasic: React.FunctionComponent = () => (
23
21
  <DashboardWrapper>
24
- <PageSection variant={PageSectionVariants.light}>
25
- <TextContent>
26
- <Title headingLevel="h1">Projects</Title>
27
- <Text component="p">This is a full page demo</Text>
28
- </TextContent>
22
+ <PageSection>
23
+ <Content>
24
+ <Content component="h1">Projects</Content>
25
+ <Content component="p">This is a full page demo</Content>
26
+ </Content>
29
27
  </PageSection>
30
28
  <PageSection>
31
29
  <Card>
@@ -32,7 +32,7 @@ import {
32
32
  SidebarPanel,
33
33
  Switch,
34
34
  Title,
35
- TextContent,
35
+ Content,
36
36
  getResizeObserver
37
37
  } from '@patternfly/react-core';
38
38
  import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
@@ -101,7 +101,7 @@ ScrollspyH2 = () => {
101
101
  </SidebarPanel>
102
102
  <SidebarContent hasNoBackground>
103
103
  <PageSection>
104
- <TextContent>
104
+ <Content>
105
105
  {headings.map(i => (
106
106
  <div key={i} style={{ maxWidth: '800px', marginBottom: '32px' }}>
107
107
  <h2 id={`heading-${i}`} tabIndex={-1}>
@@ -128,7 +128,7 @@ ScrollspyH2 = () => {
128
128
  </p>
129
129
  </div>
130
130
  ))}
131
- </TextContent>
131
+ </Content>
132
132
  </PageSection>
133
133
  </SidebarContent>
134
134
  </Sidebar>
@@ -6,6 +6,7 @@ import {
6
6
  BreadcrumbItem,
7
7
  Button,
8
8
  ButtonVariant,
9
+ Content,
9
10
  Divider,
10
11
  Dropdown,
11
12
  DropdownItem,
@@ -32,8 +33,6 @@ import {
32
33
  PageSidebar,
33
34
  PageSidebarBody,
34
35
  SkipToContent,
35
- TextContent,
36
- Text,
37
36
  PageToggleButton,
38
37
  Masthead,
39
38
  MastheadMain,
@@ -530,13 +529,13 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
530
529
  mainContainerId={pageId}
531
530
  >
532
531
  <PageSection>
533
- <TextContent>
534
- <Text component="h1">Main title</Text>
535
- <Text component="p">
536
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
532
+ <Content>
533
+ <h1>Main title</h1>
534
+ <p>
535
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
537
536
  of its relative line height of 1.5.
538
- </Text>
539
- </TextContent>
537
+ </p>
538
+ </Content>
540
539
  </PageSection>
541
540
  <PageSection>Panel section content</PageSection>
542
541
  </Page>
@@ -6,6 +6,7 @@ import {
6
6
  BreadcrumbItem,
7
7
  Button,
8
8
  ButtonVariant,
9
+ Content,
9
10
  Divider,
10
11
  Dropdown,
11
12
  DropdownItem,
@@ -34,8 +35,6 @@ import {
34
35
  PageSidebar,
35
36
  PageSidebarBody,
36
37
  SkipToContent,
37
- TextContent,
38
- Text,
39
38
  PageToggleButton,
40
39
  Masthead,
41
40
  MastheadMain,
@@ -769,13 +768,13 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
769
768
  mainContainerId={pageId}
770
769
  >
771
770
  <PageSection>
772
- <TextContent>
773
- <Text component="h1">Main title</Text>
774
- <Text component="p">
775
- Body text should be Overpass Regular at 16px. It should have leading of 24px because <br />
771
+ <Content>
772
+ <h1>Main title</h1>
773
+ <p>
774
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
776
775
  of its relative line height of 1.5.
777
- </Text>
778
- </TextContent>
776
+ </p>
777
+ </Content>
779
778
  </PageSection>
780
779
  <PageSection>Panel section content</PageSection>
781
780
  </Page>
@@ -8,6 +8,7 @@ import {
8
8
  Button,
9
9
  ButtonVariant,
10
10
  Card,
11
+ Content,
11
12
  Divider,
12
13
  Dropdown,
13
14
  DropdownGroup,
@@ -32,9 +33,6 @@ import {
32
33
  PageToggleButton,
33
34
  Pagination,
34
35
  PaginationVariant,
35
- Text,
36
- TextContent,
37
- TextVariants,
38
36
  Toolbar,
39
37
  ToolbarContent,
40
38
  ToolbarGroup,
@@ -448,10 +446,10 @@ export const PaginatedTableAction = () => {
448
446
  </Breadcrumb>
449
447
  </PageBreadcrumb>
450
448
  <PageSection variant="light">
451
- <TextContent>
452
- <Text component={TextVariants.h1}>{translation.title}</Text>
453
- <Text component={TextVariants.p}>{translation.body}</Text>
454
- </TextContent>
449
+ <Content>
450
+ <h1>{translation.title}</h1>
451
+ <p>{translation.body}</p>
452
+ </Content>
455
453
  </PageSection>
456
454
  <PageSection>
457
455
  <Card>
@@ -8,6 +8,7 @@ import {
8
8
  Button,
9
9
  ButtonVariant,
10
10
  Card,
11
+ Content,
11
12
  Divider,
12
13
  Dropdown,
13
14
  DropdownGroup,
@@ -32,9 +33,6 @@ import {
32
33
  PageToggleButton,
33
34
  Pagination,
34
35
  PaginationVariant,
35
- Text,
36
- TextContent,
37
- TextVariants,
38
36
  Toolbar,
39
37
  ToolbarContent,
40
38
  ToolbarGroup,
@@ -474,10 +472,10 @@ export const PaginatedTableAction: React.FunctionComponent = () => {
474
472
  </Breadcrumb>
475
473
  </PageBreadcrumb>
476
474
  <PageSection variant="light">
477
- <TextContent>
478
- <Text component={TextVariants.h1}>{translation.title}</Text>
479
- <Text component={TextVariants.p}>{translation.body}</Text>
480
- </TextContent>
475
+ <Content>
476
+ <h1>{translation.title}</h1>
477
+ <p>{translation.body}</p>
478
+ </Content>
481
479
  </PageSection>
482
480
  <PageSection>
483
481
  <Card>
@@ -13,8 +13,7 @@ import {
13
13
  NotificationDrawerListItemBody,
14
14
  NotificationDrawerListItemHeader,
15
15
  PageSection,
16
- TextContent,
17
- Text,
16
+ Content,
18
17
  EmptyStateVariant,
19
18
  NumberInput,
20
19
  Alert,
@@ -316,15 +315,15 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
316
315
  isNotificationDrawerExpanded={isDrawerExpanded}
317
316
  >
318
317
  <PageSection>
319
- <TextContent>
320
- <Text component="h1">Alert Group with Notification Drawer demo</Text>
321
- <Text component="p">
322
- New alerts can be added with buttons below. Each alert has a timeout of 7 seconds, however, even after the
323
- timeout expires, all alerts are still visible in the notification drawer. By default, only 3 alerts are
324
- displayed. The rest can be accessed in the notification drawer after clicking on the bell icon in the header
325
- or by clicking on the overflow message.
326
- </Text>
327
- </TextContent>
318
+ <Content>
319
+ <h1>Alert group with notification drawer demo</h1>
320
+ <p>
321
+ New alerts can be added with the following buttons. Each alert has a timeout of 7 seconds, however, even
322
+ after the timeout expires, all alerts are still visible in the notification drawer. By default, only 3
323
+ alerts are displayed. The rest can be accessed in the notification drawer after clicking on the bell icon in
324
+ the header or by clicking on the overflow message.
325
+ </p>
326
+ </Content>
328
327
  </PageSection>
329
328
 
330
329
  <PageSection>
@@ -348,11 +347,11 @@ export const AlertGroupToastWithNotificationDrawer: React.FunctionComponent = ()
348
347
  </PageSection>
349
348
 
350
349
  <PageSection>
351
- <TextContent>
350
+ <Content>
352
351
  <br />
353
- <Text component="h2">Max displayed alerts</Text>
354
- <Text component="p">The maximum number of displayed alerts can be set below.</Text>
355
- </TextContent>
352
+ <h2>Max displayed alerts</h2>
353
+ <p>Adjust the maximum number of displayed alerts.</p>
354
+ </Content>
356
355
  <NumberInput
357
356
  value={maxDisplayed}
358
357
  min={minAlerts}
@@ -3,11 +3,10 @@ import {
3
3
  BackToTop,
4
4
  Card,
5
5
  CardBody,
6
+ Content,
6
7
  Gallery,
7
8
  GalleryItem,
8
9
  PageSection,
9
- TextContent,
10
- Text,
11
10
  Page,
12
11
  Switch
13
12
  } from '@patternfly/react-core';
@@ -24,14 +23,14 @@ export const Name = () => {
24
23
  <DashboardWrapper breadcrumb={null}>
25
24
  <Page>
26
25
  <PageSection>
27
- <TextContent>
28
- <Text component="h1">Main title</Text>
29
- <Text component="p">
30
- Body text should be Overpass Regular at 16px.It should have leading of 24px because <br />
26
+ <Content>
27
+ <h1>Main title</h1>
28
+ <p>
29
+ Body text should be Red Hat Text at 1rem(16px). It should have leading of 1.5rem(24px) because <br />
31
30
  of it’s relative line height of 1.5.
32
- </Text>
31
+ </p>
33
32
  <Switch label="Always show BackToTopButton" onChange={handleChange} isChecked={isAlwaysVisible} />
34
- </TextContent>
33
+ </Content>
35
34
  </PageSection>
36
35
  <PageSection
37
36
  hasOverflowScroll
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import {
3
3
  Breadcrumb,
4
4
  BreadcrumbItem,
5
+ Content,
5
6
  Nav,
6
7
  NavItem,
7
8
  NavList,
@@ -9,9 +10,7 @@ import {
9
10
  PageSection,
10
11
  PageSidebar,
11
12
  PageSidebarBody,
12
- SkipToContent,
13
- Text,
14
- TextContent
13
+ SkipToContent
15
14
  } from '@patternfly/react-core';
16
15
  import DashboardHeader from '@patternfly/react-core/src/demos/examples/DashboardHeader';
17
16
 
@@ -28,10 +27,10 @@ export const DashboardBreadcrumb = (
28
27
 
29
28
  export const PageTemplateTitle = (
30
29
  <PageSection>
31
- <TextContent>
32
- <Text component="h1">Main title</Text>
33
- <Text component="p">This is a full page demo.</Text>
34
- </TextContent>
30
+ <Content>
31
+ <h1>Main title</h1>
32
+ <p>This is a full page demo.</p>
33
+ </Content>
35
34
  </PageSection>
36
35
  );
37
36
 
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Button,
4
+ Content,
4
5
  Drawer,
5
6
  DrawerPanelContent,
6
7
  DrawerContent,
@@ -15,7 +16,6 @@ import {
15
16
  Sidebar,
16
17
  SidebarContent,
17
18
  SidebarPanel,
18
- TextContent,
19
19
  getResizeObserver,
20
20
  DrawerContext
21
21
  } from '@patternfly/react-core';
@@ -100,7 +100,7 @@ export const JumpLinksWithDrawer = () => {
100
100
  <Button onClick={onToggleClick}>Toggle drawer</Button>
101
101
  </PageSection>
102
102
  <PageSection>
103
- <TextContent>
103
+ <Content>
104
104
  {headings.map((heading) => (
105
105
  <div key={heading} style={{ maxWidth: '800px', marginBottom: '32px' }}>
106
106
  <h2 id={`jump-links-drawer-jump-links-${heading.toLowerCase()}`} tabIndex={-1}>
@@ -132,7 +132,7 @@ export const JumpLinksWithDrawer = () => {
132
132
  </p>
133
133
  </div>
134
134
  ))}
135
- </TextContent>
135
+ </Content>
136
136
  </PageSection>
137
137
  </SidebarContent>
138
138
  </Sidebar>
@@ -26,10 +26,8 @@ import {
26
26
  NavList,
27
27
  Page,
28
28
  PageSection,
29
- PageSectionVariants,
30
29
  SkipToContent,
31
- Text,
32
- TextContent,
30
+ Content,
33
31
  Toolbar,
34
32
  ToolbarContent,
35
33
  ToolbarGroup,
@@ -185,8 +183,8 @@ export const MastheadWithHorizontalNav: React.FunctionComponent = () => {
185
183
  <PageHorizontalNav />
186
184
  <ToolbarGroup
187
185
  variant="action-group-plain"
188
- align={{ default: 'alignRight' }}
189
- spacer={{ default: 'spacerNone', md: 'spacerMd' }}
186
+ align={{ default: 'alignEnd' }}
187
+ gap={{ default: 'gapNone', md: 'gapMd' }}
190
188
  >
191
189
  <ToolbarItem>
192
190
  <Button aria-label="Notifications" variant={ButtonVariant.plain} icon={<BellIcon />} />
@@ -288,21 +286,19 @@ export const MastheadWithHorizontalNav: React.FunctionComponent = () => {
288
286
 
289
287
  return (
290
288
  <Page
291
- header={masthead}
289
+ masthead={masthead}
292
290
  isManagedSidebar
293
291
  skipToContent={pageSkipToContent}
294
292
  breadcrumb={dashboardBreadcrumb}
295
293
  mainContainerId={mainContainerId}
296
- isTertiaryNavWidthLimited
297
294
  isBreadcrumbWidthLimited
298
- isTertiaryNavGrouped
299
295
  isBreadcrumbGrouped
300
296
  additionalGroupedContent={
301
- <PageSection variant={PageSectionVariants.light}>
302
- <TextContent>
303
- <Text component="h1">Main title</Text>
304
- <Text component="p">This is a full page demo.</Text>
305
- </TextContent>
297
+ <PageSection>
298
+ <Content>
299
+ <Content component="h1">Main title</Content>
300
+ <Content component="p">This is a full page demo.</Content>
301
+ </Content>
306
302
  </PageSection>
307
303
  }
308
304
  >
@@ -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,
@@ -36,8 +37,6 @@ import {
36
37
  PageToggleButton,
37
38
  Popper,
38
39
  SkipToContent,
39
- Text,
40
- TextContent,
41
40
  Toolbar,
42
41
  ToolbarContent,
43
42
  ToolbarGroup,
@@ -532,10 +531,10 @@ export const MastheadWithUtilitiesAndUserDropdownMenu: React.FunctionComponent =
532
531
  isBreadcrumbGrouped
533
532
  additionalGroupedContent={
534
533
  <PageSection>
535
- <TextContent>
536
- <Text component="h1">Main title</Text>
537
- <Text component="p">This is a full page demo.</Text>
538
- </TextContent>
534
+ <Content>
535
+ <h1>Main title</h1>
536
+ <p>This is a full page demo.</p>
537
+ </Content>
539
538
  </PageSection>
540
539
  }
541
540
  >