@sphereon/ui-components.ssi-react 0.2.1-unstable.22 → 0.2.1-unstable.23
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.
|
@@ -6,7 +6,8 @@ import SSIArrowDownIcon from '../../assets/icons/SSIArrowDownIcon';
|
|
|
6
6
|
import MeatBallsIcon from '../../assets/icons/MeatBallsIcon';
|
|
7
7
|
import DeleteIcon from '../../assets/icons/DeleteIcon';
|
|
8
8
|
import { IconButtonContainerStyled as Container, SSITextH3Styled as Caption } from '../../../styles';
|
|
9
|
-
import { PencilIcon } from '../../../index';
|
|
9
|
+
import { PencilIcon, ViewIcon } from '../../../index';
|
|
10
|
+
import CopyIcon from '../../assets/icons/CopyIcon';
|
|
10
11
|
const IconButton = (props) => {
|
|
11
12
|
const { caption, icon, iconColor = fontColors.dark } = props;
|
|
12
13
|
const disabled = typeof props.disabled === 'function' ? props.disabled() : props.disabled ?? false;
|
|
@@ -29,10 +30,14 @@ const getIcon = (icon, color) => {
|
|
|
29
30
|
return _jsx(MeatBallsIcon, { color: color });
|
|
30
31
|
case ButtonIcon.EDIT:
|
|
31
32
|
return _jsx(PencilIcon, { color: color });
|
|
33
|
+
case ButtonIcon.COPY:
|
|
34
|
+
return _jsx(CopyIcon, { color: color });
|
|
32
35
|
case ButtonIcon.DELETE:
|
|
33
36
|
return _jsx(DeleteIcon, { color: color });
|
|
34
37
|
case ButtonIcon.FILTER:
|
|
35
38
|
return _jsx(SSIFilterIcon, { color: color });
|
|
39
|
+
case ButtonIcon.VIEW:
|
|
40
|
+
return _jsx(ViewIcon, { color: color });
|
|
36
41
|
default:
|
|
37
42
|
return _jsx("div", {});
|
|
38
43
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ui-components.ssi-react",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.1-unstable.
|
|
4
|
+
"version": "0.2.1-unstable.23+36dceb2",
|
|
5
5
|
"description": "SSI UI components for React",
|
|
6
6
|
"repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
|
|
7
7
|
"author": "Sphereon <dev@sphereon.com>",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@mui/styled-engine-sc": "^5.14.12",
|
|
41
41
|
"@mui/system": "^5.15.12",
|
|
42
42
|
"@mui/x-date-pickers": "^6.19.5",
|
|
43
|
-
"@sphereon/ui-components.core": "0.2.1-unstable.
|
|
43
|
+
"@sphereon/ui-components.core": "0.2.1-unstable.23+36dceb2",
|
|
44
44
|
"@tanstack/react-table": "^8.9.3",
|
|
45
45
|
"react-json-tree": "^0.18.0",
|
|
46
46
|
"react-loader-spinner": "5.4.5",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">= 18"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "36dceb25b7fbe7c5390f29eb010e070f9d684469"
|
|
63
63
|
}
|