@patternfly/react-core 5.0.0-alpha.84 → 5.0.0-alpha.85
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 +4 -0
- package/components/index.d.ts +0 -1
- package/components/index.d.ts.map +1 -1
- package/components/index.js +0 -1
- package/components/index.js.map +1 -1
- package/dist/esm/components/AboutModal/package.json +1 -1
- package/dist/esm/components/Accordion/package.json +1 -1
- package/dist/esm/components/ActionList/package.json +1 -1
- package/dist/esm/components/Alert/package.json +1 -1
- package/dist/esm/components/Avatar/package.json +1 -1
- package/dist/esm/components/BackToTop/package.json +1 -1
- package/dist/esm/components/Backdrop/package.json +1 -1
- package/dist/esm/components/BackgroundImage/package.json +1 -1
- package/dist/esm/components/Badge/package.json +1 -1
- package/dist/esm/components/Banner/package.json +1 -1
- package/dist/esm/components/Brand/package.json +1 -1
- package/dist/esm/components/Breadcrumb/package.json +1 -1
- package/dist/esm/components/Button/package.json +1 -1
- package/dist/esm/components/CalendarMonth/package.json +1 -1
- package/dist/esm/components/Card/package.json +1 -1
- package/dist/esm/components/Checkbox/package.json +1 -1
- package/dist/esm/components/Chip/ChipGroup.d.ts.map +1 -0
- package/dist/esm/components/{ChipGroup → Chip}/ChipGroup.js +1 -1
- package/dist/esm/components/Chip/ChipGroup.js.map +1 -0
- package/dist/esm/components/Chip/index.d.ts +1 -0
- package/dist/esm/components/Chip/index.d.ts.map +1 -1
- package/dist/esm/components/Chip/index.js +1 -0
- package/dist/esm/components/Chip/index.js.map +1 -1
- package/dist/esm/components/Chip/package.json +1 -1
- package/dist/esm/components/ClipboardCopy/package.json +1 -1
- package/dist/esm/components/CodeBlock/package.json +1 -1
- package/dist/esm/components/DataList/package.json +1 -1
- package/dist/esm/components/DatePicker/package.json +1 -1
- package/dist/esm/components/DescriptionList/package.json +1 -1
- package/dist/esm/components/Divider/package.json +1 -1
- package/dist/esm/components/DragDrop/package.json +1 -1
- package/dist/esm/components/Drawer/Drawer.d.ts +2 -2
- package/dist/esm/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js +1 -1
- package/dist/esm/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/esm/components/Drawer/package.json +1 -1
- package/dist/esm/components/Dropdown/package.json +1 -1
- package/dist/esm/components/DualListSelector/package.json +1 -1
- package/dist/esm/components/EmptyState/package.json +1 -1
- package/dist/esm/components/ExpandableSection/package.json +1 -1
- package/dist/esm/components/FileUpload/package.json +1 -1
- package/dist/esm/components/Form/package.json +1 -1
- package/dist/esm/components/FormSelect/package.json +1 -1
- package/dist/esm/components/HelperText/package.json +1 -1
- package/dist/esm/components/Hint/package.json +1 -1
- package/dist/esm/components/Icon/package.json +1 -1
- package/dist/esm/components/InputGroup/package.json +1 -1
- package/dist/esm/components/JumpLinks/package.json +1 -1
- package/dist/esm/components/Label/package.json +1 -1
- package/dist/esm/components/LabelGroup/package.json +1 -1
- package/dist/esm/components/List/package.json +1 -1
- package/dist/esm/components/LoginPage/package.json +1 -1
- package/dist/esm/components/Masthead/package.json +1 -1
- package/dist/esm/components/Menu/package.json +1 -1
- package/dist/esm/components/MenuToggle/package.json +1 -1
- package/dist/esm/components/Modal/package.json +1 -1
- package/dist/esm/components/MultipleFileUpload/package.json +1 -1
- package/dist/esm/components/Nav/package.json +1 -1
- package/dist/esm/components/NotificationBadge/package.json +1 -1
- package/dist/esm/components/NotificationDrawer/package.json +1 -1
- package/dist/esm/components/NumberInput/package.json +1 -1
- package/dist/esm/components/OverflowMenu/package.json +1 -1
- package/dist/esm/components/Page/Page.d.ts +3 -3
- package/dist/esm/components/Page/Page.d.ts.map +1 -1
- package/dist/esm/components/Page/Page.js +3 -3
- package/dist/esm/components/Page/Page.js.map +1 -1
- package/dist/esm/components/Page/package.json +1 -1
- package/dist/esm/components/Pagination/package.json +1 -1
- package/dist/esm/components/Panel/package.json +1 -1
- package/dist/esm/components/Popover/package.json +1 -1
- package/dist/esm/components/Progress/package.json +1 -1
- package/dist/esm/components/ProgressStepper/package.json +1 -1
- package/dist/esm/components/Radio/package.json +1 -1
- package/dist/esm/components/SearchInput/package.json +1 -1
- package/dist/esm/components/Select/package.json +1 -1
- package/dist/esm/components/Sidebar/package.json +1 -1
- package/dist/esm/components/SimpleList/package.json +1 -1
- package/dist/esm/components/Skeleton/package.json +1 -1
- package/dist/esm/components/SkipToContent/package.json +1 -1
- package/dist/esm/components/Slider/package.json +1 -1
- package/dist/esm/components/Spinner/package.json +1 -1
- package/dist/esm/components/Switch/package.json +1 -1
- package/dist/esm/components/Tabs/package.json +1 -1
- package/dist/esm/components/Text/package.json +1 -1
- package/dist/esm/components/TextArea/package.json +1 -1
- package/dist/esm/components/TextInput/package.json +1 -1
- package/dist/esm/components/TextInputGroup/package.json +1 -1
- package/dist/esm/components/Tile/package.json +1 -1
- package/dist/esm/components/TimePicker/package.json +1 -1
- package/dist/esm/components/Timestamp/package.json +1 -1
- package/dist/esm/components/Title/package.json +1 -1
- package/dist/esm/components/ToggleGroup/package.json +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/esm/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/esm/components/Toolbar/package.json +1 -1
- package/dist/esm/components/Tooltip/package.json +1 -1
- package/dist/esm/components/TreeView/package.json +1 -1
- package/dist/esm/components/Truncate/package.json +1 -1
- package/dist/esm/components/Wizard/hooks/package.json +1 -1
- package/dist/esm/components/Wizard/package.json +1 -1
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/package.json +1 -1
- package/dist/esm/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/esm/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/esm/deprecated/components/Dropdown/package.json +1 -1
- package/dist/esm/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/esm/deprecated/components/PageHeader/package.json +1 -1
- package/dist/esm/deprecated/components/Select/Select.d.ts +1 -1
- package/dist/esm/deprecated/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Select/Select.js +1 -1
- package/dist/esm/deprecated/components/Select/Select.js.map +1 -1
- package/dist/esm/deprecated/components/Select/package.json +1 -1
- package/dist/esm/deprecated/components/Wizard/package.json +1 -1
- package/dist/esm/deprecated/components/package.json +1 -1
- package/dist/esm/deprecated/package.json +1 -1
- package/dist/esm/helpers/Popper/thirdparty/popper-core/package.json +1 -1
- package/dist/esm/helpers/package.json +1 -1
- package/dist/esm/layouts/Bullseye/package.json +1 -1
- package/dist/esm/layouts/Flex/package.json +1 -1
- package/dist/esm/layouts/Gallery/package.json +1 -1
- package/dist/esm/layouts/Grid/package.json +1 -1
- package/dist/esm/layouts/Level/package.json +1 -1
- package/dist/esm/layouts/Split/package.json +1 -1
- package/dist/esm/layouts/Stack/package.json +1 -1
- package/dist/esm/layouts/package.json +1 -1
- package/dist/esm/next/components/package.json +1 -1
- package/dist/esm/next/package.json +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/js/components/AboutModal/package.json +1 -1
- package/dist/js/components/Accordion/package.json +1 -1
- package/dist/js/components/ActionList/package.json +1 -1
- package/dist/js/components/Alert/package.json +1 -1
- package/dist/js/components/Avatar/package.json +1 -1
- package/dist/js/components/BackToTop/package.json +1 -1
- package/dist/js/components/Backdrop/package.json +1 -1
- package/dist/js/components/BackgroundImage/package.json +1 -1
- package/dist/js/components/Badge/package.json +1 -1
- package/dist/js/components/Banner/package.json +1 -1
- package/dist/js/components/Brand/package.json +1 -1
- package/dist/js/components/Breadcrumb/package.json +1 -1
- package/dist/js/components/Button/package.json +1 -1
- package/dist/js/components/CalendarMonth/package.json +1 -1
- package/dist/js/components/Card/package.json +1 -1
- package/dist/js/components/Checkbox/package.json +1 -1
- package/dist/js/components/Chip/ChipGroup.d.ts.map +1 -0
- package/dist/js/components/{ChipGroup → Chip}/ChipGroup.js +1 -1
- package/dist/js/components/Chip/ChipGroup.js.map +1 -0
- package/dist/js/components/Chip/index.d.ts +1 -0
- package/dist/js/components/Chip/index.d.ts.map +1 -1
- package/dist/js/components/Chip/index.js +1 -0
- package/dist/js/components/Chip/index.js.map +1 -1
- package/dist/js/components/Chip/package.json +1 -1
- package/dist/js/components/ClipboardCopy/package.json +1 -1
- package/dist/js/components/CodeBlock/package.json +1 -1
- package/dist/js/components/DataList/package.json +1 -1
- package/dist/js/components/DatePicker/package.json +1 -1
- package/dist/js/components/DescriptionList/package.json +1 -1
- package/dist/js/components/Divider/package.json +1 -1
- package/dist/js/components/DragDrop/package.json +1 -1
- package/dist/js/components/Drawer/Drawer.d.ts +2 -2
- package/dist/js/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js +1 -1
- package/dist/js/components/Drawer/DrawerPanelContent.js.map +1 -1
- package/dist/js/components/Drawer/package.json +1 -1
- package/dist/js/components/Dropdown/package.json +1 -1
- package/dist/js/components/DualListSelector/package.json +1 -1
- package/dist/js/components/EmptyState/package.json +1 -1
- package/dist/js/components/ExpandableSection/package.json +1 -1
- package/dist/js/components/FileUpload/package.json +1 -1
- package/dist/js/components/Form/package.json +1 -1
- package/dist/js/components/FormSelect/package.json +1 -1
- package/dist/js/components/HelperText/package.json +1 -1
- package/dist/js/components/Hint/package.json +1 -1
- package/dist/js/components/Icon/package.json +1 -1
- package/dist/js/components/InputGroup/package.json +1 -1
- package/dist/js/components/JumpLinks/package.json +1 -1
- package/dist/js/components/Label/package.json +1 -1
- package/dist/js/components/LabelGroup/package.json +1 -1
- package/dist/js/components/List/package.json +1 -1
- package/dist/js/components/LoginPage/package.json +1 -1
- package/dist/js/components/Masthead/package.json +1 -1
- package/dist/js/components/Menu/package.json +1 -1
- package/dist/js/components/MenuToggle/package.json +1 -1
- package/dist/js/components/Modal/package.json +1 -1
- package/dist/js/components/MultipleFileUpload/package.json +1 -1
- package/dist/js/components/Nav/package.json +1 -1
- package/dist/js/components/NotificationBadge/package.json +1 -1
- package/dist/js/components/NotificationDrawer/package.json +1 -1
- package/dist/js/components/NumberInput/package.json +1 -1
- package/dist/js/components/OverflowMenu/package.json +1 -1
- package/dist/js/components/Page/Page.d.ts +3 -3
- package/dist/js/components/Page/Page.d.ts.map +1 -1
- package/dist/js/components/Page/Page.js +3 -3
- package/dist/js/components/Page/Page.js.map +1 -1
- package/dist/js/components/Page/package.json +1 -1
- package/dist/js/components/Pagination/package.json +1 -1
- package/dist/js/components/Panel/package.json +1 -1
- package/dist/js/components/Popover/package.json +1 -1
- package/dist/js/components/Progress/package.json +1 -1
- package/dist/js/components/ProgressStepper/package.json +1 -1
- package/dist/js/components/Radio/package.json +1 -1
- package/dist/js/components/SearchInput/package.json +1 -1
- package/dist/js/components/Select/package.json +1 -1
- package/dist/js/components/Sidebar/package.json +1 -1
- package/dist/js/components/SimpleList/package.json +1 -1
- package/dist/js/components/Skeleton/package.json +1 -1
- package/dist/js/components/SkipToContent/package.json +1 -1
- package/dist/js/components/Slider/package.json +1 -1
- package/dist/js/components/Spinner/package.json +1 -1
- package/dist/js/components/Switch/package.json +1 -1
- package/dist/js/components/Tabs/package.json +1 -1
- package/dist/js/components/Text/package.json +1 -1
- package/dist/js/components/TextArea/package.json +1 -1
- package/dist/js/components/TextInput/package.json +1 -1
- package/dist/js/components/TextInputGroup/package.json +1 -1
- package/dist/js/components/Tile/package.json +1 -1
- package/dist/js/components/TimePicker/package.json +1 -1
- package/dist/js/components/Timestamp/package.json +1 -1
- package/dist/js/components/Title/package.json +1 -1
- package/dist/js/components/ToggleGroup/package.json +1 -1
- package/dist/js/components/Toolbar/ToolbarFilter.js +2 -2
- package/dist/js/components/Toolbar/ToolbarFilter.js.map +1 -1
- package/dist/js/components/Toolbar/package.json +1 -1
- package/dist/js/components/Tooltip/package.json +1 -1
- package/dist/js/components/TreeView/package.json +1 -1
- package/dist/js/components/Truncate/package.json +1 -1
- package/dist/js/components/Wizard/hooks/package.json +1 -1
- package/dist/js/components/Wizard/package.json +1 -1
- package/dist/js/components/index.d.ts +0 -1
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +0 -1
- package/dist/js/components/index.js.map +1 -1
- package/dist/js/components/package.json +1 -1
- package/dist/js/deprecated/components/ApplicationLauncher/package.json +1 -1
- package/dist/js/deprecated/components/ContextSelector/package.json +1 -1
- package/dist/js/deprecated/components/Dropdown/package.json +1 -1
- package/dist/js/deprecated/components/OptionsMenu/package.json +1 -1
- package/dist/js/deprecated/components/PageHeader/package.json +1 -1
- package/dist/js/deprecated/components/Select/Select.d.ts +1 -1
- package/dist/js/deprecated/components/Select/Select.d.ts.map +1 -1
- package/dist/js/deprecated/components/Select/Select.js +3 -3
- package/dist/js/deprecated/components/Select/Select.js.map +1 -1
- package/dist/js/deprecated/components/Select/package.json +1 -1
- package/dist/js/deprecated/components/Wizard/package.json +1 -1
- package/dist/js/deprecated/components/package.json +1 -1
- package/dist/js/deprecated/package.json +1 -1
- package/dist/js/helpers/Popper/thirdparty/popper-core/package.json +1 -1
- package/dist/js/helpers/package.json +1 -1
- package/dist/js/layouts/Bullseye/package.json +1 -1
- package/dist/js/layouts/Flex/package.json +1 -1
- package/dist/js/layouts/Gallery/package.json +1 -1
- package/dist/js/layouts/Grid/package.json +1 -1
- package/dist/js/layouts/Level/package.json +1 -1
- package/dist/js/layouts/Split/package.json +1 -1
- package/dist/js/layouts/Stack/package.json +1 -1
- package/dist/js/layouts/package.json +1 -1
- package/dist/js/next/components/package.json +1 -1
- package/dist/js/next/package.json +1 -1
- package/dist/js/package.json +1 -1
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +2 -2
- package/src/components/{ChipGroup → Chip}/ChipGroup.tsx +1 -1
- package/src/components/Chip/examples/Chip.md +20 -2
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Drawer/Drawer.tsx +2 -2
- package/src/components/Drawer/DrawerPanelContent.tsx +1 -1
- package/src/components/Page/Page.tsx +5 -5
- package/src/components/Toolbar/ToolbarFilter.tsx +1 -1
- package/src/components/index.ts +0 -1
- package/src/demos/Nav.md +2 -2
- package/src/demos/NotificationDrawer/NotificationDrawer.md +4 -4
- package/src/demos/examples/DashboardWrapper.js +1 -1
- package/src/deprecated/components/Select/Select.tsx +1 -1
- package/dist/esm/components/ChipGroup/ChipGroup.d.ts.map +0 -1
- package/dist/esm/components/ChipGroup/ChipGroup.js.map +0 -1
- package/dist/esm/components/ChipGroup/index.d.ts +0 -2
- package/dist/esm/components/ChipGroup/index.d.ts.map +0 -1
- package/dist/esm/components/ChipGroup/index.js +0 -2
- package/dist/esm/components/ChipGroup/index.js.map +0 -1
- package/dist/esm/components/ChipGroup/package.json +0 -1
- package/dist/js/components/ChipGroup/ChipGroup.d.ts.map +0 -1
- package/dist/js/components/ChipGroup/ChipGroup.js.map +0 -1
- package/dist/js/components/ChipGroup/index.d.ts +0 -2
- package/dist/js/components/ChipGroup/index.d.ts.map +0 -1
- package/dist/js/components/ChipGroup/index.js +0 -5
- package/dist/js/components/ChipGroup/index.js.map +0 -1
- package/dist/js/components/ChipGroup/package.json +0 -1
- package/src/components/ChipGroup/examples/ChipGroup.md +0 -24
- package/src/components/ChipGroup/index.ts +0 -1
- /package/dist/esm/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
- /package/dist/js/components/{ChipGroup → Chip}/ChipGroup.d.ts +0 -0
- /package/src/components/{ChipGroup → Chip}/__tests__/ChipGroup.test.tsx +0 -0
- /package/src/components/{ChipGroup → Chip}/__tests__/__snapshots__/ChipGroup.test.tsx.snap +0 -0
- /package/src/components/{ChipGroup → Chip}/examples/ChipGroupInline.tsx +0 -0
- /package/src/components/{ChipGroup → Chip}/examples/ChipGroupRemovableCategories.tsx +0 -0
- /package/src/components/{ChipGroup → Chip}/examples/ChipGroupWithCategories.tsx +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.85",
|
|
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",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": "^17 || ^18",
|
|
72
72
|
"react-dom": "^17 || ^18"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "2161ca8ccb09609f0a72a68e70bd86cda585ea97"
|
|
75
75
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import styles from '@patternfly/react-styles/css/components/ChipGroup/chip-group';
|
|
3
3
|
import { css } from '@patternfly/react-styles';
|
|
4
4
|
import { Button } from '../Button';
|
|
5
|
-
import { Chip } from '
|
|
5
|
+
import { Chip } from './Chip';
|
|
6
6
|
import { Tooltip, TooltipPosition } from '../Tooltip';
|
|
7
7
|
import TimesCircleIcon from '@patternfly/react-icons/dist/esm/icons/times-circle-icon';
|
|
8
8
|
import { fillTemplate } from '../../helpers';
|
|
@@ -2,13 +2,31 @@
|
|
|
2
2
|
id: Chip
|
|
3
3
|
section: components
|
|
4
4
|
cssPrefix: pf-c-chip
|
|
5
|
-
propComponents: ['Chip']
|
|
5
|
+
propComponents: ['Chip', 'ChipGroup']
|
|
6
6
|
ouia: true
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## Examples
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Chip variants
|
|
12
|
+
Chips can be removable or read-only. The Overflow chip is a special chip that is used to expand or collapse the content of a chip group.
|
|
12
13
|
|
|
13
14
|
```ts file='./ChipDefault.tsx'
|
|
14
15
|
```
|
|
16
|
+
|
|
17
|
+
### Chip groups
|
|
18
|
+
|
|
19
|
+
A chip group is a collection of chips that can be grouped by category and used to represent one or more values assigned to a single attribute. When the value of `numChips` is exceeded, additional chips will be hidden using an overflow chip.
|
|
20
|
+
|
|
21
|
+
```ts file='./ChipGroupInline.tsx'
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Chip groups with categories
|
|
25
|
+
|
|
26
|
+
```ts file='./ChipGroupWithCategories.tsx'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Chip groups with removable categories
|
|
30
|
+
|
|
31
|
+
```ts file='./ChipGroupRemovableCategories.tsx'
|
|
32
|
+
```
|
|
@@ -21,13 +21,13 @@ export interface DrawerProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
21
21
|
/** Position of the drawer panel */
|
|
22
22
|
position?: 'left' | 'right' | 'bottom';
|
|
23
23
|
/** Callback when drawer panel is expanded after waiting 250ms for animation to complete. */
|
|
24
|
-
onExpand?: () => void;
|
|
24
|
+
onExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export interface DrawerContextProps {
|
|
28
28
|
isExpanded: boolean;
|
|
29
29
|
isStatic: boolean;
|
|
30
|
-
onExpand?: () => void;
|
|
30
|
+
onExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
|
|
31
31
|
position?: string;
|
|
32
32
|
drawerRef?: React.RefObject<HTMLDivElement>;
|
|
33
33
|
drawerContentRef?: React.RefObject<HTMLDivElement>;
|
|
@@ -263,7 +263,7 @@ export const DrawerPanelContent: React.FunctionComponent<DrawerPanelContentProps
|
|
|
263
263
|
onTransitionEnd={(ev) => {
|
|
264
264
|
if (ev.target as HTMLElement === panel.current) {
|
|
265
265
|
if (!hidden && ev.nativeEvent.propertyName === 'transform') {
|
|
266
|
-
onExpand();
|
|
266
|
+
onExpand(ev);
|
|
267
267
|
}
|
|
268
268
|
setIsExpandedInternal(!hidden);
|
|
269
269
|
}
|
|
@@ -30,7 +30,7 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
30
30
|
/** Flag indicating if breadcrumb width should be limited */
|
|
31
31
|
isBreadcrumbWidthLimited?: boolean;
|
|
32
32
|
/** Callback when notification drawer panel is finished expanding. */
|
|
33
|
-
onNotificationDrawerExpand?: () => void;
|
|
33
|
+
onNotificationDrawerExpand?: (event: KeyboardEvent | React.MouseEvent | React.TransitionEvent) => void;
|
|
34
34
|
/** Skip to content component for the page */
|
|
35
35
|
skipToContent?: React.ReactElement;
|
|
36
36
|
/** Sets the value for role on the <main> element */
|
|
@@ -54,7 +54,7 @@ export interface PageProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
54
54
|
* Can add callback to be notified when resize occurs, for example to set the sidebar isSidebarOpen prop to false for a width < 768px
|
|
55
55
|
* Returns object { mobileView: boolean, windowSize: number }
|
|
56
56
|
*/
|
|
57
|
-
onPageResize?: ((object: any) => void) | null;
|
|
57
|
+
onPageResize?: ((event: MouseEvent | TouchEvent | React.KeyboardEvent, object: any) => void) | null;
|
|
58
58
|
/**
|
|
59
59
|
* The page resize observer uses the breakpoints returned from this function when adding the pf-m-breakpoint-[default|sm|md|lg|xl|2xl] class
|
|
60
60
|
* You can override the default getBreakpoint function to return breakpoints at different sizes than the default
|
|
@@ -163,11 +163,11 @@ export class Page extends React.Component<PageProps, PageState> {
|
|
|
163
163
|
// eslint-disable-next-line radix
|
|
164
164
|
this.getWindowWidth() < Number.parseInt(globalBreakpointXl.value, 10);
|
|
165
165
|
|
|
166
|
-
resize = () => {
|
|
166
|
+
resize = (_event?: MouseEvent | TouchEvent | React.KeyboardEvent<Element>) => {
|
|
167
167
|
const { onPageResize } = this.props;
|
|
168
168
|
const mobileView = this.isMobile();
|
|
169
169
|
if (onPageResize) {
|
|
170
|
-
onPageResize({ mobileView, windowSize: this.getWindowWidth() });
|
|
170
|
+
onPageResize(_event, { mobileView, windowSize: this.getWindowWidth() });
|
|
171
171
|
}
|
|
172
172
|
if (mobileView !== this.state.mobileView) {
|
|
173
173
|
this.setState({ mobileView });
|
|
@@ -324,7 +324,7 @@ export class Page extends React.Component<PageProps, PageState> {
|
|
|
324
324
|
{sidebar}
|
|
325
325
|
{notificationDrawer && (
|
|
326
326
|
<div className={css(styles.pageDrawer)}>
|
|
327
|
-
<Drawer isExpanded={isNotificationDrawerExpanded} onExpand={onNotificationDrawerExpand}>
|
|
327
|
+
<Drawer isExpanded={isNotificationDrawerExpanded} onExpand={(event) => onNotificationDrawerExpand(event)}>
|
|
328
328
|
<DrawerContent panelContent={panelContent}>
|
|
329
329
|
<DrawerContentBody>{main}</DrawerContentBody>
|
|
330
330
|
</DrawerContent>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ReactDOM from 'react-dom';
|
|
3
3
|
import { ToolbarItem, ToolbarItemProps } from './ToolbarItem';
|
|
4
|
-
import { ChipGroup } from '../
|
|
4
|
+
import { ChipGroup } from '../Chip';
|
|
5
5
|
import { Chip } from '../Chip';
|
|
6
6
|
import { ToolbarContentContext, ToolbarContext } from './ToolbarUtils';
|
|
7
7
|
import { PickOptional } from '../../helpers/typeUtils';
|
package/src/components/index.ts
CHANGED
package/src/demos/Nav.md
CHANGED
|
@@ -1305,7 +1305,7 @@ class PageLayoutManualNav extends React.Component {
|
|
|
1305
1305
|
});
|
|
1306
1306
|
};
|
|
1307
1307
|
|
|
1308
|
-
this.onPageResize = ({ mobileView, windowSize }) => {
|
|
1308
|
+
this.onPageResize = (_event, { mobileView, windowSize }) => {
|
|
1309
1309
|
this.setState({
|
|
1310
1310
|
isMobileView: mobileView
|
|
1311
1311
|
});
|
|
@@ -1428,7 +1428,7 @@ class PageLayoutManualNav extends React.Component {
|
|
|
1428
1428
|
<Page
|
|
1429
1429
|
header={Header}
|
|
1430
1430
|
sidebar={Sidebar}
|
|
1431
|
-
onPageResize={this.onPageResize}
|
|
1431
|
+
onPageResize={(event) => this.onPageResize(event)}
|
|
1432
1432
|
skipToContent={PageSkipToContent}
|
|
1433
1433
|
mainContainerId={pageId}
|
|
1434
1434
|
>
|
|
@@ -194,7 +194,7 @@ class BasicNotificationDrawer extends React.Component {
|
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
this.focusDrawer = () => {
|
|
197
|
+
this.focusDrawer = (_event) => {
|
|
198
198
|
const firstTabbableItem = this.drawerRef.current.querySelector('a, button');
|
|
199
199
|
firstTabbableItem.focus();
|
|
200
200
|
};
|
|
@@ -549,7 +549,7 @@ class BasicNotificationDrawer extends React.Component {
|
|
|
549
549
|
sidebar={Sidebar}
|
|
550
550
|
isManagedSidebar
|
|
551
551
|
notificationDrawer={notificationDrawer}
|
|
552
|
-
onNotificationDrawerExpand={this.focusDrawer}
|
|
552
|
+
onNotificationDrawerExpand={(event) => this.focusDrawer(event)}
|
|
553
553
|
isNotificationDrawerExpanded={isDrawerExpanded}
|
|
554
554
|
skipToContent={PageSkipToContent}
|
|
555
555
|
breadcrumb={PageBreadcrumb}
|
|
@@ -790,7 +790,7 @@ class GroupedNotificationDrawer extends React.Component {
|
|
|
790
790
|
});
|
|
791
791
|
};
|
|
792
792
|
|
|
793
|
-
this.focusDrawer = () => {
|
|
793
|
+
this.focusDrawer = (_event) => {
|
|
794
794
|
// Prevent the NotificationDrawer from receiving focus if a drawer group item is opened
|
|
795
795
|
if (!document.activeElement.closest(`.${this.drawerRef.current.className}`)) {
|
|
796
796
|
const firstTabbableItem = this.drawerRef.current.querySelector('a, button');
|
|
@@ -1313,7 +1313,7 @@ class GroupedNotificationDrawer extends React.Component {
|
|
|
1313
1313
|
isManagedSidebar
|
|
1314
1314
|
notificationDrawer={notificationDrawer}
|
|
1315
1315
|
isNotificationDrawerExpanded={isDrawerExpanded}
|
|
1316
|
-
onNotificationDrawerExpand={this.focusDrawer}
|
|
1316
|
+
onNotificationDrawerExpand={(event) => this.focusDrawer(event)}
|
|
1317
1317
|
skipToContent={PageSkipToContent}
|
|
1318
1318
|
breadcrumb={PageBreadcrumb}
|
|
1319
1319
|
mainContainerId={pageId}
|
|
@@ -114,7 +114,7 @@ export default class DashboardWrapper extends React.Component {
|
|
|
114
114
|
mainContainerId={mainContainerId ? mainContainerId : 'main-content-page-layout-default-nav'}
|
|
115
115
|
notificationDrawer={notificationDrawer}
|
|
116
116
|
isNotificationDrawerExpanded={isNotificationDrawerExpanded}
|
|
117
|
-
onPageResize={onPageResize}
|
|
117
|
+
onPageResize={(event) => onPageResize(event)}
|
|
118
118
|
{...pageProps}
|
|
119
119
|
>
|
|
120
120
|
{hasPageTemplateTitle && PageTemplateTitle}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
SelectDirection,
|
|
20
20
|
SelectFooterTabbableItems
|
|
21
21
|
} from './selectConstants';
|
|
22
|
-
import { ChipGroup, ChipGroupProps } from '../../../components/
|
|
22
|
+
import { ChipGroup, ChipGroupProps } from '../../../components/Chip';
|
|
23
23
|
import { Chip } from '../../../components/Chip';
|
|
24
24
|
import { Spinner } from '../../../components/Spinner';
|
|
25
25
|
import {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,SAAS;IAClF,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8IAA8I;IAC9I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB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;IAC/D,iBAAiB,EAAE,kBAAkB;IACrC,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,qBAAqB;CACpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-chipgroup-esm","main":"index.js","module":"./dist/esm/components/ChipGroup/index.js","typings":"index.d.ts","version":"5.0.0-alpha.83"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChipGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ChipGroup/ChipGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAW,eAAe,EAAE,MAAM,YAAY,CAAC;AAItD,OAAO,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,SAAS;IAClF,yEAAyE;IACzE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yDAAyD;IACzD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,2CAA2C;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8IAA8I;IAC9I,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kDAAk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":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ChipGroup/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-core-chipgroup-cjs","main":"index.js","module":"./dist/js/components/ChipGroup/index.js","typings":"index.d.ts","version":"5.0.0-alpha.83"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
id: Chip group
|
|
3
|
-
section: components
|
|
4
|
-
cssPrefix: pf-c-chip-group
|
|
5
|
-
propComponents: ['Chip', 'ChipGroup']
|
|
6
|
-
ouia: true
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Examples
|
|
10
|
-
|
|
11
|
-
### Simple inline
|
|
12
|
-
|
|
13
|
-
```ts file='./ChipGroupInline.tsx'
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### With categories
|
|
17
|
-
|
|
18
|
-
```ts file='./ChipGroupWithCategories.tsx'
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### With removable categories
|
|
22
|
-
|
|
23
|
-
```ts file='./ChipGroupRemovableCategories.tsx'
|
|
24
|
-
```
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ChipGroup';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|