From 34422f4479296056d231033f5435841fad7c65d1 Mon Sep 17 00:00:00 2001 From: Evan Date: Sun, 15 Sep 2024 15:21:56 -0400 Subject: [PATCH 1/3] chore(docs): update menutoggle examples icon prop --- .../examples/ActionListSingleGroup.tsx | 10 +- .../Card/examples/CardExpandable.tsx | 10 +- .../Card/examples/CardExpandableWithIcon.tsx | 10 +- .../Card/examples/CardHeaderInCardHead.tsx | 10 +- .../examples/CardOnlyActionsInCardHead.tsx | 10 +- .../Card/examples/CardWithImageAndActions.tsx | 10 +- .../DataList/examples/DataListActions.tsx | 10 +- .../DataList/examples/DataListCheckboxes.tsx | 28 ++++-- .../examples/DataListClickableRows.tsx | 19 ++-- .../DataList/examples/DataListExpandable.tsx | 28 ++++-- .../examples/DataListMixedExpandable.tsx | 28 ++++-- .../examples/DataListWidthModifiers.tsx | 19 ++-- .../examples/DropdownWithKebabToggle.tsx | 19 +++- .../DualListSelectorComplexOptionsActions.tsx | 19 ++-- .../Hint/examples/HintBasicWithTitle.tsx | 10 +- .../Hint/examples/HintBasicWithoutTitle.tsx | 10 +- .../examples/LabelGroupEditableAddModal.tsx | 10 +- .../MenuToggle/examples/MenuToggle.md | 16 ++-- .../examples/NotificationDrawerBasic.tsx | 43 +++++++-- .../examples/NotificationDrawerGroups.tsx | 55 +++++++++-- .../OverflowMenuBreakpointOnContainer.tsx | 12 ++- .../examples/OverflowMenuGroupTypes.tsx | 12 ++- .../examples/OverflowMenuMultiGroup.tsx | 12 ++- .../examples/OverflowMenuPersistent.tsx | 12 ++- .../examples/OverflowMenuSimple.tsx | 12 ++- .../Toolbar/examples/ToolbarStacked.tsx | 10 +- .../Toolbar/examples/ToolbarWithFilters.tsx | 10 +- .../examples/TreeViewWithActionItems.tsx | 10 +- .../src/demos/CardView/examples/CardView.tsx | 19 ++-- .../examples/ApplicationLauncherDemo.tsx | 12 ++- .../react-core/src/demos/DashboardHeader.tsx | 25 +++-- .../demos/DataList/examples/DataListBasic.tsx | 13 ++- .../DataListExpandableControlInToolbar.tsx | 27 ++++-- .../examples/FilterAttributeSearch.tsx | 9 +- .../Filters/examples/FilterCheckboxSelect.tsx | 7 +- .../demos/Filters/examples/FilterFaceted.tsx | 9 +- .../examples/FilterMixedSelectGroup.tsx | 15 ++- .../examples/FilterSameSelectGroup.tsx | 15 ++- .../Filters/examples/FilterSingleSelect.tsx | 7 +- .../examples/NotificationDrawerBasic.tsx | 55 +++++++---- .../examples/NotificationDrawerGrouped.tsx | 91 +++++++++++++------ .../src/demos/RTL/examples/PaginatedTable.jsx | 18 ++-- .../src/demos/RTL/examples/PaginatedTable.tsx | 18 ++-- .../AlertGroupToastWithNotificationDrawer.tsx | 19 ++-- .../examples/Card/CardHorizontalGrid.tsx | 10 +- .../DateTimePicker/DateTimePicker.tsx | 7 +- .../Masthead/MastheadWithHorizontalNav.tsx | 19 ++-- ...stheadWithUtilitiesAndUserDropdownMenu.tsx | 28 ++++-- .../src/demos/examples/Nav/NavFlyout.tsx | 19 ++-- .../src/demos/examples/Nav/NavHorizontal.tsx | 19 ++-- .../examples/Nav/NavHorizontalWithSubnav.tsx | 19 ++-- .../src/demos/examples/Nav/NavManual.tsx | 19 ++-- .../examples/Page/PageContextSelector.tsx | 19 ++-- .../Page/PageStickySectionBreadcrumb.tsx | 19 ++-- .../examples/Page/PageStickySectionGroup.tsx | 19 ++-- .../Page/PageStickySectionGroupAlternate.tsx | 19 ++-- .../PrimaryDetail/PrimaryDetailCardView.tsx | 19 ++-- .../src/demos/examples/Tabs/TabsAndTable.tsx | 26 +++++- .../Toolbar/ConsoleLogViewerToolbar.tsx | 30 +++++- .../components/demos/CardDemo/CardDemo.tsx | 7 +- .../demos/DataListDemo/DataListDemo.tsx | 7 +- .../DualListSelectorWithActionsDemo.tsx | 19 ++-- ...lListSelectorDeprecatedWithActionsDemo.tsx | 14 ++- .../demos/MastheadDemo/MastheadDemo.tsx | 10 +- .../NotificationDrawerBasicDemo.tsx | 55 +++++++---- .../NotificationDrawerGroupsDemo.tsx | 82 +++++++++++------ .../OverflowMenuDemo/OverflowMenuDemo.tsx | 39 +++++--- .../demos/ToolbarDemo/ToolbarDemo.tsx | 7 +- .../src/components/Table/ActionsColumn.tsx | 7 +- .../Table/examples/TableActionsOverflow.tsx | 9 +- .../Table/examples/TableSortableCustom.tsx | 9 +- .../react-table/src/demos/DashboardHeader.tsx | 19 ++-- .../demos/examples/TableColumnManagement.tsx | 23 ++++- .../TableColumnManagementWithDraggable.tsx | 21 ++++- .../src/demos/examples/TableCompact.tsx | 7 +- .../demos/examples/TableCompoundExpansion.tsx | 14 ++- .../src/demos/examples/TableFilterable.tsx | 7 +- .../examples/TableSortableResponsive.tsx | 13 ++- .../examples/TableStaticBottomPagination.tsx | 7 +- .../examples/LegacyTableSortableCustom.tsx | 8 +- 80 files changed, 1078 insertions(+), 420 deletions(-) diff --git a/packages/react-core/src/components/ActionList/examples/ActionListSingleGroup.tsx b/packages/react-core/src/components/ActionList/examples/ActionListSingleGroup.tsx index db018b6c289..576c16fc5d2 100644 --- a/packages/react-core/src/components/ActionList/examples/ActionListSingleGroup.tsx +++ b/packages/react-core/src/components/ActionList/examples/ActionListSingleGroup.tsx @@ -7,6 +7,7 @@ import { Dropdown, DropdownList, DropdownItem, + Icon, MenuToggle, MenuToggleElement, Divider @@ -84,9 +85,12 @@ export const ActionListSingleGroup: React.FunctionComponent = () => { variant="plain" isExpanded={isOpen} aria-label="Action list single group kebab" - > - - + icon={ + + + + } + /> )} isOpen={isOpen} onOpenChange={(isOpen: boolean) => setIsOpen(isOpen)} diff --git a/packages/react-core/src/components/Card/examples/CardExpandable.tsx b/packages/react-core/src/components/Card/examples/CardExpandable.tsx index 2afaecee5b4..732471f6571 100644 --- a/packages/react-core/src/components/Card/examples/CardExpandable.tsx +++ b/packages/react-core/src/components/Card/examples/CardExpandable.tsx @@ -11,6 +11,7 @@ import { DropdownList, DropdownItem, Divider, + Icon, MenuToggle, MenuToggleElement } from '@patternfly/react-core'; @@ -71,9 +72,12 @@ export const CardExpandable: React.FunctionComponent = () => { onClick={() => setIsOpen(!isOpen)} variant="plain" aria-label="Card expandable example kebab toggle" - > -