@patternfly/react-core 5.0.0-alpha.47 → 5.0.0-alpha.49
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 +12 -0
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js +2 -2
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.js +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js +1 -1
- package/dist/esm/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +1 -1
- package/dist/esm/components/Backdrop/Backdrop.d.ts +2 -2
- package/dist/esm/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.d.ts +24 -55
- package/dist/esm/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +53 -12
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/Dropdown/DropdownGroup.d.ts +8 -7
- package/dist/esm/components/Dropdown/DropdownGroup.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownGroup.js +4 -9
- package/dist/esm/components/Dropdown/DropdownGroup.js.map +1 -1
- package/dist/esm/components/Dropdown/DropdownItem.d.ts +8 -41
- package/dist/esm/components/Dropdown/DropdownItem.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/DropdownItem.js +5 -8
- package/dist/esm/components/Dropdown/DropdownItem.js.map +1 -1
- package/dist/esm/{next/components → components}/Dropdown/DropdownList.d.ts +1 -1
- package/dist/esm/components/Dropdown/DropdownList.d.ts.map +1 -0
- package/dist/esm/{next/components → components}/Dropdown/DropdownList.js +1 -1
- package/dist/esm/components/Dropdown/DropdownList.js.map +1 -0
- package/dist/esm/components/Dropdown/index.d.ts +1 -9
- package/dist/esm/components/Dropdown/index.d.ts.map +1 -1
- package/dist/esm/components/Dropdown/index.js +1 -9
- package/dist/esm/components/Dropdown/index.js.map +1 -1
- package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.d.ts +1 -1
- package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.d.ts.map +1 -1
- package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.js +2 -2
- package/dist/esm/components/OverflowMenu/OverflowMenuDropdownItem.js.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.d.ts.map +1 -1
- package/dist/esm/components/Progress/ProgressContainer.js +5 -4
- package/dist/esm/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/esm/{components → deprecated/components}/Dropdown/BadgeToggle.d.ts +1 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/BadgeToggle.js +1 -1
- package/dist/esm/deprecated/components/Dropdown/BadgeToggle.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts +66 -0
- package/dist/esm/deprecated/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js +16 -0
- package/dist/esm/deprecated/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts +11 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js +15 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownGroup.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts +52 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js +15 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownItem.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownMenu.js +7 -7
- package/dist/esm/deprecated/components/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownSeparator.d.ts +1 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownSeparator.js +3 -3
- package/dist/esm/deprecated/components/Dropdown/DropdownSeparator.js.map +1 -0
- package/dist/{js → esm/deprecated}/components/Dropdown/DropdownToggle.d.ts +1 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggle.js +1 -1
- package/dist/esm/deprecated/components/Dropdown/DropdownToggle.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleAction.js.map +1 -0
- package/dist/{js → esm/deprecated}/components/Dropdown/DropdownToggleCheckbox.d.ts +2 -2
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.js +2 -2
- package/dist/esm/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +1 -0
- package/dist/{js → esm/deprecated}/components/Dropdown/DropdownWithContext.d.ts +2 -2
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/DropdownWithContext.js +2 -2
- package/dist/esm/deprecated/components/Dropdown/DropdownWithContext.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/InternalDropdownItem.js +3 -3
- package/dist/esm/deprecated/components/Dropdown/InternalDropdownItem.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/KebabToggle.js.map +1 -0
- package/dist/{js → esm/deprecated}/components/Dropdown/Toggle.d.ts +1 -1
- package/dist/esm/deprecated/components/Dropdown/Toggle.d.ts.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/Toggle.js +2 -2
- package/dist/esm/deprecated/components/Dropdown/Toggle.js.map +1 -0
- package/dist/esm/{components → deprecated/components}/Dropdown/dropdownConstants.d.ts +1 -1
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/dropdownConstants.js.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/index.d.ts +13 -0
- package/dist/esm/deprecated/components/Dropdown/index.d.ts.map +1 -0
- package/dist/esm/deprecated/components/Dropdown/index.js +13 -0
- package/dist/esm/deprecated/components/Dropdown/index.js.map +1 -0
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js +2 -2
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +2 -2
- package/dist/esm/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
- package/dist/esm/deprecated/components/index.d.ts +1 -0
- package/dist/esm/deprecated/components/index.d.ts.map +1 -1
- package/dist/esm/deprecated/components/index.js +1 -0
- package/dist/esm/deprecated/components/index.js.map +1 -1
- package/dist/esm/next/components/index.d.ts +0 -1
- package/dist/esm/next/components/index.d.ts.map +1 -1
- package/dist/esm/next/components/index.js +0 -1
- package/dist/esm/next/components/index.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js +2 -2
- package/dist/js/components/ApplicationLauncher/ApplicationLauncher.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.js +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherGroup.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.d.ts +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherItem.js.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.d.ts.map +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.js +1 -1
- package/dist/js/components/ApplicationLauncher/ApplicationLauncherSeparator.js.map +1 -1
- package/dist/js/components/Backdrop/Backdrop.d.ts +2 -2
- package/dist/js/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.d.ts +24 -55
- package/dist/js/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/js/components/Dropdown/Dropdown.js +52 -12
- package/dist/js/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/js/components/Dropdown/DropdownGroup.d.ts +8 -7
- package/dist/js/components/Dropdown/DropdownGroup.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownGroup.js +4 -9
- package/dist/js/components/Dropdown/DropdownGroup.js.map +1 -1
- package/dist/js/components/Dropdown/DropdownItem.d.ts +8 -41
- package/dist/js/components/Dropdown/DropdownItem.d.ts.map +1 -1
- package/dist/js/components/Dropdown/DropdownItem.js +5 -8
- package/dist/js/components/Dropdown/DropdownItem.js.map +1 -1
- package/dist/js/{next/components → components}/Dropdown/DropdownList.d.ts +1 -1
- package/dist/js/components/Dropdown/DropdownList.d.ts.map +1 -0
- package/dist/js/{next/components → components}/Dropdown/DropdownList.js +1 -1
- package/dist/js/components/Dropdown/DropdownList.js.map +1 -0
- package/dist/js/components/Dropdown/index.d.ts +1 -9
- package/dist/js/components/Dropdown/index.d.ts.map +1 -1
- package/dist/js/components/Dropdown/index.js +1 -9
- package/dist/js/components/Dropdown/index.js.map +1 -1
- package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.d.ts +1 -1
- package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.d.ts.map +1 -1
- package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.js +2 -2
- package/dist/js/components/OverflowMenu/OverflowMenuDropdownItem.js.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.d.ts.map +1 -1
- package/dist/js/components/Progress/ProgressContainer.js +5 -4
- package/dist/js/components/Progress/ProgressContainer.js.map +1 -1
- package/dist/js/{components → deprecated/components}/Dropdown/BadgeToggle.d.ts +1 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/BadgeToggle.js +1 -1
- package/dist/js/deprecated/components/Dropdown/BadgeToggle.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts +66 -0
- package/dist/js/deprecated/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/Dropdown.js +20 -0
- package/dist/js/deprecated/components/Dropdown/Dropdown.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts +11 -0
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js +19 -0
- package/dist/js/deprecated/components/Dropdown/DropdownGroup.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts +52 -0
- package/dist/js/deprecated/components/Dropdown/DropdownItem.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js +19 -0
- package/dist/js/deprecated/components/Dropdown/DropdownItem.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownMenu.js +7 -7
- package/dist/js/deprecated/components/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownSeparator.d.ts +1 -1
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownSeparator.js +3 -3
- package/dist/js/deprecated/components/Dropdown/DropdownSeparator.js.map +1 -0
- package/dist/{esm → js/deprecated}/components/Dropdown/DropdownToggle.d.ts +1 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggle.js +1 -1
- package/dist/js/deprecated/components/Dropdown/DropdownToggle.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/DropdownToggleAction.js.map +1 -0
- package/dist/{esm → js/deprecated}/components/Dropdown/DropdownToggleCheckbox.d.ts +2 -2
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.js +2 -2
- package/dist/js/deprecated/components/Dropdown/DropdownToggleCheckbox.js.map +1 -0
- package/dist/{esm → js/deprecated}/components/Dropdown/DropdownWithContext.d.ts +2 -2
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/DropdownWithContext.js +2 -2
- package/dist/js/deprecated/components/Dropdown/DropdownWithContext.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/InternalDropdownItem.js +3 -3
- package/dist/js/deprecated/components/Dropdown/InternalDropdownItem.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/KebabToggle.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/KebabToggle.js.map +1 -0
- package/dist/{esm → js/deprecated}/components/Dropdown/Toggle.d.ts +1 -1
- package/dist/js/deprecated/components/Dropdown/Toggle.d.ts.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/Toggle.js +2 -2
- package/dist/js/deprecated/components/Dropdown/Toggle.js.map +1 -0
- package/dist/js/{components → deprecated/components}/Dropdown/dropdownConstants.d.ts +1 -1
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/dropdownConstants.js.map +1 -0
- package/dist/js/deprecated/components/Dropdown/index.d.ts +13 -0
- package/dist/js/deprecated/components/Dropdown/index.d.ts.map +1 -0
- package/dist/js/deprecated/components/Dropdown/index.js +16 -0
- package/dist/js/deprecated/components/Dropdown/index.js.map +1 -0
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js +2 -2
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenu.js.map +1 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js +1 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuItem.js.map +1 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js +1 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggle.js.map +1 -1
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js +2 -2
- package/dist/js/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.js.map +1 -1
- package/dist/js/deprecated/components/index.d.ts +1 -0
- package/dist/js/deprecated/components/index.d.ts.map +1 -1
- package/dist/js/deprecated/components/index.js +1 -0
- package/dist/js/deprecated/components/index.js.map +1 -1
- package/dist/js/next/components/index.d.ts +0 -1
- package/dist/js/next/components/index.d.ts.map +1 -1
- package/dist/js/next/components/index.js +0 -1
- package/dist/js/next/components/index.js.map +1 -1
- package/dist/umd/react-core.min.js +5 -35
- package/package.json +5 -5
- package/src/components/ActionList/examples/ActionList.md +10 -0
- package/src/components/ActionList/examples/ActionListSingleGroup.tsx +15 -17
- package/src/components/ApplicationLauncher/ApplicationLauncher.tsx +8 -9
- package/src/components/ApplicationLauncher/ApplicationLauncherGroup.tsx +1 -1
- package/src/components/ApplicationLauncher/ApplicationLauncherItem.tsx +1 -1
- package/src/components/ApplicationLauncher/ApplicationLauncherSeparator.tsx +1 -1
- package/src/components/ApplicationLauncher/__tests__/ApplicationLauncher.test.tsx +1 -1
- package/src/components/ApplicationLauncher/__tests__/Generated/ApplicationLauncherSeparator.test.tsx +1 -1
- package/src/components/ApplicationLauncher/examples/ApplicationLauncher.md +12 -0
- package/src/components/ApplicationLauncher/examples/ApplicationLauncherAlignRight.tsx +3 -2
- package/src/components/ApplicationLauncher/examples/ApplicationLauncherAlignTop.tsx +3 -2
- package/src/components/Backdrop/Backdrop.tsx +2 -2
- package/src/components/Backdrop/examples/Backdrop.md +0 -5
- package/src/components/Breadcrumb/examples/Breadcrumb.md +9 -0
- package/src/components/Breadcrumb/examples/BreadcrumbDropdown.tsx +11 -13
- package/src/components/CalendarMonth/examples/CalendarMonth.md +1 -0
- package/src/components/Card/examples/Card.md +35 -17
- package/src/components/Card/examples/CardExpandable.tsx +18 -16
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +16 -21
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +16 -21
- package/src/components/Card/examples/CardLegacySelectable.tsx +16 -19
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +17 -20
- package/src/components/Card/examples/CardSelectable.tsx +16 -19
- package/src/components/Card/examples/CardWithImageAndActions.tsx +16 -22
- package/src/components/Checkbox/examples/Checkbox.md +1 -0
- package/src/components/DataList/__tests__/DataList.test.tsx +10 -10
- package/src/components/DataList/examples/DataList.md +18 -1
- package/src/components/DataList/examples/DataListActions.tsx +12 -10
- package/src/components/DataList/examples/DataListCheckboxes.tsx +26 -24
- package/src/components/DataList/examples/DataListExpandable.tsx +25 -23
- package/src/components/DataList/examples/DataListMixedExpandable.tsx +25 -23
- package/src/components/DataList/examples/DataListSelectableRows.tsx +18 -16
- package/src/components/DataList/examples/DataListWidthModifiers.tsx +18 -16
- package/src/components/DatePicker/examples/DatePicker.md +1 -0
- package/src/components/Dropdown/Dropdown.tsx +113 -98
- package/src/components/Dropdown/DropdownGroup.tsx +15 -26
- package/src/components/Dropdown/DropdownItem.tsx +14 -90
- package/src/{next/components → components}/Dropdown/DropdownList.tsx +1 -1
- package/src/components/Dropdown/__tests__/Dropdown.test.tsx +208 -270
- package/src/components/Dropdown/__tests__/DropdownGroup.test.tsx +68 -9
- package/src/{next/components → components}/Dropdown/__tests__/DropdownItem.test.tsx +1 -1
- package/src/{next/components → components}/Dropdown/__tests__/DropdownList.test.tsx +1 -1
- package/src/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +32 -963
- package/src/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +14 -15
- package/src/components/Dropdown/examples/Dropdown.md +21 -149
- package/src/components/Dropdown/examples/DropdownBasic.tsx +35 -43
- package/src/{next/components → components}/Dropdown/examples/DropdownWithDescriptions.tsx +1 -2
- package/src/{next/components → components}/Dropdown/examples/DropdownWithGroups.tsx +4 -5
- package/src/{next/components → components}/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -3
- package/src/components/Dropdown/index.ts +1 -9
- package/src/components/DualListSelector/examples/DualListSelector.md +14 -1
- package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +11 -14
- package/src/components/FileUpload/examples/FileUpload.md +3 -2
- package/src/components/Form/examples/Form.md +1 -0
- package/src/components/FormSelect/examples/FormSelect.md +1 -0
- package/src/components/Hint/examples/Hint.md +9 -0
- package/src/components/Hint/examples/HintBasicWithTitle.tsx +15 -19
- package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +15 -18
- package/src/components/InputGroup/examples/InputGroup.md +17 -0
- package/src/components/InputGroup/examples/InputGroupWithDropdown.tsx +13 -8
- package/src/components/Menu/examples/Menu.md +28 -0
- package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +30 -28
- package/src/components/MenuToggle/examples/MenuToggle.md +1 -0
- package/src/components/Modal/examples/Modal.md +24 -4
- package/src/components/Modal/examples/ModalWithDropdown.tsx +14 -9
- package/src/components/MultipleFileUpload/examples/MultipleFileUpload.md +3 -2
- package/src/components/NotificationDrawer/examples/NotificationDrawer.md +12 -1
- package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +20 -18
- package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +22 -20
- package/src/components/OverflowMenu/OverflowMenuDropdownItem.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenu.md +20 -17
- package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +7 -6
- package/src/components/Progress/ProgressContainer.tsx +19 -16
- package/src/components/Progress/__tests__/__snapshots__/Progress.test.tsx.snap +0 -104
- package/src/components/Radio/examples/Radio.md +1 -0
- package/src/components/Select/examples/Select.md +1 -0
- package/src/components/TextArea/examples/TextArea.md +1 -0
- package/src/components/TextInput/examples/TextInput.md +1 -0
- package/src/components/TimePicker/examples/TimePicker.md +1 -0
- package/src/components/Toolbar/examples/Toolbar.md +20 -1
- package/src/components/Toolbar/examples/ToolbarStacked.tsx +43 -39
- package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +19 -23
- package/src/components/TreeView/examples/TreeView.md +59 -59
- package/src/demos/AlertGroup.md +8 -2
- package/src/demos/Card/Card.md +39 -24
- package/src/demos/CardDemos.md +15 -12
- package/src/demos/ComposableMenu/ComposableMenu.md +4 -3
- package/src/demos/DataListDemo.md +37 -29
- package/src/demos/DatePicker/DatePicker.md +2 -1
- package/src/demos/DateTimePicker.md +8 -1
- package/src/demos/Filters/FilterDemos.md +1 -1
- package/src/demos/Masthead.md +8 -0
- package/src/demos/MultipleFileUploadDemos.md +2 -1
- package/src/demos/Nav.md +86 -78
- package/src/demos/NotificationDrawer/NotificationDrawer.md +94 -80
- package/src/demos/Page.md +12 -1
- package/src/demos/PasswordGenerator.md +1 -1
- package/src/demos/PasswordStrength.md +1 -1
- package/src/demos/PrimaryDetail.md +52 -35
- package/src/demos/Tabs.md +5 -2
- package/src/demos/Toolbar.md +53 -43
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +16 -14
- package/src/demos/examples/DashboardHeader.js +31 -28
- package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +8 -12
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +31 -28
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +31 -28
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +31 -28
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +31 -28
- package/src/demos/examples/Page/PageStickySectionGroupUsingPageHeader.tsx +31 -28
- package/src/demos/examples/Tabs/TabsAndTable.tsx +15 -14
- package/src/deprecated/components/ContextSelector/examples/ContextSelector.md +1 -0
- package/src/{components → deprecated/components}/Dropdown/BadgeToggle.tsx +1 -1
- package/src/deprecated/components/Dropdown/Dropdown.tsx +115 -0
- package/src/deprecated/components/Dropdown/DropdownGroup.tsx +36 -0
- package/src/deprecated/components/Dropdown/DropdownItem.tsx +113 -0
- package/src/{components → deprecated/components}/Dropdown/DropdownMenu.tsx +11 -18
- package/src/{components → deprecated/components}/Dropdown/DropdownSeparator.tsx +3 -3
- package/src/{components → deprecated/components}/Dropdown/DropdownToggle.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/DropdownToggleCheckbox.tsx +3 -3
- package/src/{components → deprecated/components}/Dropdown/DropdownWithContext.tsx +3 -3
- package/src/{components → deprecated/components}/Dropdown/InternalDropdownItem.tsx +3 -3
- package/src/{components → deprecated/components}/Dropdown/Toggle.tsx +4 -4
- package/src/deprecated/components/Dropdown/__tests__/Dropdown.test.tsx +278 -0
- package/src/deprecated/components/Dropdown/__tests__/DropdownGroup.test.tsx +10 -0
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +978 -0
- package/src/deprecated/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +21 -0
- package/src/{components → deprecated/components}/Dropdown/dropdownConstants.tsx +1 -1
- package/src/deprecated/components/Dropdown/examples/Dropdown.md +212 -0
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownAlignmentOnBreakpoints.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownAppendBodyVsParent.tsx +2 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownBadge.tsx +1 -1
- package/src/deprecated/components/Dropdown/examples/DropdownBasic.tsx +59 -0
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownBasicPanel.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownDescriptions.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownDirectionUp.tsx +7 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownDisabled.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownGroups.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownIconOnly.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownImageAndText.tsx +3 -3
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownInitialSelection.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownKebab.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownPlainTextToggle.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownPositionRight.tsx +7 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownPrimaryToggle.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownRouterLink.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSecondaryToggle.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButton.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonAction.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonActionPrimary.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonActionSecondary.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonDisabled.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonProgressCheckbox.tsx +1 -1
- package/src/{components → deprecated/components}/Dropdown/examples/DropdownSplitButtonText.tsx +1 -1
- package/src/deprecated/components/Dropdown/index.ts +12 -0
- package/src/deprecated/components/OptionsMenu/OptionsMenu.tsx +2 -2
- package/src/deprecated/components/OptionsMenu/OptionsMenuItem.tsx +1 -1
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggle.tsx +1 -1
- package/src/deprecated/components/OptionsMenu/OptionsMenuToggleWithText.tsx +2 -2
- package/src/deprecated/components/OptionsMenu/__tests__/Generated/OptionsMenuItem.test.tsx +1 -1
- package/src/deprecated/components/OptionsMenu/examples/OptionsMenu.md +1 -0
- package/src/deprecated/components/index.ts +1 -0
- package/src/next/components/Select/examples/Select.md +1 -0
- package/src/next/components/index.ts +0 -1
- package/dist/esm/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/esm/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/esm/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/esm/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/esm/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/Toggle.js.map +0 -1
- package/dist/esm/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/esm/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/esm/next/components/Dropdown/Dropdown.d.ts +0 -35
- package/dist/esm/next/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/esm/next/components/Dropdown/Dropdown.js +0 -57
- package/dist/esm/next/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownGroup.d.ts +0 -12
- package/dist/esm/next/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownGroup.js +0 -10
- package/dist/esm/next/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownItem.d.ts +0 -19
- package/dist/esm/next/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownItem.js +0 -12
- package/dist/esm/next/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownList.d.ts.map +0 -1
- package/dist/esm/next/components/Dropdown/DropdownList.js.map +0 -1
- package/dist/esm/next/components/Dropdown/index.d.ts +0 -5
- package/dist/esm/next/components/Dropdown/index.d.ts.map +0 -1
- package/dist/esm/next/components/Dropdown/index.js +0 -5
- package/dist/esm/next/components/Dropdown/index.js.map +0 -1
- package/dist/js/components/Dropdown/BadgeToggle.d.ts.map +0 -1
- package/dist/js/components/Dropdown/BadgeToggle.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownSeparator.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownSeparator.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggle.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggle.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggleAction.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggleAction.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggleCheckbox.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownToggleCheckbox.js.map +0 -1
- package/dist/js/components/Dropdown/DropdownWithContext.d.ts.map +0 -1
- package/dist/js/components/Dropdown/DropdownWithContext.js.map +0 -1
- package/dist/js/components/Dropdown/InternalDropdownItem.d.ts.map +0 -1
- package/dist/js/components/Dropdown/InternalDropdownItem.js.map +0 -1
- package/dist/js/components/Dropdown/KebabToggle.d.ts.map +0 -1
- package/dist/js/components/Dropdown/KebabToggle.js.map +0 -1
- package/dist/js/components/Dropdown/Toggle.d.ts.map +0 -1
- package/dist/js/components/Dropdown/Toggle.js.map +0 -1
- package/dist/js/components/Dropdown/dropdownConstants.d.ts.map +0 -1
- package/dist/js/components/Dropdown/dropdownConstants.js.map +0 -1
- package/dist/js/next/components/Dropdown/Dropdown.d.ts +0 -35
- package/dist/js/next/components/Dropdown/Dropdown.d.ts.map +0 -1
- package/dist/js/next/components/Dropdown/Dropdown.js +0 -60
- package/dist/js/next/components/Dropdown/Dropdown.js.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownGroup.d.ts +0 -12
- package/dist/js/next/components/Dropdown/DropdownGroup.d.ts.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownGroup.js +0 -14
- package/dist/js/next/components/Dropdown/DropdownGroup.js.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownItem.d.ts +0 -19
- package/dist/js/next/components/Dropdown/DropdownItem.d.ts.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownItem.js +0 -16
- package/dist/js/next/components/Dropdown/DropdownItem.js.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownList.d.ts.map +0 -1
- package/dist/js/next/components/Dropdown/DropdownList.js.map +0 -1
- package/dist/js/next/components/Dropdown/index.d.ts +0 -5
- package/dist/js/next/components/Dropdown/index.d.ts.map +0 -1
- package/dist/js/next/components/Dropdown/index.js +0 -8
- package/dist/js/next/components/Dropdown/index.js.map +0 -1
- package/src/components/Backdrop/examples/BackdropSpinner.tsx +0 -10
- package/src/next/components/Dropdown/Dropdown.tsx +0 -130
- package/src/next/components/Dropdown/DropdownGroup.tsx +0 -25
- package/src/next/components/Dropdown/DropdownItem.tsx +0 -37
- package/src/next/components/Dropdown/__tests__/Dropdown.test.tsx +0 -216
- package/src/next/components/Dropdown/__tests__/DropdownGroup.test.tsx +0 -69
- package/src/next/components/Dropdown/__tests__/__snapshots__/Dropdown.test.tsx.snap +0 -47
- package/src/next/components/Dropdown/__tests__/__snapshots__/DropdownGroup.test.tsx.snap +0 -20
- package/src/next/components/Dropdown/examples/Dropdown.md +0 -45
- package/src/next/components/Dropdown/examples/DropdownBasic.tsx +0 -52
- package/src/next/components/Dropdown/index.ts +0 -4
- /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownMenu.d.ts +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleAction.d.ts +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/DropdownToggleAction.js +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/InternalDropdownItem.d.ts +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/KebabToggle.d.ts +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/KebabToggle.js +0 -0
- /package/dist/esm/{components → deprecated/components}/Dropdown/dropdownConstants.js +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/DropdownMenu.d.ts +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleAction.d.ts +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/DropdownToggleAction.js +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/InternalDropdownItem.d.ts +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/KebabToggle.d.ts +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/KebabToggle.js +0 -0
- /package/dist/js/{components → deprecated/components}/Dropdown/dropdownConstants.js +0 -0
- /package/src/{next/components → components}/Dropdown/__tests__/__snapshots__/DropdownItem.test.tsx.snap +0 -0
- /package/src/{next/components → components}/Dropdown/__tests__/__snapshots__/DropdownList.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/DropdownToggleAction.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/KebabToggle.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggle.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggleAction.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/DropdownToggleCheckbox.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownItem.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownMenu.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/DropdownSeparator.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/KebabToggle.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownItem.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownMenu.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/DropdownSeparator.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Generated/__snapshots__/KebabToggle.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/InternalDropdownItem.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/Toggle.test.tsx +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggle.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggleAction.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/DropdownToggleCheckbox.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/InternalDropdownItem.test.tsx.snap +0 -0
- /package/src/{components → deprecated/components}/Dropdown/__tests__/__snapshots__/Toggle.test.tsx.snap +0 -0
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Hint, HintBody, HintFooter, Button } from '@patternfly/react-core';
|
|
2
3
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
HintFooter,
|
|
6
|
-
Button,
|
|
7
|
-
Dropdown,
|
|
8
|
-
DropdownItem,
|
|
4
|
+
Dropdown as DropdownDeprecated,
|
|
5
|
+
DropdownItem as DropdownItemDeprecated,
|
|
9
6
|
DropdownSeparator,
|
|
10
7
|
KebabToggle
|
|
11
|
-
} from '@patternfly/react-core';
|
|
8
|
+
} from '@patternfly/react-core/deprecated';
|
|
12
9
|
|
|
13
10
|
export const HintBasicWithoutTitle: React.FunctionComponent = () => {
|
|
14
11
|
const [isOpen, setIsOpen] = React.useState<boolean>(false);
|
|
@@ -22,24 +19,24 @@ export const HintBasicWithoutTitle: React.FunctionComponent = () => {
|
|
|
22
19
|
};
|
|
23
20
|
|
|
24
21
|
const dropdownItems = [
|
|
25
|
-
<
|
|
26
|
-
<
|
|
22
|
+
<DropdownItemDeprecated key="link">Link</DropdownItemDeprecated>,
|
|
23
|
+
<DropdownItemDeprecated key="action" component="button">
|
|
27
24
|
Action
|
|
28
|
-
</
|
|
29
|
-
<
|
|
25
|
+
</DropdownItemDeprecated>,
|
|
26
|
+
<DropdownItemDeprecated key="disabled link" isDisabled>
|
|
30
27
|
Disabled Link
|
|
31
|
-
</
|
|
32
|
-
<
|
|
28
|
+
</DropdownItemDeprecated>,
|
|
29
|
+
<DropdownItemDeprecated key="disabled action" isDisabled component="button">
|
|
33
30
|
Disabled Action
|
|
34
|
-
</
|
|
31
|
+
</DropdownItemDeprecated>,
|
|
35
32
|
<DropdownSeparator key="separator" />,
|
|
36
|
-
<
|
|
37
|
-
<
|
|
33
|
+
<DropdownItemDeprecated key="separated link">Separated Link</DropdownItemDeprecated>,
|
|
34
|
+
<DropdownItemDeprecated key="separated action" component="button">
|
|
38
35
|
Separated Action
|
|
39
|
-
</
|
|
36
|
+
</DropdownItemDeprecated>
|
|
40
37
|
];
|
|
41
38
|
const actions = (
|
|
42
|
-
<
|
|
39
|
+
<DropdownDeprecated
|
|
43
40
|
onSelect={onSelect}
|
|
44
41
|
toggle={<KebabToggle onToggle={onToggle} id="hint-notitle-kebab-toggle" />}
|
|
45
42
|
isOpen={isOpen}
|
|
@@ -4,28 +4,45 @@ section: components
|
|
|
4
4
|
cssPrefix: null
|
|
5
5
|
propComponents: ['InputGroup', 'InputGroupText']
|
|
6
6
|
---
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
Dropdown as DropdownDeprecated,
|
|
10
|
+
DropdownToggle,
|
|
11
|
+
DropdownItem as DropdownItemDeprecated
|
|
12
|
+
} from '@patternfly/react-core/deprecated';
|
|
7
13
|
import AtIcon from '@patternfly/react-icons/dist/esm/icons/at-icon';
|
|
8
14
|
import DollarSignIcon from '@patternfly/react-icons/dist/esm/icons/dollar-sign-icon';
|
|
9
15
|
import CalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/calendar-alt-icon';
|
|
10
16
|
import QuestionCircleIcon from '@patternfly/react-icons/dist/esm/icons/question-circle-icon';
|
|
11
17
|
|
|
12
18
|
## Examples
|
|
19
|
+
|
|
13
20
|
### Basic
|
|
21
|
+
|
|
14
22
|
```ts file='./InputGroupBasic.tsx'
|
|
23
|
+
|
|
15
24
|
```
|
|
16
25
|
|
|
17
26
|
### With textarea
|
|
27
|
+
|
|
18
28
|
```ts file='./InputGroupWithTextarea.tsx'
|
|
29
|
+
|
|
19
30
|
```
|
|
20
31
|
|
|
21
32
|
### With dropdown
|
|
33
|
+
|
|
22
34
|
```ts file='./InputGroupWithDropdown.tsx'
|
|
35
|
+
|
|
23
36
|
```
|
|
24
37
|
|
|
25
38
|
### With popover
|
|
39
|
+
|
|
26
40
|
```ts file ='./InputGroupWithPopover.tsx'
|
|
41
|
+
|
|
27
42
|
```
|
|
28
43
|
|
|
29
44
|
### With multiple group siblings
|
|
45
|
+
|
|
30
46
|
```ts file='./InputGroupWithSiblings.tsx'
|
|
47
|
+
|
|
31
48
|
```
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button, InputGroup, TextInput
|
|
2
|
+
import { Button, InputGroup, TextInput } from '@patternfly/react-core';
|
|
3
|
+
import {
|
|
4
|
+
Dropdown as DropdownDeprecated,
|
|
5
|
+
DropdownToggle,
|
|
6
|
+
DropdownItem as DropdownItemDeprecated
|
|
7
|
+
} from '@patternfly/react-core/deprecated';
|
|
3
8
|
|
|
4
9
|
export const InputGroupWithDropdown: React.FunctionComponent = () => {
|
|
5
10
|
const [isOpen, setIsOpen] = React.useState<boolean>(false);
|
|
@@ -13,21 +18,21 @@ export const InputGroupWithDropdown: React.FunctionComponent = () => {
|
|
|
13
18
|
};
|
|
14
19
|
|
|
15
20
|
const dropdownItems = [
|
|
16
|
-
<
|
|
21
|
+
<DropdownItemDeprecated key="opt-1" value="Option 1" component="button">
|
|
17
22
|
Option 1
|
|
18
|
-
</
|
|
19
|
-
<
|
|
23
|
+
</DropdownItemDeprecated>,
|
|
24
|
+
<DropdownItemDeprecated key="opt-2" value="Option 2" component="button">
|
|
20
25
|
Option 2
|
|
21
|
-
</
|
|
22
|
-
<
|
|
26
|
+
</DropdownItemDeprecated>,
|
|
27
|
+
<DropdownItemDeprecated key="opt-3" value="Option 3" component="button">
|
|
23
28
|
Option 3
|
|
24
|
-
</
|
|
29
|
+
</DropdownItemDeprecated>
|
|
25
30
|
];
|
|
26
31
|
|
|
27
32
|
return (
|
|
28
33
|
<React.Fragment>
|
|
29
34
|
<InputGroup>
|
|
30
|
-
<
|
|
35
|
+
<DropdownDeprecated
|
|
31
36
|
onSelect={onSelect}
|
|
32
37
|
toggle={<DropdownToggle onToggle={onToggle}>Dropdown</DropdownToggle>}
|
|
33
38
|
isOpen={isOpen}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Menu
|
|
3
3
|
section: components
|
|
4
|
+
subsection: menus
|
|
4
5
|
cssPrefix: pf-c-menu
|
|
5
6
|
propComponents: ['Menu', 'MenuList', 'MenuItem', 'MenuItemAction', 'MenuContent', 'MenuInput', 'MenuGroup']
|
|
6
7
|
ouia: true
|
|
7
8
|
---
|
|
8
9
|
|
|
10
|
+
import {
|
|
11
|
+
Dropdown as DropdownDeprecated,
|
|
12
|
+
DropdownItem as DropdownItemDeprecated,
|
|
13
|
+
BadgeToggle
|
|
14
|
+
} from '@patternfly/react-core/deprecated';
|
|
9
15
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
10
16
|
import ClipboardIcon from '@patternfly/react-icons/dist/esm/icons/clipboard-icon';
|
|
11
17
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
@@ -28,6 +34,7 @@ A menu may contain multiple variations of `<MenuItem>` components. The following
|
|
|
28
34
|
- Use the `isPlain` property to remove the outer box shadow and style the menu plainly instead.
|
|
29
35
|
|
|
30
36
|
```ts file="MenuBasic.tsx"
|
|
37
|
+
|
|
31
38
|
```
|
|
32
39
|
|
|
33
40
|
### Danger menu item
|
|
@@ -35,6 +42,7 @@ A menu may contain multiple variations of `<MenuItem>` components. The following
|
|
|
35
42
|
To indicate that a `<MenuItem>` is connected to a potentially destructive action, use the `isDanger` property. The "Delete" item in the following example demonstrates how danger items look.
|
|
36
43
|
|
|
37
44
|
```ts file="MenuDangerMenuItem.tsx"
|
|
45
|
+
|
|
38
46
|
```
|
|
39
47
|
|
|
40
48
|
### With icons
|
|
@@ -42,6 +50,7 @@ To indicate that a `<MenuItem>` is connected to a potentially destructive action
|
|
|
42
50
|
Use the `icon` property to add a familiar icon before a `<MenuItem>` to accelerate text label recognition.
|
|
43
51
|
|
|
44
52
|
```ts file="MenuWithIcons.tsx"
|
|
53
|
+
|
|
45
54
|
```
|
|
46
55
|
|
|
47
56
|
### With actions
|
|
@@ -53,6 +62,7 @@ To trigger an action when any menu action icon is selected, pass a callback to t
|
|
|
53
62
|
To trigger an action when a specific item's action icon is selected, pass in the `onClick` property to that `<MenuItemAction>`. The following example logs "clicked on code icon" to the console when the "code" icon is selected.
|
|
54
63
|
|
|
55
64
|
```ts file="MenuWithActions.tsx"
|
|
65
|
+
|
|
56
66
|
```
|
|
57
67
|
|
|
58
68
|
### With links
|
|
@@ -60,6 +70,7 @@ To trigger an action when a specific item's action icon is selected, pass in the
|
|
|
60
70
|
Use the `to` property to add a link to a `<MenuItem>` that directs users to a new page when the item is selected. Use the `isExternalLink` property when linking to external resources. This will annotate a menu item link with an external link icon when they navigate to the link or hover over it.
|
|
61
71
|
|
|
62
72
|
```ts file="MenuWithLinks.tsx"
|
|
73
|
+
|
|
63
74
|
```
|
|
64
75
|
|
|
65
76
|
### With descriptions
|
|
@@ -67,6 +78,7 @@ Use the `to` property to add a link to a `<MenuItem>` that directs users to a ne
|
|
|
67
78
|
Use the `description` property to add short descriptive text below any menu item that needs additional context.
|
|
68
79
|
|
|
69
80
|
```ts file="MenuWithDescription.tsx"
|
|
81
|
+
|
|
70
82
|
```
|
|
71
83
|
|
|
72
84
|
### Item checkbox
|
|
@@ -74,6 +86,7 @@ Use the `description` property to add short descriptive text below any menu item
|
|
|
74
86
|
Use the `hasCheck` property to add a checkbox to a `<MenuItem>`. Use the `isSelected` property to indicate when a `<MenuItem>` is selected.
|
|
75
87
|
|
|
76
88
|
```ts file="./MenuWithCheckbox.tsx" isBeta
|
|
89
|
+
|
|
77
90
|
```
|
|
78
91
|
|
|
79
92
|
### Menu footer
|
|
@@ -81,6 +94,7 @@ Use the `hasCheck` property to add a checkbox to a `<MenuItem>`. Use the `isSele
|
|
|
81
94
|
Add a `<MenuFooter>` that contains separate, but related actions at the bottom of a menu.
|
|
82
95
|
|
|
83
96
|
```ts file="MenuWithFooter.tsx"
|
|
97
|
+
|
|
84
98
|
```
|
|
85
99
|
|
|
86
100
|
### Separated items
|
|
@@ -88,6 +102,7 @@ Add a `<MenuFooter>` that contains separate, but related actions at the bottom o
|
|
|
88
102
|
Use a [divider](/components/divider) to visually separate `<MenuContent>`. Use the `component` property to specify the type of divider component to use.
|
|
89
103
|
|
|
90
104
|
```ts file="MenuWithSeparators.tsx"
|
|
105
|
+
|
|
91
106
|
```
|
|
92
107
|
|
|
93
108
|
### Titled groups of items
|
|
@@ -95,6 +110,7 @@ Use a [divider](/components/divider) to visually separate `<MenuContent>`. Use t
|
|
|
95
110
|
Add a `<MenuGroup>` to organize `<MenuContent>` and use the `label` property to title a group of menu items. Use the `labelHeadingLevel` property to assign a heading level to the menu group label.
|
|
96
111
|
|
|
97
112
|
```ts file="MenuWithTitledGroups.tsx"
|
|
113
|
+
|
|
98
114
|
```
|
|
99
115
|
|
|
100
116
|
### With favorites
|
|
@@ -102,6 +118,7 @@ Add a `<MenuGroup>` to organize `<MenuContent>` and use the `label` property to
|
|
|
102
118
|
The following menu example allows users to favorite menu items, an action that duplicates a menu item and places it in a separate group at the top of the menu. The `isFavorited` property identifies items that a user has favorited.
|
|
103
119
|
|
|
104
120
|
```ts file="MenuWithFavorites.tsx"
|
|
121
|
+
|
|
105
122
|
```
|
|
106
123
|
|
|
107
124
|
### Filtering with search input
|
|
@@ -109,6 +126,7 @@ The following menu example allows users to favorite menu items, an action that d
|
|
|
109
126
|
A [search input](/components/search-input) component can be placed within `<MenuInput>` to render a search input at the top of the menu. In the following example, the `onChange` property of the text input is passed a callback that filters menu items as a user types.
|
|
110
127
|
|
|
111
128
|
```ts file="MenuFilteringWithSearchInput.tsx"
|
|
129
|
+
|
|
112
130
|
```
|
|
113
131
|
|
|
114
132
|
### Option single select menu
|
|
@@ -118,6 +136,7 @@ The following example demonstrates a single option select menu that persists a s
|
|
|
118
136
|
You must also use the `role` property on the `<Menu>` with a value of `"listbox"` when using a non-checkbox select menu.
|
|
119
137
|
|
|
120
138
|
```ts file="MenuOptionSingleSelect.tsx"
|
|
139
|
+
|
|
121
140
|
```
|
|
122
141
|
|
|
123
142
|
### Option multi select menu
|
|
@@ -127,6 +146,7 @@ To persist multiple selections that a user makes, use a multiple option select m
|
|
|
127
146
|
Similar to a single select menu, you must also pass `role="listbox"` to the `<Menu>`.
|
|
128
147
|
|
|
129
148
|
```ts file="MenuOptionMultiSelect.tsx"
|
|
149
|
+
|
|
130
150
|
```
|
|
131
151
|
|
|
132
152
|
### Scrollable menus
|
|
@@ -134,6 +154,7 @@ Similar to a single select menu, you must also pass `role="listbox"` to the `<Me
|
|
|
134
154
|
Use the `isScrollable` property to make a long `<Menu>` scrollable and visually condensed.
|
|
135
155
|
|
|
136
156
|
```ts file="MenuScrollable.tsx"
|
|
157
|
+
|
|
137
158
|
```
|
|
138
159
|
|
|
139
160
|
### Scrollable menu with custom height
|
|
@@ -141,6 +162,7 @@ Use the `isScrollable` property to make a long `<Menu>` scrollable and visually
|
|
|
141
162
|
Adjust the visual size of a scrollable menu by using the `menuHeight` property within `<MenuContent>`. This example adjusts the height to 200px.
|
|
142
163
|
|
|
143
164
|
```ts file="MenuScrollableCustomMenuHeight.tsx"
|
|
165
|
+
|
|
144
166
|
```
|
|
145
167
|
|
|
146
168
|
### With view more
|
|
@@ -150,6 +172,7 @@ If you want to initially render only a certain number of menu items within a lar
|
|
|
150
172
|
In this example, 3 additional menu items are revealed each time the "view more" option is selected, with a loading icon simulating a network call to fetch more items. After all items are visible, the "view more" link disappears.
|
|
151
173
|
|
|
152
174
|
```ts file="MenuWithViewMore.tsx"
|
|
175
|
+
|
|
153
176
|
```
|
|
154
177
|
|
|
155
178
|
### With drilldown
|
|
@@ -163,6 +186,7 @@ Use a drilldown menu to contain different levels of menu items. When a parent me
|
|
|
163
186
|
- To account for updated heights as menus drill in and out of use, use the `onGetMenuHeight` property. When starting from a drilled-in state, the `onGetMenuHeight` property must define the height of the root menu.
|
|
164
187
|
|
|
165
188
|
```ts file="./MenuWithDrilldown.tsx" isBeta
|
|
189
|
+
|
|
166
190
|
```
|
|
167
191
|
|
|
168
192
|
### Initially drilled-in menu
|
|
@@ -170,6 +194,7 @@ Use a drilldown menu to contain different levels of menu items. When a parent me
|
|
|
170
194
|
To render an initially drilled-in menu, the `drilldownItemPath`, `drilledInMenus`, and `activeMenu` properties must be set to default values.
|
|
171
195
|
|
|
172
196
|
```ts file="./MenuWithDrilldownInitialState.tsx" isBeta
|
|
197
|
+
|
|
173
198
|
```
|
|
174
199
|
|
|
175
200
|
### With drilldown - submenu functions
|
|
@@ -177,6 +202,7 @@ To render an initially drilled-in menu, the `drilldownItemPath`, `drilledInMenus
|
|
|
177
202
|
For added flexibility with large menus, you may create a menu by passing a function to `drilldownMenu`. This approach allows you to create menu items dynamically, rather than creating everything up front.
|
|
178
203
|
|
|
179
204
|
```ts file="./MenuWithDrilldownSubmenuFunctions.tsx" isBeta
|
|
205
|
+
|
|
180
206
|
```
|
|
181
207
|
|
|
182
208
|
### With drilldown breadcrumbs
|
|
@@ -186,9 +212,11 @@ Use [breadcrumbs](/components/breadcrumb) when a drilldown menu has more than 2
|
|
|
186
212
|
To control the height of a menu, use the `maxMenuHeight` property. Selecting the "Set max menu height" checkbox in the following example sets the menu height to "100px" and makes the menu scrollable.
|
|
187
213
|
|
|
188
214
|
```ts file="MenuWithDrilldownBreadcrumbs.tsx" isBeta
|
|
215
|
+
|
|
189
216
|
```
|
|
190
217
|
|
|
191
218
|
### With drilldown and inline filter
|
|
192
219
|
|
|
193
220
|
```ts file="MenuFilterDrilldown.tsx"
|
|
221
|
+
|
|
194
222
|
```
|
|
@@ -10,11 +10,13 @@ import {
|
|
|
10
10
|
BreadcrumbItem,
|
|
11
11
|
BreadcrumbHeading,
|
|
12
12
|
MenuBreadcrumb,
|
|
13
|
-
Dropdown,
|
|
14
|
-
DropdownItem,
|
|
15
|
-
BadgeToggle,
|
|
16
13
|
Checkbox
|
|
17
14
|
} from '@patternfly/react-core';
|
|
15
|
+
import {
|
|
16
|
+
Dropdown as DropdownDeprecated,
|
|
17
|
+
DropdownItem as DropdownItemDeprecated,
|
|
18
|
+
BadgeToggle
|
|
19
|
+
} from '@patternfly/react-core/deprecated';
|
|
18
20
|
import StorageDomainIcon from '@patternfly/react-icons/dist/esm/icons/storage-domain-icon';
|
|
19
21
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
20
22
|
import LayerGroupIcon from '@patternfly/react-icons/dist/esm/icons/layer-group-icon';
|
|
@@ -58,11 +60,11 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
58
60
|
fromPathId: string,
|
|
59
61
|
breadcrumb: JSX.Element | null
|
|
60
62
|
) => {
|
|
61
|
-
setMenuDrilledIn(prevMenuDrilledIn => {
|
|
63
|
+
setMenuDrilledIn((prevMenuDrilledIn) => {
|
|
62
64
|
const indexOfMenuId = prevMenuDrilledIn.indexOf(toMenuId);
|
|
63
65
|
return prevMenuDrilledIn.slice(0, indexOfMenuId);
|
|
64
66
|
});
|
|
65
|
-
setDrilldownPath(prevDrilldownPath => {
|
|
67
|
+
setDrilldownPath((prevDrilldownPath) => {
|
|
66
68
|
const indexOfMenuIdPath = prevDrilldownPath.indexOf(fromPathId);
|
|
67
69
|
return prevDrilldownPath.slice(0, indexOfMenuIdPath);
|
|
68
70
|
});
|
|
@@ -91,7 +93,7 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
91
93
|
<Breadcrumb>
|
|
92
94
|
<BreadcrumbItem
|
|
93
95
|
component="button"
|
|
94
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
96
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
95
97
|
>
|
|
96
98
|
Root
|
|
97
99
|
</BreadcrumbItem>
|
|
@@ -103,12 +105,12 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
103
105
|
<Breadcrumb>
|
|
104
106
|
<BreadcrumbItem
|
|
105
107
|
component="button"
|
|
106
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
108
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
107
109
|
>
|
|
108
110
|
Root
|
|
109
111
|
</BreadcrumbItem>
|
|
110
112
|
<BreadcrumbItem isDropdown>
|
|
111
|
-
<
|
|
113
|
+
<DropdownDeprecated
|
|
112
114
|
toggle={
|
|
113
115
|
<BadgeToggle id="toggle-id" onToggle={(_event: any, open: boolean) => onToggle(open, 'app')}>
|
|
114
116
|
1
|
|
@@ -116,16 +118,16 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
116
118
|
}
|
|
117
119
|
isOpen={isOpen}
|
|
118
120
|
dropdownItems={[
|
|
119
|
-
<
|
|
121
|
+
<DropdownItemDeprecated
|
|
120
122
|
key="dropdown-start"
|
|
121
123
|
component="button"
|
|
122
124
|
icon={<AngleLeftIcon />}
|
|
123
|
-
onClick={event =>
|
|
125
|
+
onClick={(event) =>
|
|
124
126
|
drillOut(event, 'breadcrumbs-drilldownMenuStart', 'group:app_grouping_start', startRolloutBreadcrumb)
|
|
125
127
|
}
|
|
126
128
|
>
|
|
127
129
|
Start rollout
|
|
128
|
-
</
|
|
130
|
+
</DropdownItemDeprecated>
|
|
129
131
|
]}
|
|
130
132
|
/>
|
|
131
133
|
</BreadcrumbItem>
|
|
@@ -137,12 +139,12 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
137
139
|
<Breadcrumb>
|
|
138
140
|
<BreadcrumbItem
|
|
139
141
|
component="button"
|
|
140
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
142
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:start_rollout', null)}
|
|
141
143
|
>
|
|
142
144
|
Root
|
|
143
145
|
</BreadcrumbItem>
|
|
144
146
|
<BreadcrumbItem isDropdown>
|
|
145
|
-
<
|
|
147
|
+
<DropdownDeprecated
|
|
146
148
|
toggle={
|
|
147
149
|
<BadgeToggle id="toggle-id" onToggle={(_event: any, open: boolean) => onToggle(open, 'label')}>
|
|
148
150
|
1
|
|
@@ -150,16 +152,16 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
150
152
|
}
|
|
151
153
|
isOpen={isOpen}
|
|
152
154
|
dropdownItems={[
|
|
153
|
-
<
|
|
155
|
+
<DropdownItemDeprecated
|
|
154
156
|
key="dropdown-start"
|
|
155
157
|
component="button"
|
|
156
158
|
icon={<AngleLeftIcon />}
|
|
157
|
-
onClick={event =>
|
|
159
|
+
onClick={(event) =>
|
|
158
160
|
drillOut(event, 'breadcrumbs-drilldownMenuStart', 'group:labels_start', startRolloutBreadcrumb)
|
|
159
161
|
}
|
|
160
162
|
>
|
|
161
163
|
Start rollout
|
|
162
|
-
</
|
|
164
|
+
</DropdownItemDeprecated>
|
|
163
165
|
]}
|
|
164
166
|
/>
|
|
165
167
|
</BreadcrumbItem>
|
|
@@ -171,7 +173,7 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
171
173
|
<Breadcrumb>
|
|
172
174
|
<BreadcrumbItem
|
|
173
175
|
component="button"
|
|
174
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
176
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
175
177
|
>
|
|
176
178
|
Root
|
|
177
179
|
</BreadcrumbItem>
|
|
@@ -183,12 +185,12 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
183
185
|
<Breadcrumb>
|
|
184
186
|
<BreadcrumbItem
|
|
185
187
|
component="button"
|
|
186
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
188
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
187
189
|
>
|
|
188
190
|
Root
|
|
189
191
|
</BreadcrumbItem>
|
|
190
192
|
<BreadcrumbItem isDropdown>
|
|
191
|
-
<
|
|
193
|
+
<DropdownDeprecated
|
|
192
194
|
toggle={
|
|
193
195
|
<BadgeToggle id="toggle-id" onToggle={(_event: any, open: boolean) => onToggle(open, 'pause-app')}>
|
|
194
196
|
1
|
|
@@ -196,16 +198,16 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
196
198
|
}
|
|
197
199
|
isOpen={isOpen}
|
|
198
200
|
dropdownItems={[
|
|
199
|
-
<
|
|
201
|
+
<DropdownItemDeprecated
|
|
200
202
|
key="dropdown-pause"
|
|
201
203
|
component="button"
|
|
202
204
|
icon={<AngleLeftIcon />}
|
|
203
|
-
onClick={event =>
|
|
205
|
+
onClick={(event) =>
|
|
204
206
|
drillOut(event, 'breadcrumbs-drilldownMenuPause', 'group:app_grouping', pauseRolloutsBreadcrumb)
|
|
205
207
|
}
|
|
206
208
|
>
|
|
207
209
|
Pause rollouts
|
|
208
|
-
</
|
|
210
|
+
</DropdownItemDeprecated>
|
|
209
211
|
]}
|
|
210
212
|
/>
|
|
211
213
|
</BreadcrumbItem>
|
|
@@ -217,12 +219,12 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
217
219
|
<Breadcrumb>
|
|
218
220
|
<BreadcrumbItem
|
|
219
221
|
component="button"
|
|
220
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
222
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:pause_rollout', null)}
|
|
221
223
|
>
|
|
222
224
|
Root
|
|
223
225
|
</BreadcrumbItem>
|
|
224
226
|
<BreadcrumbItem isDropdown>
|
|
225
|
-
<
|
|
227
|
+
<DropdownDeprecated
|
|
226
228
|
toggle={
|
|
227
229
|
<BadgeToggle id="toggle-id" onToggle={(_event: any, open: boolean) => onToggle(open, 'pause-label')}>
|
|
228
230
|
1
|
|
@@ -230,16 +232,16 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
230
232
|
}
|
|
231
233
|
isOpen={isOpen}
|
|
232
234
|
dropdownItems={[
|
|
233
|
-
<
|
|
235
|
+
<DropdownItemDeprecated
|
|
234
236
|
key="dropdown-pause"
|
|
235
237
|
component="button"
|
|
236
238
|
icon={<AngleLeftIcon />}
|
|
237
|
-
onClick={event =>
|
|
239
|
+
onClick={(event) =>
|
|
238
240
|
drillOut(event, 'breadcrumbs-drilldownMenuPause', 'group:labels', pauseRolloutsBreadcrumb)
|
|
239
241
|
}
|
|
240
242
|
>
|
|
241
243
|
Pause rollouts
|
|
242
|
-
</
|
|
244
|
+
</DropdownItemDeprecated>
|
|
243
245
|
]}
|
|
244
246
|
/>
|
|
245
247
|
</BreadcrumbItem>
|
|
@@ -251,7 +253,7 @@ export const MenuWithDrilldownBreadcrumbs: React.FunctionComponent = () => {
|
|
|
251
253
|
<Breadcrumb>
|
|
252
254
|
<BreadcrumbItem
|
|
253
255
|
component="button"
|
|
254
|
-
onClick={event => drillOut(event, 'breadcrumbs-rootMenu', 'group:storage', null)}
|
|
256
|
+
onClick={(event) => drillOut(event, 'breadcrumbs-rootMenu', 'group:storage', null)}
|
|
255
257
|
>
|
|
256
258
|
Root
|
|
257
259
|
</BreadcrumbItem>
|
|
@@ -6,6 +6,11 @@ propComponents: ['Modal']
|
|
|
6
6
|
ouia: true
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
import {
|
|
10
|
+
Dropdown as DropdownDeprecated,
|
|
11
|
+
DropdownToggle,
|
|
12
|
+
DropdownItem as DropdownItemDeprecated
|
|
13
|
+
} from '@patternfly/react-core/deprecated';
|
|
9
14
|
import WarningTriangleIcon from '@patternfly/react-icons/dist/esm/icons/warning-triangle-icon';
|
|
10
15
|
import CaretDownIcon from '@patternfly/react-icons/dist/esm/icons/caret-down-icon';
|
|
11
16
|
import BullhornIcon from '@patternfly/react-icons/dist/esm/icons/bullhorn-icon';
|
|
@@ -18,6 +23,7 @@ import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
|
18
23
|
Basic modals give users the option to either confirm or cancel an action. To flag an open modal, use the `isOpen` property. To execute a callback when a modal is closed, use the `onClose` property.
|
|
19
24
|
|
|
20
25
|
```ts file="./ModalBasic.tsx"
|
|
26
|
+
|
|
21
27
|
```
|
|
22
28
|
|
|
23
29
|
### Scrollable modals
|
|
@@ -25,6 +31,7 @@ Basic modals give users the option to either confirm or cancel an action. To fla
|
|
|
25
31
|
To enable keyboard-accessible scrolling of a modal’s content, pass `tabIndex={0}` to the `<Modal>`.
|
|
26
32
|
|
|
27
33
|
```ts file="ModalWithOverflowingContent.tsx"
|
|
34
|
+
|
|
28
35
|
```
|
|
29
36
|
|
|
30
37
|
### With a static description
|
|
@@ -32,6 +39,7 @@ To enable keyboard-accessible scrolling of a modal’s content, pass `tabIndex={
|
|
|
32
39
|
To provide additional information about a modal, use the `description` property. Descriptions are static and do not scroll with other modal content.
|
|
33
40
|
|
|
34
41
|
```ts file="./ModalWithDescription.tsx"
|
|
42
|
+
|
|
35
43
|
```
|
|
36
44
|
|
|
37
45
|
### Top aligned
|
|
@@ -39,15 +47,17 @@ To provide additional information about a modal, use the `description` property.
|
|
|
39
47
|
To override a modal's default center alignment, use the `position` property. In this example, `position` is set to "top", which moves the modal to the top of the screen.
|
|
40
48
|
|
|
41
49
|
```ts file="./ModalTopAligned.tsx"
|
|
50
|
+
|
|
42
51
|
```
|
|
43
52
|
|
|
44
53
|
### Small modal
|
|
45
54
|
|
|
46
|
-
To adjust the size of a modal, use the `variant` property. Modal variants include "small", "medium", "large", and "default".
|
|
55
|
+
To adjust the size of a modal, use the `variant` property. Modal variants include "small", "medium", "large", and "default".
|
|
47
56
|
|
|
48
57
|
The following example displays a "small" modal by passing in `variant={ModalVariant.small}`.
|
|
49
58
|
|
|
50
59
|
```ts file="./ModalSmall.tsx"
|
|
60
|
+
|
|
51
61
|
```
|
|
52
62
|
|
|
53
63
|
### Medium modal
|
|
@@ -55,6 +65,7 @@ The following example displays a "small" modal by passing in `variant={ModalVari
|
|
|
55
65
|
The following example displays a "medium" modal by passing in `variant={ModalVariant.medium}`.
|
|
56
66
|
|
|
57
67
|
```ts file="./ModalMedium.tsx"
|
|
68
|
+
|
|
58
69
|
```
|
|
59
70
|
|
|
60
71
|
### Large modal
|
|
@@ -62,6 +73,7 @@ The following example displays a "medium" modal by passing in `variant={ModalVar
|
|
|
62
73
|
The following example displays a "large" modal by passing in `variant={ModalVariant.large}`.
|
|
63
74
|
|
|
64
75
|
```ts file="./ModalLarge.tsx"
|
|
76
|
+
|
|
65
77
|
```
|
|
66
78
|
|
|
67
79
|
### Custom width
|
|
@@ -69,6 +81,7 @@ The following example displays a "large" modal by passing in `variant={ModalVari
|
|
|
69
81
|
To choose a specific width for a modal, use the `width` property. The following example has a `width` of "50%".
|
|
70
82
|
|
|
71
83
|
```ts file="./ModalCustomWidth.tsx"
|
|
84
|
+
|
|
72
85
|
```
|
|
73
86
|
|
|
74
87
|
### Custom header and footer
|
|
@@ -76,6 +89,7 @@ To choose a specific width for a modal, use the `width` property. The following
|
|
|
76
89
|
To add a custom header and footer to a modal, set the `header` and `footer` properties to a custom implementation. The following example passes title components into both the header and the footer and also passes an icon to the footer.
|
|
77
90
|
|
|
78
91
|
```ts file="./ModalCustomHeaderFooter.tsx"
|
|
92
|
+
|
|
79
93
|
```
|
|
80
94
|
|
|
81
95
|
### No header or footer
|
|
@@ -83,6 +97,7 @@ To add a custom header and footer to a modal, set the `header` and `footer` prop
|
|
|
83
97
|
To exclusively present information in a modal, remove the `header` and/or `footer`.
|
|
84
98
|
|
|
85
99
|
```ts file="./ModalNoHeaderFooter.tsx"
|
|
100
|
+
|
|
86
101
|
```
|
|
87
102
|
|
|
88
103
|
### Title icon
|
|
@@ -90,6 +105,7 @@ To exclusively present information in a modal, remove the `header` and/or `foote
|
|
|
90
105
|
To add an icon before a modal’s title, use the `titleIconVariant`, which can be set to one of the predefined variants -- "success", "danger", "warning", "info", and "default" -- or to an imported custom icon. The following example uses a "warning" variant.
|
|
91
106
|
|
|
92
107
|
```ts file="./ModalTitleIcon.tsx"
|
|
108
|
+
|
|
93
109
|
```
|
|
94
110
|
|
|
95
111
|
### Custom title icon
|
|
@@ -97,6 +113,7 @@ To add an icon before a modal’s title, use the `titleIconVariant`, which can b
|
|
|
97
113
|
To add a custom icon before a modal’s title, set `titleIconVariant` to an imported custom icon. The following example imports and uses a bullhorn icon.
|
|
98
114
|
|
|
99
115
|
```ts file="./ModalCustomTitleIcon.tsx"
|
|
116
|
+
|
|
100
117
|
```
|
|
101
118
|
|
|
102
119
|
### With wizard
|
|
@@ -104,6 +121,7 @@ To add a custom icon before a modal’s title, set `titleIconVariant` to an impo
|
|
|
104
121
|
To guide users through a series of steps in a modal, you can add a [wizard](/components/wizard) to a modal. To configure the `<Wizard>`, pass an array that contains a “name” and “component” value for each step into the `steps` property.
|
|
105
122
|
|
|
106
123
|
```ts file="./ModalWithWizard.tsx"
|
|
124
|
+
|
|
107
125
|
```
|
|
108
126
|
|
|
109
127
|
### With dropdown
|
|
@@ -111,6 +129,7 @@ To guide users through a series of steps in a modal, you can add a [wizard](/com
|
|
|
111
129
|
To present a menu of actions or links to a user, you can add a [dropdown](/components/dropdown) to a modal. To allow the dropdown to visually break out of the modal container, set the `menuAppendTo` property to “parent”. Handle the modal’s closing behavior by listening to the `onEscapePress` callback on the `<Modal>` component. This allows the "escape" key to collapse the dropdown without closing the entire modal.
|
|
112
130
|
|
|
113
131
|
```ts file="./ModalWithDropdown.tsx"
|
|
132
|
+
|
|
114
133
|
```
|
|
115
134
|
|
|
116
135
|
### With help
|
|
@@ -118,14 +137,15 @@ To present a menu of actions or links to a user, you can add a [dropdown](/compo
|
|
|
118
137
|
To help simplify and explain complex models, add a help [popover](/components/popover). Only place a help icon at the modal level if its information applies to all content in the modal. If the help popover is specific to a particular modal section, place the help icon beside that section instead.
|
|
119
138
|
|
|
120
139
|
```ts file="./ModalWithHelp.tsx"
|
|
140
|
+
|
|
121
141
|
```
|
|
122
142
|
|
|
123
143
|
### With form
|
|
124
144
|
|
|
125
|
-
To collect user input within a modal, you can add a [form](/components/form).
|
|
145
|
+
To collect user input within a modal, you can add a [form](/components/form).
|
|
126
146
|
|
|
127
|
-
To submit the form from a button in the modal's footer (outside of the `<Form>`), set the button's `form` property equal to the form's id.
|
|
147
|
+
To submit the form from a button in the modal's footer (outside of the `<Form>`), set the button's `form` property equal to the form's id.
|
|
128
148
|
|
|
129
149
|
```ts file="ModalWithForm.tsx"
|
|
130
|
-
```
|
|
131
150
|
|
|
151
|
+
```
|