@odx/ui 3.2.1 → 3.2.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
@@ -1,5 +1,12 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 3eb8c54: Large variant for button component
8
+ - b3993a0: New condensed variant to rich-list component to set vrtical padding to 0 for list items
9
+
3
10
  ## 3.2.1
4
11
 
5
12
  ### Patch Changes
package/core-theme.css CHANGED
@@ -2635,6 +2635,24 @@ html body .odx-fs-italic {
2635
2635
  .odx-button--small > .odx-icon[alignRight] {
2636
2636
  margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
2637
2637
  }
2638
+ .odx-button--large {
2639
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
2640
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
2641
+ height: calc(var(--odx-vertical-rythm-base-size) * 2);
2642
+ padding-right: calc(var(--odx-vertical-rythm-base-size) * 1);
2643
+ padding-left: calc(var(--odx-vertical-rythm-base-size) * 1);
2644
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)));
2645
+ }
2646
+ .odx-button--large > .odx-icon {
2647
+ margin-right: calc(var(--odx-vertical-rythm-base-size) * -0.3333);
2648
+ margin-left: calc(var(--odx-vertical-rythm-base-size) * -0.3333);
2649
+ }
2650
+ .odx-button--large > .odx-icon[alignLeft] {
2651
+ margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
2652
+ }
2653
+ .odx-button--large > .odx-icon[alignRight] {
2654
+ margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
2655
+ }
2638
2656
 
2639
2657
  .odx-action-group {
2640
2658
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
@@ -5475,13 +5493,15 @@ html body .odx-fs-italic {
5475
5493
  }
5476
5494
 
5477
5495
  .odx-rich-list-item {
5478
- padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5479
5496
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5480
- padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5481
5497
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5482
5498
  border-bottom: 1px solid var(--odx-input-control-outline-color);
5483
5499
  display: block;
5484
5500
  }
5501
+ .odx-rich-list:not(.odx-rich-list--condensed) > .odx-rich-list-item {
5502
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5503
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
5504
+ }
5485
5505
  .odx-rich-list-item.is-disabled .odx-rich-list-item-header__title,
5486
5506
  .odx-rich-list-item.is-disabled .odx-rich-list-item-header .odx-avatar {
5487
5507
  color: var(--odx-c-text-disabled);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -147,4 +147,24 @@
147
147
  @include dimensions.margin($icon-margin, left);
148
148
  }
149
149
  }
150
+
151
+ &--large {
152
+ $icon-margin: 0.5;
153
+
154
+ @include dimensions.height(2, 2);
155
+ @include dimensions.padding-x(2 * $icon-margin);
156
+ @include typography.font-size(1);
157
+
158
+ > .odx-icon {
159
+ @include dimensions.margin-x(-$icon-margin * math.div(2, 3));
160
+ }
161
+
162
+ > .odx-icon[alignLeft] {
163
+ @include dimensions.margin($icon-margin * math.div(2, 3), right);
164
+ }
165
+
166
+ > .odx-icon[alignRight] {
167
+ @include dimensions.margin($icon-margin * math.div(2, 3), left);
168
+ }
169
+ }
150
170
  }
@@ -6,8 +6,13 @@
6
6
 
7
7
  .odx-rich-list-item {
8
8
  $root: &;
9
+ $parent: odx-rich-list;
9
10
 
10
- @include dimensions.padding(math.div(8, 24));
11
+ @include dimensions.padding-x(math.div(8, 24));
12
+
13
+ .#{$parent}:not(.#{$parent}--condensed) > & {
14
+ @include dimensions.padding-y(math.div(8, 24));
15
+ }
11
16
 
12
17
  border-bottom: 1px solid var(--odx-input-control-outline-color);
13
18
  display: block;