@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.
- package/CHANGELOG.md +30 -0
- package/dist/esm/components/CodeBlock/CodeBlockCode.d.ts +4 -0
- package/dist/esm/components/CodeBlock/CodeBlockCode.d.ts.map +1 -1
- package/dist/esm/components/CodeBlock/CodeBlockCode.js +3 -3
- package/dist/esm/components/CodeBlock/CodeBlockCode.js.map +1 -1
- package/dist/esm/components/Divider/Divider.d.ts +10 -1
- package/dist/esm/components/Divider/Divider.d.ts.map +1 -1
- package/dist/esm/components/Divider/Divider.js +2 -2
- package/dist/esm/components/Divider/Divider.js.map +1 -1
- package/dist/js/components/CodeBlock/CodeBlockCode.d.ts +4 -0
- package/dist/js/components/CodeBlock/CodeBlockCode.d.ts.map +1 -1
- package/dist/js/components/CodeBlock/CodeBlockCode.js +3 -3
- package/dist/js/components/CodeBlock/CodeBlockCode.js.map +1 -1
- package/dist/js/components/Divider/Divider.d.ts +10 -1
- package/dist/js/components/Divider/Divider.d.ts.map +1 -1
- package/dist/js/components/Divider/Divider.js +2 -2
- package/dist/js/components/Divider/Divider.js.map +1 -1
- package/dist/umd/react-core.css +8 -0
- package/dist/umd/react-core.js +5 -5
- package/dist/umd/react-core.min.css +8 -0
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +6 -6
- package/src/components/AboutModal/__tests__/AboutModal.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBox.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxBrand.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxCloseButton.test.tsx +6 -6
- package/src/components/AboutModal/__tests__/AboutModalBoxContent.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxHeader.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalBoxHero.test.tsx +2 -2
- package/src/components/AboutModal/__tests__/AboutModalContainer.test.tsx +9 -7
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBox.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxBrand.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxCloseButton.test.tsx.snap +6 -6
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxContent.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHeader.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalBoxHero.test.tsx.snap +2 -2
- package/src/components/AboutModal/__tests__/__snapshots__/AboutModalContainer.test.tsx.snap +8 -4
- package/src/components/Accordion/__tests__/Accordion.test.tsx +16 -17
- package/src/components/Accordion/__tests__/Generated/AccordionContent.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/AccordionItem.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/AccordionToggle.test.tsx +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionContent.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionItem.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/Generated/__snapshots__/AccordionToggle.test.tsx.snap +2 -2
- package/src/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +10 -10
- package/src/components/ActionList/__tests__/ActionList.test.tsx +4 -4
- package/src/components/ActionList/__tests__/ActionListGroup.test.tsx +2 -2
- package/src/components/ActionList/__tests__/ActionListItem.test.tsx +2 -2
- package/src/components/ActionList/__tests__/__snapshots__/ActionList.test.tsx.snap +4 -4
- package/src/components/ActionList/__tests__/__snapshots__/ActionListGroup.test.tsx.snap +2 -2
- package/src/components/ActionList/__tests__/__snapshots__/ActionListItem.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Alert.test.tsx +28 -27
- package/src/components/Alert/__tests__/Generated/AlertActionCloseButton.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/AlertActionLink.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/AlertIcon.test.tsx +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionCloseButton.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertActionLink.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/Generated/__snapshots__/AlertIcon.test.tsx.snap +2 -2
- package/src/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +100 -110
- package/src/components/AlertGroup/__tests__/AlertGroup.test.tsx +6 -7
- package/src/components/AlertGroup/__tests__/Generated/AlertGroup.test.tsx +2 -2
- package/src/components/AlertGroup/__tests__/Generated/AlertGroupInline.test.tsx +2 -2
- package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroup.test.tsx.snap +1 -1
- package/src/components/AlertGroup/__tests__/Generated/__snapshots__/AlertGroupInline.test.tsx.snap +2 -2
- package/src/components/AlertGroup/__tests__/__snapshots__/AlertGroup.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +13 -17
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherContent.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherGroup.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherIcon.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherText.test.tsx +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherContent.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherGroup.test.tsx.snap +2 -3
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherIcon.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherSeparator.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/Generated/__snapshots__/ApplicationLauncherText.test.tsx.snap +2 -2
- package/src/components/ApplicationLauncher/__tests__/__snapshots__/ApplicationLauncher.test.tsx.snap +12 -12
- package/src/components/Avatar/__tests__/Avatar.test.tsx +2 -2
- package/src/components/Avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +2 -2
- package/src/components/BackToTop/__tests__/BackToTop.test.tsx +7 -7
- package/src/components/BackToTop/__tests__/__snapshots__/BackToTop.test.tsx.snap +6 -6
- package/src/components/Backdrop/__tests__/Backdrop.test.tsx +2 -2
- package/src/components/Backdrop/__tests__/__snapshots__/Backdrop.test.tsx.snap +2 -2
- package/src/components/BackgroundImage/__tests__/BackgroundImage.test.tsx +9 -9
- package/src/components/BackgroundImage/__tests__/__snapshots__/BackgroundImage.test.tsx.snap +4 -4
- package/src/components/Badge/__tests__/Badge.test.tsx +2 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.test.tsx.snap +6 -8
- package/src/components/Banner/__tests__/Banner.test.tsx +12 -14
- package/src/components/Banner/__tests__/__snapshots__/Banner.test.tsx.snap +17 -22
- package/src/components/Brand/__tests__/Brand.test.tsx +5 -4
- package/src/components/Brand/__tests__/__snapshots__/Brand.test.tsx.snap +2 -2
- package/src/components/Breadcrumb/__tests__/Breadcrumb.test.tsx +8 -8
- package/src/components/Breadcrumb/__tests__/BreadcrumbHeading.test.tsx +10 -10
- package/src/components/Breadcrumb/__tests__/BreadcrumbItem.test.tsx +16 -18
- package/src/components/Breadcrumb/__tests__/__snapshots__/Breadcrumb.test.tsx.snap +8 -8
- package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbHeading.test.tsx.snap +10 -10
- package/src/components/Breadcrumb/__tests__/__snapshots__/BreadcrumbItem.test.tsx.snap +16 -16
- package/src/components/Button/__tests__/Button.test.tsx +29 -30
- package/src/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +50 -58
- package/src/components/Card/__tests__/Card.test.tsx +24 -27
- package/src/components/Card/__tests__/CardBody.test.tsx +5 -8
- package/src/components/Card/__tests__/CardExpandableContent.test.tsx +2 -2
- package/src/components/Card/__tests__/CardFooter.test.tsx +3 -6
- package/src/components/Card/__tests__/CardHeadMain.test.tsx +3 -6
- package/src/components/Card/__tests__/CardHeader.test.tsx +2 -2
- package/src/components/Card/__tests__/CardHeaderMain.test.tsx +3 -6
- package/src/components/Card/__tests__/CardTitle.test.tsx +3 -6
- package/src/components/Card/__tests__/Generated/CardActions.test.tsx +2 -2
- package/src/components/Card/__tests__/Generated/__snapshots__/CardActions.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/Card.test.tsx.snap +24 -4
- package/src/components/Card/__tests__/__snapshots__/CardBody.test.tsx.snap +4 -4
- package/src/components/Card/__tests__/__snapshots__/CardExpandableContent.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardFooter.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardHeadMain.test.tsx.snap +9 -1
- package/src/components/Card/__tests__/__snapshots__/CardHeader.test.tsx.snap +2 -2
- package/src/components/Card/__tests__/__snapshots__/CardHeaderMain.test.tsx.snap +9 -1
- package/src/components/Card/__tests__/__snapshots__/CardTitle.test.tsx.snap +9 -1
- package/src/components/Checkbox/__tests__/Checkbox.test.tsx +24 -21
- package/src/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +204 -9
- package/src/components/Chip/__tests__/Chip.test.tsx +8 -10
- package/src/components/Chip/__tests__/__snapshots__/Chip.test.tsx.snap +8 -8
- package/src/components/ChipGroup/__tests__/ChipGroup.test.tsx +8 -9
- package/src/components/ChipGroup/__tests__/__snapshots__/ChipGroup.test.tsx.snap +8 -9
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyButton.test.tsx +5 -4
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyExpanded.test.tsx +4 -4
- package/src/components/ClipboardCopy/__tests__/ClipboardCopyToggle.test.tsx +7 -5
- package/src/components/ClipboardCopy/__tests__/Generated/ClipboardCopy.test.tsx +2 -2
- package/src/components/ClipboardCopy/__tests__/Generated/__snapshots__/ClipboardCopy.test.tsx.snap +2 -2
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +2 -2
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyExpanded.test.tsx.snap +4 -4
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyToggle.test.tsx.snap +2 -2
- package/src/components/CodeBlock/CodeBlockCode.tsx +8 -2
- package/src/components/CodeBlock/__tests__/CodeBlock.test.tsx +8 -8
- package/src/components/CodeBlock/__tests__/__snapshots__/CodeBlock.test.tsx.snap +8 -8
- package/src/components/ContextSelector/__tests__/ContextSelector.test.tsx +4 -8
- package/src/components/ContextSelector/__tests__/ContextSelectorFooter.test.tsx +2 -2
- package/src/components/ContextSelector/__tests__/ContextSelectorItem.test.tsx +6 -4
- package/src/components/ContextSelector/__tests__/ContextSelectorMenuList.test.tsx +4 -4
- package/src/components/ContextSelector/__tests__/ContextSelectorToggle.test.tsx +12 -20
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelector.test.tsx.snap +178 -2
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorFooter.test.tsx.snap +2 -2
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorItem.test.tsx.snap +4 -4
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorMenuList.test.tsx.snap +4 -4
- package/src/components/ContextSelector/__tests__/__snapshots__/ContextSelectorToggle.test.tsx.snap +155 -5
- package/src/components/DataList/__tests__/DataList.test.tsx +44 -40
- package/src/components/DataList/__tests__/Generated/DataListAction.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListCell.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListCheck.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListContent.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListItem.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListItemCells.test.tsx +4 -2
- package/src/components/DataList/__tests__/Generated/DataListItemRow.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/DataListToggle.test.tsx +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListAction.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCell.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListCheck.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListContent.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItem.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemCells.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListItemRow.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/Generated/__snapshots__/DataListToggle.test.tsx.snap +2 -2
- package/src/components/DataList/__tests__/__snapshots__/DataList.test.tsx.snap +47 -39
- package/src/components/DataList/examples/DataListExpandable.tsx +0 -23
- package/src/components/DatePicker/__tests__/DatePicker.test.tsx +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +2 -3
- package/src/components/DescriptionList/__tests__/DescriptionList.test.tsx +34 -34
- package/src/components/DescriptionList/__tests__/__snapshots__/DescriptionList.test.tsx.snap +34 -34
- package/src/components/Divider/Divider.tsx +12 -1
- package/src/components/Divider/__tests__/Divider.test.tsx +14 -10
- package/src/components/Divider/__tests__/__snapshots__/Divider.test.tsx.snap +8 -8
- package/src/components/Divider/examples/Divider.md +6 -0
- package/src/components/Divider/examples/DividerOrientationVariousBreakpoints.tsx +19 -0
- package/src/components/Divider/examples/DividerVerticalFlex.tsx +5 -1
- package/src/components/Divider/examples/DividerVerticalFlexInsetMedium.tsx +6 -1
- package/src/components/Divider/examples/DividerVerticalFlexInsetVariousBreakpoints.tsx +4 -2
- package/src/components/DragDrop/__tests__/DragDrop.test.tsx +4 -8
- package/src/components/DragDrop/__tests__/__snapshots__/DragDrop.test.tsx.snap +4 -4
- package/src/components/Drawer/__tests__/Drawer.test.tsx +15 -9
- package/src/components/Drawer/__tests__/Generated/DrawerContent.test.tsx +4 -2
- package/src/components/Drawer/__tests__/Generated/DrawerPanelContent.test.tsx +2 -2
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerContent.test.tsx.snap +13 -87
- package/src/components/Drawer/__tests__/Generated/__snapshots__/DrawerPanelContent.test.tsx.snap +2 -2
- package/src/components/Drawer/__tests__/__snapshots__/Drawer.test.tsx.snap +16 -16
- package/src/components/Dropdown/__tests__/Dropdown.test.tsx +36 -34
- package/src/components/Dropdown/__tests__/DropdownGroup.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/DropdownToggle.test.tsx +27 -30
- package/src/components/Dropdown/__tests__/DropdownToggleAction.test.tsx +9 -7
- package/src/components/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +18 -14
- package/src/components/Dropdown/__tests__/Generated/DropdownItem.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/KebabToggle.test.tsx +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/InternalDropdownItem.test.tsx +23 -21
- package/src/components/Dropdown/__tests__/Toggle.test.tsx +4 -4
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +820 -15
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +2 -2
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +208 -17
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +6 -6
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +141 -7
- package/src/components/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +157 -10
- package/src/components/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +4 -4
- package/src/components/DualListSelector/__tests__/DualListSelector.test.tsx +16 -12
- package/src/components/DualListSelector/__tests__/__snapshots__/DualListSelector.test.tsx.snap +12 -12
- package/src/components/EmptyState/__tests__/EmptyState.test.tsx +25 -24
- package/src/components/EmptyState/__tests__/Generated/EmptyStateBody.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/EmptyStateIcon.test.tsx +5 -5
- package/src/components/EmptyState/__tests__/Generated/EmptyStatePrimary.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/EmptyStateSecondaryActions.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateBody.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +4 -4
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStatePrimary.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateSecondaryActions.test.tsx.snap +2 -2
- package/src/components/EmptyState/__tests__/__snapshots__/EmptyState.test.tsx.snap +130 -5
- package/src/components/ExpandableSection/__tests__/ExpandableSection.test.tsx +23 -12
- package/src/components/ExpandableSection/__tests__/__snapshots__/ExpandableSection.test.tsx.snap +12 -12
- package/src/components/FileUpload/__tests__/FileUpload.test.tsx +2 -2
- package/src/components/FileUpload/__tests__/FileUploadField.test.tsx +2 -2
- package/src/components/FileUpload/__tests__/__snapshots__/FileUpload.test.tsx.snap +2 -2
- package/src/components/FileUpload/__tests__/__snapshots__/FileUploadField.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/ActionGroup.test.tsx +4 -4
- package/src/components/Form/__tests__/Form.test.tsx +6 -6
- package/src/components/Form/__tests__/FormAlert.test.tsx +2 -4
- package/src/components/Form/__tests__/FormFieldGroup.test.tsx +12 -15
- package/src/components/Form/__tests__/FormGroup.test.tsx +2 -13
- package/src/components/Form/__tests__/FormHelperText.test.tsx +8 -9
- package/src/components/Form/__tests__/FormSection.test.tsx +5 -5
- package/src/components/Form/__tests__/__snapshots__/ActionGroup.test.tsx.snap +4 -4
- package/src/components/Form/__tests__/__snapshots__/Form.test.tsx.snap +6 -6
- package/src/components/Form/__tests__/__snapshots__/FormAlert.test.tsx.snap +2 -2
- package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +4 -4
- package/src/components/Form/__tests__/__snapshots__/FormHelperText.test.tsx.snap +55 -4
- package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +5 -7
- package/src/components/FormSelect/__tests__/FormSelect.test.tsx +25 -26
- package/src/components/FormSelect/__tests__/Generated/FormSelectOption.test.tsx +2 -2
- package/src/components/FormSelect/__tests__/Generated/FormSelectOptionGroup.test.tsx +2 -2
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOption.test.tsx.snap +2 -2
- package/src/components/FormSelect/__tests__/Generated/__snapshots__/FormSelectOptionGroup.test.tsx.snap +2 -2
- package/src/components/FormSelect/__tests__/__snapshots__/FormSelect.test.tsx.snap +256 -9
- package/src/components/HelperText/__tests__/HelperText.test.tsx +13 -13
- package/src/components/HelperText/__tests__/__snapshots__/HelperText.test.tsx.snap +25 -30
- package/src/components/Hint/__tests__/Hint.test.tsx +2 -2
- package/src/components/Hint/__tests__/__snapshots__/Hint.test.tsx.snap +2 -2
- package/src/components/InputGroup/__tests__/InputGroup.test.tsx +2 -2
- package/src/components/InputGroup/__tests__/InputGroupText.test.tsx +0 -1
- package/src/components/JumpLinks/__tests__/JumpLinks.test.tsx +10 -10
- package/src/components/JumpLinks/__tests__/__snapshots__/JumpLinks.test.tsx.snap +11 -13
- package/src/components/Label/__tests__/Label.test.tsx +33 -66
- package/src/components/Label/__tests__/__snapshots__/Label.test.tsx.snap +416 -26
- package/src/components/List/__tests__/Generated/ListItem.test.tsx +2 -2
- package/src/components/List/__tests__/Generated/__snapshots__/ListItem.test.tsx.snap +2 -2
- package/src/components/List/__tests__/List.test.tsx +0 -1
- package/src/components/LoginPage/__tests__/Generated/LoginFooter.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/Generated/LoginHeader.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginFooter.test.tsx.snap +2 -2
- package/src/components/LoginPage/__tests__/Generated/__snapshots__/LoginHeader.test.tsx.snap +2 -2
- package/src/components/LoginPage/__tests__/Login.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/LoginFooterItem.test.tsx +1 -1
- package/src/components/LoginPage/__tests__/LoginForm.test.tsx +9 -7
- package/src/components/LoginPage/__tests__/LoginMainBody.test.tsx +5 -5
- package/src/components/LoginPage/__tests__/LoginMainFooter.test.tsx +5 -5
- package/src/components/LoginPage/__tests__/LoginMainFooterBandItem.test.tsx +1 -1
- package/src/components/LoginPage/__tests__/LoginMainFooterLinksItem.test.tsx +7 -7
- package/src/components/LoginPage/__tests__/LoginMainHeader.test.tsx +7 -7
- package/src/components/LoginPage/__tests__/LoginPage.test.tsx +2 -2
- package/src/components/LoginPage/__tests__/__snapshots__/Login.test.tsx.snap +3 -4
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +402 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainBody.test.tsx.snap +14 -2
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooter.test.tsx.snap +14 -2
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainFooterLinksItem.test.tsx.snap +43 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginMainHeader.test.tsx.snap +35 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginPage.test.tsx.snap +2 -3
- package/src/components/Masthead/__tests__/Masthead.test.tsx +30 -30
- package/src/components/Masthead/__tests__/__snapshots__/Masthead.test.tsx.snap +44 -44
- package/src/components/Menu/__tests__/Menu.test.tsx +1 -1
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +18 -18
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +18 -18
- package/src/components/Modal/__tests__/Modal.test.tsx +5 -6
- package/src/components/Modal/__tests__/ModalBox.test.tsx +12 -12
- package/src/components/Modal/__tests__/ModalBoxBody.test.tsx +2 -2
- package/src/components/Modal/__tests__/ModalBoxDescription.test.tsx +2 -6
- package/src/components/Modal/__tests__/ModalBoxFooter.test.tsx +4 -2
- package/src/components/Modal/__tests__/ModalBoxHeader.test.tsx +4 -4
- package/src/components/Modal/__tests__/ModalBoxTitle.test.tsx +13 -13
- package/src/components/Modal/__tests__/ModalContent.test.tsx +34 -22
- package/src/components/Modal/__tests__/__snapshots__/ModalBox.test.tsx.snap +12 -12
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxBody.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxDescription.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxFooter.test.tsx.snap +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxHeader.test.tsx.snap +4 -4
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +12 -13
- package/src/components/Modal/__tests__/__snapshots__/ModalContent.test.tsx.snap +16 -23
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadTitleIcon.test.tsx +2 -2
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadTitleIcon.test.tsx.snap +0 -2
- package/src/components/Nav/__tests__/Generated/NavExpandable.test.tsx +3 -3
- package/src/components/Nav/__tests__/Generated/NavGroup.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/NavItem.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/NavList.test.tsx +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavExpandable.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavGroup.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavItem.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Generated/__snapshots__/NavList.test.tsx.snap +2 -2
- package/src/components/Nav/__tests__/Nav.test.tsx +1 -1
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +10 -6
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +12 -14
- package/src/components/NotificationDrawer/__tests__/NotificationDrawer.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerBody.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroup.test.tsx +13 -3
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerGroupList.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerHeader.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerList.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItem.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemBody.test.tsx +1 -1
- package/src/components/NotificationDrawer/__tests__/NotificationDrawerListItemHeader.test.tsx +10 -4
- package/src/components/NumberInput/__tests__/NumberInput.test.tsx +20 -20
- package/src/components/NumberInput/__tests__/__snapshots__/NumberInput.test.tsx.snap +20 -20
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuItemGroup.test.tsx +3 -3
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuSeparator.test.tsx +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggle.test.tsx +2 -4
- package/src/components/OptionsMenu/__tests__/Generated/OptionsMenuToggleWithText.test.tsx +2 -6
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItem.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuItemGroup.test.tsx.snap +3 -5
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuSeparator.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggle.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/Generated/__snapshots__/OptionsMenuToggleWithText.test.tsx.snap +2 -2
- package/src/components/OptionsMenu/__tests__/OptionsMenu.test.tsx +16 -16
- package/src/components/OptionsMenu/__tests__/__snapshots__/OptionsMenu.test.tsx.snap +16 -16
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuControl.test.tsx +4 -2
- package/src/components/OverflowMenu/__tests__/Generated/OverflowMenuDropdownItem.test.tsx +2 -2
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuControl.test.tsx.snap +3 -5
- package/src/components/OverflowMenu/__tests__/Generated/__snapshots__/OverflowMenuDropdownItem.test.tsx.snap +2 -2
- package/src/components/OverflowMenu/__tests__/OverflowMenu.test.tsx +2 -3
- package/src/components/OverflowMenu/__tests__/OverflowMenuControl.test.tsx +0 -1
- package/src/components/OverflowMenu/__tests__/OverflowMenuGroup.test.tsx +0 -1
- package/src/components/OverflowMenu/__tests__/OverflowMenuItem.test.tsx +0 -1
- package/src/components/Page/__tests__/Generated/PageHeaderTools.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/PageHeaderToolsGroup.test.tsx +2 -4
- package/src/components/Page/__tests__/Generated/PageHeaderToolsItem.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/PageSidebar.test.tsx +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderTools.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsGroup.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageHeaderToolsItem.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Generated/__snapshots__/PageSidebar.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/Page.test.tsx +0 -1
- package/src/components/Page/__tests__/PageBreadcrumb.test.tsx +14 -14
- package/src/components/Page/__tests__/PageGroup.test.tsx +12 -12
- package/src/components/Page/__tests__/PageHeader.test.tsx +2 -2
- package/src/components/Page/__tests__/PageNavigation.test.tsx +14 -14
- package/src/components/Page/__tests__/PageSection.test.tsx +30 -30
- package/src/components/Page/__tests__/__snapshots__/PageBreadcrumb.test.tsx.snap +14 -14
- package/src/components/Page/__tests__/__snapshots__/PageGroup.test.tsx.snap +12 -12
- package/src/components/Page/__tests__/__snapshots__/PageHeader.test.tsx.snap +2 -2
- package/src/components/Page/__tests__/__snapshots__/PageNavigation.test.tsx.snap +14 -14
- package/src/components/Page/__tests__/__snapshots__/PageSection.test.tsx.snap +30 -30
- package/src/components/Page/examples/Page.md +17 -7
- package/src/components/Pagination/__tests__/Generated/Navigation.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/OptionsToggle.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/PaginationOptionsMenu.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/ToggleTemplate.test.tsx +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/Navigation.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/OptionsToggle.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +2 -2
- package/src/components/Pagination/__tests__/Generated/__snapshots__/ToggleTemplate.test.tsx.snap +5 -10
- package/src/components/Pagination/__tests__/Pagination.test.tsx +0 -1
- package/src/components/Panel/__tests__/Panel.test.tsx +18 -18
- package/src/components/Panel/__tests__/__snapshots__/Panel.test.tsx.snap +18 -18
- package/src/components/Popover/__tests__/Generated/PopoverArrow.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverBody.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverCloseButton.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverContent.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverDialog.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverFooter.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/PopoverHeader.test.tsx +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverArrow.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverBody.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverCloseButton.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverContent.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverDialog.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverFooter.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverHeader.test.tsx.snap +2 -2
- package/src/components/Popover/__tests__/Popover.test.tsx +8 -8
- package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +8 -8
- package/src/components/Progress/__tests__/Generated/ProgressBar.test.tsx +2 -2
- package/src/components/Progress/__tests__/Generated/ProgressContainer.test.tsx +2 -3
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressBar.test.tsx.snap +2 -2
- package/src/components/Progress/__tests__/Generated/__snapshots__/ProgressContainer.test.tsx.snap +2 -2
- package/src/components/Progress/__tests__/Progress.test.tsx +27 -27
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +40 -40
- package/src/components/ProgressStepper/__tests__/ProgressStepper.test.tsx +24 -24
- package/src/components/ProgressStepper/__tests__/__snapshots__/ProgressStepper.test.tsx.snap +40 -46
- package/src/components/Radio/__tests__/Radio.test.tsx +19 -8
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +5 -6
- package/src/components/Select/__tests__/Select.test.tsx +1 -2
- package/src/components/Select/__tests__/SelectGroup.test.tsx +12 -5
- package/src/components/Select/__tests__/SelectOption.test.tsx +110 -33
- package/src/components/Select/__tests__/__snapshots__/SelectGroup.test.tsx.snap +22 -1
- package/src/components/Select/__tests__/__snapshots__/SelectOption.test.tsx.snap +223 -10
- package/src/components/SimpleList/__tests__/Generated/SimpleListGroup.test.tsx +2 -2
- package/src/components/SimpleList/__tests__/Generated/SimpleListItem.test.tsx +2 -2
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListGroup.test.tsx.snap +2 -2
- package/src/components/SimpleList/__tests__/Generated/__snapshots__/SimpleListItem.test.tsx.snap +2 -2
- package/src/components/SimpleList/__tests__/SimpleList.test.tsx +2 -3
- package/src/components/Skeleton/__tests__/Skeleton.test.tsx +14 -12
- package/src/components/Skeleton/__tests__/__snapshots__/Skeleton.test.tsx.snap +42 -42
- package/src/components/SkipToContent/__tests__/SkipToContent.test.tsx +4 -4
- package/src/components/SkipToContent/__tests__/__snapshots__/SkipToContent.test.tsx.snap +4 -4
- package/src/components/Slider/_tests_/Slider.test.tsx +22 -18
- package/src/components/Slider/_tests_/__snapshots__/Slider.test.tsx.snap +20 -22
- package/src/components/Spinner/__tests__/Spinner.test.tsx +10 -10
- package/src/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +10 -10
- package/src/components/Switch/__tests__/Switch.test.tsx +18 -9
- package/src/components/Tabs/__tests__/Generated/TabContent.test.tsx +2 -2
- package/src/components/Tabs/__tests__/Generated/__snapshots__/TabContent.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/Tab.test.tsx +3 -3
- package/src/components/Tabs/__tests__/TabButton.test.tsx +2 -2
- package/src/components/Tabs/__tests__/Tabs.test.tsx +99 -42
- package/src/components/Tabs/__tests__/__snapshots__/Tab.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/TabButton.test.tsx.snap +2 -2
- package/src/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +29 -29
- package/src/components/Text/__tests__/Generated/TextContent.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/TextList.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/TextListItem.test.tsx +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextContent.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextList.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Generated/__snapshots__/TextListItem.test.tsx.snap +2 -2
- package/src/components/Text/__tests__/Text.test.tsx +2 -2
- package/src/components/Text/__tests__/__snapshots__/Text.test.tsx.snap +3 -4
- package/src/components/TextArea/__tests__/TextArea.test.tsx +10 -7
- package/src/components/TextInput/__tests__/TextInput.test.tsx +11 -8
- package/src/components/TextInputGroup/__tests__/TextInputGroupMain.test.tsx +3 -3
- package/src/components/Tile/__tests__/Tile.test.tsx +14 -14
- package/src/components/Tile/__tests__/__snapshots__/Tile.test.tsx.snap +14 -14
- package/src/components/TimePicker/__tests__/TimePicker.test.tsx +10 -5
- package/src/components/Title/__tests__/Title.test.tsx +0 -3
- package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +12 -4
- package/src/components/ToggleGroup/__tests__/ToggleGroupItemElement.test.tsx +10 -6
- package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroupItemElement.test.tsx.snap +6 -6
- package/src/components/Toolbar/__tests__/Generated/ToolbarChipGroupContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarExpandableContent.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/ToolbarGroup.test.tsx +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarChipGroupContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarExpandableContent.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarGroup.test.tsx.snap +2 -2
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +7 -9
- package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +3 -3
- package/src/components/Toolbar/__tests__/ToolbarToggleGroup.test.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +501 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.test.tsx.snap +10 -1
- package/src/components/Tooltip/__tests__/Generated/TooltipArrow.test.tsx +2 -2
- package/src/components/Tooltip/__tests__/Generated/TooltipContent.test.tsx +4 -2
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipArrow.test.tsx.snap +2 -2
- package/src/components/Tooltip/__tests__/Generated/__snapshots__/TooltipContent.test.tsx.snap +2 -2
- package/src/components/Tooltip/__tests__/Tooltip.test.tsx +2 -2
- package/src/components/Tooltip/__tests__/__snapshots__/Tooltip.test.tsx.snap +2 -2
- package/src/components/TreeView/__tests__/TreeView.test.tsx +46 -34
- package/src/components/TreeView/__tests__/__snapshots__/TreeView.test.tsx.snap +22 -22
- package/src/components/Truncate/__tests__/Truncate.test.tsx +18 -6
- package/src/components/Truncate/__tests__/__snapshots__/Truncate.test.tsx.snap +7 -8
- package/src/components/Wizard/__tests__/Generated/WizardBody.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardFooter.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardFooterInternal.test.tsx +3 -3
- package/src/components/Wizard/__tests__/Generated/WizardHeader.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardNav.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardNavItem.test.tsx +2 -2
- package/src/components/Wizard/__tests__/Generated/WizardToggle.test.tsx +4 -4
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardBody.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooter.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardFooterInternal.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardHeader.test.tsx.snap +7 -7
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNav.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardNavItem.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Generated/__snapshots__/WizardToggle.test.tsx.snap +2 -2
- package/src/components/Wizard/__tests__/Wizard.test.tsx +1 -4
- package/src/demos/CardDemos.md +108 -21
- package/src/demos/DateTimePicker.md +1 -103
- package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +106 -0
- package/src/helpers/FocusTrap/__tests__/Generated/FocusTrap.test.tsx +2 -2
- package/src/helpers/FocusTrap/__tests__/Generated/__snapshots__/FocusTrap.test.tsx.snap +2 -2
- package/src/helpers/GenerateId/__tests__/GenerateId.test.tsx +2 -2
- package/src/helpers/GenerateId/__tests__/__snapshots__/GenerateId.test.tsx.snap +2 -2
- package/src/helpers/Popper/__tests__/Generated/FindRefWrapper.test.tsx +2 -2
- package/src/helpers/Popper/__tests__/Generated/__snapshots__/FindRefWrapper.test.tsx.snap +2 -2
- package/src/helpers/__tests__/util.test.ts +2 -2
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -4
- package/src/layouts/Flex/__tests__/Flex.test.tsx +0 -1
- package/src/layouts/Flex/__tests__/Generated/FlexItem.test.tsx +2 -2
- package/src/layouts/Flex/__tests__/Generated/__snapshots__/FlexItem.test.tsx.snap +2 -2
- package/src/layouts/Gallery/__tests__/Gallery.test.tsx +8 -8
- package/src/layouts/Gallery/__tests__/Generated/GalleryItem.test.tsx +2 -2
- package/src/layouts/Gallery/__tests__/Generated/__snapshots__/GalleryItem.test.tsx.snap +2 -2
- package/src/layouts/Gallery/__tests__/__snapshots__/Gallery.test.tsx.snap +6 -6
- package/src/layouts/Grid/__tests__/Grid.test.tsx +6 -6
- package/src/layouts/Grid/__tests__/GridItem.test.tsx +12 -12
- package/src/layouts/Grid/__tests__/__snapshots__/Grid.test.tsx.snap +4 -4
- package/src/layouts/Grid/__tests__/__snapshots__/GridItem.test.tsx.snap +36 -36
- package/src/layouts/Level/__tests__/Generated/LevelItem.test.tsx +2 -2
- package/src/layouts/Level/__tests__/Generated/__snapshots__/LevelItem.test.tsx.snap +2 -2
- package/src/layouts/Level/__tests__/Level.test.tsx +4 -4
- package/src/layouts/Level/__tests__/__snapshots__/Level.test.tsx.snap +4 -4
- package/src/layouts/Split/__tests__/Generated/SplitItem.test.tsx +2 -2
- package/src/layouts/Split/__tests__/Generated/__snapshots__/SplitItem.test.tsx.snap +2 -2
- package/src/layouts/Split/__tests__/Split.test.tsx +8 -8
- package/src/layouts/Split/__tests__/__snapshots__/Split.test.tsx.snap +8 -8
- package/src/layouts/Stack/__tests__/Generated/StackItem.test.tsx +2 -2
- package/src/layouts/Stack/__tests__/Generated/__snapshots__/StackItem.test.tsx.snap +2 -2
- package/src/layouts/Stack/__tests__/Stack.test.tsx +6 -6
- package/src/layouts/Stack/__tests__/__snapshots__/Stack.test.tsx.snap +6 -6
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
6
|
import { TextArea, TextAreaBase } from '../TextArea';
|
|
8
7
|
import { ValidatedOptions } from '../../../helpers/constants';
|
|
@@ -14,7 +13,7 @@ const props = {
|
|
|
14
13
|
|
|
15
14
|
describe('TextArea', () => {
|
|
16
15
|
test('textarea input passes value and event to onChange handler', () => {
|
|
17
|
-
render(<TextAreaBase {...props} value=
|
|
16
|
+
render(<TextAreaBase {...props} value="" aria-label="test textarea" />);
|
|
18
17
|
|
|
19
18
|
userEvent.type(screen.getByLabelText('test textarea'), 'a');
|
|
20
19
|
expect(props.onChange).toHaveBeenCalledWith('a', expect.any(Object));
|
|
@@ -56,12 +55,16 @@ describe('TextArea', () => {
|
|
|
56
55
|
});
|
|
57
56
|
|
|
58
57
|
test('validated text area error', () => {
|
|
59
|
-
const { asFragment } = render(
|
|
58
|
+
const { asFragment } = render(
|
|
59
|
+
<TextArea {...props} required validated={ValidatedOptions.error} aria-label="validated textarea" />
|
|
60
|
+
);
|
|
60
61
|
expect(asFragment()).toMatchSnapshot();
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
test('vertically resizable text area', () => {
|
|
64
|
-
const { asFragment } = render(
|
|
65
|
+
const { asFragment } = render(
|
|
66
|
+
<TextArea resizeOrientation="vertical" {...props} aria-label="vertical resize textarea" />
|
|
67
|
+
);
|
|
65
68
|
expect(asFragment()).toMatchSnapshot();
|
|
66
69
|
});
|
|
67
70
|
|
|
@@ -84,7 +87,7 @@ describe('TextArea', () => {
|
|
|
84
87
|
|
|
85
88
|
render(<TextArea {...props} />);
|
|
86
89
|
|
|
87
|
-
expect(myMock).
|
|
90
|
+
expect(myMock).toHaveBeenCalled();
|
|
88
91
|
});
|
|
89
92
|
|
|
90
93
|
test('should not throw console error when id is given but no aria-label', () => {
|
|
@@ -93,7 +96,7 @@ describe('TextArea', () => {
|
|
|
93
96
|
|
|
94
97
|
render(<TextArea {...props} id="5" />);
|
|
95
98
|
|
|
96
|
-
expect(myMock).not.
|
|
99
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
97
100
|
});
|
|
98
101
|
|
|
99
102
|
test('should not throw console error when aria-label is given but no id', () => {
|
|
@@ -102,6 +105,6 @@ describe('TextArea', () => {
|
|
|
102
105
|
|
|
103
106
|
render(<TextArea {...props} aria-label="test textarea" />);
|
|
104
107
|
|
|
105
|
-
expect(myMock).not.
|
|
108
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
106
109
|
});
|
|
107
110
|
});
|
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
6
|
import { TextInput, TextInputBase } from '../TextInput';
|
|
8
7
|
import { ValidatedOptions } from '../../../helpers/constants';
|
|
@@ -14,7 +13,7 @@ const props = {
|
|
|
14
13
|
|
|
15
14
|
describe('TextInput', () => {
|
|
16
15
|
test('input passes value and event to onChange handler', () => {
|
|
17
|
-
render(<TextInputBase {...props} value=
|
|
16
|
+
render(<TextInputBase {...props} value="" aria-label="test input" />);
|
|
18
17
|
|
|
19
18
|
userEvent.type(screen.getByLabelText('test input'), 'a');
|
|
20
19
|
expect(props.onChange).toHaveBeenCalledWith('a', expect.any(Object));
|
|
@@ -36,7 +35,9 @@ describe('TextInput', () => {
|
|
|
36
35
|
});
|
|
37
36
|
|
|
38
37
|
test('invalid text input', () => {
|
|
39
|
-
const { asFragment } = render(
|
|
38
|
+
const { asFragment } = render(
|
|
39
|
+
<TextInput {...props} required validated={'error'} aria-label="invalid text input" />
|
|
40
|
+
);
|
|
40
41
|
expect(asFragment()).toMatchSnapshot();
|
|
41
42
|
});
|
|
42
43
|
|
|
@@ -51,7 +52,9 @@ describe('TextInput', () => {
|
|
|
51
52
|
});
|
|
52
53
|
|
|
53
54
|
test('validated text input error', () => {
|
|
54
|
-
const { asFragment } = render(
|
|
55
|
+
const { asFragment } = render(
|
|
56
|
+
<TextInput {...props} required validated={ValidatedOptions.error} aria-label="validated text input" />
|
|
57
|
+
);
|
|
55
58
|
expect(asFragment()).toMatchSnapshot();
|
|
56
59
|
});
|
|
57
60
|
|
|
@@ -61,7 +64,7 @@ describe('TextInput', () => {
|
|
|
61
64
|
|
|
62
65
|
render(<TextInput {...props} />);
|
|
63
66
|
|
|
64
|
-
expect(myMock).
|
|
67
|
+
expect(myMock).toHaveBeenCalled();
|
|
65
68
|
});
|
|
66
69
|
|
|
67
70
|
test('should not throw console error when id is given but no aria-label or aria-labelledby', () => {
|
|
@@ -70,7 +73,7 @@ describe('TextInput', () => {
|
|
|
70
73
|
|
|
71
74
|
render(<TextInput {...props} id="5" />);
|
|
72
75
|
|
|
73
|
-
expect(myMock).not.
|
|
76
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
74
77
|
});
|
|
75
78
|
|
|
76
79
|
test('should not throw console error when aria-label is given but no id or aria-labelledby', () => {
|
|
@@ -79,7 +82,7 @@ describe('TextInput', () => {
|
|
|
79
82
|
|
|
80
83
|
render(<TextInput {...props} aria-label="test input" />);
|
|
81
84
|
|
|
82
|
-
expect(myMock).not.
|
|
85
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
83
86
|
});
|
|
84
87
|
|
|
85
88
|
test('should not throw console error when aria-labelledby is given but no id or aria-label', () => {
|
|
@@ -88,6 +91,6 @@ describe('TextInput', () => {
|
|
|
88
91
|
|
|
89
92
|
render(<TextInput {...props} aria-labelledby="test input" />);
|
|
90
93
|
|
|
91
|
-
expect(myMock).not.
|
|
94
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
92
95
|
});
|
|
93
96
|
});
|
|
@@ -9,11 +9,11 @@ import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
|
9
9
|
|
|
10
10
|
describe('TextInputGroupMain', () => {
|
|
11
11
|
it('renders without children', () => {
|
|
12
|
-
render(<TextInputGroupMain data-testid=
|
|
13
|
-
|
|
12
|
+
render(<TextInputGroupMain data-testid="TextInputGroupMain" />);
|
|
13
|
+
|
|
14
14
|
expect(screen.getByTestId('TextInputGroupMain')).toBeVisible();
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
it('renders children', () => {
|
|
18
18
|
render(<TextInputGroupMain>Test</TextInputGroupMain>);
|
|
19
19
|
|
|
@@ -5,37 +5,37 @@ import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
|
5
5
|
|
|
6
6
|
describe('Tile', () => {
|
|
7
7
|
test('basic', () => {
|
|
8
|
-
const
|
|
9
|
-
expect(
|
|
8
|
+
const { asFragment } = render(<Tile title="test" />);
|
|
9
|
+
expect(asFragment()).toMatchSnapshot();
|
|
10
10
|
});
|
|
11
11
|
|
|
12
12
|
test('renders selected', () => {
|
|
13
|
-
const
|
|
14
|
-
expect(
|
|
13
|
+
const { asFragment } = render(<Tile title="test" isSelected />);
|
|
14
|
+
expect(asFragment()).toMatchSnapshot();
|
|
15
15
|
});
|
|
16
16
|
|
|
17
17
|
test('renders disabled', () => {
|
|
18
|
-
const
|
|
19
|
-
expect(
|
|
18
|
+
const { asFragment } = render(<Tile title="test" isDisabled />);
|
|
19
|
+
expect(asFragment()).toMatchSnapshot();
|
|
20
20
|
});
|
|
21
21
|
|
|
22
22
|
test('renders with subtext', () => {
|
|
23
|
-
const
|
|
24
|
-
expect(
|
|
23
|
+
const { asFragment } = render(<Tile title="test">test subtext</Tile>);
|
|
24
|
+
expect(asFragment()).toMatchSnapshot();
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
test('renders with icon', () => {
|
|
28
|
-
const
|
|
29
|
-
expect(
|
|
28
|
+
const { asFragment } = render(<Tile title="test" icon={<PlusIcon />} />);
|
|
29
|
+
expect(asFragment()).toMatchSnapshot();
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
test('renders with stacked icon', () => {
|
|
33
|
-
const
|
|
34
|
-
expect(
|
|
33
|
+
const { asFragment } = render(<Tile title="test" icon={<PlusIcon />} isStacked />);
|
|
34
|
+
expect(asFragment()).toMatchSnapshot();
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
test('renders with stacked large icon', () => {
|
|
38
|
-
const
|
|
39
|
-
expect(
|
|
38
|
+
const { asFragment } = render(<Tile title="test" icon={<PlusIcon />} isStacked isDisplayLarge />);
|
|
39
|
+
expect(asFragment()).toMatchSnapshot();
|
|
40
40
|
});
|
|
41
41
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Tile basic 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-tile"
|
|
7
7
|
role="option"
|
|
@@ -17,11 +17,11 @@ exports[`Tile basic 1`] = `
|
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
-
</
|
|
20
|
+
</DocumentFragment>
|
|
21
21
|
`;
|
|
22
22
|
|
|
23
23
|
exports[`Tile renders disabled 1`] = `
|
|
24
|
-
<
|
|
24
|
+
<DocumentFragment>
|
|
25
25
|
<div
|
|
26
26
|
aria-disabled="true"
|
|
27
27
|
class="pf-c-tile pf-m-disabled"
|
|
@@ -38,11 +38,11 @@ exports[`Tile renders disabled 1`] = `
|
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
40
|
</div>
|
|
41
|
-
</
|
|
41
|
+
</DocumentFragment>
|
|
42
42
|
`;
|
|
43
43
|
|
|
44
44
|
exports[`Tile renders selected 1`] = `
|
|
45
|
-
<
|
|
45
|
+
<DocumentFragment>
|
|
46
46
|
<div
|
|
47
47
|
aria-selected="true"
|
|
48
48
|
class="pf-c-tile pf-m-selected"
|
|
@@ -59,11 +59,11 @@ exports[`Tile renders selected 1`] = `
|
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
61
|
</div>
|
|
62
|
-
</
|
|
62
|
+
</DocumentFragment>
|
|
63
63
|
`;
|
|
64
64
|
|
|
65
65
|
exports[`Tile renders with icon 1`] = `
|
|
66
|
-
<
|
|
66
|
+
<DocumentFragment>
|
|
67
67
|
<div
|
|
68
68
|
class="pf-c-tile"
|
|
69
69
|
role="option"
|
|
@@ -96,11 +96,11 @@ exports[`Tile renders with icon 1`] = `
|
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
99
|
-
</
|
|
99
|
+
</DocumentFragment>
|
|
100
100
|
`;
|
|
101
101
|
|
|
102
102
|
exports[`Tile renders with stacked icon 1`] = `
|
|
103
|
-
<
|
|
103
|
+
<DocumentFragment>
|
|
104
104
|
<div
|
|
105
105
|
class="pf-c-tile"
|
|
106
106
|
role="option"
|
|
@@ -133,11 +133,11 @@ exports[`Tile renders with stacked icon 1`] = `
|
|
|
133
133
|
</div>
|
|
134
134
|
</div>
|
|
135
135
|
</div>
|
|
136
|
-
</
|
|
136
|
+
</DocumentFragment>
|
|
137
137
|
`;
|
|
138
138
|
|
|
139
139
|
exports[`Tile renders with stacked large icon 1`] = `
|
|
140
|
-
<
|
|
140
|
+
<DocumentFragment>
|
|
141
141
|
<div
|
|
142
142
|
class="pf-c-tile pf-m-display-lg"
|
|
143
143
|
role="option"
|
|
@@ -170,11 +170,11 @@ exports[`Tile renders with stacked large icon 1`] = `
|
|
|
170
170
|
</div>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
173
|
-
</
|
|
173
|
+
</DocumentFragment>
|
|
174
174
|
`;
|
|
175
175
|
|
|
176
176
|
exports[`Tile renders with subtext 1`] = `
|
|
177
|
-
<
|
|
177
|
+
<DocumentFragment>
|
|
178
178
|
<div
|
|
179
179
|
class="pf-c-tile"
|
|
180
180
|
role="option"
|
|
@@ -195,5 +195,5 @@ exports[`Tile renders with subtext 1`] = `
|
|
|
195
195
|
test subtext
|
|
196
196
|
</div>
|
|
197
197
|
</div>
|
|
198
|
-
</
|
|
198
|
+
</DocumentFragment>
|
|
199
199
|
`;
|
|
@@ -2,18 +2,23 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
4
|
import userEvent from '@testing-library/user-event';
|
|
5
|
-
import '@testing-library/jest-dom';
|
|
6
5
|
|
|
7
|
-
import { TimePicker } from '../TimePicker';
|
|
6
|
+
import { TimePicker, TimePickerProps } from '../TimePicker';
|
|
8
7
|
|
|
9
8
|
describe('TimePicker', () => {
|
|
10
9
|
describe('test timepicker onChange method with valid values', () => {
|
|
11
|
-
const testOnChange = ({
|
|
10
|
+
const testOnChange = ({
|
|
11
|
+
inputProps,
|
|
12
|
+
expects
|
|
13
|
+
}: {
|
|
14
|
+
inputProps: TimePickerProps;
|
|
15
|
+
expects: { hour: number; minutes: number; seconds: number };
|
|
16
|
+
}) => {
|
|
12
17
|
const onChange = jest.fn();
|
|
13
18
|
render(<TimePicker onChange={onChange} {...inputProps} aria-label="time picker" />);
|
|
14
19
|
|
|
15
|
-
userEvent.type(screen.getByLabelText('time picker'), inputProps.value);
|
|
16
|
-
expect(onChange).
|
|
20
|
+
userEvent.type(screen.getByLabelText('time picker'), String(inputProps.value));
|
|
21
|
+
expect(onChange).toHaveBeenCalledWith(inputProps.value, expects.hour, expects.minutes, expects.seconds, true);
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
test('should return the correct value using the AM/PM pattern - midnight', () => {
|
|
@@ -13,22 +13,30 @@ const props = {
|
|
|
13
13
|
|
|
14
14
|
describe('ToggleGroup', () => {
|
|
15
15
|
test('basic selected', () => {
|
|
16
|
-
const { asFragment } = render(
|
|
16
|
+
const { asFragment } = render(
|
|
17
|
+
<ToggleGroupItem text="test" isSelected buttonId="toggleGroupItem" aria-label="basic selected" />
|
|
18
|
+
);
|
|
17
19
|
expect(asFragment()).toMatchSnapshot();
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
test('basic not selected', () => {
|
|
21
|
-
const { asFragment } = render(
|
|
23
|
+
const { asFragment } = render(
|
|
24
|
+
<ToggleGroupItem text="test" buttonId="toggleGroupItem" aria-label="basic not selected" />
|
|
25
|
+
);
|
|
22
26
|
expect(asFragment()).toMatchSnapshot();
|
|
23
27
|
});
|
|
24
28
|
|
|
25
29
|
test('icon variant', () => {
|
|
26
|
-
const { asFragment } = render(
|
|
30
|
+
const { asFragment } = render(
|
|
31
|
+
<ToggleGroupItem isSelected icon="icon" buttonId="toggleGroupItem" aria-label="icon variant" />
|
|
32
|
+
);
|
|
27
33
|
expect(asFragment()).toMatchSnapshot();
|
|
28
34
|
});
|
|
29
35
|
|
|
30
36
|
test('isDisabled', () => {
|
|
31
|
-
const { asFragment } = render(
|
|
37
|
+
const { asFragment } = render(
|
|
38
|
+
<ToggleGroupItem text="test" isDisabled buttonId="toggleGroupItem" aria-label="isDisabled" />
|
|
39
|
+
);
|
|
32
40
|
expect(asFragment()).toMatchSnapshot();
|
|
33
41
|
});
|
|
34
42
|
|
|
@@ -3,16 +3,20 @@ import { render } from '@testing-library/react';
|
|
|
3
3
|
import { ToggleGroupItemElement, ToggleGroupItemVariant } from '../ToggleGroupItemElement';
|
|
4
4
|
|
|
5
5
|
test('text variant', () => {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const { asFragment } = render(
|
|
7
|
+
<ToggleGroupItemElement variant={ToggleGroupItemVariant.text}>Test</ToggleGroupItemElement>
|
|
8
|
+
);
|
|
9
|
+
expect(asFragment()).toMatchSnapshot();
|
|
8
10
|
});
|
|
9
11
|
|
|
10
12
|
test('icon variant', () => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
+
const { asFragment } = render(
|
|
14
|
+
<ToggleGroupItemElement variant={ToggleGroupItemVariant.icon}>ICON</ToggleGroupItemElement>
|
|
15
|
+
);
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
13
17
|
});
|
|
14
18
|
|
|
15
19
|
test('empty', () => {
|
|
16
|
-
const
|
|
17
|
-
expect(
|
|
20
|
+
const { asFragment } = render(<ToggleGroupItemElement />);
|
|
21
|
+
expect(asFragment()).toMatchSnapshot();
|
|
18
22
|
});
|
package/src/components/ToggleGroup/__tests__/__snapshots__/ToggleGroupItemElement.test.tsx.snap
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`empty 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<span
|
|
6
6
|
class=""
|
|
7
7
|
/>
|
|
8
|
-
</
|
|
8
|
+
</DocumentFragment>
|
|
9
9
|
`;
|
|
10
10
|
|
|
11
11
|
exports[`icon variant 1`] = `
|
|
12
|
-
<
|
|
12
|
+
<DocumentFragment>
|
|
13
13
|
<span
|
|
14
14
|
class="pf-c-toggle-group__icon"
|
|
15
15
|
>
|
|
16
16
|
ICON
|
|
17
17
|
</span>
|
|
18
|
-
</
|
|
18
|
+
</DocumentFragment>
|
|
19
19
|
`;
|
|
20
20
|
|
|
21
21
|
exports[`text variant 1`] = `
|
|
22
|
-
<
|
|
22
|
+
<DocumentFragment>
|
|
23
23
|
<span
|
|
24
24
|
class="pf-c-toggle-group__text"
|
|
25
25
|
>
|
|
26
26
|
Test
|
|
27
27
|
</span>
|
|
28
|
-
</
|
|
28
|
+
</DocumentFragment>
|
|
29
29
|
`;
|
|
@@ -8,7 +8,7 @@ import { ToolbarChipGroupContent } from '../../ToolbarChipGroupContent';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('ToolbarChipGroupContent should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<ToolbarChipGroupContent
|
|
13
13
|
className={'string'}
|
|
14
14
|
isExpanded={true}
|
|
@@ -20,5 +20,5 @@ it('ToolbarChipGroupContent should match snapshot (auto-generated)', () => {
|
|
|
20
20
|
collapseListedFiltersBreakpoint={'lg'}
|
|
21
21
|
/>
|
|
22
22
|
);
|
|
23
|
-
expect(
|
|
23
|
+
expect(asFragment()).toMatchSnapshot();
|
|
24
24
|
});
|
|
@@ -8,7 +8,7 @@ import { ToolbarContent } from '../../ToolbarContent';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('ToolbarContent should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<ToolbarContent
|
|
13
13
|
className={'string'}
|
|
14
14
|
children={<div>ReactNode</div>}
|
|
@@ -19,5 +19,5 @@ it('ToolbarContent should match snapshot (auto-generated)', () => {
|
|
|
19
19
|
toolbarId={'string'}
|
|
20
20
|
/>
|
|
21
21
|
);
|
|
22
|
-
expect(
|
|
22
|
+
expect(asFragment()).toMatchSnapshot();
|
|
23
23
|
});
|
|
@@ -8,7 +8,7 @@ import { ToolbarExpandableContent } from '../../ToolbarExpandableContent';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('ToolbarExpandableContent should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<ToolbarExpandableContent
|
|
13
13
|
className={'string'}
|
|
14
14
|
isExpanded={false}
|
|
@@ -19,5 +19,5 @@ it('ToolbarExpandableContent should match snapshot (auto-generated)', () => {
|
|
|
19
19
|
showClearFiltersButton={true}
|
|
20
20
|
/>
|
|
21
21
|
);
|
|
22
|
-
expect(
|
|
22
|
+
expect(asFragment()).toMatchSnapshot();
|
|
23
23
|
});
|
|
@@ -8,7 +8,7 @@ import { ToolbarGroup } from '../../ToolbarGroup';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('ToolbarGroup should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<ToolbarGroup
|
|
13
13
|
className={'string'}
|
|
14
14
|
variant={'filter-group'}
|
|
@@ -16,5 +16,5 @@ it('ToolbarGroup should match snapshot (auto-generated)', () => {
|
|
|
16
16
|
innerRef={{ current: document.createElement('div') }}
|
|
17
17
|
/>
|
|
18
18
|
);
|
|
19
|
-
expect(
|
|
19
|
+
expect(asFragment()).toMatchSnapshot();
|
|
20
20
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`ToolbarChipGroupContent should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-toolbar__content pf-m-hidden string"
|
|
7
7
|
hidden=""
|
|
@@ -10,5 +10,5 @@ exports[`ToolbarChipGroupContent should match snapshot (auto-generated) 1`] = `
|
|
|
10
10
|
class="pf-c-toolbar__group"
|
|
11
11
|
/>
|
|
12
12
|
</div>
|
|
13
|
-
</
|
|
13
|
+
</DocumentFragment>
|
|
14
14
|
`;
|
package/src/components/Toolbar/__tests__/Generated/__snapshots__/ToolbarContent.test.tsx.snap
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`ToolbarContent should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-toolbar__content string"
|
|
7
7
|
>
|
|
@@ -21,5 +21,5 @@ exports[`ToolbarContent should match snapshot (auto-generated) 1`] = `
|
|
|
21
21
|
/>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
|
-
</
|
|
24
|
+
</DocumentFragment>
|
|
25
25
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`ToolbarExpandableContent should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-toolbar__expandable-content string"
|
|
7
7
|
>
|
|
@@ -9,5 +9,5 @@ exports[`ToolbarExpandableContent should match snapshot (auto-generated) 1`] = `
|
|
|
9
9
|
class="pf-c-toolbar__group"
|
|
10
10
|
/>
|
|
11
11
|
</div>
|
|
12
|
-
</
|
|
12
|
+
</DocumentFragment>
|
|
13
13
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`ToolbarGroup should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="pf-c-toolbar__group pf-m-filter-group string"
|
|
7
7
|
>
|
|
@@ -9,5 +9,5 @@ exports[`ToolbarGroup should match snapshot (auto-generated) 1`] = `
|
|
|
9
9
|
ReactNode
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
|
-
</
|
|
12
|
+
</DocumentFragment>
|
|
13
13
|
`;
|
|
@@ -22,7 +22,7 @@ describe('Toolbar', () => {
|
|
|
22
22
|
</React.Fragment>
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
-
render(
|
|
25
|
+
const { asFragment } = render(
|
|
26
26
|
<Toolbar
|
|
27
27
|
id="toolbar"
|
|
28
28
|
inset={{
|
|
@@ -31,13 +31,12 @@ describe('Toolbar', () => {
|
|
|
31
31
|
xl: 'inset2xl',
|
|
32
32
|
'2xl': 'insetLg'
|
|
33
33
|
}}
|
|
34
|
-
data-testid="toolbar-test-id"
|
|
35
34
|
>
|
|
36
35
|
<ToolbarContent>{items}</ToolbarContent>
|
|
37
36
|
</Toolbar>
|
|
38
37
|
);
|
|
39
38
|
|
|
40
|
-
expect(
|
|
39
|
+
expect(asFragment()).toMatchSnapshot();
|
|
41
40
|
});
|
|
42
41
|
|
|
43
42
|
it('should render with page inset flag', () => {
|
|
@@ -50,13 +49,13 @@ describe('Toolbar', () => {
|
|
|
50
49
|
</React.Fragment>
|
|
51
50
|
);
|
|
52
51
|
|
|
53
|
-
render(
|
|
54
|
-
<Toolbar id="toolbar" usePageInsets
|
|
52
|
+
const { asFragment } = render(
|
|
53
|
+
<Toolbar id="toolbar" usePageInsets>
|
|
55
54
|
<ToolbarContent>{items}</ToolbarContent>
|
|
56
55
|
</Toolbar>
|
|
57
56
|
);
|
|
58
57
|
|
|
59
|
-
expect(
|
|
58
|
+
expect(asFragment()).toMatchSnapshot();
|
|
60
59
|
});
|
|
61
60
|
|
|
62
61
|
it('should render with custom chip content', () => {
|
|
@@ -109,13 +108,12 @@ describe('Toolbar', () => {
|
|
|
109
108
|
</React.Fragment>
|
|
110
109
|
);
|
|
111
110
|
|
|
112
|
-
render(
|
|
111
|
+
const { asFragment } = render(
|
|
113
112
|
<Toolbar
|
|
114
113
|
id="toolbar-with-filter"
|
|
115
114
|
className="pf-m-toggle-group-container"
|
|
116
115
|
collapseListedFiltersBreakpoint="xl"
|
|
117
116
|
customChipGroupContent={customChipGroupContent}
|
|
118
|
-
data-testid="toolbar-test-id"
|
|
119
117
|
>
|
|
120
118
|
<ToolbarContent>{items}</ToolbarContent>
|
|
121
119
|
</Toolbar>
|
|
@@ -124,6 +122,6 @@ describe('Toolbar', () => {
|
|
|
124
122
|
// Expecting 2 matches for text because the buttons also exist in hidden expandable content for mobile view
|
|
125
123
|
expect(screen.getAllByRole('button', { name: 'Save filters' }).length).toBe(2);
|
|
126
124
|
expect(screen.getAllByRole('button', { name: 'Clear all filters' }).length).toBe(2);
|
|
127
|
-
expect(
|
|
125
|
+
expect(asFragment()).toMatchSnapshot();
|
|
128
126
|
});
|
|
129
127
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { render
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
import { ToolbarItem } from '../ToolbarItem';
|
|
4
4
|
|
|
5
5
|
describe('ToolbarItem', () => {
|
|
@@ -13,7 +13,7 @@ describe('ToolbarItem', () => {
|
|
|
13
13
|
'2xl': '300px'
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
render(<ToolbarItem widths={widths}>Test</ToolbarItem>);
|
|
17
|
-
expect(
|
|
16
|
+
const { asFragment } = render(<ToolbarItem widths={widths}>Test</ToolbarItem>);
|
|
17
|
+
expect(asFragment()).toMatchSnapshot();
|
|
18
18
|
});
|
|
19
19
|
});
|