@odx/ui 4.3.1 → 4.3.3

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,18 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d53870f: mainfilter button outline style fixed
8
+ - c930c9c: buttons inside datepicker and daterangepicker, select component styling
9
+
10
+ ## 4.3.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 2fa9021: Updated header component for title text truncation
15
+
3
16
  ## 4.3.1
4
17
 
5
18
  ### Patch Changes
package/charts-theme.css CHANGED
@@ -37,7 +37,7 @@
37
37
  --charts-series-purple-400: #8f32e2;
38
38
  --charts-series-violet-400: #9a0aaf;
39
39
  --charts-series-berry-400: #cb0b68;
40
- --charts-border-color: var(--odx-c-seperator);
40
+ --charts-border-color: var(--odx-c-separator);
41
41
  --charts-text-color: var(--odx-c-text);
42
42
  --charts-background-color: var(--odx-c-background-content);
43
43
  --charts-font-family: var(--odx-typography-font-family);
package/core-theme.css CHANGED
@@ -2420,6 +2420,7 @@ html body .odx-fs-italic {
2420
2420
  border-radius: var(--odx-v-border-radius);
2421
2421
  box-shadow: var(--odx-v-box-shadow-layer-1);
2422
2422
  display: block;
2423
+ max-width: var(--odx-select-max-width);
2423
2424
  min-height: inherit;
2424
2425
  }
2425
2426
  .odx-dropdown__inner {
@@ -3924,7 +3925,10 @@ html body .odx-fs-italic {
3924
3925
  display: flex;
3925
3926
  align-items: center;
3926
3927
  }
3927
- .odx-datepicker.is-readonly .odx-datepicker__trigger {
3928
+ .odx-datepicker__trigger-wrapper {
3929
+ margin: 0 0 0 auto;
3930
+ }
3931
+ .odx-datepicker.is-readonly .odx-datepicker__trigger-wrapper > .odx-button {
3928
3932
  outline-color: transparent;
3929
3933
  pointer-events: none;
3930
3934
  color: var(--odx-control-color-disabled);
@@ -3945,14 +3949,14 @@ html body .odx-fs-italic {
3945
3949
  display: flex;
3946
3950
  align-items: center;
3947
3951
  }
3948
- .odx-daterangepicker.is-readonly .odx-daterangepicker__trigger {
3952
+ .odx-daterangepicker__trigger-wrapper {
3953
+ margin: 0 0 0 auto;
3954
+ }
3955
+ .odx-daterangepicker.is-readonly .odx-daterangepicker__trigger-wrapper > .odx-button {
3949
3956
  outline-color: transparent;
3950
3957
  pointer-events: none;
3951
3958
  color: var(--odx-control-color-disabled);
3952
3959
  }
3953
- .odx-daterangepicker__trigger-wrapper {
3954
- margin: 0 0 0 auto;
3955
- }
3956
3960
  .odx-daterangepicker__mirror {
3957
3961
  height: 0;
3958
3962
  overflow: hidden;
@@ -4409,20 +4413,27 @@ html body .odx-fs-italic {
4409
4413
  min-height: auto;
4410
4414
  }
4411
4415
  .odx-header__content {
4416
+ display: none;
4412
4417
  margin-inline-end: auto;
4413
4418
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4414
4419
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4420
+ overflow: clip;
4421
+ text-overflow: ellipsis;
4422
+ white-space: nowrap;
4415
4423
  }
4416
4424
  @media (min-width: 768px) {
4417
4425
  .odx-header__content {
4418
4426
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 1);
4419
4427
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 1);
4428
+ display: block;
4429
+ overflow: hidden;
4420
4430
  }
4421
4431
  }
4422
4432
  .odx-header__title {
4423
4433
  overflow: clip;
4424
4434
  text-overflow: ellipsis;
4425
4435
  white-space: nowrap;
4436
+ overflow: hidden;
4426
4437
  }
4427
4438
  .odx-header .odx-action-group:not(:last-child) {
4428
4439
  border-inline-end: 1px solid var(--odx-c-separator);
@@ -4919,20 +4930,17 @@ html body .odx-fs-italic {
4919
4930
  .odx-mainfilter-group .odx-form-field__hint {
4920
4931
  display: none;
4921
4932
  }
4922
- .odx-mainfilter-group > .odx-button {
4933
+ .odx-mainfilter-group .odx-button {
4923
4934
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
4924
4935
  outline-offset: -1px;
4925
4936
  outline-width: var(--odx-v-outline-width);
4926
4937
  overflow: visible;
4927
4938
  position: relative;
4928
4939
  }
4929
- .odx-mainfilter-group > .odx-button:not(:focus-visible) {
4930
- outline-color: var(--odx-input-control-outline-color);
4931
- }
4932
- .odx-mainfilter-group > .odx-button:focus-visible {
4940
+ .odx-mainfilter-group .odx-button:focus-visible {
4933
4941
  background-color: var(--odx-c-focus);
4934
4942
  }
4935
- .odx-mainfilter-group > .odx-button::before {
4943
+ .odx-mainfilter-group .odx-button::before {
4936
4944
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4937
4945
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4938
4946
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
@@ -4984,25 +4992,19 @@ html body .odx-fs-italic {
4984
4992
  }
4985
4993
  .odx-mainfilter-group .odx-datepicker .odx-button,
4986
4994
  .odx-mainfilter-group .odx-daterangepicker .odx-button {
4987
- margin-top: 0;
4995
+ margin-top: 0 !important;
4988
4996
  outline: none;
4989
4997
  }
4990
4998
  .odx-mainfilter-group .odx-datepicker .odx-button::before,
4991
4999
  .odx-mainfilter-group .odx-daterangepicker .odx-button::before {
4992
5000
  content: unset;
4993
5001
  }
4994
- .odx-mainfilter-group .odx-datepicker + .odx-button,
4995
- .odx-mainfilter-group .odx-daterangepicker + .odx-button {
4996
- background-color: unset;
4997
- margin: 0 0 0 calc(var(--odx-vertical-rythm-base-size) * -0.3333);
4998
- outline: none;
4999
- }
5000
- .odx-mainfilter-group .odx-daterangepicker__trigger-wrapper .odx-button {
5001
- margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
5002
- }
5003
5002
  .odx-mainfilter-group .odx-calendar {
5004
5003
  --odx-input-control-outline-color: var(--gray-200);
5005
5004
  }
5005
+ .odx-mainfilter-group .odx-button:not(.odx-calendar .odx-button):not(:focus-visible) {
5006
+ outline-color: var(--odx-input-control-outline-color);
5007
+ }
5006
5008
 
5007
5009
  .odx-main-menu-button {
5008
5010
  color: inherit;
@@ -6093,6 +6095,7 @@ html body .odx-fs-italic {
6093
6095
 
6094
6096
  :root {
6095
6097
  --odx-select-max-height: 220px;
6098
+ --odx-select-max-width: 350px;
6096
6099
  }
6097
6100
 
6098
6101
  .odx-select__trigger {
@@ -6102,6 +6105,7 @@ html body .odx-fs-italic {
6102
6105
  flex: 1 1 100%;
6103
6106
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.25);
6104
6107
  height: 100%;
6108
+ max-width: var(--odx-select-max-width);
6105
6109
  width: 100%;
6106
6110
  }
6107
6111
  .odx-select.is-readonly .odx-select__trigger .odx-select__value {
@@ -6118,6 +6122,7 @@ html body .odx-fs-italic {
6118
6122
  white-space: nowrap;
6119
6123
  flex: 1 1 auto;
6120
6124
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
6125
+ overflow: hidden;
6121
6126
  -webkit-user-select: none;
6122
6127
  -moz-user-select: none;
6123
6128
  user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -42,7 +42,7 @@
42
42
  --charts-series-violet-400: #9a0aaf;
43
43
  --charts-series-berry-400: #cb0b68;
44
44
 
45
- --charts-border-color: var(--odx-c-seperator);
45
+ --charts-border-color: var(--odx-c-separator);
46
46
  --charts-text-color: var(--odx-c-text);
47
47
  --charts-background-color: var(--odx-c-background-content);
48
48
 
@@ -5,11 +5,15 @@
5
5
 
6
6
  @include utils.vertical-center-content();
7
7
 
8
- &__trigger {
9
- #{$root}.is-readonly & {
10
- @include utils.non-interactive();
8
+ &__trigger-wrapper {
9
+ margin: 0 0 0 auto;
11
10
 
12
- color: var(--odx-control-color-disabled);
11
+ > .odx-button {
12
+ #{$root}.is-readonly & {
13
+ @include utils.non-interactive();
14
+
15
+ color: var(--odx-control-color-disabled);
16
+ }
13
17
  }
14
18
  }
15
19
 
@@ -6,16 +6,16 @@
6
6
 
7
7
  @include utils.vertical-center-content();
8
8
 
9
- &__trigger {
10
- #{$root}.is-readonly & {
11
- @include utils.non-interactive();
12
-
13
- color: var(--odx-control-color-disabled);
14
- }
15
- }
16
-
17
9
  &__trigger-wrapper {
18
10
  margin: 0 0 0 auto;
11
+
12
+ > .odx-button {
13
+ #{$root}.is-readonly & {
14
+ @include utils.non-interactive();
15
+
16
+ color: var(--odx-control-color-disabled);
17
+ }
18
+ }
19
19
  }
20
20
 
21
21
  &__mirror {
@@ -8,6 +8,7 @@ $dropdown-open-selector: '.odx-dropdown-host[aria-expanded="true"]';
8
8
  border-radius: var(--odx-v-border-radius);
9
9
  box-shadow: var(--odx-v-box-shadow-layer-1);
10
10
  display: block;
11
+ max-width: var(--odx-select-max-width);
11
12
  min-height: inherit;
12
13
 
13
14
  &__inner {
@@ -24,12 +24,17 @@
24
24
  }
25
25
 
26
26
  &__content {
27
+ display: none;
27
28
  margin-inline-end: auto;
28
29
 
29
30
  @include dimensions.padding-x(0.5);
31
+ @include typography.prevent-text-overflow();
30
32
 
31
33
  @include breakpoints.up(tablet) {
32
34
  @include dimensions.padding-x(1);
35
+
36
+ display: block;
37
+ overflow: hidden;
33
38
  }
34
39
  }
35
40
 
@@ -37,6 +42,8 @@
37
42
  @extend .odx-title;
38
43
  @extend .odx-title-6;
39
44
  @include typography.prevent-text-overflow();
45
+
46
+ overflow: hidden;
40
47
  }
41
48
 
42
49
  .odx-action-group:not(:last-child) {
@@ -73,17 +73,13 @@
73
73
  }
74
74
  }
75
75
 
76
- > .odx-button {
76
+ .odx-button {
77
77
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
78
78
  outline-offset: -1px;
79
79
  outline-width: var(--odx-v-outline-width);
80
80
  overflow: visible;
81
81
  position: relative;
82
82
 
83
- &:not(:focus-visible) {
84
- outline-color: var(--odx-input-control-outline-color);
85
- }
86
-
87
83
  &:focus-visible {
88
84
  background-color: var(--odx-c-focus);
89
85
  }
@@ -146,28 +142,22 @@
146
142
  }
147
143
 
148
144
  .odx-button {
149
- margin-top: 0;
145
+ margin-top: 0 !important;
150
146
  outline: none;
151
147
 
152
148
  &::before {
153
149
  content: unset;
154
150
  }
155
151
  }
156
-
157
- + .odx-button {
158
- background-color: unset;
159
- margin: 0 0 0 dimensions.get-size(math.div(-8, 24));
160
- outline: none;
161
- }
162
- }
163
-
164
- .odx-daterangepicker {
165
- &__trigger-wrapper .odx-button {
166
- @include dimensions.margin(0.5, left);
167
- }
168
152
  }
169
153
 
170
154
  .odx-calendar {
171
155
  --odx-input-control-outline-color: var(--gray-200);
172
156
  }
157
+
158
+ .odx-button:not(.odx-calendar .odx-button) {
159
+ &:not(:focus-visible) {
160
+ outline-color: var(--odx-input-control-outline-color);
161
+ }
162
+ }
173
163
  }
@@ -6,6 +6,7 @@
6
6
 
7
7
  :root {
8
8
  --odx-select-max-height: 220px;
9
+ --odx-select-max-width: 350px;
9
10
  }
10
11
 
11
12
  .odx-select {
@@ -18,6 +19,7 @@
18
19
  flex: 1 1 100%;
19
20
  gap: dimensions.get-size(math.div(6, 24));
20
21
  height: 100%;
22
+ max-width: var(--odx-select-max-width);
21
23
  width: 100%;
22
24
 
23
25
  #{$root}.is-readonly & {
@@ -35,6 +37,7 @@
35
37
 
36
38
  flex: 1 1 auto;
37
39
  gap: dimensions.get-size(math.div(4, 24));
40
+ overflow: hidden;
38
41
  user-select: none;
39
42
  }
40
43