@useblu/ocean-core 1.30.3 → 1.31.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.31.0](https://github.com/ocean-ds/ocean-web/compare/v1.30.4...v1.31.0) (2022-04-06)
7
+
8
+ ### Features
9
+
10
+ - **upload:** add a file upload input ([#954](https://github.com/ocean-ds/ocean-web/issues/954)) ([783511d](https://github.com/ocean-ds/ocean-web/commit/783511ddb0fc23417e80b5e44a28a43c0c5bfff9))
11
+
6
12
  ## [1.30.3](https://github.com/ocean-ds/ocean-web/compare/v1.30.2...v1.30.3) (2022-03-16)
7
13
 
8
14
  ### Bug Fixes
package/ocean.css CHANGED
@@ -1075,6 +1075,226 @@
1075
1075
  color: #b6b9cc;
1076
1076
  }
1077
1077
 
1078
+ .ods-file-uploader {
1079
+ align-items: center;
1080
+ background-color: white;
1081
+ display: flex;
1082
+ flex-direction: column;
1083
+ width: 100%;
1084
+ }
1085
+ .ods-file-uploader input {
1086
+ display: none;
1087
+ }
1088
+ .ods-file-uploader__dropzone {
1089
+ margin-bottom: 8px;
1090
+ width: 100%;
1091
+ }
1092
+ .ods-file-uploader__trigger {
1093
+ align-items: center;
1094
+ background: white;
1095
+ border: 1px dashed #d8dae8;
1096
+ border-radius: 8px;
1097
+ box-sizing: border-box;
1098
+ display: flex;
1099
+ flex-direction: column;
1100
+ justify-content: center;
1101
+ min-height: 128px;
1102
+ padding: 24px 16px;
1103
+ width: 100%;
1104
+ }
1105
+ .ods-file-uploader__trigger--drag {
1106
+ background: #f7f9ff;
1107
+ border: 1px dashed #0025e0;
1108
+ }
1109
+ .ods-file-uploader--error .ods-file-uploader__trigger {
1110
+ border: 1px dashed #f5456e;
1111
+ }
1112
+ .ods-file-uploader__trigger-icon {
1113
+ color: #0025e0;
1114
+ }
1115
+ .ods-file-uploader__title {
1116
+ color: #393b47;
1117
+ display: block;
1118
+ font-size: 14px;
1119
+ font-weight: 400;
1120
+ line-height: 21px;
1121
+ margin: 8px 0;
1122
+ text-align: center;
1123
+ }
1124
+ @media (max-width: 575.98px) {
1125
+ .ods-file-uploader__title {
1126
+ display: none;
1127
+ }
1128
+ }
1129
+ .ods-file-uploader__title--mobile {
1130
+ color: #393b47;
1131
+ display: block;
1132
+ font-size: 14px;
1133
+ line-height: 21px;
1134
+ margin: 8px 0;
1135
+ text-align: center;
1136
+ }
1137
+ @media (min-width: 576px) {
1138
+ .ods-file-uploader__title--mobile {
1139
+ display: none;
1140
+ }
1141
+ }
1142
+ .ods-file-uploader__title--mobile a {
1143
+ font-size: 14px;
1144
+ margin-left: 4px;
1145
+ white-space: nowrap;
1146
+ }
1147
+ .ods-file-uploader__title a {
1148
+ font-size: 14px;
1149
+ margin-left: 4px;
1150
+ }
1151
+ .ods-file-uploader__title a:hover {
1152
+ cursor: pointer;
1153
+ text-decoration: underline;
1154
+ }
1155
+ .ods-file-uploader__subtitle {
1156
+ align-items: center;
1157
+ color: #b6b9cc;
1158
+ display: flex;
1159
+ font-size: 12px;
1160
+ font-weight: 400;
1161
+ line-height: 18px;
1162
+ margin: 0;
1163
+ text-align: center;
1164
+ }
1165
+ @-webkit-keyframes ods-file-animation {
1166
+ 0% {
1167
+ opacity: 0;
1168
+ }
1169
+ 100% {
1170
+ opacity: 1;
1171
+ }
1172
+ }
1173
+ @keyframes ods-file-animation {
1174
+ 0% {
1175
+ opacity: 0;
1176
+ }
1177
+ 100% {
1178
+ opacity: 1;
1179
+ }
1180
+ }
1181
+ @-webkit-keyframes ods-file-animation-out {
1182
+ 0% {
1183
+ opacity: 1;
1184
+ }
1185
+ 100% {
1186
+ opacity: 0;
1187
+ }
1188
+ }
1189
+ @keyframes ods-file-animation-out {
1190
+ 0% {
1191
+ opacity: 1;
1192
+ }
1193
+ 100% {
1194
+ opacity: 0;
1195
+ }
1196
+ }
1197
+ .ods-file-uploader__file {
1198
+ align-items: center;
1199
+ -webkit-animation: ods-file-animation 0.2s linear;
1200
+ animation: ods-file-animation 0.2s linear;
1201
+ background: white;
1202
+ border: 1px solid #d8dae8;
1203
+ border-radius: 8px;
1204
+ box-sizing: border-box;
1205
+ display: flex;
1206
+ flex-direction: row;
1207
+ height: 48px;
1208
+ justify-content: space-between;
1209
+ margin-top: 8px;
1210
+ padding: 0 4px;
1211
+ width: 100%;
1212
+ }
1213
+ .ods-file-uploader__file.removed {
1214
+ -webkit-animation: ods-file-animation-out 0.2s linear;
1215
+ animation: ods-file-animation-out 0.2s linear;
1216
+ }
1217
+ .ods-file-uploader__file--warning {
1218
+ border: 1px solid #ff8a14;
1219
+ }
1220
+ .ods-file-uploader__file--success {
1221
+ border: 1px solid #b8c3ff;
1222
+ }
1223
+ .ods-file-uploader__file--idle {
1224
+ border: 1px solid #ebecf5;
1225
+ }
1226
+ .ods-file-uploader__file--loading {
1227
+ border: 1px solid #ebecf5;
1228
+ }
1229
+ .ods-file-uploader__file--idle .ods-file-uploader__file-status {
1230
+ color: #b8c3ff;
1231
+ opacity: 0.4;
1232
+ }
1233
+ .ods-file-uploader__file--warning .ods-file-uploader__file-status {
1234
+ color: #ff8a14;
1235
+ }
1236
+ .ods-file-uploader__file--success .ods-file-uploader__file-status {
1237
+ color: #3dcc64;
1238
+ }
1239
+ .ods-file-uploader__file--error {
1240
+ border: 1px solid #f5456e;
1241
+ }
1242
+ .ods-file-uploader__file--error .ods-file-uploader__file-status {
1243
+ color: #f5456e;
1244
+ }
1245
+ .ods-file-uploader__file-actions {
1246
+ display: flex;
1247
+ flex-direction: row;
1248
+ justify-content: center;
1249
+ }
1250
+ .ods-file-uploader__file-actions .ods-icon-btn {
1251
+ color: #b6b9cc;
1252
+ }
1253
+ .ods-file-uploader__file-actions .ods-icon-btn:hover {
1254
+ color: #0025e0;
1255
+ }
1256
+ .ods-file-uploader__warning_message, .ods-file-uploader__error_message {
1257
+ font-size: 12px;
1258
+ font-style: normal;
1259
+ font-weight: 400;
1260
+ line-height: 18px;
1261
+ margin: 4px 0;
1262
+ width: 100%;
1263
+ }
1264
+ .ods-file-uploader__warning_message {
1265
+ color: #ff8a14;
1266
+ }
1267
+ .ods-file-uploader__error_message {
1268
+ color: #f5456e;
1269
+ }
1270
+ .ods-file-uploader__file-name {
1271
+ color: #393b47;
1272
+ font-size: 14px;
1273
+ font-weight: 400;
1274
+ line-height: 21px;
1275
+ margin: 0 8px 0 0;
1276
+ overflow: hidden;
1277
+ text-overflow: ellipsis;
1278
+ white-space: nowrap;
1279
+ width: 100%;
1280
+ }
1281
+ .ods-file-uploader__file-loading {
1282
+ align-items: center;
1283
+ display: flex;
1284
+ height: 20px;
1285
+ justify-content: center;
1286
+ width: 20px;
1287
+ }
1288
+ .ods-file-uploader__file-status {
1289
+ display: flex;
1290
+ justify-content: center;
1291
+ margin: 0 8px;
1292
+ }
1293
+ .ods-file-uploader__file-status svg {
1294
+ height: 20px;
1295
+ width: 20px;
1296
+ }
1297
+
1078
1298
  .ods-input {
1079
1299
  align-items: center;
1080
1300
  background-color: white;
@@ -1089,6 +1309,7 @@
1089
1309
  border-radius: 4px;
1090
1310
  box-sizing: border-box;
1091
1311
  color: #393b47;
1312
+ font-family: "Nunito Sans";
1092
1313
  font-size: 16px;
1093
1314
  font-weight: 400;
1094
1315
  height: 100%;
@@ -1099,22 +1320,19 @@
1099
1320
  }
1100
1321
  .ods-input input::-moz-placeholder {
1101
1322
  color: #d8dae8;
1323
+ font-weight: 400;
1102
1324
  }
1103
1325
  .ods-input input:-ms-input-placeholder {
1104
1326
  color: #d8dae8;
1327
+ font-weight: 400;
1105
1328
  }
1106
1329
  .ods-input input::placeholder {
1107
1330
  color: #d8dae8;
1331
+ font-weight: 400;
1108
1332
  }
1109
1333
  .ods-input__number-controls {
1110
1334
  cursor: pointer;
1111
1335
  }
1112
- .ods-input__adornment {
1113
- align-items: center;
1114
- display: flex;
1115
- height: 100%;
1116
- padding-right: 16px;
1117
- }
1118
1336
  .ods-input:hover, .ods-input:focus, .ods-input:active {
1119
1337
  border-color: #5872f5;
1120
1338
  border-width: 2px;
@@ -1124,11 +1342,15 @@
1124
1342
  flex-direction: row-reverse;
1125
1343
  }
1126
1344
  .ods-input--left input {
1127
- padding: 0 0 0 10px;
1345
+ padding: 0 16px;
1128
1346
  }
1129
1347
  .ods-input--left .ods-input__adornment {
1348
+ margin-right: -12px;
1130
1349
  padding: 0 0 0 16px;
1131
1350
  }
1351
+ .ods-input--right .ods-input__adornment {
1352
+ margin-left: -12px;
1353
+ }
1132
1354
  .ods-input--disabled {
1133
1355
  background-color: #ebecf5;
1134
1356
  border-color: #ebecf5;
@@ -1138,9 +1360,6 @@
1138
1360
  color: #b6b9cc;
1139
1361
  cursor: not-allowed;
1140
1362
  }
1141
- .ods-input--disabled--text .ods-input__adornment {
1142
- opacity: 0.3;
1143
- }
1144
1363
  .ods-input--disabled:hover, .ods-input--disabled:focus, .ods-input--disabled:active {
1145
1364
  border-color: #ebecf5;
1146
1365
  }
@@ -1150,8 +1369,24 @@
1150
1369
  .ods-input--error {
1151
1370
  border-color: #f5456e;
1152
1371
  }
1372
+ .ods-input__adornment {
1373
+ align-items: center;
1374
+ color: #393b47;
1375
+ display: flex;
1376
+ height: 100%;
1377
+ padding-right: 16px;
1378
+ }
1379
+ .ods-input__adornment--placeholder {
1380
+ color: #d8dae8;
1381
+ }
1382
+ .ods-input__adornment input {
1383
+ padding: 0 4px;
1384
+ }
1153
1385
 
1154
- .ods-input--amount {
1386
+ .ods-input--amount .ods-input--root {
1387
+ align-items: center;
1388
+ display: flex;
1389
+ margin: 1px;
1155
1390
  width: 100%;
1156
1391
  }
1157
1392
  .ods-input--amount input {
@@ -1404,6 +1639,7 @@
1404
1639
  }
1405
1640
 
1406
1641
  .ods-select__root {
1642
+ margin: 1px;
1407
1643
  min-width: 237px;
1408
1644
  }
1409
1645
  .ods-select__control {
@@ -1444,8 +1680,8 @@
1444
1680
  }
1445
1681
  .ods-select__value {
1446
1682
  flex: 1;
1683
+ font-size: 16px;
1447
1684
  font-weight: 400;
1448
- line-height: 1.1;
1449
1685
  overflow: hidden;
1450
1686
  text-overflow: ellipsis;
1451
1687
  white-space: nowrap;
@@ -1454,22 +1690,17 @@
1454
1690
  color: #d8dae8;
1455
1691
  }
1456
1692
  .ods-select__arrow {
1457
- border: solid #67697a;
1458
- border-width: 0 2px 2px 0;
1459
- display: inline-block;
1460
- margin-left: 16px;
1461
- padding: 3px;
1693
+ display: flex;
1694
+ justify-self: center;
1462
1695
  }
1463
1696
  .ods-select__arrow--up {
1464
- margin-top: 3px;
1465
- transform: rotate(-135deg);
1697
+ transform: rotate(-180deg);
1466
1698
  }
1467
1699
  .ods-select__arrow--down {
1468
- margin-top: -3px;
1469
- transform: rotate(45deg);
1700
+ transform: rotate(0);
1470
1701
  }
1471
1702
  .ods-select__arrow--disabled {
1472
- border-color: #b6b9cc;
1703
+ color: #b6b9cc;
1473
1704
  }
1474
1705
  .ods-select__listbox-wrapper {
1475
1706
  position: relative;
@@ -1767,6 +1998,9 @@
1767
1998
  .ods-btn--blocked {
1768
1999
  width: 100%;
1769
2000
  }
2001
+ .ods-btn--loading .ods-progress {
2002
+ margin: auto;
2003
+ }
1770
2004
  .ods-btn--loading > span {
1771
2005
  display: block;
1772
2006
  height: 0;
@@ -2048,7 +2282,7 @@
2048
2282
  color: #0025e0;
2049
2283
  cursor: pointer;
2050
2284
  font-family: "Nunito Sans";
2051
- font-weight: 400;
2285
+ font-weight: 600;
2052
2286
  line-height: 1;
2053
2287
  }
2054
2288
  .ods-lnk:hover {
@@ -2121,6 +2355,12 @@
2121
2355
  .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item {
2122
2356
  background-color: transparent;
2123
2357
  }
2358
+ .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item__level1 {
2359
+ color: #67697a;
2360
+ font-family: "Nunito Sans";
2361
+ font-size: 16px;
2362
+ font-weight: 400;
2363
+ }
2124
2364
  .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item__icon {
2125
2365
  background-color: transparent;
2126
2366
  }
@@ -2172,11 +2412,18 @@
2172
2412
  }
2173
2413
 
2174
2414
  .ods-transaction-list-item__level2 {
2415
+ -webkit-box-orient: vertical;
2175
2416
  color: #67697a;
2417
+ display: box;
2176
2418
  font-family: "Nunito Sans";
2177
2419
  font-size: 15px;
2178
2420
  font-weight: 400;
2421
+ -webkit-line-clamp: 2;
2422
+ line-height: 15px;
2179
2423
  margin-bottom: 8px;
2424
+ max-height: 30px;
2425
+ overflow: hidden;
2426
+ text-overflow: ellipsis;
2180
2427
  }
2181
2428
 
2182
2429
  .ods-transaction-list-item__level3 {
@@ -2430,12 +2677,15 @@
2430
2677
  }
2431
2678
  .ods-search input::-moz-placeholder {
2432
2679
  color: #d8dae8;
2680
+ font-weight: 400;
2433
2681
  }
2434
2682
  .ods-search input:-ms-input-placeholder {
2435
2683
  color: #d8dae8;
2684
+ font-weight: 400;
2436
2685
  }
2437
2686
  .ods-search input::placeholder {
2438
2687
  color: #d8dae8;
2688
+ font-weight: 400;
2439
2689
  }
2440
2690
  .ods-search:hover, .ods-search:focus, .ods-search:active {
2441
2691
  border-color: #5872f5;
@@ -2641,7 +2891,6 @@
2641
2891
  opacity: 0;
2642
2892
  pointer-events: none;
2643
2893
  transition: opacity 0.18s ease-out 0.18s, transform 0.18s ease-out 0.18s;
2644
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
2645
2894
  font-size: 12px;
2646
2895
  font-style: normal;
2647
2896
  font-weight: normal;
@@ -2680,10 +2929,6 @@
2680
2929
  pointer-events: none;
2681
2930
  }
2682
2931
 
2683
- .ods-tooltip.font-awesome::after {
2684
- font-family: FontAwesome, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
2685
- }
2686
-
2687
2932
  .ods-tooltip[data-tooltip-break]::after {
2688
2933
  white-space: pre;
2689
2934
  }
@@ -2711,14 +2956,14 @@
2711
2956
  left: 0;
2712
2957
  }
2713
2958
  .ods-tooltip[data-tooltip-pos*=-left]::before {
2714
- left: 5px;
2959
+ left: 8px;
2715
2960
  }
2716
2961
 
2717
2962
  .ods-tooltip[data-tooltip-pos*=-right]::after {
2718
2963
  right: 0;
2719
2964
  }
2720
2965
  .ods-tooltip[data-tooltip-pos*=-right]::before {
2721
- right: 5px;
2966
+ right: 8px;
2722
2967
  }
2723
2968
 
2724
2969
  .ods-tooltip[data-tooltip-pos*=-left]:hover::after, .ods-tooltip[data-tooltip-pos*=-left][data-tooltip-visible]::after,