@useblu/ocean-core 1.65.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,18 @@
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
+
12
+ # [1.66.0](https://github.com/ocean-ds/ocean-web/compare/v1.65.0...v1.66.0) (2024-07-02)
13
+
14
+ ### Features
15
+
16
+ - update alert ([#1115](https://github.com/ocean-ds/ocean-web/issues/1115)) ([3386652](https://github.com/ocean-ds/ocean-web/commit/338665214afa9268e8e09c0d71812a40fab8ab0b))
17
+
6
18
  # [1.65.0](https://github.com/ocean-ds/ocean-web/compare/v1.64.0...v1.65.0) (2024-06-26)
7
19
 
8
20
  ### 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,19 +1790,137 @@
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;
1783
1797
  }
1784
- .ods-select__option:hover:not(.ods-select__option--selected) {
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;
1785
1801
  font-weight: 400;
1786
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;
1827
+ }
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;
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;
1918
+ }
1787
1919
 
1788
1920
  .ods-alert {
1789
1921
  align-items: flex-start;
1790
1922
  background-color: #f3f5fe;
1791
- border-radius: 12px;
1923
+ border-radius: 8px;
1792
1924
  color: #67697a;
1793
1925
  display: flex;
1794
1926
  flex-direction: column;
@@ -1800,10 +1932,18 @@
1800
1932
  padding: 16px;
1801
1933
  }
1802
1934
  @media (min-width: 576px) {
1935
+ .ods-alert {
1936
+ flex-direction: row;
1937
+ }
1803
1938
  .ods-alert__button--mobile {
1804
1939
  display: none;
1805
1940
  }
1806
1941
  }
1942
+ @media (min-width: 576px) {
1943
+ .ods-alert--with-button-no-title {
1944
+ font-size: 14px;
1945
+ }
1946
+ }
1807
1947
  .ods-alert--error {
1808
1948
  background-color: #fff1f4;
1809
1949
  }
@@ -1816,9 +1956,20 @@
1816
1956
  .ods-alert--error .ods-btn {
1817
1957
  background-color: #f5456e;
1818
1958
  }
1959
+ .ods-alert--error .ods-btn--primary:hover,
1960
+ .ods-alert--error .ods-btn--primary:focus {
1961
+ background-color: #f27592;
1962
+ }
1963
+ .ods-alert--error .ods-btn--primary:active {
1964
+ background-color: #d31441;
1965
+ }
1819
1966
  .ods-alert--error .ods-link {
1820
1967
  color: #f5456e;
1821
1968
  }
1969
+ .ods-alert--error .ods-link:hover,
1970
+ .ods-alert--error .ods-link:focus {
1971
+ color: #f27592;
1972
+ }
1822
1973
  .ods-alert--warning {
1823
1974
  background-color: #fff7f0;
1824
1975
  }
@@ -1831,9 +1982,20 @@
1831
1982
  .ods-alert--warning .ods-btn {
1832
1983
  background-color: #ff8a14;
1833
1984
  }
1985
+ .ods-alert--warning .ods-btn--primary:hover,
1986
+ .ods-alert--warning .ods-btn--primary:focus {
1987
+ background-color: #ffbd7a;
1988
+ }
1989
+ .ods-alert--warning .ods-btn--primary:active {
1990
+ background-color: #ff8a14;
1991
+ }
1834
1992
  .ods-alert--warning .ods-link {
1835
1993
  color: #ff8a14;
1836
1994
  }
1995
+ .ods-alert--warning .ods-link:hover,
1996
+ .ods-alert--warning .ods-link:focus {
1997
+ color: #ffbd7a;
1998
+ }
1837
1999
  .ods-alert--success {
1838
2000
  background-color: #f2fdf5;
1839
2001
  }
@@ -1846,13 +2008,25 @@
1846
2008
  .ods-alert--success .ods-btn {
1847
2009
  background-color: #2da94f;
1848
2010
  }
2011
+ .ods-alert--success .ods-btn--primary:hover,
2012
+ .ods-alert--success .ods-btn--primary:focus {
2013
+ background-color: #7adc94;
2014
+ }
2015
+ .ods-alert--success .ods-btn--primary:active {
2016
+ background-color: #2da94f;
2017
+ }
1849
2018
  .ods-alert--success .ods-link {
1850
2019
  color: #2da94f;
1851
2020
  }
2021
+ .ods-alert--success .ods-link:hover,
2022
+ .ods-alert--success .ods-link:focus {
2023
+ color: #7adc94;
2024
+ }
1852
2025
  .ods-alert__text {
1853
2026
  display: flex;
1854
2027
  flex: 1;
1855
2028
  flex-direction: column;
2029
+ gap: 4px;
1856
2030
  }
1857
2031
  .ods-alert__icon {
1858
2032
  margin-right: 8px;
@@ -1865,7 +2039,7 @@
1865
2039
  }
1866
2040
  }
1867
2041
  .ods-alert__button--mobile {
1868
- margin-top: 8px;
2042
+ margin: 12px 0 0 32px;
1869
2043
  }
1870
2044
  .ods-alert__button .ods-btn {
1871
2045
  margin-left: 16px;
@@ -1882,8 +2056,11 @@
1882
2056
  .ods-alert__title {
1883
2057
  color: #5872f5;
1884
2058
  font-size: 14px;
1885
- font-weight: 700;
1886
- line-height: 1.5;
2059
+ font-weight: 800;
2060
+ line-height: 1.32;
2061
+ }
2062
+ .ods-alert__content--no-title {
2063
+ padding-top: 0;
1887
2064
  }
1888
2065
 
1889
2066
  .ods-badge {
@@ -2370,12 +2547,12 @@
2370
2547
  width: 48px;
2371
2548
  }
2372
2549
  .ods-icon-btn--disabled {
2373
- color: #aaadc0;
2550
+ color: #ced1e1;
2374
2551
  cursor: not-allowed;
2375
2552
  }
2376
- .ods-icon-btn--disabled:hover {
2553
+ .ods-icon-btn--disabled:hover, .ods-icon-btn--disabled:active, .ods-icon-btn--disabled:focus {
2377
2554
  background-color: inherit;
2378
- color: #aaadc0;
2555
+ color: #ced1e1;
2379
2556
  }
2380
2557
 
2381
2558
  .ods-link {
@@ -4772,8 +4949,6 @@
4772
4949
  font-size: 14px;
4773
4950
  }
4774
4951
  .ods-unordered-list-item__description {
4775
- align-items: center;
4776
- display: flex;
4777
4952
  min-height: 24px;
4778
4953
  }
4779
4954