@useblu/ocean-core 1.27.2 → 1.29.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,22 @@
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.29.0](https://github.com/ocean-ds/ocean-web/compare/v1.28.0...v1.29.0) (2022-02-24)
7
+
8
+ ### Features
9
+
10
+ - **progress:** add progress and other fixes ([#922](https://github.com/ocean-ds/ocean-web/issues/922)) ([5888456](https://github.com/ocean-ds/ocean-web/commit/5888456c5618d73ca891005b743fdfacd0ab1c30))
11
+
12
+ # [1.28.0](https://github.com/ocean-ds/ocean-web/compare/v1.27.3...v1.28.0) (2022-02-23)
13
+
14
+ ### Features
15
+
16
+ - **badge:** add new badge component. ([#918](https://github.com/ocean-ds/ocean-web/issues/918)) ([b183b16](https://github.com/ocean-ds/ocean-web/commit/b183b16837580f59319d4957d7235b44431660cb))
17
+
18
+ ## [1.27.3](https://github.com/ocean-ds/ocean-web/compare/v1.27.2...v1.27.3) (2022-02-15)
19
+
20
+ **Note:** Version bump only for package @useblu/ocean-core
21
+
6
22
  ## [1.27.2](https://github.com/ocean-ds/ocean-web/compare/v1.27.1...v1.27.2) (2022-02-11)
7
23
 
8
24
  ### Bug Fixes
package/ocean.css CHANGED
@@ -1380,7 +1380,7 @@
1380
1380
  }
1381
1381
 
1382
1382
  .ods-select__root {
1383
- width: 237px;
1383
+ min-width: 237px;
1384
1384
  }
1385
1385
  .ods-select__control {
1386
1386
  align-items: center;
@@ -1639,9 +1639,20 @@
1639
1639
  line-height: 1.5;
1640
1640
  }
1641
1641
 
1642
+ .ods-carousel.columns-5, .ods-carousel.columns-4, .ods-carousel.columns-3, .ods-carousel.columns-2 {
1643
+ overflow: hidden;
1644
+ }
1642
1645
  .ods-carousel.columns-5 .slick-track, .ods-carousel.columns-4 .slick-track, .ods-carousel.columns-3 .slick-track, .ods-carousel.columns-2 .slick-track {
1643
1646
  gap: 8px;
1644
1647
  }
1648
+ .ods-carousel.columns-5 .slick-list, .ods-carousel.columns-4 .slick-list, .ods-carousel.columns-3 .slick-list, .ods-carousel.columns-2 .slick-list {
1649
+ box-shadow: none;
1650
+ overflow: inherit;
1651
+ }
1652
+ .ods-carousel.columns-5 .slick-slide, .ods-carousel.columns-4 .slick-slide, .ods-carousel.columns-3 .slick-slide, .ods-carousel.columns-2 .slick-slide {
1653
+ border-radius: 8px;
1654
+ box-shadow: 0 4px 8px rgba(12, 13, 20, 0.08);
1655
+ }
1645
1656
 
1646
1657
  .slick-slider {
1647
1658
  box-sizing: border-box;
@@ -1661,6 +1672,11 @@
1661
1672
  .slick-slider:hover .slick-arrow {
1662
1673
  display: block !important;
1663
1674
  }
1675
+ @media (max-width: 767.98px) {
1676
+ .slick-slider:hover .slick-arrow {
1677
+ display: none !important;
1678
+ }
1679
+ }
1664
1680
 
1665
1681
  .slick-list {
1666
1682
  border-radius: 8px;
@@ -1852,6 +1868,7 @@
1852
1868
  line-height: 1;
1853
1869
  outline: none;
1854
1870
  text-align: center;
1871
+ transition: background-color 0.1s ease-out;
1855
1872
  }
1856
1873
  .ods-btn--sm {
1857
1874
  font-size: 14px;
@@ -1874,11 +1891,6 @@
1874
1891
  padding-left: 32px;
1875
1892
  padding-right: 32px;
1876
1893
  }
1877
- .ods-btn:disabled {
1878
- background-color: #ebecf5;
1879
- color: #b6b9cc;
1880
- cursor: not-allowed;
1881
- }
1882
1894
  .ods-btn--primary {
1883
1895
  background-color: #0025e0;
1884
1896
  color: white;
@@ -1952,6 +1964,16 @@
1952
1964
  .ods-btn--blocked {
1953
1965
  width: 100%;
1954
1966
  }
1967
+ .ods-btn--loading > span {
1968
+ display: block;
1969
+ height: 0;
1970
+ visibility: hidden;
1971
+ }
1972
+ .ods-btn:disabled, .ods-btn:disabled .ods-btn:hover {
1973
+ background-color: #ebecf5;
1974
+ color: #b6b9cc;
1975
+ cursor: not-allowed;
1976
+ }
1955
1977
 
1956
1978
  .ods-icon-btn {
1957
1979
  align-items: center;
@@ -2174,80 +2196,57 @@
2174
2196
  font-weight: 600;
2175
2197
  }
2176
2198
 
2177
- .ods-progress {
2178
- display: inline-block;
2179
- position: relative;
2199
+ .ods-progress svg {
2200
+ -webkit-animation: ods-loading-animation 0.8s linear infinite;
2201
+ animation: ods-loading-animation 0.8s linear infinite;
2180
2202
  }
2181
- .ods-progress__primary {
2182
- display: inline-block;
2183
- transform: rotate(-90deg);
2184
- transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
2203
+ .ods-progress svg circle {
2204
+ stroke: #b8c3ff;
2185
2205
  }
2186
- .ods-progress__primary svg {
2187
- display: block;
2188
- stroke-width: 8px;
2206
+ .ods-progress svg path {
2207
+ stroke: #0025e0;
2189
2208
  }
2190
- .ods-progress__primary svg circle {
2191
- stroke: rgba(255, 255, 255, 0.4);
2209
+ .ods-progress--on-color svg circle {
2210
+ stroke: #fff;
2192
2211
  }
2193
- .ods-progress__secondary {
2194
- left: 0;
2195
- position: absolute;
2196
- }
2197
- .ods-progress__secondary svg {
2198
- display: block;
2212
+ .ods-progress--on-color svg path {
2213
+ stroke: #fff;
2199
2214
  }
2200
- .ods-progress__secondary svg circle {
2201
- -webkit-animation: animate-progress 1.4s ease-in-out infinite;
2202
- animation: animate-progress 1.4s ease-in-out infinite;
2203
- display: block;
2204
- stroke: white;
2205
- stroke-dasharray: 80px, 200px;
2206
- stroke-dashoffset: 0;
2207
- stroke-width: 8px;
2208
- }
2209
- .ods-progress--md {
2215
+ .ods-progress--md svg {
2210
2216
  height: 24px;
2211
2217
  width: 24px;
2212
2218
  }
2213
- .ods-progress--sm {
2219
+ .ods-progress--sm svg {
2214
2220
  height: 16px;
2215
2221
  width: 16px;
2216
2222
  }
2217
- .ods-progress--lg {
2223
+ .ods-progress--lg svg {
2218
2224
  height: 32px;
2219
2225
  width: 32px;
2220
2226
  }
2221
-
2222
- @-webkit-keyframes animate-progress {
2227
+ @-webkit-keyframes ods-loading-animation {
2223
2228
  0% {
2224
- stroke-dasharray: 1px, 200px;
2225
- stroke-dashoffset: 0;
2229
+ transform: rotate(0deg);
2226
2230
  }
2227
- 50% {
2228
- stroke-dasharray: 100px, 200px;
2229
- stroke-dashoffset: -15px;
2231
+ 90% {
2232
+ transform: rotate(340deg);
2230
2233
  }
2231
2234
  100% {
2232
- stroke-dasharray: 100px, 200px;
2233
- stroke-dashoffset: -125px;
2235
+ transform: rotate(360deg);
2234
2236
  }
2235
2237
  }
2236
-
2237
- @keyframes animate-progress {
2238
+ @keyframes ods-loading-animation {
2238
2239
  0% {
2239
- stroke-dasharray: 1px, 200px;
2240
- stroke-dashoffset: 0;
2240
+ transform: rotate(0deg);
2241
2241
  }
2242
- 50% {
2243
- stroke-dasharray: 100px, 200px;
2244
- stroke-dashoffset: -15px;
2242
+ 90% {
2243
+ transform: rotate(340deg);
2245
2244
  }
2246
2245
  100% {
2247
- stroke-dasharray: 100px, 200px;
2248
- stroke-dashoffset: -125px;
2246
+ transform: rotate(360deg);
2249
2247
  }
2250
2248
  }
2249
+
2251
2250
  .ods-modal__overlay {
2252
2251
  background: rgba(57, 59, 71, 0.4);
2253
2252
  bottom: 0;
@@ -2438,6 +2437,80 @@
2438
2437
  white-space: nowrap;
2439
2438
  }
2440
2439
 
2440
+ .ods-badge {
2441
+ display: flex;
2442
+ font-family: "Nunito Sans";
2443
+ }
2444
+ .ods-badge__content {
2445
+ align-items: center;
2446
+ background-color: #ff726e;
2447
+ border-radius: 40px;
2448
+ box-sizing: border-box;
2449
+ color: white;
2450
+ display: flex;
2451
+ font-weight: 700;
2452
+ justify-content: center;
2453
+ white-space: nowrap;
2454
+ width: auto;
2455
+ }
2456
+ .ods-badge--medium .ods-badge__content {
2457
+ font-size: 12px;
2458
+ height: 24px;
2459
+ min-width: 24px;
2460
+ width: 24px;
2461
+ }
2462
+ .ods-badge--small .ods-badge__content {
2463
+ font-size: 10px;
2464
+ height: 16px;
2465
+ min-width: 16px;
2466
+ }
2467
+ .ods-badge--tiny .ods-badge__content {
2468
+ display: block;
2469
+ font-size: 10px;
2470
+ height: 8px;
2471
+ min-width: 8px;
2472
+ overflow: hidden;
2473
+ width: 8px;
2474
+ }
2475
+ .ods-badge--small .ods-badge__text {
2476
+ border-radius: 40px;
2477
+ box-shadow: 0 4px 10px #ff726e3d;
2478
+ padding: 0 4px;
2479
+ width: auto;
2480
+ }
2481
+ .ods-badge--overflow .ods-badge__content {
2482
+ padding: 0 4px;
2483
+ width: auto;
2484
+ }
2485
+ .ods-badge--overflow .ods-badge__content {
2486
+ padding: 0 4px;
2487
+ width: auto;
2488
+ }
2489
+ .ods-badge--brand .ods-badge__content {
2490
+ background-color: #0025e0;
2491
+ }
2492
+ .ods-badge--brand .ods-badge__text.ods-badge__content {
2493
+ box-shadow: 0 4px 10px #0025e03d;
2494
+ }
2495
+ .ods-badge--complementary .ods-badge__content {
2496
+ background-color: #13bdbd;
2497
+ }
2498
+ .ods-badge--complementary .ods-badge__text.ods-badge__content {
2499
+ box-shadow: 0 4px 10px #13bdbd3d;
2500
+ }
2501
+ .ods-badge--alert .ods-badge__content {
2502
+ background-color: #ff8a14;
2503
+ }
2504
+ .ods-badge--alert .ods-badge__text.ods-badge__content {
2505
+ box-shadow: 0 4px 10px #ff8a143d;
2506
+ }
2507
+ .ods-badge--neutral .ods-badge__content {
2508
+ background-color: #b6b9cc;
2509
+ }
2510
+ .ods-badge--neutral .ods-badge__text.ods-badge__content {
2511
+ box-shadow: 0 4px 10px #b6b9cc3d;
2512
+ }
2513
+
2441
2514
  .ods-sub-header {
2442
2515
  background-color: #f7f9ff;
2443
2516
  box-sizing: border-box;
@@ -2535,12 +2608,12 @@
2535
2608
 
2536
2609
  .ods-topbar {
2537
2610
  align-items: center;
2538
- display: grid;
2539
- flex-wrap: wrap;
2611
+ display: flex;
2612
+ flex-direction: row;
2540
2613
  font-family: "Avenir";
2541
2614
  font-size: 20px;
2542
2615
  grid-template-columns: 3rem auto 3rem;
2543
- padding: 10px 5px;
2616
+ height: 56px;
2544
2617
  width: 100%;
2545
2618
  }
2546
2619
  .ods-topbar-scroll-bar {
@@ -2562,25 +2635,42 @@
2562
2635
  color: #67697a;
2563
2636
  }
2564
2637
  .ods-topbar-extend {
2638
+ box-sizing: border-box;
2565
2639
  display: flex;
2566
- grid-template-columns: 50% 50% auto;
2640
+ flex-direction: column;
2641
+ height: 128px;
2642
+ justify-content: space-between;
2643
+ padding: 16px 16px 8px;
2567
2644
  }
2568
- .ods-topbar-extend .ods-topbar-title {
2569
- padding-top: 4rem;
2645
+ .ods-topbar-extend .ods-topbar-actions {
2646
+ display: flex;
2647
+ flex-direction: row;
2648
+ height: 72px;
2649
+ justify-content: space-between;
2650
+ width: 100%;
2570
2651
  }
2571
- .ods-topbar-extend .ods-topbar-search {
2572
- width: 50%;
2652
+ .ods-topbar-extend .ods-topbar-left {
2653
+ margin-left: 0;
2573
2654
  }
2574
- .ods-topbar-prev {
2655
+ .ods-topbar-extend .ods-topbar-right {
2656
+ margin-right: 0;
2657
+ }
2658
+ .ods-topbar-left {
2575
2659
  line-height: 0;
2576
- width: 50%;
2660
+ margin-left: 16px;
2661
+ width: 24px;
2577
2662
  }
2578
- .ods-topbar-prev svg {
2663
+ .ods-topbar-left span {
2664
+ align-items: center;
2579
2665
  cursor: pointer;
2666
+ display: flex;
2667
+ justify-content: center;
2580
2668
  }
2581
2669
  .ods-topbar-title {
2582
2670
  font-weight: 800;
2583
2671
  line-height: 1.1;
2672
+ margin-left: 16px;
2673
+ margin-right: 16px;
2584
2674
  width: 100%;
2585
2675
  }
2586
2676
  .ods-topbar-title span {
@@ -2589,11 +2679,15 @@
2589
2679
  font-size: 12px;
2590
2680
  font-weight: 600;
2591
2681
  }
2592
- .ods-topbar-search {
2682
+ .ods-topbar-right {
2593
2683
  line-height: 0;
2594
- text-align: right;
2684
+ margin-right: 16px;
2685
+ width: 24px;
2595
2686
  }
2596
- .ods-topbar-search svg {
2687
+ .ods-topbar-right span {
2688
+ align-items: center;
2597
2689
  cursor: pointer;
2690
+ display: flex;
2691
+ justify-content: center;
2598
2692
  }
2599
2693
  /*# sourceMappingURL=ocean.css.map */