@useblu/ocean-core 1.61.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,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.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
+
6
12
  # [1.61.0](https://github.com/ocean-ds/ocean-web/compare/v1.60.0...v1.61.0) (2024-06-14)
7
13
 
8
14
  ### Features
package/ocean.css CHANGED
@@ -4667,4 +4667,73 @@
4667
4667
  display: flex;
4668
4668
  min-height: 24px;
4669
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
+ }
4670
4739
  /*# sourceMappingURL=ocean.css.map */