@useblu/ocean-core 1.61.0 → 1.62.2

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,16 @@
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.2](https://github.com/ocean-ds/ocean-web/compare/v1.62.1...v1.62.2) (2024-06-18)
7
+
8
+ **Note:** Version bump only for package @useblu/ocean-core
9
+
10
+ # [1.62.0](https://github.com/ocean-ds/ocean-web/compare/v1.61.0...v1.62.0) (2024-06-14)
11
+
12
+ ### Features
13
+
14
+ - create accordion component ([#1106](https://github.com/ocean-ds/ocean-web/issues/1106)) ([f685167](https://github.com/ocean-ds/ocean-web/commit/f685167ca6e7293670b751bc583e7f5aacc8c01a))
15
+
6
16
  # [1.61.0](https://github.com/ocean-ds/ocean-web/compare/v1.60.0...v1.61.0) (2024-06-14)
7
17
 
8
18
  ### Features
package/ocean.css CHANGED
@@ -4627,6 +4627,7 @@
4627
4627
  display: flex;
4628
4628
  gap: 8px;
4629
4629
  list-style-type: none;
4630
+ padding: 4px 0;
4630
4631
  }
4631
4632
  .ods-unordered-list-item__icon {
4632
4633
  height: 24px;
@@ -4667,4 +4668,74 @@
4667
4668
  display: flex;
4668
4669
  min-height: 24px;
4669
4670
  }
4671
+
4672
+ .ods-accordion {
4673
+ border-bottom: 1px solid #e0e2ee;
4674
+ padding: 16px 0;
4675
+ width: 100%;
4676
+ }
4677
+ .ods-accordion__header {
4678
+ align-items: center;
4679
+ background-color: transparent;
4680
+ border: hidden;
4681
+ cursor: pointer;
4682
+ display: flex;
4683
+ font-family: "Nunito Sans";
4684
+ font-size: 14px;
4685
+ font-weight: 600;
4686
+ justify-content: space-between;
4687
+ margin: 0;
4688
+ padding: 0;
4689
+ text-align: start;
4690
+ width: 100%;
4691
+ }
4692
+ .ods-accordion__header:hover {
4693
+ color: #5872f5;
4694
+ }
4695
+ .ods-accordion__header:focus {
4696
+ outline: none;
4697
+ }
4698
+ .ods-accordion__header--collapsed {
4699
+ color: #67697a;
4700
+ }
4701
+ .ods-accordion__header:not(.ods-accordion__header--collapsed) {
4702
+ color: #5872f5;
4703
+ }
4704
+ .ods-accordion__icon {
4705
+ height: 16px;
4706
+ transition: transform 0.3s ease, fill 0.3s ease;
4707
+ width: 16px;
4708
+ }
4709
+ .ods-accordion__icon--rotated {
4710
+ color: #67697a;
4711
+ }
4712
+ .ods-accordion__icon:not(.ods-accordion__icon--rotated) {
4713
+ color: #5872f5;
4714
+ transform: rotate(180deg);
4715
+ }
4716
+ .ods-accordion__header:hover .ods-accordion__icon {
4717
+ fill: #5872f5;
4718
+ }
4719
+ .ods-accordion__content {
4720
+ max-height: 0;
4721
+ overflow: hidden;
4722
+ transition: max-height 0.3s ease;
4723
+ will-change: max-height;
4724
+ }
4725
+ .ods-accordion__content--collapsed {
4726
+ max-height: 0;
4727
+ }
4728
+ .ods-accordion__content:not(.ods-accordion__content--collapsed) {
4729
+ max-height: 800px;
4730
+ transition: max-height 0.4s ease;
4731
+ }
4732
+ .ods-accordion__description {
4733
+ color: #67697a;
4734
+ font-family: "Nunito Sans";
4735
+ font-size: 12px;
4736
+ font-weight: 400;
4737
+ line-height: 21px;
4738
+ margin: 0;
4739
+ padding-top: 8px;
4740
+ }
4670
4741
  /*# sourceMappingURL=ocean.css.map */