@centreon/ui 23.10.112 → 23.10.113

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "23.10.112",
3
+ "version": "23.10.113",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -7,6 +7,7 @@ import { Button } from '..';
7
7
  import { useItemCompositionStyles } from './ItemComposition.styles';
8
8
 
9
9
  type Props = {
10
+ IconAdd?;
10
11
  addButtonHidden?: boolean;
11
12
  addbuttonDisabled?: boolean;
12
13
  children: Array<ReactElement>;
@@ -19,7 +20,8 @@ export const ItemComposition = ({
19
20
  children,
20
21
  labelAdd,
21
22
  addbuttonDisabled,
22
- addButtonHidden
23
+ addButtonHidden,
24
+ IconAdd
23
25
  }: Props): JSX.Element => {
24
26
  const { classes } = useItemCompositionStyles();
25
27
 
@@ -31,7 +33,7 @@ export const ItemComposition = ({
31
33
  aria-label={labelAdd}
32
34
  data-testid={labelAdd}
33
35
  disabled={addbuttonDisabled}
34
- icon={<AddIcon />}
36
+ icon={IconAdd || <AddIcon />}
35
37
  iconVariant="start"
36
38
  size="small"
37
39
  variant="ghost"