@patternfly/react-core 6.2.0-prerelease.32 → 6.2.0-prerelease.34
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 +22 -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/Toolbar/ToolbarContent.d.ts +9 -0
- package/dist/esm/components/Toolbar/ToolbarContent.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarContent.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarContent.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts +9 -0
- package/dist/esm/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarGroup.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts +9 -0
- package/dist/esm/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/esm/components/Toolbar/ToolbarItem.js +2 -2
- package/dist/esm/components/Toolbar/ToolbarItem.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/Toolbar/ToolbarContent.d.ts +9 -0
- package/dist/js/components/Toolbar/ToolbarContent.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarContent.js +2 -2
- package/dist/js/components/Toolbar/ToolbarContent.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts +9 -0
- package/dist/js/components/Toolbar/ToolbarGroup.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarGroup.js +2 -2
- package/dist/js/components/Toolbar/ToolbarGroup.js.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.d.ts +9 -0
- package/dist/js/components/Toolbar/ToolbarItem.d.ts.map +1 -1
- package/dist/js/components/Toolbar/ToolbarItem.js +2 -2
- package/dist/js/components/Toolbar/ToolbarItem.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-wTo4uWW3.css → output-DwKAaf_N.css} +20023 -19884
- 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 +42 -33
- package/src/components/Alert/examples/AlertAsyncLiveRegion.tsx +5 -5
- package/src/components/Alert/examples/AlertDynamicLiveRegion.tsx +1 -1
- package/src/components/Alert/examples/AlertGroupAsync.tsx +5 -5
- package/src/components/Alert/examples/AlertGroupMultipleDynamic.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupSingularDynamic.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupSingularDynamicOverflow.tsx +4 -4
- package/src/components/Alert/examples/AlertGroupToast.tsx +3 -3
- package/src/components/Alert/examples/AlertGroupToastOverflowCapture.tsx +4 -4
- 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/ToolbarContent.tsx +11 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +11 -0
- package/src/components/Toolbar/ToolbarItem.tsx +11 -0
- package/src/components/Toolbar/__tests__/Toolbar.test.tsx +58 -0
- package/src/components/Toolbar/__tests__/ToolbarGroup.test.tsx +28 -1
- package/src/components/Toolbar/__tests__/ToolbarItem.test.tsx +27 -0
- package/src/components/Toolbar/__tests__/__snapshots__/Toolbar.test.tsx.snap +1 -1
- package/src/components/Toolbar/examples/Toolbar.md +9 -2
- package/src/components/Toolbar/examples/ToolbarComponentManagedToggleGroups.tsx +6 -6
- package/src/components/Toolbar/examples/ToolbarConsumerManagedToggleGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarContentWrap.tsx +35 -0
- package/src/components/Toolbar/examples/ToolbarCustomLabelGroupContent.tsx +4 -4
- package/src/components/Toolbar/examples/ToolbarGroupSpacers.tsx +3 -3
- package/src/components/Toolbar/examples/ToolbarGroups.tsx +7 -7
- package/src/components/Toolbar/examples/ToolbarItemSpacers.tsx +5 -5
- 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/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
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Tabs, Tab, TabTitleText } from '@patternfly/react-core';
|
|
2
3
|
export const TabsVerticalExpandableUncontrolled: React.FunctionComponent = () => {
|
|
3
|
-
const [activeTabKey, setActiveTabKey] =
|
|
4
|
+
const [activeTabKey, setActiveTabKey] = useState<string | number>(0);
|
|
4
5
|
// Toggle currently active tab
|
|
5
6
|
const handleTabClick = (
|
|
6
7
|
event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaAutoResizing: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextArea
|
|
7
8
|
value={value}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return <TextArea value={value} onChange={(_event, value) => setValue(value)} aria-label="text area example" />;
|
|
6
7
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaHorizontallyResizable: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextArea
|
|
7
8
|
value={value}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaInvalid: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextArea
|
|
7
8
|
value={value}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
1
|
+
import { Fragment, useState } from 'react';
|
|
2
2
|
import { Checkbox, TextArea } from '@patternfly/react-core';
|
|
3
3
|
|
|
4
4
|
export const TextAreaReadOnly: React.FunctionComponent = () => {
|
|
5
|
-
const [isPlainChecked, setIsPlainChecked] =
|
|
5
|
+
const [isPlainChecked, setIsPlainChecked] = useState(false);
|
|
6
6
|
|
|
7
7
|
return (
|
|
8
8
|
<Fragment>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaResizeNone: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextArea
|
|
7
8
|
value={value}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { useRef, useState } from 'react';
|
|
1
2
|
import { Form, FormGroup, FormHelperText, HelperText, HelperTextItem, TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextAreaValidated: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const [validated, setValidated] =
|
|
6
|
-
const [helperText, setHelperText] =
|
|
7
|
-
const timerRef =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
6
|
+
const [validated, setValidated] = useState<'default' | 'error' | 'warning' | 'success' | undefined>('default');
|
|
7
|
+
const [helperText, setHelperText] = useState('Share your thoughts.');
|
|
8
|
+
const timerRef = useRef<number | null>(null);
|
|
8
9
|
const simulateNetworkCall = (callback: Function) => {
|
|
9
10
|
if (timerRef.current) {
|
|
10
11
|
clearTimeout(timerRef.current);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextArea } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const VerticalResizeTextArea: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextArea
|
|
7
8
|
value={value}
|
|
@@ -6,6 +6,7 @@ cssPrefix: pf-v6-c-form-control
|
|
|
6
6
|
propComponents: ['TextInput', 'TextInputExpandedObj']
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
import { useRef, useState } from 'react';
|
|
9
10
|
import CalendarIcon from '@patternfly/react-icons/dist/esm/icons/calendar-icon';
|
|
10
11
|
import ClockIcon from '@patternfly/react-icons/dist/esm/icons/clock-icon';
|
|
11
12
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInput } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextInputBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextInput
|
|
7
8
|
value={value}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInput } from '@patternfly/react-core';
|
|
2
3
|
import CalendarIcon from '@patternfly/react-icons/dist/esm/icons/calendar-icon';
|
|
3
4
|
import ClockIcon from '@patternfly/react-icons/dist/esm/icons/clock-icon';
|
|
4
5
|
|
|
5
6
|
export const TextInputCustomIcon: React.FunctionComponent = () => {
|
|
6
|
-
const [calendar, setCalendar] =
|
|
7
|
-
const [clock, setClock] =
|
|
7
|
+
const [calendar, setCalendar] = useState('');
|
|
8
|
+
const [clock, setClock] = useState('');
|
|
8
9
|
|
|
9
10
|
return (
|
|
10
11
|
<>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInput, ValidatedOptions } from '@patternfly/react-core';
|
|
2
3
|
import CalendarIcon from '@patternfly/react-icons/dist/esm/icons/calendar-icon';
|
|
3
4
|
|
|
4
5
|
export const TextInputCustomIconInvalid: React.FunctionComponent = () => {
|
|
5
|
-
const [calendar, setCalendar] =
|
|
6
|
+
const [calendar, setCalendar] = useState('');
|
|
6
7
|
|
|
7
8
|
return (
|
|
8
9
|
<>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInput, ValidatedOptions } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextInputInvalid: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextInput
|
|
7
8
|
value={value}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { Checkbox, TextInput } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextInputReadOnly: React.FunctionComponent = () => {
|
|
4
|
-
const [isPlainChecked, setIsPlainChecked] =
|
|
5
|
+
const [isPlainChecked, setIsPlainChecked] = useState(false);
|
|
5
6
|
return (
|
|
6
7
|
<>
|
|
7
8
|
<div style={{ marginBottom: '12px' }}>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { useRef, useState } from 'react';
|
|
1
2
|
import { TextInput } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextInputSelectUsingRef: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
-
const ref =
|
|
5
|
+
const [value, setValue] = useState('select all on click');
|
|
6
|
+
const ref = useRef<HTMLInputElement>(null);
|
|
6
7
|
return (
|
|
7
8
|
<TextInput
|
|
8
9
|
ref={ref}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInput } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const StartTruncatedTextInput: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState(
|
|
5
6
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
|
|
6
7
|
);
|
|
7
8
|
return (
|
|
@@ -5,6 +5,7 @@ cssPrefix: pf-v6-c-text-input-group
|
|
|
5
5
|
propComponents: ['TextInputGroup', 'TextInputGroupMain', 'TextInputGroupUtilities']
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
import { useState } from 'react';
|
|
8
9
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
9
10
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
10
11
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInputGroup, TextInputGroupMain } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const TextInputGroupBasic: React.FunctionComponent = () => {
|
|
4
|
-
const [value, setValue] =
|
|
5
|
+
const [value, setValue] = useState('');
|
|
5
6
|
return (
|
|
6
7
|
<TextInputGroup>
|
|
7
8
|
<TextInputGroupMain value={value} onChange={(_event, value) => setValue(value)} />
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
TextInputGroup,
|
|
3
4
|
TextInputGroupMain,
|
|
@@ -10,8 +11,8 @@ import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
|
10
11
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
11
12
|
|
|
12
13
|
export const TextInputGroupFilters: React.FunctionComponent = () => {
|
|
13
|
-
const [inputValue, setInputValue] =
|
|
14
|
-
const [currentChips, setCurrentChips] =
|
|
14
|
+
const [inputValue, setInputValue] = useState('');
|
|
15
|
+
const [currentChips, setCurrentChips] = useState([
|
|
15
16
|
'chip one',
|
|
16
17
|
'chip two',
|
|
17
18
|
'chip three',
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, Button } from '@patternfly/react-core';
|
|
2
3
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
3
4
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
4
5
|
|
|
5
6
|
export const TextInputGroupUtilitiesAndIcon: React.FunctionComponent = () => {
|
|
6
|
-
const [inputValue, setInputValue] =
|
|
7
|
+
const [inputValue, setInputValue] = useState('');
|
|
7
8
|
|
|
8
9
|
/** callback for updating the inputValue state in this component so that the input can be controlled */
|
|
9
10
|
const handleInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import {
|
|
2
3
|
TextInputGroup,
|
|
3
4
|
TextInputGroupMain,
|
|
@@ -11,11 +12,9 @@ import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
|
11
12
|
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
12
13
|
|
|
13
14
|
export const TextInputGroupWithStatus: React.FunctionComponent = () => {
|
|
14
|
-
const [successValue, setSuccessValue] =
|
|
15
|
-
const [warningValue, setWarningValue] =
|
|
16
|
-
const [errorValue, setErrorValue] =
|
|
17
|
-
'Error validation with custom non-status icon at start and utilities'
|
|
18
|
-
);
|
|
15
|
+
const [successValue, setSuccessValue] = useState('Success validation');
|
|
16
|
+
const [warningValue, setWarningValue] = useState('Warning validation with custom non-status icon at start');
|
|
17
|
+
const [errorValue, setErrorValue] = useState('Error validation with custom non-status icon at start and utilities');
|
|
19
18
|
|
|
20
19
|
/** show the input clearing button only when the input is not empty */
|
|
21
20
|
const showClearButton = !!errorValue;
|
|
@@ -6,6 +6,7 @@ propComponents: ['ToggleGroup', 'ToggleGroupItem']
|
|
|
6
6
|
---
|
|
7
7
|
import './toggleGroup.css';
|
|
8
8
|
|
|
9
|
+
import { useRef, useState } from 'react';
|
|
9
10
|
import { ToggleGroup, ToggleGroupItem, Button, Stack, StackItem } from '@patternfly/react-core';
|
|
10
11
|
import UndoIcon from '@patternfly/react-icons/dist/esm/icons/undo-icon';
|
|
11
12
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ToggleGroupCompact: React.FunctionComponent = () => {
|
|
4
|
-
const [isSelected, setIsSelected] =
|
|
5
|
+
const [isSelected, setIsSelected] = useState({
|
|
5
6
|
'toggle-group-compact-1': false,
|
|
6
7
|
'toggle-group-compact-2': false
|
|
7
8
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ToggleGroup, ToggleGroupItem, Button, Stack, StackItem } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ToggleGroupDefaultMultiple: React.FunctionComponent = () => {
|
|
4
|
-
const [isSelected, setIsSelected] =
|
|
5
|
+
const [isSelected, setIsSelected] = useState({
|
|
5
6
|
'toggle-group-multiple-1': false,
|
|
6
7
|
'toggle-group-multiple-2': false
|
|
7
8
|
});
|
|
8
|
-
const [disableAll, setDisableAll] =
|
|
9
|
+
const [disableAll, setDisableAll] = useState(false);
|
|
9
10
|
const handleItemClick = (event, isSelected: boolean) => {
|
|
10
11
|
const id = event.currentTarget.id;
|
|
11
12
|
setIsSelected((prevIsSelected) => ({ ...prevIsSelected, [id]: isSelected }));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
2
3
|
|
|
3
4
|
export const ToggleGroupDefaultSingle: React.FunctionComponent = () => {
|
|
4
|
-
const [isSelected, setIsSelected] =
|
|
5
|
+
const [isSelected, setIsSelected] = useState('');
|
|
5
6
|
const handleItemClick = (event, _isSelected: boolean) => {
|
|
6
7
|
const id = event.currentTarget.id;
|
|
7
8
|
setIsSelected(id);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
2
3
|
import UndoIcon from '@patternfly/react-icons/dist/esm/icons/undo-icon';
|
|
3
4
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
4
5
|
import ShareSquareIcon from '@patternfly/react-icons/dist/esm/icons/share-square-icon';
|
|
5
6
|
|
|
6
7
|
export const ToggleGroupIcon: React.FunctionComponent = () => {
|
|
7
|
-
const [isSelected, setIsSelected] =
|
|
8
|
+
const [isSelected, setIsSelected] = useState({
|
|
8
9
|
'toggle-group-icons-1': false,
|
|
9
10
|
'toggle-group-icons-2': false,
|
|
10
11
|
'toggle-group-icons-3': true
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import { ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
2
3
|
import UndoIcon from '@patternfly/react-icons/dist/esm/icons/undo-icon';
|
|
3
4
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
4
5
|
import ShareSquareIcon from '@patternfly/react-icons/dist/esm/icons/share-square-icon';
|
|
5
6
|
|
|
6
7
|
export const ToggleGroupIcon: React.FunctionComponent = () => {
|
|
7
|
-
const [isSelected, setIsSelected] =
|
|
8
|
+
const [isSelected, setIsSelected] = useState({
|
|
8
9
|
'text-icons-1': false,
|
|
9
10
|
'text-icons-2': false,
|
|
10
11
|
'text-icons-3': true
|
|
@@ -57,6 +57,8 @@ export interface ToolbarProps extends React.HTMLProps<HTMLDivElement>, OUIAProps
|
|
|
57
57
|
ouiaSafe?: boolean;
|
|
58
58
|
/** Background color variant of the toolbar */
|
|
59
59
|
colorVariant?: ToolbarColorVariant | 'default' | 'no-background' | 'primary' | 'secondary';
|
|
60
|
+
/** Flag indicating the toolbar padding is removed */
|
|
61
|
+
hasNoPadding?: boolean;
|
|
60
62
|
}
|
|
61
63
|
|
|
62
64
|
export interface ToolbarState {
|
|
@@ -78,6 +80,7 @@ class Toolbar extends Component<ToolbarProps, ToolbarState> {
|
|
|
78
80
|
static displayName = 'Toolbar';
|
|
79
81
|
labelGroupContentRef = createRef<HTMLDivElement>();
|
|
80
82
|
staticFilterInfo = {};
|
|
83
|
+
hasNoPadding = false;
|
|
81
84
|
state = {
|
|
82
85
|
isManagedToggleExpanded: false,
|
|
83
86
|
filterInfo: {},
|
|
@@ -128,6 +131,7 @@ class Toolbar extends Component<ToolbarProps, ToolbarState> {
|
|
|
128
131
|
|
|
129
132
|
renderToolbar = (randomId: string) => {
|
|
130
133
|
const {
|
|
134
|
+
hasNoPadding,
|
|
131
135
|
clearAllFilters,
|
|
132
136
|
clearFiltersButtonText,
|
|
133
137
|
collapseListedFiltersBreakpoint,
|
|
@@ -159,6 +163,7 @@ class Toolbar extends Component<ToolbarProps, ToolbarState> {
|
|
|
159
163
|
<div
|
|
160
164
|
className={css(
|
|
161
165
|
styles.toolbar,
|
|
166
|
+
hasNoPadding && styles.modifiers.noPadding,
|
|
162
167
|
isFullHeight && styles.modifiers.fullHeight,
|
|
163
168
|
isStatic && styles.modifiers.static,
|
|
164
169
|
isSticky && styles.modifiers.sticky,
|
|
@@ -16,6 +16,15 @@ export interface ToolbarContentProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
16
16
|
xl?: 'hidden' | 'visible';
|
|
17
17
|
'2xl'?: 'hidden' | 'visible';
|
|
18
18
|
};
|
|
19
|
+
/** Value to set for content wrapping at various breakpoints */
|
|
20
|
+
rowWrap?: {
|
|
21
|
+
default?: 'wrap' | 'nowrap';
|
|
22
|
+
sm?: 'wrap' | 'nowrap';
|
|
23
|
+
md?: 'wrap' | 'nowrap';
|
|
24
|
+
lg?: 'wrap' | 'nowrap';
|
|
25
|
+
xl?: 'wrap' | 'nowrap';
|
|
26
|
+
'2xl'?: 'wrap' | 'nowrap';
|
|
27
|
+
};
|
|
19
28
|
/** Vertical alignment of children */
|
|
20
29
|
alignItems?: 'start' | 'center' | 'baseline' | 'default';
|
|
21
30
|
/** Content to be rendered as children of the content row */
|
|
@@ -50,6 +59,7 @@ class ToolbarContent extends Component<ToolbarContentProps> {
|
|
|
50
59
|
isExpanded,
|
|
51
60
|
toolbarId,
|
|
52
61
|
visibility,
|
|
62
|
+
rowWrap,
|
|
53
63
|
alignItems,
|
|
54
64
|
clearAllFilters,
|
|
55
65
|
showClearFiltersButton,
|
|
@@ -95,6 +105,7 @@ class ToolbarContent extends Component<ToolbarContentProps> {
|
|
|
95
105
|
<div
|
|
96
106
|
className={css(
|
|
97
107
|
styles.toolbarContentSection,
|
|
108
|
+
formatBreakpointMods(rowWrap, styles, '', getBreakpoint(width)),
|
|
98
109
|
alignItems === 'center' && styles.modifiers.alignItemsCenter,
|
|
99
110
|
alignItems === 'start' && styles.modifiers.alignItemsStart,
|
|
100
111
|
alignItems === 'baseline' && styles.modifiers.alignItemsBaseline
|
|
@@ -157,6 +157,15 @@ export interface ToolbarGroupProps extends Omit<React.HTMLProps<HTMLDivElement>,
|
|
|
157
157
|
| 'rowGap_3xl'
|
|
158
158
|
| 'rowGap_4xl';
|
|
159
159
|
};
|
|
160
|
+
/** Value to set for row wrapping at various breakpoints */
|
|
161
|
+
rowWrap?: {
|
|
162
|
+
default?: 'wrap' | 'nowrap';
|
|
163
|
+
sm?: 'wrap' | 'nowrap';
|
|
164
|
+
md?: 'wrap' | 'nowrap';
|
|
165
|
+
lg?: 'wrap' | 'nowrap';
|
|
166
|
+
xl?: 'wrap' | 'nowrap';
|
|
167
|
+
'2xl'?: 'wrap' | 'nowrap';
|
|
168
|
+
};
|
|
160
169
|
/** Content to be rendered inside the data toolbar group */
|
|
161
170
|
children?: React.ReactNode;
|
|
162
171
|
/** Flag that modifies the toolbar group to hide overflow and respond to available space. Used for horizontal navigation. */
|
|
@@ -175,6 +184,7 @@ class ToolbarGroupWithRef extends Component<ToolbarGroupProps> {
|
|
|
175
184
|
gap,
|
|
176
185
|
columnGap,
|
|
177
186
|
rowGap,
|
|
187
|
+
rowWrap,
|
|
178
188
|
className,
|
|
179
189
|
variant,
|
|
180
190
|
children,
|
|
@@ -203,6 +213,7 @@ class ToolbarGroupWithRef extends Component<ToolbarGroupProps> {
|
|
|
203
213
|
formatBreakpointMods(gap, styles, '', getBreakpoint(width)),
|
|
204
214
|
formatBreakpointMods(columnGap, styles, '', getBreakpoint(width)),
|
|
205
215
|
formatBreakpointMods(rowGap, styles, '', getBreakpoint(width)),
|
|
216
|
+
formatBreakpointMods(rowWrap, styles, '', getBreakpoint(width)),
|
|
206
217
|
alignItems === 'start' && styles.modifiers.alignItemsStart,
|
|
207
218
|
alignItems === 'center' && styles.modifiers.alignItemsCenter,
|
|
208
219
|
alignItems === 'baseline' && styles.modifiers.alignItemsBaseline,
|
|
@@ -151,6 +151,15 @@ export interface ToolbarItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
151
151
|
| 'rowGap_3xl'
|
|
152
152
|
| 'rowGap_4xl';
|
|
153
153
|
};
|
|
154
|
+
/** Value to set for row wrapping at various breakpoints */
|
|
155
|
+
rowWrap?: {
|
|
156
|
+
default?: 'wrap' | 'nowrap';
|
|
157
|
+
sm?: 'wrap' | 'nowrap';
|
|
158
|
+
md?: 'wrap' | 'nowrap';
|
|
159
|
+
lg?: 'wrap' | 'nowrap';
|
|
160
|
+
xl?: 'wrap' | 'nowrap';
|
|
161
|
+
'2xl'?: 'wrap' | 'nowrap';
|
|
162
|
+
};
|
|
154
163
|
/** id for this data toolbar item */
|
|
155
164
|
id?: string;
|
|
156
165
|
/** Flag indicating if the expand-all variant is expanded or not */
|
|
@@ -168,6 +177,7 @@ export const ToolbarItem: React.FunctionComponent<ToolbarItemProps> = ({
|
|
|
168
177
|
gap,
|
|
169
178
|
columnGap,
|
|
170
179
|
rowGap,
|
|
180
|
+
rowWrap,
|
|
171
181
|
align,
|
|
172
182
|
alignSelf,
|
|
173
183
|
alignItems,
|
|
@@ -196,6 +206,7 @@ export const ToolbarItem: React.FunctionComponent<ToolbarItemProps> = ({
|
|
|
196
206
|
formatBreakpointMods(gap, styles, '', getBreakpoint(width)),
|
|
197
207
|
formatBreakpointMods(columnGap, styles, '', getBreakpoint(width)),
|
|
198
208
|
formatBreakpointMods(rowGap, styles, '', getBreakpoint(width)),
|
|
209
|
+
formatBreakpointMods(rowWrap, styles, '', getBreakpoint(width)),
|
|
199
210
|
alignItems === 'start' && styles.modifiers.alignItemsStart,
|
|
200
211
|
alignItems === 'center' && styles.modifiers.alignItemsCenter,
|
|
201
212
|
alignItems === 'baseline' && styles.modifiers.alignItemsBaseline,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fragment } from 'react';
|
|
2
2
|
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
3
4
|
|
|
4
5
|
import { ToolbarToggleGroup } from '../ToolbarToggleGroup';
|
|
5
6
|
import { Toolbar } from '../Toolbar';
|
|
@@ -42,6 +43,34 @@ describe('Toolbar', () => {
|
|
|
42
43
|
expect(asFragment()).toMatchSnapshot();
|
|
43
44
|
});
|
|
44
45
|
|
|
46
|
+
it(`should render toolbar without ${styles.modifiers.noPadding} by default`, () => {
|
|
47
|
+
render(
|
|
48
|
+
<Toolbar data-testid="toolbar">
|
|
49
|
+
<ToolbarContent>
|
|
50
|
+
<ToolbarItem>Test</ToolbarItem>
|
|
51
|
+
<ToolbarItem>Test 2</ToolbarItem>
|
|
52
|
+
<ToolbarItem variant="separator" />
|
|
53
|
+
<ToolbarItem>Test 3 </ToolbarItem>
|
|
54
|
+
</ToolbarContent>
|
|
55
|
+
</Toolbar>
|
|
56
|
+
);
|
|
57
|
+
expect(screen.getByTestId('toolbar')).not.toHaveClass('pf-m-no-padding');
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it(`should render toolbar with ${styles.modifiers.noPadding} class when hasNoPadding is true`, () => {
|
|
61
|
+
render(
|
|
62
|
+
<Toolbar data-testid="toolbar-no-padding" hasNoPadding>
|
|
63
|
+
<ToolbarContent>
|
|
64
|
+
<ToolbarItem>Test</ToolbarItem>
|
|
65
|
+
<ToolbarItem>Test 2</ToolbarItem>
|
|
66
|
+
<ToolbarItem variant="separator" />
|
|
67
|
+
<ToolbarItem>Test 3 </ToolbarItem>
|
|
68
|
+
</ToolbarContent>
|
|
69
|
+
</Toolbar>
|
|
70
|
+
);
|
|
71
|
+
expect(screen.getByTestId('toolbar-no-padding')).toHaveClass(styles.modifiers.noPadding);
|
|
72
|
+
});
|
|
73
|
+
|
|
45
74
|
it('should render with custom label content', () => {
|
|
46
75
|
const items = (
|
|
47
76
|
<Fragment>
|
|
@@ -147,4 +176,33 @@ describe('Toolbar', () => {
|
|
|
147
176
|
|
|
148
177
|
expect(screen.getByTestId('Toolbar-test-secondary-id')).toHaveClass(styles.modifiers.secondary);
|
|
149
178
|
});
|
|
179
|
+
|
|
180
|
+
describe('ToobarContent rowWrap', () => {
|
|
181
|
+
const bps = ['default', 'sm', 'md', 'lg', 'xl', '2xl'];
|
|
182
|
+
|
|
183
|
+
describe.each(bps)(`rowWrap at various breakpoints`, (bp) => {
|
|
184
|
+
it(`should render with pf-m-wrap when rowWrap is set to wrap at ${bp}`, () => {
|
|
185
|
+
render(
|
|
186
|
+
<Toolbar>
|
|
187
|
+
<ToolbarContent data-testid="toolbarconent" rowWrap={{ [bp]: 'wrap' }}>
|
|
188
|
+
Test
|
|
189
|
+
</ToolbarContent>
|
|
190
|
+
</Toolbar>
|
|
191
|
+
);
|
|
192
|
+
const bpWrapClass = bp === 'default' ? 'pf-m-wrap' : `pf-m-wrap-on-${bp}`;
|
|
193
|
+
|
|
194
|
+
expect(screen.getByTestId('toolbarconent').querySelector('div')).toHaveClass(bpWrapClass);
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
it(`should render with pf-m-nowrap when rowWrap is set to nowrap at ${bp}`, () => {
|
|
198
|
+
render(
|
|
199
|
+
<ToolbarContent data-testid="toolbarconent" rowWrap={{ [bp]: 'nowrap' }}>
|
|
200
|
+
Test
|
|
201
|
+
</ToolbarContent>
|
|
202
|
+
);
|
|
203
|
+
const bpNoWrapClass = bp === 'default' ? 'pf-m-nowrap' : `pf-m-nowrap-on-${bp}`;
|
|
204
|
+
expect(screen.getByTestId('toolbarconent').querySelector('div')).toHaveClass(bpNoWrapClass);
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
});
|
|
150
208
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { render, screen } from '@testing-library/react';
|
|
2
2
|
import { ToolbarGroup } from '../ToolbarGroup';
|
|
3
3
|
|
|
4
|
-
describe('
|
|
4
|
+
describe('ToolbarGroup', () => {
|
|
5
5
|
it('should render with pf-m-overflow-container when isOverflowContainer is set', () => {
|
|
6
6
|
render(
|
|
7
7
|
<ToolbarGroup data-testid="toolbargroup" isOverflowContainer>
|
|
@@ -10,4 +10,31 @@ describe('ToolbarItem', () => {
|
|
|
10
10
|
);
|
|
11
11
|
expect(screen.getByTestId('toolbargroup')).toHaveClass('pf-m-overflow-container');
|
|
12
12
|
});
|
|
13
|
+
|
|
14
|
+
describe('ToobarGroup rowWrap', () => {
|
|
15
|
+
const bps = ['default', 'sm', 'md', 'lg', 'xl', '2xl'];
|
|
16
|
+
|
|
17
|
+
describe.each(bps)(`rowWrap at various breakpoints`, (bp) => {
|
|
18
|
+
it(`should render with pf-m-wrap when rowWrap is set to wrap at ${bp}`, () => {
|
|
19
|
+
render(
|
|
20
|
+
<ToolbarGroup data-testid="toolbargroup" rowWrap={{ [bp]: 'wrap' }}>
|
|
21
|
+
Test
|
|
22
|
+
</ToolbarGroup>
|
|
23
|
+
);
|
|
24
|
+
const bpWrapClass = bp === 'default' ? 'pf-m-wrap' : `pf-m-wrap-on-${bp}`;
|
|
25
|
+
|
|
26
|
+
expect(screen.getByTestId('toolbargroup')).toHaveClass(bpWrapClass);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it(`should render with pf-m-nowrap when rowWrap is set to nowrap at ${bp}`, () => {
|
|
30
|
+
render(
|
|
31
|
+
<ToolbarGroup data-testid="toolbargroup" rowWrap={{ [bp]: 'nowrap' }}>
|
|
32
|
+
Test
|
|
33
|
+
</ToolbarGroup>
|
|
34
|
+
);
|
|
35
|
+
const bpNoWrapClass = bp === 'default' ? 'pf-m-nowrap' : `pf-m-nowrap-on-${bp}`;
|
|
36
|
+
expect(screen.getByTestId('toolbargroup')).toHaveClass(bpNoWrapClass);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
13
40
|
});
|
|
@@ -10,4 +10,31 @@ describe('ToolbarItem', () => {
|
|
|
10
10
|
);
|
|
11
11
|
expect(screen.getByTestId('toolbaritem')).toHaveClass('pf-m-overflow-container');
|
|
12
12
|
});
|
|
13
|
+
|
|
14
|
+
describe('ToobarItem rowWrap', () => {
|
|
15
|
+
const bps = ['default', 'sm', 'md', 'lg', 'xl', '2xl'];
|
|
16
|
+
|
|
17
|
+
describe.each(bps)(`rowWrap at various breakpoints`, (bp) => {
|
|
18
|
+
it(`should render with pf-m-wrap when rowWrap is set to wrap at ${bp}`, () => {
|
|
19
|
+
render(
|
|
20
|
+
<ToolbarItem data-testid="toolbaritem" rowWrap={{ [bp]: 'wrap' }}>
|
|
21
|
+
Test
|
|
22
|
+
</ToolbarItem>
|
|
23
|
+
);
|
|
24
|
+
const bpWrapClass = bp === 'default' ? 'pf-m-wrap' : `pf-m-wrap-on-${bp}`;
|
|
25
|
+
|
|
26
|
+
expect(screen.getByTestId('toolbaritem')).toHaveClass(bpWrapClass);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
it(`should render with pf-m-nowrap when rowWrap is set to nowrap at ${bp}`, () => {
|
|
30
|
+
render(
|
|
31
|
+
<ToolbarItem data-testid="toolbaritem" rowWrap={{ [bp]: 'nowrap' }}>
|
|
32
|
+
Test
|
|
33
|
+
</ToolbarItem>
|
|
34
|
+
);
|
|
35
|
+
const bpNoWrapClass = bp === 'default' ? 'pf-m-nowrap' : `pf-m-nowrap-on-${bp}`;
|
|
36
|
+
expect(screen.getByTestId('toolbaritem')).toHaveClass(bpNoWrapClass);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
});
|
|
13
40
|
});
|
|
@@ -51,7 +51,7 @@ exports[`Toolbar should render with custom label content 1`] = `
|
|
|
51
51
|
<DocumentFragment>
|
|
52
52
|
<div
|
|
53
53
|
class="pf-v6-c-toolbar pf-m-toggle-group-container"
|
|
54
|
-
data-ouia-component-id="OUIA-Generated-Toolbar-
|
|
54
|
+
data-ouia-component-id="OUIA-Generated-Toolbar-4"
|
|
55
55
|
data-ouia-component-type="PF6/Toolbar"
|
|
56
56
|
data-ouia-safe="true"
|
|
57
57
|
id="toolbar-with-filter"
|