@sphereon/ui-components.ssi-react 0.2.1-unstable.9 → 0.2.1-unstable.92
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/LICENSE +201 -636
- package/dist/components/assets/icons/CopyIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/CopyIcon/index.js +7 -0
- package/dist/components/assets/icons/PencilIcon/index.d.ts +8 -0
- package/dist/components/assets/icons/PencilIcon/index.js +7 -0
- package/dist/components/assets/icons/ViewIcon/index.d.ts +9 -0
- package/dist/components/assets/icons/ViewIcon/index.js +7 -0
- package/dist/components/buttons/{SSIIconButton → IconButton}/index.d.ts +3 -3
- package/dist/components/buttons/IconButton/index.js +17 -0
- package/dist/components/buttons/{SSISecondaryButton → PrimaryButton}/index.d.ts +3 -3
- package/dist/components/buttons/{SSIPrimaryButton → PrimaryButton}/index.js +5 -4
- package/dist/components/buttons/{SSIPrimaryButton → SecondaryButton}/index.d.ts +3 -3
- package/dist/components/buttons/{SSISecondaryButton → SecondaryButton}/index.js +5 -4
- package/dist/components/fields/ComboBox/index.js +1 -1
- package/dist/components/fields/DragAndDropBox/index.js +2 -2
- package/dist/components/fields/FileSelection/index.js +2 -3
- package/dist/components/fields/JSONForms/PassportPhotoControl/index.js +3 -6
- package/dist/components/fields/SSICheckbox/index.js +1 -1
- package/dist/components/fields/SSIHoverText/index.js +1 -1
- package/dist/components/fields/TextInputField/index.js +2 -3
- package/dist/components/indicators/ProgressStepIndicator/index.js +5 -4
- package/dist/components/lists/DropDownList/index.js +2 -2
- package/dist/components/lists/DropDownListItem/index.js +3 -11
- package/dist/components/views/CredentialIssuanceWizardView/index.js +7 -10
- package/dist/components/views/CredentialViewItem/index.js +2 -5
- package/dist/components/views/FormView/index.d.ts +20 -0
- package/dist/components/views/FormView/index.js +12 -0
- package/dist/components/views/{CredentialIssuanceWizardView → FormView}/styles.css +24 -6
- package/dist/components/views/InformationRequestView/index.d.ts +14 -0
- package/dist/components/views/InformationRequestView/index.js +14 -0
- package/dist/components/views/JSONDataView/index.js +23 -27
- package/dist/components/views/SSITableView/SSITableViewHeader/index.js +3 -3
- package/dist/components/views/SSITableView/index.js +3 -3
- package/dist/index.d.ts +12 -6
- package/dist/index.js +11 -4
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.js +3 -3
- package/dist/styles/components/components/IconButton/index.d.ts +1 -0
- package/dist/styles/components/components/{SSIIconButton → IconButton}/index.js +1 -1
- package/dist/styles/components/components/InformationRequestView/index.d.ts +16 -0
- package/dist/styles/components/components/InformationRequestView/index.js +86 -0
- package/dist/styles/components/components/PassportPhotoControl/index.js +5 -5
- package/dist/styles/components/components/PrimaryButton/index.d.ts +1 -0
- package/dist/styles/components/components/{SSIPrimaryButton → PrimaryButton}/index.js +3 -2
- package/dist/styles/components/components/ProgressStepIndicator/index.d.ts +1 -0
- package/dist/styles/components/components/ProgressStepIndicator/index.js +10 -0
- package/dist/styles/components/components/SSITableView/index.js +5 -5
- package/dist/styles/components/components/SecondaryButton/index.d.ts +2 -0
- package/dist/styles/components/components/{SSISecondaryButton → SecondaryButton}/index.js +5 -3
- package/dist/styles/components/components/index.d.ts +4 -3
- package/dist/styles/components/components/index.js +4 -3
- package/dist/types/indicator/index.d.ts +1 -0
- package/dist/types/view/index.d.ts +4 -5
- package/dist/utils/IconUtils.d.ts +3 -0
- package/dist/utils/IconUtils.js +32 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +7 -7
- package/dist/components/buttons/SSIIconButton/index.js +0 -29
- package/dist/styles/components/components/SSIIconButton/index.d.ts +0 -1
- package/dist/styles/components/components/SSIPrimaryButton/index.d.ts +0 -1
- package/dist/styles/components/components/SSISecondaryButton/index.d.ts +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
3
|
import { JSONTree } from 'react-json-tree';
|
|
4
|
-
import { backgroundColors, calculateAspectRatio, fontColors, isBase64ImageUri, isBoolean, Localization, parseToBoolean } from '@sphereon/ui-components.core';
|
|
4
|
+
import { backgroundColors, calculateAspectRatio, fontColors, isBase64ImageUri, isBoolean, Localization, parseToBoolean, } from '@sphereon/ui-components.core';
|
|
5
5
|
import SSICheckmarkBadge from '../../assets/badges/SSICheckmarkBadge';
|
|
6
6
|
import SSIExclamationMarkBadge from '../../assets/badges/SSIExclamationMarkBadge';
|
|
7
7
|
import { getImageSize } from '../../../utils';
|
|
8
|
-
import { JSONDataViewContainerStyled as Container, JSONDataViewHeaderContainerStyled as HeaderContainer, JSONDataViewColumnHeaderCaptionStyled as ColumnHeaderCaption, JSONDataViewDataContainerCaptionStyled as ContainerCaption, JSONDataViewDataImageValueStyled as ImageValue, JSONDataViewDataTextValueStyled as TextValue, JSONDataViewDataLabelStyled as Label } from '../../../styles';
|
|
8
|
+
import { JSONDataViewContainerStyled as Container, JSONDataViewHeaderContainerStyled as HeaderContainer, JSONDataViewColumnHeaderCaptionStyled as ColumnHeaderCaption, JSONDataViewDataContainerCaptionStyled as ContainerCaption, JSONDataViewDataImageValueStyled as ImageValue, JSONDataViewDataTextValueStyled as TextValue, JSONDataViewDataLabelStyled as Label, } from '../../../styles';
|
|
9
9
|
const JSONDataView = (props) => {
|
|
10
10
|
const { showHeader = true, shouldExpandNodeInitially = () => false } = props;
|
|
11
11
|
const expandNodeInitially = typeof shouldExpandNodeInitially === 'function' ? shouldExpandNodeInitially : () => shouldExpandNodeInitially;
|
|
@@ -16,8 +16,8 @@ const JSONDataView = (props) => {
|
|
|
16
16
|
return data;
|
|
17
17
|
}
|
|
18
18
|
const processedData = {};
|
|
19
|
-
await Promise.all(Object.entries(data).map(async ([key, value]) => {
|
|
20
|
-
if (typeof value === 'object'
|
|
19
|
+
await Promise.all(Object.entries(data).filter(([_key, value]) => !!value).map(async ([key, value]) => {
|
|
20
|
+
if (typeof value === 'object') {
|
|
21
21
|
processedData[key] = await preprocessData(value);
|
|
22
22
|
}
|
|
23
23
|
else if (typeof value === 'string' && isBase64ImageUri(value)) {
|
|
@@ -28,8 +28,8 @@ const JSONDataView = (props) => {
|
|
|
28
28
|
dimensions: {
|
|
29
29
|
height: dimensions.height,
|
|
30
30
|
width: dimensions.width,
|
|
31
|
-
aspectRatio: calculateAspectRatio(dimensions.width, dimensions.height)
|
|
32
|
-
}
|
|
31
|
+
aspectRatio: calculateAspectRatio(dimensions.width, dimensions.height),
|
|
32
|
+
},
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
@@ -48,14 +48,12 @@ const JSONDataView = (props) => {
|
|
|
48
48
|
if (isBoolean(value)) {
|
|
49
49
|
return parseToBoolean(value) ? _jsx(SSICheckmarkBadge, {}) : _jsx(SSIExclamationMarkBadge, {});
|
|
50
50
|
}
|
|
51
|
-
if (typeof value === 'object'
|
|
52
|
-
&& value !== null
|
|
53
|
-
&& 'uri' in value) {
|
|
51
|
+
if (typeof value === 'object' && value !== null && 'uri' in value) {
|
|
54
52
|
const imageData = value;
|
|
55
|
-
return _jsx(ImageValue, { style: {
|
|
53
|
+
return (_jsx(ImageValue, { style: {
|
|
56
54
|
aspectRatio: imageData.dimensions?.aspectRatio,
|
|
57
55
|
backgroundImage: `url(${imageData.uri})`,
|
|
58
|
-
} });
|
|
56
|
+
} }));
|
|
59
57
|
}
|
|
60
58
|
return _jsx(TextValue, { children: value?.toString() });
|
|
61
59
|
};
|
|
@@ -65,21 +63,19 @@ const JSONDataView = (props) => {
|
|
|
65
63
|
const isCustomNode = (value) => {
|
|
66
64
|
return typeof value === 'object' && value !== null && 'uri' in value && 'dimensions' in value;
|
|
67
65
|
};
|
|
68
|
-
return (_jsxs(Container, { children: [showHeader &&
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
},
|
|
83
|
-
}, hideRoot: true, shouldExpandNodeInitially: expandNodeInitially, getItemString: getItemString, labelRenderer: labelRenderer, valueRenderer: valueRenderer, isCustomNode: isCustomNode, data: data }) })] }));
|
|
66
|
+
return (_jsxs(Container, { children: [showHeader && (_jsxs(HeaderContainer, { children: [_jsx(ColumnHeaderCaption, { children: Localization.translate('json_data_view_attribute_column_label') }), _jsx(ColumnHeaderCaption, { children: Localization.translate('json_data_view_value_column_label') })] })), _jsx(ContainerCaption, { onMouseEnter: () => setFocused(true), onMouseLeave: () => setFocused(false), children: data && (_jsx(JSONTree, { theme: {
|
|
67
|
+
base0D: fontColors.dark,
|
|
68
|
+
tree: {
|
|
69
|
+
margin: 0,
|
|
70
|
+
backgroundColor: backgroundColors.primaryLight,
|
|
71
|
+
},
|
|
72
|
+
arrowContainer: {
|
|
73
|
+
paddingRight: 6,
|
|
74
|
+
},
|
|
75
|
+
arrow: {
|
|
76
|
+
fontSize: 10,
|
|
77
|
+
...(!focused && { display: 'none' }),
|
|
78
|
+
},
|
|
79
|
+
}, hideRoot: true, shouldExpandNodeInitially: expandNodeInitially, getItemString: getItemString, labelRenderer: labelRenderer, valueRenderer: valueRenderer, isCustomNode: isCustomNode, data: data })) })] }));
|
|
84
80
|
};
|
|
85
81
|
export default JSONDataView;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ButtonIcon, Localization, statusColors } from '@sphereon/ui-components.core';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import IconButton from '../../../buttons/IconButton';
|
|
4
|
+
import PrimaryButton from '../../../buttons/PrimaryButton';
|
|
5
5
|
import { SSITableViewHeaderActionsContainerStyled as ActionsContainer, SSITableViewHeaderContainerStyled as Container, SSITableViewHeaderContentContainerStyled as ContentContainer, SSITextH3Styled as FilterCaption, SSITableViewHeaderFilterContainerStyled as FilterContainer, TableViewHeaderStaticActionsContainerStyled as StaticActionsContainer, } from '../../../../styles';
|
|
6
6
|
const SSITableViewHeader = (props) => {
|
|
7
7
|
const { enableFiltering = false, enableMostRecent = false, actions = [], onDelete } = props;
|
|
8
8
|
const onDeleteClick = async () => {
|
|
9
9
|
await onDelete?.();
|
|
10
10
|
};
|
|
11
|
-
return (_jsxs(Container, { children: [_jsx(StaticActionsContainer, { children: onDelete && (_jsx(
|
|
11
|
+
return (_jsxs(Container, { children: [_jsx(StaticActionsContainer, { children: onDelete && (_jsx(IconButton, { caption: Localization.translate('action_delete_label'), icon: ButtonIcon.DELETE, iconColor: statusColors.error, onClick: onDeleteClick })) }), _jsx(ContentContainer, { style: { width: 'fit-content' }, children: _jsxs(ActionsContainer, { children: [enableFiltering && (_jsxs(FilterContainer, { children: [_jsx(IconButton, { icon: ButtonIcon.FILTER, onClick: async () => console.log('add filter clicked') }), _jsx(FilterCaption, { children: Localization.translate('action_filter_caption') })] })), actions.map((action, index) => (_jsx(PrimaryButton, { caption: action.caption, onClick: action.onClick, icon: action.icon }, index)))] }) })] }));
|
|
12
12
|
};
|
|
13
13
|
export default SSITableViewHeader;
|
|
@@ -9,10 +9,10 @@ import SSIStatusLabel from '../../labels/SSIStatusLabel';
|
|
|
9
9
|
import CredentialMiniCardView from '../CredentialMiniCardView';
|
|
10
10
|
import DropDownList from '../../lists/DropDownList';
|
|
11
11
|
import { SSITableViewCellContainerStyled as CellContainer, SSITableViewContainerStyled as Container, SSITableViewHeaderCellContainerStyled as HeaderCellContainer, SSITableViewLabelCellStyled as LabelCell, SSITableViewResultCountCaptionStyled as ResultCountCaption, SSITableViewHeaderRowContainerStyled as HeaderRowContainer, SSITableViewRowContainerStyled as RowContainer, SSITableViewTableContainerStyled as TableContainer, TableViewRowSelectionCheckboxContainerStyled as RowSelectionCheckboxContainer, } from '../../../styles';
|
|
12
|
-
import { TableCellType } from '../../../types';
|
|
12
|
+
import { TableCellType, } from '../../../types';
|
|
13
13
|
import PaginationControls from './PaginationControls';
|
|
14
|
-
import ComboBox from
|
|
15
|
-
import CredentialDetailsView from
|
|
14
|
+
import ComboBox from '../../fields/ComboBox';
|
|
15
|
+
import CredentialDetailsView from '../CredentialViewItem';
|
|
16
16
|
function IndeterminateCheckbox({ indeterminate, className = '', ...rest }) {
|
|
17
17
|
const ref = React.useRef(null);
|
|
18
18
|
React.useEffect(() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
|
|
2
2
|
import SSIStatusLabel from './components/labels/SSIStatusLabel';
|
|
3
3
|
import SSICredentialCardView from './components/views/SSICredentialCardView';
|
|
4
|
-
import CredentialMiniCardView from './components/views/CredentialMiniCardView';
|
|
5
|
-
import { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
|
|
4
|
+
import CredentialMiniCardView, { CredentialMiniCardViewProps } from './components/views/CredentialMiniCardView';
|
|
6
5
|
import SSICheckmarkBadge from './components/assets/badges/SSICheckmarkBadge';
|
|
7
6
|
import SSIExclamationMarkBadge from './components/assets/badges/SSIExclamationMarkBadge';
|
|
8
7
|
import SSIPlaceholderLogo from './components/assets/logos/SSIPlaceholderLogo';
|
|
@@ -11,15 +10,15 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
|
|
|
11
10
|
import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
|
|
12
11
|
import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
13
12
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
14
|
-
import
|
|
15
|
-
import
|
|
13
|
+
import IconButton from './components/buttons/IconButton';
|
|
14
|
+
import PrimaryButton from './components/buttons/PrimaryButton';
|
|
16
15
|
import DropDownList from './components/lists/DropDownList';
|
|
17
16
|
import SSITableView from './components/views/SSITableView';
|
|
18
17
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
19
18
|
import SSITabView from './components/views/SSITabView';
|
|
20
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
21
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
22
|
-
import
|
|
21
|
+
import SecondaryButton from './components/buttons/SecondaryButton';
|
|
23
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
24
23
|
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
25
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
@@ -28,6 +27,11 @@ import StepMarker from './components/assets/markers/StepMarker';
|
|
|
28
27
|
import DocumentIcon from './components/assets/icons/DocumentIcon';
|
|
29
28
|
import CrossIcon from './components/assets/icons/CrossIcon';
|
|
30
29
|
import ImageIcon from './components/assets/icons/ImageIcon';
|
|
30
|
+
import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
|
|
31
|
+
import PencilIcon from './components/assets/icons/PencilIcon';
|
|
32
|
+
import ViewIcon from './components/assets/icons/ViewIcon';
|
|
33
|
+
import CopyIcon from './components/assets/icons/CopyIcon';
|
|
34
|
+
import DeleteIcon from './components/assets/icons/DeleteIcon';
|
|
31
35
|
import FileSelection from './components/fields/FileSelection';
|
|
32
36
|
import ComboBox from './components/fields/ComboBox';
|
|
33
37
|
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
@@ -40,9 +44,11 @@ import CredentialViewItem from './components/views/CredentialViewItem';
|
|
|
40
44
|
import JSONDataView from './components/views/JSONDataView';
|
|
41
45
|
import TextInputField from './components/fields/TextInputField';
|
|
42
46
|
import WarningImage from './components/assets/images/WarningImage';
|
|
47
|
+
import FormView from './components/views/FormView';
|
|
48
|
+
import InformationRequestView from './components/views/InformationRequestView';
|
|
43
49
|
import { Row } from '@tanstack/react-table';
|
|
44
50
|
export * from './styles/fonts';
|
|
45
51
|
export * from './types';
|
|
46
52
|
export * from './helpers';
|
|
47
53
|
export * from './utils';
|
|
48
|
-
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel,
|
|
54
|
+
export { SSICredentialCardView, CredentialMiniCardView, CredentialMiniCardViewProps, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, Row, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
package/dist/index.js
CHANGED
|
@@ -10,15 +10,15 @@ import SSIAddIcon from './components/assets/icons/SSIAddIcon';
|
|
|
10
10
|
import SSIFilterIcon from './components/assets/icons/SSIFilterIcon';
|
|
11
11
|
import SSIArrowDownIcon from './components/assets/icons/SSIArrowDownIcon';
|
|
12
12
|
import SSITypeLabel from './components/labels/SSITypeLabel';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
13
|
+
import IconButton from './components/buttons/IconButton';
|
|
14
|
+
import PrimaryButton from './components/buttons/PrimaryButton';
|
|
15
15
|
import DropDownList from './components/lists/DropDownList';
|
|
16
16
|
import SSITableView from './components/views/SSITableView';
|
|
17
17
|
import SSITableViewHeader from './components/views/SSITableView/SSITableViewHeader';
|
|
18
18
|
import SSITabView from './components/views/SSITabView';
|
|
19
19
|
import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
|
|
20
20
|
import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
|
|
21
|
-
import
|
|
21
|
+
import SecondaryButton from './components/buttons/SecondaryButton';
|
|
22
22
|
import SSICheckbox from './components/fields/SSICheckbox';
|
|
23
23
|
import SSIActivityIndicator from './components/indicators/SSIActivityIndicator';
|
|
24
24
|
import SSIHoverText from './components/fields/SSIHoverText';
|
|
@@ -27,6 +27,11 @@ import StepMarker from './components/assets/markers/StepMarker';
|
|
|
27
27
|
import DocumentIcon from './components/assets/icons/DocumentIcon';
|
|
28
28
|
import CrossIcon from './components/assets/icons/CrossIcon';
|
|
29
29
|
import ImageIcon from './components/assets/icons/ImageIcon';
|
|
30
|
+
import MeatBallsIcon from './components/assets/icons/MeatBallsIcon';
|
|
31
|
+
import PencilIcon from './components/assets/icons/PencilIcon';
|
|
32
|
+
import ViewIcon from './components/assets/icons/ViewIcon';
|
|
33
|
+
import CopyIcon from './components/assets/icons/CopyIcon';
|
|
34
|
+
import DeleteIcon from './components/assets/icons/DeleteIcon';
|
|
30
35
|
import FileSelection from './components/fields/FileSelection';
|
|
31
36
|
import ComboBox from './components/fields/ComboBox';
|
|
32
37
|
import DragAndDropBox from './components/fields/DragAndDropBox';
|
|
@@ -39,8 +44,10 @@ import CredentialViewItem from './components/views/CredentialViewItem';
|
|
|
39
44
|
import JSONDataView from './components/views/JSONDataView';
|
|
40
45
|
import TextInputField from './components/fields/TextInputField';
|
|
41
46
|
import WarningImage from './components/assets/images/WarningImage';
|
|
47
|
+
import FormView from './components/views/FormView';
|
|
48
|
+
import InformationRequestView from './components/views/InformationRequestView';
|
|
42
49
|
export * from './styles/fonts';
|
|
43
50
|
export * from './types';
|
|
44
51
|
export * from './helpers';
|
|
45
52
|
export * from './utils';
|
|
46
|
-
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel,
|
|
53
|
+
export { SSICredentialCardView, CredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, IconButton, PrimaryButton, SecondaryButton, DropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIActivityIndicator, SSIHoverText, StepMarker, ProgressStepIndicator, PaginationControls, PaginationControlsProps, DocumentIcon, CrossIcon, ImageIcon, MeatBallsIcon, PencilIcon, ViewIcon, CopyIcon, DeleteIcon, FileSelection, ComboBox, DragAndDropBox, PersonPlaceholder, PassportPhotoControl, passportPhotoControlTester, CredentialIssuanceWizardView, CredentialViewItem, JSONDataView, TextInputField, WarningImage, FormView, InformationRequestView, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { backgroundColors, borderColors, SSIRoundedEdgesCss } from
|
|
3
|
-
import { SSITextH1SemiBoldStyled, SSITextH2Styled } from
|
|
2
|
+
import { backgroundColors, borderColors, SSIRoundedEdgesCss } from '@sphereon/ui-components.core';
|
|
3
|
+
import { SSITextH1SemiBoldStyled, SSITextH2Styled } from '../../../fonts';
|
|
4
4
|
export const CredentialIssuanceWizardViewContainerStyled = styled.div `
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
@@ -41,7 +41,7 @@ export const CredentialIssuanceWizardViewEvidenceContentContainerStyled = styled
|
|
|
41
41
|
gap: 24px;
|
|
42
42
|
`;
|
|
43
43
|
export const CredentialIssuanceWizardViewEvidenceTitleContainerStyled = styled.div `
|
|
44
|
-
display: flex;
|
|
44
|
+
display: flex;
|
|
45
45
|
flex-direction: row;
|
|
46
46
|
gap: 4px;
|
|
47
47
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const IconButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const InformationRequestViewContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const InformationRequestViewContentContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const InformationRequestViewHeaderContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const InformationRequestViewPurposeContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const InformationRequestViewTitleStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const InformationRequestViewParagraphStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const InformationRequestViewDescriptionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const InformationRequestViewSubSectionStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export declare const InformationRequestViewFormContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
+
export declare const InformationRequestViewFormTitleStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
+
export declare const InformationRequestViewFormDetailsContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const InformationRequestViewLogoContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const InformationRequestViewRPCardContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const InformationRequestViewCardTextContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const InformationRequestViewCardTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
|
+
export declare const InformationRequestViewCardSubtitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SSITextH1Styled, SSITextH2Styled, SSITextH3Styled, SSITextH4Styled } from '../../../fonts';
|
|
3
|
+
export const InformationRequestViewContainerStyled = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 24px;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
padding: 24px;
|
|
9
|
+
`;
|
|
10
|
+
export const InformationRequestViewContentContainerStyled = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
width: 500px; /* FIXME */
|
|
15
|
+
margin-right: auto;
|
|
16
|
+
`;
|
|
17
|
+
export const InformationRequestViewHeaderContainerStyled = styled.div `
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: 8px;
|
|
21
|
+
`;
|
|
22
|
+
export const InformationRequestViewPurposeContainerStyled = styled.div `
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
gap: 16px;
|
|
26
|
+
padding: 16px;
|
|
27
|
+
border: 1px solid #e0e0e0;
|
|
28
|
+
border-radius: 8px;
|
|
29
|
+
background-color: #fbfbfb;
|
|
30
|
+
`;
|
|
31
|
+
export const InformationRequestViewTitleStyled = styled(SSITextH1Styled) `
|
|
32
|
+
text-align: left;
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
`;
|
|
35
|
+
export const InformationRequestViewParagraphStyled = styled(SSITextH2Styled) `
|
|
36
|
+
text-align: left;
|
|
37
|
+
font-weight: bold;
|
|
38
|
+
`;
|
|
39
|
+
export const InformationRequestViewDescriptionStyled = styled(SSITextH3Styled) `
|
|
40
|
+
text-align: left;
|
|
41
|
+
font-weight: normal;
|
|
42
|
+
`;
|
|
43
|
+
export const InformationRequestViewSubSectionStyled = styled(SSITextH3Styled) `
|
|
44
|
+
text-align: left;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
`;
|
|
47
|
+
export const InformationRequestViewFormContainerStyled = styled.div `
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
gap: 16px;
|
|
51
|
+
padding: 16px;
|
|
52
|
+
border: 1px solid #e0e0e0;
|
|
53
|
+
border-radius: 8px;
|
|
54
|
+
background-color: #fbfbfb;
|
|
55
|
+
`;
|
|
56
|
+
export const InformationRequestViewFormTitleStyled = styled(SSITextH2Styled) `
|
|
57
|
+
text-align: left;
|
|
58
|
+
`;
|
|
59
|
+
export const InformationRequestViewFormDetailsContainerStyled = styled.div `
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
`;
|
|
64
|
+
export const InformationRequestViewLogoContainerStyled = styled.div `
|
|
65
|
+
margin: 0 12px 0 9px;
|
|
66
|
+
`;
|
|
67
|
+
export const InformationRequestViewRPCardContainerStyled = styled.div `
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: 16px;
|
|
72
|
+
padding: 16px;
|
|
73
|
+
border: 1px solid #e0e0e0;
|
|
74
|
+
border-radius: 8px;
|
|
75
|
+
background-color: #ffffff;
|
|
76
|
+
`;
|
|
77
|
+
export const InformationRequestViewCardTextContainer = styled.div `
|
|
78
|
+
flex-grow: 1;
|
|
79
|
+
`;
|
|
80
|
+
export const InformationRequestViewCardTitle = styled(SSITextH4Styled) `
|
|
81
|
+
font-weight: bold;
|
|
82
|
+
`;
|
|
83
|
+
export const InformationRequestViewCardSubtitle = styled(SSITextH4Styled) `
|
|
84
|
+
font-weight: normal;
|
|
85
|
+
color: #555;
|
|
86
|
+
`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { backgroundColors, borderColors } from '@sphereon/ui-components.core';
|
|
3
3
|
export const PassportPhotoControlContainerStyled = styled.div `
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
6
|
gap: 12px;
|
|
7
7
|
`;
|
|
8
8
|
export const PassportPhotoControlDragAndDropBoxContainerStyled = styled.div `
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: row;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
11
|
gap: 10px;
|
|
12
12
|
`;
|
|
13
13
|
export const PassportPhotoControlPassportPhotoContainerStyled = styled.div `
|
|
@@ -23,5 +23,5 @@ export const PassportPhotoControlPassportPhotoContainerStyled = styled.div `
|
|
|
23
23
|
`;
|
|
24
24
|
export const PassportPhotoControlPassportPhotoImageStyled = styled.img `
|
|
25
25
|
width: 100%;
|
|
26
|
-
height: auto
|
|
26
|
+
height: auto;
|
|
27
27
|
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PrimaryButtonContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { SSIRoundedContainerStyled } from '../../containers';
|
|
3
3
|
import { gradientColors } from '../../../colors';
|
|
4
|
-
export const
|
|
4
|
+
export const PrimaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
5
5
|
background: ${gradientColors['100']};
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
justify-content: center;
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: 8px;
|
|
11
|
-
padding: 9px
|
|
11
|
+
padding: 9px;
|
|
12
12
|
cursor: pointer;
|
|
13
|
+
width: 180px;
|
|
13
14
|
`;
|
|
@@ -5,4 +5,5 @@ export declare const ProgressStepIndicatorStepTextCellStyled: import("styled-com
|
|
|
5
5
|
export declare const ProgressStepIndicatorSpacerLineCellStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
6
|
export declare const ProgressStepIndicatorTitleTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
7
|
export declare const ProgressStepIndicatorDescriptionTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const ProgressStepIndicatorOptionalTextStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
9
|
export declare const ProgressStepIndicatorStepLineStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { backgroundColors, borderColors, elementColors, fontColors } from '@sphereon/ui-components.core';
|
|
3
3
|
import { SSITextH1SemiBoldStyled, SSITextH3Styled } from '../../../fonts';
|
|
4
|
+
import { SSITextH2Css } from '../../../css';
|
|
4
5
|
export const ProgressStepIndicatorContainerStyled = styled.div `
|
|
5
6
|
background-color: ${backgroundColors.primaryLight};
|
|
6
7
|
border-radius: 24px;
|
|
@@ -36,11 +37,20 @@ export const ProgressStepIndicatorSpacerLineCellStyled = styled.div `
|
|
|
36
37
|
`;
|
|
37
38
|
export const ProgressStepIndicatorTitleTextStyled = styled(SSITextH1SemiBoldStyled) `
|
|
38
39
|
word-break: break-word;
|
|
40
|
+
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
gap: 4px;
|
|
39
44
|
`;
|
|
40
45
|
export const ProgressStepIndicatorDescriptionTextStyled = styled(SSITextH3Styled) `
|
|
41
46
|
word-break: break-word;
|
|
42
47
|
color: ${fontColors.lightGrey};
|
|
43
48
|
`;
|
|
49
|
+
export const ProgressStepIndicatorOptionalTextStyled = styled.div `
|
|
50
|
+
${SSITextH2Css};
|
|
51
|
+
line-height: unset;
|
|
52
|
+
font-style: italic;
|
|
53
|
+
`;
|
|
44
54
|
export const ProgressStepIndicatorStepLineStyled = styled.div `
|
|
45
55
|
width: 4px;
|
|
46
56
|
display: flex;
|
|
@@ -27,13 +27,13 @@ export const SSITableViewRowContainerStyled = styled.tr `
|
|
|
27
27
|
&:not(:last-child) {
|
|
28
28
|
border-bottom: 1px solid ${borderColors.lightGrey};
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
${props => props.enableHover &&
|
|
32
32
|
css `
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
&:hover {
|
|
34
|
+
background-color: #ececec; // TODO
|
|
35
|
+
}
|
|
36
|
+
`}
|
|
37
37
|
`;
|
|
38
38
|
export const SSITableViewCellContainerStyled = styled.td `
|
|
39
39
|
${SSITextH3Css};
|
|
@@ -2,15 +2,16 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { SSIRoundedContainerStyled } from '../../containers';
|
|
3
3
|
import { SSITextH3Styled } from '../../../fonts';
|
|
4
4
|
import { gradient100TextCss } from '../../../css';
|
|
5
|
-
export const
|
|
5
|
+
export const SecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
|
|
6
6
|
position: relative;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
justify-content: center;
|
|
10
10
|
align-items: center;
|
|
11
11
|
gap: 8px;
|
|
12
|
-
padding: 9px
|
|
12
|
+
padding: 9px;
|
|
13
13
|
cursor: pointer;
|
|
14
|
+
width: 180px;
|
|
14
15
|
|
|
15
16
|
&::before {
|
|
16
17
|
content: '';
|
|
@@ -27,6 +28,7 @@ export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyle
|
|
|
27
28
|
mask-composite: exclude;
|
|
28
29
|
}
|
|
29
30
|
`;
|
|
30
|
-
export const
|
|
31
|
+
export const SecondaryButtonCaptionStyled = styled(SSITextH3Styled) `
|
|
32
|
+
// FIXME H3 vs H2 mobile
|
|
31
33
|
${gradient100TextCss}
|
|
32
34
|
`;
|
|
@@ -3,9 +3,9 @@ export * from './DropDownListItem';
|
|
|
3
3
|
export * from './SSICredentialCardView';
|
|
4
4
|
export * from './SSICredentialMiniCardView';
|
|
5
5
|
export * from './SSIStatusLabel';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
6
|
+
export * from './PrimaryButton';
|
|
7
|
+
export * from './SecondaryButton';
|
|
8
|
+
export * from './IconButton';
|
|
9
9
|
export * from './DropDownList';
|
|
10
10
|
export * from './SSITypeLabel';
|
|
11
11
|
export * from './SSITableViewHeader';
|
|
@@ -27,3 +27,4 @@ export * from './Pagination';
|
|
|
27
27
|
export * from './CredentialViewItem';
|
|
28
28
|
export * from './JSONDataView';
|
|
29
29
|
export * from './TextInputField';
|
|
30
|
+
export * from './InformationRequestView';
|
|
@@ -3,9 +3,9 @@ export * from './DropDownListItem';
|
|
|
3
3
|
export * from './SSICredentialCardView';
|
|
4
4
|
export * from './SSICredentialMiniCardView';
|
|
5
5
|
export * from './SSIStatusLabel';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
6
|
+
export * from './PrimaryButton';
|
|
7
|
+
export * from './SecondaryButton';
|
|
8
|
+
export * from './IconButton';
|
|
9
9
|
export * from './DropDownList';
|
|
10
10
|
export * from './SSITypeLabel';
|
|
11
11
|
export * from './SSITableViewHeader';
|
|
@@ -27,3 +27,4 @@ export * from './Pagination';
|
|
|
27
27
|
export * from './CredentialViewItem';
|
|
28
28
|
export * from './JSONDataView';
|
|
29
29
|
export * from './TextInputField';
|
|
30
|
+
export * from './InformationRequestView';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { JsonFormsCore, JsonSchema, UISchemaElement } from '@jsonforms/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
errors?: ErrorObject[];
|
|
2
|
+
export type JSONFormState<DataType = any> = Pick<JsonFormsCore, 'errors'> & {
|
|
3
|
+
data: DataType;
|
|
4
|
+
};
|
|
5
|
+
export type CredentialFormData = JSONFormState<Record<any, any>> & {
|
|
7
6
|
evidence: Array<File>;
|
|
8
7
|
};
|
|
9
8
|
export type CredentialFormSelectionType = {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonIcon, fontColors } from '@sphereon/ui-components.core';
|
|
3
|
+
import SSIAddIcon from '../components/assets/icons/SSIAddIcon';
|
|
4
|
+
import SSIArrowDownIcon from '../components/assets/icons/SSIArrowDownIcon';
|
|
5
|
+
import MeatBallsIcon from '../components/assets/icons/MeatBallsIcon';
|
|
6
|
+
import CopyIcon from '../components/assets/icons/CopyIcon';
|
|
7
|
+
import DeleteIcon from '../components/assets/icons/DeleteIcon';
|
|
8
|
+
import SSIFilterIcon from '../components/assets/icons/SSIFilterIcon';
|
|
9
|
+
import PencilIcon from '../components/assets/icons/PencilIcon';
|
|
10
|
+
import ViewIcon from '../components/assets/icons/ViewIcon';
|
|
11
|
+
export const getIcon = (icon, color = fontColors.dark) => {
|
|
12
|
+
switch (icon) {
|
|
13
|
+
case ButtonIcon.ADD:
|
|
14
|
+
return _jsx(SSIAddIcon, { color: color });
|
|
15
|
+
case ButtonIcon.ARROW_DOWN:
|
|
16
|
+
return _jsx(SSIArrowDownIcon, { color: color });
|
|
17
|
+
case ButtonIcon.MEATBALLS:
|
|
18
|
+
return _jsx(MeatBallsIcon, { color: color });
|
|
19
|
+
case ButtonIcon.EDIT:
|
|
20
|
+
return _jsx(PencilIcon, { color: color });
|
|
21
|
+
case ButtonIcon.COPY:
|
|
22
|
+
return _jsx(CopyIcon, { color: color });
|
|
23
|
+
case ButtonIcon.DELETE:
|
|
24
|
+
return _jsx(DeleteIcon, { color: color });
|
|
25
|
+
case ButtonIcon.FILTER:
|
|
26
|
+
return _jsx(SSIFilterIcon, { color: color });
|
|
27
|
+
case ButtonIcon.VIEW:
|
|
28
|
+
return _jsx(ViewIcon, { color: color });
|
|
29
|
+
default:
|
|
30
|
+
return _jsx("div", {});
|
|
31
|
+
}
|
|
32
|
+
};
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED