@sphereon/ui-components.ssi-react 0.1.3-unstable.50 → 0.1.3-unstable.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/dist/components/views/SSITableView/index.js +4 -0
- package/dist/styles/components/components/SSIStatusLabel/index.js +1 -0
- package/dist/types/component/index.d.ts +0 -0
- package/dist/types/component/index.js +1 -0
- package/dist/types/table/index.d.ts +2 -1
- package/dist/types/table/index.js +1 -0
- package/package.json +3 -3
|
@@ -7,6 +7,7 @@ import SSITypeLabel from '../../labels/SSITypeLabel';
|
|
|
7
7
|
import SSIHoverText from '../../fields/SSIHoverText';
|
|
8
8
|
import { SSITableViewCellContainerStyled as CellContainer, SSITableViewContainerStyled as Container, SSITableViewHeaderCellContainerStyled as HeaderCellContainer, SSITableViewLabelCellStyled as LabelCell, SSITableViewResultCountCaptionStyled as ResultCountCaption, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, } from '../../../styles';
|
|
9
9
|
import { TableCellType } from '../../../types';
|
|
10
|
+
import { SSIStatusLabel } from '../../../index';
|
|
10
11
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
11
12
|
const ref = React.useRef(null);
|
|
12
13
|
React.useEffect(() => {
|
|
@@ -24,6 +25,9 @@ const getCellFormatting = (type, value, truncationLength) => {
|
|
|
24
25
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
25
26
|
return _jsx(LabelCell, { children: labels });
|
|
26
27
|
}
|
|
28
|
+
case TableCellType.STATUS: {
|
|
29
|
+
return _jsx(SSIStatusLabel, { status: value });
|
|
30
|
+
}
|
|
27
31
|
default:
|
|
28
32
|
return _jsx("div", {});
|
|
29
33
|
}
|
|
@@ -4,6 +4,7 @@ import { SSITextH5LightStyled } from '../../fonts';
|
|
|
4
4
|
export const SSIStatusLabelContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
|
|
5
5
|
border-radius: 9px;
|
|
6
6
|
border: 1px solid #000;
|
|
7
|
+
width: fit-content;
|
|
7
8
|
`;
|
|
8
9
|
export const SSIStatusLabelStatusCaptionStyled = styled(SSITextH5LightStyled) `
|
|
9
10
|
margin-left: 7px;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
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.1.3-unstable.
|
|
4
|
+
"version": "0.1.3-unstable.62+06e4b40",
|
|
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>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@sphereon/ui-components.core": "0.1.3-unstable.
|
|
31
|
+
"@sphereon/ui-components.core": "0.1.3-unstable.62+06e4b40",
|
|
32
32
|
"@tanstack/react-table": "^8.9.3",
|
|
33
33
|
"react-loader-spinner": "^5.4.5",
|
|
34
34
|
"react-toastify": "^9.1.3",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">= 16.8.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "06e4b405dd8b50321044e44e348a5c00a97104de"
|
|
46
46
|
}
|