@patternfly/react-core 6.6.0-prerelease.5 → 6.6.0-prerelease.7
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 +6 -0
- package/README.md +0 -3
- 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/Compass/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/Hero/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/AnimationsProvider/AnimationsProvider/package.json +1 -1
- package/dist/dynamic/helpers/AnimationsProvider/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/SSRSafeIds/SSRSafeIds/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/useSSRSafeId/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/esm/components/Avatar/Avatar.d.ts +10 -2
- package/dist/esm/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/esm/components/Avatar/Avatar.js +8 -3
- package/dist/esm/components/Avatar/Avatar.js.map +1 -1
- package/dist/esm/components/Banner/Banner.d.ts +2 -0
- package/dist/esm/components/Banner/Banner.d.ts.map +1 -1
- package/dist/esm/components/Banner/Banner.js +2 -2
- package/dist/esm/components/Banner/Banner.js.map +1 -1
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
- package/dist/esm/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/esm/components/DataList/DataListDragButton.js +2 -2
- package/dist/esm/components/DataList/DataListDragButton.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js +2 -2
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +26 -30
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.js +2 -2
- package/dist/esm/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/esm/components/LoginPage/LoginForm.js +3 -3
- package/dist/esm/components/LoginPage/LoginForm.js.map +1 -1
- package/dist/esm/components/Menu/MenuItem.js +2 -2
- package/dist/esm/components/Menu/MenuItem.js.map +1 -1
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
- package/dist/esm/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.d.ts +2 -0
- package/dist/esm/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/esm/components/Nav/NavExpandable.js +3 -3
- package/dist/esm/components/Nav/NavExpandable.js.map +1 -1
- package/dist/esm/components/TimePicker/TimePicker.js +2 -2
- package/dist/esm/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +2 -2
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/esm/deprecated/components/DualListSelector/DualListSelectorListItem.js +2 -2
- package/dist/esm/deprecated/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/js/components/Avatar/Avatar.d.ts +10 -2
- package/dist/js/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/js/components/Avatar/Avatar.js +7 -2
- package/dist/js/components/Avatar/Avatar.js.map +1 -1
- package/dist/js/components/Banner/Banner.d.ts +2 -0
- package/dist/js/components/Banner/Banner.d.ts.map +1 -1
- package/dist/js/components/Banner/Banner.js +2 -2
- package/dist/js/components/Banner/Banner.js.map +1 -1
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js +2 -2
- package/dist/js/components/ClipboardCopy/ClipboardCopyButton.js.map +1 -1
- package/dist/js/components/DataList/DataListDragButton.js +2 -2
- package/dist/js/components/DataList/DataListDragButton.js.map +1 -1
- package/dist/js/components/DatePicker/DatePicker.js +2 -2
- package/dist/js/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +26 -30
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/DualListSelector/DualListSelectorListItem.js +2 -2
- package/dist/js/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/js/components/LoginPage/LoginForm.js +3 -3
- package/dist/js/components/LoginPage/LoginForm.js.map +1 -1
- package/dist/js/components/Menu/MenuItem.js +2 -2
- package/dist/js/components/Menu/MenuItem.js.map +1 -1
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js +2 -2
- package/dist/js/components/MultipleFileUpload/MultipleFileUploadStatus.js.map +1 -1
- package/dist/js/components/Nav/NavExpandable.d.ts +2 -0
- package/dist/js/components/Nav/NavExpandable.d.ts.map +1 -1
- package/dist/js/components/Nav/NavExpandable.js +3 -3
- package/dist/js/components/Nav/NavExpandable.js.map +1 -1
- package/dist/js/components/TimePicker/TimePicker.js +2 -2
- package/dist/js/components/TimePicker/TimePicker.js.map +1 -1
- package/dist/js/demos/DashboardHeader.js +2 -2
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/js/deprecated/components/DualListSelector/DualListSelectorListItem.js +2 -2
- package/dist/js/deprecated/components/DualListSelector/DualListSelectorListItem.js.map +1 -1
- package/dist/styles/assets/images/img_avatar-rhds.svg +22 -0
- package/dist/styles/assets/images/pf-logo-avatar.jpg +0 -0
- package/dist/styles/base-no-reset.css +60 -58
- package/dist/styles/base.css +60 -58
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -7
- package/src/components/ActionList/examples/ActionList.md +1 -1
- package/src/components/ActionList/examples/ActionListSingleGroup.tsx +2 -2
- package/src/components/Alert/examples/Alert.md +3 -3
- package/src/components/Alert/examples/AlertCustomIcons.tsx +6 -6
- package/src/components/Avatar/Avatar.tsx +38 -10
- package/src/components/Avatar/__tests__/Avatar.test.tsx +61 -0
- package/src/components/Avatar/examples/Avatar.md +30 -3
- package/src/components/Avatar/examples/AvatarBasic.tsx +32 -2
- package/src/components/Avatar/examples/AvatarBordered.tsx +6 -2
- package/src/components/Avatar/examples/AvatarColorModifiers.tsx +43 -0
- package/src/components/Avatar/examples/AvatarInitials.tsx +16 -0
- package/src/components/Avatar/examples/AvatarSizeVariations.tsx +8 -19
- package/src/components/Avatar/examples/avatar.css +7 -0
- package/src/components/Banner/Banner.tsx +10 -1
- package/src/components/Banner/__tests__/Banner.test.tsx +15 -0
- package/src/components/Banner/examples/Banner.md +8 -0
- package/src/components/Banner/examples/BannerPill.tsx +21 -0
- package/src/components/Button/examples/Button.md +1 -1
- package/src/components/Button/examples/ButtonCircle.tsx +2 -2
- package/src/components/Button/examples/ButtonDisabled.tsx +2 -2
- package/src/components/Button/examples/ButtonVariations.tsx +2 -2
- package/src/components/Card/examples/Card.md +1 -1
- package/src/components/Card/examples/CardExpandable.tsx +2 -2
- package/src/components/Card/examples/CardExpandableWithIcon.tsx +2 -2
- package/src/components/Card/examples/CardHeaderInCardHead.tsx +2 -2
- package/src/components/Card/examples/CardOnlyActionsInCardHead.tsx +2 -2
- package/src/components/Card/examples/CardSubtitleActions.tsx +2 -2
- package/src/components/Card/examples/CardWithImageAndActions.tsx +2 -2
- package/src/components/ClipboardCopy/ClipboardCopyButton.tsx +2 -2
- package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap +4 -16
- package/src/components/CodeBlock/examples/CodeBlock.md +1 -1
- package/src/components/Compass/examples/Compass.md +0 -4
- package/src/components/DataList/DataListDragButton.tsx +2 -2
- package/src/components/DataList/examples/DataList.md +2 -2
- package/src/components/DataList/examples/DataListActions.tsx +2 -2
- package/src/components/DataList/examples/DataListCheckboxes.tsx +4 -4
- package/src/components/DataList/examples/DataListClickableRows.tsx +3 -3
- package/src/components/DataList/examples/DataListExpandable.tsx +8 -8
- package/src/components/DataList/examples/DataListMixedExpandable.tsx +8 -8
- package/src/components/DataList/examples/DataListWidthModifiers.tsx +3 -3
- package/src/components/DatePicker/DatePicker.tsx +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap +8 -32
- package/src/components/DescriptionList/examples/DescriptionList.md +2 -2
- package/src/components/DescriptionList/examples/DescriptionListIconsOnTerms.tsx +4 -4
- package/src/components/Drawer/DrawerPanelContent.tsx +28 -29
- package/src/components/Dropdown/examples/Dropdown.md +1 -1
- package/src/components/Dropdown/examples/DropdownWithKebabToggle.tsx +2 -2
- package/src/components/DualListSelector/DualListSelectorListItem.tsx +2 -2
- package/src/components/DualListSelector/examples/DualListSelector.md +2 -2
- package/src/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +6 -6
- package/src/components/EmptyState/__tests__/Generated/EmptyStateIcon.test.tsx +2 -2
- package/src/components/EmptyState/__tests__/Generated/__snapshots__/EmptyStateIcon.test.tsx.snap +4 -16
- package/src/components/Hint/examples/Hint.md +1 -1
- package/src/components/Hint/examples/HintBasicWithTitle.tsx +2 -2
- package/src/components/Hint/examples/HintBasicWithoutTitle.tsx +2 -2
- package/src/components/InputGroup/examples/InputGroup.md +0 -1
- package/src/components/List/examples/List.md +1 -1
- package/src/components/List/examples/ListIcons.tsx +2 -2
- package/src/components/List/examples/ListLargeIcons.tsx +2 -2
- package/src/components/LoginPage/LoginForm.tsx +3 -3
- package/src/components/LoginPage/__tests__/__snapshots__/LoginForm.test.tsx.snap +4 -16
- package/src/components/Menu/MenuItem.tsx +2 -2
- package/src/components/Menu/examples/Menu.md +5 -5
- package/src/components/Menu/examples/MenuOptionMultiSelect.tsx +2 -2
- package/src/components/Menu/examples/MenuOptionSingleSelect.tsx +2 -2
- package/src/components/Menu/examples/MenuWithActions.tsx +4 -4
- package/src/components/Menu/examples/MenuWithDescription.tsx +4 -4
- package/src/components/Menu/examples/MenuWithDrilldown.tsx +7 -7
- package/src/components/Menu/examples/MenuWithDrilldownBreadcrumbs.tsx +6 -6
- package/src/components/Menu/examples/MenuWithDrilldownInitialState.tsx +7 -7
- package/src/components/Menu/examples/MenuWithDrilldownSubmenuFunctions.tsx +7 -7
- package/src/components/Menu/examples/MenuWithFavorites.tsx +2 -2
- package/src/components/Menu/examples/MenuWithIcons.tsx +4 -4
- package/src/components/MenuToggle/__tests__/MenuToggle.test.tsx +2 -2
- package/src/components/MenuToggle/__tests__/__snapshots__/MenuToggle.test.tsx.snap +4 -16
- package/src/components/MenuToggle/examples/MenuToggle.md +2 -2
- package/src/components/MenuToggle/examples/MenuTogglePlainCircle.tsx +16 -4
- package/src/components/MenuToggle/examples/MenuTogglePlainIcon.tsx +4 -4
- package/src/components/Modal/__tests__/ModalBoxTitle.test.tsx +2 -2
- package/src/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +2 -2
- package/src/components/Modal/examples/Modal.md +2 -2
- package/src/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/components/MultipleFileUpload/MultipleFileUploadStatus.tsx +2 -2
- package/src/components/MultipleFileUpload/__tests__/MultipleFileUploadStatus.test.tsx +2 -2
- package/src/components/MultipleFileUpload/__tests__/__snapshots__/MultipleFileUploadStatus.test.tsx.snap +4 -16
- package/src/components/Nav/NavExpandable.tsx +5 -5
- package/src/components/Nav/__tests__/NavExpandable.test.tsx +17 -0
- package/src/components/Nav/examples/Nav.md +3 -3
- package/src/components/Nav/examples/NavIcons.tsx +24 -3
- package/src/components/NotificationDrawer/examples/NotificationDrawer.md +1 -1
- package/src/components/NotificationDrawer/examples/NotificationDrawerBasic.tsx +8 -8
- package/src/components/NotificationDrawer/examples/NotificationDrawerGroups.tsx +10 -10
- package/src/components/OverflowMenu/examples/OverflowMenu.md +1 -1
- package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainer.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuBreakpointOnContainerHeight.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuGroupTypes.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuMultiGroup.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuPersistent.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuSimple.tsx +2 -2
- package/src/components/OverflowMenu/examples/OverflowMenuSimpleVertical.tsx +2 -2
- package/src/components/Popover/examples/Popover.md +1 -1
- package/src/components/Popover/examples/PopoverWithIconInTheTitle.tsx +2 -2
- package/src/components/ProgressStepper/examples/ProgressStepper.md +2 -2
- package/src/components/ProgressStepper/examples/ProgressStepperCustomIcons.tsx +4 -4
- package/src/components/Tabs/examples/Tabs.md +4 -4
- package/src/components/Tabs/examples/TabsFilledWithIcons.tsx +4 -4
- package/src/components/Tabs/examples/TabsIconAndText.tsx +8 -8
- package/src/components/TextInput/examples/TextInput.md +2 -2
- package/src/components/TextInput/examples/TextInputCustomIcon.tsx +4 -4
- package/src/components/TextInput/examples/TextInputCustomIconInvalid.tsx +2 -2
- package/src/components/TimePicker/TimePicker.tsx +2 -2
- package/src/components/ToggleGroup/examples/ToggleGroup.md +1 -1
- package/src/components/ToggleGroup/examples/ToggleGroupIcon.tsx +2 -2
- package/src/components/ToggleGroup/examples/ToggleGroupTextIcon.tsx +3 -3
- package/src/components/Toolbar/examples/Toolbar.md +1 -1
- package/src/components/Toolbar/examples/ToolbarStacked.tsx +2 -2
- package/src/components/Toolbar/examples/ToolbarWithFilters.tsx +2 -2
- package/src/components/Tooltip/examples/Tooltip.md +1 -1
- package/src/components/Tooltip/examples/TooltipIcon.tsx +2 -2
- package/src/components/TreeView/examples/TreeView.md +1 -1
- package/src/components/TreeView/examples/TreeViewWithActionItems.tsx +6 -6
- package/src/components/Wizard/examples/Wizard.md +1 -1
- package/src/components/Wizard/examples/WizardWithNavAnchors.tsx +3 -3
- package/src/components/assets/img_avatar-light.svg +25 -0
- package/src/components/assets/rhds.svg +22 -0
- package/src/demos/AlertGroup.md +1 -1
- package/src/demos/CardDemos.md +1 -5
- package/src/demos/CardView/CardView.md +1 -1
- package/src/demos/CardView/examples/CardView.tsx +3 -3
- package/src/demos/Compass/Compass.md +3 -3
- package/src/demos/Compass/examples/CompassDemo.tsx +3 -3
- package/src/demos/Compass/examples/CompassDockDemo.tsx +17 -5
- package/src/demos/CustomMenus/ApplicationLauncher.md +1 -1
- package/src/demos/CustomMenus/CustomMenus.md +6 -8
- package/src/demos/CustomMenus/examples/ActionsMenuDemo.tsx +4 -4
- package/src/demos/CustomMenus/examples/ApplicationLauncherDemo.tsx +2 -2
- package/src/demos/CustomMenus/examples/DrilldownMenuDemo.tsx +7 -7
- package/src/demos/DashboardHeader.tsx +3 -3
- package/src/demos/DataList/examples/DataListActionable.tsx +2 -2
- package/src/demos/DataList/examples/DataListBasic.tsx +16 -12
- package/src/demos/DataList/examples/DataListExpandableControlInToolbar.tsx +8 -8
- package/src/demos/DataList/examples/DataListStaticBottomPagination.tsx +6 -6
- package/src/demos/DataListDemo.md +3 -3
- package/src/demos/DateTimePicker.md +2 -2
- package/src/demos/Masthead.md +2 -2
- package/src/demos/Nav.md +3 -3
- package/src/demos/NotificationDrawer/NotificationDrawer.md +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +7 -7
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +11 -11
- package/src/demos/Page.md +1 -2
- package/src/demos/PasswordGenerator/PasswordGenerator.md +2 -2
- package/src/demos/PasswordGenerator/examples/PasswordGenerator.tsx +3 -3
- package/src/demos/PrimaryDetail.md +3 -3
- package/src/demos/RTL/RTL.md +4 -4
- package/src/demos/RTL/examples/PaginatedTable.tsx +55 -77
- package/src/demos/Tabs.md +4 -4
- package/src/demos/Toolbar.md +1 -1
- package/src/demos/examples/AlertGroup/AlertGroupToastWithNotificationDrawer.tsx +3 -3
- package/src/demos/examples/Card/CardHorizontalGrid.tsx +4 -4
- package/src/demos/examples/DateTimePicker/DateTimePicker.tsx +4 -9
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +3 -3
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +5 -5
- package/src/demos/examples/Nav/NavDockedNav.tsx +17 -5
- package/src/demos/examples/Nav/NavFlyout.tsx +3 -3
- package/src/demos/examples/Nav/NavHorizontal.tsx +3 -3
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +3 -3
- package/src/demos/examples/Nav/NavManual.tsx +3 -3
- package/src/demos/examples/Page/PageContextSelector.tsx +3 -3
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +3 -3
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +3 -3
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailCardView.tsx +3 -3
- package/src/demos/examples/PrimaryDetail/PrimaryDetailContentPadding.tsx +10 -10
- package/src/demos/examples/PrimaryDetail/PrimaryDetailFullPage.tsx +10 -10
- package/src/demos/examples/PrimaryDetail/PrimaryDetailInlineModifier.tsx +10 -10
- package/src/demos/examples/Tabs/TabsAndTable.tsx +9 -9
- package/src/demos/examples/Toolbar/ConsoleLogViewerToolbar.tsx +2 -2
- package/src/deprecated/components/DualListSelector/DualListSelectorListItem.tsx +2 -2
- package/src/deprecated/components/DualListSelector/examples/DualListSelector.md +1 -2
- package/src/deprecated/components/DualListSelector/examples/DualListSelectorComplexOptionsActions.tsx +3 -3
- package/src/deprecated/components/DualListSelector/examples/DualListSelectorComposable.tsx +2 -2
- package/src/deprecated/components/Modal/__tests__/ModalBoxTitle.test.tsx +2 -2
- package/src/deprecated/components/Modal/__tests__/__snapshots__/ModalBoxTitle.test.tsx.snap +2 -2
- package/src/deprecated/components/Modal/examples/Modal.md +2 -2
- package/src/deprecated/components/Modal/examples/ModalCustomTitleIcon.tsx +2 -2
- package/src/deprecated/components/Wizard/examples/Wizard.md +1 -1
- package/src/deprecated/components/Wizard/examples/WizardAnchorsForNavItems.tsx +3 -3
- package/LICENSE +0 -21
- package/dist/umd/assets/output-B2l1dRBf.css +0 -27144
- package/dist/umd/react-core.min.js +0 -11
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Avatar } from '@patternfly/react-core';
|
|
2
|
+
|
|
3
|
+
export const AvatarInitials: React.FunctionComponent = () => (
|
|
4
|
+
<>
|
|
5
|
+
<Avatar alt="non-color avatar with initial C" isBordered initials="C" />
|
|
6
|
+
<Avatar color="red" alt="red avatar with initial C" initials="C" />
|
|
7
|
+
<Avatar color="orangered" alt="orangered avatar with initial C" initials="C" />
|
|
8
|
+
<Avatar color="orange" alt="orange avatar with initial C" initials="C" />
|
|
9
|
+
<Avatar color="yellow" alt="yellow avatar with initial C" initials="C" />
|
|
10
|
+
<Avatar color="green" alt="green avatar with initial C" initials="C" />
|
|
11
|
+
<Avatar color="teal" alt="teal avatar with initial C" initials="C" />
|
|
12
|
+
<Avatar color="blue" alt="blue avatar with initial C" initials="C" />
|
|
13
|
+
<Avatar color="purple" alt="purple avatar with initial C" initials="C" />
|
|
14
|
+
<Avatar color="gray" alt="gray avatar with initial C" initials="C" />
|
|
15
|
+
</>
|
|
16
|
+
);
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
import { Fragment } from 'react';
|
|
2
1
|
import { Avatar } from '@patternfly/react-core';
|
|
3
|
-
import avatarImg from '../../assets/avatarImg.svg';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<br />
|
|
14
|
-
Large
|
|
15
|
-
<br />
|
|
16
|
-
<Avatar src={avatarImg} alt="avatar" size="lg" />
|
|
17
|
-
<br />
|
|
18
|
-
Extra Large
|
|
19
|
-
<br />
|
|
20
|
-
<Avatar src={avatarImg} alt="avatar" size="xl" />
|
|
21
|
-
</Fragment>;
|
|
3
|
+
export const AvatarSizeVariations: React.FunctionComponent = () => (
|
|
4
|
+
<>
|
|
5
|
+
<Avatar alt="small red avatar with initial C" initials="C" color="red" size="sm" />
|
|
6
|
+
<Avatar alt="medium red avatar with initial C" initials="C" color="red" size="md" />
|
|
7
|
+
<Avatar alt="large red avatar with initial C" initials="C" color="red" size="lg" />
|
|
8
|
+
<Avatar alt="extra large red avatar with initial C" initials="C" color="red" size="xl" />
|
|
9
|
+
</>
|
|
10
|
+
);
|
|
@@ -12,6 +12,8 @@ export interface BannerProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
/** If set to true, the banner sticks to the top of its container */
|
|
14
14
|
isSticky?: boolean;
|
|
15
|
+
/** If set to true, the banner will have a pill shape */
|
|
16
|
+
isPill?: boolean;
|
|
15
17
|
/** Text announced by screen readers to indicate the type of banner. This prop should only
|
|
16
18
|
* be passed in when the banner conveys status/severity.
|
|
17
19
|
*/
|
|
@@ -36,6 +38,7 @@ export const Banner: React.FunctionComponent<StatusBanner | NonStatusBanner> = (
|
|
|
36
38
|
className,
|
|
37
39
|
screenReaderText,
|
|
38
40
|
isSticky = false,
|
|
41
|
+
isPill = false,
|
|
39
42
|
color,
|
|
40
43
|
status,
|
|
41
44
|
...props
|
|
@@ -52,7 +55,13 @@ export const Banner: React.FunctionComponent<StatusBanner | NonStatusBanner> = (
|
|
|
52
55
|
|
|
53
56
|
return (
|
|
54
57
|
<div
|
|
55
|
-
className={css(
|
|
58
|
+
className={css(
|
|
59
|
+
styles.banner,
|
|
60
|
+
getStatusOrColorModifier(),
|
|
61
|
+
isSticky && styles.modifiers.sticky,
|
|
62
|
+
isPill && styles.modifiers.pill,
|
|
63
|
+
className
|
|
64
|
+
)}
|
|
56
65
|
{...props}
|
|
57
66
|
>
|
|
58
67
|
{screenReaderText && <span className="pf-v6-screen-reader">{screenReaderText}</span>}
|
|
@@ -121,6 +121,21 @@ test('Renders with inherited element props spread to the component', () => {
|
|
|
121
121
|
expect(screen.getByText('Test')).toHaveAccessibleName('Test label');
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
+
test(`Renders with class name ${styles.modifiers.pill} when isPill prop is true`, () => {
|
|
125
|
+
render(<Banner isPill>Test</Banner>);
|
|
126
|
+
expect(screen.getByText('Test')).toHaveClass(styles.modifiers.pill);
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
test(`Does not render with class name ${styles.modifiers.pill} when isPill is false`, () => {
|
|
130
|
+
render(<Banner isPill={false}>Test</Banner>);
|
|
131
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.pill);
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
test(`Does not render with class name ${styles.modifiers.pill} when isPill is undefined`, () => {
|
|
135
|
+
render(<Banner>Test</Banner>);
|
|
136
|
+
expect(screen.getByText('Test')).not.toHaveClass(styles.modifiers.pill);
|
|
137
|
+
});
|
|
138
|
+
|
|
124
139
|
test('Matches the snapshot', () => {
|
|
125
140
|
const { asFragment } = render(<Banner>Test</Banner>);
|
|
126
141
|
expect(asFragment()).toMatchSnapshot();
|
|
@@ -32,3 +32,11 @@ In the following example, a flex layout is used inside the banner content to sho
|
|
|
32
32
|
```ts file="./BannerStatus.tsx"
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
+
|
|
36
|
+
### Pill
|
|
37
|
+
|
|
38
|
+
Banners may also have a rounded pill style by passing the `isPill` prop.
|
|
39
|
+
|
|
40
|
+
```ts file="./BannerPill.tsx"
|
|
41
|
+
|
|
42
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Banner, Flex, FlexItem } from '@patternfly/react-core';
|
|
2
|
+
import RhUiCheckCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-check-circle-fill-icon';
|
|
3
|
+
|
|
4
|
+
export const BannerPill: React.FunctionComponent = () => (
|
|
5
|
+
<>
|
|
6
|
+
<Banner isPill>Default pill banner</Banner>
|
|
7
|
+
<br />
|
|
8
|
+
<Banner color="red" isPill>
|
|
9
|
+
Red pill banner
|
|
10
|
+
</Banner>
|
|
11
|
+
<br />
|
|
12
|
+
<Banner isPill screenReaderText="Success pill banner" status="success">
|
|
13
|
+
<Flex spaceItems={{ default: 'spaceItemsSm' }}>
|
|
14
|
+
<FlexItem>
|
|
15
|
+
<RhUiCheckCircleFillIcon />
|
|
16
|
+
</FlexItem>
|
|
17
|
+
<FlexItem>Success pill banner</FlexItem>
|
|
18
|
+
</Flex>
|
|
19
|
+
</Banner>
|
|
20
|
+
</>
|
|
21
|
+
);
|
|
@@ -10,7 +10,7 @@ import { Fragment, useState } from 'react';
|
|
|
10
10
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
11
11
|
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
12
12
|
import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon';
|
|
13
|
-
import
|
|
13
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
14
14
|
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
|
|
15
15
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
16
16
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button, Flex } from '@patternfly/react-core';
|
|
2
2
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
3
3
|
import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon';
|
|
4
|
-
import
|
|
4
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
5
5
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
6
6
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
7
7
|
|
|
@@ -48,7 +48,7 @@ export const ButtonCircle: React.FunctionComponent = () => {
|
|
|
48
48
|
aria-label="Add warning circle variant example"
|
|
49
49
|
/>
|
|
50
50
|
<Button variant="link" isCircle icon={<RhUiAddCircleFillIcon />} aria-label="Add link circle variant example" />
|
|
51
|
-
<Button variant="control" isCircle icon={<
|
|
51
|
+
<Button variant="control" isCircle icon={<RhUiCopyFillIcon />} aria-label="Copy control circle variant example" />
|
|
52
52
|
<Button variant="plain" isCircle icon={<RhMicronsCloseIcon />} aria-label="Remove plain circle variant example" />
|
|
53
53
|
<Button
|
|
54
54
|
variant="stateful"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button, Flex } from '@patternfly/react-core';
|
|
2
2
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
3
3
|
import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon';
|
|
4
|
-
import
|
|
4
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
5
5
|
|
|
6
6
|
export const ButtonDisabled: React.FunctionComponent = () => (
|
|
7
7
|
<>
|
|
@@ -41,7 +41,7 @@ export const ButtonDisabled: React.FunctionComponent = () => (
|
|
|
41
41
|
<Button isDisabled variant="control">
|
|
42
42
|
Control
|
|
43
43
|
</Button>
|
|
44
|
-
<Button isDisabled variant="control" aria-label="Copy" icon={<
|
|
44
|
+
<Button isDisabled variant="control" aria-label="Copy" icon={<RhUiCopyFillIcon />} />
|
|
45
45
|
</Flex>
|
|
46
46
|
</>
|
|
47
47
|
);
|
|
@@ -2,7 +2,7 @@ import { Button, Flex } from '@patternfly/react-core';
|
|
|
2
2
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
3
3
|
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
4
4
|
import RhUiAddCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-add-circle-fill-icon';
|
|
5
|
-
import
|
|
5
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
6
6
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
8
8
|
export const ButtonVariations: React.FunctionComponent = () => (
|
|
@@ -46,7 +46,7 @@ export const ButtonVariations: React.FunctionComponent = () => (
|
|
|
46
46
|
<br />
|
|
47
47
|
<Flex columnGap={{ default: 'columnGapSm' }}>
|
|
48
48
|
<Button variant="control">Control</Button>
|
|
49
|
-
<Button variant="control" aria-label="Copy" icon={<
|
|
49
|
+
<Button variant="control" aria-label="Copy" icon={<RhUiCopyFillIcon />} />
|
|
50
50
|
</Flex>
|
|
51
51
|
<br />
|
|
52
52
|
<Flex columnGap={{ default: 'columnGapSm' }}>
|
|
@@ -19,7 +19,7 @@ ouia: true
|
|
|
19
19
|
import { Fragment, useState } from 'react';
|
|
20
20
|
import pfLogo from '../../assets/PF-HorizontalLogo-Color.svg';
|
|
21
21
|
import pfLogoSmall from '../../assets/PF-IconLogo.svg';
|
|
22
|
-
import
|
|
22
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
23
23
|
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon';
|
|
24
24
|
|
|
25
25
|
## Examples
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MenuToggle,
|
|
15
15
|
MenuToggleElement
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
18
|
|
|
19
19
|
export const CardExpandable: React.FunctionComponent = () => {
|
|
20
20
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
@@ -71,7 +71,7 @@ export const CardExpandable: React.FunctionComponent = () => {
|
|
|
71
71
|
onClick={() => setIsOpen(!isOpen)}
|
|
72
72
|
variant="plain"
|
|
73
73
|
aria-label="Card expandable example kebab toggle"
|
|
74
|
-
icon={<
|
|
74
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
75
75
|
/>
|
|
76
76
|
)}
|
|
77
77
|
isOpen={isOpen}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MenuToggleElement
|
|
15
15
|
} from '@patternfly/react-core';
|
|
16
16
|
import pfLogoSmall from '../../PF-IconLogo.svg';
|
|
17
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
18
|
|
|
19
19
|
export const CardExpandableWithIcon: React.FunctionComponent = () => {
|
|
20
20
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
@@ -67,7 +67,7 @@ export const CardExpandableWithIcon: React.FunctionComponent = () => {
|
|
|
67
67
|
onClick={() => setIsOpen(!isOpen)}
|
|
68
68
|
variant="plain"
|
|
69
69
|
aria-label="Card expandable with icon example kebab toggle"
|
|
70
|
-
icon={<
|
|
70
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
71
71
|
/>
|
|
72
72
|
)}
|
|
73
73
|
isOpen={isOpen}
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MenuToggleElement,
|
|
14
14
|
Divider
|
|
15
15
|
} from '@patternfly/react-core';
|
|
16
|
-
import
|
|
16
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
17
17
|
|
|
18
18
|
export const CardTitleInHeader: React.FunctionComponent = () => {
|
|
19
19
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
@@ -58,7 +58,7 @@ export const CardTitleInHeader: React.FunctionComponent = () => {
|
|
|
58
58
|
onClick={() => setIsOpen(!isOpen)}
|
|
59
59
|
variant="plain"
|
|
60
60
|
aria-label="Card title inline with images and actions example kebab toggle"
|
|
61
|
-
icon={<
|
|
61
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
62
62
|
/>
|
|
63
63
|
)}
|
|
64
64
|
isOpen={isOpen}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
MenuToggleElement,
|
|
12
12
|
Divider
|
|
13
13
|
} from '@patternfly/react-core';
|
|
14
|
-
import
|
|
14
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
15
15
|
|
|
16
16
|
export const CardOnlyActionsInCardHead: React.FunctionComponent = () => {
|
|
17
17
|
const [isOpen, setIsOpen] = useState<boolean>(false);
|
|
@@ -56,7 +56,7 @@ export const CardOnlyActionsInCardHead: React.FunctionComponent = () => {
|
|
|
56
56
|
onClick={() => setIsOpen(!isOpen)}
|
|
57
57
|
variant="plain"
|
|
58
58
|
aria-label="Card header without title example kebab toggle"
|
|
59
|
-
icon={<
|
|
59
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
60
60
|
/>
|
|
61
61
|
)}
|
|
62
62
|
isOpen={isOpen}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MenuToggleElement,
|
|
15
15
|
Divider
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
18
|
import pfLogo from '../../assets/PF-HorizontalLogo-Color.svg';
|
|
19
19
|
|
|
20
20
|
export const CardWithImageAndActions: React.FunctionComponent = () => {
|
|
@@ -64,7 +64,7 @@ export const CardWithImageAndActions: React.FunctionComponent = () => {
|
|
|
64
64
|
onClick={() => setIsOpen(!isOpen)}
|
|
65
65
|
variant="plain"
|
|
66
66
|
aria-label="Card header images and actions example kebab toggle"
|
|
67
|
-
icon={<
|
|
67
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
68
68
|
/>
|
|
69
69
|
)}
|
|
70
70
|
isOpen={isOpen}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MenuToggleElement,
|
|
15
15
|
Divider
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
18
|
import pfLogo from '../../assets/PF-HorizontalLogo-Color.svg';
|
|
19
19
|
|
|
20
20
|
export const CardWithImageAndActions: React.FunctionComponent = () => {
|
|
@@ -64,7 +64,7 @@ export const CardWithImageAndActions: React.FunctionComponent = () => {
|
|
|
64
64
|
onClick={() => setIsOpen(!isOpen)}
|
|
65
65
|
variant="plain"
|
|
66
66
|
aria-label="Card header images and actions example kebab toggle"
|
|
67
|
-
icon={<
|
|
67
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
68
68
|
/>
|
|
69
69
|
)}
|
|
70
70
|
isOpen={isOpen}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRef } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
3
3
|
import { Button } from '../Button';
|
|
4
4
|
import { Tooltip, TooltipPosition } from '../Tooltip';
|
|
5
5
|
|
|
@@ -87,7 +87,7 @@ export const ClipboardCopyButton: React.FunctionComponent<ClipboardCopyButtonPro
|
|
|
87
87
|
aria-label={ariaLabel}
|
|
88
88
|
className={className}
|
|
89
89
|
id={id}
|
|
90
|
-
icon={<
|
|
90
|
+
icon={<RhUiCopyFillIcon />}
|
|
91
91
|
{...props}
|
|
92
92
|
ref={triggerRef}
|
|
93
93
|
/>
|
package/src/components/ClipboardCopy/__tests__/__snapshots__/ClipboardCopyButton.test.tsx.snap
CHANGED
|
@@ -45,24 +45,12 @@ exports[`Matches snapshot 1`] = `
|
|
|
45
45
|
fill="currentColor"
|
|
46
46
|
height="1em"
|
|
47
47
|
role="img"
|
|
48
|
+
viewBox="0 0 32 32"
|
|
48
49
|
width="1em"
|
|
49
50
|
>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
>
|
|
54
|
-
<path
|
|
55
|
-
d="M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"
|
|
56
|
-
/>
|
|
57
|
-
</svg>
|
|
58
|
-
<svg
|
|
59
|
-
class="pf-v6-icon-rh-ui"
|
|
60
|
-
viewBox="0 0 32 32"
|
|
61
|
-
>
|
|
62
|
-
<path
|
|
63
|
-
d="M28 7v22.607c0 .768-.622 1.393-1.387 1.393H10a1 1 0 1 1 0-2h16V7a1 1 0 1 1 2 0Zm-6.5 19h-16c-.827 0-1.5-.673-1.5-1.5V8a1.001 1.001 0 0 1 .294-.708l5.998-5.998A1.001 1.001 0 0 1 11 1h10.5c.827 0 1.5.673 1.5 1.5v22c0 .827-.673 1.5-1.5 1.5ZM7.414 7H10V4.414L7.414 7ZM21 3h-9v4.614C12 8.378 11.378 9 10.613 9H6v15h15V3Z"
|
|
64
|
-
/>
|
|
65
|
-
</svg>
|
|
51
|
+
<path
|
|
52
|
+
d="M28 7v22.607c0 .768-.622 1.393-1.387 1.393H10a1 1 0 1 1 0-2h16V7a1 1 0 1 1 2 0Zm-5.25 17.5v-22c0-.689-.561-1.25-1.25-1.25h-8.375v7.364c0 .833-.678 1.511-1.512 1.511H4.25V24.5c0 .689.561 1.25 1.25 1.25h16c.689 0 1.25-.561 1.25-1.25ZM10.875 1.275a.738.738 0 0 0-.405.195l-6 6a.738.738 0 0 0-.195.405h6.6v-6.6Z"
|
|
53
|
+
/>
|
|
66
54
|
</svg>
|
|
67
55
|
</span>
|
|
68
56
|
</button>
|
|
@@ -6,7 +6,7 @@ propComponents: ['CodeBlock', 'CodeBlockAction', 'CodeBlockCode']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { Fragment, useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import RhUiCopyFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-copy-fill-icon';
|
|
10
10
|
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
11
11
|
|
|
12
12
|
**Important note:** to format code exactly as it is, you should use String.raw\`your code here\`.
|
|
@@ -16,10 +16,6 @@ propComponents:
|
|
|
16
16
|
---
|
|
17
17
|
|
|
18
18
|
import { useRef, useState, useEffect } from 'react';
|
|
19
|
-
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
20
|
-
import OutlinedPlusSquare from '@patternfly/react-icons/dist/esm/icons/outlined-plus-square-icon';
|
|
21
|
-
import OutlinedCopy from '@patternfly/react-icons/dist/esm/icons/outlined-copy-icon';
|
|
22
|
-
import RhUiQuestionMarkCircleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-icon';
|
|
23
19
|
|
|
24
20
|
import './compass.css';
|
|
25
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css } from '@patternfly/react-styles';
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/DataList/data-list';
|
|
3
|
-
import
|
|
3
|
+
import RhUiGripVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-grip-vertical-fill-icon';
|
|
4
4
|
|
|
5
5
|
export interface DataListDragButtonProps extends React.HTMLProps<HTMLButtonElement> {
|
|
6
6
|
/** Additional classes added to the drag button */
|
|
@@ -23,7 +23,7 @@ export const DataListDragButton: React.FunctionComponent<DataListDragButtonProps
|
|
|
23
23
|
{...props}
|
|
24
24
|
>
|
|
25
25
|
<span className={css(styles.dataListItemDraggableIcon)}>
|
|
26
|
-
<
|
|
26
|
+
<RhUiGripVerticalFillIcon />
|
|
27
27
|
</span>
|
|
28
28
|
</button>
|
|
29
29
|
);
|
|
@@ -19,10 +19,10 @@ propComponents:
|
|
|
19
19
|
---
|
|
20
20
|
|
|
21
21
|
import { Fragment, useState } from 'react';
|
|
22
|
-
import
|
|
22
|
+
import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon';
|
|
23
23
|
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
|
|
24
24
|
import RhMicronsCaretRightIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-right-icon';
|
|
25
|
-
import
|
|
25
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
26
26
|
import { css } from '@patternfly/react-styles';
|
|
27
27
|
import { DragDropSort, DragDropContainer, Droppable as NewDroppable } from '@patternfly/react-drag-drop';
|
|
28
28
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
MenuToggle,
|
|
14
14
|
MenuToggleElement
|
|
15
15
|
} from '@patternfly/react-core';
|
|
16
|
-
import
|
|
16
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
17
17
|
|
|
18
18
|
export const DataListActions: React.FunctionComponent = () => {
|
|
19
19
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -86,7 +86,7 @@ export const DataListActions: React.FunctionComponent = () => {
|
|
|
86
86
|
onClick={onToggle}
|
|
87
87
|
variant="plain"
|
|
88
88
|
aria-label="Data list with actions example kebab toggle"
|
|
89
|
-
icon={<
|
|
89
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
90
90
|
/>
|
|
91
91
|
)}
|
|
92
92
|
isOpen={isOpen}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
MenuToggle,
|
|
15
15
|
MenuToggleElement
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
18
|
|
|
19
19
|
export const DataListCheckboxes: React.FunctionComponent = () => {
|
|
20
20
|
const [isOpen1, setIsOpen1] = useState(false);
|
|
@@ -84,7 +84,7 @@ export const DataListCheckboxes: React.FunctionComponent = () => {
|
|
|
84
84
|
onClick={onToggle1}
|
|
85
85
|
variant="plain"
|
|
86
86
|
aria-label="Data list with checkboxes, actions and additional cells example kebab toggle 1"
|
|
87
|
-
icon={<
|
|
87
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
88
88
|
/>
|
|
89
89
|
)}
|
|
90
90
|
isOpen={isOpen1}
|
|
@@ -138,7 +138,7 @@ export const DataListCheckboxes: React.FunctionComponent = () => {
|
|
|
138
138
|
onClick={onToggle2}
|
|
139
139
|
variant="plain"
|
|
140
140
|
aria-label="Data list with checkboxes, actions and additional cells example kebab toggle 2"
|
|
141
|
-
icon={<
|
|
141
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
142
142
|
/>
|
|
143
143
|
)}
|
|
144
144
|
isOpen={isOpen2}
|
|
@@ -201,7 +201,7 @@ export const DataListCheckboxes: React.FunctionComponent = () => {
|
|
|
201
201
|
onClick={onToggle3}
|
|
202
202
|
variant="plain"
|
|
203
203
|
aria-label="Data list with checkboxes, actions and additional cells example kebab toggle 3"
|
|
204
|
-
icon={<
|
|
204
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
205
205
|
/>
|
|
206
206
|
)}
|
|
207
207
|
isOpen={isOpen3}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
MenuToggle,
|
|
13
13
|
MenuToggleElement
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import
|
|
15
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
16
16
|
|
|
17
17
|
export const DataListClickableRows: React.FunctionComponent = () => {
|
|
18
18
|
const [isOpen1, setIsOpen1] = useState(false);
|
|
@@ -76,7 +76,7 @@ export const DataListClickableRows: React.FunctionComponent = () => {
|
|
|
76
76
|
onClick={onToggle1}
|
|
77
77
|
variant="plain"
|
|
78
78
|
aria-label="Data list clickable rows example kebab toggle 1"
|
|
79
|
-
icon={<
|
|
79
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
80
80
|
/>
|
|
81
81
|
)}
|
|
82
82
|
isOpen={isOpen1}
|
|
@@ -125,7 +125,7 @@ export const DataListClickableRows: React.FunctionComponent = () => {
|
|
|
125
125
|
onClick={onToggle2}
|
|
126
126
|
variant="plain"
|
|
127
127
|
aria-label="Data list clickable rows example kebab toggle 2"
|
|
128
|
-
icon={<
|
|
128
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
129
129
|
/>
|
|
130
130
|
)}
|
|
131
131
|
isOpen={isOpen2}
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
MenuToggle,
|
|
15
15
|
MenuToggleElement
|
|
16
16
|
} from '@patternfly/react-core';
|
|
17
|
-
import
|
|
18
|
-
import
|
|
17
|
+
import RhUiEllipsisVerticalFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-ellipsis-vertical-fill-icon';
|
|
18
|
+
import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon';
|
|
19
19
|
|
|
20
20
|
export const DataListExpandable: React.FunctionComponent = () => {
|
|
21
21
|
const [isOpen1, setIsOpen1] = useState(false);
|
|
@@ -66,7 +66,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
66
66
|
<DataListItemCells
|
|
67
67
|
dataListCells={[
|
|
68
68
|
<DataListCell isIcon key="icon">
|
|
69
|
-
<
|
|
69
|
+
<RhUiBranchFillIcon />
|
|
70
70
|
</DataListCell>,
|
|
71
71
|
<DataListCell key="primary content">
|
|
72
72
|
<div id="ex-item1">Primary content</div>
|
|
@@ -92,7 +92,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
92
92
|
onClick={onToggle1}
|
|
93
93
|
variant="plain"
|
|
94
94
|
aria-label="Data list exapndable example kebaby toggle 1"
|
|
95
|
-
icon={<
|
|
95
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
96
96
|
/>
|
|
97
97
|
)}
|
|
98
98
|
isOpen={isOpen1}
|
|
@@ -137,7 +137,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
137
137
|
<DataListItemCells
|
|
138
138
|
dataListCells={[
|
|
139
139
|
<DataListCell isIcon key="icon">
|
|
140
|
-
<
|
|
140
|
+
<RhUiBranchFillIcon />
|
|
141
141
|
</DataListCell>,
|
|
142
142
|
<DataListCell key="secondary content">
|
|
143
143
|
<div id="ex-item2">Secondary content</div>
|
|
@@ -162,7 +162,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
162
162
|
onClick={onToggle2}
|
|
163
163
|
variant="plain"
|
|
164
164
|
aria-label="Data list exapndable example kebaby toggle 2"
|
|
165
|
-
icon={<
|
|
165
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
166
166
|
/>
|
|
167
167
|
)}
|
|
168
168
|
isOpen={isOpen2}
|
|
@@ -207,7 +207,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
207
207
|
<DataListItemCells
|
|
208
208
|
dataListCells={[
|
|
209
209
|
<DataListCell isIcon key="icon">
|
|
210
|
-
<
|
|
210
|
+
<RhUiBranchFillIcon />
|
|
211
211
|
</DataListCell>,
|
|
212
212
|
<DataListCell key="tertiary content">
|
|
213
213
|
<div id="ex-item3">Tertiary content</div>
|
|
@@ -232,7 +232,7 @@ export const DataListExpandable: React.FunctionComponent = () => {
|
|
|
232
232
|
onClick={onToggle3}
|
|
233
233
|
variant="plain"
|
|
234
234
|
aria-label="Data list exapndable example kebaby toggle 3"
|
|
235
|
-
icon={<
|
|
235
|
+
icon={<RhUiEllipsisVerticalFillIcon />}
|
|
236
236
|
/>
|
|
237
237
|
)}
|
|
238
238
|
isOpen={isOpen3}
|