@patternfly/react-core 6.2.0-prerelease.33 → 6.2.0-prerelease.35
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 +20 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/Content/package.json +1 -1
- package/dist/dynamic/components/DataList/package.json +1 -1
- package/dist/dynamic/components/DatePicker/package.json +1 -1
- package/dist/dynamic/components/DescriptionList/package.json +1 -1
- package/dist/dynamic/components/Divider/package.json +1 -1
- package/dist/dynamic/components/Drawer/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -1
- package/dist/dynamic/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/components/EmptyState/package.json +1 -1
- package/dist/dynamic/components/ExpandableSection/package.json +1 -1
- package/dist/dynamic/components/FileUpload/package.json +1 -1
- package/dist/dynamic/components/Form/package.json +1 -1
- package/dist/dynamic/components/FormSelect/package.json +1 -1
- package/dist/dynamic/components/HelperText/package.json +1 -1
- package/dist/dynamic/components/Hint/package.json +1 -1
- package/dist/dynamic/components/Icon/package.json +1 -1
- package/dist/dynamic/components/InputGroup/package.json +1 -1
- package/dist/dynamic/components/JumpLinks/package.json +1 -1
- package/dist/dynamic/components/Label/package.json +1 -1
- package/dist/dynamic/components/List/package.json +1 -1
- package/dist/dynamic/components/LoginPage/package.json +1 -1
- package/dist/dynamic/components/Masthead/package.json +1 -1
- package/dist/dynamic/components/Menu/package.json +1 -1
- package/dist/dynamic/components/MenuToggle/package.json +1 -1
- package/dist/dynamic/components/Modal/package.json +1 -1
- package/dist/dynamic/components/MultipleFileUpload/package.json +1 -1
- package/dist/dynamic/components/Nav/package.json +1 -1
- package/dist/dynamic/components/NotificationBadge/package.json +1 -1
- package/dist/dynamic/components/NotificationDrawer/package.json +1 -1
- package/dist/dynamic/components/NumberInput/package.json +1 -1
- package/dist/dynamic/components/OverflowMenu/package.json +1 -1
- package/dist/dynamic/components/Page/package.json +1 -1
- package/dist/dynamic/components/Pagination/package.json +1 -1
- package/dist/dynamic/components/Panel/package.json +1 -1
- package/dist/dynamic/components/Popover/package.json +1 -1
- package/dist/dynamic/components/Progress/package.json +1 -1
- package/dist/dynamic/components/ProgressStepper/package.json +1 -1
- package/dist/dynamic/components/Radio/package.json +1 -1
- package/dist/dynamic/components/SearchInput/package.json +1 -1
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic/components/Sidebar/package.json +1 -1
- package/dist/dynamic/components/SimpleList/package.json +1 -1
- package/dist/dynamic/components/Skeleton/package.json +1 -1
- package/dist/dynamic/components/SkipToContent/package.json +1 -1
- package/dist/dynamic/components/Slider/package.json +1 -1
- package/dist/dynamic/components/Spinner/package.json +1 -1
- package/dist/dynamic/components/Switch/package.json +1 -1
- package/dist/dynamic/components/Tabs/package.json +1 -1
- package/dist/dynamic/components/TextArea/package.json +1 -1
- package/dist/dynamic/components/TextInput/package.json +1 -1
- package/dist/dynamic/components/TextInputGroup/package.json +1 -1
- package/dist/dynamic/components/TimePicker/package.json +1 -1
- package/dist/dynamic/components/Timestamp/package.json +1 -1
- package/dist/dynamic/components/Title/package.json +1 -1
- package/dist/dynamic/components/ToggleGroup/package.json +1 -1
- package/dist/dynamic/components/Toolbar/package.json +1 -1
- package/dist/dynamic/components/Tooltip/package.json +1 -1
- package/dist/dynamic/components/TreeView/package.json +1 -1
- package/dist/dynamic/components/Truncate/package.json +1 -1
- package/dist/dynamic/components/Wizard/hooks/package.json +1 -1
- package/dist/dynamic/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/Chip/package.json +1 -1
- package/dist/dynamic/deprecated/components/DragDrop/package.json +1 -1
- package/dist/dynamic/deprecated/components/DualListSelector/package.json +1 -1
- package/dist/dynamic/deprecated/components/Modal/package.json +1 -1
- package/dist/dynamic/deprecated/components/Tile/package.json +1 -1
- package/dist/dynamic/deprecated/components/Wizard/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/dynamic/helpers/FocusTrap/FocusTrap/package.json +1 -1
- package/dist/dynamic/helpers/GenerateId/GenerateId/package.json +1 -1
- package/dist/dynamic/helpers/KeyboardHandler/package.json +1 -1
- package/dist/dynamic/helpers/OUIA/ouia/package.json +1 -1
- package/dist/dynamic/helpers/Popper/Popper/package.json +1 -1
- package/dist/dynamic/helpers/constants/package.json +1 -1
- package/dist/dynamic/helpers/datetimeUtils/package.json +1 -1
- package/dist/dynamic/helpers/fileUtils/package.json +1 -1
- package/dist/dynamic/helpers/htmlConstants/package.json +1 -1
- package/dist/dynamic/helpers/package.json +1 -1
- package/dist/dynamic/helpers/resizeObserver/package.json +1 -1
- package/dist/dynamic/helpers/typeUtils/package.json +1 -1
- package/dist/dynamic/helpers/useInterval/package.json +1 -1
- package/dist/dynamic/helpers/useIsomorphicLayout/package.json +1 -1
- package/dist/dynamic/helpers/useUnmountEffect/package.json +1 -1
- package/dist/dynamic/helpers/util/package.json +1 -1
- package/dist/dynamic/layouts/Bullseye/package.json +1 -1
- package/dist/dynamic/layouts/Flex/package.json +1 -1
- package/dist/dynamic/layouts/Gallery/package.json +1 -1
- package/dist/dynamic/layouts/Grid/package.json +1 -1
- package/dist/dynamic/layouts/Level/package.json +1 -1
- package/dist/dynamic/layouts/Split/package.json +1 -1
- package/dist/dynamic/layouts/Stack/package.json +1 -1
- package/dist/dynamic/styles/package.json +1 -1
- package/dist/dynamic-modules.json +1 -0
- package/dist/esm/components/Alert/Alert.d.ts +3 -3
- package/dist/esm/components/Alert/Alert.d.ts.map +1 -1
- package/dist/esm/components/Alert/Alert.js +31 -5
- package/dist/esm/components/Alert/Alert.js.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.js +18 -1
- package/dist/esm/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/esm/components/Alert/AlertGroup.d.ts +4 -0
- package/dist/esm/components/Alert/AlertGroup.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertGroup.js +3 -3
- package/dist/esm/components/Alert/AlertGroup.js.map +1 -1
- package/dist/esm/components/Alert/AlertGroupContext.d.ts +8 -0
- package/dist/esm/components/Alert/AlertGroupContext.d.ts.map +1 -0
- package/dist/esm/components/Alert/AlertGroupContext.js +6 -0
- package/dist/esm/components/Alert/AlertGroupContext.js.map +1 -0
- package/dist/esm/components/Alert/AlertGroupInline.d.ts.map +1 -1
- package/dist/esm/components/Alert/AlertGroupInline.js +28 -6
- package/dist/esm/components/Alert/AlertGroupInline.js.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts +2 -2
- package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/esm/components/Card/Card.d.ts +2 -2
- package/dist/esm/components/Card/Card.d.ts.map +1 -1
- package/dist/esm/components/Card/Card.js.map +1 -1
- package/dist/esm/components/Card/CardHeader.d.ts +2 -0
- package/dist/esm/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/esm/components/Card/CardHeader.js +2 -2
- package/dist/esm/components/Card/CardHeader.js.map +1 -1
- package/dist/esm/components/Card/CardTitle.d.ts +2 -2
- package/dist/esm/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/esm/components/Card/CardTitle.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js +15 -9
- package/dist/esm/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts +7 -0
- package/dist/esm/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/esm/components/NotificationBadge/NotificationBadge.js +21 -4
- package/dist/esm/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts +2 -2
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSection.js.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/esm/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/Toolbar.js +3 -2
- package/dist/esm/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/esm/components/Truncate/Truncate.d.ts +6 -2
- package/dist/esm/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/esm/components/Truncate/Truncate.js +4 -3
- package/dist/esm/components/Truncate/Truncate.js.map +1 -1
- package/dist/esm/helpers/resizeObserver.d.ts +2 -2
- package/dist/esm/helpers/resizeObserver.js +2 -2
- package/dist/js/components/Alert/Alert.d.ts +3 -3
- package/dist/js/components/Alert/Alert.d.ts.map +1 -1
- package/dist/js/components/Alert/Alert.js +30 -4
- package/dist/js/components/Alert/Alert.js.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertActionCloseButton.js +18 -1
- package/dist/js/components/Alert/AlertActionCloseButton.js.map +1 -1
- package/dist/js/components/Alert/AlertGroup.d.ts +4 -0
- package/dist/js/components/Alert/AlertGroup.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertGroup.js +3 -3
- package/dist/js/components/Alert/AlertGroup.js.map +1 -1
- package/dist/js/components/Alert/AlertGroupContext.d.ts +8 -0
- package/dist/js/components/Alert/AlertGroupContext.d.ts.map +1 -0
- package/dist/js/components/Alert/AlertGroupContext.js +9 -0
- package/dist/js/components/Alert/AlertGroupContext.js.map +1 -0
- package/dist/js/components/Alert/AlertGroupInline.d.ts.map +1 -1
- package/dist/js/components/Alert/AlertGroupInline.js +27 -5
- package/dist/js/components/Alert/AlertGroupInline.js.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts +2 -2
- package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
- package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
- package/dist/js/components/Card/Card.d.ts +2 -2
- package/dist/js/components/Card/Card.d.ts.map +1 -1
- package/dist/js/components/Card/Card.js.map +1 -1
- package/dist/js/components/Card/CardHeader.d.ts +2 -0
- package/dist/js/components/Card/CardHeader.d.ts.map +1 -1
- package/dist/js/components/Card/CardHeader.js +2 -2
- package/dist/js/components/Card/CardHeader.js.map +1 -1
- package/dist/js/components/Card/CardTitle.d.ts +2 -2
- package/dist/js/components/Card/CardTitle.d.ts.map +1 -1
- package/dist/js/components/Card/CardTitle.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts +4 -0
- package/dist/js/components/ClipboardCopy/ClipboardCopy.d.ts.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js +14 -8
- package/dist/js/components/ClipboardCopy/ClipboardCopy.js.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts +7 -0
- package/dist/js/components/NotificationBadge/NotificationBadge.d.ts.map +1 -1
- package/dist/js/components/NotificationBadge/NotificationBadge.js +21 -4
- package/dist/js/components/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts +2 -2
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Page/PageSection.js.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.d.ts +3 -0
- package/dist/js/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/js/components/Toolbar/Toolbar.js +3 -2
- package/dist/js/components/Toolbar/Toolbar.js.map +1 -1
- package/dist/js/components/Truncate/Truncate.d.ts +6 -2
- package/dist/js/components/Truncate/Truncate.d.ts.map +1 -1
- package/dist/js/components/Truncate/Truncate.js +4 -3
- package/dist/js/components/Truncate/Truncate.js.map +1 -1
- package/dist/js/helpers/resizeObserver.d.ts +2 -2
- package/dist/js/helpers/resizeObserver.js +2 -2
- package/dist/umd/assets/{output-CL2wZaU8.css → output-CspVdmoP.css} +19311 -19172
- package/dist/umd/react-core.min.js +3 -3
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/Accordion/examples/Accordion.md +1 -0
- package/src/components/Accordion/examples/AccordionBordered.tsx +3 -2
- package/src/components/Accordion/examples/AccordionDefinitionList.tsx +2 -1
- package/src/components/Accordion/examples/AccordionFixedWithMultipleExpandBehavior.tsx +2 -1
- package/src/components/Accordion/examples/AccordionSingleExpandBehavior.tsx +2 -1
- package/src/components/Accordion/examples/AccordionToggleIconAtStart.tsx +2 -1
- package/src/components/ActionList/examples/ActionList.md +1 -1
- package/src/components/ActionList/examples/ActionListSingleGroup.tsx +2 -2
- package/src/components/Alert/Alert.tsx +36 -7
- package/src/components/Alert/AlertActionCloseButton.tsx +34 -14
- package/src/components/Alert/AlertGroup.tsx +6 -0
- package/src/components/Alert/AlertGroupContext.tsx +11 -0
- package/src/components/Alert/AlertGroupInline.tsx +61 -22
- package/src/components/Alert/__tests__/AlertActionCloseButton.test.tsx +20 -2
- package/src/components/Alert/__tests__/AlertGroup.test.tsx +48 -5
- package/src/components/Alert/examples/Alert.md +58 -45
- package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +6 -6
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +2 -2
- package/src/components/Alert/examples/AlertGroupAsync.tsx +6 -6
- package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +4 -4
- package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +4 -4
- package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +5 -5
- package/src/components/Alert/examples/AlertGroupToast.tsx +4 -4
- package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +11 -5
- package/src/components/Breadcrumb/examples/Breadcrumb.md +1 -0
- package/src/components/Breadcrumb/examples/BreadcrumbDropdown.tsx +3 -2
- package/src/components/Button/examples/Button.md +1 -1
- package/src/components/Button/examples/ButtonProgress.tsx +5 -4
- package/src/components/CalendarMonth/CalendarMonth.tsx +2 -2
- package/src/components/CalendarMonth/examples/CalendarMonth.md +1 -0
- package/src/components/CalendarMonth/examples/CalendarMonthSelectableDate.tsx +2 -1
- package/src/components/Card/Card.tsx +2 -2
- package/src/components/Card/CardHeader.tsx +9 -1
- package/src/components/Card/CardTitle.tsx +2 -2
- package/src/components/Card/__tests__/Card.test.tsx +1 -3
- package/src/components/Card/__tests__/CardBody.test.tsx +1 -2
- package/src/components/Card/__tests__/CardFooter.test.tsx +1 -2
- package/src/components/Card/__tests__/CardHeader.test.tsx +14 -0
- package/src/components/Card/examples/Card.md +1 -1
- package/src/components/Card/examples/CardClickable.tsx +2 -1
- package/src/components/Card/examples/CardClickableSelectable.tsx +6 -5
- package/src/components/Card/examples/CardExpandable.tsx +5 -5
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +4 -3
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +3 -2
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +3 -2
- package/src/components/Card/examples/CardSelectable.tsx +5 -4
- package/src/components/Card/examples/CardSingleSelectable.tsx +2 -1
- package/src/components/Card/examples/CardTile.tsx +2 -1
- package/src/components/Card/examples/CardTileMulti.tsx +4 -3
- package/src/components/Card/examples/CardWithImageAndActions.tsx +4 -3
- package/src/components/Card/examples/CardWithModifiers.tsx +2 -2
- package/src/components/Checkbox/examples/Checkbox.md +1 -1
- package/src/components/Checkbox/examples/CheckboxControlled.tsx +7 -7
- package/src/components/ClipboardCopy/ClipboardCopy.tsx +35 -12
- package/src/components/ClipboardCopy/__tests__/ClipboardCopy.test.tsx +187 -1
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopy.test.tsx.snap +1 -1
- package/src/components/ClipboardCopy/examples/ClipboardCopy.md +7 -0
- package/src/components/ClipboardCopy/examples/ClipboardCopyInlineCompactTruncation.tsx +15 -0
- package/src/components/DescriptionList/examples/DescriptionList.md +1 -0
- package/src/components/DescriptionList/examples/DescriptionListWithCard.tsx +3 -2
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySize.tsx +3 -2
- package/src/components/DescriptionList/examples/DescriptionListWithLargeDisplaySizeAndCard.tsx +3 -2
- package/src/components/Dropdown/examples/Dropdown.md +1 -0
- package/src/components/Dropdown/examples/DropdownBasic.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithDescriptions.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithGroups.tsx +2 -1
- package/src/components/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -1
- package/src/components/EmptyState/examples/EmptyState.md +2 -0
- package/src/components/EmptyState/examples/EmptyStateWithStatus.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionBasic.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionCustomToggle.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionDetached.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionDisclosure.tsx +2 -1
- package/src/components/ExpandableSection/examples/ExpandableSectionTruncateExpansion.tsx +2 -1
- package/src/components/FileUpload/examples/FileUpload.md +1 -0
- package/src/components/FileUpload/examples/FileUploadCustomPreview.tsx +3 -2
- package/src/components/FileUpload/examples/FileUploadCustomUpload.tsx +12 -11
- package/src/components/FileUpload/examples/FileUploadSimpleFile.tsx +3 -2
- package/src/components/FileUpload/examples/FileUploadSimpleText.tsx +4 -3
- package/src/components/FileUpload/examples/FileUploadTextWithEdits.tsx +4 -3
- package/src/components/FileUpload/examples/FileUploadTextWithRestrictions.tsx +6 -5
- package/src/components/FileUpload/examples/FileUploadWithHelperText.tsx +4 -3
- package/src/components/FormSelect/examples/FormSelect.md +1 -0
- package/src/components/FormSelect/examples/FormSelectBasic.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectDisabled.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectGrouped.tsx +2 -1
- package/src/components/FormSelect/examples/FormSelectValidated.tsx +4 -3
- package/src/components/Hint/examples/Hint.md +1 -1
- package/src/components/Hint/examples/HintActionsWithNoOffset.tsx +2 -1
- package/src/components/Hint/examples/HintBasicWithTitle.tsx +2 -1
- package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +2 -2
- package/src/components/Icon/examples/Icon.md +1 -1
- package/src/components/Icon/examples/IconCustomProgress.tsx +2 -2
- package/src/components/Icon/examples/IconProgress.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroup.md +1 -1
- package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroupWithPopover.tsx +3 -3
- package/src/components/Label/examples/Label.md +1 -1
- package/src/components/Label/examples/LabelEditable.tsx +3 -3
- package/src/components/Label/examples/LabelGroupCategoryRemovable.tsx +2 -1
- package/src/components/Label/examples/LabelGroupEditableAdd.tsx +3 -2
- package/src/components/Label/examples/LabelGroupEditableAddDropdown.tsx +8 -7
- package/src/components/Label/examples/LabelGroupEditableAddModal.tsx +21 -20
- package/src/components/Label/examples/LabelGroupEditableLabels.tsx +4 -3
- package/src/components/Label/examples/LabelGroupVerticalCategoryOverflowRemovable.tsx +2 -1
- package/src/components/LoginPage/examples/LoginPage.md +1 -1
- package/src/components/LoginPage/examples/LoginPageBasic.tsx +7 -7
- package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +9 -9
- package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +7 -7
- package/src/components/Menu/examples/Menu.md +1 -1
- package/src/components/Menu/examples/MenuBasic.tsx +3 -3
- package/src/components/Menu/examples/MenuDangerMenuItem.tsx +2 -1
- package/src/components/Menu/examples/MenuFilterDrilldown.tsx +7 -6
- package/src/components/Menu/examples/MenuFilteringWithSearchInput.tsx +3 -2
- package/src/components/Menu/examples/MenuOptionMultiSelect.tsx +2 -1
- package/src/components/Menu/examples/MenuOptionSingleSelect.tsx +3 -2
- package/src/components/Menu/examples/MenuScrollable.tsx +2 -1
- package/src/components/Menu/examples/MenuScrollableCustomMenuHeight.tsx +2 -1
- package/src/components/Menu/examples/MenuWithActions.tsx +2 -1
- package/src/components/Menu/examples/MenuWithCheckbox.tsx +2 -1
- package/src/components/Menu/examples/MenuWithDescription.tsx +2 -1
- package/src/components/Menu/examples/MenuWithDrilldown.tsx +5 -4
- package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +3 -3
- package/src/components/Menu/examples/MenuWithDrilldownInitialState.tsx +5 -4
- package/src/components/Menu/examples/MenuWithDrilldownSubmenuFunctions.tsx +5 -4
- package/src/components/Menu/examples/MenuWithFavorites.tsx +3 -3
- package/src/components/Menu/examples/MenuWithFooter.tsx +2 -1
- package/src/components/Menu/examples/MenuWithIcons.tsx +2 -1
- package/src/components/Menu/examples/MenuWithLinks.tsx +2 -1
- package/src/components/Menu/examples/MenuWithSeparators.tsx +2 -1
- package/src/components/Menu/examples/MenuWithTitledGroups.tsx +2 -1
- package/src/components/Menu/examples/MenuWithViewMore.tsx +9 -8
- package/src/components/MenuToggle/examples/MenuToggle.md +19 -13
- package/src/components/MenuToggle/examples/MenuToggleTypeahead.tsx +2 -1
- package/src/components/Modal/examples/Modal.md +1 -1
- package/src/components/Modal/examples/ModalBasic.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomFocus.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomHeader.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/components/Modal/examples/ModalCustomWidth.tsx +2 -2
- package/src/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
- package/src/components/Modal/examples/ModalSize.tsx +3 -3
- package/src/components/Modal/examples/ModalTitleIcon.tsx +2 -2
- package/src/components/Modal/examples/ModalTopAligned.tsx +2 -2
- package/src/components/Modal/examples/ModalWithDescription.tsx +2 -2
- package/src/components/Modal/examples/ModalWithDropdown.tsx +3 -3
- package/src/components/Modal/examples/ModalWithForm.tsx +8 -8
- package/src/components/Modal/examples/ModalWithHelp.tsx +2 -2
- package/src/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
- package/src/components/Modal/examples/ModalWithWizard.tsx +2 -2
- package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +1 -0
- package/src/components/MultipleFileUpload/examples/MultipleFileUploadBasic.tsx +8 -7
- package/src/components/Nav/examples/Nav.md +1 -0
- package/src/components/Nav/examples/NavDefault.tsx +2 -1
- package/src/components/Nav/examples/NavDrilldown.tsx +2 -4
- package/src/components/Nav/examples/NavExpandable.tsx +3 -2
- package/src/components/Nav/examples/NavExpandableThirdLevel.tsx +3 -2
- package/src/components/Nav/examples/NavFlyout.tsx +2 -1
- package/src/components/Nav/examples/NavGrouped.tsx +2 -1
- package/src/components/Nav/examples/NavHorizontalNav.tsx +2 -1
- package/src/components/Nav/examples/NavHorizontalSubNav.tsx +2 -1
- package/src/components/Nav/examples/NavIcons.tsx +2 -1
- package/src/components/Nav/examples/NavMixed.tsx +3 -2
- package/src/components/NotificationBadge/NotificationBadge.tsx +34 -6
- package/src/components/NotificationBadge/__tests__/NotificationBadge.test.tsx +18 -3
- package/src/components/NotificationBadge/__tests__/__snapshots__/NotificationBadge.test.tsx.snap +34 -0
- package/src/components/NotificationBadge/examples/NotificationBadge.md +9 -1
- package/src/components/NotificationBadge/examples/NotificationBadgeBasic.tsx +4 -3
- package/src/components/NotificationBadge/examples/NotificationBadgeWithAnimation.tsx +48 -0
- package/src/components/NotificationBadge/examples/NotificationBadgeWithCount.tsx +4 -3
- package/src/components/NotificationDrawer/examples/NotificationDrawer.md +1 -0
- package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +2 -1
- package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +5 -4
- package/src/components/NotificationDrawer/examples/NotificationDrawerLightweight.tsx +4 -3
- package/src/components/NumberInput/examples/NumberInput.md +1 -1
- package/src/components/NumberInput/examples/NumberInputCustomStep.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputCustomStepAndThreshold.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputDefault.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputDisabled.tsx +2 -1
- package/src/components/NumberInput/examples/NumberInputUnit.tsx +3 -3
- package/src/components/NumberInput/examples/NumberInputUnitThreshold.tsx +2 -2
- package/src/components/NumberInput/examples/NumberInputVaryingSizes.tsx +5 -5
- package/src/components/NumberInput/examples/NumberInputWithStatus.tsx +3 -2
- package/src/components/OverflowMenu/examples/OverflowMenu.md +1 -0
- package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +4 -3
- package/src/components/OverflowMenu/examples/OverflowMenuGroupTypes.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuMultiGroup.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuPersistent.tsx +2 -1
- package/src/components/OverflowMenu/examples/OverflowMenuSimple.tsx +2 -1
- package/src/components/Page/Page.tsx +2 -2
- package/src/components/Page/PageSection.tsx +2 -2
- package/src/components/Page/examples/Page.md +1 -0
- package/src/components/Page/examples/PageCenteredSection.tsx +2 -1
- package/src/components/Page/examples/PageGroupSection.tsx +2 -1
- package/src/components/Page/examples/PageMainSectionPadding.tsx +2 -1
- package/src/components/Page/examples/PageMainSectionVariations.tsx +2 -1
- package/src/components/Page/examples/PageMultipleSidebarBody.tsx +2 -1
- package/src/components/Page/examples/PageVerticalNav.tsx +2 -1
- package/src/components/Page/examples/PageWithOrWithoutFill.tsx +2 -1
- package/src/components/Pagination/examples/Pagination.md +1 -1
- package/src/components/Pagination/examples/PaginationBottom.tsx +3 -2
- package/src/components/Pagination/examples/PaginationCompact.tsx +3 -2
- package/src/components/Pagination/examples/PaginationDisabled.tsx +3 -2
- package/src/components/Pagination/examples/PaginationIndeterminate.tsx +3 -3
- package/src/components/Pagination/examples/PaginationInset.tsx +3 -2
- package/src/components/Pagination/examples/PaginationNoItems.tsx +3 -2
- package/src/components/Pagination/examples/PaginationOffset.tsx +3 -2
- package/src/components/Pagination/examples/PaginationOnePage.tsx +3 -2
- package/src/components/Pagination/examples/PaginationSticky.tsx +4 -4
- package/src/components/Pagination/examples/PaginationTop.tsx +3 -2
- package/src/components/Popover/examples/Popover.md +1 -0
- package/src/components/Popover/examples/PopoverAdvanced.tsx +4 -3
- package/src/components/Popover/examples/PopoverAlert.tsx +2 -1
- package/src/components/Popover/examples/PopoverCloseControlled.tsx +2 -1
- package/src/components/Popover/examples/PopoverReactRef.tsx +2 -1
- package/src/components/Progress/examples/Progress.md +2 -0
- package/src/components/Progress/examples/ProgressHelperText.tsx +2 -1
- package/src/components/ProgressStepper/examples/ProgressStepper.md +1 -1
- package/src/components/ProgressStepper/examples/ProgressStepperBasicWithAlignment.tsx +3 -3
- package/src/components/ProgressStepper/examples/ProgressStepperCompact.tsx +3 -3
- package/src/components/Radio/examples/Radio.md +1 -1
- package/src/components/Radio/examples/RadioControlled.tsx +2 -2
- package/src/components/SearchInput/examples/SearchInput.md +1 -0
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +4 -3
- package/src/components/SearchInput/examples/SearchInputBasic.tsx +2 -1
- package/src/components/SearchInput/examples/SearchInputFocusSearch.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithExpandable.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithNavigableOptions.tsx +4 -3
- package/src/components/SearchInput/examples/SearchInputWithResultCount.tsx +3 -2
- package/src/components/SearchInput/examples/SearchInputWithSubmitButton.tsx +2 -1
- package/src/components/Select/examples/Select.md +1 -1
- package/src/components/Select/examples/SelectBasic.tsx +4 -4
- package/src/components/Select/examples/SelectCheckbox.tsx +3 -2
- package/src/components/Select/examples/SelectFooter.tsx +3 -2
- package/src/components/Select/examples/SelectGrouped.tsx +3 -2
- package/src/components/Select/examples/SelectMultiTypeahead.tsx +9 -8
- package/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +11 -10
- package/src/components/Select/examples/SelectMultiTypeaheadCreatable.tsx +10 -9
- package/src/components/Select/examples/SelectOptionVariations.tsx +3 -2
- package/src/components/Select/examples/SelectTypeahead.tsx +10 -9
- package/src/components/Select/examples/SelectTypeaheadCreatable.tsx +10 -9
- package/src/components/Select/examples/SelectValidated.tsx +4 -4
- package/src/components/Select/examples/SelectViewMore.tsx +12 -11
- package/src/components/SimpleList/examples/SimpleList.md +1 -0
- package/src/components/SimpleList/examples/SimpleListUncontrolled.tsx +2 -1
- package/src/components/Slider/examples/Slider.md +1 -0
- package/src/components/Slider/examples/SliderActions.tsx +5 -4
- package/src/components/Slider/examples/SliderContinuous.tsx +4 -3
- package/src/components/Slider/examples/SliderDisabled.tsx +2 -1
- package/src/components/Slider/examples/SliderDiscrete.tsx +2 -1
- package/src/components/Slider/examples/SliderThumbValueInput.tsx +3 -2
- package/src/components/Slider/examples/SliderValueInput.tsx +7 -6
- package/src/components/Switch/examples/Switch.md +1 -1
- package/src/components/Switch/examples/SwitchBasic.tsx +2 -1
- package/src/components/Switch/examples/SwitchCheckedWithLabel.tsx +2 -1
- package/src/components/Switch/examples/SwitchReversed.tsx +2 -1
- package/src/components/Switch/examples/SwitchWithoutLabel.tsx +2 -1
- package/src/components/Tabs/examples/Tabs.md +2 -2
- package/src/components/Tabs/examples/TabsBoxSecondary.tsx +3 -2
- package/src/components/Tabs/examples/TabsChildrenMounting.tsx +2 -1
- package/src/components/Tabs/examples/TabsContentWithBodyPadding.tsx +5 -5
- package/src/components/Tabs/examples/TabsDefault.tsx +3 -2
- package/src/components/Tabs/examples/TabsDefaultOverflow.tsx +3 -2
- package/src/components/Tabs/examples/TabsDynamic.tsx +7 -6
- package/src/components/Tabs/examples/TabsFilled.tsx +3 -2
- package/src/components/Tabs/examples/TabsFilledWithIcons.tsx +3 -2
- package/src/components/Tabs/examples/TabsHelp.tsx +3 -2
- package/src/components/Tabs/examples/TabsHelpAndClose.tsx +7 -6
- package/src/components/Tabs/examples/TabsHorizontalOverflow.tsx +3 -2
- package/src/components/Tabs/examples/TabsIconAndText.tsx +2 -1
- package/src/components/Tabs/examples/TabsInset.tsx +3 -2
- package/src/components/Tabs/examples/TabsNav.tsx +2 -1
- package/src/components/Tabs/examples/TabsNavSubtab.tsx +3 -2
- package/src/components/Tabs/examples/TabsPageInsets.tsx +3 -2
- package/src/components/Tabs/examples/TabsSeparateContent.tsx +5 -5
- package/src/components/Tabs/examples/TabsSubtabs.tsx +4 -3
- package/src/components/Tabs/examples/TabsToggledSeparateContent.tsx +6 -6
- package/src/components/Tabs/examples/TabsTooltipReactRef.tsx +4 -3
- package/src/components/Tabs/examples/TabsUnmountingInvisibleChildren.tsx +2 -1
- package/src/components/Tabs/examples/TabsVertical.tsx +3 -2
- package/src/components/Tabs/examples/TabsVerticalExpandable.tsx +3 -2
- package/src/components/Tabs/examples/TabsVerticalExpandableUncontrolled.tsx +2 -1
- package/src/components/TextArea/examples/TextArea.md +1 -1
- package/src/components/TextArea/examples/TextAreaAutoResizing.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaBasic.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaHorizontallyResizable.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaInvalid.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaReadOnly.tsx +2 -2
- package/src/components/TextArea/examples/TextAreaResizableNone.tsx +2 -1
- package/src/components/TextArea/examples/TextAreaValidated.tsx +5 -4
- package/src/components/TextArea/examples/TextAreaVerticallyResizable.tsx +2 -1
- package/src/components/TextInput/examples/TextInput.md +1 -0
- package/src/components/TextInput/examples/TextInputBasic.tsx +2 -1
- package/src/components/TextInput/examples/TextInputCustomIcon.tsx +3 -2
- package/src/components/TextInput/examples/TextInputCustomIconInvalid.tsx +2 -1
- package/src/components/TextInput/examples/TextInputInvalid.tsx +2 -1
- package/src/components/TextInput/examples/TextInputReadOnly.tsx +2 -1
- package/src/components/TextInput/examples/TextInputSelectUsingRef.tsx +3 -2
- package/src/components/TextInput/examples/TextInputStartTruncated.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroup.md +1 -0
- package/src/components/TextInputGroup/examples/TextInputGroupBasic.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroupFilters.tsx +3 -2
- package/src/components/TextInputGroup/examples/TextInputGroupUtilitiesAndIcon.tsx +2 -1
- package/src/components/TextInputGroup/examples/TextInputGroupWithStatus.tsx +4 -5
- package/src/components/ToggleGroup/examples/ToggleGroup.md +1 -0
- package/src/components/ToggleGroup/examples/ToggleGroupCompact.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupDefaultMultiple.tsx +3 -2
- package/src/components/ToggleGroup/examples/ToggleGroupDefaultSingle.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupIcon.tsx +2 -1
- package/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx +2 -1
- package/src/components/Toolbar/Toolbar.tsx +5 -0
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +29 -0
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +1 -1
- package/src/components/Toolbar/examples/Toolbar.md +1 -1
- package/src/components/Toolbar/examples/ToolbarComponentManagedToggleGroups.tsx +6 -6
- package/src/components/Toolbar/examples/ToolbarConsumerManagedToggleGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarCustomLabelGroupContent.tsx +4 -4
- package/src/components/Toolbar/examples/ToolbarGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarStacked.tsx +9 -9
- package/src/components/Toolbar/examples/ToolbarSticky.tsx +3 -3
- package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +6 -6
- package/src/components/Tooltip/examples/Tooltip.md +1 -0
- package/src/components/Tooltip/examples/TooltipIcon.tsx +2 -1
- package/src/components/Tooltip/examples/TooltipOptions.tsx +14 -13
- package/src/components/Tooltip/examples/TooltipReactRef.tsx +2 -1
- package/src/components/TreeView/examples/TreeView.md +1 -1
- package/src/components/TreeView/examples/TreeViewMultiselectable.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewSelectionExpansion.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewSingleSelectable.tsx +3 -3
- package/src/components/TreeView/examples/TreeViewWithActionItems.tsx +3 -2
- package/src/components/TreeView/examples/TreeViewWithBadges.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithCheckboxes.tsx +3 -2
- package/src/components/TreeView/examples/TreeViewWithCustomBadges.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithIconPerItem.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithIcons.tsx +2 -1
- package/src/components/TreeView/examples/TreeViewWithMemoization.tsx +3 -3
- package/src/components/TreeView/examples/TreeViewWithSearch.tsx +4 -3
- package/src/components/Truncate/Truncate.tsx +12 -3
- package/src/components/Wizard/examples/Wizard.md +1 -0
- package/src/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +3 -2
- package/src/components/Wizard/examples/WizardGetCurrentStep.tsx +2 -1
- package/src/components/Wizard/examples/WizardStepDrawerContent.tsx +3 -2
- package/src/components/Wizard/examples/WizardStepStatus.tsx +5 -4
- package/src/components/Wizard/examples/WizardToggleStepVisibility.tsx +4 -3
- package/src/components/Wizard/examples/WizardValidateOnButtonPress.tsx +8 -7
- package/src/components/Wizard/examples/WizardWithCustomFooter.tsx +3 -2
- package/src/components/Wizard/examples/WizardWithSubmitProgress.tsx +5 -4
- package/src/components/Wizard/examples/WizardWithinModal.tsx +2 -1
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/BackToTop.md +1 -0
- package/src/demos/Button.md +3 -1
- package/src/demos/CustomMenus/ApplicationLauncher.md +2 -0
- package/src/demos/CustomMenus/ContextSelector.md +1 -0
- package/src/demos/CustomMenus/CustomMenus.md +2 -0
- package/src/demos/CustomMenus/OptionsMenu.md +1 -0
- package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx +9 -9
- package/src/demos/CustomMenus/examples/ContextSelectorDemo.tsx +7 -6
- package/src/demos/CustomMenus/examples/DateSelectDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx +8 -7
- package/src/demos/CustomMenus/examples/FavoritesDemo.tsx +2 -2
- package/src/demos/CustomMenus/examples/FlyoutDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/InlineSearchFilterMenuDemo.tsx +6 -5
- package/src/demos/CustomMenus/examples/OptionsMenuDemo.tsx +4 -3
- package/src/demos/CustomMenus/examples/TreeViewMenuDemo.tsx +5 -4
- package/src/demos/DataList/examples/DataListActionable.tsx +3 -2
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +6 -6
- package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +4 -4
- package/src/demos/DataListDemo.md +2 -0
- package/src/demos/DatePicker/DatePicker.md +3 -2
- package/src/demos/DateTimePicker.md +4 -2
- package/src/demos/DescriptionList/DescriptionList.md +1 -0
- package/src/demos/DescriptionList/examples/DescriptionListInDrawer.tsx +4 -3
- package/src/demos/ExpandableSection/ExpandableSection.md +2 -0
- package/src/demos/ExpandableSection/examples/ExpandableTextDemo.tsx +2 -1
- package/src/demos/Filters/FilterDemos.md +1 -1
- package/src/demos/Filters/examples/FilterAttributeSearch.tsx +29 -29
- package/src/demos/Filters/examples/FilterCheckboxSelect.tsx +16 -16
- package/src/demos/Filters/examples/FilterFaceted.tsx +17 -17
- package/src/demos/Filters/examples/FilterMixedSelectGroup.tsx +22 -22
- package/src/demos/Filters/examples/FilterSameSelectGroup.tsx +22 -22
- package/src/demos/Filters/examples/FilterSearchInput.tsx +11 -11
- package/src/demos/Filters/examples/FilterSingleSelect.tsx +17 -17
- package/src/demos/HelperText.md +1 -0
- package/src/demos/JumpLinks.md +5 -3
- package/src/demos/LabelGroupDemos.md +1 -0
- package/src/demos/Masthead.md +1 -0
- package/src/demos/MultipleFileUploadDemos.md +1 -1
- package/src/demos/Nav.md +1 -0
- package/src/demos/NotificationDrawer/NotificationDrawer.md +2 -0
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +10 -13
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +13 -16
- package/src/demos/Page.md +1 -0
- package/src/demos/PasswordGenerator.md +9 -7
- package/src/demos/PasswordStrength.md +1 -0
- package/src/demos/PrimaryDetail.md +1 -0
- package/src/demos/ProgressDemo.md +5 -3
- package/src/demos/ProgressStepperDemo.md +3 -1
- package/src/demos/RTL/RTL.md +1 -0
- package/src/demos/RTL/examples/PaginatedTable.jsx +16 -15
- package/src/demos/SearchInput/SearchInput.md +24 -22
- package/src/demos/Tabs.md +6 -3
- package/src/demos/TextInputGroupDemo.md +1 -0
- package/src/demos/Toolbar.md +1 -0
- package/src/demos/Wizard/WizardDemo.md +2 -0
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +7 -1
- package/src/demos/examples/Card/CardAggregateStatus.tsx +2 -2
- package/src/demos/examples/Card/CardEventsView.tsx +2 -2
- package/src/demos/examples/Card/CardHorizontalGrid.tsx +3 -2
- package/src/demos/examples/Card/CardLogView.tsx +2 -2
- package/src/demos/examples/Card/CardNested.tsx +5 -4
- package/src/demos/examples/Card/CardStatus.tsx +3 -2
- package/src/demos/examples/Card/CardStatusTabbed.tsx +2 -1
- package/src/demos/examples/Card/CardWithAccordion.tsx +2 -1
- package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +5 -4
- package/src/demos/examples/HelperText/HelperTextDynamic.tsx +4 -3
- package/src/demos/examples/HelperText/HelperTextStatic.tsx +2 -1
- package/src/demos/examples/HelperText/HelperTextStaticTextDynamicVariant.tsx +4 -3
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +9 -8
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +16 -16
- package/src/demos/examples/MultipleFileUpload/MultipleFileUploadRejectedFile.tsx +8 -7
- package/src/demos/examples/Nav/NavDrilldown.tsx +3 -3
- package/src/demos/examples/Nav/NavExpandable.tsx +3 -3
- package/src/demos/examples/Nav/NavFlyout.tsx +8 -7
- package/src/demos/examples/Nav/NavGrouped.tsx +2 -1
- package/src/demos/examples/Nav/NavHorizontal.tsx +5 -5
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +6 -6
- package/src/demos/examples/Nav/NavManual.tsx +8 -8
- package/src/demos/examples/Nav/NavWithSubnav.tsx +3 -3
- package/src/demos/examples/Page/PageContextSelector.tsx +7 -6
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +5 -4
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +5 -4
- package/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx +2 -2
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +15 -15
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailDataListInCard.tsx +5 -5
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +9 -9
- package/src/demos/examples/PrimaryDetail/PrimaryDetailSimpleListInCard.tsx +3 -3
- package/src/demos/examples/Tabs/ModalTabs.tsx +7 -7
- package/src/demos/examples/Tabs/NestedTabs.tsx +3 -2
- package/src/demos/examples/Tabs/NestedUnindentedTabs.tsx +3 -2
- package/src/demos/examples/Tabs/TabsAndTable.tsx +5 -5
- package/src/demos/examples/TextInputGroup/AttributeValueFiltering.tsx +10 -9
- package/src/demos/examples/TextInputGroup/AutoCompleteSearch.tsx +9 -8
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +17 -17
- package/src/demos/examples/Wizard/InModalWithDrawer.tsx +3 -2
- package/src/demos/examples/Wizard/InModalWithDrawerInformationalStep.tsx +3 -2
- package/src/demos/examples/Wizard/InPageWithDrawer.tsx +4 -4
- package/src/demos/examples/Wizard/InPageWithDrawerInformationalStep.tsx +4 -4
- package/src/deprecated/components/Chip/examples/Chip.md +1 -1
- package/src/deprecated/components/Chip/examples/ChipDefault.tsx +2 -2
- package/src/deprecated/components/Chip/examples/ChipGroupInline.tsx +2 -1
- package/src/deprecated/components/Chip/examples/ChipGroupRemovableCategories.tsx +3 -3
- package/src/deprecated/components/Chip/examples/ChipGroupWithCategories.tsx +2 -1
- package/src/deprecated/components/DragDrop/examples/DragDrop.md +1 -0
- package/src/deprecated/components/DragDrop/examples/DragDropBasic.tsx +2 -1
- package/src/deprecated/components/DragDrop/examples/DragDropMultipleLists.tsx +2 -1
- package/src/deprecated/components/Modal/examples/Modal.md +1 -1
- package/src/deprecated/components/Modal/examples/ModalBasic.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomFocus.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomHeaderFooter.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomWidth.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalLarge.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalMedium.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalNoHeaderFooter.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalSmall.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalTitleIcon.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalTopAligned.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithDescription.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithDropdown.tsx +3 -3
- package/src/deprecated/components/Modal/examples/ModalWithForm.tsx +8 -8
- package/src/deprecated/components/Modal/examples/ModalWithHelp.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithOverflowingContent.tsx +2 -2
- package/src/deprecated/components/Modal/examples/ModalWithWizard.tsx +2 -2
- package/src/deprecated/components/Tile/examples/Tile.md +5 -2
- package/src/deprecated/components/Wizard/examples/Wizard.md +1 -1
- package/src/deprecated/components/Wizard/examples/WizardEnabledOnFormValidation.tsx +8 -7
- package/src/deprecated/components/Wizard/examples/WizardFinished.tsx +3 -2
- package/src/deprecated/components/Wizard/examples/WizardInModal.tsx +2 -2
- package/src/deprecated/components/Wizard/examples/WizardIncrementallyEnabledSteps.tsx +2 -1
- package/src/deprecated/components/Wizard/examples/WizardValidateOnButtonPress.tsx +9 -8
- package/src/deprecated/components/Wizard/examples/WizardWithDrawer.tsx +3 -3
- package/src/helpers/resizeObserver.tsx +2 -2
- package/src/layouts/Bullseye/__tests__/Bullseye.test.tsx +1 -2
|
@@ -7,7 +7,7 @@ ouia: true
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
import './alert.css';
|
|
10
|
-
import { Fragment, useState } from 'react';
|
|
10
|
+
import { Fragment, useEffect, useState } from 'react';
|
|
11
11
|
import UsersIcon from '@patternfly/react-icons/dist/esm/icons/users-icon';
|
|
12
12
|
import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
|
|
13
13
|
import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
|
|
@@ -15,30 +15,35 @@ import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon';
|
|
|
15
15
|
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
|
|
16
16
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
17
17
|
|
|
18
|
+
Micro animations have been added for `<Alert>` components within an `<AlertGroup>`. By default, you must opt into animations, since they can require updates to tests. To enable or disable animations as needed, use the `hasAnimations` property. With animations enabled, we recommend you ensure that dynamically-added alerts are prepended to a list of alerts, rather than appended to the end of it.
|
|
19
|
+
|
|
20
|
+
Micro animations are turned on for all examples and demos where alerts are dynamically added.
|
|
21
|
+
|
|
18
22
|
## Alert examples
|
|
19
23
|
|
|
20
24
|
### Alert variants
|
|
21
25
|
|
|
22
26
|
PatternFly supports several alert variants for different scenarios. Each variant has an associated status icon, background, and alert title coded to communicate the severity of an alert. Use the `variant` property to apply the following styling options. If no `variant` is specified, then the variant will be set to "custom".
|
|
23
27
|
|
|
24
|
-
| Variant | Description
|
|
25
|
-
|
|
26
|
-
| Custom
|
|
27
|
-
| Info
|
|
28
|
-
| Success | Use to indicate that a task or process has been completed successfully
|
|
29
|
-
| Warning | Use to indicate that a non-critical error has occurred|
|
|
30
|
-
| Danger
|
|
28
|
+
| Variant | Description |
|
|
29
|
+
| ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| Custom | Use for generic messages that should have a custom color set by the associated CSS variable. Should be used when the message has no associated severity. |
|
|
31
|
+
| Info | Use for general informational messages |
|
|
32
|
+
| Success | Use to indicate that a task or process has been completed successfully |
|
|
33
|
+
| Warning | Use to indicate that a non-critical error has occurred |
|
|
34
|
+
| Danger | Use to indicate that a critical or blocking error has occurred |
|
|
31
35
|
|
|
32
36
|
```ts
|
|
37
|
+
import { Fragment } from 'react';
|
|
33
38
|
import { Alert } from '@patternfly/react-core';
|
|
34
39
|
|
|
35
|
-
<
|
|
40
|
+
<Fragment>
|
|
36
41
|
<Alert title="Custom alert title" ouiaId="CustomAlert" />
|
|
37
42
|
<Alert variant="info" title="Info alert title" ouiaId="InfoAlert" />
|
|
38
43
|
<Alert variant="success" title="Success alert title" ouiaId="SuccessAlert" />
|
|
39
44
|
<Alert variant="warning" title="Warning alert title" ouiaId="WarningAlert" />
|
|
40
45
|
<Alert variant="danger" title="Danger alert title" ouiaId="DangerAlert" />
|
|
41
|
-
</
|
|
46
|
+
</Fragment>;
|
|
42
47
|
```
|
|
43
48
|
|
|
44
49
|
### Alert variations
|
|
@@ -56,14 +61,15 @@ PatternFly supports several properties and variations that can be used to add ex
|
|
|
56
61
|
- If there is a description passed via `children` prop, then the `component` prop should be a heading element. Headings should be ordered by their level and heading levels should not be skipped. For example, a heading of an `h2` level should not be followed directly by an `h4`.
|
|
57
62
|
|
|
58
63
|
```ts
|
|
64
|
+
import { Fragment } from 'react';
|
|
59
65
|
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
60
66
|
|
|
61
|
-
<
|
|
67
|
+
<Fragment>
|
|
62
68
|
<Alert
|
|
63
69
|
variant="success"
|
|
64
70
|
title="Success alert title"
|
|
65
71
|
actionLinks={
|
|
66
|
-
<
|
|
72
|
+
<Fragment>
|
|
67
73
|
<AlertActionLink component="a" href="#">
|
|
68
74
|
View details
|
|
69
75
|
</AlertActionLink>
|
|
@@ -72,7 +78,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
72
78
|
>
|
|
73
79
|
Ignore
|
|
74
80
|
</AlertActionLink>
|
|
75
|
-
</
|
|
81
|
+
</Fragment>
|
|
76
82
|
}
|
|
77
83
|
>
|
|
78
84
|
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
@@ -95,7 +101,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
95
101
|
<Alert variant="success" title="h6 Success alert title" component="h6">
|
|
96
102
|
<p>Short alert description.</p>
|
|
97
103
|
</Alert>
|
|
98
|
-
</
|
|
104
|
+
</Fragment>;
|
|
99
105
|
```
|
|
100
106
|
|
|
101
107
|
### Alert timeout
|
|
@@ -103,23 +109,23 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
103
109
|
Use the `timeout` property to automatically dismiss an alert after a period of time. If set to `true`, the `timeout` will be 8000 milliseconds. Provide a specific value to dismiss the alert after a different number of milliseconds.
|
|
104
110
|
|
|
105
111
|
```ts
|
|
112
|
+
import { Fragment, useState } from 'react';
|
|
106
113
|
import { Alert, AlertActionLink, AlertGroup, Button } from '@patternfly/react-core';
|
|
107
114
|
|
|
108
115
|
const AlertTimeout: React.FunctionComponent = () => {
|
|
109
|
-
const [alerts, setAlerts] =
|
|
110
|
-
const [newAlertKey, setNewAlertKey] =
|
|
116
|
+
const [alerts, setAlerts] = useState<React.ReactNode[]>([]);
|
|
117
|
+
const [newAlertKey, setNewAlertKey] = useState<number>(0);
|
|
111
118
|
|
|
112
119
|
const onClick = () => {
|
|
113
120
|
const timeout = 8000;
|
|
114
121
|
setNewAlertKey((key) => key + 1);
|
|
115
122
|
setAlerts((prevAlerts) => {
|
|
116
123
|
return [
|
|
117
|
-
...prevAlerts,
|
|
118
124
|
<Alert
|
|
119
125
|
title="Default timeout Alert"
|
|
120
126
|
timeout={timeout}
|
|
121
127
|
actionLinks={
|
|
122
|
-
<
|
|
128
|
+
<Fragment>
|
|
123
129
|
<AlertActionLink component="a" href="#">
|
|
124
130
|
View details
|
|
125
131
|
</AlertActionLink>
|
|
@@ -128,26 +134,26 @@ const AlertTimeout: React.FunctionComponent = () => {
|
|
|
128
134
|
>
|
|
129
135
|
Ignore
|
|
130
136
|
</AlertActionLink>
|
|
131
|
-
</
|
|
137
|
+
</Fragment>
|
|
132
138
|
}
|
|
133
139
|
key={newAlertKey}
|
|
134
140
|
>
|
|
135
141
|
This alert will dismiss after {`${timeout / 1000} seconds`}
|
|
136
|
-
</Alert
|
|
142
|
+
</Alert>, ...prevAlerts
|
|
137
143
|
];
|
|
138
144
|
});
|
|
139
145
|
};
|
|
140
146
|
|
|
141
147
|
return (
|
|
142
|
-
<
|
|
148
|
+
<Fragment>
|
|
143
149
|
<Button variant="secondary" onClick={onClick}>
|
|
144
150
|
Add alert
|
|
145
151
|
</Button>
|
|
146
152
|
<Button variant="secondary" onClick={() => setAlerts([])}>
|
|
147
153
|
Remove all alerts
|
|
148
154
|
</Button>
|
|
149
|
-
<AlertGroup isLiveRegion>{alerts}</AlertGroup>
|
|
150
|
-
</
|
|
155
|
+
<AlertGroup hasAnimations isLiveRegion>{alerts}</AlertGroup>
|
|
156
|
+
</Fragment>
|
|
151
157
|
);
|
|
152
158
|
};
|
|
153
159
|
```
|
|
@@ -161,9 +167,10 @@ It is not recommended to use an expandable alert with a `timeout` in a [toast al
|
|
|
161
167
|
See the [toast alert considerations](/components/alert/accessibility#toast-alerts) section of the alert accessibility documentation to understand the accessibility risks associated with using toast alerts.
|
|
162
168
|
|
|
163
169
|
```ts
|
|
170
|
+
import { Fragment } from 'react';
|
|
164
171
|
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
165
172
|
|
|
166
|
-
<
|
|
173
|
+
<Fragment>
|
|
167
174
|
<Alert
|
|
168
175
|
isExpandable
|
|
169
176
|
variant="success"
|
|
@@ -179,7 +186,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
179
186
|
variant="success"
|
|
180
187
|
title="Success alert title"
|
|
181
188
|
actionLinks={
|
|
182
|
-
<
|
|
189
|
+
<Fragment>
|
|
183
190
|
<AlertActionLink component="a" href="#">
|
|
184
191
|
View details
|
|
185
192
|
</AlertActionLink>
|
|
@@ -188,12 +195,12 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
188
195
|
>
|
|
189
196
|
Ignore
|
|
190
197
|
</AlertActionLink>
|
|
191
|
-
</
|
|
198
|
+
</Fragment>
|
|
192
199
|
}
|
|
193
200
|
>
|
|
194
201
|
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
195
202
|
</Alert>
|
|
196
|
-
</
|
|
203
|
+
</Fragment>;
|
|
197
204
|
```
|
|
198
205
|
|
|
199
206
|
### Truncated alerts
|
|
@@ -201,9 +208,10 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
201
208
|
Use the `truncateTitle` property to shorten a long `title`. Set `truncateTitle` equal to a number (passed in as `{n}`) to reduce the number of lines of text in the alert's `title`. Users may hover over or tab to a truncated `title` to see the full message in a tooltip.
|
|
202
209
|
|
|
203
210
|
```ts
|
|
211
|
+
import { Fragment } from 'react';
|
|
204
212
|
import { Alert } from '@patternfly/react-core';
|
|
205
213
|
|
|
206
|
-
<
|
|
214
|
+
<Fragment>
|
|
207
215
|
<Alert
|
|
208
216
|
variant="info"
|
|
209
217
|
truncateTitle={1}
|
|
@@ -225,7 +233,7 @@ import { Alert } from '@patternfly/react-core';
|
|
|
225
233
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur pellentesque neque cursus enim fringilla tincidunt. Proin lobortis aliquam dictum. Nam vel ullamcorper nulla, nec blandit dolor. Vivamus pellentesque neque justo, nec accumsan nulla rhoncus id. Suspendisse mollis, tortor quis faucibus volutpat, sem leo fringilla turpis, ac lacinia augue metus in nulla. Cras vestibulum lacinia orci. Pellentesque sodales consequat interdum. Sed porttitor tincidunt metus nec iaculis. Pellentesque non commodo justo. Morbi feugiat rhoncus neque, vitae facilisis diam aliquam nec. Sed dapibus vitae quam at tristique. Nunc vel commodo mi. Mauris et rhoncus leo.
|
|
226
234
|
`}
|
|
227
235
|
/>
|
|
228
|
-
</
|
|
236
|
+
</Fragment>;
|
|
229
237
|
```
|
|
230
238
|
|
|
231
239
|
### Custom icons
|
|
@@ -233,6 +241,7 @@ import { Alert } from '@patternfly/react-core';
|
|
|
233
241
|
Use the `customIcon` property to replace a default alert icon with a custom icon.
|
|
234
242
|
|
|
235
243
|
```ts
|
|
244
|
+
import { Fragment } from 'react';
|
|
236
245
|
import { Alert } from '@patternfly/react-core';
|
|
237
246
|
import UsersIcon from '@patternfly/react-icons/dist/esm/icons/users-icon';
|
|
238
247
|
import BoxIcon from '@patternfly/react-icons/dist/esm/icons/box-icon';
|
|
@@ -240,13 +249,13 @@ import DatabaseIcon from '@patternfly/react-icons/dist/esm/icons/database-icon';
|
|
|
240
249
|
import ServerIcon from '@patternfly/react-icons/dist/esm/icons/server-icon';
|
|
241
250
|
import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
|
|
242
251
|
|
|
243
|
-
<
|
|
252
|
+
<Fragment>
|
|
244
253
|
<Alert customIcon={<UsersIcon />} title="Default alert title" />
|
|
245
254
|
<Alert customIcon={<BoxIcon />} variant="info" title="Info alert title" />
|
|
246
255
|
<Alert customIcon={<DatabaseIcon />} variant="success" title="Success alert title" />
|
|
247
256
|
<Alert customIcon={<ServerIcon />} variant="warning" title="Warning alert title" />
|
|
248
257
|
<Alert customIcon={<LaptopIcon />} variant="danger" title="Danger alert title" />
|
|
249
|
-
</
|
|
258
|
+
</Fragment>;
|
|
250
259
|
```
|
|
251
260
|
|
|
252
261
|
### Inline alerts variants
|
|
@@ -254,14 +263,15 @@ import LaptopIcon from '@patternfly/react-icons/dist/esm/icons/laptop-icon';
|
|
|
254
263
|
Use inline alerts to display an alert inline with content. All alert variants may use the `isInline` property to position alerts in content-heavy areas, such as within forms, wizards, or drawers.
|
|
255
264
|
|
|
256
265
|
```ts
|
|
266
|
+
import { Fragment } from 'react';
|
|
257
267
|
import { Alert } from '@patternfly/react-core';
|
|
258
|
-
<
|
|
268
|
+
<Fragment>
|
|
259
269
|
<Alert variant="custom" isInline title="Custom inline alert title" />
|
|
260
270
|
<Alert variant="info" isInline title="Info inline alert title" />
|
|
261
271
|
<Alert variant="success" isInline title="Success inline alert title" />
|
|
262
272
|
<Alert variant="warning" isInline title="Warning inline alert title" />
|
|
263
273
|
<Alert variant="danger" isInline title="Danger inline alert title" />
|
|
264
|
-
</
|
|
274
|
+
</Fragment>;
|
|
265
275
|
```
|
|
266
276
|
|
|
267
277
|
### Inline alert variations
|
|
@@ -269,14 +279,15 @@ import { Alert } from '@patternfly/react-core';
|
|
|
269
279
|
All general alert variations can use the `isInline` property to apply inline styling.
|
|
270
280
|
|
|
271
281
|
```ts
|
|
282
|
+
import { Fragment } from 'react';
|
|
272
283
|
import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/react-core';
|
|
273
|
-
<
|
|
284
|
+
<Fragment>
|
|
274
285
|
<Alert
|
|
275
286
|
isInline
|
|
276
287
|
variant="success"
|
|
277
288
|
title="Success alert title"
|
|
278
289
|
actionLinks={
|
|
279
|
-
<
|
|
290
|
+
<Fragment>
|
|
280
291
|
<AlertActionLink component="a" href="#">
|
|
281
292
|
View details
|
|
282
293
|
</AlertActionLink>
|
|
@@ -285,7 +296,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
285
296
|
>
|
|
286
297
|
Ignore
|
|
287
298
|
</AlertActionLink>
|
|
288
|
-
</
|
|
299
|
+
</Fragment>
|
|
289
300
|
}
|
|
290
301
|
>
|
|
291
302
|
<p>Success alert description. This should tell the user more information about the alert.</p>
|
|
@@ -309,7 +320,7 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
309
320
|
<Alert isInline variant="success" title="h6 Success alert title" component="h6">
|
|
310
321
|
<p>Short alert description.</p>
|
|
311
322
|
</Alert>
|
|
312
|
-
</
|
|
323
|
+
</Fragment>;
|
|
313
324
|
```
|
|
314
325
|
|
|
315
326
|
### Plain inline alert variants
|
|
@@ -317,14 +328,15 @@ import { Alert, AlertActionCloseButton, AlertActionLink } from '@patternfly/reac
|
|
|
317
328
|
Use the `isPlain` property to make any inline alert plain. Plain styling removes the colored background but keeps colored text and icons.
|
|
318
329
|
|
|
319
330
|
```ts
|
|
331
|
+
import { Fragment } from 'react';
|
|
320
332
|
import { Alert } from '@patternfly/react-core';
|
|
321
|
-
<
|
|
333
|
+
<Fragment>
|
|
322
334
|
<Alert variant="custom" isInline isPlain title="Custom inline alert title" />
|
|
323
335
|
<Alert variant="info" isInline isPlain title="Info inline alert title" />
|
|
324
336
|
<Alert variant="success" isInline isPlain title="Success inline alert title" />
|
|
325
337
|
<Alert variant="warning" isInline isPlain title="Warning inline alert title" />
|
|
326
338
|
<Alert variant="danger" isInline isPlain title="Danger inline alert title" />
|
|
327
|
-
</
|
|
339
|
+
</Fragment>;
|
|
328
340
|
```
|
|
329
341
|
|
|
330
342
|
### Plain inline alert variations
|
|
@@ -345,9 +357,10 @@ Live region alerts allow you to expose dynamic content changes in a way that can
|
|
|
345
357
|
By default, `isLiveRegion`alerts are static.
|
|
346
358
|
|
|
347
359
|
```ts
|
|
360
|
+
import { Fragment } from 'react';
|
|
348
361
|
import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
|
|
349
362
|
|
|
350
|
-
<
|
|
363
|
+
<Fragment>
|
|
351
364
|
<Alert
|
|
352
365
|
isLiveRegion
|
|
353
366
|
variant="info"
|
|
@@ -369,7 +382,7 @@ import { Alert, AlertActionCloseButton } from '@patternfly/react-core';
|
|
|
369
382
|
You can alternatively omit the <code>isLiveRegion</code> prop to specify ARIA attributes and CSS manually on the
|
|
370
383
|
containing element.
|
|
371
384
|
</Alert>
|
|
372
|
-
</
|
|
385
|
+
</Fragment>;
|
|
373
386
|
```
|
|
374
387
|
|
|
375
388
|
### Dynamic live region alerts
|
|
@@ -396,11 +409,11 @@ An alert group stacks and positions 2 or more alerts in a live region, either in
|
|
|
396
409
|
|
|
397
410
|
Alert groups can be one of the following variants:
|
|
398
411
|
|
|
399
|
-
| Variant
|
|
400
|
-
|
|
|
412
|
+
| Variant | Description |
|
|
413
|
+
| ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
401
414
|
| Static inline | Static inline alert groups contain alerts that appear when the page loads, and are seen within the normal page content flow. These groups should not contain alerts that will dynamically appear or update. |
|
|
402
|
-
| Toast
|
|
403
|
-
| Dynamic
|
|
415
|
+
| Toast | Toast alert groups contain alerts that typically appear in response to an asynchronous event or user action. These groups are positioned on top of other content at the top right of the page. |
|
|
416
|
+
| Dynamic | Dynamic alert groups contain alerts that typically appear in response to a user action, and are seen within the normal page content flow. |
|
|
404
417
|
|
|
405
418
|
Dynamic alerts that are generated after the page initially loads must be appended to either a toast or dynamic `AlertGroup`, both of which must use the `isLiveRegion` property. New alerts appended to a toast or dynamic group will be announced by assistive technologies the moment the change happens. For information about customizing this announcement, read the [aria-atomic and aria-relevant](/components/alert/accessibility#aria-atomic-and-aria-relevant) section of the alert accessibility documentation.
|
|
406
419
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useEffect, useState } from 'react';
|
|
2
2
|
import { Alert, AlertGroup, AlertVariant, ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
interface AlertInfo {
|
|
@@ -8,15 +8,15 @@ interface AlertInfo {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const AsyncLiveRegionAlert: React.FunctionComponent = () => {
|
|
11
|
-
const [alerts, setAlerts] =
|
|
12
|
-
const [isActive, setIsActive] =
|
|
11
|
+
const [alerts, setAlerts] = useState<AlertInfo[]>([]);
|
|
12
|
+
const [isActive, setIsActive] = useState(false);
|
|
13
13
|
const getUniqueId: () => number = () => new Date().getTime();
|
|
14
14
|
|
|
15
15
|
const addAlert = (alertInfo: AlertInfo) => {
|
|
16
|
-
setAlerts((prevAlertInfo) => [...prevAlertInfo
|
|
16
|
+
setAlerts((prevAlertInfo) => [alertInfo, ...prevAlertInfo]);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
useEffect(() => {
|
|
20
20
|
let timer = null;
|
|
21
21
|
if (isActive) {
|
|
22
22
|
timer = setInterval(() => {
|
|
@@ -51,7 +51,7 @@ export const AsyncLiveRegionAlert: React.FunctionComponent = () => {
|
|
|
51
51
|
onChange={() => setIsActive(false)}
|
|
52
52
|
/>
|
|
53
53
|
</ToggleGroup>
|
|
54
|
-
<AlertGroup isLiveRegion>
|
|
54
|
+
<AlertGroup hasAnimations isLiveRegion>
|
|
55
55
|
{alerts.map(({ title, variant, key }) => (
|
|
56
56
|
<Alert variant={variant} title={title} key={key} />
|
|
57
57
|
))}
|
|
@@ -14,7 +14,7 @@ export const DynamicLiveRegionAlert: React.FunctionComponent = () => {
|
|
|
14
14
|
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
15
15
|
|
|
16
16
|
const addAlert = (alertInfo: AlertInfo) => {
|
|
17
|
-
setAlerts((prevAlertInfo) => [...prevAlertInfo
|
|
17
|
+
setAlerts((prevAlertInfo) => [alertInfo, ...prevAlertInfo]);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const addSuccessAlert = () => {
|
|
@@ -52,7 +52,7 @@ export const DynamicLiveRegionAlert: React.FunctionComponent = () => {
|
|
|
52
52
|
Add single danger alert
|
|
53
53
|
</button>
|
|
54
54
|
</InputGroup>
|
|
55
|
-
<AlertGroup isLiveRegion aria-live="polite" aria-relevant="additions text" aria-atomic="false">
|
|
55
|
+
<AlertGroup hasAnimations isLiveRegion aria-live="polite" aria-relevant="additions text" aria-atomic="false">
|
|
56
56
|
{alerts.map(({ title, variant, key }) => (
|
|
57
57
|
<Alert variant={variant} title={title} key={key} />
|
|
58
58
|
))}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
13
13
|
|
|
14
14
|
export const AlertGroupAsync: React.FunctionComponent = () => {
|
|
15
|
-
const [alerts, setAlerts] =
|
|
16
|
-
const [isRunning, setIsRunning] =
|
|
15
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
16
|
+
const [isRunning, setIsRunning] = useState(false);
|
|
17
17
|
|
|
18
18
|
const btnClasses = [buttonStyles.button, buttonStyles.modifiers.secondary].join(' ');
|
|
19
19
|
|
|
@@ -21,12 +21,12 @@ export const AlertGroupAsync: React.FunctionComponent = () => {
|
|
|
21
21
|
|
|
22
22
|
const addAlert = () => {
|
|
23
23
|
setAlerts((prevAlerts) => [
|
|
24
|
-
...prevAlerts,
|
|
25
24
|
{
|
|
26
25
|
title: `Async notification ${prevAlerts.length + 1} was added to the queue.`,
|
|
27
26
|
variant: 'danger',
|
|
28
27
|
key: getUniqueId()
|
|
29
|
-
}
|
|
28
|
+
},
|
|
29
|
+
...prevAlerts
|
|
30
30
|
]);
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -58,7 +58,7 @@ export const AlertGroupAsync: React.FunctionComponent = () => {
|
|
|
58
58
|
</button>
|
|
59
59
|
</InputGroupItem>
|
|
60
60
|
</InputGroup>
|
|
61
|
-
<AlertGroup isToast isLiveRegion aria-live="assertive">
|
|
61
|
+
<AlertGroup hasAnimations isToast isLiveRegion aria-live="assertive">
|
|
62
62
|
{alerts.map(({ title, variant, key }) => (
|
|
63
63
|
<Alert
|
|
64
64
|
variant={AlertVariant[variant]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
12
|
|
|
13
13
|
export const AlertGroupMultipleDynamic: React.FunctionComponent = () => {
|
|
14
|
-
const [alerts, setAlerts] =
|
|
14
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
15
15
|
|
|
16
16
|
const addAlerts = (incomingAlerts: Partial<AlertProps>[]) => {
|
|
17
|
-
setAlerts((prevAlerts) => [...
|
|
17
|
+
setAlerts((prevAlerts) => [...incomingAlerts, ...prevAlerts]);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const removeAlert = (key: React.Key) => {
|
|
@@ -42,7 +42,7 @@ export const AlertGroupMultipleDynamic: React.FunctionComponent = () => {
|
|
|
42
42
|
</button>
|
|
43
43
|
</InputGroupItem>
|
|
44
44
|
</InputGroup>
|
|
45
|
-
<AlertGroup isToast isLiveRegion>
|
|
45
|
+
<AlertGroup hasAnimations isToast isLiveRegion>
|
|
46
46
|
{alerts.map(({ title, variant, key }) => (
|
|
47
47
|
<Alert
|
|
48
48
|
variant={AlertVariant[variant]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
12
|
|
|
13
13
|
export const AlertGroupSingularDynamic: React.FunctionComponent = () => {
|
|
14
|
-
const [alerts, setAlerts] =
|
|
14
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
15
15
|
|
|
16
16
|
const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
|
|
17
|
-
setAlerts((prevAlerts) => [
|
|
17
|
+
setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const removeAlert = (key: React.Key) => {
|
|
@@ -56,7 +56,7 @@ export const AlertGroupSingularDynamic: React.FunctionComponent = () => {
|
|
|
56
56
|
</button>
|
|
57
57
|
</InputGroupItem>
|
|
58
58
|
</InputGroup>
|
|
59
|
-
<AlertGroup isLiveRegion>
|
|
59
|
+
<AlertGroup hasAnimations isLiveRegion>
|
|
60
60
|
{alerts.map(({ title, variant, key }) => (
|
|
61
61
|
<Alert
|
|
62
62
|
isInline
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
12
|
|
|
13
13
|
export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () => {
|
|
14
|
-
const [alerts, setAlerts] =
|
|
15
|
-
const [overflowMessage, setOverflowMessage] =
|
|
14
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
15
|
+
const [overflowMessage, setOverflowMessage] = useState<string>('');
|
|
16
16
|
|
|
17
17
|
const maxDisplayed = 4;
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () =>
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
|
|
28
|
-
setAlerts((prevAlerts) => [
|
|
28
|
+
setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
|
|
29
29
|
setOverflowMessage(getOverflowMessage(alerts.length + 1));
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -75,7 +75,7 @@ export const AlertGroupSingularDynamicOverflow: React.FunctionComponent = () =>
|
|
|
75
75
|
</button>
|
|
76
76
|
</InputGroupItem>
|
|
77
77
|
</InputGroup>
|
|
78
|
-
<AlertGroup isLiveRegion onOverflowClick={onOverflowClick} overflowMessage={overflowMessage}>
|
|
78
|
+
<AlertGroup hasAnimations isLiveRegion onOverflowClick={onOverflowClick} overflowMessage={overflowMessage}>
|
|
79
79
|
{alerts.slice(0, maxDisplayed).map(({ key, variant, title }) => (
|
|
80
80
|
<Alert
|
|
81
81
|
isInline
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
12
|
|
|
13
13
|
export const AlertGroupToast: React.FunctionComponent = () => {
|
|
14
|
-
const [alerts, setAlerts] =
|
|
14
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
15
15
|
|
|
16
16
|
const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
|
|
17
|
-
setAlerts((prevAlerts) => [
|
|
17
|
+
setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const removeAlert = (key: React.Key) => {
|
|
@@ -56,7 +56,7 @@ export const AlertGroupToast: React.FunctionComponent = () => {
|
|
|
56
56
|
</button>
|
|
57
57
|
</InputGroupItem>
|
|
58
58
|
</InputGroup>
|
|
59
|
-
<AlertGroup isToast isLiveRegion>
|
|
59
|
+
<AlertGroup hasAnimations isToast isLiveRegion>
|
|
60
60
|
{alerts.map(({ key, variant, title }) => (
|
|
61
61
|
<Alert
|
|
62
62
|
variant={AlertVariant[variant]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Alert,
|
|
4
4
|
AlertProps,
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
import buttonStyles from '@patternfly/react-styles/css/components/Button/button';
|
|
12
12
|
|
|
13
13
|
export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
|
|
14
|
-
const [alerts, setAlerts] =
|
|
15
|
-
const [overflowMessage, setOverflowMessage] =
|
|
14
|
+
const [alerts, setAlerts] = useState<Partial<AlertProps>[]>([]);
|
|
15
|
+
const [overflowMessage, setOverflowMessage] = useState<string>('');
|
|
16
16
|
|
|
17
17
|
const maxDisplayed = 4;
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const addAlert = (title: string, variant: AlertProps['variant'], key: React.Key) => {
|
|
28
|
-
setAlerts((prevAlerts) => [
|
|
28
|
+
setAlerts((prevAlerts) => [{ title, variant, key }, ...prevAlerts]);
|
|
29
29
|
setOverflowMessage(getOverflowMessage(alerts.length + 1));
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -75,7 +75,13 @@ export const AlertGroupToastOverflowCapture: React.FunctionComponent = () => {
|
|
|
75
75
|
</button>
|
|
76
76
|
</InputGroupItem>
|
|
77
77
|
</InputGroup>
|
|
78
|
-
<AlertGroup
|
|
78
|
+
<AlertGroup
|
|
79
|
+
hasAnimations
|
|
80
|
+
isToast
|
|
81
|
+
isLiveRegion
|
|
82
|
+
onOverflowClick={onOverflowClick}
|
|
83
|
+
overflowMessage={overflowMessage}
|
|
84
|
+
>
|
|
79
85
|
{alerts.slice(0, maxDisplayed).map(({ key, variant, title }) => (
|
|
80
86
|
<Alert
|
|
81
87
|
variant={AlertVariant[variant]}
|
|
@@ -6,6 +6,7 @@ propComponents: ['Breadcrumb', 'BreadcrumbItem', 'BreadcrumbHeading']
|
|
|
6
6
|
ouia: true
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
import { useRef, useState } from 'react';
|
|
9
10
|
import AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon';
|
|
10
11
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
11
12
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useRef, useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Breadcrumb,
|
|
3
4
|
BreadcrumbItem,
|
|
@@ -46,8 +47,8 @@ const dropdownItems = [
|
|
|
46
47
|
];
|
|
47
48
|
|
|
48
49
|
export const BreadcrumbDropdown: React.FunctionComponent = () => {
|
|
49
|
-
const [isOpen, setIsOpen] =
|
|
50
|
-
const badgeToggleRef =
|
|
50
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
51
|
+
const badgeToggleRef = useRef<HTMLButtonElement>(undefined);
|
|
51
52
|
|
|
52
53
|
const onToggle = () => setIsOpen(!isOpen);
|
|
53
54
|
|
|
@@ -6,7 +6,7 @@ propComponents: ['Button', 'BadgeCountObject']
|
|
|
6
6
|
ouia: true
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
import { Fragment } from 'react';
|
|
9
|
+
import { Fragment, useState } from 'react';
|
|
10
10
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
11
11
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
12
12
|
import ExternalLinkSquareAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-square-alt-icon';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Button, Flex } from '@patternfly/react-core';
|
|
2
3
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
3
4
|
|
|
@@ -9,10 +10,10 @@ interface LoadingPropsType {
|
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export const ButtonProgress: React.FunctionComponent = () => {
|
|
12
|
-
const [isPrimaryLoading, setIsPrimaryLoading] =
|
|
13
|
-
const [isSecondaryLoading, setIsSecondaryLoading] =
|
|
14
|
-
const [isInlineLoading, setIsInlineLoading] =
|
|
15
|
-
const [isUploading, setIsUploading] =
|
|
13
|
+
const [isPrimaryLoading, setIsPrimaryLoading] = useState<boolean>(true);
|
|
14
|
+
const [isSecondaryLoading, setIsSecondaryLoading] = useState<boolean>(true);
|
|
15
|
+
const [isInlineLoading, setIsInlineLoading] = useState<boolean>(true);
|
|
16
|
+
const [isUploading, setIsUploading] = useState<boolean>(false);
|
|
16
17
|
|
|
17
18
|
const primaryLoadingProps = {} as LoadingPropsType;
|
|
18
19
|
primaryLoadingProps.spinnerAriaValueText = 'Loading';
|