@odx/ui 4.3.5 → 4.4.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
@@ -1,5 +1,15 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cae7f1c: Add "interactive" boolean attribute to expandable list item to change the expanded state control behavior
8
+
9
+ ### Patch Changes
10
+
11
+ - 6411da5: New slot for Icon Prefix in Chip Component
12
+
3
13
  ## 4.3.5
4
14
 
5
15
  ### Patch Changes
package/core-theme.css CHANGED
@@ -3752,6 +3752,9 @@ html body .odx-fs-italic {
3752
3752
  .odx-chip--small .odx-chip__action {
3753
3753
  margin-right: calc(var(--odx-vertical-rythm-base-size) * -0.3333);
3754
3754
  }
3755
+ .odx-chip--small > .odx-icon {
3756
+ font-size: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
3757
+ }
3755
3758
  .odx-chip--medium {
3756
3759
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
3757
3760
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
@@ -3764,6 +3767,9 @@ html body .odx-fs-italic {
3764
3767
  .odx-chip--medium .odx-chip__action {
3765
3768
  margin-right: calc(var(--odx-vertical-rythm-base-size) * -0.5);
3766
3769
  }
3770
+ .odx-chip--medium > .odx-icon {
3771
+ font-size: calc(var(--odx-vertical-rythm-base-size) * 1);
3772
+ }
3767
3773
  .odx-chip--secondary {
3768
3774
  background-color: var(--odx-c-secondary);
3769
3775
  color: var(--odx-c-secondary-text);
@@ -3788,6 +3794,9 @@ html body .odx-fs-italic {
3788
3794
  background-color: var(--odx-c-confirmation);
3789
3795
  color: var(--odx-c-confirmation-text);
3790
3796
  }
3797
+ .odx-chip > .odx-icon {
3798
+ align-self: center;
3799
+ }
3791
3800
 
3792
3801
  .odx-chip-list {
3793
3802
  display: flex;
@@ -4040,6 +4049,9 @@ html body .odx-fs-italic {
4040
4049
  .odx-expandable-list-item__icon--expanded {
4041
4050
  transform: scaleY(-1);
4042
4051
  }
4052
+ .odx-expandable-list-item--interactive .odx-expandable-list-item__action {
4053
+ pointer-events: none;
4054
+ }
4043
4055
 
4044
4056
  :root {
4045
4057
  --odx-footer-min-height: calc(var(--odx-vertical-rythm-base-size) * 10);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.3.5",
3
+ "version": "4.4.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -4,7 +4,7 @@
4
4
  @use '../abstract/motion';
5
5
  @use '../abstract/typography';
6
6
 
7
- $sizes: small 1 -1, medium 1.5 0;
7
+ $sizes: (small 1 -1 math.div(16, 24), medium 1.5 0 1);
8
8
  $variants: secondary, highlight, success, danger, warning, confirmation;
9
9
 
10
10
  .odx-chip {
@@ -43,7 +43,7 @@ $variants: secondary, highlight, success, danger, warning, confirmation;
43
43
  }
44
44
  }
45
45
 
46
- @each $size, $size-factor, $font-size-factor in $sizes {
46
+ @each $size, $size-factor, $font-size-factor, $icon-size in $sizes {
47
47
  &--#{$size} {
48
48
  @include dimensions.padding-x(math.div($size-factor, 3));
49
49
  @include dimensions.line-height($size-factor);
@@ -54,6 +54,10 @@ $variants: secondary, highlight, success, danger, warning, confirmation;
54
54
  #{$root}__action {
55
55
  @include dimensions.margin(math.div($size-factor, -3), 'right');
56
56
  }
57
+
58
+ > .odx-icon {
59
+ font-size: dimensions.get-size($icon-size);
60
+ }
57
61
  }
58
62
  }
59
63
 
@@ -63,4 +67,8 @@ $variants: secondary, highlight, success, danger, warning, confirmation;
63
67
  color: var(--odx-c-#{$variant}-text);
64
68
  }
65
69
  }
70
+
71
+ > .odx-icon {
72
+ align-self: center;
73
+ }
66
74
  }
@@ -50,4 +50,10 @@
50
50
  &__icon--expanded {
51
51
  transform: scaleY(-1);
52
52
  }
53
+
54
+ &--interactive {
55
+ #{$root}__action {
56
+ pointer-events: none;
57
+ }
58
+ }
53
59
  }