@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
package/src/demos/CardDemos.md
CHANGED
|
@@ -561,7 +561,14 @@ const AggregateStatusCards: React.FunctionComponent = () => {
|
|
|
561
561
|
<a href="#">{count}</a>
|
|
562
562
|
</FlexItem>
|
|
563
563
|
</Flex>
|
|
564
|
-
{content.length > 1 && index === 0 &&
|
|
564
|
+
{content.length > 1 && index === 0 && (
|
|
565
|
+
<Divider
|
|
566
|
+
key={`${index}_d`}
|
|
567
|
+
orientation={{
|
|
568
|
+
default: 'vertical'
|
|
569
|
+
}}
|
|
570
|
+
/>
|
|
571
|
+
)}
|
|
565
572
|
</React.Fragment>
|
|
566
573
|
))}
|
|
567
574
|
</Flex>
|
|
@@ -1255,8 +1262,10 @@ const UtilizationCard3: React.FunctionComponent = () => {
|
|
|
1255
1262
|
|
|
1256
1263
|
return (
|
|
1257
1264
|
<React.Fragment>
|
|
1258
|
-
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to
|
|
1259
|
-
<
|
|
1265
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to{' '}
|
|
1266
|
+
<code>baseline</code> alignment.
|
|
1267
|
+
<br />
|
|
1268
|
+
<br />
|
|
1260
1269
|
<Gallery hasGutter minWidths={{ default: '360px' }}>
|
|
1261
1270
|
<GalleryItem>
|
|
1262
1271
|
<Card id="utilization-card-1" component="div">
|
|
@@ -1507,7 +1516,13 @@ CardNestedDemo = () => {
|
|
|
1507
1516
|
<FlexItem>
|
|
1508
1517
|
<b>Temperature</b>
|
|
1509
1518
|
</FlexItem>
|
|
1510
|
-
<Divider
|
|
1519
|
+
<Divider
|
|
1520
|
+
className="pf-u-hidden-on-md"
|
|
1521
|
+
orientation={{
|
|
1522
|
+
default: 'vertical'
|
|
1523
|
+
}}
|
|
1524
|
+
inset={{ default: 'insetSm' }}
|
|
1525
|
+
/>
|
|
1511
1526
|
<FlexItem>
|
|
1512
1527
|
<span>64C</span>
|
|
1513
1528
|
</FlexItem>
|
|
@@ -1571,7 +1586,13 @@ CardNestedDemo = () => {
|
|
|
1571
1586
|
<FlexItem>
|
|
1572
1587
|
<b>Speed</b>
|
|
1573
1588
|
</FlexItem>
|
|
1574
|
-
<Divider
|
|
1589
|
+
<Divider
|
|
1590
|
+
className="pf-u-hidden-on-md"
|
|
1591
|
+
orientation={{
|
|
1592
|
+
default: 'vertical'
|
|
1593
|
+
}}
|
|
1594
|
+
inset={{ default: 'insetSm' }}
|
|
1595
|
+
/>
|
|
1575
1596
|
<FlexItem>
|
|
1576
1597
|
<span>2.3Ghz</span>
|
|
1577
1598
|
</FlexItem>
|
|
@@ -1656,7 +1677,13 @@ CardNestedDemo = () => {
|
|
|
1656
1677
|
<FlexItem>
|
|
1657
1678
|
<b>Temperature</b>
|
|
1658
1679
|
</FlexItem>
|
|
1659
|
-
<Divider
|
|
1680
|
+
<Divider
|
|
1681
|
+
className="pf-u-hidden-on-md"
|
|
1682
|
+
orientation={{
|
|
1683
|
+
default: 'vertical'
|
|
1684
|
+
}}
|
|
1685
|
+
inset={{ default: 'insetSm' }}
|
|
1686
|
+
/>
|
|
1660
1687
|
<FlexItem>
|
|
1661
1688
|
<span>64C</span>
|
|
1662
1689
|
</FlexItem>
|
|
@@ -1720,7 +1747,13 @@ CardNestedDemo = () => {
|
|
|
1720
1747
|
<FlexItem>
|
|
1721
1748
|
<b>Speed</b>
|
|
1722
1749
|
</FlexItem>
|
|
1723
|
-
<Divider
|
|
1750
|
+
<Divider
|
|
1751
|
+
className="pf-u-hidden-on-md"
|
|
1752
|
+
orientation={{
|
|
1753
|
+
default: 'vertical'
|
|
1754
|
+
}}
|
|
1755
|
+
inset={{ default: 'insetSm' }}
|
|
1756
|
+
/>
|
|
1724
1757
|
<FlexItem>
|
|
1725
1758
|
<span>2.3Ghz</span>
|
|
1726
1759
|
</FlexItem>
|
|
@@ -1805,7 +1838,13 @@ CardNestedDemo = () => {
|
|
|
1805
1838
|
<FlexItem>
|
|
1806
1839
|
<b>Temperature</b>
|
|
1807
1840
|
</FlexItem>
|
|
1808
|
-
<Divider
|
|
1841
|
+
<Divider
|
|
1842
|
+
className="pf-u-hidden-on-md"
|
|
1843
|
+
orientation={{
|
|
1844
|
+
default: 'vertical'
|
|
1845
|
+
}}
|
|
1846
|
+
inset={{ default: 'insetSm' }}
|
|
1847
|
+
/>
|
|
1809
1848
|
<FlexItem>
|
|
1810
1849
|
<span>64C</span>
|
|
1811
1850
|
</FlexItem>
|
|
@@ -1869,7 +1908,13 @@ CardNestedDemo = () => {
|
|
|
1869
1908
|
<FlexItem>
|
|
1870
1909
|
<b>Speed</b>
|
|
1871
1910
|
</FlexItem>
|
|
1872
|
-
<Divider
|
|
1911
|
+
<Divider
|
|
1912
|
+
className="pf-u-hidden-on-md"
|
|
1913
|
+
orientation={{
|
|
1914
|
+
default: 'vertical'
|
|
1915
|
+
}}
|
|
1916
|
+
inset={{ default: 'insetSm' }}
|
|
1917
|
+
/>
|
|
1873
1918
|
<FlexItem>
|
|
1874
1919
|
<span>2.3Ghz</span>
|
|
1875
1920
|
</FlexItem>
|
|
@@ -1994,7 +2039,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
1994
2039
|
<FlexItem>
|
|
1995
2040
|
<b>Temperature</b>
|
|
1996
2041
|
</FlexItem>
|
|
1997
|
-
<Divider
|
|
2042
|
+
<Divider
|
|
2043
|
+
className="pf-u-hidden-on-md"
|
|
2044
|
+
orientation={{
|
|
2045
|
+
default: 'vertical'
|
|
2046
|
+
}}
|
|
2047
|
+
inset={{ default: 'insetSm' }}
|
|
2048
|
+
/>
|
|
1998
2049
|
<FlexItem>
|
|
1999
2050
|
<span>64C</span>
|
|
2000
2051
|
</FlexItem>
|
|
@@ -2058,7 +2109,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
2058
2109
|
<FlexItem>
|
|
2059
2110
|
<b>Speed</b>
|
|
2060
2111
|
</FlexItem>
|
|
2061
|
-
<Divider
|
|
2112
|
+
<Divider
|
|
2113
|
+
className="pf-u-hidden-on-md"
|
|
2114
|
+
orientation={{
|
|
2115
|
+
default: 'vertical'
|
|
2116
|
+
}}
|
|
2117
|
+
inset={{ default: 'insetSm' }}
|
|
2118
|
+
/>
|
|
2062
2119
|
<FlexItem>
|
|
2063
2120
|
<span>2.3Ghz</span>
|
|
2064
2121
|
</FlexItem>
|
|
@@ -2140,7 +2197,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
2140
2197
|
<FlexItem>
|
|
2141
2198
|
<b>Temperature</b>
|
|
2142
2199
|
</FlexItem>
|
|
2143
|
-
<Divider
|
|
2200
|
+
<Divider
|
|
2201
|
+
className="pf-u-hidden-on-md"
|
|
2202
|
+
orientation={{
|
|
2203
|
+
default: 'vertical'
|
|
2204
|
+
}}
|
|
2205
|
+
inset={{ default: 'insetSm' }}
|
|
2206
|
+
/>
|
|
2144
2207
|
<FlexItem>
|
|
2145
2208
|
<span>64C</span>
|
|
2146
2209
|
</FlexItem>
|
|
@@ -2204,7 +2267,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
2204
2267
|
<FlexItem>
|
|
2205
2268
|
<b>Speed</b>
|
|
2206
2269
|
</FlexItem>
|
|
2207
|
-
<Divider
|
|
2270
|
+
<Divider
|
|
2271
|
+
className="pf-u-hidden-on-md"
|
|
2272
|
+
orientation={{
|
|
2273
|
+
default: 'vertical'
|
|
2274
|
+
}}
|
|
2275
|
+
inset={{ default: 'insetSm' }}
|
|
2276
|
+
/>
|
|
2208
2277
|
<FlexItem>
|
|
2209
2278
|
<span>2.3Ghz</span>
|
|
2210
2279
|
</FlexItem>
|
|
@@ -2286,7 +2355,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
2286
2355
|
<FlexItem>
|
|
2287
2356
|
<b>Temperature</b>
|
|
2288
2357
|
</FlexItem>
|
|
2289
|
-
<Divider
|
|
2358
|
+
<Divider
|
|
2359
|
+
className="pf-u-hidden-on-md"
|
|
2360
|
+
orientation={{
|
|
2361
|
+
default: 'vertical'
|
|
2362
|
+
}}
|
|
2363
|
+
inset={{ default: 'insetSm' }}
|
|
2364
|
+
/>
|
|
2290
2365
|
<FlexItem>
|
|
2291
2366
|
<span>64C</span>
|
|
2292
2367
|
</FlexItem>
|
|
@@ -2350,7 +2425,13 @@ const AccordionCard: React.FunctionComponent = () => {
|
|
|
2350
2425
|
<FlexItem>
|
|
2351
2426
|
<b>Speed</b>
|
|
2352
2427
|
</FlexItem>
|
|
2353
|
-
<Divider
|
|
2428
|
+
<Divider
|
|
2429
|
+
className="pf-u-hidden-on-md"
|
|
2430
|
+
orientation={{
|
|
2431
|
+
default: 'vertical'
|
|
2432
|
+
}}
|
|
2433
|
+
inset={{ default: 'insetSm' }}
|
|
2434
|
+
/>
|
|
2354
2435
|
<FlexItem>
|
|
2355
2436
|
<span>2.3Ghz</span>
|
|
2356
2437
|
</FlexItem>
|
|
@@ -2444,8 +2525,10 @@ const TrendCard1: React.FunctionComponent = () => {
|
|
|
2444
2525
|
];
|
|
2445
2526
|
return (
|
|
2446
2527
|
<React.Fragment>
|
|
2447
|
-
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to
|
|
2448
|
-
<
|
|
2528
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to{' '}
|
|
2529
|
+
<code>baseline</code> alignment.
|
|
2530
|
+
<br />
|
|
2531
|
+
<br />
|
|
2449
2532
|
<Gallery hasGutter minWidths={{ default: '360px' }}>
|
|
2450
2533
|
<GalleryItem>
|
|
2451
2534
|
<Card id="trend-card-1" component="div">
|
|
@@ -2626,8 +2709,10 @@ CardLogViewDemo = () => {
|
|
|
2626
2709
|
|
|
2627
2710
|
return (
|
|
2628
2711
|
<React.Fragment>
|
|
2629
|
-
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to
|
|
2630
|
-
<
|
|
2712
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to{' '}
|
|
2713
|
+
<code>baseline</code> alignment.
|
|
2714
|
+
<br />
|
|
2715
|
+
<br />
|
|
2631
2716
|
<Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
|
|
2632
2717
|
<Card id="card-log-view-example">
|
|
2633
2718
|
<CardHeader className="pf-u-align-items-flex-start">
|
|
@@ -2743,8 +2828,10 @@ CardEventViewDemo = () => {
|
|
|
2743
2828
|
|
|
2744
2829
|
return (
|
|
2745
2830
|
<React.Fragment>
|
|
2746
|
-
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to
|
|
2747
|
-
<
|
|
2831
|
+
<b>Note:</b> Custom CSS is used in this demo to align the card title and select toggle text to{' '}
|
|
2832
|
+
<code>baseline</code> alignment.
|
|
2833
|
+
<br />
|
|
2834
|
+
<br />
|
|
2748
2835
|
<Gallery hasGutter style={{ '--pf-l-gallery--GridTemplateColumns--min': '360px' }}>
|
|
2749
2836
|
<Card id="card-events-view-example">
|
|
2750
2837
|
<CardHeader className="pf-u-align-items-flex-start">
|
|
@@ -13,107 +13,5 @@ In this demo, learn how to use a [CalendarMonth](/components/calendar-month) com
|
|
|
13
13
|
|
|
14
14
|
### Date and time picker
|
|
15
15
|
|
|
16
|
-
```
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import {
|
|
19
|
-
Dropdown,
|
|
20
|
-
DropdownToggle,
|
|
21
|
-
DropdownItem,
|
|
22
|
-
CalendarMonth,
|
|
23
|
-
InputGroup,
|
|
24
|
-
TextInput,
|
|
25
|
-
Button,
|
|
26
|
-
Popover
|
|
27
|
-
} from '@patternfly/react-core';
|
|
28
|
-
import OutlinedCalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/outlined-calendar-alt-icon';
|
|
29
|
-
import OutlinedClockIcon from '@patternfly/react-icons/dist/esm/icons/outlined-clock-icon';
|
|
30
|
-
|
|
31
|
-
DateTimePicker = () => {
|
|
32
|
-
const [isCalendarOpen, setIsCalendarOpen] = React.useState(false);
|
|
33
|
-
const [isTimeOpen, setIsTimeOpen] = React.useState(false);
|
|
34
|
-
const [valueDate, setValueDate] = React.useState('MM-DD-YYYY');
|
|
35
|
-
const [valueTime, setValueTime] = React.useState('HH:MM');
|
|
36
|
-
const times = Array.from(new Array(10), (_, i) => i + 8);
|
|
37
|
-
const defaultTime = '0:00';
|
|
38
|
-
const dateFormat = date =>
|
|
39
|
-
date.toLocaleDateString('en-US', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-');
|
|
40
|
-
|
|
41
|
-
const onToggleCalendar = () => {
|
|
42
|
-
setIsCalendarOpen(!isCalendarOpen);
|
|
43
|
-
setIsTimeOpen(false);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const onToggleTime = ev => {
|
|
47
|
-
setIsTimeOpen(!isTimeOpen);
|
|
48
|
-
setIsCalendarOpen(false);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const onSelectCalendar = newValueDate => {
|
|
52
|
-
const newValue = dateFormat(newValueDate);
|
|
53
|
-
setValueDate(newValue);
|
|
54
|
-
setIsCalendarOpen(!isCalendarOpen);
|
|
55
|
-
// setting default time when it is not picked
|
|
56
|
-
if (valueTime === 'HH:MM') {
|
|
57
|
-
setValueTime(defaultTime);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const onSelectTime = ev => {
|
|
62
|
-
setValueTime(ev.target.value);
|
|
63
|
-
setIsTimeOpen(!isTimeOpen);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const timeOptions = times.map(time => (
|
|
67
|
-
<DropdownItem key={time} component="button" value={`${time}:00`}>
|
|
68
|
-
{`${time}:00`}
|
|
69
|
-
</DropdownItem>
|
|
70
|
-
));
|
|
71
|
-
const calendar = <CalendarMonth date={valueDate} onChange={onSelectCalendar} />;
|
|
72
|
-
const time = (
|
|
73
|
-
<Dropdown
|
|
74
|
-
onSelect={onSelectTime}
|
|
75
|
-
toggle={
|
|
76
|
-
<DropdownToggle
|
|
77
|
-
aria-label="Toggle the time picker menu"
|
|
78
|
-
toggleIndicator={null}
|
|
79
|
-
onToggle={onToggleTime}
|
|
80
|
-
style={{ padding: '6px 16px' }}
|
|
81
|
-
>
|
|
82
|
-
<OutlinedClockIcon />
|
|
83
|
-
</DropdownToggle>
|
|
84
|
-
}
|
|
85
|
-
isOpen={isTimeOpen}
|
|
86
|
-
dropdownItems={timeOptions}
|
|
87
|
-
/>
|
|
88
|
-
);
|
|
89
|
-
const calendarButton = (
|
|
90
|
-
<Button variant="control" aria-label="Toggle the calendar" onClick={onToggleCalendar}>
|
|
91
|
-
<OutlinedCalendarAltIcon />
|
|
92
|
-
</Button>
|
|
93
|
-
);
|
|
94
|
-
return (
|
|
95
|
-
<div style={{ width: '300px' }}>
|
|
96
|
-
<Popover
|
|
97
|
-
position="bottom"
|
|
98
|
-
bodyContent={calendar}
|
|
99
|
-
showClose={false}
|
|
100
|
-
isVisible={isCalendarOpen}
|
|
101
|
-
hasNoPadding
|
|
102
|
-
hasAutoWidth
|
|
103
|
-
>
|
|
104
|
-
<InputGroup>
|
|
105
|
-
<TextInput
|
|
106
|
-
type="'datetime-local"
|
|
107
|
-
id="date-time"
|
|
108
|
-
aria-label="date and time picker demo"
|
|
109
|
-
value={valueDate + ' ' + valueTime}
|
|
110
|
-
isReadOnly
|
|
111
|
-
/>
|
|
112
|
-
{calendarButton}
|
|
113
|
-
{time}
|
|
114
|
-
</InputGroup>
|
|
115
|
-
</Popover>
|
|
116
|
-
</div>
|
|
117
|
-
);
|
|
118
|
-
};
|
|
16
|
+
```ts file="./examples/DateTimePicker/DateTimePicker.tsx"
|
|
119
17
|
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Dropdown,
|
|
4
|
+
DropdownToggle,
|
|
5
|
+
DropdownItem,
|
|
6
|
+
CalendarMonth,
|
|
7
|
+
InputGroup,
|
|
8
|
+
TextInput,
|
|
9
|
+
Button,
|
|
10
|
+
Popover
|
|
11
|
+
} from '@patternfly/react-core';
|
|
12
|
+
import OutlinedCalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/outlined-calendar-alt-icon';
|
|
13
|
+
import OutlinedClockIcon from '@patternfly/react-icons/dist/esm/icons/outlined-clock-icon';
|
|
14
|
+
|
|
15
|
+
export const DateTimePicker: React.FunctionComponent = () => {
|
|
16
|
+
const [isCalendarOpen, setIsCalendarOpen] = React.useState(false);
|
|
17
|
+
const [isTimeOpen, setIsTimeOpen] = React.useState(false);
|
|
18
|
+
const [valueDate, setValueDate] = React.useState('MM-DD-YYYY');
|
|
19
|
+
const [valueTime, setValueTime] = React.useState('HH:MM');
|
|
20
|
+
const times = Array.from(new Array(10), (_, i) => i + 8);
|
|
21
|
+
const defaultTime = '0:00';
|
|
22
|
+
const dateFormat = (date: Date) =>
|
|
23
|
+
date.toLocaleDateString('en-US', { year: 'numeric', month: '2-digit', day: '2-digit' }).replace(/\//g, '-');
|
|
24
|
+
|
|
25
|
+
const onToggleCalendar = () => {
|
|
26
|
+
setIsCalendarOpen(!isCalendarOpen);
|
|
27
|
+
setIsTimeOpen(false);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
const onToggleTime = (_value: boolean, _event: any) => {
|
|
31
|
+
setIsTimeOpen(!isTimeOpen);
|
|
32
|
+
setIsCalendarOpen(false);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const onSelectCalendar = (newValueDate: Date) => {
|
|
36
|
+
const newValue = dateFormat(newValueDate);
|
|
37
|
+
setValueDate(newValue);
|
|
38
|
+
setIsCalendarOpen(!isCalendarOpen);
|
|
39
|
+
// setting default time when it is not picked
|
|
40
|
+
if (valueTime === 'HH:MM') {
|
|
41
|
+
setValueTime(defaultTime);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const onSelectTime = (ev: React.SyntheticEvent<HTMLDivElement>) => {
|
|
46
|
+
setValueTime(ev.currentTarget.textContent);
|
|
47
|
+
setIsTimeOpen(!isTimeOpen);
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const timeOptions = times.map(time => (
|
|
51
|
+
<DropdownItem key={time} component="button" value={`${time}:00`}>
|
|
52
|
+
{`${time}:00`}
|
|
53
|
+
</DropdownItem>
|
|
54
|
+
));
|
|
55
|
+
|
|
56
|
+
const calendar = <CalendarMonth date={new Date(valueDate)} onChange={onSelectCalendar} />;
|
|
57
|
+
|
|
58
|
+
const time = (
|
|
59
|
+
<Dropdown
|
|
60
|
+
onSelect={onSelectTime}
|
|
61
|
+
toggle={
|
|
62
|
+
<DropdownToggle
|
|
63
|
+
aria-label="Toggle the time picker menu"
|
|
64
|
+
toggleIndicator={null}
|
|
65
|
+
onToggle={onToggleTime}
|
|
66
|
+
style={{ padding: '6px 16px' }}
|
|
67
|
+
>
|
|
68
|
+
<OutlinedClockIcon />
|
|
69
|
+
</DropdownToggle>
|
|
70
|
+
}
|
|
71
|
+
isOpen={isTimeOpen}
|
|
72
|
+
dropdownItems={timeOptions}
|
|
73
|
+
/>
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
const calendarButton = (
|
|
77
|
+
<Button variant="control" aria-label="Toggle the calendar" onClick={onToggleCalendar}>
|
|
78
|
+
<OutlinedCalendarAltIcon />
|
|
79
|
+
</Button>
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
return (
|
|
83
|
+
<div style={{ width: '300px' }}>
|
|
84
|
+
<Popover
|
|
85
|
+
position="bottom"
|
|
86
|
+
bodyContent={calendar}
|
|
87
|
+
showClose={false}
|
|
88
|
+
isVisible={isCalendarOpen}
|
|
89
|
+
hasNoPadding
|
|
90
|
+
hasAutoWidth
|
|
91
|
+
>
|
|
92
|
+
<InputGroup>
|
|
93
|
+
<TextInput
|
|
94
|
+
type="text"
|
|
95
|
+
id="date-time"
|
|
96
|
+
aria-label="date and time picker demo"
|
|
97
|
+
value={valueDate + ' ' + valueTime}
|
|
98
|
+
isReadOnly
|
|
99
|
+
/>
|
|
100
|
+
{calendarButton}
|
|
101
|
+
{time}
|
|
102
|
+
</InputGroup>
|
|
103
|
+
</Popover>
|
|
104
|
+
</div>
|
|
105
|
+
);
|
|
106
|
+
};
|
|
@@ -6,7 +6,7 @@ import { render } from '@testing-library/react';
|
|
|
6
6
|
import { FocusTrap } from '../../FocusTrap';
|
|
7
7
|
|
|
8
8
|
it('FocusTrap should match snapshot (auto-generated)', () => {
|
|
9
|
-
const
|
|
9
|
+
const { asFragment } = render(
|
|
10
10
|
<FocusTrap
|
|
11
11
|
children={<div>ReactNode</div>}
|
|
12
12
|
className={'string'}
|
|
@@ -15,5 +15,5 @@ it('FocusTrap should match snapshot (auto-generated)', () => {
|
|
|
15
15
|
focusTrapOptions={undefined}
|
|
16
16
|
/>
|
|
17
17
|
);
|
|
18
|
-
expect(
|
|
18
|
+
expect(asFragment()).toMatchSnapshot();
|
|
19
19
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`FocusTrap should match snapshot (auto-generated) 1`] = `
|
|
4
|
-
<
|
|
4
|
+
<DocumentFragment>
|
|
5
5
|
<div
|
|
6
6
|
class="string"
|
|
7
7
|
>
|
|
@@ -9,5 +9,5 @@ exports[`FocusTrap should match snapshot (auto-generated) 1`] = `
|
|
|
9
9
|
ReactNode
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
|
-
</
|
|
12
|
+
</DocumentFragment>
|
|
13
13
|
`;
|
|
@@ -3,7 +3,7 @@ import { render } from '@testing-library/react';
|
|
|
3
3
|
import { GenerateId } from '../GenerateId';
|
|
4
4
|
|
|
5
5
|
test('generates id', () => {
|
|
6
|
-
const
|
|
6
|
+
const { asFragment } = render(<GenerateId>{id => <div id={id}>div with random ID</div>}</GenerateId>);
|
|
7
7
|
|
|
8
|
-
expect(
|
|
8
|
+
expect(asFragment()).toMatchSnapshot();
|
|
9
9
|
});
|
|
@@ -6,6 +6,6 @@ import { render } from '@testing-library/react';
|
|
|
6
6
|
import { FindRefWrapper } from '../../FindRefWrapper';
|
|
7
7
|
|
|
8
8
|
it('FindRefWrapper should match snapshot (auto-generated)', () => {
|
|
9
|
-
const
|
|
10
|
-
expect(
|
|
9
|
+
const { asFragment } = render(<FindRefWrapper children={<div>ReactNode</div>} onFoundRef={(foundRef: any) => {}} />);
|
|
10
|
+
expect(asFragment()).toMatchSnapshot();
|
|
11
11
|
});
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import { SIDE } from '../constants';
|
|
12
12
|
import styles from '@patternfly/react-styles/css/layouts/Flex/flex';
|
|
13
13
|
|
|
14
|
-
const createMockHtmlElement = bounds =>
|
|
14
|
+
const createMockHtmlElement = (bounds: Partial<DOMRect>) =>
|
|
15
15
|
({
|
|
16
16
|
getBoundingClientRect: () => bounds
|
|
17
17
|
} as HTMLElement);
|
|
@@ -43,7 +43,7 @@ test('debounce', () => {
|
|
|
43
43
|
debouncedFunction();
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
expect(callback).
|
|
46
|
+
expect(callback).toHaveBeenCalledTimes(10);
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
test('isElementInView should be true when partial out of view and with partial true', () => {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
import { render, screen } from '@testing-library/react';
|
|
4
|
-
import '@testing-library/jest-dom';
|
|
5
|
-
|
|
6
3
|
import { Bullseye } from '../Bullseye';
|
|
7
4
|
|
|
8
5
|
describe('Bullseye', () => {
|
|
@@ -12,7 +9,7 @@ describe('Bullseye', () => {
|
|
|
12
9
|
});
|
|
13
10
|
|
|
14
11
|
test('className is added to the root element', () => {
|
|
15
|
-
render(<Bullseye className="extra-class" data-testid=
|
|
12
|
+
render(<Bullseye className="extra-class" data-testid="test-id" />);
|
|
16
13
|
expect(screen.getByTestId('test-id')).toHaveClass('extra-class');
|
|
17
14
|
});
|
|
18
15
|
|
|
@@ -8,6 +8,6 @@ import { FlexItem } from '../../FlexItem';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('FlexItem should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
12
|
-
expect(
|
|
11
|
+
const { asFragment } = render(<FlexItem children={<>ReactNode</>} className={"''"} />);
|
|
12
|
+
expect(asFragment()).toMatchSnapshot();
|
|
13
13
|
});
|
|
@@ -4,12 +4,12 @@ import { GalleryItem } from '../GalleryItem';
|
|
|
4
4
|
import { render } from '@testing-library/react';
|
|
5
5
|
|
|
6
6
|
test('gutter', () => {
|
|
7
|
-
const
|
|
8
|
-
expect(
|
|
7
|
+
const { asFragment } = render(<Gallery hasGutter />);
|
|
8
|
+
expect(asFragment()).toMatchSnapshot();
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
test('gutter breakpoints', () => {
|
|
12
|
-
const
|
|
12
|
+
const { asFragment } = render(
|
|
13
13
|
<Gallery
|
|
14
14
|
hasGutter
|
|
15
15
|
minWidths={{
|
|
@@ -23,14 +23,14 @@ test('gutter breakpoints', () => {
|
|
|
23
23
|
}}
|
|
24
24
|
/>
|
|
25
25
|
);
|
|
26
|
-
expect(
|
|
26
|
+
expect(asFragment()).toMatchSnapshot();
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
test('alternative component', () => {
|
|
30
|
-
const
|
|
31
|
-
<Gallery component=
|
|
32
|
-
<GalleryItem component=
|
|
30
|
+
const { asFragment } = render(
|
|
31
|
+
<Gallery component="ul">
|
|
32
|
+
<GalleryItem component="li">Test</GalleryItem>
|
|
33
33
|
</Gallery>
|
|
34
34
|
);
|
|
35
|
-
expect(
|
|
35
|
+
expect(asFragment()).toMatchSnapshot();
|
|
36
36
|
});
|
|
@@ -8,6 +8,6 @@ import { GalleryItem } from '../../GalleryItem';
|
|
|
8
8
|
import {} from '../..';
|
|
9
9
|
|
|
10
10
|
it('GalleryItem should match snapshot (auto-generated)', () => {
|
|
11
|
-
const
|
|
12
|
-
expect(
|
|
11
|
+
const { asFragment } = render(<GalleryItem children={<>ReactNode</>} />);
|
|
12
|
+
expect(asFragment()).toMatchSnapshot();
|
|
13
13
|
});
|