@useblu/ocean-core 1.66.0 → 1.67.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.67.0](https://github.com/ocean-ds/ocean-web/compare/v1.66.0...v1.67.0) (2024-07-15)
7
+
8
+ ### Features
9
+
10
+ - update input ([#1114](https://github.com/ocean-ds/ocean-web/issues/1114)) ([114d564](https://github.com/ocean-ds/ocean-web/commit/114d5640cf22d553216363c19cde717c6ed8726a))
11
+
6
12
  # [1.66.0](https://github.com/ocean-ds/ocean-web/compare/v1.65.0...v1.66.0) (2024-07-02)
7
13
 
8
14
  ### Features
package/ocean.css CHANGED
@@ -1059,10 +1059,11 @@
1059
1059
  margin-right: 4px;
1060
1060
  }
1061
1061
  .ods-form-control__element {
1062
- max-height: 69.19px;
1062
+ max-height: 145px;
1063
1063
  }
1064
1064
  .ods-form-control__icon {
1065
1065
  align-items: start;
1066
+ color: #aaadc0;
1066
1067
  display: flex;
1067
1068
  flex-direction: column;
1068
1069
  justify-content: center;
@@ -1077,7 +1078,8 @@
1077
1078
  color: #aaadc0;
1078
1079
  font-size: 12px;
1079
1080
  font-weight: 600;
1080
- line-height: 1;
1081
+ line-height: 1.32;
1082
+ margin-bottom: 0;
1081
1083
  margin-top: 4px;
1082
1084
  }
1083
1085
  .ods-form-control__helper-text--error {
@@ -1093,11 +1095,10 @@
1093
1095
  font-family: "Nunito Sans";
1094
1096
  font-size: 14px;
1095
1097
  font-weight: 400;
1096
- line-height: 1.24;
1097
- margin-bottom: 8px;
1098
+ line-height: 1;
1098
1099
  }
1099
1100
  .ods-form-label--disabled {
1100
- color: #aaadc0;
1101
+ color: #ced1e1;
1101
1102
  }
1102
1103
 
1103
1104
  .ods-file-uploader {
@@ -1330,8 +1331,8 @@
1330
1331
  height: 48px;
1331
1332
  }
1332
1333
  .ods-input input {
1333
- border: 1px solid transparent;
1334
1334
  border-radius: 8px;
1335
+ border-width: 0;
1335
1336
  box-sizing: border-box;
1336
1337
  color: #393b47;
1337
1338
  font-family: "Nunito Sans";
@@ -1361,9 +1362,7 @@
1361
1362
  .ods-input:hover, .ods-input:focus, .ods-input:active, .ods-input:focus-within {
1362
1363
  border-color: #5872f5;
1363
1364
  border-width: 2px;
1364
- }
1365
- .ods-input:hover input, .ods-input:focus input, .ods-input:active input, .ods-input:focus-within input {
1366
- border-width: 0;
1365
+ margin: 0 -1px;
1367
1366
  }
1368
1367
  .ods-input--filled {
1369
1368
  border: 1px solid #b8c3ff;
@@ -1371,18 +1370,6 @@
1371
1370
  .ods-input--error {
1372
1371
  border-color: #f5456e;
1373
1372
  }
1374
- .ods-input--disabled {
1375
- background-color: #e0e2ee;
1376
- border-color: #e0e2ee;
1377
- cursor: not-allowed;
1378
- }
1379
- .ods-input--disabled input {
1380
- color: #aaadc0;
1381
- cursor: not-allowed;
1382
- }
1383
- .ods-input--disabled:hover, .ods-input--disabled:focus, .ods-input--disabled:active {
1384
- border-color: #5872f5;
1385
- }
1386
1373
  .ods-input__adornment {
1387
1374
  align-items: center;
1388
1375
  color: #393b47;
@@ -1390,12 +1377,36 @@
1390
1377
  height: 100%;
1391
1378
  padding-right: 16px;
1392
1379
  }
1380
+ .ods-input__adornment--start {
1381
+ color: #393b47;
1382
+ }
1393
1383
  .ods-input__adornment--placeholder {
1394
1384
  color: #ced1e1;
1395
1385
  }
1396
1386
  .ods-input__adornment input {
1397
1387
  padding: 0 4px;
1398
1388
  }
1389
+ .ods-input__adornment svg {
1390
+ color: #aaadc0;
1391
+ }
1392
+ .ods-input--disabled {
1393
+ background-color: #f3f5fe;
1394
+ border: 1px solid #f3f5fe;
1395
+ color: #ced1e1;
1396
+ cursor: not-allowed;
1397
+ }
1398
+ .ods-input--disabled input {
1399
+ background-color: #f3f5fe;
1400
+ color: #ced1e1;
1401
+ cursor: not-allowed;
1402
+ }
1403
+ .ods-input--disabled svg {
1404
+ color: #ced1e1;
1405
+ }
1406
+ .ods-input--disabled:hover, .ods-input--disabled:focus, .ods-input--disabled:active, .ods-input--disabled:focus-within {
1407
+ border: 1px solid #f3f5fe;
1408
+ margin: 0;
1409
+ }
1399
1410
  .ods-input--left {
1400
1411
  flex-direction: row-reverse;
1401
1412
  }
@@ -1408,6 +1419,9 @@
1408
1419
  .ods-input--right .ods-input__adornment {
1409
1420
  margin-left: -12px;
1410
1421
  }
1422
+ .ods-input--adornment input {
1423
+ padding: 0 4px;
1424
+ }
1411
1425
 
1412
1426
  .ods-input--amount .ods-input--root {
1413
1427
  align-items: center;
@@ -1434,17 +1448,33 @@
1434
1448
  .ods-input--amount__stepper-controls_minus {
1435
1449
  padding-left: 4px;
1436
1450
  }
1451
+ .ods-input--amount .ods-input--amount--zero svg {
1452
+ color: #ced1e1;
1453
+ }
1454
+ .ods-input--amount .ods-input--amount--zero input {
1455
+ color: #ced1e1;
1456
+ }
1457
+ .ods-input--amount .ods-input--amount--zero:hover svg,
1458
+ .ods-input--amount .ods-input--amount--zero:focus svg {
1459
+ color: #393b47;
1460
+ }
1461
+
1462
+ .ods-input--amount--disabled:hover svg {
1463
+ color: #ced1e1;
1464
+ }
1437
1465
 
1438
1466
  .ods-textarea {
1439
1467
  background-color: white;
1440
- border: 1px solid #ced1e1;
1468
+ border: hidden;
1441
1469
  border-radius: 8px;
1470
+ box-shadow: 0 0 0 1px #ced1e1;
1442
1471
  box-sizing: border-box;
1443
1472
  color: #393b47;
1444
1473
  font-family: "Nunito Sans";
1445
1474
  font-size: 16px;
1446
1475
  font-weight: 400;
1447
- line-height: 1.24;
1476
+ height: 145px;
1477
+ line-height: 1.5;
1448
1478
  outline: none;
1449
1479
  padding: 16px;
1450
1480
  resize: none;
@@ -1460,22 +1490,20 @@
1460
1490
  color: #ced1e1;
1461
1491
  }
1462
1492
  .ods-textarea:hover, .ods-textarea:focus, .ods-textarea:active, .ods-textarea:focus-within {
1463
- border: 2px solid #5872f5;
1493
+ box-shadow: 0 0 0 2px #5872f5;
1464
1494
  }
1465
1495
  .ods-textarea:disabled {
1466
- background-color: #e0e2ee;
1467
- border-color: #e0e2ee;
1468
- color: #aaadc0;
1496
+ background-color: #f3f5fe;
1497
+ border: hidden;
1498
+ box-shadow: 0 0 0 1px #f3f5fe;
1499
+ color: #ced1e1;
1469
1500
  cursor: not-allowed;
1470
1501
  }
1471
- .ods-textarea:disabled:active {
1472
- border-color: #e0e2ee;
1473
- }
1474
1502
  .ods-textarea--filled {
1475
- border: 1px solid #b8c3ff;
1503
+ box-shadow: 0 0 0 1px #b8c3ff;
1476
1504
  }
1477
1505
  .ods-textarea--error {
1478
- border-color: #f5456e;
1506
+ box-shadow: 0 0 0 1px #f5456e;
1479
1507
  }
1480
1508
 
1481
1509
  .ods-checkbox {
@@ -1670,7 +1698,6 @@
1670
1698
  }
1671
1699
 
1672
1700
  .ods-select__root {
1673
- margin: 1px;
1674
1701
  min-width: 237px;
1675
1702
  }
1676
1703
  .ods-select__control {
@@ -1698,9 +1725,9 @@
1698
1725
  padding-right: 15px;
1699
1726
  }
1700
1727
  .ods-select__control:disabled {
1701
- background-color: #e0e2ee;
1702
- border-color: #e0e2ee;
1703
- color: #aaadc0;
1728
+ background-color: #f3f5fe;
1729
+ border-color: #f3f5fe;
1730
+ color: #ced1e1;
1704
1731
  cursor: not-allowed;
1705
1732
  }
1706
1733
  .ods-select__control--filled {
@@ -1720,19 +1747,6 @@
1720
1747
  .ods-select__value--empty {
1721
1748
  color: #ced1e1;
1722
1749
  }
1723
- .ods-select__arrow {
1724
- display: flex;
1725
- justify-self: center;
1726
- }
1727
- .ods-select__arrow--up {
1728
- transform: rotate(-180deg);
1729
- }
1730
- .ods-select__arrow--down {
1731
- transform: rotate(0);
1732
- }
1733
- .ods-select__arrow--disabled {
1734
- color: #aaadc0;
1735
- }
1736
1750
  .ods-select__listbox-wrapper {
1737
1751
  position: relative;
1738
1752
  z-index: 2;
@@ -1756,15 +1770,15 @@
1756
1770
  }
1757
1771
  .ods-select__option {
1758
1772
  align-items: center;
1759
- color: #393b47;
1773
+ color: #67697a;
1760
1774
  cursor: pointer;
1761
1775
  display: flex;
1762
1776
  flex: 1;
1763
- font-family: "Avenir";
1777
+ font-family: "Nunito Sans";
1764
1778
  font-size: 14px;
1765
1779
  font-weight: 400;
1766
1780
  height: 40px;
1767
- line-height: 1.24;
1781
+ line-height: 1.5;
1768
1782
  list-style: none;
1769
1783
  margin: 0;
1770
1784
  min-width: 0;
@@ -1776,13 +1790,131 @@
1776
1790
  text-overflow: ellipsis;
1777
1791
  white-space: nowrap;
1778
1792
  }
1779
- .ods-select__option--selected, .ods-select__option:hover, .ods-select__option:focus, .ods-select__option:active {
1793
+ .ods-select__option--selected {
1780
1794
  background-color: #f3f5fe;
1781
1795
  color: #0025e0;
1782
- font-weight: 700;
1796
+ font-weight: 600;
1797
+ }
1798
+ .ods-select__option:hover:not(.ods-select__option--selected, .ods-select__option--disabled), .ods-select__option:focus:not(.ods-select__option--selected, .ods-select__option--disabled), .ods-select__option:active:not(.ods-select__option--selected, .ods-select__option--disabled) {
1799
+ background-color: #f3f5fe;
1800
+ color: #67697a;
1801
+ font-weight: 400;
1802
+ }
1803
+ .ods-select__option--disabled {
1804
+ background-color: white;
1805
+ color: #aaadc0;
1806
+ cursor: not-allowed;
1807
+ }
1808
+
1809
+ .ods-select__arrow {
1810
+ display: flex;
1811
+ justify-self: center;
1812
+ }
1813
+ .ods-select__arrow svg {
1814
+ color: #67697a;
1815
+ height: 20px;
1816
+ max-height: 20px;
1817
+ max-width: 20px;
1818
+ width: 20px;
1819
+ }
1820
+ .ods-select__arrow--down svg {
1821
+ transform: rotate(0);
1822
+ transition: transform 0.3s;
1823
+ }
1824
+ .ods-select__arrow--up svg {
1825
+ transform: rotate(-180deg);
1826
+ transition: transform 0.3s;
1783
1827
  }
1784
- .ods-select__option:hover:not(.ods-select__option--selected) {
1828
+ .ods-select__arrow--disabled {
1829
+ color: #ced1e1;
1830
+ }
1831
+ .ods-select__arrow--disabled svg {
1832
+ color: #ced1e1;
1833
+ }
1834
+
1835
+ .ods-token-input {
1836
+ display: flex;
1837
+ gap: 8px;
1838
+ justify-content: flex-start;
1839
+ }
1840
+ .ods-token-input__input {
1841
+ background-color: white;
1842
+ border-radius: 8px;
1843
+ box-shadow: 0 0 0 1px #ced1e1;
1844
+ box-sizing: border-box;
1845
+ height: 48px;
1846
+ width: 48px;
1847
+ }
1848
+ .ods-token-input__input:hover, .ods-token-input__input:focus, .ods-token-input__input:active, .ods-token-input__input:focus-within {
1849
+ box-shadow: 0 0 0 2px #5872f5;
1850
+ }
1851
+ .ods-token-input input {
1852
+ border: hidden;
1853
+ border-radius: 8px;
1854
+ box-sizing: border-box;
1855
+ color: #393b47;
1856
+ font-family: "Nunito Sans";
1857
+ font-size: 16px;
1785
1858
  font-weight: 400;
1859
+ height: 100%;
1860
+ line-height: 1.24;
1861
+ outline: none;
1862
+ text-align: center;
1863
+ width: 100%;
1864
+ }
1865
+ .ods-token-input--error {
1866
+ box-shadow: 0 0 0 1px #f5456e;
1867
+ }
1868
+ .ods-token-input--disabled {
1869
+ background-color: #f3f5fe;
1870
+ border: hidden;
1871
+ box-shadow: 0 0 0 1px #f3f5fe;
1872
+ }
1873
+ .ods-token-input--disabled input {
1874
+ background-color: #f3f5fe;
1875
+ color: #ced1e1;
1876
+ cursor: not-allowed;
1877
+ }
1878
+ .ods-token-input--disabled:hover, .ods-token-input--disabled:focus, .ods-token-input--disabled:active {
1879
+ box-shadow: 0 0 0 1px #f3f5fe;
1880
+ }
1881
+
1882
+ .ods-select-autocomplete__root {
1883
+ min-width: 237px;
1884
+ }
1885
+ .ods-select-autocomplete__listbox--empty {
1886
+ align-items: center;
1887
+ display: flex;
1888
+ justify-content: center;
1889
+ padding: 12px 0;
1890
+ }
1891
+ .ods-select-autocomplete__listbox--empty .ods-typography__description {
1892
+ color: #aaadc0;
1893
+ }
1894
+
1895
+ .ods-select-autocomplete__arrow {
1896
+ justify-self: center;
1897
+ }
1898
+ .ods-select-autocomplete__arrow svg {
1899
+ color: #67697a;
1900
+ height: 20px;
1901
+ max-height: 20px;
1902
+ max-width: 20px;
1903
+ width: 20px;
1904
+ }
1905
+ .ods-select-autocomplete__arrow--up svg {
1906
+ transform: rotate(-180deg);
1907
+ transition: transform 0.3s;
1908
+ }
1909
+ .ods-select-autocomplete__arrow--down svg {
1910
+ transform: rotate(0);
1911
+ transition: transform 0.3s;
1912
+ }
1913
+ .ods-select-autocomplete__arrow--disabled {
1914
+ color: #ced1e1;
1915
+ }
1916
+ .ods-select-autocomplete__arrow--disabled svg {
1917
+ color: #ced1e1;
1786
1918
  }
1787
1919
 
1788
1920
  .ods-alert {
@@ -2415,12 +2547,12 @@
2415
2547
  width: 48px;
2416
2548
  }
2417
2549
  .ods-icon-btn--disabled {
2418
- color: #aaadc0;
2550
+ color: #ced1e1;
2419
2551
  cursor: not-allowed;
2420
2552
  }
2421
- .ods-icon-btn--disabled:hover {
2553
+ .ods-icon-btn--disabled:hover, .ods-icon-btn--disabled:active, .ods-icon-btn--disabled:focus {
2422
2554
  background-color: inherit;
2423
- color: #aaadc0;
2555
+ color: #ced1e1;
2424
2556
  }
2425
2557
 
2426
2558
  .ods-link {
@@ -4817,8 +4949,6 @@
4817
4949
  font-size: 14px;
4818
4950
  }
4819
4951
  .ods-unordered-list-item__description {
4820
- align-items: center;
4821
- display: flex;
4822
4952
  min-height: 24px;
4823
4953
  }
4824
4954