@patternfly/react-core 4.206.4 → 4.207.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 +27 -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/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/umd/react-core.js +3 -3
- package/dist/umd/react-core.min.css +69 -69
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- 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/__tests__/Divider.test.tsx +10 -10
- package/src/components/Divider/__tests__/__snapshots__/Divider.test.tsx.snap +8 -8
- 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/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/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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { render, screen } from '@testing-library/react';
|
|
4
|
+
import userEvent from '@testing-library/user-event';
|
|
4
5
|
|
|
5
6
|
import { Dropdown } from '../Dropdown';
|
|
6
7
|
import { DropdownPosition, DropdownDirection } from '../dropdownConstants';
|
|
@@ -8,7 +9,6 @@ import { InternalDropdownItem } from '../InternalDropdownItem';
|
|
|
8
9
|
import { DropdownSeparator } from '../DropdownSeparator';
|
|
9
10
|
import { DropdownToggle } from '../DropdownToggle';
|
|
10
11
|
import { KebabToggle } from '../KebabToggle';
|
|
11
|
-
import userEvent from '@testing-library/user-event';
|
|
12
12
|
|
|
13
13
|
const dropdownItems = [
|
|
14
14
|
<InternalDropdownItem key="link">Link</InternalDropdownItem>,
|
|
@@ -30,25 +30,25 @@ const dropdownItems = [
|
|
|
30
30
|
|
|
31
31
|
describe('Dropdown', () => {
|
|
32
32
|
test('regular', () => {
|
|
33
|
-
render(
|
|
33
|
+
const { asFragment } = render(
|
|
34
34
|
<Dropdown dropdownItems={dropdownItems} toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>} />
|
|
35
35
|
);
|
|
36
|
-
expect(
|
|
36
|
+
expect(asFragment()).toMatchSnapshot();
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
test('right aligned', () => {
|
|
40
|
-
render(
|
|
40
|
+
const { asFragment } = render(
|
|
41
41
|
<Dropdown
|
|
42
42
|
dropdownItems={dropdownItems}
|
|
43
43
|
position={DropdownPosition.right}
|
|
44
44
|
toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}
|
|
45
45
|
/>
|
|
46
46
|
);
|
|
47
|
-
expect(
|
|
47
|
+
expect(asFragment()).toMatchSnapshot();
|
|
48
48
|
});
|
|
49
49
|
|
|
50
50
|
test('alignment breakpoints', () => {
|
|
51
|
-
render(
|
|
51
|
+
const { asFragment } = render(
|
|
52
52
|
<Dropdown
|
|
53
53
|
dropdownItems={dropdownItems}
|
|
54
54
|
alignments={{
|
|
@@ -63,22 +63,22 @@ describe('Dropdown', () => {
|
|
|
63
63
|
isOpen
|
|
64
64
|
/>
|
|
65
65
|
);
|
|
66
|
-
expect(
|
|
66
|
+
expect(asFragment()).toMatchSnapshot();
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
test('dropup', () => {
|
|
70
|
-
render(
|
|
70
|
+
const { asFragment } = render(
|
|
71
71
|
<Dropdown
|
|
72
72
|
dropdownItems={dropdownItems}
|
|
73
73
|
direction={DropdownDirection.up}
|
|
74
74
|
toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}
|
|
75
75
|
/>
|
|
76
76
|
);
|
|
77
|
-
expect(
|
|
77
|
+
expect(asFragment()).toMatchSnapshot();
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
test('dropup + right aligned', () => {
|
|
81
|
-
render(
|
|
81
|
+
const { asFragment } = render(
|
|
82
82
|
<Dropdown
|
|
83
83
|
dropdownItems={dropdownItems}
|
|
84
84
|
direction={DropdownDirection.up}
|
|
@@ -86,11 +86,11 @@ describe('Dropdown', () => {
|
|
|
86
86
|
toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}
|
|
87
87
|
/>
|
|
88
88
|
);
|
|
89
|
-
expect(
|
|
89
|
+
expect(asFragment()).toMatchSnapshot();
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
test('expanded', () => {
|
|
93
|
-
render(
|
|
93
|
+
const { asFragment } = render(
|
|
94
94
|
<Dropdown
|
|
95
95
|
dropdownItems={dropdownItems}
|
|
96
96
|
isOpen
|
|
@@ -98,11 +98,11 @@ describe('Dropdown', () => {
|
|
|
98
98
|
toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}
|
|
99
99
|
/>
|
|
100
100
|
);
|
|
101
|
-
expect(
|
|
101
|
+
expect(asFragment()).toMatchSnapshot();
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
test('primary', () => {
|
|
105
|
-
render(
|
|
105
|
+
const { asFragment } = render(
|
|
106
106
|
<Dropdown
|
|
107
107
|
dropdownItems={dropdownItems}
|
|
108
108
|
toggle={
|
|
@@ -112,55 +112,55 @@ describe('Dropdown', () => {
|
|
|
112
112
|
}
|
|
113
113
|
/>
|
|
114
114
|
);
|
|
115
|
-
expect(
|
|
115
|
+
expect(asFragment()).toMatchSnapshot();
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
test('basic', () => {
|
|
119
|
-
render(
|
|
119
|
+
const { asFragment } = render(
|
|
120
120
|
<Dropdown isOpen toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}>
|
|
121
121
|
<div>BASIC</div>
|
|
122
122
|
</Dropdown>
|
|
123
123
|
);
|
|
124
|
-
expect(
|
|
124
|
+
expect(asFragment()).toMatchSnapshot();
|
|
125
125
|
});
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
describe('KebabToggle', () => {
|
|
129
129
|
test('regular', () => {
|
|
130
|
-
render(
|
|
130
|
+
const { asFragment } = render(
|
|
131
131
|
<Dropdown
|
|
132
132
|
aria-label="Dropdown button"
|
|
133
133
|
dropdownItems={dropdownItems}
|
|
134
134
|
toggle={<KebabToggle id="Dropdown Toggle" />}
|
|
135
135
|
/>
|
|
136
136
|
);
|
|
137
|
-
expect(
|
|
137
|
+
expect(asFragment()).toMatchSnapshot();
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
test('right aligned', () => {
|
|
141
|
-
render(
|
|
141
|
+
const { asFragment } = render(
|
|
142
142
|
<Dropdown
|
|
143
143
|
dropdownItems={dropdownItems}
|
|
144
144
|
position={DropdownPosition.right}
|
|
145
145
|
toggle={<KebabToggle id="Dropdown Toggle" />}
|
|
146
146
|
/>
|
|
147
147
|
);
|
|
148
|
-
expect(
|
|
148
|
+
expect(asFragment()).toMatchSnapshot();
|
|
149
149
|
});
|
|
150
150
|
|
|
151
151
|
test('dropup', () => {
|
|
152
|
-
render(
|
|
152
|
+
const { asFragment } = render(
|
|
153
153
|
<Dropdown
|
|
154
154
|
dropdownItems={dropdownItems}
|
|
155
155
|
direction={DropdownDirection.up}
|
|
156
156
|
toggle={<KebabToggle id="Dropdown Toggle" />}
|
|
157
157
|
/>
|
|
158
158
|
);
|
|
159
|
-
expect(
|
|
159
|
+
expect(asFragment()).toMatchSnapshot();
|
|
160
160
|
});
|
|
161
161
|
|
|
162
162
|
test('dropup + right aligned', () => {
|
|
163
|
-
render(
|
|
163
|
+
const { asFragment } = render(
|
|
164
164
|
<Dropdown
|
|
165
165
|
dropdownItems={dropdownItems}
|
|
166
166
|
direction={DropdownDirection.up}
|
|
@@ -168,11 +168,11 @@ describe('KebabToggle', () => {
|
|
|
168
168
|
toggle={<KebabToggle id="Dropdown Toggle" />}
|
|
169
169
|
/>
|
|
170
170
|
);
|
|
171
|
-
expect(
|
|
171
|
+
expect(asFragment()).toMatchSnapshot();
|
|
172
172
|
});
|
|
173
173
|
|
|
174
174
|
test('expanded', () => {
|
|
175
|
-
render(
|
|
175
|
+
const { asFragment } = render(
|
|
176
176
|
<Dropdown
|
|
177
177
|
aria-label="Dropdown button"
|
|
178
178
|
dropdownItems={dropdownItems}
|
|
@@ -180,21 +180,23 @@ describe('KebabToggle', () => {
|
|
|
180
180
|
toggle={<KebabToggle id="Dropdown Toggle" />}
|
|
181
181
|
/>
|
|
182
182
|
);
|
|
183
|
-
expect(
|
|
183
|
+
expect(asFragment()).toMatchSnapshot();
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
test('plain', () => {
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
const { asFragment } = render(
|
|
188
|
+
<Dropdown dropdownItems={dropdownItems} isPlain toggle={<KebabToggle id="Dropdown Toggle" />} />
|
|
189
|
+
);
|
|
190
|
+
expect(asFragment()).toMatchSnapshot();
|
|
189
191
|
});
|
|
190
192
|
|
|
191
193
|
test('basic', () => {
|
|
192
|
-
render(
|
|
194
|
+
const { asFragment } = render(
|
|
193
195
|
<Dropdown isOpen toggle={<KebabToggle id="Dropdown Toggle" />}>
|
|
194
196
|
<div>BASIC</div>
|
|
195
197
|
</Dropdown>
|
|
196
198
|
);
|
|
197
|
-
expect(
|
|
199
|
+
expect(asFragment()).toMatchSnapshot();
|
|
198
200
|
});
|
|
199
201
|
});
|
|
200
202
|
|
|
@@ -229,7 +231,7 @@ describe('API', () => {
|
|
|
229
231
|
<div>Children items</div>
|
|
230
232
|
</Dropdown>
|
|
231
233
|
);
|
|
232
|
-
expect(myMock).
|
|
234
|
+
expect(myMock).toHaveBeenCalledWith(
|
|
233
235
|
'Children and dropdownItems props have been provided. Only the dropdownItems prop items will be rendered'
|
|
234
236
|
);
|
|
235
237
|
});
|
|
@@ -244,7 +246,7 @@ describe('API', () => {
|
|
|
244
246
|
toggle={<DropdownToggle id="Dropdown Toggle">Dropdown</DropdownToggle>}
|
|
245
247
|
/>
|
|
246
248
|
);
|
|
247
|
-
expect(myMock).not.
|
|
249
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
248
250
|
});
|
|
249
251
|
|
|
250
252
|
test('children only, no console ', () => {
|
|
@@ -255,6 +257,6 @@ describe('API', () => {
|
|
|
255
257
|
<div>Children items</div>
|
|
256
258
|
</Dropdown>
|
|
257
259
|
);
|
|
258
|
-
expect(myMock).not.
|
|
260
|
+
expect(myMock).not.toHaveBeenCalled();
|
|
259
261
|
});
|
|
260
262
|
});
|
|
@@ -4,7 +4,7 @@ import { DropdownGroup } from '../DropdownGroup';
|
|
|
4
4
|
|
|
5
5
|
describe('dropdown groups', () => {
|
|
6
6
|
test('basic render', () => {
|
|
7
|
-
const
|
|
8
|
-
expect(
|
|
7
|
+
const { asFragment } = render(<DropdownGroup label="Group 1">Something</DropdownGroup>);
|
|
8
|
+
expect(asFragment()).toMatchSnapshot();
|
|
9
9
|
});
|
|
10
10
|
});
|
|
@@ -2,12 +2,11 @@ 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 { DropdownToggle } from '../DropdownToggle';
|
|
8
7
|
import { DropdownContext } from '../dropdownConstants';
|
|
9
8
|
|
|
10
|
-
describe('
|
|
9
|
+
describe('DropdownToggle', () => {
|
|
11
10
|
describe('API', () => {
|
|
12
11
|
test('click on closed', () => {
|
|
13
12
|
const mockToggle = jest.fn();
|
|
@@ -46,12 +45,12 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
46
45
|
}
|
|
47
46
|
});
|
|
48
47
|
const mockToggle = jest.fn();
|
|
49
|
-
const
|
|
48
|
+
const { unmount } = render(
|
|
50
49
|
<DropdownToggle id="Dropdown Toggle" onToggle={mockToggle} isOpen parentRef={document.createElement('div')}>
|
|
51
50
|
Dropdown
|
|
52
51
|
</DropdownToggle>
|
|
53
52
|
);
|
|
54
|
-
|
|
53
|
+
unmount();
|
|
55
54
|
mousedown({ target: document } as any);
|
|
56
55
|
expect(mockToggle.mock.calls).toHaveLength(0);
|
|
57
56
|
expect(document.removeEventListener).toHaveBeenCalledWith('click', expect.any(Function));
|
|
@@ -68,12 +67,12 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
69
|
const mockToggle = jest.fn();
|
|
71
|
-
const
|
|
70
|
+
const { unmount } = render(
|
|
72
71
|
<DropdownToggle id="Dropdown Toggle" onToggle={mockToggle} isOpen parentRef={document.createElement('div')}>
|
|
73
72
|
Dropdown
|
|
74
73
|
</DropdownToggle>
|
|
75
74
|
);
|
|
76
|
-
|
|
75
|
+
unmount();
|
|
77
76
|
touchstart({ target: document } as any);
|
|
78
77
|
expect(mockToggle.mock.calls).toHaveLength(0);
|
|
79
78
|
expect(document.removeEventListener).toHaveBeenCalledWith('touchstart', expect.any(Function));
|
|
@@ -82,34 +81,34 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
82
81
|
|
|
83
82
|
describe('state', () => {
|
|
84
83
|
test('hover', () => {
|
|
85
|
-
const
|
|
84
|
+
const { asFragment } = render(
|
|
86
85
|
<DropdownToggle id="Dropdown Toggle" parentRef={document.createElement('div')}>
|
|
87
86
|
Dropdown
|
|
88
87
|
</DropdownToggle>
|
|
89
88
|
);
|
|
90
|
-
expect(
|
|
89
|
+
expect(asFragment()).toMatchSnapshot();
|
|
91
90
|
});
|
|
92
91
|
|
|
93
92
|
test('active', () => {
|
|
94
|
-
const
|
|
93
|
+
const { asFragment } = render(
|
|
95
94
|
<DropdownToggle id="Dropdown Toggle" isActive parentRef={document.createElement('div')}>
|
|
96
95
|
Dropdown
|
|
97
96
|
</DropdownToggle>
|
|
98
97
|
);
|
|
99
|
-
expect(
|
|
98
|
+
expect(asFragment()).toMatchSnapshot();
|
|
100
99
|
});
|
|
101
100
|
|
|
102
101
|
test('focus', () => {
|
|
103
|
-
const
|
|
102
|
+
const { asFragment } = render(
|
|
104
103
|
<DropdownToggle id="Dropdown Toggle" parentRef={document.createElement('div')}>
|
|
105
104
|
Dropdown
|
|
106
105
|
</DropdownToggle>
|
|
107
106
|
);
|
|
108
|
-
expect(
|
|
107
|
+
expect(asFragment()).toMatchSnapshot();
|
|
109
108
|
});
|
|
110
109
|
|
|
111
110
|
test('button variant - primary', () => {
|
|
112
|
-
render(
|
|
111
|
+
const { asFragment } = render(
|
|
113
112
|
<DropdownToggle id="Dropdown Toggle" toggleVariant="primary" parentRef={document.createElement('div')}>
|
|
114
113
|
Dropdown
|
|
115
114
|
</DropdownToggle>
|
|
@@ -117,12 +116,12 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
117
116
|
|
|
118
117
|
const button = screen.getByRole('button');
|
|
119
118
|
|
|
120
|
-
expect(button
|
|
121
|
-
expect(
|
|
119
|
+
expect(button).toHaveClass('pf-m-primary');
|
|
120
|
+
expect(asFragment()).toMatchSnapshot();
|
|
122
121
|
});
|
|
123
122
|
|
|
124
123
|
test('button variant - secondary', () => {
|
|
125
|
-
render(
|
|
124
|
+
const { asFragment } = render(
|
|
126
125
|
<DropdownToggle id="Dropdown Toggle" toggleVariant="secondary" parentRef={document.createElement('div')}>
|
|
127
126
|
Dropdown
|
|
128
127
|
</DropdownToggle>
|
|
@@ -130,12 +129,12 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
130
129
|
|
|
131
130
|
const button = screen.getByRole('button');
|
|
132
131
|
|
|
133
|
-
expect(button
|
|
134
|
-
expect(
|
|
132
|
+
expect(button).toHaveClass('pf-m-secondary');
|
|
133
|
+
expect(asFragment()).toMatchSnapshot();
|
|
135
134
|
});
|
|
136
135
|
|
|
137
136
|
test('button variant - plain with text', () => {
|
|
138
|
-
render(
|
|
137
|
+
const { asFragment } = render(
|
|
139
138
|
<DropdownToggle id="Dropdown Toggle" isText isPlain parentRef={document.createElement('div')}>
|
|
140
139
|
Dropdown
|
|
141
140
|
</DropdownToggle>
|
|
@@ -143,20 +142,19 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
143
142
|
|
|
144
143
|
const button = screen.getByRole('button');
|
|
145
144
|
|
|
146
|
-
expect(button
|
|
147
|
-
expect(button
|
|
148
|
-
expect(
|
|
145
|
+
expect(button).toHaveClass('pf-m-text');
|
|
146
|
+
expect(button).toHaveClass('pf-m-plain');
|
|
147
|
+
expect(asFragment()).toMatchSnapshot();
|
|
149
148
|
});
|
|
150
149
|
|
|
151
150
|
test('action split button - renders primary variant', () => {
|
|
152
|
-
render(
|
|
151
|
+
const { asFragment } = render(
|
|
153
152
|
<DropdownToggle
|
|
154
153
|
id="Dropdown Toggle"
|
|
155
154
|
toggleVariant="primary"
|
|
156
155
|
splitButtonItems={[<div key="1">test</div>]}
|
|
157
156
|
splitButtonVariant="action"
|
|
158
157
|
parentRef={document.createElement('div')}
|
|
159
|
-
data-testid="test-id"
|
|
160
158
|
>
|
|
161
159
|
Dropdown
|
|
162
160
|
</DropdownToggle>
|
|
@@ -165,17 +163,16 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
165
163
|
const dropdownToggle = screen.getByRole('button').parentElement;
|
|
166
164
|
|
|
167
165
|
expect(dropdownToggle).toHaveClass('pf-m-primary');
|
|
168
|
-
expect(
|
|
166
|
+
expect(asFragment()).toMatchSnapshot();
|
|
169
167
|
});
|
|
170
168
|
|
|
171
169
|
test('split button - does not render primary variant', () => {
|
|
172
|
-
render(
|
|
170
|
+
const { asFragment } = render(
|
|
173
171
|
<DropdownToggle
|
|
174
172
|
id="Dropdown Toggle"
|
|
175
173
|
toggleVariant="primary"
|
|
176
174
|
splitButtonItems={[<div key="0">test</div>]}
|
|
177
175
|
parentRef={document.createElement('div')}
|
|
178
|
-
data-testid="test-id"
|
|
179
176
|
>
|
|
180
177
|
Dropdown
|
|
181
178
|
</DropdownToggle>
|
|
@@ -184,11 +181,11 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
184
181
|
const dropdownToggle = screen.getByRole('button').parentElement;
|
|
185
182
|
|
|
186
183
|
expect(dropdownToggle).not.toHaveClass('pf-m-primary');
|
|
187
|
-
expect(
|
|
184
|
+
expect(asFragment()).toMatchSnapshot();
|
|
188
185
|
});
|
|
189
186
|
|
|
190
187
|
test('class changes', () => {
|
|
191
|
-
const
|
|
188
|
+
const { asFragment } = render(
|
|
192
189
|
<DropdownContext.Provider
|
|
193
190
|
value={{
|
|
194
191
|
toggleTextClass: 'some-test-class',
|
|
@@ -200,7 +197,7 @@ describe('DropdownToggleCheckbox', () => {
|
|
|
200
197
|
</DropdownToggle>
|
|
201
198
|
</DropdownContext.Provider>
|
|
202
199
|
);
|
|
203
|
-
expect(
|
|
200
|
+
expect(asFragment()).toMatchSnapshot();
|
|
204
201
|
});
|
|
205
202
|
});
|
|
206
203
|
});
|
|
@@ -1,21 +1,23 @@
|
|
|
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 { DropdownToggleAction } from '../DropdownToggleAction';
|
|
5
7
|
|
|
6
8
|
test('renders with text', () => {
|
|
7
|
-
const
|
|
8
|
-
expect(
|
|
9
|
+
const { asFragment } = render(<DropdownToggleAction id="action" aria-label="action" />);
|
|
10
|
+
expect(asFragment()).toMatchSnapshot();
|
|
9
11
|
});
|
|
10
12
|
|
|
11
13
|
test('isDisabled', () => {
|
|
12
|
-
const
|
|
13
|
-
expect(
|
|
14
|
+
const { asFragment } = render(<DropdownToggleAction id="action" aria-label="action" isDisabled />);
|
|
15
|
+
expect(asFragment()).toMatchSnapshot();
|
|
14
16
|
});
|
|
15
17
|
|
|
16
18
|
test('passing class', () => {
|
|
17
|
-
const
|
|
18
|
-
expect(
|
|
19
|
+
const { asFragment } = render(<DropdownToggleAction id="action" aria-label="action" className="abc" />);
|
|
20
|
+
expect(asFragment()).toMatchSnapshot();
|
|
19
21
|
});
|
|
20
22
|
|
|
21
23
|
test('checkbox passes value and event to onClick handler', () => {
|
|
@@ -24,5 +26,5 @@ test('checkbox passes value and event to onClick handler', () => {
|
|
|
24
26
|
render(<DropdownToggleAction id="action" aria-label="acton" onClick={onClickMock} />);
|
|
25
27
|
|
|
26
28
|
userEvent.click(screen.getByRole('button'));
|
|
27
|
-
expect(onClickMock).
|
|
29
|
+
expect(onClickMock).toHaveBeenCalled();
|
|
28
30
|
});
|
|
@@ -12,42 +12,46 @@ const props = {
|
|
|
12
12
|
|
|
13
13
|
describe('DropdownToggleCheckbox', () => {
|
|
14
14
|
test('controlled', () => {
|
|
15
|
-
render(<DropdownToggleCheckbox isChecked id="check" aria-label="check" />);
|
|
16
|
-
expect(
|
|
15
|
+
const { asFragment } = render(<DropdownToggleCheckbox isChecked id="check" aria-label="check" />);
|
|
16
|
+
expect(asFragment()).toMatchSnapshot();
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
test('uncontrolled', () => {
|
|
20
|
-
render(<DropdownToggleCheckbox id="check" aria-label="check" />);
|
|
21
|
-
expect(
|
|
20
|
+
const { asFragment } = render(<DropdownToggleCheckbox id="check" aria-label="check" />);
|
|
21
|
+
expect(asFragment()).toMatchSnapshot();
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
test('with text', () => {
|
|
25
|
-
render(
|
|
25
|
+
const { asFragment } = render(
|
|
26
26
|
<DropdownToggleCheckbox id="check" isDisabled aria-label="check">
|
|
27
27
|
Some text
|
|
28
28
|
</DropdownToggleCheckbox>
|
|
29
29
|
);
|
|
30
|
-
expect(
|
|
30
|
+
expect(asFragment()).toMatchSnapshot();
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
test('isDisabled', () => {
|
|
34
|
-
render(<DropdownToggleCheckbox id="check" isDisabled aria-label="check" />);
|
|
35
|
-
expect(
|
|
34
|
+
const { asFragment } = render(<DropdownToggleCheckbox id="check" isDisabled aria-label="check" />);
|
|
35
|
+
expect(asFragment()).toMatchSnapshot();
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
test('3rd state', () => {
|
|
39
|
-
render(<DropdownToggleCheckbox id="check" isChecked={null} aria-label="check" />);
|
|
40
|
-
expect(
|
|
39
|
+
const { asFragment } = render(<DropdownToggleCheckbox id="check" isChecked={null} aria-label="check" />);
|
|
40
|
+
expect(asFragment()).toMatchSnapshot();
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
test('passing class', () => {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
const { asFragment } = render(
|
|
45
|
+
<DropdownToggleCheckbox label="label" className="class-123" id="check" isChecked aria-label="check" />
|
|
46
|
+
);
|
|
47
|
+
expect(asFragment()).toMatchSnapshot();
|
|
46
48
|
});
|
|
47
49
|
|
|
48
50
|
test('passing HTML attribute', () => {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
const { asFragment } = render(
|
|
52
|
+
<DropdownToggleCheckbox label="label" aria-labelledby="labelId" id="check" isChecked aria-label="check" />
|
|
53
|
+
);
|
|
54
|
+
expect(asFragment()).toMatchSnapshot();
|
|
51
55
|
});
|
|
52
56
|
|
|
53
57
|
test('checkbox passes value and event to onChange handler', () => {
|
|
@@ -7,7 +7,7 @@ import { DropdownArrowContext } from '../../dropdownConstants';
|
|
|
7
7
|
|
|
8
8
|
describe('DropdownItem', () => {
|
|
9
9
|
it('should match snapshot', () => {
|
|
10
|
-
const
|
|
10
|
+
const { asFragment } = render(
|
|
11
11
|
<DropdownArrowContext.Provider value={{ sendRef: jest.fn(), keyHandler: undefined }}>
|
|
12
12
|
<DropdownItem
|
|
13
13
|
children={<>ReactNode</>}
|
|
@@ -26,6 +26,6 @@ describe('DropdownItem', () => {
|
|
|
26
26
|
/>
|
|
27
27
|
</DropdownArrowContext.Provider>
|
|
28
28
|
);
|
|
29
|
-
expect(
|
|
29
|
+
expect(asFragment()).toMatchSnapshot();
|
|
30
30
|
});
|
|
31
31
|
});
|
|
@@ -8,7 +8,7 @@ import { DropdownMenu } from '../../DropdownMenu';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('DropdownMenu should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<DropdownMenu
|
|
13
13
|
children={<div>ReactNode</div>}
|
|
14
14
|
className={"''"}
|
|
@@ -19,5 +19,5 @@ it('DropdownMenu should match snapshot (auto-generated)', () => {
|
|
|
19
19
|
isGrouped={false}
|
|
20
20
|
/>
|
|
21
21
|
);
|
|
22
|
-
expect(
|
|
22
|
+
expect(asFragment()).toMatchSnapshot();
|
|
23
23
|
});
|
|
@@ -7,11 +7,11 @@ import { DropdownArrowContext } from '../../dropdownConstants';
|
|
|
7
7
|
|
|
8
8
|
describe('DropdownSeparator', () => {
|
|
9
9
|
it('should match snapshot', () => {
|
|
10
|
-
const
|
|
10
|
+
const { asFragment } = render(
|
|
11
11
|
<DropdownArrowContext.Provider value={{ sendRef: jest.fn(), keyHandler: undefined }}>
|
|
12
12
|
<DropdownSeparator className={"''"} onClick={() => console.log('clicked')} />
|
|
13
13
|
</DropdownArrowContext.Provider>
|
|
14
14
|
);
|
|
15
|
-
expect(
|
|
15
|
+
expect(asFragment()).toMatchSnapshot();
|
|
16
16
|
});
|
|
17
17
|
});
|
|
@@ -8,7 +8,7 @@ import { KebabToggle } from '../../KebabToggle';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('KebabToggle should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
11
|
+
const { asFragment } = render(
|
|
12
12
|
<KebabToggle
|
|
13
13
|
id={"''"}
|
|
14
14
|
children={<>ReactNode</>}
|
|
@@ -24,5 +24,5 @@ it('KebabToggle should match snapshot (auto-generated)', () => {
|
|
|
24
24
|
bubbleEvent={false}
|
|
25
25
|
/>
|
|
26
26
|
);
|
|
27
|
-
expect(
|
|
27
|
+
expect(asFragment()).toMatchSnapshot();
|
|
28
28
|
});
|
package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`DropdownMenu should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<ul
|
|
6
6
|
class="pf-m-align-right ''"
|
|
7
7
|
role="menu"
|
|
@@ -12,5 +12,5 @@ exports[`DropdownMenu should match snapshot (auto-generated) 1`] = `
|
|
|
12
12
|
ReactNode
|
|
13
13
|
</div>
|
|
14
14
|
</ul>
|
|
15
|
-
</
|
|
15
|
+
</DocumentFragment>
|
|
16
16
|
`;
|
package/src/components/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`DropdownSeparator should match snapshot 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<li
|
|
6
6
|
role="separator"
|
|
7
7
|
>
|
|
@@ -10,5 +10,5 @@ exports[`DropdownSeparator should match snapshot 1`] = `
|
|
|
10
10
|
role="separator"
|
|
11
11
|
/>
|
|
12
12
|
</li>
|
|
13
|
-
</
|
|
13
|
+
</DocumentFragment>
|
|
14
14
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`KebabToggle should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<button
|
|
6
6
|
aria-expanded="false"
|
|
7
7
|
aria-label="'Actions'"
|
|
@@ -23,5 +23,5 @@ exports[`KebabToggle should match snapshot (auto-generated) 1`] = `
|
|
|
23
23
|
/>
|
|
24
24
|
</svg>
|
|
25
25
|
</button>
|
|
26
|
-
</
|
|
26
|
+
</DocumentFragment>
|
|
27
27
|
`;
|