@huma-finance/widgets 0.0.59-beta.482 → 0.0.59-beta.487

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 (42) hide show
  1. package/API.md +0 -1
  2. package/dist/cjs/index.cjs +120 -407
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/index.d.ts +0 -2
  5. package/dist/index.js +123 -409
  6. package/dist/index.js.map +1 -1
  7. package/package.json +4 -6
  8. package/src/components/Activity.tsx +1 -1
  9. package/src/components/ApproveAllowanceModal.tsx +1 -1
  10. package/src/components/ApproveAllowanceModalV2.tsx +1 -1
  11. package/src/components/ChooseAmountModal.tsx +5 -6
  12. package/src/components/ConfirmTransferModal.tsx +2 -3
  13. package/src/components/CreditLine/borrow/1-Evaluation.tsx +3 -3
  14. package/src/components/ErrorModal.tsx +2 -2
  15. package/src/components/Factoring/FactoredList.tsx +2 -2
  16. package/src/components/Factoring/UpcomingList.tsx +2 -2
  17. package/src/components/HumaSnackBar.tsx +2 -2
  18. package/src/components/HumaTable.tsx +3 -3
  19. package/src/components/InputAmountModal.tsx +4 -4
  20. package/src/components/Lend/addRedemptionV2/1-ChooseTranche.tsx +2 -2
  21. package/src/components/Lend/supply/1-Evaluation/EvaluationEA.tsx +1 -1
  22. package/src/components/Lend/supply/1-Evaluation/EvaluationKYC.tsx +1 -1
  23. package/src/components/Lend/supplyV2/1-ChooseTranche.tsx +2 -2
  24. package/src/components/Lend/supplyV2/2-Evaluation.tsx +329 -20
  25. package/src/components/Lend/supplyV2/3-ChooseAmount.tsx +9 -3
  26. package/src/components/Lend/supplyV2/index.tsx +4 -37
  27. package/src/components/Lend/withdrawV2/1-ConfirmTransfer.tsx +2 -2
  28. package/src/components/Notifi/NotifiSubscriptionModal.tsx +1 -1
  29. package/src/components/ReceivableBackedCreditLine/payment/1-ChoosePaymentType.tsx +2 -2
  30. package/src/components/SignIn.tsx +1 -1
  31. package/src/components/SuperfluidFactoring/index.tsx +2 -2
  32. package/src/components/TxDoneModal.tsx +1 -1
  33. package/src/components/WrapperModal.tsx +2 -2
  34. package/src/components/humaModal/HumaModal.tsx +0 -1
  35. package/src/index.tsx +0 -2
  36. package/src/store/widgets.reducers.ts +1 -0
  37. package/src/theme/components.ts +1 -1
  38. package/dist/assets/output-f6156dde.css +0 -45
  39. package/dist/cjs/assets/output-f6156dde.css +0 -45
  40. package/src/components/Lend/supplyV2/components/PersonaEvaluation.tsx +0 -361
  41. package/src/components/Lend/supplyV2/components/SecuritizeEvaluation.tsx +0 -345
  42. package/src/index.css +0 -61
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huma-finance/widgets",
3
- "version": "0.0.59-beta.482+ea53a78",
3
+ "version": "0.0.59-beta.487+6770260",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,8 +30,8 @@
30
30
  "@ethersproject/experimental": "^5.7.0",
31
31
  "@ethersproject/providers": "^5.6.0",
32
32
  "@ethersproject/units": "^5.6.0",
33
- "@huma-finance/sdk": "^0.0.58",
34
- "@huma-finance/shared": "^0.0.58",
33
+ "@huma-finance/sdk": "^0.0.59-beta.487+6770260",
34
+ "@huma-finance/shared": "^0.0.59-beta.487+6770260",
35
35
  "@mui/icons-material": "^5.3.0",
36
36
  "@mui/material": "^5.0.6",
37
37
  "@mui/styles": "^5.0.2",
@@ -63,7 +63,6 @@
63
63
  "history": "^5.3.0",
64
64
  "jotai": "^1.13.1",
65
65
  "moment": "^2.29.4",
66
- "persona": "^5.1.0",
67
66
  "qrcode": "^1.5.1",
68
67
  "query-string": "^7.1.1",
69
68
  "react": "^18.2.0",
@@ -138,7 +137,6 @@
138
137
  "@typechain/ethers-v5": "^10.1.0",
139
138
  "@types/jest": "^27.5.2",
140
139
  "@types/node": "^17.0.45",
141
- "@types/persona": "^0.0.32",
142
140
  "@types/qrcode": "^1.5.0",
143
141
  "@types/react": "^18.0.21",
144
142
  "@types/react-dom": "^18.0.6",
@@ -195,5 +193,5 @@
195
193
  "optionalDependencies": {
196
194
  "encoding": "^0.1.13"
197
195
  },
198
- "gitHead": "ea53a78ba1ad057a3ec46b7c49a27f368842e8b5"
196
+ "gitHead": "677026067c18e7cc4316e4c23de908d1d44f9bdf"
199
197
  }
@@ -105,7 +105,7 @@ export function Activity({
105
105
  margin-top: ${theme.spacing(9)};
106
106
  `,
107
107
  title: css`
108
- font-family: 'Uni-Neue-Black';
108
+ font-weight: 800;
109
109
  font-size: 24px;
110
110
  color: #6b6572;
111
111
  margin-bottom: ${theme.spacing(2)};
@@ -70,7 +70,7 @@ export function ApproveAllowanceModal({
70
70
  `,
71
71
  description: css`
72
72
  margin-top: ${theme.spacing(4)};
73
- font-family: 'Uni-Neue-Regular';
73
+ font-weight: 400;
74
74
  font-size: 16px;
75
75
  color: #a8a1b2;
76
76
  padding: ${theme.spacing(0, 1)};
@@ -66,7 +66,7 @@ export function ApproveAllowanceModalV2({
66
66
  `,
67
67
  description: css`
68
68
  margin-top: ${theme.spacing(4)};
69
- font-family: 'Uni-Neue-Regular';
69
+ font-weight: 400;
70
70
  font-size: 16px;
71
71
  color: #a8a1b2;
72
72
  padding: ${theme.spacing(0, 1)};
@@ -60,11 +60,11 @@ export function ChooseAmountModal({
60
60
 
61
61
  const styles = {
62
62
  subTitle: css`
63
- font-family: 'Uni-Neue-Regular';
63
+ font-weight: 400;
64
64
  `,
65
65
  description2: css`
66
66
  ${theme.cssMixins.rowCentered};
67
- font-family: 'Uni-Neue-Regular';
67
+ font-weight: 400;
68
68
  font-size: 16px;
69
69
  color: #a8a1b2;
70
70
  margin-top: ${theme.spacing(2)};
@@ -80,7 +80,7 @@ export function ChooseAmountModal({
80
80
  margin-top: ${theme.spacing(4)};
81
81
  `,
82
82
  chosenAmount: css`
83
- font-family: 'Inter-Bold';
83
+ font-weight: 700;
84
84
  font-size: 32px;
85
85
  `,
86
86
  chosenAmountSymbol: css`
@@ -151,9 +151,8 @@ export function ChooseAmountModal({
151
151
  }
152
152
  `,
153
153
  info: css`
154
- font-family: 'Uni-Neue-Regular';
155
- ${theme.cssMixins.rowSpaceBetweened};
156
154
  font-weight: 400;
155
+ ${theme.cssMixins.rowSpaceBetweened};
157
156
  font-size: 16px;
158
157
  color: #423b46;
159
158
  `,
@@ -163,7 +162,7 @@ export function ChooseAmountModal({
163
162
  border-color: #e9e3f1;
164
163
  `,
165
164
  okButton: css`
166
- font-family: 'Uni-Neue-Bold';
165
+ font-weight: 700;
167
166
  width: 100%;
168
167
  position: absolute;
169
168
  bottom: ${theme.spacing(isXsSize ? 2 : 0)};
@@ -36,7 +36,7 @@ export function ConfirmTransferModal({
36
36
  margin-top: ${theme.spacing(-0.5)};
37
37
  `,
38
38
  description: css`
39
- font-family: 'Uni-Neue-Regular';
39
+ font-weight: 400;
40
40
  font-size: 16px;
41
41
  color: #49505b;
42
42
  margin-top: ${theme.spacing(4)};
@@ -46,13 +46,12 @@ export function ConfirmTransferModal({
46
46
  margin-top: ${theme.spacing(9)};
47
47
  `,
48
48
  transfer: css`
49
- font-family: 'Uni-Neue-Regular';
49
+ font-weight: 400;
50
50
  ${theme.cssMixins.rowSpaceBetweened}
51
51
  ${theme.cssMixins.rowVCentered}
52
52
  height: 72px;
53
53
  background: #f9f8fa;
54
54
  border-radius: 4px;
55
- font-weight: 500;
56
55
  font-size: 16px;
57
56
  color: #49505b;
58
57
  padding: ${theme.spacing(3, 2)};
@@ -67,7 +67,7 @@ export function Evaluation({
67
67
  content: css`
68
68
  ${theme.cssMixins.rowHCentered};
69
69
  margin-top: ${theme.spacing(4)};
70
- font-family: 'Uni-Neue-Regular';
70
+ font-weight: 400;
71
71
  font-size: 16px;
72
72
  line-height: 24px;
73
73
  color: #49505b;
@@ -79,7 +79,7 @@ export function Evaluation({
79
79
  height: 72px;
80
80
  background: #f9f8fa;
81
81
  border-radius: 4px;
82
- font-family: 'Uni-Neue-Regular';
82
+ font-weight: 400;
83
83
  font-size: 16px;
84
84
  color: #49505b;
85
85
  `,
@@ -94,7 +94,7 @@ export function Evaluation({
94
94
  }
95
95
  `,
96
96
  congratsWrapper: css`
97
- font-family: 'Uni-Neue-Regular';
97
+ font-weight: 400;
98
98
  font-size: 16px;
99
99
  padding: ${theme.spacing(0, 2)};
100
100
  ${theme.cssMixins.rowVCentered}
@@ -74,14 +74,14 @@ export function ErrorModal({
74
74
  `,
75
75
  messageWrapper: css`
76
76
  color: #541313;
77
- font-family: 'Uni-Neue-Regular';
77
+ font-weight: 400;
78
78
  font-size: 16px;
79
79
  padding-left: ${theme.spacing(6)};
80
80
  `,
81
81
  errorMessage: css`
82
82
  margin-top: ${theme.spacing(0.5)};
83
83
  font-size: 14px;
84
- font-family: 'Uni-Neue-Regular';
84
+ font-weight: 400;
85
85
  color: #541313;
86
86
  cursor: pointer;
87
87
  display: -webkit-box;
@@ -85,13 +85,13 @@ export function FactoredList<T>({
85
85
 
86
86
  const styles = {
87
87
  title: css`
88
- font-family: 'Uni-Neue-Black';
88
+ font-weight: 800;
89
89
  color: ${theme.palette.text.primary};
90
90
  font-size: 24px;
91
91
  margin-bottom: ${theme.spacing(2)};
92
92
  `,
93
93
  description: css`
94
- font-family: 'Uni-Neue-Regular';
94
+ font-weight: 400;
95
95
  color: ${theme.palette.text.primary};
96
96
  font-size: 1rem;
97
97
  `,
@@ -37,13 +37,13 @@ export function UpcomingList<T>({
37
37
 
38
38
  const styles = {
39
39
  title: css`
40
- font-family: 'Uni-Neue-Black';
40
+ font-weight: 800;
41
41
  color: ${theme.palette.text.primary};
42
42
  font-size: 24px;
43
43
  margin-bottom: ${theme.spacing(2)};
44
44
  `,
45
45
  description: css`
46
- font-family: 'Uni-Neue-Regular';
46
+ font-weight: 400;
47
47
  color: ${theme.palette.text.primary};
48
48
  font-size: 1rem;
49
49
  `,
@@ -33,11 +33,11 @@ export function HumaSnackBar({
33
33
  title: css`
34
34
  margin-bottom: ${theme.spacing(1)};
35
35
  font-size: 16px;
36
- font-family: 'Uni-Neue-Bold';
36
+ font-weight: 700;
37
37
  `,
38
38
  message: css`
39
39
  font-size: 15px;
40
- font-family: 'Uni-Neue-Regular';
40
+ font-weight: 400;
41
41
  `,
42
42
  }
43
43
 
@@ -35,13 +35,13 @@ export function HumaTable<T>({
35
35
 
36
36
  const styles = {
37
37
  tableHeader: css`
38
- font-family: 'Uni-Neue-Regular';
38
+ font-weight: 400;
39
39
  ${theme.cssMixins.rowVCentered}
40
40
  font-size: 14px;
41
41
  color: rgba(0, 0, 0, 0.87);
42
42
  `,
43
43
  tableBody: css`
44
- font-family: 'Uni-Neue-Regular';
44
+ font-weight: 400;
45
45
  font-size: 14px;
46
46
  color: rgba(0, 0, 0, 0.87);
47
47
  `,
@@ -50,7 +50,7 @@ export function HumaTable<T>({
50
50
  flex-direction: column;
51
51
  align-items: center;
52
52
  margin-top: ${theme.spacing(2)};
53
- font-family: 'Uni-Neue-Regular';
53
+ font-weight: 400;
54
54
  font-size: 14px;
55
55
  `,
56
56
  }
@@ -50,7 +50,7 @@ export function InputAmountModal({
50
50
  input {
51
51
  width: 100%;
52
52
  color: ${theme.palette.text.primary};
53
- font-family: 'Uni-Neue-Black';
53
+ font-weight: 800;
54
54
  font-size: 40px;
55
55
  line-height: 133.4%;
56
56
  }
@@ -63,7 +63,7 @@ export function InputAmountModal({
63
63
  maxTitle: css`
64
64
  position: absolute;
65
65
  color: ${theme.palette.text.primary};
66
- font-family: 'Uni-Neue-Regular';
66
+ font-weight: 400;
67
67
  font-size: 12px;
68
68
  line-height: 166%;
69
69
  letter-spacing: 0.4px;
@@ -81,14 +81,14 @@ export function InputAmountModal({
81
81
  padding: 4px 10px;
82
82
  gap: 8px;
83
83
  color: #b246ff;
84
- font-family: 'Uni-Neue-Bold';
84
+ font-weight: 700;
85
85
  font-size: 13px;
86
86
  line-height: 22px;
87
87
  letter-spacing: 0.46px;
88
88
  `,
89
89
  info: css`
90
90
  color: ${theme.palette.text.primary};
91
- font-family: 'Uni-Neue-Bold';
91
+ font-weight: 700;
92
92
  font-size: 20px;
93
93
  line-height: 160%;
94
94
  letter-spacing: 0.15px;
@@ -31,7 +31,7 @@ export function ChooseTranche({
31
31
  const styles = {
32
32
  subTitle: css`
33
33
  color: ${theme.palette.text.primary} !important;
34
- font-family: 'Uni-Neue-Regular';
34
+ font-weight: 400;
35
35
  font-size: 16px;
36
36
  line-height: 150%;
37
37
  letter-spacing: 0.15px;
@@ -47,7 +47,7 @@ export function ChooseTranche({
47
47
 
48
48
  .MuiFormControlLabel-label {
49
49
  color: ${theme.palette.text.primary};
50
- font-family: 'Uni-Neue-Regular';
50
+ font-weight: 400;
51
51
  font-size: 16px;
52
52
  line-height: 150%;
53
53
  letter-spacing: 0.15px;
@@ -38,7 +38,7 @@ export function EvaluationEA({
38
38
  ${theme.cssMixins.rowCentered};
39
39
  margin-top: ${theme.spacing(10)};
40
40
  padding: ${theme.spacing(0, 2)};
41
- font-family: 'Uni-Neue-Regular';
41
+ font-weight: 400;
42
42
  font-size: 16px;
43
43
  color: #a8a1b2;
44
44
  `,
@@ -115,7 +115,7 @@ export function EvaluationKYC({
115
115
  ${theme.cssMixins.rowCentered};
116
116
  margin-top: ${theme.spacing(10)};
117
117
  padding: ${theme.spacing(0, 2)};
118
- font-family: 'Uni-Neue-Regular';
118
+ font-weight: 400;
119
119
  font-size: 16px;
120
120
  color: #a8a1b2;
121
121
  `,
@@ -33,7 +33,7 @@ export function ChooseTranche({
33
33
  const styles = {
34
34
  subTitle: css`
35
35
  color: ${theme.palette.text.primary} !important;
36
- font-family: 'Uni-Neue-Regular';
36
+ font-weight: 400;
37
37
  font-size: 16px;
38
38
  line-height: 150%;
39
39
  letter-spacing: 0.15px;
@@ -49,7 +49,7 @@ export function ChooseTranche({
49
49
 
50
50
  .MuiFormControlLabel-label {
51
51
  color: ${theme.palette.text.primary};
52
- font-family: 'Uni-Neue-Regular';
52
+ font-weight: 400;
53
53
  font-size: 16px;
54
54
  line-height: 150%;
55
55
  letter-spacing: 0.15px;