@sphereon/ui-components.ssi-react 0.1.3-unstable.64 → 0.1.3-unstable.66
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.
|
@@ -17,10 +17,10 @@ function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
|
17
17
|
}, [ref, indeterminate]);
|
|
18
18
|
return _jsx("input", { type: "checkbox", ref: ref, className: className + ' cursor-pointer', ...rest });
|
|
19
19
|
}
|
|
20
|
-
const getCellFormatting = (type, value, truncationLength) => {
|
|
20
|
+
const getCellFormatting = (type, value, truncationLength, enableHover) => {
|
|
21
21
|
switch (type) {
|
|
22
22
|
case TableCellType.TEXT:
|
|
23
|
-
return _jsx(SSIHoverText, { text: value, ...(truncationLength && { truncationLength }) });
|
|
23
|
+
return _jsx(SSIHoverText, { text: value, ...(truncationLength && { truncationLength }), ...(enableHover && { enableHover }) });
|
|
24
24
|
case TableCellType.LABEL: {
|
|
25
25
|
const labels = Array.isArray(value) ? value.map((label) => _jsx(SSITypeLabel, { type: label })) : _jsx(SSITypeLabel, { type: value });
|
|
26
26
|
return _jsx(LabelCell, { children: labels });
|
|
@@ -39,7 +39,7 @@ const SSITableView = (props) => {
|
|
|
39
39
|
let availableColumns = columns.map((header) => columnHelper.accessor(header.accessor, {
|
|
40
40
|
id: header.accessor,
|
|
41
41
|
header: header.label,
|
|
42
|
-
cell: (info) => getCellFormatting(header.type, info.getValue(), header.truncationLength),
|
|
42
|
+
cell: (info) => getCellFormatting(header.type, info.getValue(), header.truncationLength, header.enableHover),
|
|
43
43
|
}));
|
|
44
44
|
if (enableRowSelection) {
|
|
45
45
|
availableColumns = [
|
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.66+f594ddd",
|
|
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.66+f594ddd",
|
|
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": "f594ddd685606df56f339717c0f504c8de3c97a7"
|
|
46
46
|
}
|