@patternfly/react-core 6.4.1-prerelease.5 → 6.4.1-prerelease.7

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 (149) hide show
  1. package/CHANGELOG.md +8 -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/TimePicker/package.json +1 -1
  74. package/dist/dynamic/components/Timestamp/package.json +1 -1
  75. package/dist/dynamic/components/Title/package.json +1 -1
  76. package/dist/dynamic/components/ToggleGroup/package.json +1 -1
  77. package/dist/dynamic/components/Toolbar/package.json +1 -1
  78. package/dist/dynamic/components/Tooltip/package.json +1 -1
  79. package/dist/dynamic/components/TreeView/package.json +1 -1
  80. package/dist/dynamic/components/Truncate/package.json +1 -1
  81. package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
  82. package/dist/dynamic/components/Wizard/package.json +1 -1
  83. package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
  84. package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
  85. package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
  86. package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
  87. package/dist/dynamic/deprecated/components/Tile/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/AnimationsProvider/AnimationsProvider/package.json +1 -1
  91. package/dist/dynamic/helpers/AnimationsProvider/package.json +1 -1
  92. package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
  93. package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
  94. package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
  95. package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
  96. package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
  97. package/dist/dynamic/helpers/constants/package.json +1 -1
  98. package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
  99. package/dist/dynamic/helpers/fileUtils/package.json +1 -1
  100. package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
  101. package/dist/dynamic/helpers/package.json +1 -1
  102. package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
  103. package/dist/dynamic/helpers/typeUtils/package.json +1 -1
  104. package/dist/dynamic/helpers/useInterval/package.json +1 -1
  105. package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
  106. package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
  107. package/dist/dynamic/helpers/util/package.json +1 -1
  108. package/dist/dynamic/layouts/Bullseye/package.json +1 -1
  109. package/dist/dynamic/layouts/Flex/package.json +1 -1
  110. package/dist/dynamic/layouts/Gallery/package.json +1 -1
  111. package/dist/dynamic/layouts/Grid/package.json +1 -1
  112. package/dist/dynamic/layouts/Level/package.json +1 -1
  113. package/dist/dynamic/layouts/Split/package.json +1 -1
  114. package/dist/dynamic/layouts/Stack/package.json +1 -1
  115. package/dist/dynamic/styles/package.json +1 -1
  116. package/dist/umd/assets/{output-BpFr4xur.css → output-C9d8Dkf1.css} +12166 -12166
  117. package/helpers/package.json +1 -1
  118. package/layouts/package.json +1 -1
  119. package/next/package.json +1 -1
  120. package/package.json +2 -2
  121. package/src/demos/AlertGroup.md +1 -1
  122. package/src/demos/BackToTop.md +1 -1
  123. package/src/demos/CardView/CardView.md +1 -1
  124. package/src/demos/DataListDemo.md +4 -4
  125. package/src/demos/DescriptionList/DescriptionList.md +2 -2
  126. package/src/demos/Nav.md +9 -9
  127. package/src/demos/PrimaryDetail.md +6 -6
  128. package/src/demos/RTL/RTL.md +1 -1
  129. package/src/demos/Toolbar.md +1 -1
  130. package/src/demos/examples/BackToTop/BackToTopNameDemo.tsx +1 -1
  131. package/src/layouts/Flex/examples/Flex.md +22 -230
  132. package/src/layouts/Flex/examples/FlexAlignAdjacentContent.tsx +16 -0
  133. package/src/layouts/Flex/examples/FlexAlignRightMultipleGroups.tsx +18 -0
  134. package/src/layouts/Flex/examples/FlexAlignRightSingleItem.tsx +8 -0
  135. package/src/layouts/Flex/examples/FlexAlignSelfBaseline.tsx +15 -0
  136. package/src/layouts/Flex/examples/FlexAlignSelfCenter.tsx +15 -0
  137. package/src/layouts/Flex/examples/FlexAlignSelfFlexEnd.tsx +15 -0
  138. package/src/layouts/Flex/examples/FlexAlignSelfStretch.tsx +15 -0
  139. package/src/layouts/Flex/examples/FlexAligningRight.tsx +11 -0
  140. package/src/layouts/Flex/examples/FlexAlternative.tsx +11 -0
  141. package/src/layouts/Flex/examples/FlexControlTextWidth.tsx +17 -0
  142. package/src/layouts/Flex/examples/FlexFirstLastOrder.tsx +13 -0
  143. package/src/layouts/Flex/examples/FlexJustifyContentEnd.tsx +10 -0
  144. package/src/layouts/Flex/examples/FlexJustifyContentFlexStart.tsx +9 -0
  145. package/src/layouts/Flex/examples/FlexJustifyContentSpaceBetween.tsx +9 -0
  146. package/src/layouts/Flex/examples/FlexOrdering.tsx +24 -0
  147. package/src/layouts/Flex/examples/FlexResponsiveFirstLastOrder.tsx +15 -0
  148. package/src/layouts/Flex/examples/FlexResponsiveOrdering.tsx +25 -0
  149. package/src/layouts/Flex/examples/FlexSwitchingColumnRow.tsx +16 -0
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.4.1-prerelease.4","private":true}
1
+ {"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.4.1-prerelease.6","private":true}
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.4.1-prerelease.4","private":true}
1
+ {"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.4.1-prerelease.6","private":true}
package/next/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.4.1-prerelease.4","private":true}
1
+ {"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.4.1-prerelease.6","private":true}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "6.4.1-prerelease.5",
3
+ "version": "6.4.1-prerelease.7",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -63,5 +63,5 @@
63
63
  "react": "^17 || ^18 || ^19",
64
64
  "react-dom": "^17 || ^18 || ^19"
65
65
  },
66
- "gitHead": "78f4cf8ad4bc1cb5a38d5f5f46632b60fd140002"
66
+ "gitHead": "2be14960edd09e98cd2176f7715473c14be77162"
67
67
  }
@@ -15,6 +15,6 @@ This demonstrates how you can assemble a full page view including the use of ale
15
15
 
16
16
  ### Alert group toast with notification drawer
17
17
 
18
- ```js file='./examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx' isFullscreen
18
+ ```ts file="examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx" isFullscreen
19
19
 
20
20
  ```
@@ -11,5 +11,5 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
11
11
 
12
12
  Note that `tabIndex={0}` is added to the scrolling `PageSection` of the page to allow keyboard users the ability to focus and scroll.
13
13
 
14
- ```js isFullscreen file="./examples/BackToTop/BackToTopNameDemo.tsx"
14
+ ```ts file="examples/BackToTop/BackToTopNameDemo.tsx" isFullscreen
15
15
  ```
@@ -27,5 +27,5 @@ This demonstrates how you can assemble a full page view that contains a grid of
27
27
 
28
28
  ### Card view
29
29
 
30
- ```js file="./examples/CardView.tsx" isFullscreen
30
+ ```ts file="examples/CardView.tsx" isFullscreen
31
31
  ```
@@ -23,24 +23,24 @@ import { rows } from '@patternfly/react-core/dist/esm/demos/sampleData';
23
23
 
24
24
  ### Basic
25
25
 
26
- ```js file="./DataList/examples/DataListBasic.tsx" isFullscreen
26
+ ```ts file="DataList/examples/DataListBasic.tsx" isFullscreen
27
27
 
28
28
  ```
29
29
 
30
30
  ### Expandable control in toolbar
31
31
 
32
- ```js file="./DataList/examples/DataListExpandableControlInToolbar.tsx" isFullscreen
32
+ ```ts file="DataList/examples/DataListExpandableControlInToolbar.tsx" isFullscreen
33
33
 
34
34
  ```
35
35
 
36
36
  ### Actionable
37
37
 
38
- ```js file="./DataList/examples/DataListActionable.tsx" isFullscreen
38
+ ```ts file="DataList/examples/DataListActionable.tsx" isFullscreen
39
39
 
40
40
  ```
41
41
 
42
42
  ### Static bottom pagination
43
43
 
44
- ```js file="./DataList/examples/DataListStaticBottomPagination.tsx" isFullscreen
44
+ ```ts file="DataList/examples/DataListStaticBottomPagination.tsx" isFullscreen
45
45
 
46
46
  ```
@@ -12,10 +12,10 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
12
12
 
13
13
  ### Basic
14
14
 
15
- ```js file='./examples/DescriptionListBasic.tsx' isFullscreen
15
+ ```ts file="examples/DescriptionListBasic.tsx" isFullscreen
16
16
  ```
17
17
 
18
18
  ### In drawer
19
19
 
20
- ```js file='./examples/DescriptionListInDrawer.tsx' isFullscreen
20
+ ```ts file="examples/DescriptionListInDrawer.tsx" isFullscreen
21
21
  ```
package/src/demos/Nav.md CHANGED
@@ -19,45 +19,45 @@ import { DashboardHeader } from '@patternfly/react-core/dist/js/demos/DashboardH
19
19
 
20
20
  ### Default nav
21
21
 
22
- ```js file='./examples/Nav/NavDefault.tsx' isFullscreen
22
+ ```ts file="./examples/Nav/NavDefault.tsx" isFullscreen
23
23
  ```
24
24
 
25
25
  ### Grouped nav
26
26
 
27
- ```js file='./examples/Nav/NavGrouped.tsx' isFullscreen
27
+ ```ts file="./examples/Nav/NavGrouped.tsx" isFullscreen
28
28
  ```
29
29
 
30
30
  ### Expandable nav
31
31
 
32
- ```js file='./examples/Nav/NavExpandable.tsx' isFullscreen
32
+ ```ts file="./examples/Nav/NavExpandable.tsx" isFullscreen
33
33
  ```
34
34
 
35
35
  ### Horizontal nav
36
36
 
37
- ```js file='./examples/Nav/NavHorizontal.tsx' isFullscreen
37
+ ```ts file="./examples/Nav/NavHorizontal.tsx" isFullscreen
38
38
  ```
39
39
 
40
40
  ### Horizontal subnav
41
41
 
42
- ```js file='./examples/Nav/NavWithSubnav.tsx' isFullscreen
42
+ ```ts file="./examples/Nav/NavWithSubnav.tsx" isFullscreen
43
43
  ```
44
44
 
45
45
  ### Horizontal nav with horizontal subnav
46
46
 
47
- ```js file='./examples/Nav/NavHorizontalWithSubnav.tsx' isFullscreen
47
+ ```ts file="./examples/Nav/NavHorizontalWithSubnav.tsx" isFullscreen
48
48
  ```
49
49
 
50
50
  ### Manual nav
51
51
 
52
- ```js file='./examples/Nav/NavManual.tsx' isFullscreen
52
+ ```ts file="./examples/Nav/NavManual.tsx" isFullscreen
53
53
  ```
54
54
 
55
55
  ### Flyout nav
56
56
 
57
- ```js file='./examples/Nav/NavFlyout.tsx' isFullscreen
57
+ ```ts file="./examples/Nav/NavFlyout.tsx" isFullscreen
58
58
  ```
59
59
 
60
60
  ### Drilldown nav
61
61
 
62
- ```js isFullscreen file="./examples/Nav/NavDrilldown.tsx"
62
+ ```ts isFullscreen file="./examples/Nav/NavDrilldown.tsx"
63
63
  ```
@@ -31,32 +31,32 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
31
31
 
32
32
  ### Primary-detail full page
33
33
 
34
- ```js file="./examples/PrimaryDetail/PrimaryDetailFullPage.tsx" isFullscreen
34
+ ```ts file="examples/PrimaryDetail/PrimaryDetailFullPage.tsx" isFullscreen
35
35
  ```
36
36
 
37
37
  ### Primary-detail content padding
38
38
 
39
- ```js file="./examples/PrimaryDetail/PrimaryDetailContentPadding.tsx" isFullscreen
39
+ ```ts file="examples/PrimaryDetail/PrimaryDetailContentPadding.tsx" isFullscreen
40
40
 
41
41
  ```
42
42
 
43
43
  ### Primary-detail card view
44
44
 
45
- ```js file="./examples/PrimaryDetail/PrimaryDetailCardView.tsx" isFullscreen
45
+ ```ts file="examples/PrimaryDetail/PrimaryDetailCardView.tsx" isFullscreen
46
46
  ```
47
47
 
48
48
  ### Primary-detail simple list in card
49
49
 
50
- ```js file="./examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx" isFullscreen
50
+ ```ts file="examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx" isFullscreen
51
51
  ```
52
52
 
53
53
  ### Primary-detail data list in card
54
54
 
55
- ```js file="./examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx" isFullscreen
55
+ ```ts file="examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx" isFullscreen
56
56
  ```
57
57
 
58
58
  ### Primary-detail inline modifier
59
59
 
60
- ```js file="./examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx" isFullscreen
60
+ ```ts file="examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx" isFullscreen
61
61
 
62
62
  ```
@@ -28,6 +28,6 @@ This demonstrates how the UI adapts to the writing mode of the page.
28
28
 
29
29
  ### Paginated table
30
30
 
31
- ```js file="./examples/PaginatedTable.tsx" isFullscreen
31
+ ```ts file="examples/PaginatedTable.tsx" isFullscreen
32
32
 
33
33
  ```
@@ -20,5 +20,5 @@ import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/Dashboard
20
20
 
21
21
  This is an example of toolbar usage in log viewer.
22
22
 
23
- ```js file="./examples/Toolbar/ConsoleLogViewerToolbar.tsx" isFullscreen
23
+ ```ts file="examples/Toolbar/ConsoleLogViewerToolbar.tsx" isFullscreen
24
24
  ```
@@ -2,7 +2,7 @@ import { useState } from 'react';
2
2
  import { BackToTop, Card, CardBody, Content, Gallery, GalleryItem, PageSection, Switch } from '@patternfly/react-core';
3
3
  import { DashboardWrapper } from '@patternfly/react-core/dist/js/demos/DashboardWrapper';
4
4
 
5
- export const Name = () => {
5
+ export const BacktoTopNameDemo: React.FunctionComponent = () => {
6
6
  const [isAlwaysVisible, setIsAlwaysVisible] = useState(false);
7
7
 
8
8
  const handleChange = (_event, isChecked) => {
@@ -133,322 +133,114 @@ The flex layout provides two ways of spacing its direct children.
133
133
 
134
134
  ### Switching between direction column and row
135
135
 
136
- ```js
137
- import { Flex, FlexItem } from '@patternfly/react-core';
138
-
139
- <Flex direction={{ default: 'column', lg: 'row' }}>
140
- <Flex>
141
- <FlexItem>Flex item</FlexItem>
142
- <FlexItem>Flex item</FlexItem>
143
- <FlexItem>Flex item</FlexItem>
144
- <FlexItem>Flex item</FlexItem>
145
- </Flex>
146
- <Flex direction={{ default: 'column' }}>
147
- <FlexItem>Flex item</FlexItem>
148
- <FlexItem>Flex item</FlexItem>
149
- </Flex>
150
- </Flex>;
136
+ ```ts file="FlexSwitchingColumnRow.tsx"
137
+
151
138
  ```
152
139
 
153
140
  ### Controlling width of text
154
141
 
155
- ```js
156
- import { Flex, FlexItem } from '@patternfly/react-core';
142
+ ```ts file="FlexControlTextWidth.tsx"
157
143
 
158
- <Flex direction={{ default: 'column', lg: 'row' }}>
159
- <Flex flex={{ default: 'flex_1' }}>
160
- <FlexItem>Flex item</FlexItem>
161
- <FlexItem>
162
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Est animi modi temporibus, alias qui obcaecati ullam
163
- dolor nam, nulla magni iste rem praesentium numquam provident amet ut nesciunt harum accusamus.
164
- </FlexItem>
165
- </Flex>
166
- <Flex direction={{ default: 'column' }}>
167
- <FlexItem>Flex item</FlexItem>
168
- <FlexItem>Flex item</FlexItem>
169
- </Flex>
170
- </Flex>;
171
144
  ```
172
145
 
173
146
  ## Flex alignment
174
147
 
175
148
  ### Aligning right
176
149
 
177
- ```js
178
- import { Flex, FlexItem } from '@patternfly/react-core';
150
+ ```ts file="FlexAligningRight.tsx"
179
151
 
180
- <Flex className="example-border">
181
- <FlexItem>Flex item</FlexItem>
182
- <FlexItem>Flex item</FlexItem>
183
- <FlexItem>Flex item</FlexItem>
184
- <FlexItem align={{ default: 'alignRight' }}>Flex item</FlexItem>
185
- <FlexItem>Flex item</FlexItem>
186
- </Flex>;
187
152
  ```
188
153
 
189
154
  ### Align right on single item
190
155
 
191
- ```js
192
- import { Flex, FlexItem } from '@patternfly/react-core';
156
+ ```ts file="FlexAlignRightSingleItem.tsx"
193
157
 
194
- <Flex className="example-border">
195
- <FlexItem align={{ default: 'alignRight' }}>Flex item</FlexItem>
196
- <FlexItem>Flex item</FlexItem>
197
- </Flex>;
198
158
  ```
199
159
 
200
160
  ### Align right on multiple groups
201
161
 
202
- ```js
203
- import { Flex, FlexItem } from '@patternfly/react-core';
204
-
205
- <Flex>
206
- <Flex>
207
- <FlexItem>Flex item</FlexItem>
208
- <FlexItem>Flex item</FlexItem>
209
- </Flex>
210
- <Flex align={{ default: 'alignRight' }}>
211
- <FlexItem>Flex item</FlexItem>
212
- <FlexItem>Flex item</FlexItem>
213
- </Flex>
214
- <Flex align={{ default: 'alignRight' }}>
215
- <FlexItem>Flex item</FlexItem>
216
- <FlexItem>Flex item</FlexItem>
217
- </Flex>
218
- </Flex>;
162
+ ```ts file="FlexAlignRightMultipleGroups.tsx"
163
+
219
164
  ```
220
165
 
221
166
  ### Align adjacent content
222
167
 
223
- ```js
224
- import { Flex, FlexItem } from '@patternfly/react-core';
168
+ ```ts file="FlexAlignAdjacentContent.tsx"
225
169
 
226
- <Flex>
227
- <Flex flex={{ default: 'flex_1' }}>
228
- <FlexItem>Flex item</FlexItem>
229
- <FlexItem>Flex item</FlexItem>
230
- <FlexItem>Flex item</FlexItem>
231
- <FlexItem>Flex item</FlexItem>
232
- </Flex>
233
- <Flex>
234
- <FlexItem>Flex item</FlexItem>
235
- <FlexItem>Flex item</FlexItem>
236
- </Flex>
237
- </Flex>;
238
170
  ```
239
171
 
240
172
  ### Align self flex end
241
173
 
242
- ```js
243
- import { Flex, FlexItem } from '@patternfly/react-core';
174
+ ```ts file="FlexAlignSelfFlexEnd.tsx"
244
175
 
245
- <Flex>
246
- <Flex direction={{ default: 'column' }}>
247
- <FlexItem>Flex item</FlexItem>
248
- <FlexItem>Flex item</FlexItem>
249
- <FlexItem>Flex item</FlexItem>
250
- </Flex>
251
- <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfFlexEnd' }}>
252
- <FlexItem>Flex item</FlexItem>
253
- <FlexItem>Flex item</FlexItem>
254
- </Flex>
255
- </Flex>;
256
176
  ```
257
177
 
258
178
  ### Align self center
259
179
 
260
- ```js
261
- import { Flex, FlexItem } from '@patternfly/react-core';
180
+ ```ts file="FlexAlignSelfCenter.tsx"
262
181
 
263
- <Flex>
264
- <Flex direction={{ default: 'column' }}>
265
- <FlexItem>Flex item</FlexItem>
266
- <FlexItem>Flex item</FlexItem>
267
- <FlexItem>Flex item</FlexItem>
268
- </Flex>
269
- <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfCenter' }}>
270
- <FlexItem>Flex item</FlexItem>
271
- <FlexItem>Flex item</FlexItem>
272
- </Flex>
273
- </Flex>;
274
182
  ```
275
183
 
276
184
  ### Align self baseline
277
185
 
278
- ```js
279
- import { Flex, FlexItem } from '@patternfly/react-core';
186
+ ```ts file="FlexAlignSelfBaseline.tsx"
280
187
 
281
- <Flex>
282
- <Flex direction={{ default: 'column' }}>
283
- <FlexItem>Flex item</FlexItem>
284
- <FlexItem>Flex item</FlexItem>
285
- <FlexItem>Flex item</FlexItem>
286
- </Flex>
287
- <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfBaseline' }}>
288
- <FlexItem>Flex item</FlexItem>
289
- <FlexItem>Flex item</FlexItem>
290
- </Flex>
291
- </Flex>;
292
188
  ```
293
189
 
294
190
  ### Align self stretch
295
191
 
296
- ```js
297
- import { Flex, FlexItem } from '@patternfly/react-core';
192
+ ```ts file="FlexAlignSelfStretch.tsx"
298
193
 
299
- <Flex>
300
- <Flex direction={{ default: 'column' }}>
301
- <FlexItem>Flex item</FlexItem>
302
- <FlexItem>Flex item</FlexItem>
303
- <FlexItem>Flex item</FlexItem>
304
- </Flex>
305
- <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfStretch' }}>
306
- <FlexItem>Flex item</FlexItem>
307
- <FlexItem>Flex item</FlexItem>
308
- </Flex>
309
- </Flex>;
310
194
  ```
311
195
 
312
196
  ## Flex justification
313
197
 
314
198
  ### Justify content flex end
315
199
 
316
- ```js
317
- import { Flex, FlexItem } from '@patternfly/react-core';
200
+ ```ts file="FlexJustifyContentEnd.tsx"
318
201
 
319
- <Flex className="example-border" justifyContent={{ default: 'justifyContentFlexEnd' }}>
320
- <FlexItem>Flex item</FlexItem>
321
- <FlexItem>Flex item</FlexItem>
322
- <FlexItem>Flex item</FlexItem>
323
- <FlexItem>Flex item</FlexItem>
324
- </Flex>;
325
202
  ```
326
203
 
327
204
  ### Justify content space between
328
205
 
329
- ```js
330
- import { Flex, FlexItem } from '@patternfly/react-core';
206
+ ```ts file="FlexJustifyContentSpaceBetween.tsx"
331
207
 
332
- <Flex className="example-border" justifyContent={{ default: 'justifyContentSpaceBetween' }}>
333
- <FlexItem>Flex item</FlexItem>
334
- <FlexItem>Flex item</FlexItem>
335
- <FlexItem>Flex item</FlexItem>
336
- </Flex>;
337
208
  ```
338
209
 
339
210
  ### Justify content flex start
340
211
 
341
- ```js
342
- import { Flex, FlexItem } from '@patternfly/react-core';
212
+ ```ts file="FlexJustifyContentFlexStart.tsx"
343
213
 
344
- <Flex className="example-border" justifyContent={{ default: 'justifyContentFlexStart' }}>
345
- <FlexItem>Flex item</FlexItem>
346
- <FlexItem>Flex item</FlexItem>
347
- <FlexItem>Flex item</FlexItem>
348
- </Flex>;
349
214
  ```
350
215
 
351
216
  ## Flex item order
352
217
 
353
218
  ### First last ordering
354
219
 
355
- ```js
356
- import { Flex, FlexItem } from '@patternfly/react-core';
220
+ ```ts file="FlexFirstLastOrder.tsx"
357
221
 
358
- <Flex className="example-border">
359
- <FlexItem spacer={{ default: 'spacerNone' }} order={{ default: '2' }}>
360
- Item A
361
- </FlexItem>
362
- <FlexItem>Item B</FlexItem>
363
- <FlexItem spacer={{ default: 'spacerMd' }} order={{ default: '-1' }}>
364
- Item C
365
- </FlexItem>
366
- </Flex>;
367
222
  ```
368
223
 
369
224
  ### Responsive first last ordering
370
225
 
371
- ```js
372
- import { Flex, FlexItem } from '@patternfly/react-core';
226
+ ```ts file="FlexResponsiveFirstLastOrder.tsx"
373
227
 
374
- <Flex className="example-border">
375
- <FlexItem spacer={{ lg: 'spacerNone' }} order={{ lg: '2' }}>
376
- Item A
377
- </FlexItem>
378
- <FlexItem spacer={{ md: 'spacerNone', lg: 'spacerMd' }} order={{ default: '-1', md: '1' }}>
379
- Item B
380
- </FlexItem>
381
- <FlexItem spacer={{ default: 'spacerMd' }} order={{ md: '-1' }}>
382
- Item C
383
- </FlexItem>
384
- </Flex>;
385
228
  ```
386
229
 
387
230
  ### Ordering
388
231
 
389
- ```js
390
- import { Flex, FlexItem } from '@patternfly/react-core';
391
-
392
- <Flex className="example-border">
393
- <Flex spacer={{ default: 'spacerNone' }} order={{ lg: '1' }} className="example-border">
394
- <FlexItem order={{ md: '2' }}>Set 1, Item A</FlexItem>
395
- <FlexItem order={{ md: '-1' }}>Set 1, Item B</FlexItem>
396
- <FlexItem order={{ xl: '1' }}>Set 1, Item C</FlexItem>
397
- <FlexItem spacer={{ xl: 'spacerNone' }} order={{ xl: '1' }}>
398
- Set 1, Item D
399
- </FlexItem>
400
- </Flex>
401
- <Flex spacer={{ lg: 'spacerMd' }} className="example-border">
402
- <FlexItem spacer={{ default: 'spacerNone' }} order={{ default: '3' }}>
403
- Set 2, Item A
404
- </FlexItem>
405
- <FlexItem order={{ default: '1' }}>Set 2, Item B</FlexItem>
406
- <FlexItem>Set 2, Item C</FlexItem>
407
- <FlexItem spacer={{ default: 'spacerMd' }} order={{ default: '2' }}>
408
- Set 2, Item D
409
- </FlexItem>
410
- </Flex>
411
- </Flex>;
232
+ ```ts file="FlexOrdering.tsx"
233
+
412
234
  ```
413
235
 
414
236
  ### Responsive ordering
415
237
 
416
- ```js
417
- import { Flex, FlexItem } from '@patternfly/react-core';
418
-
419
- <Flex className="example-border">
420
- <Flex spacer={{ default: 'spacerNone' }} order={{ default: '1' }} className="example-border">
421
- <FlexItem spacer={{ default: 'spacerNone' }} order={{ default: '3' }}>
422
- Set 1, Item A
423
- </FlexItem>
424
- <FlexItem order={{ default: '1' }}>Set 1, Item B</FlexItem>
425
- <FlexItem>Set 1, Item C</FlexItem>
426
- <FlexItem spacer={{ default: 'spacerMd' }}>Set 1, Item D</FlexItem>
427
- </Flex>
428
-
429
- <Flex spacer={{ default: 'spacerMd' }} className="example-border">
430
- <FlexItem spacer={{ default: 'spacerNone' }} order={{ default: '3' }}>
431
- Set 2, Item A
432
- </FlexItem>
433
- <FlexItem order={{ lg: '1' }}>Set 2, Item B</FlexItem>
434
- <FlexItem>Set 2, Item C</FlexItem>
435
- <FlexItem spacer={{ default: 'spacerMd' }} order={{ default: '2' }}>
436
- Set 2, Item D
437
- </FlexItem>
438
- </Flex>
439
- </Flex>;
238
+ ```ts file="FlexResponsiveOrdering.tsx"
239
+
440
240
  ```
441
241
 
442
242
  ### Alternative components
443
243
 
444
- ```js
445
- import { Flex, FlexItem } from '@patternfly/react-core';
244
+ ```ts file="FlexAlternative.tsx"
446
245
 
447
- <Flex component="ul">
448
- <FlexItem component="li">Flex item</FlexItem>
449
- <FlexItem component="li">Flex item</FlexItem>
450
- <FlexItem component="li">Flex item</FlexItem>
451
- <FlexItem component="li">Flex item</FlexItem>
452
- <FlexItem component="li">Flex item</FlexItem>
453
- </Flex>;
454
246
  ```
@@ -0,0 +1,16 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignAdjacentContent: React.FunctionComponent = () => (
4
+ <Flex>
5
+ <Flex flex={{ default: 'flex_1' }}>
6
+ <FlexItem>Flex item</FlexItem>
7
+ <FlexItem>Flex item</FlexItem>
8
+ <FlexItem>Flex item</FlexItem>
9
+ <FlexItem>Flex item</FlexItem>
10
+ </Flex>
11
+ <Flex>
12
+ <FlexItem>Flex item</FlexItem>
13
+ <FlexItem>Flex item</FlexItem>
14
+ </Flex>
15
+ </Flex>
16
+ );
@@ -0,0 +1,18 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignRightMultipleGroups: React.FunctionComponent = () => (
4
+ <Flex>
5
+ <Flex>
6
+ <FlexItem>Flex item</FlexItem>
7
+ <FlexItem>Flex item</FlexItem>
8
+ </Flex>
9
+ <Flex align={{ default: 'alignRight' }}>
10
+ <FlexItem>Flex item</FlexItem>
11
+ <FlexItem>Flex item</FlexItem>
12
+ </Flex>
13
+ <Flex align={{ default: 'alignRight' }}>
14
+ <FlexItem>Flex item</FlexItem>
15
+ <FlexItem>Flex item</FlexItem>
16
+ </Flex>
17
+ </Flex>
18
+ );
@@ -0,0 +1,8 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignRightSingleItem: React.FunctionComponent = () => (
4
+ <Flex className="example-border">
5
+ <FlexItem align={{ default: 'alignRight' }}>Flex item</FlexItem>
6
+ <FlexItem>Flex item</FlexItem>
7
+ </Flex>
8
+ );
@@ -0,0 +1,15 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignSelfBaseline: React.FunctionComponent = () => (
4
+ <Flex>
5
+ <Flex direction={{ default: 'column' }}>
6
+ <FlexItem>Flex item</FlexItem>
7
+ <FlexItem>Flex item</FlexItem>
8
+ <FlexItem>Flex item</FlexItem>
9
+ </Flex>
10
+ <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfBaseline' }}>
11
+ <FlexItem>Flex item</FlexItem>
12
+ <FlexItem>Flex item</FlexItem>
13
+ </Flex>
14
+ </Flex>
15
+ );
@@ -0,0 +1,15 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignSelfCenter: React.FunctionComponent = () => (
4
+ <Flex>
5
+ <Flex direction={{ default: 'column' }}>
6
+ <FlexItem>Flex item</FlexItem>
7
+ <FlexItem>Flex item</FlexItem>
8
+ <FlexItem>Flex item</FlexItem>
9
+ </Flex>
10
+ <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfCenter' }}>
11
+ <FlexItem>Flex item</FlexItem>
12
+ <FlexItem>Flex item</FlexItem>
13
+ </Flex>
14
+ </Flex>
15
+ );
@@ -0,0 +1,15 @@
1
+ import { Flex, FlexItem } from '@patternfly/react-core';
2
+
3
+ export const FlexAlignSelfFlexEnd: React.FunctionComponent = () => (
4
+ <Flex>
5
+ <Flex direction={{ default: 'column' }}>
6
+ <FlexItem>Flex item</FlexItem>
7
+ <FlexItem>Flex item</FlexItem>
8
+ <FlexItem>Flex item</FlexItem>
9
+ </Flex>
10
+ <Flex direction={{ default: 'column' }} alignSelf={{ default: 'alignSelfFlexEnd' }}>
11
+ <FlexItem>Flex item</FlexItem>
12
+ <FlexItem>Flex item</FlexItem>
13
+ </Flex>
14
+ </Flex>
15
+ );