@useblu/ocean-core 1.60.0 → 1.62.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.62.0](https://github.com/ocean-ds/ocean-web/compare/v1.61.0...v1.62.0) (2024-06-14)
7
+
8
+ ### Features
9
+
10
+ - create accordion component ([#1106](https://github.com/ocean-ds/ocean-web/issues/1106)) ([f685167](https://github.com/ocean-ds/ocean-web/commit/f685167ca6e7293670b751bc583e7f5aacc8c01a))
11
+
12
+ # [1.61.0](https://github.com/ocean-ds/ocean-web/compare/v1.60.0...v1.61.0) (2024-06-14)
13
+
14
+ ### Features
15
+
16
+ - drawer ([#1105](https://github.com/ocean-ds/ocean-web/issues/1105)) ([1c749e0](https://github.com/ocean-ds/ocean-web/commit/1c749e011aa19acf67f1deb0cc15e47618f40e3f))
17
+
6
18
  # [1.60.0](https://github.com/ocean-ds/ocean-web/compare/v1.59.3...v1.60.0) (2024-06-13)
7
19
 
8
20
  ### Features
package/ocean.css CHANGED
@@ -3934,8 +3934,13 @@
3934
3934
  top: 0;
3935
3935
  transition: all 335ms ease-out 0ms;
3936
3936
  visibility: hidden;
3937
+ }
3938
+ .ods-drawer--small {
3937
3939
  width: 378px;
3938
3940
  }
3941
+ .ods-drawer--large {
3942
+ width: 476px;
3943
+ }
3939
3944
  .ods-drawer--right {
3940
3945
  left: auto;
3941
3946
  right: 0;
@@ -3964,7 +3969,7 @@
3964
3969
 
3965
3970
  .ods-drawer__content--header {
3966
3971
  display: flex;
3967
- height: 48px;
3972
+ min-height: 48px;
3968
3973
  padding: 0 24px;
3969
3974
  }
3970
3975
  .ods-drawer__content--header--left {
@@ -3990,6 +3995,11 @@
3990
3995
  .ods-drawer__content--header .ods-btn--primary:hover {
3991
3996
  background-color: white;
3992
3997
  }
3998
+ @media (max-width: 767px) {
3999
+ .ods-drawer__content--header {
4000
+ padding: 0 16px;
4001
+ }
4002
+ }
3993
4003
 
3994
4004
  .ods-snackbar {
3995
4005
  align-items: center;
@@ -4657,4 +4667,73 @@
4657
4667
  display: flex;
4658
4668
  min-height: 24px;
4659
4669
  }
4670
+
4671
+ .ods-accordion {
4672
+ border-bottom: 1px solid #e0e2ee;
4673
+ padding: 16px 0;
4674
+ width: 100%;
4675
+ }
4676
+ .ods-accordion__header {
4677
+ align-items: center;
4678
+ background-color: transparent;
4679
+ border: hidden;
4680
+ cursor: pointer;
4681
+ display: flex;
4682
+ font-family: "Nunito Sans";
4683
+ font-size: 14px;
4684
+ font-weight: 600;
4685
+ justify-content: space-between;
4686
+ margin: 0;
4687
+ padding: 0;
4688
+ width: 100%;
4689
+ }
4690
+ .ods-accordion__header:hover {
4691
+ color: #5872f5;
4692
+ }
4693
+ .ods-accordion__header:focus {
4694
+ outline: none;
4695
+ }
4696
+ .ods-accordion__header--collapsed {
4697
+ color: #67697a;
4698
+ }
4699
+ .ods-accordion__header:not(.ods-accordion__header--collapsed) {
4700
+ color: #5872f5;
4701
+ }
4702
+ .ods-accordion__icon {
4703
+ height: 16px;
4704
+ transition: transform 0.3s ease, fill 0.3s ease;
4705
+ width: 16px;
4706
+ }
4707
+ .ods-accordion__icon--rotated {
4708
+ color: #67697a;
4709
+ }
4710
+ .ods-accordion__icon:not(.ods-accordion__icon--rotated) {
4711
+ color: #5872f5;
4712
+ transform: rotate(180deg);
4713
+ }
4714
+ .ods-accordion__header:hover .ods-accordion__icon {
4715
+ fill: #5872f5;
4716
+ }
4717
+ .ods-accordion__content {
4718
+ max-height: 0;
4719
+ overflow: hidden;
4720
+ transition: max-height 0.3s ease;
4721
+ will-change: max-height;
4722
+ }
4723
+ .ods-accordion__content--collapsed {
4724
+ max-height: 0;
4725
+ }
4726
+ .ods-accordion__content:not(.ods-accordion__content--collapsed) {
4727
+ max-height: 800px;
4728
+ transition: max-height 0.4s ease;
4729
+ }
4730
+ .ods-accordion__description {
4731
+ color: #67697a;
4732
+ font-family: "Nunito Sans";
4733
+ font-size: 12px;
4734
+ font-weight: 400;
4735
+ line-height: 21px;
4736
+ margin: 0;
4737
+ padding-top: 8px;
4738
+ }
4660
4739
  /*# sourceMappingURL=ocean.css.map */