@sphereon/ui-components.ssi-react 0.1.3-unstable.88 → 0.1.3-unstable.95
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CSSProperties, FC } from 'react';
|
|
2
2
|
import { ImageAttributes } from '@sphereon/ui-components.core';
|
|
3
|
-
type
|
|
3
|
+
export type SSICredentialMiniCardViewProps = {
|
|
4
4
|
backgroundImage?: ImageAttributes;
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
logo?: ImageAttributes;
|
|
7
7
|
logoColor?: string;
|
|
8
8
|
style?: CSSProperties;
|
|
9
9
|
};
|
|
10
|
-
declare const SSICredentialMiniCardView: FC<
|
|
10
|
+
declare const SSICredentialMiniCardView: FC<SSICredentialMiniCardViewProps>;
|
|
11
11
|
export default SSICredentialMiniCardView;
|
|
@@ -7,7 +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
|
+
import { SSICredentialMiniCardView, SSIStatusLabel } from '../../../index';
|
|
11
11
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
12
12
|
const ref = React.useRef(null);
|
|
13
13
|
React.useEffect(() => {
|
|
@@ -29,6 +29,9 @@ const getCellFormatting = (type, value, opts) => {
|
|
|
29
29
|
case TableCellType.STATUS: {
|
|
30
30
|
return _jsx(SSIStatusLabel, { status: value });
|
|
31
31
|
}
|
|
32
|
+
case TableCellType.CREDENTIAL_CARD: {
|
|
33
|
+
return _jsx(SSICredentialMiniCardView, { ...value });
|
|
34
|
+
}
|
|
32
35
|
default:
|
|
33
36
|
return _jsx("div", {});
|
|
34
37
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContaine
|
|
|
2
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
3
3
|
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
4
4
|
import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
|
|
5
|
+
import { SSICredentialMiniCardViewProps } from './components/views/SSICredentialMiniCardView';
|
|
5
6
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
6
7
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
7
8
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -28,4 +29,4 @@ import { Row } from '@tanstack/react-table';
|
|
|
28
29
|
export * from './styles/fonts';
|
|
29
30
|
export * from './types';
|
|
30
31
|
export * from './helpers';
|
|
31
|
-
export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, Row, };
|
|
32
|
+
export { SSICredentialCardView, SSICredentialMiniCardView, SSICredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, Row, };
|
|
@@ -2,7 +2,8 @@ import { AccessorFn, DeepKeys } from '@tanstack/react-table';
|
|
|
2
2
|
export declare enum TableCellType {
|
|
3
3
|
TEXT = "text",
|
|
4
4
|
LABEL = "label",
|
|
5
|
-
STATUS = "status"
|
|
5
|
+
STATUS = "status",
|
|
6
|
+
CREDENTIAL_CARD = "credentialCard"
|
|
6
7
|
}
|
|
7
8
|
export type ColumnHeader<T> = {
|
|
8
9
|
accessor: AccessorFn<T> | DeepKeys<T>;
|
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.95+bf8e8f0",
|
|
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.95+bf8e8f0",
|
|
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": "bf8e8f013d21b1c4ce56e42b0c163bbac4269f21"
|
|
46
46
|
}
|