@useblu/ocean-core 1.30.3 → 1.31.3

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,24 @@
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.3](https://github.com/ocean-ds/ocean-web/compare/v1.31.2...v1.31.3) (2022-05-24)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **checkbox:** fix checkmark position ([#967](https://github.com/ocean-ds/ocean-web/issues/967)) ([f897612](https://github.com/ocean-ds/ocean-web/commit/f897612ff6c30dcc2ea7914618633f55c51d5e3a))
11
+
12
+ ## [1.31.2](https://github.com/ocean-ds/ocean-web/compare/v1.31.1...v1.31.2) (2022-05-24)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **checkbox:** add min-width and min-height to checkbox ([#964](https://github.com/ocean-ds/ocean-web/issues/964)) ([425eaf6](https://github.com/ocean-ds/ocean-web/commit/425eaf689cb837ac3f0f0634570e1a989e970310))
17
+
18
+ # [1.31.0](https://github.com/ocean-ds/ocean-web/compare/v1.30.4...v1.31.0) (2022-04-06)
19
+
20
+ ### Features
21
+
22
+ - **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))
23
+
6
24
  ## [1.30.3](https://github.com/ocean-ds/ocean-web/compare/v1.30.2...v1.30.3) (2022-03-16)
7
25
 
8
26
  ### 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 {
@@ -1246,8 +1481,10 @@
1246
1481
  border-radius: 4px;
1247
1482
  box-sizing: border-box;
1248
1483
  cursor: pointer;
1249
- height: 24px;
1250
- width: 24px;
1484
+ height: 20px;
1485
+ min-height: 20px;
1486
+ min-width: 20px;
1487
+ width: 20px;
1251
1488
  }
1252
1489
  .ods-checkbox__checkmark::after {
1253
1490
  border: solid #fff;
@@ -1255,8 +1492,8 @@
1255
1492
  content: "";
1256
1493
  display: none;
1257
1494
  height: 10px;
1258
- margin-left: 7px;
1259
- margin-top: 3px;
1495
+ margin-left: 5px;
1496
+ margin-top: 1px;
1260
1497
  transform: rotate(40deg);
1261
1498
  width: 6px;
1262
1499
  }
@@ -1404,6 +1641,7 @@
1404
1641
  }
1405
1642
 
1406
1643
  .ods-select__root {
1644
+ margin: 1px;
1407
1645
  min-width: 237px;
1408
1646
  }
1409
1647
  .ods-select__control {
@@ -1444,8 +1682,8 @@
1444
1682
  }
1445
1683
  .ods-select__value {
1446
1684
  flex: 1;
1685
+ font-size: 16px;
1447
1686
  font-weight: 400;
1448
- line-height: 1.1;
1449
1687
  overflow: hidden;
1450
1688
  text-overflow: ellipsis;
1451
1689
  white-space: nowrap;
@@ -1454,22 +1692,17 @@
1454
1692
  color: #d8dae8;
1455
1693
  }
1456
1694
  .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;
1695
+ display: flex;
1696
+ justify-self: center;
1462
1697
  }
1463
1698
  .ods-select__arrow--up {
1464
- margin-top: 3px;
1465
- transform: rotate(-135deg);
1699
+ transform: rotate(-180deg);
1466
1700
  }
1467
1701
  .ods-select__arrow--down {
1468
- margin-top: -3px;
1469
- transform: rotate(45deg);
1702
+ transform: rotate(0);
1470
1703
  }
1471
1704
  .ods-select__arrow--disabled {
1472
- border-color: #b6b9cc;
1705
+ color: #b6b9cc;
1473
1706
  }
1474
1707
  .ods-select__listbox-wrapper {
1475
1708
  position: relative;
@@ -1767,6 +2000,9 @@
1767
2000
  .ods-btn--blocked {
1768
2001
  width: 100%;
1769
2002
  }
2003
+ .ods-btn--loading .ods-progress {
2004
+ margin: auto;
2005
+ }
1770
2006
  .ods-btn--loading > span {
1771
2007
  display: block;
1772
2008
  height: 0;
@@ -2048,7 +2284,7 @@
2048
2284
  color: #0025e0;
2049
2285
  cursor: pointer;
2050
2286
  font-family: "Nunito Sans";
2051
- font-weight: 400;
2287
+ font-weight: 600;
2052
2288
  line-height: 1;
2053
2289
  }
2054
2290
  .ods-lnk:hover {
@@ -2121,6 +2357,12 @@
2121
2357
  .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item {
2122
2358
  background-color: transparent;
2123
2359
  }
2360
+ .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item__level1 {
2361
+ color: #67697a;
2362
+ font-family: "Nunito Sans";
2363
+ font-size: 16px;
2364
+ font-weight: 400;
2365
+ }
2124
2366
  .ods-transaction-list-item .ods-transaction-list-item__sub-itens .ods-transaction-list-item__icon {
2125
2367
  background-color: transparent;
2126
2368
  }
@@ -2172,11 +2414,18 @@
2172
2414
  }
2173
2415
 
2174
2416
  .ods-transaction-list-item__level2 {
2417
+ -webkit-box-orient: vertical;
2175
2418
  color: #67697a;
2419
+ display: box;
2176
2420
  font-family: "Nunito Sans";
2177
2421
  font-size: 15px;
2178
2422
  font-weight: 400;
2423
+ -webkit-line-clamp: 2;
2424
+ line-height: 15px;
2179
2425
  margin-bottom: 8px;
2426
+ max-height: 30px;
2427
+ overflow: hidden;
2428
+ text-overflow: ellipsis;
2180
2429
  }
2181
2430
 
2182
2431
  .ods-transaction-list-item__level3 {
@@ -2430,12 +2679,15 @@
2430
2679
  }
2431
2680
  .ods-search input::-moz-placeholder {
2432
2681
  color: #d8dae8;
2682
+ font-weight: 400;
2433
2683
  }
2434
2684
  .ods-search input:-ms-input-placeholder {
2435
2685
  color: #d8dae8;
2686
+ font-weight: 400;
2436
2687
  }
2437
2688
  .ods-search input::placeholder {
2438
2689
  color: #d8dae8;
2690
+ font-weight: 400;
2439
2691
  }
2440
2692
  .ods-search:hover, .ods-search:focus, .ods-search:active {
2441
2693
  border-color: #5872f5;
@@ -2641,7 +2893,6 @@
2641
2893
  opacity: 0;
2642
2894
  pointer-events: none;
2643
2895
  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
2896
  font-size: 12px;
2646
2897
  font-style: normal;
2647
2898
  font-weight: normal;
@@ -2680,10 +2931,6 @@
2680
2931
  pointer-events: none;
2681
2932
  }
2682
2933
 
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
2934
  .ods-tooltip[data-tooltip-break]::after {
2688
2935
  white-space: pre;
2689
2936
  }
@@ -2711,14 +2958,14 @@
2711
2958
  left: 0;
2712
2959
  }
2713
2960
  .ods-tooltip[data-tooltip-pos*=-left]::before {
2714
- left: 5px;
2961
+ left: 8px;
2715
2962
  }
2716
2963
 
2717
2964
  .ods-tooltip[data-tooltip-pos*=-right]::after {
2718
2965
  right: 0;
2719
2966
  }
2720
2967
  .ods-tooltip[data-tooltip-pos*=-right]::before {
2721
- right: 5px;
2968
+ right: 8px;
2722
2969
  }
2723
2970
 
2724
2971
  .ods-tooltip[data-tooltip-pos*=-left]:hover::after, .ods-tooltip[data-tooltip-pos*=-left][data-tooltip-visible]::after,