@patternfly/react-core 4.206.5 → 4.208.0

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 (513) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/esm/components/CodeBlock/CodeBlockCode.d.ts +4 -0
  3. package/dist/esm/components/CodeBlock/CodeBlockCode.d.ts.map +1 -1
  4. package/dist/esm/components/CodeBlock/CodeBlockCode.js +3 -3
  5. package/dist/esm/components/CodeBlock/CodeBlockCode.js.map +1 -1
  6. package/dist/esm/components/Divider/Divider.d.ts +10 -1
  7. package/dist/esm/components/Divider/Divider.d.ts.map +1 -1
  8. package/dist/esm/components/Divider/Divider.js +2 -2
  9. package/dist/esm/components/Divider/Divider.js.map +1 -1
  10. package/dist/js/components/CodeBlock/CodeBlockCode.d.ts +4 -0
  11. package/dist/js/components/CodeBlock/CodeBlockCode.d.ts.map +1 -1
  12. package/dist/js/components/CodeBlock/CodeBlockCode.js +3 -3
  13. package/dist/js/components/CodeBlock/CodeBlockCode.js.map +1 -1
  14. package/dist/js/components/Divider/Divider.d.ts +10 -1
  15. package/dist/js/components/Divider/Divider.d.ts.map +1 -1
  16. package/dist/js/components/Divider/Divider.js +2 -2
  17. package/dist/js/components/Divider/Divider.js.map +1 -1
  18. package/dist/umd/react-core.css +8 -0
  19. package/dist/umd/react-core.js +5 -5
  20. package/dist/umd/react-core.min.css +8 -0
  21. package/dist/umd/react-core.min.js +1 -1
  22. package/package.json +6 -6
  23. package/src/components/AboutModal/__tests__/AboutModal.test.tsx +2 -2
  24. package/src/components/AboutModal/__tests__/AboutModalBox.test.tsx +2 -2
  25. package/src/components/AboutModal/__tests__/AboutModalBoxBrand.test.tsx +2 -2
  26. package/src/components/AboutModal/__tests__/AboutModalBoxCloseButton.test.tsx +6 -6
  27. package/src/components/AboutModal/__tests__/AboutModalBoxContent.test.tsx +2 -2
  28. package/src/components/AboutModal/__tests__/AboutModalBoxHeader.test.tsx +2 -2
  29. package/src/components/AboutModal/__tests__/AboutModalBoxHero.test.tsx +2 -2
  30. package/src/components/AboutModal/__tests__/AboutModalContainer.test.tsx +9 -7
  31. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBox.test.tsx.snap +2 -2
  32. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxBrand.test.tsx.snap +2 -2
  33. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +6 -6
  34. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxContent.test.tsx.snap +2 -2
  35. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHeader.test.tsx.snap +2 -2
  36. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHero.test.tsx.snap +2 -2
  37. package/src/components/AboutModal/__tests__/__snapshots__/AboutModalContainer.test.tsx.snap +8 -4
  38. package/src/components/Accordion/__tests__/Accordion.test.tsx +16 -17
  39. package/src/components/Accordion/__tests__/Generated/AccordionContent.test.tsx +2 -2
  40. package/src/components/Accordion/__tests__/Generated/AccordionItem.test.tsx +2 -2
  41. package/src/components/Accordion/__tests__/Generated/AccordionToggle.test.tsx +2 -2
  42. package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionContent.test.tsx.snap +2 -2
  43. package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionItem.test.tsx.snap +2 -2
  44. package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionToggle.test.tsx.snap +2 -2
  45. package/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +10 -10
  46. package/src/components/ActionList/__tests__/ActionList.test.tsx +4 -4
  47. package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +2 -2
  48. package/src/components/ActionList/__tests__/ActionListItem.test.tsx +2 -2
  49. package/src/components/ActionList/__tests__/__snapshots__/ActionList.test.tsx.snap +4 -4
  50. package/src/components/ActionList/__tests__/__snapshots__/ActionListGroup.test.tsx.snap +2 -2
  51. package/src/components/ActionList/__tests__/__snapshots__/ActionListItem.test.tsx.snap +2 -2
  52. package/src/components/Alert/__tests__/Alert.test.tsx +28 -27
  53. package/src/components/Alert/__tests__/Generated/AlertActionCloseButton.test.tsx +2 -2
  54. package/src/components/Alert/__tests__/Generated/AlertActionLink.test.tsx +2 -2
  55. package/src/components/Alert/__tests__/Generated/AlertIcon.test.tsx +2 -2
  56. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +2 -2
  57. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionLink.test.tsx.snap +2 -2
  58. package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +2 -2
  59. package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +100 -110
  60. package/src/components/AlertGroup/__tests__/AlertGroup.test.tsx +6 -7
  61. package/src/components/AlertGroup/__tests__/Generated/AlertGroup.test.tsx +2 -2
  62. package/src/components/AlertGroup/__tests__/Generated/AlertGroupInline.test.tsx +2 -2
  63. package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroup.test.tsx.snap +1 -1
  64. package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroupInline.test.tsx.snap +2 -2
  65. package/src/components/AlertGroup/__tests__/__snapshots__/AlertGroup.test.tsx.snap +2 -2
  66. package/src/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +13 -17
  67. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherContent.test.tsx +2 -2
  68. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherGroup.test.tsx +2 -2
  69. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherIcon.test.tsx +2 -2
  70. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +2 -2
  71. package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherText.test.tsx +2 -2
  72. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherContent.test.tsx.snap +2 -2
  73. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherGroup.test.tsx.snap +2 -3
  74. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherIcon.test.tsx.snap +2 -2
  75. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +2 -2
  76. package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherText.test.tsx.snap +2 -2
  77. package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +12 -12
  78. package/src/components/Avatar/__tests__/Avatar.test.tsx +2 -2
  79. package/src/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +2 -2
  80. package/src/components/BackToTop/__tests__/BackToTop.test.tsx +7 -7
  81. package/src/components/BackToTop/__tests__/__snapshots__/BackToTop.test.tsx.snap +6 -6
  82. package/src/components/Backdrop/__tests__/Backdrop.test.tsx +2 -2
  83. package/src/components/Backdrop/__tests__/__snapshots__/Backdrop.test.tsx.snap +2 -2
  84. package/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +9 -9
  85. package/src/components/BackgroundImage/__tests__/__snapshots__/BackgroundImage.test.tsx.snap +4 -4
  86. package/src/components/Badge/__tests__/Badge.test.tsx +2 -2
  87. package/src/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +6 -8
  88. package/src/components/Banner/__tests__/Banner.test.tsx +12 -14
  89. package/src/components/Banner/__tests__/__snapshots__/Banner.test.tsx.snap +17 -22
  90. package/src/components/Brand/__tests__/Brand.test.tsx +5 -4
  91. package/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap +2 -2
  92. package/src/components/Breadcrumb/__tests__/Breadcrumb.test.tsx +8 -8
  93. package/src/components/Breadcrumb/__tests__/BreadcrumbHeading.test.tsx +10 -10
  94. package/src/components/Breadcrumb/__tests__/BreadcrumbItem.test.tsx +16 -18
  95. package/src/components/Breadcrumb/__tests__/__snapshots__/Breadcrumb.test.tsx.snap +8 -8
  96. package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbHeading.test.tsx.snap +10 -10
  97. package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbItem.test.tsx.snap +16 -16
  98. package/src/components/Button/__tests__/Button.test.tsx +29 -30
  99. package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +50 -58
  100. package/src/components/Card/__tests__/Card.test.tsx +24 -27
  101. package/src/components/Card/__tests__/CardBody.test.tsx +5 -8
  102. package/src/components/Card/__tests__/CardExpandableContent.test.tsx +2 -2
  103. package/src/components/Card/__tests__/CardFooter.test.tsx +3 -6
  104. package/src/components/Card/__tests__/CardHeadMain.test.tsx +3 -6
  105. package/src/components/Card/__tests__/CardHeader.test.tsx +2 -2
  106. package/src/components/Card/__tests__/CardHeaderMain.test.tsx +3 -6
  107. package/src/components/Card/__tests__/CardTitle.test.tsx +3 -6
  108. package/src/components/Card/__tests__/Generated/CardActions.test.tsx +2 -2
  109. package/src/components/Card/__tests__/Generated/__snapshots__/CardActions.test.tsx.snap +2 -2
  110. package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +24 -4
  111. package/src/components/Card/__tests__/__snapshots__/CardBody.test.tsx.snap +4 -4
  112. package/src/components/Card/__tests__/__snapshots__/CardExpandableContent.test.tsx.snap +2 -2
  113. package/src/components/Card/__tests__/__snapshots__/CardFooter.test.tsx.snap +2 -2
  114. package/src/components/Card/__tests__/__snapshots__/CardHeadMain.test.tsx.snap +9 -1
  115. package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +2 -2
  116. package/src/components/Card/__tests__/__snapshots__/CardHeaderMain.test.tsx.snap +9 -1
  117. package/src/components/Card/__tests__/__snapshots__/CardTitle.test.tsx.snap +9 -1
  118. package/src/components/Checkbox/__tests__/Checkbox.test.tsx +24 -21
  119. package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +204 -9
  120. package/src/components/Chip/__tests__/Chip.test.tsx +8 -10
  121. package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +8 -8
  122. package/src/components/ChipGroup/__tests__/ChipGroup.test.tsx +8 -9
  123. package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +8 -9
  124. package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +5 -4
  125. package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +4 -4
  126. package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +7 -5
  127. package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +2 -2
  128. package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +2 -2
  129. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +2 -2
  130. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +4 -4
  131. package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +2 -2
  132. package/src/components/CodeBlock/CodeBlockCode.tsx +8 -2
  133. package/src/components/CodeBlock/__tests__/CodeBlock.test.tsx +8 -8
  134. package/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap +8 -8
  135. package/src/components/ContextSelector/__tests__/ContextSelector.test.tsx +4 -8
  136. package/src/components/ContextSelector/__tests__/ContextSelectorFooter.test.tsx +2 -2
  137. package/src/components/ContextSelector/__tests__/ContextSelectorItem.test.tsx +6 -4
  138. package/src/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx +4 -4
  139. package/src/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +12 -20
  140. package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +178 -2
  141. package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorFooter.test.tsx.snap +2 -2
  142. package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorItem.test.tsx.snap +4 -4
  143. package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +4 -4
  144. package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +155 -5
  145. package/src/components/DataList/__tests__/DataList.test.tsx +44 -40
  146. package/src/components/DataList/__tests__/Generated/DataListAction.test.tsx +2 -2
  147. package/src/components/DataList/__tests__/Generated/DataListCell.test.tsx +2 -2
  148. package/src/components/DataList/__tests__/Generated/DataListCheck.test.tsx +2 -2
  149. package/src/components/DataList/__tests__/Generated/DataListContent.test.tsx +2 -2
  150. package/src/components/DataList/__tests__/Generated/DataListItem.test.tsx +2 -2
  151. package/src/components/DataList/__tests__/Generated/DataListItemCells.test.tsx +4 -2
  152. package/src/components/DataList/__tests__/Generated/DataListItemRow.test.tsx +2 -2
  153. package/src/components/DataList/__tests__/Generated/DataListToggle.test.tsx +2 -2
  154. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListAction.test.tsx.snap +2 -2
  155. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCell.test.tsx.snap +2 -2
  156. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCheck.test.tsx.snap +2 -2
  157. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListContent.test.tsx.snap +2 -2
  158. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItem.test.tsx.snap +2 -2
  159. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemCells.test.tsx.snap +2 -2
  160. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemRow.test.tsx.snap +2 -2
  161. package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +2 -2
  162. package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +47 -39
  163. package/src/components/DataList/examples/DataListExpandable.tsx +0 -23
  164. package/src/components/DatePicker/__tests__/DatePicker.test.tsx +2 -2
  165. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2 -3
  166. package/src/components/DescriptionList/__tests__/DescriptionList.test.tsx +34 -34
  167. package/src/components/DescriptionList/__tests__/__snapshots__/DescriptionList.test.tsx.snap +34 -34
  168. package/src/components/Divider/Divider.tsx +12 -1
  169. package/src/components/Divider/__tests__/Divider.test.tsx +14 -10
  170. package/src/components/Divider/__tests__/__snapshots__/Divider.test.tsx.snap +8 -8
  171. package/src/components/Divider/examples/Divider.md +6 -0
  172. package/src/components/Divider/examples/DividerOrientationVariousBreakpoints.tsx +19 -0
  173. package/src/components/Divider/examples/DividerVerticalFlex.tsx +5 -1
  174. package/src/components/Divider/examples/DividerVerticalFlexInsetMedium.tsx +6 -1
  175. package/src/components/Divider/examples/DividerVerticalFlexInsetVariousBreakpoints.tsx +4 -2
  176. package/src/components/DragDrop/__tests__/DragDrop.test.tsx +4 -8
  177. package/src/components/DragDrop/__tests__/__snapshots__/DragDrop.test.tsx.snap +4 -4
  178. package/src/components/Drawer/__tests__/Drawer.test.tsx +15 -9
  179. package/src/components/Drawer/__tests__/Generated/DrawerContent.test.tsx +4 -2
  180. package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -2
  181. package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerContent.test.tsx.snap +13 -87
  182. package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +2 -2
  183. package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +16 -16
  184. package/src/components/Dropdown/__tests__/Dropdown.test.tsx +36 -34
  185. package/src/components/Dropdown/__tests__/DropdownGroup.test.tsx +2 -2
  186. package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +27 -30
  187. package/src/components/Dropdown/__tests__/DropdownToggleAction.test.tsx +9 -7
  188. package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +18 -14
  189. package/src/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +2 -2
  190. package/src/components/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +2 -2
  191. package/src/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +2 -2
  192. package/src/components/Dropdown/__tests__/Generated/KebabToggle.test.tsx +2 -2
  193. package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +2 -2
  194. package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +2 -2
  195. package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +2 -2
  196. package/src/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +2 -2
  197. package/src/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +23 -21
  198. package/src/components/Dropdown/__tests__/Toggle.test.tsx +4 -4
  199. package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +820 -15
  200. package/src/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +2 -2
  201. package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +208 -17
  202. package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +6 -6
  203. package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +141 -7
  204. package/src/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +157 -10
  205. package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +4 -4
  206. package/src/components/DualListSelector/__tests__/DualListSelector.test.tsx +16 -12
  207. package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +12 -12
  208. package/src/components/EmptyState/__tests__/EmptyState.test.tsx +25 -24
  209. package/src/components/EmptyState/__tests__/Generated/EmptyStateBody.test.tsx +2 -2
  210. package/src/components/EmptyState/__tests__/Generated/EmptyStateIcon.test.tsx +5 -5
  211. package/src/components/EmptyState/__tests__/Generated/EmptyStatePrimary.test.tsx +2 -2
  212. package/src/components/EmptyState/__tests__/Generated/EmptyStateSecondaryActions.test.tsx +2 -2
  213. package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateBody.test.tsx.snap +2 -2
  214. package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +4 -4
  215. package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStatePrimary.test.tsx.snap +2 -2
  216. package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateSecondaryActions.test.tsx.snap +2 -2
  217. package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +130 -5
  218. package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +23 -12
  219. package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +12 -12
  220. package/src/components/FileUpload/__tests__/FileUpload.test.tsx +2 -2
  221. package/src/components/FileUpload/__tests__/FileUploadField.test.tsx +2 -2
  222. package/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap +2 -2
  223. package/src/components/FileUpload/__tests__/__snapshots__/FileUploadField.test.tsx.snap +2 -2
  224. package/src/components/Form/__tests__/ActionGroup.test.tsx +4 -4
  225. package/src/components/Form/__tests__/Form.test.tsx +6 -6
  226. package/src/components/Form/__tests__/FormAlert.test.tsx +2 -4
  227. package/src/components/Form/__tests__/FormFieldGroup.test.tsx +12 -15
  228. package/src/components/Form/__tests__/FormGroup.test.tsx +2 -13
  229. package/src/components/Form/__tests__/FormHelperText.test.tsx +8 -9
  230. package/src/components/Form/__tests__/FormSection.test.tsx +5 -5
  231. package/src/components/Form/__tests__/__snapshots__/ActionGroup.test.tsx.snap +4 -4
  232. package/src/components/Form/__tests__/__snapshots__/Form.test.tsx.snap +6 -6
  233. package/src/components/Form/__tests__/__snapshots__/FormAlert.test.tsx.snap +2 -2
  234. package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +4 -4
  235. package/src/components/Form/__tests__/__snapshots__/FormHelperText.test.tsx.snap +55 -4
  236. package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +5 -7
  237. package/src/components/FormSelect/__tests__/FormSelect.test.tsx +25 -26
  238. package/src/components/FormSelect/__tests__/Generated/FormSelectOption.test.tsx +2 -2
  239. package/src/components/FormSelect/__tests__/Generated/FormSelectOptionGroup.test.tsx +2 -2
  240. package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOption.test.tsx.snap +2 -2
  241. package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOptionGroup.test.tsx.snap +2 -2
  242. package/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap +256 -9
  243. package/src/components/HelperText/__tests__/HelperText.test.tsx +13 -13
  244. package/src/components/HelperText/__tests__/__snapshots__/HelperText.test.tsx.snap +25 -30
  245. package/src/components/Hint/__tests__/Hint.test.tsx +2 -2
  246. package/src/components/Hint/__tests__/__snapshots__/Hint.test.tsx.snap +2 -2
  247. package/src/components/InputGroup/__tests__/InputGroup.test.tsx +2 -2
  248. package/src/components/InputGroup/__tests__/InputGroupText.test.tsx +0 -1
  249. package/src/components/JumpLinks/__tests__/JumpLinks.test.tsx +10 -10
  250. package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +11 -13
  251. package/src/components/Label/__tests__/Label.test.tsx +33 -66
  252. package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +416 -26
  253. package/src/components/List/__tests__/Generated/ListItem.test.tsx +2 -2
  254. package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +2 -2
  255. package/src/components/List/__tests__/List.test.tsx +0 -1
  256. package/src/components/LoginPage/__tests__/Generated/LoginFooter.test.tsx +2 -2
  257. package/src/components/LoginPage/__tests__/Generated/LoginHeader.test.tsx +2 -2
  258. package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooter.test.tsx.snap +2 -2
  259. package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginHeader.test.tsx.snap +2 -2
  260. package/src/components/LoginPage/__tests__/Login.test.tsx +2 -2
  261. package/src/components/LoginPage/__tests__/LoginFooterItem.test.tsx +1 -1
  262. package/src/components/LoginPage/__tests__/LoginForm.test.tsx +9 -7
  263. package/src/components/LoginPage/__tests__/LoginMainBody.test.tsx +5 -5
  264. package/src/components/LoginPage/__tests__/LoginMainFooter.test.tsx +5 -5
  265. package/src/components/LoginPage/__tests__/LoginMainFooterBandItem.test.tsx +1 -1
  266. package/src/components/LoginPage/__tests__/LoginMainFooterLinksItem.test.tsx +7 -7
  267. package/src/components/LoginPage/__tests__/LoginMainHeader.test.tsx +7 -7
  268. package/src/components/LoginPage/__tests__/LoginPage.test.tsx +2 -2
  269. package/src/components/LoginPage/__tests__/__snapshots__/Login.test.tsx.snap +3 -4
  270. package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +402 -3
  271. package/src/components/LoginPage/__tests__/__snapshots__/LoginMainBody.test.tsx.snap +14 -2
  272. package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooter.test.tsx.snap +14 -2
  273. package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +43 -3
  274. package/src/components/LoginPage/__tests__/__snapshots__/LoginMainHeader.test.tsx.snap +35 -3
  275. package/src/components/LoginPage/__tests__/__snapshots__/LoginPage.test.tsx.snap +2 -3
  276. package/src/components/Masthead/__tests__/Masthead.test.tsx +30 -30
  277. package/src/components/Masthead/__tests__/__snapshots__/Masthead.test.tsx.snap +44 -44
  278. package/src/components/Menu/__tests__/Menu.test.tsx +1 -1
  279. package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +18 -18
  280. package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +18 -18
  281. package/src/components/Modal/__tests__/Modal.test.tsx +5 -6
  282. package/src/components/Modal/__tests__/ModalBox.test.tsx +12 -12
  283. package/src/components/Modal/__tests__/ModalBoxBody.test.tsx +2 -2
  284. package/src/components/Modal/__tests__/ModalBoxDescription.test.tsx +2 -6
  285. package/src/components/Modal/__tests__/ModalBoxFooter.test.tsx +4 -2
  286. package/src/components/Modal/__tests__/ModalBoxHeader.test.tsx +4 -4
  287. package/src/components/Modal/__tests__/ModalBoxTitle.test.tsx +13 -13
  288. package/src/components/Modal/__tests__/ModalContent.test.tsx +34 -22
  289. package/src/components/Modal/__tests__/__snapshots__/ModalBox.test.tsx.snap +12 -12
  290. package/src/components/Modal/__tests__/__snapshots__/ModalBoxBody.test.tsx.snap +2 -2
  291. package/src/components/Modal/__tests__/__snapshots__/ModalBoxDescription.test.tsx.snap +2 -2
  292. package/src/components/Modal/__tests__/__snapshots__/ModalBoxFooter.test.tsx.snap +2 -2
  293. package/src/components/Modal/__tests__/__snapshots__/ModalBoxHeader.test.tsx.snap +4 -4
  294. package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +12 -13
  295. package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +16 -23
  296. package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleIcon.test.tsx +2 -2
  297. package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadTitleIcon.test.tsx.snap +0 -2
  298. package/src/components/Nav/__tests__/Generated/NavExpandable.test.tsx +3 -3
  299. package/src/components/Nav/__tests__/Generated/NavGroup.test.tsx +2 -2
  300. package/src/components/Nav/__tests__/Generated/NavItem.test.tsx +2 -2
  301. package/src/components/Nav/__tests__/Generated/NavList.test.tsx +2 -2
  302. package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +2 -2
  303. package/src/components/Nav/__tests__/Generated/__snapshots__/NavGroup.test.tsx.snap +2 -2
  304. package/src/components/Nav/__tests__/Generated/__snapshots__/NavItem.test.tsx.snap +2 -2
  305. package/src/components/Nav/__tests__/Generated/__snapshots__/NavList.test.tsx.snap +2 -2
  306. package/src/components/Nav/__tests__/Nav.test.tsx +1 -1
  307. package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +10 -6
  308. package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +12 -14
  309. package/src/components/NotificationDrawer/__tests__/NotificationDrawer.test.tsx +1 -1
  310. package/src/components/NotificationDrawer/__tests__/NotificationDrawerBody.test.tsx +1 -1
  311. package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroup.test.tsx +13 -3
  312. package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroupList.test.tsx +1 -1
  313. package/src/components/NotificationDrawer/__tests__/NotificationDrawerHeader.test.tsx +1 -1
  314. package/src/components/NotificationDrawer/__tests__/NotificationDrawerList.test.tsx +1 -1
  315. package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItem.test.tsx +1 -1
  316. package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemBody.test.tsx +1 -1
  317. package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +10 -4
  318. package/src/components/NumberInput/__tests__/NumberInput.test.tsx +20 -20
  319. package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +20 -20
  320. package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +2 -2
  321. package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItemGroup.test.tsx +3 -3
  322. package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuSeparator.test.tsx +2 -2
  323. package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggle.test.tsx +2 -4
  324. package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggleWithText.test.tsx +2 -6
  325. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +2 -2
  326. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +3 -5
  327. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuSeparator.test.tsx.snap +2 -2
  328. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +2 -2
  329. package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggleWithText.test.tsx.snap +2 -2
  330. package/src/components/OptionsMenu/__tests__/OptionsMenu.test.tsx +16 -16
  331. package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +16 -16
  332. package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuControl.test.tsx +4 -2
  333. package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuDropdownItem.test.tsx +2 -2
  334. package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuControl.test.tsx.snap +3 -5
  335. package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuDropdownItem.test.tsx.snap +2 -2
  336. package/src/components/OverflowMenu/__tests__/OverflowMenu.test.tsx +2 -3
  337. package/src/components/OverflowMenu/__tests__/OverflowMenuControl.test.tsx +0 -1
  338. package/src/components/OverflowMenu/__tests__/OverflowMenuGroup.test.tsx +0 -1
  339. package/src/components/OverflowMenu/__tests__/OverflowMenuItem.test.tsx +0 -1
  340. package/src/components/Page/__tests__/Generated/PageHeaderTools.test.tsx +2 -2
  341. package/src/components/Page/__tests__/Generated/PageHeaderToolsGroup.test.tsx +2 -4
  342. package/src/components/Page/__tests__/Generated/PageHeaderToolsItem.test.tsx +2 -2
  343. package/src/components/Page/__tests__/Generated/PageSidebar.test.tsx +2 -2
  344. package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderTools.test.tsx.snap +2 -2
  345. package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsGroup.test.tsx.snap +2 -2
  346. package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsItem.test.tsx.snap +2 -2
  347. package/src/components/Page/__tests__/Generated/__snapshots__/PageSidebar.test.tsx.snap +2 -2
  348. package/src/components/Page/__tests__/Page.test.tsx +0 -1
  349. package/src/components/Page/__tests__/PageBreadcrumb.test.tsx +14 -14
  350. package/src/components/Page/__tests__/PageGroup.test.tsx +12 -12
  351. package/src/components/Page/__tests__/PageHeader.test.tsx +2 -2
  352. package/src/components/Page/__tests__/PageNavigation.test.tsx +14 -14
  353. package/src/components/Page/__tests__/PageSection.test.tsx +30 -30
  354. package/src/components/Page/__tests__/__snapshots__/PageBreadcrumb.test.tsx.snap +14 -14
  355. package/src/components/Page/__tests__/__snapshots__/PageGroup.test.tsx.snap +12 -12
  356. package/src/components/Page/__tests__/__snapshots__/PageHeader.test.tsx.snap +2 -2
  357. package/src/components/Page/__tests__/__snapshots__/PageNavigation.test.tsx.snap +14 -14
  358. package/src/components/Page/__tests__/__snapshots__/PageSection.test.tsx.snap +30 -30
  359. package/src/components/Page/examples/Page.md +17 -7
  360. package/src/components/Pagination/__tests__/Generated/Navigation.test.tsx +2 -2
  361. package/src/components/Pagination/__tests__/Generated/OptionsToggle.test.tsx +2 -2
  362. package/src/components/Pagination/__tests__/Generated/PaginationOptionsMenu.test.tsx +2 -2
  363. package/src/components/Pagination/__tests__/Generated/ToggleTemplate.test.tsx +2 -2
  364. package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +2 -2
  365. package/src/components/Pagination/__tests__/Generated/__snapshots__/OptionsToggle.test.tsx.snap +2 -2
  366. package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +2 -2
  367. package/src/components/Pagination/__tests__/Generated/__snapshots__/ToggleTemplate.test.tsx.snap +5 -10
  368. package/src/components/Pagination/__tests__/Pagination.test.tsx +0 -1
  369. package/src/components/Panel/__tests__/Panel.test.tsx +18 -18
  370. package/src/components/Panel/__tests__/__snapshots__/Panel.test.tsx.snap +18 -18
  371. package/src/components/Popover/__tests__/Generated/PopoverArrow.test.tsx +2 -2
  372. package/src/components/Popover/__tests__/Generated/PopoverBody.test.tsx +2 -2
  373. package/src/components/Popover/__tests__/Generated/PopoverCloseButton.test.tsx +2 -2
  374. package/src/components/Popover/__tests__/Generated/PopoverContent.test.tsx +2 -2
  375. package/src/components/Popover/__tests__/Generated/PopoverDialog.test.tsx +2 -2
  376. package/src/components/Popover/__tests__/Generated/PopoverFooter.test.tsx +2 -2
  377. package/src/components/Popover/__tests__/Generated/PopoverHeader.test.tsx +2 -2
  378. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverArrow.test.tsx.snap +2 -2
  379. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverBody.test.tsx.snap +2 -2
  380. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +2 -2
  381. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverContent.test.tsx.snap +2 -2
  382. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverDialog.test.tsx.snap +2 -2
  383. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverFooter.test.tsx.snap +2 -2
  384. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverHeader.test.tsx.snap +2 -2
  385. package/src/components/Popover/__tests__/Popover.test.tsx +8 -8
  386. package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +8 -8
  387. package/src/components/Progress/__tests__/Generated/ProgressBar.test.tsx +2 -2
  388. package/src/components/Progress/__tests__/Generated/ProgressContainer.test.tsx +2 -3
  389. package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressBar.test.tsx.snap +2 -2
  390. package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +2 -2
  391. package/src/components/Progress/__tests__/Progress.test.tsx +27 -27
  392. package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +40 -40
  393. package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +24 -24
  394. package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap +40 -46
  395. package/src/components/Radio/__tests__/Radio.test.tsx +19 -8
  396. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +5 -6
  397. package/src/components/Select/__tests__/Select.test.tsx +1 -2
  398. package/src/components/Select/__tests__/SelectGroup.test.tsx +12 -5
  399. package/src/components/Select/__tests__/SelectOption.test.tsx +110 -33
  400. package/src/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +22 -1
  401. package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +223 -10
  402. package/src/components/SimpleList/__tests__/Generated/SimpleListGroup.test.tsx +2 -2
  403. package/src/components/SimpleList/__tests__/Generated/SimpleListItem.test.tsx +2 -2
  404. package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListGroup.test.tsx.snap +2 -2
  405. package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListItem.test.tsx.snap +2 -2
  406. package/src/components/SimpleList/__tests__/SimpleList.test.tsx +2 -3
  407. package/src/components/Skeleton/__tests__/Skeleton.test.tsx +14 -12
  408. package/src/components/Skeleton/__tests__/__snapshots__/Skeleton.test.tsx.snap +42 -42
  409. package/src/components/SkipToContent/__tests__/SkipToContent.test.tsx +4 -4
  410. package/src/components/SkipToContent/__tests__/__snapshots__/SkipToContent.test.tsx.snap +4 -4
  411. package/src/components/Slider/_tests_/Slider.test.tsx +22 -18
  412. package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +20 -22
  413. package/src/components/Spinner/__tests__/Spinner.test.tsx +10 -10
  414. package/src/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +10 -10
  415. package/src/components/Switch/__tests__/Switch.test.tsx +18 -9
  416. package/src/components/Tabs/__tests__/Generated/TabContent.test.tsx +2 -2
  417. package/src/components/Tabs/__tests__/Generated/__snapshots__/TabContent.test.tsx.snap +2 -2
  418. package/src/components/Tabs/__tests__/Tab.test.tsx +3 -3
  419. package/src/components/Tabs/__tests__/TabButton.test.tsx +2 -2
  420. package/src/components/Tabs/__tests__/Tabs.test.tsx +99 -42
  421. package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +2 -2
  422. package/src/components/Tabs/__tests__/__snapshots__/TabButton.test.tsx.snap +2 -2
  423. package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +29 -29
  424. package/src/components/Text/__tests__/Generated/TextContent.test.tsx +2 -2
  425. package/src/components/Text/__tests__/Generated/TextList.test.tsx +2 -2
  426. package/src/components/Text/__tests__/Generated/TextListItem.test.tsx +2 -2
  427. package/src/components/Text/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +2 -2
  428. package/src/components/Text/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +2 -2
  429. package/src/components/Text/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +2 -2
  430. package/src/components/Text/__tests__/Text.test.tsx +2 -2
  431. package/src/components/Text/__tests__/__snapshots__/Text.test.tsx.snap +3 -4
  432. package/src/components/TextArea/__tests__/TextArea.test.tsx +10 -7
  433. package/src/components/TextInput/__tests__/TextInput.test.tsx +11 -8
  434. package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +3 -3
  435. package/src/components/Tile/__tests__/Tile.test.tsx +14 -14
  436. package/src/components/Tile/__tests__/__snapshots__/Tile.test.tsx.snap +14 -14
  437. package/src/components/TimePicker/__tests__/TimePicker.test.tsx +10 -5
  438. package/src/components/Title/__tests__/Title.test.tsx +0 -3
  439. package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +12 -4
  440. package/src/components/ToggleGroup/__tests__/ToggleGroupItemElement.test.tsx +10 -6
  441. package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroupItemElement.test.tsx.snap +6 -6
  442. package/src/components/Toolbar/__tests__/Generated/ToolbarChipGroupContent.test.tsx +2 -2
  443. package/src/components/Toolbar/__tests__/Generated/ToolbarContent.test.tsx +2 -2
  444. package/src/components/Toolbar/__tests__/Generated/ToolbarExpandableContent.test.tsx +2 -2
  445. package/src/components/Toolbar/__tests__/Generated/ToolbarGroup.test.tsx +2 -2
  446. package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarChipGroupContent.test.tsx.snap +2 -2
  447. package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarContent.test.tsx.snap +2 -2
  448. package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarExpandableContent.test.tsx.snap +2 -2
  449. package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarGroup.test.tsx.snap +2 -2
  450. package/src/components/Toolbar/__tests__/Toolbar.test.tsx +7 -9
  451. package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +3 -3
  452. package/src/components/Toolbar/__tests__/ToolbarToggleGroup.test.tsx +1 -1
  453. package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +501 -3
  454. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.test.tsx.snap +10 -1
  455. package/src/components/Tooltip/__tests__/Generated/TooltipArrow.test.tsx +2 -2
  456. package/src/components/Tooltip/__tests__/Generated/TooltipContent.test.tsx +4 -2
  457. package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipArrow.test.tsx.snap +2 -2
  458. package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipContent.test.tsx.snap +2 -2
  459. package/src/components/Tooltip/__tests__/Tooltip.test.tsx +2 -2
  460. package/src/components/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +2 -2
  461. package/src/components/TreeView/__tests__/TreeView.test.tsx +46 -34
  462. package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +22 -22
  463. package/src/components/Truncate/__tests__/Truncate.test.tsx +18 -6
  464. package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +7 -8
  465. package/src/components/Wizard/__tests__/Generated/WizardBody.test.tsx +2 -2
  466. package/src/components/Wizard/__tests__/Generated/WizardFooter.test.tsx +2 -2
  467. package/src/components/Wizard/__tests__/Generated/WizardFooterInternal.test.tsx +3 -3
  468. package/src/components/Wizard/__tests__/Generated/WizardHeader.test.tsx +2 -2
  469. package/src/components/Wizard/__tests__/Generated/WizardNav.test.tsx +2 -2
  470. package/src/components/Wizard/__tests__/Generated/WizardNavItem.test.tsx +2 -2
  471. package/src/components/Wizard/__tests__/Generated/WizardToggle.test.tsx +4 -4
  472. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardBody.test.tsx.snap +2 -2
  473. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooter.test.tsx.snap +2 -2
  474. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +2 -2
  475. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardHeader.test.tsx.snap +7 -7
  476. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNav.test.tsx.snap +2 -2
  477. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +2 -2
  478. package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +2 -2
  479. package/src/components/Wizard/__tests__/Wizard.test.tsx +1 -4
  480. package/src/demos/CardDemos.md +108 -21
  481. package/src/demos/DateTimePicker.md +1 -103
  482. package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +106 -0
  483. package/src/helpers/FocusTrap/__tests__/Generated/FocusTrap.test.tsx +2 -2
  484. package/src/helpers/FocusTrap/__tests__/Generated/__snapshots__/FocusTrap.test.tsx.snap +2 -2
  485. package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +2 -2
  486. package/src/helpers/GenerateId/__tests__/__snapshots__/GenerateId.test.tsx.snap +2 -2
  487. package/src/helpers/Popper/__tests__/Generated/FindRefWrapper.test.tsx +2 -2
  488. package/src/helpers/Popper/__tests__/Generated/__snapshots__/FindRefWrapper.test.tsx.snap +2 -2
  489. package/src/helpers/__tests__/util.test.ts +2 -2
  490. package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -4
  491. package/src/layouts/Flex/__tests__/Flex.test.tsx +0 -1
  492. package/src/layouts/Flex/__tests__/Generated/FlexItem.test.tsx +2 -2
  493. package/src/layouts/Flex/__tests__/Generated/__snapshots__/FlexItem.test.tsx.snap +2 -2
  494. package/src/layouts/Gallery/__tests__/Gallery.test.tsx +8 -8
  495. package/src/layouts/Gallery/__tests__/Generated/GalleryItem.test.tsx +2 -2
  496. package/src/layouts/Gallery/__tests__/Generated/__snapshots__/GalleryItem.test.tsx.snap +2 -2
  497. package/src/layouts/Gallery/__tests__/__snapshots__/Gallery.test.tsx.snap +6 -6
  498. package/src/layouts/Grid/__tests__/Grid.test.tsx +6 -6
  499. package/src/layouts/Grid/__tests__/GridItem.test.tsx +12 -12
  500. package/src/layouts/Grid/__tests__/__snapshots__/Grid.test.tsx.snap +4 -4
  501. package/src/layouts/Grid/__tests__/__snapshots__/GridItem.test.tsx.snap +36 -36
  502. package/src/layouts/Level/__tests__/Generated/LevelItem.test.tsx +2 -2
  503. package/src/layouts/Level/__tests__/Generated/__snapshots__/LevelItem.test.tsx.snap +2 -2
  504. package/src/layouts/Level/__tests__/Level.test.tsx +4 -4
  505. package/src/layouts/Level/__tests__/__snapshots__/Level.test.tsx.snap +4 -4
  506. package/src/layouts/Split/__tests__/Generated/SplitItem.test.tsx +2 -2
  507. package/src/layouts/Split/__tests__/Generated/__snapshots__/SplitItem.test.tsx.snap +2 -2
  508. package/src/layouts/Split/__tests__/Split.test.tsx +8 -8
  509. package/src/layouts/Split/__tests__/__snapshots__/Split.test.tsx.snap +8 -8
  510. package/src/layouts/Stack/__tests__/Generated/StackItem.test.tsx +2 -2
  511. package/src/layouts/Stack/__tests__/Generated/__snapshots__/StackItem.test.tsx.snap +2 -2
  512. package/src/layouts/Stack/__tests__/Stack.test.tsx +6 -6
  513. package/src/layouts/Stack/__tests__/__snapshots__/Stack.test.tsx.snap +6 -6
@@ -4,17 +4,19 @@ import React from 'react';
4
4
 
5
5
  describe('DualListSelector', () => {
6
6
  test('basic', () => {
7
- const view = render(<DualListSelector availableOptions={['Option 1', 'Option 2']} id="firstTest" />);
8
- expect(view.container).toMatchSnapshot();
7
+ const { asFragment } = render(<DualListSelector availableOptions={['Option 1', 'Option 2']} id="firstTest" />);
8
+ expect(asFragment()).toMatchSnapshot();
9
9
  });
10
10
 
11
11
  test('with search inputs', () => {
12
- const view = render(<DualListSelector availableOptions={['Option 1', 'Option 2']} id="secondTest" isSearchable />);
13
- expect(view.container).toMatchSnapshot();
12
+ const { asFragment } = render(
13
+ <DualListSelector availableOptions={['Option 1', 'Option 2']} id="secondTest" isSearchable />
14
+ );
15
+ expect(asFragment()).toMatchSnapshot();
14
16
  });
15
17
 
16
18
  test('with custom status', () => {
17
- const view = render(
19
+ const { asFragment } = render(
18
20
  <DualListSelector
19
21
  availableOptions={['Option 1', 'Option 2']}
20
22
  availableOptionsStatus="Test status1"
@@ -22,16 +24,18 @@ describe('DualListSelector', () => {
22
24
  id="thirdTest"
23
25
  />
24
26
  );
25
- expect(view.container).toMatchSnapshot();
27
+ expect(asFragment()).toMatchSnapshot();
26
28
  });
27
29
 
28
30
  test('basic with disabled controls', () => {
29
- const view = render(<DualListSelector isDisabled availableOptions={['Option 1', 'Option 2']} id="disabledTest" />);
30
- expect(view.container).toMatchSnapshot();
31
+ const { asFragment } = render(
32
+ <DualListSelector isDisabled availableOptions={['Option 1', 'Option 2']} id="disabledTest" />
33
+ );
34
+ expect(asFragment()).toMatchSnapshot();
31
35
  });
32
36
 
33
37
  test('with tree', () => {
34
- const view = render(
38
+ const { asFragment } = render(
35
39
  <DualListSelector
36
40
  availableOptions={[
37
41
  { id: 'O1', text: 'Opt1', defaultExpanded: true, children: [{ id: 'O3', text: 'Opt3' }] },
@@ -43,11 +47,11 @@ describe('DualListSelector', () => {
43
47
  isTree
44
48
  />
45
49
  );
46
- expect(view.container).toMatchSnapshot();
50
+ expect(asFragment()).toMatchSnapshot();
47
51
  });
48
52
 
49
53
  test('with actions', () => {
50
- const view = render(
54
+ const { asFragment } = render(
51
55
  <DualListSelector
52
56
  availableOptions={['Option 1', 'Option 2']}
53
57
  chosenOptions={['Option 3', 'Option 4']}
@@ -56,6 +60,6 @@ describe('DualListSelector', () => {
56
60
  id="fourthTest"
57
61
  />
58
62
  );
59
- expect(view.container).toMatchSnapshot();
63
+ expect(asFragment()).toMatchSnapshot();
60
64
  });
61
65
  });
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`DualListSelector basic 1`] = `
4
- <div>
4
+ <DocumentFragment>
5
5
  <div
6
6
  class="pf-c-dual-list-selector"
7
7
  id="firstTest"
@@ -257,11 +257,11 @@ exports[`DualListSelector basic 1`] = `
257
257
  </div>
258
258
  </div>
259
259
  </div>
260
- </div>
260
+ </DocumentFragment>
261
261
  `;
262
262
 
263
263
  exports[`DualListSelector basic with disabled controls 1`] = `
264
- <div>
264
+ <DocumentFragment>
265
265
  <div
266
266
  class="pf-c-dual-list-selector"
267
267
  id="disabledTest"
@@ -520,11 +520,11 @@ exports[`DualListSelector basic with disabled controls 1`] = `
520
520
  </div>
521
521
  </div>
522
522
  </div>
523
- </div>
523
+ </DocumentFragment>
524
524
  `;
525
525
 
526
526
  exports[`DualListSelector with actions 1`] = `
527
- <div>
527
+ <DocumentFragment>
528
528
  <div
529
529
  class="pf-c-dual-list-selector"
530
530
  id="fourthTest"
@@ -852,11 +852,11 @@ exports[`DualListSelector with actions 1`] = `
852
852
  </div>
853
853
  </div>
854
854
  </div>
855
- </div>
855
+ </DocumentFragment>
856
856
  `;
857
857
 
858
858
  exports[`DualListSelector with custom status 1`] = `
859
- <div>
859
+ <DocumentFragment>
860
860
  <div
861
861
  class="pf-c-dual-list-selector"
862
862
  id="thirdTest"
@@ -1112,11 +1112,11 @@ exports[`DualListSelector with custom status 1`] = `
1112
1112
  </div>
1113
1113
  </div>
1114
1114
  </div>
1115
- </div>
1115
+ </DocumentFragment>
1116
1116
  `;
1117
1117
 
1118
1118
  exports[`DualListSelector with search inputs 1`] = `
1119
- <div>
1119
+ <DocumentFragment>
1120
1120
  <div
1121
1121
  class="pf-c-dual-list-selector"
1122
1122
  id="secondTest"
@@ -1398,11 +1398,11 @@ exports[`DualListSelector with search inputs 1`] = `
1398
1398
  </div>
1399
1399
  </div>
1400
1400
  </div>
1401
- </div>
1401
+ </DocumentFragment>
1402
1402
  `;
1403
1403
 
1404
1404
  exports[`DualListSelector with tree 1`] = `
1405
- <div>
1405
+ <DocumentFragment>
1406
1406
  <div
1407
1407
  class="pf-c-dual-list-selector"
1408
1408
  id="tree-test"
@@ -1735,5 +1735,5 @@ exports[`DualListSelector with tree 1`] = `
1735
1735
  </div>
1736
1736
  </div>
1737
1737
  </div>
1738
- </div>
1738
+ </DocumentFragment>
1739
1739
  `;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { render, screen } from '@testing-library/react';
4
- import "@testing-library/jest-dom";
5
4
 
6
5
  import AddressBookIcon from '@patternfly/react-icons/dist/esm/icons/address-book-icon';
7
6
  import { EmptyState, EmptyStateVariant } from '../EmptyState';
@@ -14,8 +13,8 @@ import { Title, TitleSizes } from '../../Title';
14
13
 
15
14
  describe('EmptyState', () => {
16
15
  test('Main', () => {
17
- render(
18
- <EmptyState data-testid="empty-state-test-id">
16
+ const { asFragment } = render(
17
+ <EmptyState>
19
18
  <Title headingLevel="h5" size="lg">
20
19
  HTTP Proxies
21
20
  </Title>
@@ -30,40 +29,40 @@ describe('EmptyState', () => {
30
29
  </EmptyStateSecondaryActions>
31
30
  </EmptyState>
32
31
  );
33
- expect(screen.getByTestId('empty-state-test-id').outerHTML).toMatchSnapshot();
32
+ expect(asFragment()).toMatchSnapshot();
34
33
  });
35
34
 
36
35
  test('Main variant large', () => {
37
- render(
38
- <EmptyState variant={EmptyStateVariant.large} data-testid="empty-state-test-id">
36
+ const { asFragment } = render(
37
+ <EmptyState variant={EmptyStateVariant.large}>
39
38
  <Title headingLevel="h3" size={TitleSizes.md}>
40
39
  EmptyState large
41
40
  </Title>
42
41
  </EmptyState>
43
42
  );
44
- expect(screen.getByTestId('empty-state-test-id').outerHTML).toMatchSnapshot();
43
+ expect(asFragment()).toMatchSnapshot();
45
44
  });
46
45
 
47
46
  test('Main variant small', () => {
48
- render(
49
- <EmptyState variant={EmptyStateVariant.small} data-testid="empty-state-test-id">
47
+ const { asFragment } = render(
48
+ <EmptyState variant={EmptyStateVariant.small}>
50
49
  <Title headingLevel="h3" size={TitleSizes.md}>
51
50
  EmptyState small
52
51
  </Title>
53
52
  </EmptyState>
54
53
  );
55
- expect(screen.getByTestId('empty-state-test-id').outerHTML).toMatchSnapshot();
54
+ expect(asFragment()).toMatchSnapshot();
56
55
  });
57
56
 
58
57
  test('Main variant xs', () => {
59
- render(
60
- <EmptyState variant={EmptyStateVariant.xs} data-testid="empty-state-test-id">
58
+ const { asFragment } = render(
59
+ <EmptyState variant={EmptyStateVariant.xs}>
61
60
  <Title headingLevel="h3" size={TitleSizes.md}>
62
61
  EmptyState small
63
62
  </Title>
64
63
  </EmptyState>
65
64
  );
66
- expect(screen.getByTestId('empty-state-test-id').outerHTML).toMatchSnapshot();
65
+ expect(asFragment()).toMatchSnapshot();
67
66
  });
68
67
 
69
68
  test('Body', () => {
@@ -73,27 +72,29 @@ describe('EmptyState', () => {
73
72
 
74
73
  test('Secondary Action', () => {
75
74
  render(<EmptyStateSecondaryActions className="custom-empty-state-secondary" data-testid="actions-test-id" />);
76
- expect(screen.getByTestId('actions-test-id')).toHaveClass('custom-empty-state-secondary pf-c-empty-state__secondary');
75
+ expect(screen.getByTestId('actions-test-id')).toHaveClass(
76
+ 'custom-empty-state-secondary pf-c-empty-state__secondary'
77
+ );
77
78
  });
78
79
 
79
80
  test('Icon', () => {
80
81
  render(<EmptyStateIcon icon={AddressBookIcon} data-testid="icon-test-id" />);
81
- expect(screen.getByTestId('icon-test-id').outerHTML).toContain('pf-c-empty-state__icon');
82
+ expect(screen.getByTestId('icon-test-id')).toHaveClass('pf-c-empty-state__icon');
82
83
  });
83
84
 
84
85
  test('Wrap icon in a div', () => {
85
- const view = render(
86
+ const { container } = render(
86
87
  <EmptyStateIcon
87
88
  variant="container"
88
89
  component={AddressBookIcon}
89
90
  className="custom-empty-state-icon"
90
- id="empty-state-icon"
91
+ id="empty-state-icon-id"
91
92
  />
92
93
  );
93
94
 
94
- expect(view.container.querySelector('div')).toHaveClass('pf-c-empty-state__icon custom-empty-state-icon');
95
- expect(view.container.querySelector('svg')).toBeInTheDocument();
96
- })
95
+ expect(container.querySelector('div')).toHaveClass('pf-c-empty-state__icon custom-empty-state-icon');
96
+ expect(container.querySelector('svg')).toBeInTheDocument();
97
+ });
97
98
 
98
99
  test('Primary div', () => {
99
100
  render(
@@ -101,17 +102,17 @@ describe('EmptyState', () => {
101
102
  <Button variant="link">Link</Button>
102
103
  </EmptyStatePrimary>
103
104
  );
104
- expect(screen.getByTestId('primary-test-id').className).toContain('pf-c-empty-state__primary');
105
+ expect(screen.getByTestId('primary-test-id')).toHaveClass('pf-c-empty-state__primary');
105
106
  });
106
107
 
107
108
  test('Full height', () => {
108
- render(
109
- <EmptyState isFullHeight variant={EmptyStateVariant.large} data-testid="empty-state-test-id">
109
+ const { asFragment } = render(
110
+ <EmptyState isFullHeight variant={EmptyStateVariant.large}>
110
111
  <Title headingLevel="h3" size={TitleSizes.md}>
111
112
  EmptyState large
112
113
  </Title>
113
114
  </EmptyState>
114
115
  );
115
- expect(screen.getByTestId('empty-state-test-id').outerHTML).toMatchSnapshot();
116
+ expect(asFragment()).toMatchSnapshot();
116
117
  });
117
118
  });
@@ -8,6 +8,6 @@ import { EmptyStateBody } from '../../EmptyStateBody';
8
8
  import {} from '../..';
9
9
 
10
10
  it('EmptyStateBody should match snapshot (auto-generated)', () => {
11
- const view = render(<EmptyStateBody children={<div>ReactNode</div>} className={"''"} />);
12
- expect(view.container).toMatchSnapshot();
11
+ const { asFragment } = render(<EmptyStateBody children={<div>ReactNode</div>} className={"''"} />);
12
+ expect(asFragment()).toMatchSnapshot();
13
13
  });
@@ -3,12 +3,12 @@
3
3
  */
4
4
  import * as React from 'react';
5
5
  import { render } from '@testing-library/react';
6
- import { UserIcon } from '@patternfly/react-icons'
6
+ import { UserIcon } from '@patternfly/react-icons';
7
7
  import { EmptyStateIcon } from '../../EmptyStateIcon';
8
8
  // any missing imports can usually be resolved by adding them here
9
9
  import {} from '../..';
10
10
  it('EmptyStateIcon should match snapshot (auto-generated)', () => {
11
- const view = render(
11
+ const { asFragment } = render(
12
12
  <EmptyStateIcon
13
13
  color={'string'}
14
14
  title={'string'}
@@ -18,11 +18,11 @@ it('EmptyStateIcon should match snapshot (auto-generated)', () => {
18
18
  variant={'icon'}
19
19
  />
20
20
  );
21
- expect(view.container).toMatchSnapshot();
21
+ expect(asFragment()).toMatchSnapshot();
22
22
  });
23
23
 
24
24
  it('EmptyStateIcon should match snapshot for variant container', () => {
25
- const view = render(
25
+ const { asFragment } = render(
26
26
  <EmptyStateIcon
27
27
  color={'string'}
28
28
  title={'string'}
@@ -32,5 +32,5 @@ it('EmptyStateIcon should match snapshot for variant container', () => {
32
32
  variant={'container'}
33
33
  />
34
34
  );
35
- expect(view.container).toMatchSnapshot();
35
+ expect(asFragment()).toMatchSnapshot();
36
36
  });
@@ -8,6 +8,6 @@ import { EmptyStatePrimary } from '../../EmptyStatePrimary';
8
8
  import {} from '../..';
9
9
 
10
10
  it('EmptyStatePrimary should match snapshot (auto-generated)', () => {
11
- const view = render(<EmptyStatePrimary className={"''"} children={<div>ReactNode</div>} />);
12
- expect(view.container).toMatchSnapshot();
11
+ const { asFragment } = render(<EmptyStatePrimary className={"''"} children={<div>ReactNode</div>} />);
12
+ expect(asFragment()).toMatchSnapshot();
13
13
  });
@@ -8,6 +8,6 @@ import { EmptyStateSecondaryActions } from '../../EmptyStateSecondaryActions';
8
8
  import {} from '../..';
9
9
 
10
10
  it('EmptyStateSecondaryActions should match snapshot (auto-generated)', () => {
11
- const view = render(<EmptyStateSecondaryActions children={<>ReactNode</>} className={"''"} />);
12
- expect(view.container).toMatchSnapshot();
11
+ const { asFragment } = render(<EmptyStateSecondaryActions children={<>ReactNode</>} className={"''"} />);
12
+ expect(asFragment()).toMatchSnapshot();
13
13
  });
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`EmptyStateBody should match snapshot (auto-generated) 1`] = `
4
- <div>
4
+ <DocumentFragment>
5
5
  <div
6
6
  class="pf-c-empty-state__body ''"
7
7
  >
@@ -9,5 +9,5 @@ exports[`EmptyStateBody should match snapshot (auto-generated) 1`] = `
9
9
  ReactNode
10
10
  </div>
11
11
  </div>
12
- </div>
12
+ </DocumentFragment>
13
13
  `;
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`EmptyStateIcon should match snapshot (auto-generated) 1`] = `
4
- <div>
4
+ <DocumentFragment>
5
5
  <svg
6
6
  aria-hidden="true"
7
7
  aria-labelledby="icon-title-0"
@@ -22,11 +22,11 @@ exports[`EmptyStateIcon should match snapshot (auto-generated) 1`] = `
22
22
  d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"
23
23
  />
24
24
  </svg>
25
- </div>
25
+ </DocumentFragment>
26
26
  `;
27
27
 
28
28
  exports[`EmptyStateIcon should match snapshot for variant container 1`] = `
29
- <div>
29
+ <DocumentFragment>
30
30
  <div
31
31
  class="pf-c-empty-state__icon ''"
32
32
  >
@@ -34,5 +34,5 @@ exports[`EmptyStateIcon should match snapshot for variant container 1`] = `
34
34
  Component
35
35
  </div>
36
36
  </div>
37
- </div>
37
+ </DocumentFragment>
38
38
  `;
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`EmptyStatePrimary should match snapshot (auto-generated) 1`] = `
4
- <div>
4
+ <DocumentFragment>
5
5
  <div
6
6
  class="pf-c-empty-state__primary ''"
7
7
  >
@@ -9,5 +9,5 @@ exports[`EmptyStatePrimary should match snapshot (auto-generated) 1`] = `
9
9
  ReactNode
10
10
  </div>
11
11
  </div>
12
- </div>
12
+ </DocumentFragment>
13
13
  `;
@@ -1,11 +1,11 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`EmptyStateSecondaryActions should match snapshot (auto-generated) 1`] = `
4
- <div>
4
+ <DocumentFragment>
5
5
  <div
6
6
  class="pf-c-empty-state__secondary ''"
7
7
  >
8
8
  ReactNode
9
9
  </div>
10
- </div>
10
+ </DocumentFragment>
11
11
  `;
@@ -1,11 +1,136 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`EmptyState Full height 1`] = `"<div class=\\"pf-c-empty-state pf-m-lg pf-m-full-height\\" data-testid=\\"empty-state-test-id\\"><div class=\\"pf-c-empty-state__content\\"><h3 data-ouia-component-type=\\"PF4/Title\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Title-5\\" class=\\"pf-c-title pf-m-md\\">EmptyState large</h3></div></div>"`;
3
+ exports[`EmptyState Full height 1`] = `
4
+ <DocumentFragment>
5
+ <div
6
+ class="pf-c-empty-state pf-m-lg pf-m-full-height"
7
+ >
8
+ <div
9
+ class="pf-c-empty-state__content"
10
+ >
11
+ <h3
12
+ class="pf-c-title pf-m-md"
13
+ data-ouia-component-id="OUIA-Generated-Title-5"
14
+ data-ouia-component-type="PF4/Title"
15
+ data-ouia-safe="true"
16
+ >
17
+ EmptyState large
18
+ </h3>
19
+ </div>
20
+ </div>
21
+ </DocumentFragment>
22
+ `;
4
23
 
5
- exports[`EmptyState Main 1`] = `"<div class=\\"pf-c-empty-state\\" data-testid=\\"empty-state-test-id\\"><div class=\\"pf-c-empty-state__content\\"><h5 data-ouia-component-type=\\"PF4/Title\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Title-1\\" class=\\"pf-c-title pf-m-lg\\">HTTP Proxies</h5><div class=\\"pf-c-empty-state__body\\">Defining HTTP Proxies that exist on your network allows you to perform various actions through those proxies.</div><button aria-disabled=\\"false\\" class=\\"pf-c-button pf-m-primary\\" type=\\"button\\" data-ouia-component-type=\\"PF4/Button\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Button-primary-1\\">New HTTP Proxy</button><div class=\\"pf-c-empty-state__secondary\\"><button aria-disabled=\\"false\\" aria-label=\\"learn more action\\" class=\\"pf-c-button pf-m-link\\" type=\\"button\\" data-ouia-component-type=\\"PF4/Button\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Button-link-1\\">Learn more about this in the documentation.</button></div></div></div>"`;
24
+ exports[`EmptyState Main 1`] = `
25
+ <DocumentFragment>
26
+ <div
27
+ class="pf-c-empty-state"
28
+ >
29
+ <div
30
+ class="pf-c-empty-state__content"
31
+ >
32
+ <h5
33
+ class="pf-c-title pf-m-lg"
34
+ data-ouia-component-id="OUIA-Generated-Title-1"
35
+ data-ouia-component-type="PF4/Title"
36
+ data-ouia-safe="true"
37
+ >
38
+ HTTP Proxies
39
+ </h5>
40
+ <div
41
+ class="pf-c-empty-state__body"
42
+ >
43
+ Defining HTTP Proxies that exist on your network allows you to perform various actions through those proxies.
44
+ </div>
45
+ <button
46
+ aria-disabled="false"
47
+ class="pf-c-button pf-m-primary"
48
+ data-ouia-component-id="OUIA-Generated-Button-primary-1"
49
+ data-ouia-component-type="PF4/Button"
50
+ data-ouia-safe="true"
51
+ type="button"
52
+ >
53
+ New HTTP Proxy
54
+ </button>
55
+ <div
56
+ class="pf-c-empty-state__secondary"
57
+ >
58
+ <button
59
+ aria-disabled="false"
60
+ aria-label="learn more action"
61
+ class="pf-c-button pf-m-link"
62
+ data-ouia-component-id="OUIA-Generated-Button-link-1"
63
+ data-ouia-component-type="PF4/Button"
64
+ data-ouia-safe="true"
65
+ type="button"
66
+ >
67
+ Learn more about this in the documentation.
68
+ </button>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </DocumentFragment>
73
+ `;
6
74
 
7
- exports[`EmptyState Main variant large 1`] = `"<div class=\\"pf-c-empty-state pf-m-lg\\" data-testid=\\"empty-state-test-id\\"><div class=\\"pf-c-empty-state__content\\"><h3 data-ouia-component-type=\\"PF4/Title\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Title-2\\" class=\\"pf-c-title pf-m-md\\">EmptyState large</h3></div></div>"`;
75
+ exports[`EmptyState Main variant large 1`] = `
76
+ <DocumentFragment>
77
+ <div
78
+ class="pf-c-empty-state pf-m-lg"
79
+ >
80
+ <div
81
+ class="pf-c-empty-state__content"
82
+ >
83
+ <h3
84
+ class="pf-c-title pf-m-md"
85
+ data-ouia-component-id="OUIA-Generated-Title-2"
86
+ data-ouia-component-type="PF4/Title"
87
+ data-ouia-safe="true"
88
+ >
89
+ EmptyState large
90
+ </h3>
91
+ </div>
92
+ </div>
93
+ </DocumentFragment>
94
+ `;
8
95
 
9
- exports[`EmptyState Main variant small 1`] = `"<div class=\\"pf-c-empty-state pf-m-sm\\" data-testid=\\"empty-state-test-id\\"><div class=\\"pf-c-empty-state__content\\"><h3 data-ouia-component-type=\\"PF4/Title\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Title-3\\" class=\\"pf-c-title pf-m-md\\">EmptyState small</h3></div></div>"`;
96
+ exports[`EmptyState Main variant small 1`] = `
97
+ <DocumentFragment>
98
+ <div
99
+ class="pf-c-empty-state pf-m-sm"
100
+ >
101
+ <div
102
+ class="pf-c-empty-state__content"
103
+ >
104
+ <h3
105
+ class="pf-c-title pf-m-md"
106
+ data-ouia-component-id="OUIA-Generated-Title-3"
107
+ data-ouia-component-type="PF4/Title"
108
+ data-ouia-safe="true"
109
+ >
110
+ EmptyState small
111
+ </h3>
112
+ </div>
113
+ </div>
114
+ </DocumentFragment>
115
+ `;
10
116
 
11
- exports[`EmptyState Main variant xs 1`] = `"<div class=\\"pf-c-empty-state pf-m-xs\\" data-testid=\\"empty-state-test-id\\"><div class=\\"pf-c-empty-state__content\\"><h3 data-ouia-component-type=\\"PF4/Title\\" data-ouia-safe=\\"true\\" data-ouia-component-id=\\"OUIA-Generated-Title-4\\" class=\\"pf-c-title pf-m-md\\">EmptyState small</h3></div></div>"`;
117
+ exports[`EmptyState Main variant xs 1`] = `
118
+ <DocumentFragment>
119
+ <div
120
+ class="pf-c-empty-state pf-m-xs"
121
+ >
122
+ <div
123
+ class="pf-c-empty-state__content"
124
+ >
125
+ <h3
126
+ class="pf-c-title pf-m-md"
127
+ data-ouia-component-id="OUIA-Generated-Title-4"
128
+ data-ouia-component-type="PF4/Title"
129
+ data-ouia-safe="true"
130
+ >
131
+ EmptyState small
132
+ </h3>
133
+ </div>
134
+ </div>
135
+ </DocumentFragment>
136
+ `;
@@ -1,19 +1,21 @@
1
1
  import * as React from 'react';
2
+
2
3
  import { render, screen } from '@testing-library/react';
3
4
  import userEvent from '@testing-library/user-event';
5
+
4
6
  import { ExpandableSection } from '../ExpandableSection';
5
7
  import { ExpandableSectionToggle } from '../ExpandableSectionToggle';
6
8
 
7
9
  const props = {};
8
10
 
9
11
  test('ExpandableSection', () => {
10
- const view = render(<ExpandableSection {...props}>test </ExpandableSection>);
11
- expect(view.container).toMatchSnapshot();
12
+ const { asFragment } = render(<ExpandableSection {...props}>test </ExpandableSection>);
13
+ expect(asFragment()).toMatchSnapshot();
12
14
  });
13
15
 
14
16
  test('Renders ExpandableSection expanded', () => {
15
- const view = render(<ExpandableSection isExpanded> test </ExpandableSection>);
16
- expect(view.container).toMatchSnapshot();
17
+ const { asFragment } = render(<ExpandableSection isExpanded> test </ExpandableSection>);
18
+ expect(asFragment()).toMatchSnapshot();
17
19
  });
18
20
 
19
21
  test('ExpandableSection onToggle called', () => {
@@ -26,12 +28,12 @@ test('ExpandableSection onToggle called', () => {
26
28
  });
27
29
 
28
30
  test('Renders Uncontrolled ExpandableSection', () => {
29
- const view = render(<ExpandableSection toggleText="Show More"> test </ExpandableSection>);
30
- expect(view.container).toMatchSnapshot();
31
+ const { asFragment } = render(<ExpandableSection toggleText="Show More"> test </ExpandableSection>);
32
+ expect(asFragment()).toMatchSnapshot();
31
33
  });
32
34
 
33
35
  test('Detached ExpandableSection renders successfully', () => {
34
- const view = render(
36
+ const { asFragment } = render(
35
37
  <React.Fragment>
36
38
  <ExpandableSection {...props} isExpanded isDetached contentId="test">
37
39
  test
@@ -41,15 +43,24 @@ test('Detached ExpandableSection renders successfully', () => {
41
43
  </ExpandableSectionToggle>
42
44
  </React.Fragment>
43
45
  );
44
- expect(view.container).toMatchSnapshot();
46
+ expect(asFragment()).toMatchSnapshot();
45
47
  });
46
48
 
47
49
  test('Disclosure ExpandableSection', () => {
48
- const view = render(<ExpandableSection {...props} displaySize="large" isWidthLimited>test </ExpandableSection>);
49
- expect(view.container).toMatchSnapshot();
50
+ const { asFragment } = render(
51
+ <ExpandableSection {...props} displaySize="large" isWidthLimited>
52
+ test{' '}
53
+ </ExpandableSection>
54
+ );
55
+ expect(asFragment()).toMatchSnapshot();
50
56
  });
51
57
 
52
58
  test('Renders ExpandableSection indented', () => {
53
- const view = render(<ExpandableSection isExpanded isIndented> test </ExpandableSection>);
54
- expect(view.container).toMatchSnapshot();
59
+ const { asFragment } = render(
60
+ <ExpandableSection isExpanded isIndented>
61
+ {' '}
62
+ test{' '}
63
+ </ExpandableSection>
64
+ );
65
+ expect(asFragment()).toMatchSnapshot();
55
66
  });