@patternfly/react-core 4.175.11 → 4.175.12
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 +11 -0
- package/dist/esm/components/ActionList/ActionList.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionList.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionList.js +2 -2
- package/dist/esm/components/ActionList/ActionList.js.map +1 -1
- package/dist/esm/components/ActionList/ActionListGroup.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionListGroup.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionListGroup.js +2 -2
- package/dist/esm/components/ActionList/ActionListGroup.js.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.d.ts +2 -0
- package/dist/esm/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/esm/components/ActionList/ActionListItem.js +3 -2
- package/dist/esm/components/ActionList/ActionListItem.js.map +1 -1
- package/dist/js/components/ActionList/ActionList.d.ts +2 -0
- package/dist/js/components/ActionList/ActionList.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionList.js +2 -2
- package/dist/js/components/ActionList/ActionList.js.map +1 -1
- package/dist/js/components/ActionList/ActionListGroup.d.ts +2 -0
- package/dist/js/components/ActionList/ActionListGroup.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionListGroup.js +2 -2
- package/dist/js/components/ActionList/ActionListGroup.js.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.d.ts +2 -0
- package/dist/js/components/ActionList/ActionListItem.d.ts.map +1 -1
- package/dist/js/components/ActionList/ActionListItem.js +3 -2
- package/dist/js/components/ActionList/ActionListItem.js.map +1 -1
- package/dist/umd/react-core.js +6 -6
- package/dist/umd/react-core.min.js +1 -1
- package/package.json +5 -5
- package/src/components/ActionList/ActionList.tsx +4 -1
- package/src/components/ActionList/ActionListGroup.tsx +4 -1
- package/src/components/ActionList/ActionListItem.tsx +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-core",
|
|
3
|
-
"version": "4.175.
|
|
3
|
+
"version": "4.175.12",
|
|
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",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"generate": "node scripts/copyStyles.js"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@patternfly/react-icons": "^4.26.
|
|
38
|
-
"@patternfly/react-styles": "^4.25.
|
|
39
|
-
"@patternfly/react-tokens": "^4.27.
|
|
37
|
+
"@patternfly/react-icons": "^4.26.12",
|
|
38
|
+
"@patternfly/react-styles": "^4.25.12",
|
|
39
|
+
"@patternfly/react-tokens": "^4.27.12",
|
|
40
40
|
"focus-trap": "6.2.2",
|
|
41
41
|
"react-dropzone": "9.0.0",
|
|
42
42
|
"tippy.js": "5.1.2",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "^16.8.0 || ^17.0.0",
|
|
61
61
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "c31cf1714bb3cbb692b22861c6c8204d59243d83"
|
|
64
64
|
}
|
|
@@ -7,14 +7,17 @@ export interface ActionListProps extends React.HTMLProps<HTMLDivElement> {
|
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
/** Flag indicating the action list contains multiple icons and item padding should be removed */
|
|
9
9
|
isIconList?: boolean;
|
|
10
|
+
/** Additional classes added to the action list */
|
|
11
|
+
className?: string;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export const ActionList: React.FunctionComponent<ActionListProps> = ({
|
|
13
15
|
children,
|
|
14
16
|
isIconList,
|
|
17
|
+
className = '',
|
|
15
18
|
...props
|
|
16
19
|
}: ActionListProps) => (
|
|
17
|
-
<div className={css(styles.actionList, isIconList && styles.modifiers.icons)} {...props}>
|
|
20
|
+
<div className={css(styles.actionList, isIconList && styles.modifiers.icons, className)} {...props}>
|
|
18
21
|
{children}
|
|
19
22
|
</div>
|
|
20
23
|
);
|
|
@@ -5,13 +5,16 @@ import styles from '@patternfly/react-styles/css/components/ActionList/action-li
|
|
|
5
5
|
export interface ActionListGroupProps extends React.HTMLProps<HTMLDivElement> {
|
|
6
6
|
/** Children of the action list group */
|
|
7
7
|
children?: React.ReactNode;
|
|
8
|
+
/** Additional classes added to the action list group */
|
|
9
|
+
className?: string;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export const ActionListGroup: React.FunctionComponent<ActionListGroupProps> = ({
|
|
11
13
|
children,
|
|
14
|
+
className = '',
|
|
12
15
|
...props
|
|
13
16
|
}: ActionListGroupProps) => (
|
|
14
|
-
<div className={css(styles.actionListGroup)} {...props}>
|
|
17
|
+
<div className={css(styles.actionListGroup, className)} {...props}>
|
|
15
18
|
{children}
|
|
16
19
|
</div>
|
|
17
20
|
);
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { css } from '@patternfly/react-styles';
|
|
2
3
|
|
|
3
4
|
export interface ActionListItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
4
5
|
/** Children of the action list item */
|
|
5
6
|
children?: React.ReactNode;
|
|
7
|
+
/** Additional classes added to the action list item */
|
|
8
|
+
className?: string;
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
export const ActionListItem: React.FunctionComponent<ActionListItemProps> = ({
|
|
9
12
|
children,
|
|
13
|
+
className = '',
|
|
10
14
|
...props
|
|
11
15
|
}: ActionListItemProps) => (
|
|
12
|
-
<div className=
|
|
16
|
+
<div className={css('pf-c-action-list__item', className)} {...props}>
|
|
13
17
|
{children}
|
|
14
18
|
</div>
|
|
15
19
|
);
|