@useblu/ocean-core 1.27.3 → 1.29.1

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.29.1](https://github.com/ocean-ds/ocean-web/compare/v1.29.0...v1.29.1) (2022-02-24)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **button:** add hover transition to icon button variant. ([#923](https://github.com/ocean-ds/ocean-web/issues/923)) ([c3b94d6](https://github.com/ocean-ds/ocean-web/commit/c3b94d66f278a286c76731c5114562da0a671b30))
11
+
12
+ # [1.29.0](https://github.com/ocean-ds/ocean-web/compare/v1.28.0...v1.29.0) (2022-02-24)
13
+
14
+ ### Features
15
+
16
+ - **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))
17
+
18
+ # [1.28.0](https://github.com/ocean-ds/ocean-web/compare/v1.27.3...v1.28.0) (2022-02-23)
19
+
20
+ ### Features
21
+
22
+ - **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))
23
+
6
24
  ## [1.27.3](https://github.com/ocean-ds/ocean-web/compare/v1.27.2...v1.27.3) (2022-02-15)
7
25
 
8
26
  **Note:** Version bump only for package @useblu/ocean-core
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;
@@ -1868,6 +1868,7 @@
1868
1868
  line-height: 1;
1869
1869
  outline: none;
1870
1870
  text-align: center;
1871
+ transition: background-color 0.1s ease-out;
1871
1872
  }
1872
1873
  .ods-btn--sm {
1873
1874
  font-size: 14px;
@@ -1890,11 +1891,6 @@
1890
1891
  padding-left: 32px;
1891
1892
  padding-right: 32px;
1892
1893
  }
1893
- .ods-btn:disabled {
1894
- background-color: #ebecf5;
1895
- color: #b6b9cc;
1896
- cursor: not-allowed;
1897
- }
1898
1894
  .ods-btn--primary {
1899
1895
  background-color: #0025e0;
1900
1896
  color: white;
@@ -1968,6 +1964,16 @@
1968
1964
  .ods-btn--blocked {
1969
1965
  width: 100%;
1970
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
+ }
1971
1977
 
1972
1978
  .ods-icon-btn {
1973
1979
  align-items: center;
@@ -1980,6 +1986,7 @@
1980
1986
  justify-content: center;
1981
1987
  line-height: 1;
1982
1988
  outline: none;
1989
+ transition: background-color 0.1s ease-out;
1983
1990
  width: 48px;
1984
1991
  }
1985
1992
  .ods-icon-btn:hover, .ods-icon-btn:focus {
@@ -2190,80 +2197,57 @@
2190
2197
  font-weight: 600;
2191
2198
  }
2192
2199
 
2193
- .ods-progress {
2194
- display: inline-block;
2195
- position: relative;
2196
- }
2197
- .ods-progress__primary {
2198
- display: inline-block;
2199
- transform: rotate(-90deg);
2200
- transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
2201
- }
2202
- .ods-progress__primary svg {
2203
- display: block;
2204
- stroke-width: 8px;
2200
+ .ods-progress svg {
2201
+ -webkit-animation: ods-loading-animation 0.8s linear infinite;
2202
+ animation: ods-loading-animation 0.8s linear infinite;
2205
2203
  }
2206
- .ods-progress__primary svg circle {
2207
- stroke: rgba(255, 255, 255, 0.4);
2204
+ .ods-progress svg circle {
2205
+ stroke: #b8c3ff;
2208
2206
  }
2209
- .ods-progress__secondary {
2210
- left: 0;
2211
- position: absolute;
2207
+ .ods-progress svg path {
2208
+ stroke: #0025e0;
2212
2209
  }
2213
- .ods-progress__secondary svg {
2214
- display: block;
2210
+ .ods-progress--on-color svg circle {
2211
+ stroke: #fff;
2215
2212
  }
2216
- .ods-progress__secondary svg circle {
2217
- -webkit-animation: animate-progress 1.4s ease-in-out infinite;
2218
- animation: animate-progress 1.4s ease-in-out infinite;
2219
- display: block;
2220
- stroke: white;
2221
- stroke-dasharray: 80px, 200px;
2222
- stroke-dashoffset: 0;
2223
- stroke-width: 8px;
2213
+ .ods-progress--on-color svg path {
2214
+ stroke: #fff;
2224
2215
  }
2225
- .ods-progress--md {
2216
+ .ods-progress--md svg {
2226
2217
  height: 24px;
2227
2218
  width: 24px;
2228
2219
  }
2229
- .ods-progress--sm {
2220
+ .ods-progress--sm svg {
2230
2221
  height: 16px;
2231
2222
  width: 16px;
2232
2223
  }
2233
- .ods-progress--lg {
2224
+ .ods-progress--lg svg {
2234
2225
  height: 32px;
2235
2226
  width: 32px;
2236
2227
  }
2237
-
2238
- @-webkit-keyframes animate-progress {
2228
+ @-webkit-keyframes ods-loading-animation {
2239
2229
  0% {
2240
- stroke-dasharray: 1px, 200px;
2241
- stroke-dashoffset: 0;
2230
+ transform: rotate(0deg);
2242
2231
  }
2243
- 50% {
2244
- stroke-dasharray: 100px, 200px;
2245
- stroke-dashoffset: -15px;
2232
+ 90% {
2233
+ transform: rotate(340deg);
2246
2234
  }
2247
2235
  100% {
2248
- stroke-dasharray: 100px, 200px;
2249
- stroke-dashoffset: -125px;
2236
+ transform: rotate(360deg);
2250
2237
  }
2251
2238
  }
2252
-
2253
- @keyframes animate-progress {
2239
+ @keyframes ods-loading-animation {
2254
2240
  0% {
2255
- stroke-dasharray: 1px, 200px;
2256
- stroke-dashoffset: 0;
2241
+ transform: rotate(0deg);
2257
2242
  }
2258
- 50% {
2259
- stroke-dasharray: 100px, 200px;
2260
- stroke-dashoffset: -15px;
2243
+ 90% {
2244
+ transform: rotate(340deg);
2261
2245
  }
2262
2246
  100% {
2263
- stroke-dasharray: 100px, 200px;
2264
- stroke-dashoffset: -125px;
2247
+ transform: rotate(360deg);
2265
2248
  }
2266
2249
  }
2250
+
2267
2251
  .ods-modal__overlay {
2268
2252
  background: rgba(57, 59, 71, 0.4);
2269
2253
  bottom: 0;
@@ -2454,6 +2438,80 @@
2454
2438
  white-space: nowrap;
2455
2439
  }
2456
2440
 
2441
+ .ods-badge {
2442
+ display: flex;
2443
+ font-family: "Nunito Sans";
2444
+ }
2445
+ .ods-badge__content {
2446
+ align-items: center;
2447
+ background-color: #ff726e;
2448
+ border-radius: 40px;
2449
+ box-sizing: border-box;
2450
+ color: white;
2451
+ display: flex;
2452
+ font-weight: 700;
2453
+ justify-content: center;
2454
+ white-space: nowrap;
2455
+ width: auto;
2456
+ }
2457
+ .ods-badge--medium .ods-badge__content {
2458
+ font-size: 12px;
2459
+ height: 24px;
2460
+ min-width: 24px;
2461
+ width: 24px;
2462
+ }
2463
+ .ods-badge--small .ods-badge__content {
2464
+ font-size: 10px;
2465
+ height: 16px;
2466
+ min-width: 16px;
2467
+ }
2468
+ .ods-badge--tiny .ods-badge__content {
2469
+ display: block;
2470
+ font-size: 10px;
2471
+ height: 8px;
2472
+ min-width: 8px;
2473
+ overflow: hidden;
2474
+ width: 8px;
2475
+ }
2476
+ .ods-badge--small .ods-badge__text {
2477
+ border-radius: 40px;
2478
+ box-shadow: 0 4px 10px #ff726e3d;
2479
+ padding: 0 4px;
2480
+ width: auto;
2481
+ }
2482
+ .ods-badge--overflow .ods-badge__content {
2483
+ padding: 0 4px;
2484
+ width: auto;
2485
+ }
2486
+ .ods-badge--overflow .ods-badge__content {
2487
+ padding: 0 4px;
2488
+ width: auto;
2489
+ }
2490
+ .ods-badge--brand .ods-badge__content {
2491
+ background-color: #0025e0;
2492
+ }
2493
+ .ods-badge--brand .ods-badge__text.ods-badge__content {
2494
+ box-shadow: 0 4px 10px #0025e03d;
2495
+ }
2496
+ .ods-badge--complementary .ods-badge__content {
2497
+ background-color: #13bdbd;
2498
+ }
2499
+ .ods-badge--complementary .ods-badge__text.ods-badge__content {
2500
+ box-shadow: 0 4px 10px #13bdbd3d;
2501
+ }
2502
+ .ods-badge--alert .ods-badge__content {
2503
+ background-color: #ff8a14;
2504
+ }
2505
+ .ods-badge--alert .ods-badge__text.ods-badge__content {
2506
+ box-shadow: 0 4px 10px #ff8a143d;
2507
+ }
2508
+ .ods-badge--neutral .ods-badge__content {
2509
+ background-color: #b6b9cc;
2510
+ }
2511
+ .ods-badge--neutral .ods-badge__text.ods-badge__content {
2512
+ box-shadow: 0 4px 10px #b6b9cc3d;
2513
+ }
2514
+
2457
2515
  .ods-sub-header {
2458
2516
  background-color: #f7f9ff;
2459
2517
  box-sizing: border-box;