@patternfly/react-core 6.5.0-prerelease.60 → 6.5.0-prerelease.62
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 +10 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/AboutModal/package.json +1 -1
- package/dist/dynamic/components/Accordion/package.json +1 -1
- package/dist/dynamic/components/ActionList/package.json +1 -1
- package/dist/dynamic/components/Alert/package.json +1 -1
- package/dist/dynamic/components/Avatar/package.json +1 -1
- package/dist/dynamic/components/BackToTop/package.json +1 -1
- package/dist/dynamic/components/Backdrop/package.json +1 -1
- package/dist/dynamic/components/BackgroundImage/package.json +1 -1
- package/dist/dynamic/components/Badge/package.json +1 -1
- package/dist/dynamic/components/Banner/package.json +1 -1
- package/dist/dynamic/components/Brand/package.json +1 -1
- package/dist/dynamic/components/Breadcrumb/package.json +1 -1
- package/dist/dynamic/components/Button/package.json +1 -1
- package/dist/dynamic/components/CalendarMonth/package.json +1 -1
- package/dist/dynamic/components/Card/package.json +1 -1
- package/dist/dynamic/components/Checkbox/package.json +1 -1
- package/dist/dynamic/components/ClipboardCopy/package.json +1 -1
- package/dist/dynamic/components/CodeBlock/package.json +1 -1
- package/dist/dynamic/components/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/Button/Button.js +3 -3
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/dist/esm/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/esm/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/esm/components/ToggleGroup/ToggleGroup.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +2 -2
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/js/components/Button/Button.js +3 -3
- package/dist/js/components/Button/Button.js.map +1 -1
- package/dist/js/components/ToggleGroup/ToggleGroup.d.ts +2 -0
- package/dist/js/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/js/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/js/components/ToggleGroup/ToggleGroup.js.map +1 -1
- package/dist/js/demos/DashboardHeader.js +2 -2
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/styles/assets/images/Felt-Bkg-Generic-Dark.svg +82 -0
- package/dist/styles/assets/images/Felt-Bkg-Generic-Light.svg +82 -0
- package/dist/styles/assets/images/PF-Bkg-Generic-Dark.svg +76 -0
- package/dist/styles/assets/images/PF-Bkg-Generic-Light.svg +74 -0
- package/dist/umd/assets/{output-Bdv1bhxb.css → output-C2ilqqsl.css} +20739 -20682
- package/dist/umd/react-core.min.js +1 -1
- package/helpers/package.json +1 -1
- package/layouts/package.json +1 -1
- package/next/package.json +1 -1
- package/package.json +6 -6
- package/src/components/Button/Button.tsx +4 -4
- package/src/components/Button/examples/Button.md +2 -2
- package/src/components/Button/examples/ButtonPlainHasNoPadding.tsx +2 -2
- package/src/components/Button/examples/ButtonVariations.tsx +2 -2
- package/src/components/Compass/examples/Compass.md +1 -1
- package/src/components/InputGroup/examples/InputGroup.md +1 -1
- package/src/components/InputGroup/examples/InputGroupWithPopover.tsx +3 -3
- package/src/components/SearchInput/__tests__/SearchInput.test.tsx +2 -2
- package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +2 -2
- package/src/components/SearchInput/examples/SearchInput.md +1 -1
- package/src/components/SearchInput/examples/SearchInputAdvanced.tsx +2 -2
- package/src/components/ToggleGroup/ToggleGroup.tsx +9 -1
- package/src/components/ToggleGroup/__tests__/ToggleGroup.test.tsx +23 -0
- package/src/components/ToggleGroup/examples/ToggleGroup.md +15 -1
- package/src/components/ToggleGroup/examples/ToggleGroupFill.tsx +92 -0
- package/src/components/Tooltip/examples/Tooltip.md +1 -1
- package/src/demos/Compass/Compass.md +2 -2
- package/src/demos/Compass/examples/CompassDemo.tsx +2 -2
- package/src/demos/Compass/examples/CompassDockDemo.tsx +2 -2
- package/src/demos/DashboardHeader.tsx +2 -2
- package/src/demos/Masthead.md +1 -1
- package/src/demos/Nav.md +1 -1
- package/src/demos/NotificationDrawer/NotificationDrawer.md +1 -1
- package/src/demos/NotificationDrawer/examples/NotificationDrawerBasic.tsx +6 -2
- package/src/demos/NotificationDrawer/examples/NotificationDrawerGrouped.tsx +6 -2
- package/src/demos/Page.md +1 -1
- package/src/demos/RTL/RTL.md +1 -1
- package/src/demos/RTL/examples/PaginatedTable.tsx +2 -2
- package/src/demos/examples/Masthead/MastheadWithHorizontalNav.tsx +2 -2
- package/src/demos/examples/Masthead/MastheadWithUtilitiesAndUserDropdownMenu.tsx +2 -2
- package/src/demos/examples/Nav/NavDockedNav.tsx +15 -3
- package/src/demos/examples/Nav/NavFlyout.tsx +2 -2
- package/src/demos/examples/Nav/NavHorizontal.tsx +2 -2
- package/src/demos/examples/Nav/NavHorizontalWithSubnav.tsx +2 -2
- package/src/demos/examples/Nav/NavManual.tsx +2 -2
- package/src/demos/examples/Page/PageContextSelector.tsx +2 -2
- package/src/demos/examples/Page/PageStickySectionBreadcrumb.tsx +2 -2
- package/src/demos/examples/Page/PageStickySectionGroup.tsx +2 -2
- package/src/demos/examples/Page/PageStickySectionGroupAlternate.tsx +2 -2
package/helpers/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-helpers","main":"../dist/js/helpers/index.js","module":"../dist/esm/helpers/index.js","typings":"../dist/esm/helpers/index.d.ts","version":"6.5.0-prerelease.61","private":true}
|
package/layouts/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-layouts","main":"../dist/js/layouts/index.js","module":"../dist/esm/layouts/index.js","typings":"../dist/esm/layouts/index.d.ts","version":"6.5.0-prerelease.61","private":true}
|
package/next/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-core-next","main":"../dist/js/next/index.js","module":"../dist/esm/next/index.js","typings":"../dist/esm/next/index.d.ts","version":"6.5.0-prerelease.61","private":true}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "6.5.0-prerelease.
|
|
3
|
+
"version": "6.5.0-prerelease.62",
|
|
4
4
|
"description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@patternfly/react-icons": "^6.5.0-prerelease.
|
|
50
|
-
"@patternfly/react-styles": "^6.5.0-prerelease.
|
|
51
|
-
"@patternfly/react-tokens": "^6.5.0-prerelease.
|
|
49
|
+
"@patternfly/react-icons": "^6.5.0-prerelease.27",
|
|
50
|
+
"@patternfly/react-styles": "^6.5.0-prerelease.20",
|
|
51
|
+
"@patternfly/react-tokens": "^6.5.0-prerelease.19",
|
|
52
52
|
"focus-trap": "7.6.6",
|
|
53
53
|
"react-dropzone": "^14.3.5",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@patternfly/patternfly": "6.5.0-prerelease.
|
|
57
|
+
"@patternfly/patternfly": "6.5.0-prerelease.75",
|
|
58
58
|
"case-anything": "^3.1.2",
|
|
59
59
|
"css": "^3.0.0",
|
|
60
60
|
"fs-extra": "^11.3.3"
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"react": "^17 || ^18 || ^19",
|
|
64
64
|
"react-dom": "^17 || ^18 || ^19"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "be84c3eebc2aeff7b86dc28b4a553ad140553c3a"
|
|
67
67
|
}
|
|
@@ -4,8 +4,8 @@ import { css } from '@patternfly/react-styles';
|
|
|
4
4
|
import { Spinner, spinnerSize } from '../Spinner';
|
|
5
5
|
import { useOUIAProps, OUIAProps } from '../../helpers/OUIA/ouia';
|
|
6
6
|
import { Badge } from '../Badge';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
7
|
+
import RhUiStarFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-star-fill-icon';
|
|
8
|
+
import RhUiStarIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-star-icon';
|
|
9
9
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
10
10
|
import { hamburgerIcon } from './hamburgerIcon';
|
|
11
11
|
|
|
@@ -211,10 +211,10 @@ const ButtonBase: React.FunctionComponent<ButtonProps> = ({
|
|
|
211
211
|
iconContent = (
|
|
212
212
|
<>
|
|
213
213
|
<span className={css('pf-v6-c-button__icon-favorite')}>
|
|
214
|
-
<
|
|
214
|
+
<RhUiStarIcon />
|
|
215
215
|
</span>
|
|
216
216
|
<span className={css('pf-v6-c-button__icon-favorited')}>
|
|
217
|
-
<
|
|
217
|
+
<RhUiStarFillIcon />
|
|
218
218
|
</span>
|
|
219
219
|
</>
|
|
220
220
|
);
|
|
@@ -9,12 +9,12 @@ ouia: true
|
|
|
9
9
|
import { Fragment, useState } from 'react';
|
|
10
10
|
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
|
|
11
11
|
import PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
12
|
-
import
|
|
12
|
+
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
13
13
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
14
14
|
import ArrowRightIcon from '@patternfly/react-icons/dist/esm/icons/arrow-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';
|
|
17
|
-
import
|
|
17
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
18
18
|
|
|
19
19
|
## Examples
|
|
20
20
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button } from '@patternfly/react-core';
|
|
2
|
-
import
|
|
2
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
3
3
|
|
|
4
4
|
export const ButtonPlainHasNoPadding: React.FunctionComponent = () => (
|
|
5
5
|
<p>
|
|
6
6
|
This is an example of a button
|
|
7
|
-
<Button variant="plain" hasNoPadding aria-label="More info" icon={<
|
|
7
|
+
<Button variant="plain" hasNoPadding aria-label="More info" icon={<RhUiQuestionMarkCircleFillIcon />} />
|
|
8
8
|
which is placed inline with text
|
|
9
9
|
</p>
|
|
10
10
|
);
|
|
@@ -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 PlusCircleIcon from '@patternfly/react-icons/dist/esm/icons/plus-circle-icon';
|
|
4
|
-
import
|
|
4
|
+
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
5
5
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
6
6
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
7
7
|
|
|
@@ -32,7 +32,7 @@ export const ButtonVariations: React.FunctionComponent = () => (
|
|
|
32
32
|
<Button variant="link" icon={<PlusCircleIcon />}>
|
|
33
33
|
Link
|
|
34
34
|
</Button>
|
|
35
|
-
<Button variant="link" icon={<
|
|
35
|
+
<Button variant="link" icon={<RhUiExternalLinkFillIcon />} iconPosition="end">
|
|
36
36
|
Link
|
|
37
37
|
</Button>
|
|
38
38
|
<Button variant="link" isInline>
|
|
@@ -20,7 +20,7 @@ import { useRef, useState, useEffect } from 'react';
|
|
|
20
20
|
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
21
21
|
import OutlinedPlusSquare from '@patternfly/react-icons/dist/esm/icons/outlined-plus-square-icon';
|
|
22
22
|
import OutlinedCopy from '@patternfly/react-icons/dist/esm/icons/outlined-copy-icon';
|
|
23
|
-
import
|
|
23
|
+
import RhUiQuestionMarkCircleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-icon';
|
|
24
24
|
|
|
25
25
|
import './compass.css';
|
|
26
26
|
|
|
@@ -9,7 +9,7 @@ import { Fragment, useRef, useState } from 'react';
|
|
|
9
9
|
import AtIcon from '@patternfly/react-icons/dist/esm/icons/at-icon';
|
|
10
10
|
import DollarSignIcon from '@patternfly/react-icons/dist/esm/icons/dollar-sign-icon';
|
|
11
11
|
import CalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/calendar-alt-icon';
|
|
12
|
-
import
|
|
12
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
13
13
|
|
|
14
14
|
## Examples
|
|
15
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, useRef } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
3
3
|
import { Button, InputGroup, InputGroupItem, TextInput, Popover, PopoverPosition } from '@patternfly/react-core';
|
|
4
4
|
|
|
5
5
|
export const InputGroupWithPopover: React.FunctionComponent = () => {
|
|
@@ -23,7 +23,7 @@ export const InputGroupWithPopover: React.FunctionComponent = () => {
|
|
|
23
23
|
bodyContent="This field is an example of an input group with a popover."
|
|
24
24
|
appendTo={() => inputGroupRef1.current}
|
|
25
25
|
>
|
|
26
|
-
<Button variant="control" aria-label="popover for input" icon={<
|
|
26
|
+
<Button variant="control" aria-label="popover for input" icon={<RhUiQuestionMarkCircleFillIcon />} />
|
|
27
27
|
</Popover>
|
|
28
28
|
</InputGroupItem>
|
|
29
29
|
</InputGroup>
|
|
@@ -44,7 +44,7 @@ export const InputGroupWithPopover: React.FunctionComponent = () => {
|
|
|
44
44
|
bodyContent="This field is an example of an input group with a popover."
|
|
45
45
|
appendTo={() => inputGroupRef2.current}
|
|
46
46
|
>
|
|
47
|
-
<Button variant="plain" aria-label="Popover for input" icon={<
|
|
47
|
+
<Button variant="plain" aria-label="Popover for input" icon={<RhUiQuestionMarkCircleFillIcon />} />
|
|
48
48
|
</Popover>
|
|
49
49
|
</InputGroupItem>
|
|
50
50
|
</InputGroup>
|
|
@@ -6,7 +6,7 @@ import { SearchInput } from '../SearchInput';
|
|
|
6
6
|
import { FormGroup } from '../../Form';
|
|
7
7
|
import { Button } from '../../Button';
|
|
8
8
|
import { AnimationsProvider } from '../../../helpers/AnimationsProvider';
|
|
9
|
-
import
|
|
9
|
+
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
10
10
|
import badgeStyles from '@patternfly/react-styles/css/components/Badge/badge';
|
|
11
11
|
import textInputGroupStyles from '@patternfly/react-styles/css/components/TextInputGroup/text-input-group';
|
|
12
12
|
import inputGroupStyles from '@patternfly/react-styles/css/components/InputGroup/input-group';
|
|
@@ -128,7 +128,7 @@ describe('SearchInput', () => {
|
|
|
128
128
|
advancedSearchDelimiter=":"
|
|
129
129
|
formAdditionalItems={
|
|
130
130
|
<FormGroup fieldId="test-form-group">
|
|
131
|
-
<Button variant="link" isInline icon={<
|
|
131
|
+
<Button variant="link" isInline icon={<RhUiExternalLinkFillIcon />} iconPosition="right">
|
|
132
132
|
Link
|
|
133
133
|
</Button>
|
|
134
134
|
</FormGroup>
|
|
@@ -496,11 +496,11 @@ exports[`SearchInput advanced search with custom attributes 1`] = `
|
|
|
496
496
|
fill="currentColor"
|
|
497
497
|
height="1em"
|
|
498
498
|
role="img"
|
|
499
|
-
viewBox="0 0
|
|
499
|
+
viewBox="0 0 32 32"
|
|
500
500
|
width="1em"
|
|
501
501
|
>
|
|
502
502
|
<path
|
|
503
|
-
d="
|
|
503
|
+
d="M28.5 2h-25C2.673 2 2 2.673 2 3.5v25c0 .827.673 1.5 1.5 1.5h25c.827 0 1.5-.673 1.5-1.5v-25c0-.827-.673-1.5-1.5-1.5Zm-3.375 17a1.125 1.125 0 0 1-2.25 0v-8.284L11.796 21.795a1.122 1.122 0 0 1-1.592 0 1.127 1.127 0 0 1 0-1.591l11.08-11.08H13a1.125 1.125 0 0 1 0-2.25h10.5c.896 0 1.625.729 1.625 1.625v10.5Z"
|
|
504
504
|
/>
|
|
505
505
|
</svg>
|
|
506
506
|
</span>
|
|
@@ -6,7 +6,7 @@ propComponents: ['SearchInput', 'SearchInputSearchAttribute', 'SearchInputExpand
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { useRef, useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
10
10
|
|
|
11
11
|
## Examples
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
2
|
import { Button, Checkbox, FormGroup, SearchInput } from '@patternfly/react-core';
|
|
3
|
-
import
|
|
3
|
+
import RhUiExternalLinkFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-external-link-fill-icon';
|
|
4
4
|
|
|
5
5
|
export const SearchInputAdvanced: React.FunctionComponent = () => {
|
|
6
6
|
const [value, setValue] = useState('username:player firstname:john');
|
|
@@ -45,7 +45,7 @@ export const SearchInputAdvanced: React.FunctionComponent = () => {
|
|
|
45
45
|
formAdditionalItems={
|
|
46
46
|
useCustomFooter ? (
|
|
47
47
|
<FormGroup>
|
|
48
|
-
<Button variant="link" isInline icon={<
|
|
48
|
+
<Button variant="link" isInline icon={<RhUiExternalLinkFillIcon />} iconPosition="end">
|
|
49
49
|
Link
|
|
50
50
|
</Button>
|
|
51
51
|
</FormGroup>
|
|
@@ -10,6 +10,8 @@ export interface ToggleGroupProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
/** Modifies the toggle group to include compact styling. */
|
|
12
12
|
isCompact?: boolean;
|
|
13
|
+
/** Modifies the toggle group items to fill the available space. */
|
|
14
|
+
isFill?: boolean;
|
|
13
15
|
/** Disable all toggle group items under this component. */
|
|
14
16
|
areAllGroupsDisabled?: boolean;
|
|
15
17
|
/** Accessible label for the toggle group */
|
|
@@ -20,6 +22,7 @@ export const ToggleGroup: React.FunctionComponent<ToggleGroupProps> = ({
|
|
|
20
22
|
className,
|
|
21
23
|
children,
|
|
22
24
|
isCompact = false,
|
|
25
|
+
isFill = false,
|
|
23
26
|
areAllGroupsDisabled = false,
|
|
24
27
|
'aria-label': ariaLabel,
|
|
25
28
|
...props
|
|
@@ -32,7 +35,12 @@ export const ToggleGroup: React.FunctionComponent<ToggleGroupProps> = ({
|
|
|
32
35
|
|
|
33
36
|
return (
|
|
34
37
|
<div
|
|
35
|
-
className={css(
|
|
38
|
+
className={css(
|
|
39
|
+
styles.toggleGroup,
|
|
40
|
+
isCompact && styles.modifiers.compact,
|
|
41
|
+
isFill && styles.modifiers.fill,
|
|
42
|
+
className
|
|
43
|
+
)}
|
|
36
44
|
role="group"
|
|
37
45
|
aria-label={ariaLabel}
|
|
38
46
|
{...props}
|
|
@@ -3,6 +3,7 @@ import userEvent from '@testing-library/user-event';
|
|
|
3
3
|
|
|
4
4
|
import { ToggleGroup } from '../ToggleGroup';
|
|
5
5
|
import { ToggleGroupItem } from '../ToggleGroupItem';
|
|
6
|
+
import styles from '@patternfly/react-styles/css/components/ToggleGroup/toggle-group';
|
|
6
7
|
|
|
7
8
|
const props = {
|
|
8
9
|
onChange: jest.fn(),
|
|
@@ -59,6 +60,28 @@ describe('ToggleGroup', () => {
|
|
|
59
60
|
expect(asFragment()).toMatchSnapshot();
|
|
60
61
|
});
|
|
61
62
|
|
|
63
|
+
test(`does not apply ${styles.modifiers.fill} modifier class by default`, () => {
|
|
64
|
+
render(
|
|
65
|
+
<ToggleGroup aria-label="Default toggle group">
|
|
66
|
+
<ToggleGroupItem text="Test" />
|
|
67
|
+
<ToggleGroupItem text="Test" />
|
|
68
|
+
</ToggleGroup>
|
|
69
|
+
);
|
|
70
|
+
const toggleGroup = screen.getByRole('group');
|
|
71
|
+
expect(toggleGroup).not.toHaveClass(styles.modifiers.fill);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
test(`applies ${styles.modifiers.fill} modifier class when isFill is true`, () => {
|
|
75
|
+
render(
|
|
76
|
+
<ToggleGroup isFill aria-label="Fill toggle group">
|
|
77
|
+
<ToggleGroupItem text="Test" />
|
|
78
|
+
<ToggleGroupItem text="Test" />
|
|
79
|
+
</ToggleGroup>
|
|
80
|
+
);
|
|
81
|
+
const toggleGroup = screen.getByRole('group');
|
|
82
|
+
expect(toggleGroup).toHaveClass(styles.modifiers.fill);
|
|
83
|
+
});
|
|
84
|
+
|
|
62
85
|
test('should render non-ToggleGroupItem children', () => {
|
|
63
86
|
const { asFragment } = render(
|
|
64
87
|
<ToggleGroup isCompact aria-label="non-element children">
|
|
@@ -4,6 +4,7 @@ section: components
|
|
|
4
4
|
cssPrefix: pf-v6-c-toggle-group
|
|
5
5
|
propComponents: ['ToggleGroup', 'ToggleGroupItem']
|
|
6
6
|
---
|
|
7
|
+
|
|
7
8
|
import './toggleGroup.css';
|
|
8
9
|
|
|
9
10
|
import { useRef, useState } from 'react';
|
|
@@ -21,6 +22,7 @@ A single select toggle group allows users to toggle between multiple items.
|
|
|
21
22
|
To indicate whether a `<ToggleGroupItem>` is selected or not, use the `isSelected` property.
|
|
22
23
|
|
|
23
24
|
```ts file="./ToggleGroupDefaultSingle.tsx"
|
|
25
|
+
|
|
24
26
|
```
|
|
25
27
|
|
|
26
28
|
### Multi select toggle group
|
|
@@ -30,6 +32,7 @@ A multi select toggle group allows users to select multiple items at once.
|
|
|
30
32
|
When a toggle item is disabled it cannot be selected. Click the "Disable all" button in the following example to see this in action.
|
|
31
33
|
|
|
32
34
|
```ts file="./ToggleGroupDefaultMultiple.tsx"
|
|
35
|
+
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
### With icons
|
|
@@ -39,6 +42,7 @@ You can use a recognizable icon as a toggle item label.
|
|
|
39
42
|
To do this, pass an imported icon to the `icon` property of a `<ToggleGroupItem>`.
|
|
40
43
|
|
|
41
44
|
```ts file="./ToggleGroupIcon.tsx"
|
|
45
|
+
|
|
42
46
|
```
|
|
43
47
|
|
|
44
48
|
### With text and icons
|
|
@@ -50,13 +54,23 @@ To do this, pass a descriptive label to the `text` property of a `<ToggleGroupIt
|
|
|
50
54
|
When passing both `text` and `icon` properties to a `<ToggleGroupItem>`, you can also pass in `iconPosition` to determine whether the icon is rendered at the start or end of the item.
|
|
51
55
|
|
|
52
56
|
```ts file="./ToggleGroupTextIcon.tsx"
|
|
57
|
+
|
|
53
58
|
```
|
|
54
59
|
|
|
55
60
|
### Compact toggle group
|
|
56
61
|
|
|
57
|
-
When space in a UI is limited, you can use a compact toggle group.
|
|
62
|
+
When space in a UI is limited, you can use a compact toggle group.
|
|
58
63
|
|
|
59
64
|
To apply compact styling to a `<ToggleGroup>`, use `isCompact`.
|
|
60
65
|
|
|
61
66
|
```ts file="./ToggleGroupCompact.tsx"
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Full-width toggle group
|
|
71
|
+
|
|
72
|
+
To make toggle group items fill the available horizontal space, use `isFill` on a `<ToggleGroup>`. The following example shows full-width toggle groups for a single-select, multi-select, and single-select with disabled item.
|
|
73
|
+
|
|
74
|
+
```ts file="./ToggleGroupFill.tsx"
|
|
75
|
+
|
|
62
76
|
```
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { ToggleGroup, ToggleGroupItem } from '@patternfly/react-core';
|
|
3
|
+
|
|
4
|
+
export const ToggleGroupFill: React.FunctionComponent = () => {
|
|
5
|
+
const [isSelectedBasic, setIsSelectedBasic] = useState('toggle-group-fill-1');
|
|
6
|
+
const [isSelectedMulti, setIsSelectedMulti] = useState({
|
|
7
|
+
'toggle-group-fill-multi-1': false,
|
|
8
|
+
'toggle-group-fill-multi-2': false,
|
|
9
|
+
'toggle-group-fill-multi-3': false
|
|
10
|
+
});
|
|
11
|
+
const [isSelectedDisabled, setIsSelectedDisabled] = useState('toggle-group-fill-disabled-1');
|
|
12
|
+
|
|
13
|
+
const handleItemClickBasic = (event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent) => {
|
|
14
|
+
const id = event.currentTarget.id;
|
|
15
|
+
setIsSelectedBasic(id);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const handleItemClickMulti = (
|
|
19
|
+
event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent,
|
|
20
|
+
isSelected: boolean
|
|
21
|
+
) => {
|
|
22
|
+
const id = event.currentTarget.id;
|
|
23
|
+
setIsSelectedMulti((prevIsSelected) => ({ ...prevIsSelected, [id]: isSelected }));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const handleItemClickDisabled = (event: React.MouseEvent<any> | React.KeyboardEvent | MouseEvent) => {
|
|
27
|
+
const id = event.currentTarget.id;
|
|
28
|
+
setIsSelectedDisabled(id);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<>
|
|
33
|
+
<ToggleGroup isFill aria-label="Full width toggle group">
|
|
34
|
+
<ToggleGroupItem
|
|
35
|
+
text="Option 1"
|
|
36
|
+
buttonId="toggle-group-fill-1"
|
|
37
|
+
isSelected={isSelectedBasic === 'toggle-group-fill-1'}
|
|
38
|
+
onChange={handleItemClickBasic}
|
|
39
|
+
/>
|
|
40
|
+
<ToggleGroupItem
|
|
41
|
+
text="Option 2"
|
|
42
|
+
buttonId="toggle-group-fill-2"
|
|
43
|
+
isSelected={isSelectedBasic === 'toggle-group-fill-2'}
|
|
44
|
+
onChange={handleItemClickBasic}
|
|
45
|
+
/>
|
|
46
|
+
<ToggleGroupItem
|
|
47
|
+
text="Option 3"
|
|
48
|
+
buttonId="toggle-group-fill-3"
|
|
49
|
+
isSelected={isSelectedBasic === 'toggle-group-fill-3'}
|
|
50
|
+
onChange={handleItemClickBasic}
|
|
51
|
+
/>
|
|
52
|
+
</ToggleGroup>
|
|
53
|
+
<br />
|
|
54
|
+
<ToggleGroup isFill aria-label="Full width multi-select toggle group">
|
|
55
|
+
<ToggleGroupItem
|
|
56
|
+
text="Option 1"
|
|
57
|
+
buttonId="toggle-group-fill-multi-1"
|
|
58
|
+
isSelected={isSelectedMulti['toggle-group-fill-multi-1']}
|
|
59
|
+
onChange={handleItemClickMulti}
|
|
60
|
+
/>
|
|
61
|
+
<ToggleGroupItem
|
|
62
|
+
text="Option 2"
|
|
63
|
+
buttonId="toggle-group-fill-multi-2"
|
|
64
|
+
isSelected={isSelectedMulti['toggle-group-fill-multi-2']}
|
|
65
|
+
onChange={handleItemClickMulti}
|
|
66
|
+
/>
|
|
67
|
+
<ToggleGroupItem
|
|
68
|
+
text="Option 3"
|
|
69
|
+
buttonId="toggle-group-fill-multi-3"
|
|
70
|
+
isSelected={isSelectedMulti['toggle-group-fill-multi-3']}
|
|
71
|
+
onChange={handleItemClickMulti}
|
|
72
|
+
/>
|
|
73
|
+
</ToggleGroup>
|
|
74
|
+
<br />
|
|
75
|
+
<ToggleGroup isFill aria-label="Full width toggle group with disabled item">
|
|
76
|
+
<ToggleGroupItem
|
|
77
|
+
text="Option 1"
|
|
78
|
+
buttonId="toggle-group-fill-disabled-1"
|
|
79
|
+
isSelected={isSelectedDisabled === 'toggle-group-fill-disabled-1'}
|
|
80
|
+
onChange={handleItemClickDisabled}
|
|
81
|
+
/>
|
|
82
|
+
<ToggleGroupItem
|
|
83
|
+
text="Option 2"
|
|
84
|
+
buttonId="toggle-group-fill-disabled-2"
|
|
85
|
+
isSelected={isSelectedDisabled === 'toggle-group-fill-disabled-2'}
|
|
86
|
+
onChange={handleItemClickDisabled}
|
|
87
|
+
/>
|
|
88
|
+
<ToggleGroupItem text="Option 3" isDisabled />
|
|
89
|
+
</ToggleGroup>
|
|
90
|
+
</>
|
|
91
|
+
);
|
|
92
|
+
};
|
|
@@ -6,7 +6,7 @@ propComponents: ['Tooltip']
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
import { useEffect, useRef, useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import RhUiQuestionMarkCircleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-icon';
|
|
10
10
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
11
11
|
import './TooltipExamples.css';
|
|
12
12
|
|
|
@@ -8,10 +8,10 @@ import { useRef, useState } from 'react';
|
|
|
8
8
|
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
9
9
|
import OutlinedPlusSquare from '@patternfly/react-icons/dist/esm/icons/outlined-plus-square-icon';
|
|
10
10
|
import OutlinedCopy from '@patternfly/react-icons/dist/esm/icons/outlined-copy-icon';
|
|
11
|
-
import
|
|
11
|
+
import RhUiQuestionMarkCircleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-icon';
|
|
12
12
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
13
13
|
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
|
|
14
|
-
import
|
|
14
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
15
15
|
import CloudIcon from '@patternfly/react-icons/dist/esm/icons/cloud-icon';
|
|
16
16
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
17
17
|
import imgAvatar from '../assets/avatarImg.svg';
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import PlayIcon from '@patternfly/react-icons/dist/esm/icons/play-icon';
|
|
32
32
|
import OutlinedPlusSquare from '@patternfly/react-icons/dist/esm/icons/outlined-plus-square-icon';
|
|
33
33
|
import OutlinedCopy from '@patternfly/react-icons/dist/esm/icons/outlined-copy-icon';
|
|
34
|
-
import
|
|
34
|
+
import RhUiQuestionMarkCircleIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-icon';
|
|
35
35
|
|
|
36
36
|
export const CompassBasic: React.FunctionComponent = () => {
|
|
37
37
|
const [activeTab, setActiveTab] = useState<number>(0);
|
|
@@ -129,7 +129,7 @@ export const CompassBasic: React.FunctionComponent = () => {
|
|
|
129
129
|
<ActionListGroup>
|
|
130
130
|
<ActionListItem>
|
|
131
131
|
<Tooltip content="Help">
|
|
132
|
-
<Button isCircle variant="plain" icon={<
|
|
132
|
+
<Button isCircle variant="plain" icon={<RhUiQuestionMarkCircleIcon />} aria-label="Help" />
|
|
133
133
|
</Tooltip>
|
|
134
134
|
</ActionListItem>
|
|
135
135
|
<ActionListItem>
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from '@patternfly/react-core';
|
|
33
33
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
34
34
|
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
|
|
35
|
-
import
|
|
35
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
36
36
|
import CloudIcon from '@patternfly/react-icons/dist/esm/icons/cloud-icon';
|
|
37
37
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
38
38
|
import pfLogo from '../../assets/PF-IconLogo-color.svg';
|
|
@@ -160,7 +160,7 @@ export const CompassDockDemo: React.FunctionComponent = () => {
|
|
|
160
160
|
ref={helpRef}
|
|
161
161
|
aria-label="Help"
|
|
162
162
|
variant={ButtonVariant.plain}
|
|
163
|
-
icon={<
|
|
163
|
+
icon={<RhUiQuestionMarkCircleFillIcon />}
|
|
164
164
|
/>
|
|
165
165
|
</Tooltip>
|
|
166
166
|
</ToolbarItem>
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from '../components';
|
|
26
26
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
27
27
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
28
|
-
import
|
|
28
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
29
29
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
30
30
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
31
31
|
|
|
@@ -159,7 +159,7 @@ export const DashboardHeader: React.FC<DashboardHeaderProps> = ({ notificationBa
|
|
|
159
159
|
<Button aria-label="Settings" isSettings variant="plain" />
|
|
160
160
|
</ToolbarItem>
|
|
161
161
|
<ToolbarItem>
|
|
162
|
-
<Button aria-label="Help" variant={ButtonVariant.plain} icon={<
|
|
162
|
+
<Button aria-label="Help" variant={ButtonVariant.plain} icon={<RhUiQuestionMarkCircleFillIcon />} />
|
|
163
163
|
</ToolbarItem>
|
|
164
164
|
</ToolbarGroup>
|
|
165
165
|
<ToolbarItem visibility={{ default: 'hidden', md: 'visible', lg: 'hidden' }}>
|
package/src/demos/Masthead.md
CHANGED
|
@@ -9,7 +9,7 @@ import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
|
9
9
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
10
10
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
11
11
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
12
|
-
import
|
|
12
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
13
13
|
import ThIcon from '@patternfly/react-icons/dist/esm/icons/th-icon';
|
|
14
14
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
15
15
|
import pfIcon from './assets/pf-logo-small.svg';
|
package/src/demos/Nav.md
CHANGED
|
@@ -6,7 +6,7 @@ section: components
|
|
|
6
6
|
import { Fragment, useState, useRef } from 'react';
|
|
7
7
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
8
8
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
9
|
-
import
|
|
9
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
10
10
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
11
11
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
12
12
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
@@ -9,7 +9,7 @@ import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-
|
|
|
9
9
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
10
10
|
import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
|
|
11
11
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
12
|
-
import
|
|
12
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
13
13
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
14
14
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
15
15
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from '@patternfly/react-core';
|
|
48
48
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
49
49
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
50
|
-
import
|
|
50
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
51
51
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
52
52
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
53
53
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
@@ -195,7 +195,11 @@ export const NotificationDrawerBasic: React.FunctionComponent = () => {
|
|
|
195
195
|
<Button aria-label="Settings actions" isSettings variant="plain" />
|
|
196
196
|
</ToolbarItem>
|
|
197
197
|
<ToolbarItem>
|
|
198
|
-
<Button
|
|
198
|
+
<Button
|
|
199
|
+
aria-label="Help actions"
|
|
200
|
+
variant={ButtonVariant.plain}
|
|
201
|
+
icon={<RhUiQuestionMarkCircleFillIcon />}
|
|
202
|
+
/>
|
|
199
203
|
</ToolbarItem>
|
|
200
204
|
</ToolbarGroup>
|
|
201
205
|
</ToolbarGroup>
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
51
51
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
52
52
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
53
|
-
import
|
|
53
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
54
54
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
55
55
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
56
56
|
import pfLogo from '@patternfly/react-core/src/demos/assets/pf-logo.PF-HorizontalLogo-Color.svg';
|
|
@@ -245,7 +245,11 @@ export const NotificationDrawerGrouped: React.FunctionComponent = () => {
|
|
|
245
245
|
<Button aria-label="Settings actions" isSettings variant="plain" />
|
|
246
246
|
</ToolbarItem>
|
|
247
247
|
<ToolbarItem>
|
|
248
|
-
<Button
|
|
248
|
+
<Button
|
|
249
|
+
aria-label="Help actions"
|
|
250
|
+
variant={ButtonVariant.plain}
|
|
251
|
+
icon={<RhUiQuestionMarkCircleFillIcon />}
|
|
252
|
+
/>
|
|
249
253
|
</ToolbarItem>
|
|
250
254
|
</ToolbarGroup>
|
|
251
255
|
</ToolbarGroup>
|
package/src/demos/Page.md
CHANGED
|
@@ -7,7 +7,7 @@ import { useState, useRef, useEffect } from 'react';
|
|
|
7
7
|
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
|
|
8
8
|
import RhUiSettingsFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-settings-fill-icon';
|
|
9
9
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
10
|
-
import
|
|
10
|
+
import RhUiQuestionMarkCircleFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-question-mark-circle-fill-icon';
|
|
11
11
|
import imgAvatar from '@patternfly/react-core/src/components/assets/avatarImg.svg';
|
|
12
12
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
13
13
|
import LightbulbIcon from '@patternfly/react-icons/dist/esm/icons/lightbulb-icon';
|