@sphereon/ui-components.ssi-react 0.2.1-next.5 → 0.2.1-next.72
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/IconButton/index.js +2 -22
- 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 +1 -2
- package/dist/components/lists/DropDownListItem/index.js +3 -11
- package/dist/components/views/CredentialIssuanceWizardView/index.js +4 -6
- package/dist/components/views/CredentialViewItem/index.js +2 -5
- package/dist/components/views/FormView/index.js +2 -2
- 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 +21 -25
- package/dist/components/views/SSITableView/index.js +3 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +7 -1
- package/dist/styles/components/components/CredentialIssuanceWizardView/index.js +3 -3
- 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/ProgressStepIndicator/index.js +2 -2
- package/dist/styles/components/components/SSITableView/index.js +5 -5
- package/dist/styles/components/components/SecondaryButton/index.js +2 -1
- package/dist/styles/components/components/index.d.ts +1 -0
- package/dist/styles/components/components/index.js +1 -0
- 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 +3 -3
|
@@ -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
|
`;
|
|
@@ -1,7 +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
|
|
4
|
+
import { SSITextH2Css } from '../../../css';
|
|
5
5
|
export const ProgressStepIndicatorContainerStyled = styled.div `
|
|
6
6
|
background-color: ${backgroundColors.primaryLight};
|
|
7
7
|
border-radius: 24px;
|
|
@@ -37,7 +37,7 @@ export const ProgressStepIndicatorSpacerLineCellStyled = styled.div `
|
|
|
37
37
|
`;
|
|
38
38
|
export const ProgressStepIndicatorTitleTextStyled = styled(SSITextH1SemiBoldStyled) `
|
|
39
39
|
word-break: break-word;
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
gap: 4px;
|
|
@@ -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};
|
|
@@ -28,6 +28,7 @@ export const SecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled)
|
|
|
28
28
|
mask-composite: exclude;
|
|
29
29
|
}
|
|
30
30
|
`;
|
|
31
|
-
export const SecondaryButtonCaptionStyled = styled(SSITextH3Styled) `
|
|
31
|
+
export const SecondaryButtonCaptionStyled = styled(SSITextH3Styled) `
|
|
32
|
+
// FIXME H3 vs H2 mobile
|
|
32
33
|
${gradient100TextCss}
|
|
33
34
|
`;
|
|
@@ -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
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-next.
|
|
4
|
+
"version": "0.2.1-next.72+c957534",
|
|
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-next.
|
|
43
|
+
"@sphereon/ui-components.core": "0.2.1-next.72+c957534",
|
|
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": "c9575341748aa22248c83f43b77ce04cc11005c0"
|
|
63
63
|
}
|