@odx/ui 3.5.8 → 3.7.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,21 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8d72579: Added headline classes styling
8
+
9
+ ## 3.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 8993495: Added possibility to display a subtitle for radio button component
14
+
15
+ ### Patch Changes
16
+
17
+ - 4b50b62: Fixed behavior for disabled options in the selection component
18
+
3
19
  ## 3.5.8
4
20
 
5
21
  ### Patch Changes
package/core-theme.css CHANGED
@@ -663,7 +663,7 @@ html body {
663
663
  font-weight: var(--odx-typography-font-weight-normal);
664
664
  letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
665
665
  }
666
- .odx-text--small, .odx-checkbox__subtitle {
666
+ .odx-text--small, .odx-radio-button__subtitle, .odx-checkbox__subtitle {
667
667
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
668
668
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
669
669
  line-height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
@@ -676,6 +676,69 @@ html body {
676
676
  font-size: calc(var(--odx-typography-base-size) * (1*1/var(--odx-typography-negative-font-scaling-factor)*1/var(--odx-typography-negative-font-scaling-factor)));
677
677
  }
678
678
 
679
+ .odx-headline,
680
+ [class*=odx-headline-] {
681
+ color: var(--odx-c-headline);
682
+ font-weight: var(--odx-typography-font-weight-normal);
683
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
684
+ }
685
+
686
+ .odx-headline-sm {
687
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
688
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
689
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.6667);
690
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
691
+ }
692
+ @media (min-width: 480px) {
693
+ .odx-headline-sm {
694
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
695
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
696
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
697
+ }
698
+ }
699
+
700
+ .odx-headline-md {
701
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.125);
702
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.125);
703
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.75);
704
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
705
+ }
706
+ @media (min-width: 480px) {
707
+ .odx-headline-md {
708
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
709
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
710
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 3.3334);
711
+ }
712
+ }
713
+
714
+ .odx-headline-lg {
715
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
716
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0417);
717
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 1.9167);
718
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
719
+ }
720
+ @media (min-width: 480px) {
721
+ .odx-headline-lg {
722
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
723
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
724
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 4.0834);
725
+ }
726
+ }
727
+
728
+ .odx-headline-xl {
729
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
730
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
731
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 2);
732
+ font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
733
+ }
734
+ @media (min-width: 480px) {
735
+ .odx-headline-xl {
736
+ padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
737
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.4584);
738
+ line-height: calc(var(--odx-vertical-rythm-base-size) * 4.0834);
739
+ }
740
+ }
741
+
679
742
  .odx-text-list, .odx-content ol,
680
743
  .odx-content ul,
681
744
  .odx-text-list ol,
@@ -4178,6 +4241,7 @@ html body .odx-fs-italic {
4178
4241
  }
4179
4242
  .odx-form-field__control > textarea {
4180
4243
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.25);
4244
+ padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.25);
4181
4245
  height: calc(var(--odx-vertical-rythm-base-size) * 3);
4182
4246
  resize: vertical;
4183
4247
  }
@@ -5418,11 +5482,13 @@ html body .odx-fs-italic {
5418
5482
  font-weight: var(--odx-typography-font-weight-normal);
5419
5483
  letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
5420
5484
  border-radius: var(--odx-v-border-radius-controls);
5421
- cursor: pointer;
5422
5485
  -webkit-user-select: none;
5423
5486
  -moz-user-select: none;
5424
5487
  user-select: none;
5425
5488
  }
5489
+ .odx-option:not(.is-disabled) {
5490
+ cursor: pointer;
5491
+ }
5426
5492
  .odx-option:last-child {
5427
5493
  margin-bottom: 0;
5428
5494
  }
@@ -5430,7 +5496,7 @@ html body .odx-fs-italic {
5430
5496
  background-color: var(--gray-50);
5431
5497
  }
5432
5498
  @media (hover: hover){
5433
- .odx-option:hover {
5499
+ .odx-option:hover:not(.is-disabled) {
5434
5500
  background-color: var(--gray-50);
5435
5501
  }
5436
5502
  }
@@ -5439,7 +5505,6 @@ html body .odx-fs-italic {
5439
5505
  }
5440
5506
  .odx-option.is-disabled {
5441
5507
  color: var(--odx-control-color-disabled);
5442
- pointer-events: none;
5443
5508
  }
5444
5509
  .odx-option > .odx-checkbox {
5445
5510
  margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
@@ -5626,6 +5691,8 @@ html body .odx-fs-italic {
5626
5691
  }
5627
5692
  .odx-radio-button__content {
5628
5693
  margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
5694
+ display: flex;
5695
+ flex-direction: column;
5629
5696
  padding-left: 2px;
5630
5697
  }
5631
5698
  .odx-radio-button__content:empty {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.5.8",
3
+ "version": "3.7.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -137,7 +137,7 @@ $form-field-inner-padding: math.div(8, 24);
137
137
  }
138
138
 
139
139
  > textarea {
140
- @include dimensions.padding(0.25, top);
140
+ @include dimensions.padding-y(0.25);
141
141
 
142
142
  height: dimensions.get-size(3);
143
143
  resize: vertical;
@@ -11,15 +11,18 @@
11
11
  @include typography.font-weight(normal);
12
12
 
13
13
  border-radius: var(--odx-v-border-radius-controls);
14
- cursor: pointer;
15
14
  user-select: none;
16
15
 
16
+ &:not(.is-disabled) {
17
+ cursor: pointer;
18
+ }
19
+
17
20
  &:last-child {
18
21
  margin-bottom: 0;
19
22
  }
20
23
 
21
24
  &.is-active,
22
- &:hover {
25
+ &:hover:not(.is-disabled) {
23
26
  background-color: var(--gray-50);
24
27
  }
25
28
 
@@ -29,7 +32,6 @@
29
32
 
30
33
  &.is-disabled {
31
34
  color: var(--odx-control-color-disabled);
32
- pointer-events: none;
33
35
  }
34
36
 
35
37
  > .odx-checkbox {
@@ -3,6 +3,7 @@
3
3
  @use '../abstract/typography';
4
4
  @use '../abstract/utils';
5
5
  @use '../abstract/motion';
6
+ @use '../layout/typography' as *;
6
7
 
7
8
  .odx-radio-button {
8
9
  $root: &;
@@ -42,6 +43,10 @@
42
43
  }
43
44
  }
44
45
 
46
+ &__subtitle {
47
+ @extend .odx-text--small;
48
+ }
49
+
45
50
  &__input {
46
51
  @include utils.visually-hidden();
47
52
  }
@@ -110,6 +115,8 @@
110
115
  &__content {
111
116
  @include dimensions.margin(0.5, left);
112
117
 
118
+ display: flex;
119
+ flex-direction: column;
113
120
  padding-left: 2px;
114
121
 
115
122
  &:empty {
@@ -112,3 +112,46 @@ html body {
112
112
  @include typography.font-size(-2);
113
113
  }
114
114
  }
115
+
116
+ .odx-headline,
117
+ [class*='odx-headline-'] {
118
+ color: var(--odx-c-headline);
119
+
120
+ @include typography.font-weight(normal);
121
+ }
122
+
123
+ .odx-headline-sm {
124
+ @include dimensions.line-height(2, math.div(40, 24));
125
+ @include typography.font-size(5);
126
+
127
+ @include breakpoints.up(phone) {
128
+ @include dimensions.line-height(3, math.div(64, 24));
129
+ }
130
+ }
131
+
132
+ .odx-headline-md {
133
+ @include dimensions.line-height(2, math.div(42, 24));
134
+ @include typography.font-size(6);
135
+
136
+ @include breakpoints.up(phone) {
137
+ @include dimensions.line-height(4, math.div(80, 24));
138
+ }
139
+ }
140
+
141
+ .odx-headline-lg {
142
+ @include dimensions.line-height(2, math.div(46, 24));
143
+ @include typography.font-size(7);
144
+
145
+ @include breakpoints.up(phone) {
146
+ @include dimensions.line-height(5, math.div(98, 24));
147
+ }
148
+ }
149
+
150
+ .odx-headline-xl {
151
+ @include dimensions.line-height(2);
152
+ @include typography.font-size(8);
153
+
154
+ @include breakpoints.up(phone) {
155
+ @include dimensions.line-height(5, math.div(98, 24));
156
+ }
157
+ }