@odx/ui 3.2.0 → 3.2.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
@@ -1,5 +1,11 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - d9e27d4: The rich list component was refactored by changing the selector from `rich-list-header` to `rich-list-item-header`. All the logic previously in `rich-list-header` has been moved to `rich-list-item` to enhance its compatibility with a disabled controller
8
+
3
9
  ## 3.2.0
4
10
 
5
11
  ### Minor Changes
package/core-theme.css CHANGED
@@ -5450,16 +5450,17 @@ html body .odx-fs-italic {
5450
5450
  display: block;
5451
5451
  }
5452
5452
 
5453
- .odx-rich-list-header {
5453
+ .odx-rich-list-item-header {
5454
5454
  align-items: center;
5455
5455
  -moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5456
5456
  column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5457
5457
  display: flex;
5458
+ flex: 1;
5458
5459
  -webkit-user-select: none;
5459
5460
  -moz-user-select: none;
5460
5461
  user-select: none;
5461
5462
  }
5462
- .odx-rich-list-header__title {
5463
+ .odx-rich-list-item-header__title {
5463
5464
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)));
5464
5465
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
5465
5466
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -5469,7 +5470,7 @@ html body .odx-fs-italic {
5469
5470
  overflow: hidden;
5470
5471
  text-align: center;
5471
5472
  }
5472
- .odx-rich-list-header__icon {
5473
+ .odx-rich-list-item-header__icon {
5473
5474
  position: relative;
5474
5475
  }
5475
5476
 
@@ -5481,13 +5482,18 @@ html body .odx-fs-italic {
5481
5482
  border-bottom: 1px solid var(--odx-input-control-outline-color);
5482
5483
  display: block;
5483
5484
  }
5484
- .odx-rich-list-item.is-disabled .odx-rich-list-header__title,
5485
- .odx-rich-list-item.is-disabled .odx-rich-list-header .odx-avatar {
5485
+ .odx-rich-list-item.is-disabled .odx-rich-list-item-header__title,
5486
+ .odx-rich-list-item.is-disabled .odx-rich-list-item-header .odx-avatar {
5486
5487
  color: var(--odx-c-text-disabled);
5487
5488
  }
5488
- .odx-rich-list-item.is-disabled .odx-rich-list-header .odx-avatar {
5489
+ .odx-rich-list-item.is-disabled .odx-rich-list-item-header .odx-avatar {
5489
5490
  filter: saturate(0);
5490
5491
  }
5492
+ .odx-rich-list-item__header {
5493
+ -moz-column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5494
+ column-gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5495
+ display: flex;
5496
+ }
5491
5497
  .odx-rich-list-item__slot {
5492
5498
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5493
5499
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
@@ -5496,10 +5502,10 @@ html body .odx-fs-italic {
5496
5502
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
5497
5503
  overflow: hidden;
5498
5504
  }
5499
- .odx-rich-list-item--empty .odx-rich-list-header__expand-button {
5505
+ .odx-rich-list-item--empty .odx-rich-list-item__expand-button {
5500
5506
  display: none;
5501
5507
  }
5502
- .odx-rich-list-item--expanded .odx-rich-list-header__icon {
5508
+ .odx-rich-list-item--expanded .odx-rich-list-item__icon {
5503
5509
  transform: scaleY(-1);
5504
5510
  }
5505
5511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -4,12 +4,13 @@
4
4
  @use '../abstract/typography';
5
5
  @use '../abstract/utils';
6
6
 
7
- .odx-rich-list-header {
7
+ .odx-rich-list-item-header {
8
8
  $root: &;
9
9
 
10
10
  align-items: center;
11
11
  column-gap: dimensions.get-size(math.div(16, 24));
12
12
  display: flex;
13
+ flex: 1;
13
14
  user-select: none;
14
15
 
15
16
  &__title {
@@ -13,16 +13,21 @@
13
13
  display: block;
14
14
 
15
15
  &.is-disabled {
16
- .odx-rich-list-header__title,
17
- .odx-rich-list-header .odx-avatar {
16
+ .odx-rich-list-item-header__title,
17
+ .odx-rich-list-item-header .odx-avatar {
18
18
  color: var(--odx-c-text-disabled);
19
19
  }
20
20
 
21
- .odx-rich-list-header .odx-avatar {
21
+ .odx-rich-list-item-header .odx-avatar {
22
22
  filter: saturate(0);
23
23
  }
24
24
  }
25
25
 
26
+ &__header {
27
+ column-gap: dimensions.get-size(math.div(16, 24));
28
+ display: flex;
29
+ }
30
+
26
31
  &__slot {
27
32
  @include dimensions.margin(math.div(8, 24), top);
28
33
  @include dimensions.padding(math.div(16, 24));
@@ -31,13 +36,13 @@
31
36
  }
32
37
 
33
38
  &--empty {
34
- .odx-rich-list-header__expand-button {
39
+ #{$root}__expand-button {
35
40
  display: none;
36
41
  }
37
42
  }
38
43
 
39
44
  &--expanded {
40
- .odx-rich-list-header__icon {
45
+ #{$root}__icon {
41
46
  transform: scaleY(-1);
42
47
  }
43
48
  }
package/scss/core.scss CHANGED
@@ -73,7 +73,7 @@ Layout
73
73
  @use 'components/rail-navigation.component';
74
74
  @use 'components/rail-navigation-item.component';
75
75
  @use 'components/rich-list.component.scss';
76
- @use 'components/rich-list-header.component.scss';
76
+ @use 'components/rich-list-item-header.component.scss';
77
77
  @use 'components/rich-list-item.component.scss';
78
78
  @use 'components/select.component';
79
79
  @use 'components/slider.component';