@sphereon/ui-components.ssi-react 0.1.3-unstable.24 → 0.1.3-unstable.30

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.
Files changed (75) hide show
  1. package/dist/@config/toasts/index.d.ts +7 -0
  2. package/dist/@config/toasts/index.js +13 -0
  3. package/dist/components/assets/badges/SSICheckmarkBadge/index.js +1 -1
  4. package/dist/components/assets/badges/SSIExclamationMarkBadge/index.js +1 -1
  5. package/dist/components/assets/icons/SSIAddIcon/index.d.ts +3 -3
  6. package/dist/components/assets/icons/SSIArrowDownIcon/index.d.ts +3 -3
  7. package/dist/components/assets/icons/SSIFilterIcon/index.d.ts +3 -3
  8. package/dist/components/assets/icons/SSIProfileIcon/index.d.ts +1 -1
  9. package/dist/components/assets/icons/SSIProfileIcon/index.js +1 -2
  10. package/dist/components/buttons/SSIIconButton/index.d.ts +3 -3
  11. package/dist/components/buttons/SSIIconButton/index.js +5 -6
  12. package/dist/components/buttons/SSIPrimaryButton/index.d.ts +3 -3
  13. package/dist/components/buttons/SSIPrimaryButton/index.js +3 -4
  14. package/dist/components/buttons/SSISecondaryButton/index.d.ts +3 -3
  15. package/dist/components/buttons/SSISecondaryButton/index.js +3 -4
  16. package/dist/components/fields/SSIHoverText/index.d.ts +8 -0
  17. package/dist/components/fields/SSIHoverText/index.js +9 -0
  18. package/dist/components/labels/SSIStatusLabel/index.d.ts +1 -1
  19. package/dist/components/labels/SSIStatusLabel/index.js +1 -1
  20. package/dist/components/labels/SSITypeLabel/index.d.ts +3 -3
  21. package/dist/components/labels/SSITypeLabel/index.js +4 -5
  22. package/dist/components/lists/SSIDropDownList/index.d.ts +1 -1
  23. package/dist/components/lists/SSIDropDownList/index.js +3 -3
  24. package/dist/components/messageBoxes/toasts/SSIToast/index.d.ts +11 -0
  25. package/dist/components/messageBoxes/toasts/SSIToast/index.js +20 -0
  26. package/dist/components/messageBoxes/toasts/SSIToastContainer/index.d.ts +10 -0
  27. package/dist/components/messageBoxes/toasts/SSIToastContainer/index.js +7 -0
  28. package/dist/components/views/SSICredentialCardView/index.js +3 -4
  29. package/dist/components/views/SSICredentialMiniCardView/index.js +2 -3
  30. package/dist/components/views/SSITabView/SSITabViewHeader/index.d.ts +2 -2
  31. package/dist/components/views/SSITabView/SSITabViewHeader/index.js +1 -1
  32. package/dist/components/views/SSITabView/index.d.ts +2 -2
  33. package/dist/components/views/SSITabView/index.js +1 -1
  34. package/dist/components/views/SSITableView/SSITableViewHeader/index.d.ts +1 -1
  35. package/dist/components/views/SSITableView/SSITableViewHeader/index.js +3 -5
  36. package/dist/components/views/SSITableView/index.d.ts +1 -1
  37. package/dist/components/views/SSITableView/index.js +11 -13
  38. package/dist/helpers/index.d.ts +1 -0
  39. package/dist/helpers/index.js +1 -0
  40. package/dist/helpers/toastHelper.d.ts +3 -0
  41. package/dist/helpers/toastHelper.js +14 -0
  42. package/dist/index.d.ts +5 -3
  43. package/dist/index.js +5 -3
  44. package/dist/styles/components/components/SSIHoverText/index.d.ts +3 -0
  45. package/dist/styles/components/components/{SSIText → SSIHoverText}/index.js +5 -5
  46. package/dist/styles/components/components/SSISecondaryButton/index.js +3 -5
  47. package/dist/styles/components/components/SSITabView/index.js +1 -1
  48. package/dist/styles/components/components/SSIToast/index.d.ts +4 -0
  49. package/dist/styles/components/components/SSIToast/index.js +24 -0
  50. package/dist/styles/components/components/SSIToastContainer/index.d.ts +2 -0
  51. package/dist/styles/components/components/SSIToastContainer/index.js +283 -0
  52. package/dist/styles/components/components/index.d.ts +4 -0
  53. package/dist/styles/components/components/index.js +4 -0
  54. package/dist/styles/components/fonts/index.d.ts +2 -0
  55. package/dist/styles/components/fonts/index.js +7 -1
  56. package/dist/styles/css/index.d.ts +1 -0
  57. package/dist/styles/css/index.js +7 -0
  58. package/dist/styles/index.d.ts +3 -0
  59. package/dist/styles/index.js +3 -0
  60. package/dist/types/button/index.d.ts +7 -0
  61. package/dist/types/button/index.js +1 -0
  62. package/dist/types/index.d.ts +3 -1
  63. package/dist/types/index.js +3 -1
  64. package/dist/types/table/index.d.ts +11 -0
  65. package/dist/types/table/index.js +5 -0
  66. package/dist/types/toast/index.d.ts +6 -0
  67. package/dist/types/toast/index.js +1 -0
  68. package/package.json +4 -4
  69. package/dist/components/assets/loaders/SSILoader/index.d.ts +0 -22
  70. package/dist/components/assets/loaders/SSILoader/index.js +0 -13
  71. package/dist/components/labels/SSIText/index.d.ts +0 -7
  72. package/dist/components/labels/SSIText/index.js +0 -13
  73. package/dist/styles/components/components/SSIText/index.d.ts +0 -3
  74. package/dist/types/component/index.d.ts +0 -38
  75. package/dist/types/component/index.js +0 -16
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import SSIToastContainer from './components/messageBoxes/toasts/SSIToastContainer';
1
2
  import SSIStatusLabel from './components/labels/SSIStatusLabel';
2
3
  import SSICredentialCardView from './components/views/SSICredentialCardView';
3
4
  import SSICredentialMiniCardView from './components/views/SSICredentialMiniCardView';
@@ -19,7 +20,8 @@ import SSITabViewHeader from './components/views/SSITabView/SSITabViewHeader';
19
20
  import SSIProfileIcon from './components/assets/icons/SSIProfileIcon';
20
21
  import SSISecondaryButton from './components/buttons/SSISecondaryButton';
21
22
  import SSICheckbox from './components/fields/SSICheckbox';
22
- import SSILoader from "./components/assets/loaders/SSILoader";
23
- export * from './types';
23
+ import SSIHoverText from './components/fields/SSIHoverText';
24
24
  export * from './styles/components/fonts';
25
- export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSICheckbox, SSILoader };
25
+ export * from './types';
26
+ export * from './helpers';
27
+ export { SSICredentialCardView, SSICredentialMiniCardView, SSIStatusLabel, SSICheckmarkBadge, SSIExclamationMarkBadge, SSIPlaceholderLogo, SSILogo, SSIAddIcon, SSIFilterIcon, SSIArrowDownIcon, SSITypeLabel, SSIIconButton, SSIPrimaryButton, SSISecondaryButton, SSIDropDownList, SSITableView, SSITableViewHeader, SSITabView, SSITabViewHeader, SSIProfileIcon, SSIToastContainer, SSICheckbox, SSIHoverText };
@@ -0,0 +1,3 @@
1
+ export declare const SSIHoverTextTextHoverStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
+ export declare const SSIHoverTextContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const SSIHoverTextTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- export const SSITruncatedFullTextStyled = styled.span `
2
+ export const SSIHoverTextTextHoverStyled = styled.span `
3
3
  display: none;
4
4
  position: absolute;
5
5
  top: 100%;
@@ -9,13 +9,13 @@ export const SSITruncatedFullTextStyled = styled.span `
9
9
  padding: 5px;
10
10
  z-index: 1;
11
11
  `;
12
- export const SSITruncatedContainerStyled = styled.div `
12
+ export const SSIHoverTextContainerStyled = styled.div `
13
13
  position: relative;
14
14
 
15
- &:hover ${SSITruncatedFullTextStyled} {
15
+ &:hover ${SSIHoverTextTextHoverStyled} {
16
16
  display: block;
17
17
  }
18
18
  `;
19
- export const SSITruncatedTextStyled = styled.span `
20
- display: 'inline';
19
+ export const SSIHoverTextTextStyled = styled.span `
20
+ display: inline;
21
21
  `;
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
  import { SSIRoundedContainerStyled } from '../../containers';
3
3
  import { gradientColors } from '@sphereon/ui-components.core';
4
- import { SSITextH3Styled } from "../../fonts";
4
+ import { SSITextH3Styled } from '../../fonts';
5
5
  export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyled) `
6
6
  position: relative;
7
7
  display: flex;
@@ -21,10 +21,8 @@ export const SSISecondaryButtonContainerStyled = styled(SSIRoundedContainerStyle
21
21
  bottom: 0;
22
22
  border-radius: 8px;
23
23
  border: 1px solid transparent;
24
- background: linear-gradient(135deg, #7276F7, #7C40E8) border-box;
25
- -webkit-mask:
26
- linear-gradient(#fff 0 0) padding-box,
27
- linear-gradient(#fff 0 0);
24
+ background: linear-gradient(135deg, #7276f7, #7c40e8) border-box;
25
+ -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
28
26
  -webkit-mask-composite: destination-out;
29
27
  mask-composite: exclude;
30
28
  }
@@ -2,5 +2,5 @@ import styled from 'styled-components';
2
2
  export const SSITabViewContainerStyled = styled.div `
3
3
  display: flex;
4
4
  flex-direction: column;
5
- width: 100%
5
+ width: 100%;
6
6
  `;
@@ -0,0 +1,4 @@
1
+ export declare const SSIToastContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
2
+ export declare const SSIToastBadgeContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const SSIToastTitleContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ export declare const SSIToastMessageTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -0,0 +1,24 @@
1
+ import styled from 'styled-components';
2
+ import { alertColors } from '@sphereon/ui-components.core';
3
+ import { SSIFlexDirectionRowViewStyled, SSIRoundedContainerStyled } from '../../containers';
4
+ import { SSITextH4DarkStyled } from '../../fonts';
5
+ export const SSIToastContainerStyled = styled(SSIRoundedContainerStyled) `
6
+ //TODO we need better width, use a max width and use content to scale
7
+ // 96.8%;
8
+ width: 326px;
9
+ background-color: ${alertColors.secondaryLight};
10
+ border-radius: 8px;
11
+ justify-content: center;
12
+ padding: 18px 18px 15px 18px;
13
+ `;
14
+ export const SSIToastBadgeContainerStyled = styled.div `
15
+ margin-right: 10px;
16
+ justify-content: center;
17
+ `;
18
+ export const SSIToastTitleContainerStyled = styled(SSIFlexDirectionRowViewStyled) `
19
+ margin-bottom: 12px;
20
+ width: 100%;
21
+ `;
22
+ export const SSIToastMessageTextStyled = styled(SSITextH4DarkStyled) `
23
+ width: 100%;
24
+ `;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const SSIToastContainerContainerStyled: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react-toastify").ToastContainerProps & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
@@ -0,0 +1,283 @@
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
+ &&&.Toastify__toast-container--top-left {
11
+ top: 1em;
12
+ left: 1em;
13
+ }
14
+ &&&.Toastify__toast-container--top-center {
15
+ top: 1em;
16
+ left: 50%;
17
+ transform: translateX(-50%);
18
+ }
19
+ &&&.Toastify__toast-container--top-right {
20
+ top: 1em;
21
+ right: 1em;
22
+ }
23
+ &&&.Toastify__toast-container--bottom-left {
24
+ bottom: 1em;
25
+ left: 1em;
26
+ }
27
+ &&&.Toastify__toast-container--bottom-center {
28
+ bottom: 1em;
29
+ left: 50%;
30
+ transform: translateX(-50%);
31
+ }
32
+ &&&.Toastify__toast-container--bottom-right {
33
+ bottom: 1em;
34
+ right: 1em;
35
+ }
36
+
37
+ @media only screen and (max-width : 480px) {
38
+ .Toastify__toast-container {
39
+ width: 100vw;
40
+ padding: 0;
41
+ left: 0;
42
+ margin: 0;
43
+ }
44
+ .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {
45
+ top: 0;
46
+ transform: translateX(0);
47
+ }
48
+ .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {
49
+ bottom: 0;
50
+ transform: translateX(0);
51
+ }
52
+ .Toastify__toast-container--rtl {
53
+ right: 0;
54
+ left: initial;
55
+ }
56
+ }
57
+ .Toastify__toast {
58
+ position: relative;
59
+ box-sizing: border-box;
60
+ display: -ms-flexbox;
61
+ display: flex;
62
+ -ms-flex-pack: justify;
63
+ justify-content: space-between;
64
+ overflow: hidden;
65
+ cursor: default;
66
+ direction: ltr;
67
+ z-index: 0;
68
+ }
69
+ .Toastify__toast--rtl {
70
+ direction: rtl;
71
+ }
72
+ .Toastify__toast--close-on-click {
73
+ cursor: pointer;
74
+ }
75
+ .Toastify__toast-body {
76
+ margin: auto 0;
77
+ -ms-flex: 1 1 auto;
78
+ flex: 1 1 auto;
79
+ padding: 6px;
80
+ display: -ms-flexbox;
81
+ display: flex;
82
+ -ms-flex-align: center;
83
+ align-items: center;
84
+ }
85
+ .Toastify__toast-body > div:last-child {
86
+ word-break: break-word;
87
+ -ms-flex: 1;
88
+ flex: 1;
89
+ }
90
+
91
+ .Toastify--animate {
92
+ animation-fill-mode: both;
93
+ animation-duration: 0.7s;
94
+ }
95
+
96
+ @media only screen and (max-width : 480px) {
97
+ .Toastify__toast {
98
+ margin-bottom: 0;
99
+ border-radius: 0;
100
+ }
101
+ }
102
+
103
+ @keyframes Toastify__trackProgress {
104
+ 0% {
105
+ transform: scaleX(1);
106
+ }
107
+ 100% {
108
+ transform: scaleX(0);
109
+ }
110
+ }
111
+
112
+ .Toastify__progress-bar--animated {
113
+ animation: Toastify__trackProgress linear 1 forwards;
114
+ }
115
+ .Toastify__progress-bar--controlled {
116
+ transition: transform 0.2s;
117
+ }
118
+ .Toastify__progress-bar--rtl {
119
+ right: 0;
120
+ left: initial;
121
+ transform-origin: right;
122
+ }
123
+
124
+ @keyframes Toastify__bounceInRight {
125
+ from, 60%, 75%, 90%, to {
126
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
127
+ }
128
+ from {
129
+ opacity: 0;
130
+ transform: translate3d(3000px, 0, 0);
131
+ }
132
+ 60% {
133
+ opacity: 1;
134
+ transform: translate3d(-25px, 0, 0);
135
+ }
136
+ 75% {
137
+ transform: translate3d(10px, 0, 0);
138
+ }
139
+ 90% {
140
+ transform: translate3d(-5px, 0, 0);
141
+ }
142
+ to {
143
+ transform: none;
144
+ }
145
+ }
146
+ @keyframes Toastify__bounceOutRight {
147
+ 20% {
148
+ opacity: 1;
149
+ transform: translate3d(-20px, 0, 0);
150
+ }
151
+ to {
152
+ opacity: 0;
153
+ transform: translate3d(2000px, 0, 0);
154
+ }
155
+ }
156
+ @keyframes Toastify__bounceInLeft {
157
+ from, 60%, 75%, 90%, to {
158
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
159
+ }
160
+ 0% {
161
+ opacity: 0;
162
+ transform: translate3d(-3000px, 0, 0);
163
+ }
164
+ 60% {
165
+ opacity: 1;
166
+ transform: translate3d(25px, 0, 0);
167
+ }
168
+ 75% {
169
+ transform: translate3d(-10px, 0, 0);
170
+ }
171
+ 90% {
172
+ transform: translate3d(5px, 0, 0);
173
+ }
174
+ to {
175
+ transform: none;
176
+ }
177
+ }
178
+ @keyframes Toastify__bounceOutLeft {
179
+ 20% {
180
+ opacity: 1;
181
+ transform: translate3d(20px, 0, 0);
182
+ }
183
+ to {
184
+ opacity: 0;
185
+ transform: translate3d(-2000px, 0, 0);
186
+ }
187
+ }
188
+ @keyframes Toastify__bounceInUp {
189
+ from, 60%, 75%, 90%, to {
190
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
191
+ }
192
+ from {
193
+ opacity: 0;
194
+ transform: translate3d(0, 3000px, 0);
195
+ }
196
+ 60% {
197
+ opacity: 1;
198
+ transform: translate3d(0, -20px, 0);
199
+ }
200
+ 75% {
201
+ transform: translate3d(0, 10px, 0);
202
+ }
203
+ 90% {
204
+ transform: translate3d(0, -5px, 0);
205
+ }
206
+ to {
207
+ transform: translate3d(0, 0, 0);
208
+ }
209
+ }
210
+ @keyframes Toastify__bounceOutUp {
211
+ 20% {
212
+ transform: translate3d(0, -10px, 0);
213
+ }
214
+ 40%, 45% {
215
+ opacity: 1;
216
+ transform: translate3d(0, 20px, 0);
217
+ }
218
+ to {
219
+ opacity: 0;
220
+ transform: translate3d(0, -2000px, 0);
221
+ }
222
+ }
223
+ @keyframes Toastify__bounceInDown {
224
+ from, 60%, 75%, 90%, to {
225
+ animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
226
+ }
227
+ 0% {
228
+ opacity: 0;
229
+ transform: translate3d(0, -3000px, 0);
230
+ }
231
+ 60% {
232
+ opacity: 1;
233
+ transform: translate3d(0, 25px, 0);
234
+ }
235
+ 75% {
236
+ transform: translate3d(0, -10px, 0);
237
+ }
238
+ 90% {
239
+ transform: translate3d(0, 5px, 0);
240
+ }
241
+ to {
242
+ transform: none;
243
+ }
244
+ }
245
+ @keyframes Toastify__bounceOutDown {
246
+ 20% {
247
+ transform: translate3d(0, 10px, 0);
248
+ }
249
+ 40%, 45% {
250
+ opacity: 1;
251
+ transform: translate3d(0, -20px, 0);
252
+ }
253
+ to {
254
+ opacity: 0;
255
+ transform: translate3d(0, 2000px, 0);
256
+ }
257
+ }
258
+ .Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {
259
+ animation-name: Toastify__bounceInLeft;
260
+ }
261
+ .Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {
262
+ animation-name: Toastify__bounceInRight;
263
+ }
264
+ .Toastify__bounce-enter--top-center {
265
+ animation-name: Toastify__bounceInDown;
266
+ }
267
+ .Toastify__bounce-enter--bottom-center {
268
+ animation-name: Toastify__bounceInUp;
269
+ }
270
+
271
+ .Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {
272
+ animation-name: Toastify__bounceOutLeft;
273
+ }
274
+ .Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {
275
+ animation-name: Toastify__bounceOutRight;
276
+ }
277
+ .Toastify__bounce-exit--top-center {
278
+ animation-name: Toastify__bounceOutUp;
279
+ }
280
+ .Toastify__bounce-exit--bottom-center {
281
+ animation-name: Toastify__bounceOutDown;
282
+ }
283
+ `;
@@ -10,4 +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';
13
17
  export * from './SSICheckbox';
@@ -10,4 +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';
13
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;
@@ -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,3 @@
1
+ export * from './typography';
2
+ export * from './css';
3
+ export * from './components';
@@ -0,0 +1,3 @@
1
+ export * from './typography';
2
+ export * from './css';
3
+ export * from './components';
@@ -0,0 +1,7 @@
1
+ import { ButtonIcon } from '@sphereon/ui-components.core';
2
+ export type Button = {
3
+ caption: string;
4
+ onClick: () => Promise<void>;
5
+ icon?: ButtonIcon;
6
+ disabled?: boolean;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1,3 @@
1
- export * from './component';
1
+ export * from './button';
2
+ export * from './table';
3
+ export * from './toast';
@@ -1 +1,3 @@
1
- export * from './component';
1
+ export * from './button';
2
+ export * from './table';
3
+ export * from './toast';
@@ -0,0 +1,11 @@
1
+ import { AccessorFn, DeepKeys } from '@tanstack/react-table';
2
+ export declare enum TableCellType {
3
+ TEXT = "text",
4
+ LABEL = "label"
5
+ }
6
+ export type ColumnHeader<T> = {
7
+ accessor: AccessorFn<T> | DeepKeys<T>;
8
+ type: TableCellType;
9
+ label?: string;
10
+ truncationLength?: number;
11
+ };
@@ -0,0 +1,5 @@
1
+ export var TableCellType;
2
+ (function (TableCellType) {
3
+ TableCellType["TEXT"] = "text";
4
+ TableCellType["LABEL"] = "label";
5
+ })(TableCellType || (TableCellType = {}));
@@ -0,0 +1,6 @@
1
+ export type ToastConfigParams<Props> = {
2
+ title?: string;
3
+ message?: string;
4
+ onClick?: () => Promise<void>;
5
+ props?: Props;
6
+ };
@@ -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.24+b4be06e",
4
+ "version": "0.1.3-unstable.30+15069b0",
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,9 +28,9 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@sphereon/ui-components.core": "0.1.3-unstable.24+b4be06e",
31
+ "@sphereon/ui-components.core": "0.1.3-unstable.30+15069b0",
32
32
  "@tanstack/react-table": "^8.9.3",
33
- "react-loader-spinner": "^5.4.5",
33
+ "react-toastify": "^9.1.3",
34
34
  "styled-components": "^5.3.3"
35
35
  },
36
36
  "devDependencies": {
@@ -41,5 +41,5 @@
41
41
  "peerDependencies": {
42
42
  "react": ">= 16.8.0"
43
43
  },
44
- "gitHead": "b4be06eb6549343f0d9a20d625e3f2e484abc750"
44
+ "gitHead": "15069b0fe7847904e9a164e3d7a7e8765b1f9578"
45
45
  }
@@ -1,22 +0,0 @@
1
- import React from "react";
2
- interface SSILoaderProps {
3
- ariaLabel?: string;
4
- height?: number;
5
- width?: number;
6
- color?: string;
7
- secondaryColor?: string;
8
- strokeWidth?: number;
9
- strokeWidthSecondary?: number;
10
- visible?: boolean;
11
- wrapperStyle?: {
12
- [key: string]: string;
13
- };
14
- wrapperClass?: string;
15
- timeout?: number;
16
- callback: (state?: any) => Promise<void>;
17
- }
18
- export default class SSILoader extends React.Component<SSILoaderProps, any> {
19
- componentDidMount(): void;
20
- render(): JSX.Element;
21
- }
22
- export {};
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from "react";
3
- import { Oval } from "react-loader-spinner";
4
- export default class SSILoader extends React.Component {
5
- componentDidMount() {
6
- setTimeout(async (state) => {
7
- await this.props.callback(state);
8
- }, this.props.timeout ?? 0);
9
- }
10
- render() {
11
- return (_jsx(Oval, { ...this.props }));
12
- }
13
- }
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- export type Props = {
3
- truncationLength?: number;
4
- value: string;
5
- };
6
- declare const SSIText: FC<Props>;
7
- export default SSIText;
@@ -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,3 +0,0 @@
1
- export declare const SSITruncatedFullTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;
2
- export declare const SSITruncatedContainerStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const SSITruncatedTextStyled: import("styled-components").StyledComponent<"span", any, {}, never>;