@sphereon/ui-components.ssi-react 0.1.3-unstable.6 → 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/@config/toasts/index.d.ts +7 -0
- package/dist/@config/toasts/index.js +13 -0
- package/dist/components/assets/badges/SSICheckmarkBadge/index.js +1 -1
- package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +1 -1
- package/dist/components/assets/icons/SSIAddIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +3 -3
- package/dist/components/assets/icons/SSIProfileIcon/index.d.ts +1 -1
- package/dist/components/assets/icons/SSIProfileIcon/index.js +1 -2
- package/dist/components/assets/logos/SSILogo/index.d.ts +1 -1
- package/dist/components/assets/logos/SSILogo/index.js +1 -1
- package/dist/components/buttons/SSIIconButton/index.d.ts +3 -3
- package/dist/components/buttons/SSIIconButton/index.js +5 -6
- package/dist/components/buttons/SSIPrimaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSIPrimaryButton/index.js +3 -4
- package/dist/components/buttons/SSISecondaryButton/index.d.ts +3 -3
- package/dist/components/buttons/SSISecondaryButton/index.js +3 -4
- package/dist/components/fields/SSICheckbox/index.d.ts +15 -0
- package/dist/components/fields/SSICheckbox/index.js +21 -0
- package/dist/components/fields/SSIHoverText/index.d.ts +8 -0
- package/dist/components/fields/SSIHoverText/index.js +8 -0
- package/dist/components/indicators/SSIActivityIndicator/index.d.ts +10 -0
- package/dist/components/indicators/SSIActivityIndicator/index.js +8 -0
- package/dist/components/labels/SSIStatusLabel/index.d.ts +1 -1
- package/dist/components/labels/SSIStatusLabel/index.js +1 -1
- package/dist/components/labels/SSITypeLabel/index.d.ts +3 -3
- package/dist/components/labels/SSITypeLabel/index.js +4 -5
- package/dist/components/lists/SSIDropDownList/index.d.ts +1 -1
- package/dist/components/lists/SSIDropDownList/index.js +3 -3
- package/dist/components/messageBoxes/toasts/SSIToast/index.d.ts +11 -0
- package/dist/components/messageBoxes/toasts/SSIToast/index.js +20 -0
- package/dist/components/messageBoxes/toasts/SSIToastContainer/index.d.ts +10 -0
- package/dist/components/messageBoxes/toasts/SSIToastContainer/index.js +7 -0
- package/dist/components/views/{SSICardView → SSICredentialCardView}/index.d.ts +2 -2
- package/dist/components/views/SSICredentialCardView/index.js +24 -0
- package/dist/components/views/{SSIMiniCardView → SSICredentialMiniCardView}/index.d.ts +2 -2
- package/dist/components/views/{SSIMiniCardView → SSICredentialMiniCardView}/index.js +5 -5
- package/dist/components/views/SSITabView/SSITabViewHeader/index.d.ts +2 -2
- package/dist/components/views/SSITabView/SSITabViewHeader/index.js +1 -1
- package/dist/components/views/SSITabView/index.d.ts +2 -2
- package/dist/components/views/SSITabView/index.js +1 -1
- package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +1 -1
- package/dist/components/views/SSITableView/SSITableViewHeader/index.js +3 -5
- package/dist/components/views/SSITableView/index.d.ts +1 -1
- package/dist/components/views/SSITableView/index.js +15 -13
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/toastHelper.d.ts +3 -0
- package/dist/helpers/toastHelper.js +14 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +9 -4
- package/dist/styles/components/components/SSICheckbox/index.d.ts +4 -0
- package/dist/styles/components/components/SSICheckbox/index.js +25 -0
- package/dist/styles/components/components/SSICredentialCardView/index.d.ts +13 -0
- package/dist/styles/components/components/SSICredentialCardView/index.js +58 -0
- package/dist/styles/components/components/SSICredentialMiniCardView/index.d.ts +2 -0
- package/dist/styles/components/components/SSICredentialMiniCardView/index.js +14 -0
- package/dist/styles/components/components/SSIHoverText/index.d.ts +3 -0
- package/dist/styles/components/components/{SSIText → SSIHoverText}/index.js +5 -5
- package/dist/styles/components/components/SSISecondaryButton/index.js +3 -5
- package/dist/styles/components/components/SSIStatusLabel/index.js +1 -0
- package/dist/styles/components/components/SSITabView/index.js +1 -1
- package/dist/styles/components/components/SSIToast/index.d.ts +4 -0
- package/dist/styles/components/components/SSIToast/index.js +24 -0
- package/dist/styles/components/components/SSIToastContainer/index.d.ts +2 -0
- package/dist/styles/components/components/SSIToastContainer/index.js +314 -0
- package/dist/styles/components/components/index.d.ts +7 -2
- package/dist/styles/components/components/index.js +7 -2
- package/dist/styles/components/fonts/index.d.ts +2 -0
- package/dist/styles/components/fonts/index.js +7 -1
- package/dist/styles/css/index.d.ts +1 -0
- package/dist/styles/css/index.js +7 -0
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.js +3 -0
- package/dist/types/button/index.d.ts +7 -0
- package/dist/types/button/index.js +1 -0
- package/dist/types/component/index.d.ts +0 -38
- package/dist/types/component/index.js +1 -16
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.js +3 -1
- package/dist/types/table/index.d.ts +12 -0
- package/dist/types/table/index.js +6 -0
- package/dist/types/toast/index.d.ts +6 -0
- package/dist/types/toast/index.js +1 -0
- package/package.json +5 -3
- package/dist/components/labels/SSIText/index.d.ts +0 -7
- package/dist/components/labels/SSIText/index.js +0 -13
- package/dist/components/views/SSICardView/index.js +0 -24
- package/dist/styles/components/components/SSICardView/index.d.ts +0 -13
- package/dist/styles/components/components/SSICardView/index.js +0 -59
- package/dist/styles/components/components/SSIMiniCardView/index.d.ts +0 -1
- package/dist/styles/components/components/SSIMiniCardView/index.js +0 -10
- package/dist/styles/components/components/SSIText/index.d.ts +0 -3
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { ToastContainer } from 'react-toastify';
|
|
3
|
+
export const SSIToastContainerContainerStyled = styled(ToastContainer) `
|
|
4
|
+
&.Toastify__toast-container {
|
|
5
|
+
z-index: 9999;
|
|
6
|
+
-webkit-transform: translate3d(0, 0, 9999);
|
|
7
|
+
position: fixed;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.Toastify__toast-container--top-left {
|
|
12
|
+
top: 1em;
|
|
13
|
+
left: 1em;
|
|
14
|
+
}
|
|
15
|
+
&.Toastify__toast-container--top-center {
|
|
16
|
+
top: 1em;
|
|
17
|
+
left: 50%;
|
|
18
|
+
transform: translateX(-50%);
|
|
19
|
+
}
|
|
20
|
+
&.Toastify__toast-container--top-right {
|
|
21
|
+
top: 1em;
|
|
22
|
+
right: 1em;
|
|
23
|
+
}
|
|
24
|
+
&.Toastify__toast-container--bottom-left {
|
|
25
|
+
bottom: 1em;
|
|
26
|
+
left: 1em;
|
|
27
|
+
}
|
|
28
|
+
&.Toastify__toast-container--bottom-center {
|
|
29
|
+
bottom: 1em;
|
|
30
|
+
left: 50%;
|
|
31
|
+
transform: translateX(-50%);
|
|
32
|
+
}
|
|
33
|
+
&.Toastify__toast-container--bottom-right {
|
|
34
|
+
bottom: 1em;
|
|
35
|
+
right: 1em;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@media only screen and (max-width: 480px) {
|
|
39
|
+
.Toastify__toast-container {
|
|
40
|
+
width: 100vw;
|
|
41
|
+
padding: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
}
|
|
45
|
+
.Toastify__toast-container--top-left,
|
|
46
|
+
.Toastify__toast-container--top-center,
|
|
47
|
+
.Toastify__toast-container--top-right {
|
|
48
|
+
top: 0;
|
|
49
|
+
transform: translateX(0);
|
|
50
|
+
}
|
|
51
|
+
.Toastify__toast-container--bottom-left,
|
|
52
|
+
.Toastify__toast-container--bottom-center,
|
|
53
|
+
.Toastify__toast-container--bottom-right {
|
|
54
|
+
bottom: 0;
|
|
55
|
+
transform: translateX(0);
|
|
56
|
+
}
|
|
57
|
+
.Toastify__toast-container--rtl {
|
|
58
|
+
right: 0;
|
|
59
|
+
left: initial;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.Toastify__toast {
|
|
64
|
+
position: relative;
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
display: -ms-flexbox;
|
|
67
|
+
display: flex;
|
|
68
|
+
-ms-flex-pack: justify;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
cursor: default;
|
|
72
|
+
direction: ltr;
|
|
73
|
+
z-index: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.Toastify__toast--rtl {
|
|
77
|
+
direction: rtl;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.Toastify__toast--close-on-click {
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.Toastify__toast-body {
|
|
85
|
+
margin: auto 0;
|
|
86
|
+
-ms-flex: 1 1 auto;
|
|
87
|
+
flex: 1 1 auto;
|
|
88
|
+
padding: 6px;
|
|
89
|
+
display: -ms-flexbox;
|
|
90
|
+
display: flex;
|
|
91
|
+
-ms-flex-align: center;
|
|
92
|
+
align-items: center;
|
|
93
|
+
}
|
|
94
|
+
.Toastify__toast-body > div:last-child {
|
|
95
|
+
word-break: break-word;
|
|
96
|
+
-ms-flex: 1;
|
|
97
|
+
flex: 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.Toastify--animate {
|
|
101
|
+
animation-fill-mode: both;
|
|
102
|
+
animation-duration: 0.7s;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media only screen and (max-width: 480px) {
|
|
106
|
+
.Toastify__toast {
|
|
107
|
+
margin-bottom: 0;
|
|
108
|
+
border-radius: 0;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@keyframes Toastify__trackProgress {
|
|
113
|
+
0% {
|
|
114
|
+
transform: scaleX(1);
|
|
115
|
+
}
|
|
116
|
+
100% {
|
|
117
|
+
transform: scaleX(0);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.Toastify__progress-bar--animated {
|
|
122
|
+
animation: Toastify__trackProgress linear 1 forwards;
|
|
123
|
+
}
|
|
124
|
+
.Toastify__progress-bar--controlled {
|
|
125
|
+
transition: transform 0.2s;
|
|
126
|
+
}
|
|
127
|
+
.Toastify__progress-bar--rtl {
|
|
128
|
+
right: 0;
|
|
129
|
+
left: initial;
|
|
130
|
+
transform-origin: right;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes Toastify__bounceInRight {
|
|
134
|
+
from,
|
|
135
|
+
60%,
|
|
136
|
+
75%,
|
|
137
|
+
90%,
|
|
138
|
+
to {
|
|
139
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
140
|
+
}
|
|
141
|
+
from {
|
|
142
|
+
opacity: 0;
|
|
143
|
+
transform: translate3d(3000px, 0, 0);
|
|
144
|
+
}
|
|
145
|
+
60% {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
transform: translate3d(-25px, 0, 0);
|
|
148
|
+
}
|
|
149
|
+
75% {
|
|
150
|
+
transform: translate3d(10px, 0, 0);
|
|
151
|
+
}
|
|
152
|
+
90% {
|
|
153
|
+
transform: translate3d(-5px, 0, 0);
|
|
154
|
+
}
|
|
155
|
+
to {
|
|
156
|
+
transform: none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
@keyframes Toastify__bounceOutRight {
|
|
160
|
+
20% {
|
|
161
|
+
opacity: 1;
|
|
162
|
+
transform: translate3d(-20px, 0, 0);
|
|
163
|
+
}
|
|
164
|
+
to {
|
|
165
|
+
opacity: 0;
|
|
166
|
+
transform: translate3d(2000px, 0, 0);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@keyframes Toastify__bounceInLeft {
|
|
170
|
+
from,
|
|
171
|
+
60%,
|
|
172
|
+
75%,
|
|
173
|
+
90%,
|
|
174
|
+
to {
|
|
175
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
176
|
+
}
|
|
177
|
+
0% {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
transform: translate3d(-3000px, 0, 0);
|
|
180
|
+
}
|
|
181
|
+
60% {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transform: translate3d(25px, 0, 0);
|
|
184
|
+
}
|
|
185
|
+
75% {
|
|
186
|
+
transform: translate3d(-10px, 0, 0);
|
|
187
|
+
}
|
|
188
|
+
90% {
|
|
189
|
+
transform: translate3d(5px, 0, 0);
|
|
190
|
+
}
|
|
191
|
+
to {
|
|
192
|
+
transform: none;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
@keyframes Toastify__bounceOutLeft {
|
|
196
|
+
20% {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
transform: translate3d(20px, 0, 0);
|
|
199
|
+
}
|
|
200
|
+
to {
|
|
201
|
+
opacity: 0;
|
|
202
|
+
transform: translate3d(-2000px, 0, 0);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
@keyframes Toastify__bounceInUp {
|
|
206
|
+
from,
|
|
207
|
+
60%,
|
|
208
|
+
75%,
|
|
209
|
+
90%,
|
|
210
|
+
to {
|
|
211
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
212
|
+
}
|
|
213
|
+
from {
|
|
214
|
+
opacity: 0;
|
|
215
|
+
transform: translate3d(0, 3000px, 0);
|
|
216
|
+
}
|
|
217
|
+
60% {
|
|
218
|
+
opacity: 1;
|
|
219
|
+
transform: translate3d(0, -20px, 0);
|
|
220
|
+
}
|
|
221
|
+
75% {
|
|
222
|
+
transform: translate3d(0, 10px, 0);
|
|
223
|
+
}
|
|
224
|
+
90% {
|
|
225
|
+
transform: translate3d(0, -5px, 0);
|
|
226
|
+
}
|
|
227
|
+
to {
|
|
228
|
+
transform: translate3d(0, 0, 0);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
@keyframes Toastify__bounceOutUp {
|
|
232
|
+
20% {
|
|
233
|
+
transform: translate3d(0, -10px, 0);
|
|
234
|
+
}
|
|
235
|
+
40%,
|
|
236
|
+
45% {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
transform: translate3d(0, 20px, 0);
|
|
239
|
+
}
|
|
240
|
+
to {
|
|
241
|
+
opacity: 0;
|
|
242
|
+
transform: translate3d(0, -2000px, 0);
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
@keyframes Toastify__bounceInDown {
|
|
246
|
+
from,
|
|
247
|
+
60%,
|
|
248
|
+
75%,
|
|
249
|
+
90%,
|
|
250
|
+
to {
|
|
251
|
+
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
252
|
+
}
|
|
253
|
+
0% {
|
|
254
|
+
opacity: 0;
|
|
255
|
+
transform: translate3d(0, -3000px, 0);
|
|
256
|
+
}
|
|
257
|
+
60% {
|
|
258
|
+
opacity: 1;
|
|
259
|
+
transform: translate3d(0, 25px, 0);
|
|
260
|
+
}
|
|
261
|
+
75% {
|
|
262
|
+
transform: translate3d(0, -10px, 0);
|
|
263
|
+
}
|
|
264
|
+
90% {
|
|
265
|
+
transform: translate3d(0, 5px, 0);
|
|
266
|
+
}
|
|
267
|
+
to {
|
|
268
|
+
transform: none;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
@keyframes Toastify__bounceOutDown {
|
|
272
|
+
20% {
|
|
273
|
+
transform: translate3d(0, 10px, 0);
|
|
274
|
+
}
|
|
275
|
+
40%,
|
|
276
|
+
45% {
|
|
277
|
+
opacity: 1;
|
|
278
|
+
transform: translate3d(0, -20px, 0);
|
|
279
|
+
}
|
|
280
|
+
to {
|
|
281
|
+
opacity: 0;
|
|
282
|
+
transform: translate3d(0, 2000px, 0);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
.Toastify__bounce-enter--top-left,
|
|
286
|
+
.Toastify__bounce-enter--bottom-left {
|
|
287
|
+
animation-name: Toastify__bounceInLeft;
|
|
288
|
+
}
|
|
289
|
+
.Toastify__bounce-enter--top-right,
|
|
290
|
+
.Toastify__bounce-enter--bottom-right {
|
|
291
|
+
animation-name: Toastify__bounceInRight;
|
|
292
|
+
}
|
|
293
|
+
.Toastify__bounce-enter--top-center {
|
|
294
|
+
animation-name: Toastify__bounceInDown;
|
|
295
|
+
}
|
|
296
|
+
.Toastify__bounce-enter--bottom-center {
|
|
297
|
+
animation-name: Toastify__bounceInUp;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.Toastify__bounce-exit--top-left,
|
|
301
|
+
.Toastify__bounce-exit--bottom-left {
|
|
302
|
+
animation-name: Toastify__bounceOutLeft;
|
|
303
|
+
}
|
|
304
|
+
.Toastify__bounce-exit--top-right,
|
|
305
|
+
.Toastify__bounce-exit--bottom-right {
|
|
306
|
+
animation-name: Toastify__bounceOutRight;
|
|
307
|
+
}
|
|
308
|
+
.Toastify__bounce-exit--top-center {
|
|
309
|
+
animation-name: Toastify__bounceOutUp;
|
|
310
|
+
}
|
|
311
|
+
.Toastify__bounce-exit--bottom-center {
|
|
312
|
+
animation-name: Toastify__bounceOutDown;
|
|
313
|
+
}
|
|
314
|
+
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './SSICredentialCardView';
|
|
2
|
+
export * from './SSICredentialMiniCardView';
|
|
3
3
|
export * from './SSIStatusLabel';
|
|
4
4
|
export * from './SSIPrimaryButton';
|
|
5
5
|
export * from './SSISecondaryButton';
|
|
@@ -10,3 +10,8 @@ export * from './SSITableViewHeader';
|
|
|
10
10
|
export * from './SSITableView';
|
|
11
11
|
export * from './SSITabViewHeader';
|
|
12
12
|
export * from './SSITabView';
|
|
13
|
+
export * from './SSIToast';
|
|
14
|
+
export * from './SSIToastContainer';
|
|
15
|
+
export * from './SSIProfileIcon';
|
|
16
|
+
export * from './SSIHoverText';
|
|
17
|
+
export * from './SSICheckbox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './SSICredentialCardView';
|
|
2
|
+
export * from './SSICredentialMiniCardView';
|
|
3
3
|
export * from './SSIStatusLabel';
|
|
4
4
|
export * from './SSIPrimaryButton';
|
|
5
5
|
export * from './SSISecondaryButton';
|
|
@@ -10,3 +10,8 @@ export * from './SSITableViewHeader';
|
|
|
10
10
|
export * from './SSITableView';
|
|
11
11
|
export * from './SSITabViewHeader';
|
|
12
12
|
export * from './SSITabView';
|
|
13
|
+
export * from './SSIToast';
|
|
14
|
+
export * from './SSIToastContainer';
|
|
15
|
+
export * from './SSIProfileIcon';
|
|
16
|
+
export * from './SSIHoverText';
|
|
17
|
+
export * from './SSICheckbox';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export declare const SSITextH1Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
2
2
|
export declare const SSITextH2Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
|
+
export declare const SSITextH2SemiBoldStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
3
4
|
export declare const SSITextH3Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
4
5
|
export declare const SSITextH3LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
5
6
|
export declare const SSITextH4Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
6
7
|
export declare const SSITextH4SemiBoldStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
7
8
|
export declare const SSITextH4LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
9
|
+
export declare const SSITextH4DarkStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
8
10
|
export declare const SSITextH4SemiBoldLightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
9
11
|
export declare const SSITextH5Styled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
10
12
|
export declare const SSITextH5LightStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { fontColors } from '@sphereon/ui-components.core';
|
|
3
|
-
import { SSITextH1Css, SSITextH2Css, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css } from '../../css';
|
|
3
|
+
import { SSITextH1Css, SSITextH2Css, SSITextH2SemiBoldStyledCss, SSITextH3Css, SSITextH4Css, SSITextH4SemiBoldCss, SSITextH5Css, SSITextH6Css, } from '../../css';
|
|
4
4
|
export const SSITextH1Styled = styled.span `
|
|
5
5
|
${SSITextH1Css}
|
|
6
6
|
`;
|
|
7
7
|
export const SSITextH2Styled = styled.span `
|
|
8
8
|
${SSITextH2Css}
|
|
9
9
|
`;
|
|
10
|
+
export const SSITextH2SemiBoldStyled = styled.span `
|
|
11
|
+
${SSITextH2SemiBoldStyledCss}
|
|
12
|
+
`;
|
|
10
13
|
export const SSITextH3Styled = styled.span `
|
|
11
14
|
${SSITextH3Css}
|
|
12
15
|
`;
|
|
@@ -22,6 +25,9 @@ export const SSITextH4SemiBoldStyled = styled.span `
|
|
|
22
25
|
export const SSITextH4LightStyled = styled(SSITextH4Styled) `
|
|
23
26
|
color: ${fontColors.light};
|
|
24
27
|
`;
|
|
28
|
+
export const SSITextH4DarkStyled = styled(SSITextH4Styled) `
|
|
29
|
+
color: ${fontColors.dark};
|
|
30
|
+
`;
|
|
25
31
|
export const SSITextH4SemiBoldLightStyled = styled(SSITextH4SemiBoldStyled) `
|
|
26
32
|
color: ${fontColors.light};
|
|
27
33
|
`;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const SSITextH1Css: import("styled-components").FlattenSimpleInterpolation;
|
|
2
2
|
export declare const SSITextH2Css: import("styled-components").FlattenSimpleInterpolation;
|
|
3
|
+
export declare const SSITextH2SemiBoldStyledCss: import("styled-components").FlattenSimpleInterpolation;
|
|
3
4
|
export declare const SSITextH3Css: import("styled-components").FlattenSimpleInterpolation;
|
|
4
5
|
export declare const SSITextH4Css: import("styled-components").FlattenSimpleInterpolation;
|
|
5
6
|
export declare const SSITextH4SemiBoldCss: import("styled-components").FlattenSimpleInterpolation;
|
package/dist/styles/css/index.js
CHANGED
|
@@ -14,6 +14,13 @@ export const SSITextH2Css = css `
|
|
|
14
14
|
line-height: ${fontStyle.h2Regular.lineHeight}px;
|
|
15
15
|
height: auto;
|
|
16
16
|
`;
|
|
17
|
+
export const SSITextH2SemiBoldStyledCss = css `
|
|
18
|
+
font-family: ${fontStyle.h2SemiBold.fontFamily};
|
|
19
|
+
font-size: ${fontStyle.h2SemiBold.fontSize}px;
|
|
20
|
+
font-weight: ${fontStyle.h2SemiBold.fontWeight};
|
|
21
|
+
line-height: ${fontStyle.h2SemiBold.lineHeight}px;
|
|
22
|
+
height: auto;
|
|
23
|
+
`;
|
|
17
24
|
export const SSITextH3Css = css `
|
|
18
25
|
font-family: ${fontStyle.h3Regular.fontFamily};
|
|
19
26
|
font-size: ${fontStyle.h3Regular.fontSize}px;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { AccessorFn, DeepKeys } from '@tanstack/react-table';
|
|
3
|
-
export type TabRoute = {
|
|
4
|
-
key: string;
|
|
5
|
-
title: string;
|
|
6
|
-
};
|
|
7
|
-
export type TabViewRoute = TabRoute & {
|
|
8
|
-
content: ComponentType<unknown>;
|
|
9
|
-
};
|
|
10
|
-
export type TabNavigationState = {
|
|
11
|
-
index: number;
|
|
12
|
-
routes: Array<TabViewRoute>;
|
|
13
|
-
};
|
|
14
|
-
export declare enum ButtonIconsEnum {
|
|
15
|
-
ADD = "add",
|
|
16
|
-
ARROW_DOWN = "arrowDown",
|
|
17
|
-
FILTER = "filter"
|
|
18
|
-
}
|
|
19
|
-
export type ColumnHeader<T> = {
|
|
20
|
-
accessor: AccessorFn<T> | DeepKeys<T>;
|
|
21
|
-
type: TableCellTypeEnum;
|
|
22
|
-
label?: string;
|
|
23
|
-
truncationLength?: number;
|
|
24
|
-
};
|
|
25
|
-
export type Button = {
|
|
26
|
-
caption: string;
|
|
27
|
-
onClick: () => Promise<void>;
|
|
28
|
-
icon?: ButtonIconsEnum;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
};
|
|
31
|
-
export declare enum LabelTypeEnum {
|
|
32
|
-
ISSUER = "Issuer",
|
|
33
|
-
VERIFIER = "Verifier"
|
|
34
|
-
}
|
|
35
|
-
export declare enum TableCellTypeEnum {
|
|
36
|
-
TEXT = "text",
|
|
37
|
-
LABEL = "label"
|
|
38
|
-
}
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
(function (ButtonIconsEnum) {
|
|
3
|
-
ButtonIconsEnum["ADD"] = "add";
|
|
4
|
-
ButtonIconsEnum["ARROW_DOWN"] = "arrowDown";
|
|
5
|
-
ButtonIconsEnum["FILTER"] = "filter";
|
|
6
|
-
})(ButtonIconsEnum || (ButtonIconsEnum = {}));
|
|
7
|
-
export var LabelTypeEnum;
|
|
8
|
-
(function (LabelTypeEnum) {
|
|
9
|
-
LabelTypeEnum["ISSUER"] = "Issuer";
|
|
10
|
-
LabelTypeEnum["VERIFIER"] = "Verifier";
|
|
11
|
-
})(LabelTypeEnum || (LabelTypeEnum = {}));
|
|
12
|
-
export var TableCellTypeEnum;
|
|
13
|
-
(function (TableCellTypeEnum) {
|
|
14
|
-
TableCellTypeEnum["TEXT"] = "text";
|
|
15
|
-
TableCellTypeEnum["LABEL"] = "label";
|
|
16
|
-
})(TableCellTypeEnum || (TableCellTypeEnum = {}));
|
|
1
|
+
"use strict";
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AccessorFn, DeepKeys } from '@tanstack/react-table';
|
|
2
|
+
export declare enum TableCellType {
|
|
3
|
+
TEXT = "text",
|
|
4
|
+
LABEL = "label",
|
|
5
|
+
STATUS = "status"
|
|
6
|
+
}
|
|
7
|
+
export type ColumnHeader<T> = {
|
|
8
|
+
accessor: AccessorFn<T> | DeepKeys<T>;
|
|
9
|
+
type: TableCellType;
|
|
10
|
+
label?: string;
|
|
11
|
+
truncationLength?: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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,8 +28,10 @@
|
|
|
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
|
+
"react-loader-spinner": "^5.4.5",
|
|
34
|
+
"react-toastify": "^9.1.3",
|
|
33
35
|
"styled-components": "^5.3.3"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
@@ -40,5 +42,5 @@
|
|
|
40
42
|
"peerDependencies": {
|
|
41
43
|
"react": ">= 16.8.0"
|
|
42
44
|
},
|
|
43
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "06e4b405dd8b50321044e44e348a5c00a97104de"
|
|
44
46
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { SSITruncatedTextStyled, SSITruncatedContainerStyled, SSITruncatedFullTextStyled } from '../../../styles/components/components/SSIText';
|
|
3
|
-
const SSIText = (props) => {
|
|
4
|
-
const { value, truncationLength } = props;
|
|
5
|
-
if (truncationLength && value.length > truncationLength) {
|
|
6
|
-
const truncatedText = value.substring(0, truncationLength);
|
|
7
|
-
return (_jsxs(SSITruncatedContainerStyled, { children: [_jsx(SSITruncatedTextStyled, { children: truncatedText }), _jsx(SSITruncatedFullTextStyled, { children: value })] }));
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
return _jsx("p", { children: value });
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
export default SSIText;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { backgroundColors, credentialCardColors, Localization, toLocalDateString, } from '@sphereon/ui-components.core';
|
|
3
|
-
import { SSIAlphaContainerStyled as AlphaContainer, SSICardViewContainerStyled as Container, SSICardViewBackgroundImageStyled as BackgroundImage, SSICardViewContentMainContainerStyled as ContentMainContainer, SSICardViewContentSubContainerStyled as ContentSubContainer, SSICardViewSSICredentialStatusStyled as CredentialStatusContainer, SSICardViewCredentialSubtitleTextStyled as CredentialSubtitleText, SSICardViewCredentialTitleTextStyled as CredentialTitleText, SSITextH5LightStyled as ExpirationDateText, SSICardViewFooterContainerStyled as FooterContainer, SSITextH4LightStyled as H4Text, SSICardViewHeaderContainerStyled as HeaderContainer, SSICardViewContentIssueNameContainerStyled as IssueNameContainer, SSICardViewHeaderLogoContainerStyled as LogoContainer, SSICardViewContentPropertiesContainerStyled as PropertiesContainer, SSITextH6LightStyled as PropertyValueText, SSICardViewHeaderTitleContainerStyled as TitleContainer, SSIFlexDirectionColumnViewStyled as PropertyContainer, } from '../../../styles/components';
|
|
4
|
-
import SSILogo from '../../assets/logos/SSILogo';
|
|
5
|
-
import SSIStatusLabel from '../../labels/SSIStatusLabel';
|
|
6
|
-
const SSICardView = (props) => {
|
|
7
|
-
const { header, body, footer } = props;
|
|
8
|
-
const { credentialTitle, credentialSubtitle, logo } = props.header ?? {};
|
|
9
|
-
const { issuerName, properties } = props.body ?? {};
|
|
10
|
-
const { credentialStatus, expirationDate } = props.footer ?? {};
|
|
11
|
-
const { backgroundColor = credentialCardColors.default, backgroundImage, textColor = backgroundColors.primaryLight } = props.display ?? {};
|
|
12
|
-
const getPropertyElementsFrom = (properties) => {
|
|
13
|
-
return properties.slice(0, 2).map((property, index) => (_jsxs(PropertyContainer, { style: {
|
|
14
|
-
...(properties.length > 1 && { width: 140 }),
|
|
15
|
-
...(index > 0 && { marginLeft: 10 }),
|
|
16
|
-
}, children: [_jsx(H4Text, { style: { color: textColor }, children: property.name }), _jsx(PropertyValueText, { style: { color: textColor }, children: property.value })] }, index)));
|
|
17
|
-
};
|
|
18
|
-
return (_jsx(Container, { style: { backgroundColor }, children: _jsx(BackgroundImage, { style: {
|
|
19
|
-
...(backgroundImage?.uri && { background: `url(${backgroundImage.uri})`, backgroundSize: 'cover' }),
|
|
20
|
-
}, children: _jsxs(AlphaContainer, { children: [header && (_jsxs(HeaderContainer, { children: [_jsx(LogoContainer, { children: _jsx(SSILogo, { logo: logo, color: textColor }) }), credentialTitle && (_jsxs(TitleContainer, { children: [_jsx(CredentialTitleText, { style: { color: textColor }, children: credentialTitle }), credentialSubtitle && _jsx(CredentialSubtitleText, { style: { color: textColor }, children: credentialSubtitle })] }))] })), body && (_jsx(ContentMainContainer, { children: _jsxs(ContentSubContainer, { children: [issuerName && (_jsx(IssueNameContainer, { children: _jsx(H4Text, { style: { color: textColor }, children: issuerName }) })), properties && _jsx(PropertiesContainer, { children: getPropertyElementsFrom(properties) })] }) })), footer && (_jsxs(FooterContainer, { children: [_jsx(ExpirationDateText, { style: { color: textColor }, children: expirationDate
|
|
21
|
-
? `${Localization.translate('credential_card_expires_message')} ${toLocalDateString(expirationDate)}`
|
|
22
|
-
: Localization.translate('credential_status_never_expires_date_label') }), credentialStatus && (_jsx(CredentialStatusContainer, { children: credentialStatus && _jsx(SSIStatusLabel, { status: credentialStatus, color: textColor }) }))] }))] }) }) }));
|
|
23
|
-
};
|
|
24
|
-
export default SSICardView;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const SSICardViewContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const SSICardViewBackgroundImageStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const SSICardViewHeaderContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const SSICardViewHeaderLogoContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const SSICardViewHeaderTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const SSICardViewContentMainContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const SSICardViewContentSubContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const SSICardViewContentIssueNameContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const SSICardViewContentPropertiesContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const SSICardViewFooterContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
11
|
-
export declare const SSICardViewCredentialTitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
12
|
-
export declare const SSICardViewCredentialSubtitleTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
13
|
-
export declare const SSICardViewSSICredentialStatusStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|