@odx/ui 4.3.2 → 4.3.4

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,19 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 4.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 20ab0c2: main menu overlapping is fixed, main menu is popover based element
8
+ - 88191e2: box shadow for main menu fixed
9
+
10
+ ## 4.3.3
11
+
12
+ ### Patch Changes
13
+
14
+ - d53870f: mainfilter button outline style fixed
15
+ - c930c9c: buttons inside datepicker and daterangepicker, select component styling
16
+
3
17
  ## 4.3.2
4
18
 
5
19
  ### 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;
@@ -4926,20 +4930,17 @@ html body .odx-fs-italic {
4926
4930
  .odx-mainfilter-group .odx-form-field__hint {
4927
4931
  display: none;
4928
4932
  }
4929
- .odx-mainfilter-group > .odx-button {
4933
+ .odx-mainfilter-group .odx-button {
4930
4934
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
4931
4935
  outline-offset: -1px;
4932
4936
  outline-width: var(--odx-v-outline-width);
4933
4937
  overflow: visible;
4934
4938
  position: relative;
4935
4939
  }
4936
- .odx-mainfilter-group > .odx-button:not(:focus-visible) {
4937
- outline-color: var(--odx-input-control-outline-color);
4938
- }
4939
- .odx-mainfilter-group > .odx-button:focus-visible {
4940
+ .odx-mainfilter-group .odx-button:focus-visible {
4940
4941
  background-color: var(--odx-c-focus);
4941
4942
  }
4942
- .odx-mainfilter-group > .odx-button::before {
4943
+ .odx-mainfilter-group .odx-button::before {
4943
4944
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4944
4945
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4945
4946
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
@@ -4991,26 +4992,19 @@ html body .odx-fs-italic {
4991
4992
  }
4992
4993
  .odx-mainfilter-group .odx-datepicker .odx-button,
4993
4994
  .odx-mainfilter-group .odx-daterangepicker .odx-button {
4994
- margin-top: 0;
4995
+ margin-top: 0 !important;
4995
4996
  outline: none;
4996
4997
  }
4997
4998
  .odx-mainfilter-group .odx-datepicker .odx-button::before,
4998
4999
  .odx-mainfilter-group .odx-daterangepicker .odx-button::before {
4999
5000
  content: unset;
5000
5001
  }
5001
- .odx-mainfilter-group .odx-datepicker + .odx-button,
5002
- .odx-mainfilter-group .odx-daterangepicker + .odx-button {
5003
- background-color: unset;
5004
- margin: 0 0 0 calc(var(--odx-vertical-rythm-base-size) * -0.3333);
5005
- outline: none;
5006
- z-index: 1;
5007
- }
5008
- .odx-mainfilter-group .odx-daterangepicker__trigger-wrapper .odx-button {
5009
- margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
5010
- }
5011
5002
  .odx-mainfilter-group .odx-calendar {
5012
5003
  --odx-input-control-outline-color: var(--gray-200);
5013
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
+ }
5014
5008
 
5015
5009
  .odx-main-menu-button {
5016
5010
  color: inherit;
@@ -5111,32 +5105,36 @@ html body .odx-fs-italic {
5111
5105
  .odx-main-menu {
5112
5106
  --odx-area-header-title-color: var(--odx-main-menu-text-color);
5113
5107
  --odx-area-header-subtitle-color: var(--odx-main-menu-text-color);
5114
- z-index: var(--odx-v-layer-6);
5115
5108
  }
5116
5109
  .odx-main-menu__inner {
5110
+ transition-delay: 0ms;
5111
+ transition-duration: var(--odx-v-transition-duration);
5112
+ transition-property: transform;
5113
+ transition-timing-function: var(--odx-v-transition-easing-fn);
5117
5114
  background-color: var(--odx-main-menu-background-color);
5115
+ box-shadow: var(--odx-v-box-shadow-layer-1);
5118
5116
  color: var(--odx-main-menu-text-color);
5119
5117
  display: grid;
5120
5118
  grid-template-rows: auto auto 1fr auto auto;
5121
5119
  height: 100%;
5122
- left: 0;
5123
5120
  max-height: 100dvh;
5124
5121
  max-width: var(--odx-main-menu-max-width);
5125
- position: fixed;
5126
- top: 0;
5122
+ transform: translateX(-100%);
5123
+ transition-behavior: allow-discrete;
5127
5124
  width: 100%;
5128
- z-index: var(--odx-v-layer-6);
5129
5125
  }
5130
- .odx-main-menu__overlay {
5126
+ .odx-main-menu__inner::backdrop {
5131
5127
  -webkit-backdrop-filter: blur(var(--odx-v-backdrop-blur));
5132
5128
  backdrop-filter: blur(var(--odx-v-backdrop-blur));
5133
5129
  background-color: var(--odx-c-backdrop);
5134
- height: 100%;
5135
- left: 0;
5136
- position: fixed;
5137
- top: 0;
5138
- width: 100%;
5139
- z-index: calc(var(--odx-v-layer-6) - 1);
5130
+ }
5131
+ .odx-main-menu__inner:popover-open {
5132
+ transform: translateX(0);
5133
+ }
5134
+ @starting-style {
5135
+ .odx-main-menu__inner:popover-open {
5136
+ transform: translateX(-100%);
5137
+ }
5140
5138
  }
5141
5139
  .odx-main-menu__actions {
5142
5140
  margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
@@ -6101,6 +6099,7 @@ html body .odx-fs-italic {
6101
6099
 
6102
6100
  :root {
6103
6101
  --odx-select-max-height: 220px;
6102
+ --odx-select-max-width: 350px;
6104
6103
  }
6105
6104
 
6106
6105
  .odx-select__trigger {
@@ -6110,6 +6109,7 @@ html body .odx-fs-italic {
6110
6109
  flex: 1 1 100%;
6111
6110
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.25);
6112
6111
  height: 100%;
6112
+ max-width: var(--odx-select-max-width);
6113
6113
  width: 100%;
6114
6114
  }
6115
6115
  .odx-select.is-readonly .odx-select__trigger .odx-select__value {
@@ -6126,6 +6126,7 @@ html body .odx-fs-italic {
6126
6126
  white-space: nowrap;
6127
6127
  flex: 1 1 auto;
6128
6128
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
6129
+ overflow: hidden;
6129
6130
  -webkit-user-select: none;
6130
6131
  -moz-user-select: none;
6131
6132
  user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "4.3.2",
3
+ "version": "4.3.4",
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 {
@@ -3,6 +3,7 @@
3
3
  @use '../abstract/dimensions';
4
4
  @use '../abstract/utils';
5
5
  @use '../abstract/typography';
6
+ @use '../abstract/motion';
6
7
  @use 'button.component';
7
8
  @use 'main-menu-button.component';
8
9
  @use 'main-menu-item.component';
@@ -28,32 +29,35 @@
28
29
  --odx-area-header-title-color: var(--odx-main-menu-text-color);
29
30
  --odx-area-header-subtitle-color: var(--odx-main-menu-text-color);
30
31
 
31
- z-index: var(--odx-v-layer-6);
32
-
33
32
  &__inner {
33
+ @include motion.transition(transform);
34
+
34
35
  background-color: var(--odx-main-menu-background-color);
36
+ box-shadow: var(--odx-v-box-shadow-layer-1);
35
37
  color: var(--odx-main-menu-text-color);
36
38
  display: grid;
37
39
  grid-template-rows: auto auto 1fr auto auto;
38
40
  height: 100%;
39
- left: 0;
40
41
  max-height: 100dvh;
41
42
  max-width: var(--odx-main-menu-max-width);
42
- position: fixed;
43
- top: 0;
43
+ transform: translateX(-100%);
44
+ transition-behavior: allow-discrete;
44
45
  width: 100%;
45
- z-index: var(--odx-v-layer-6);
46
+
47
+ &::backdrop {
48
+ backdrop-filter: blur(var(--odx-v-backdrop-blur));
49
+ background-color: var(--odx-c-backdrop);
50
+ }
51
+
52
+ &:popover-open {
53
+ transform: translateX(0);
54
+ }
46
55
  }
47
56
 
48
- &__overlay {
49
- backdrop-filter: blur(var(--odx-v-backdrop-blur));
50
- background-color: var(--odx-c-backdrop);
51
- height: 100%;
52
- left: 0;
53
- position: fixed;
54
- top: 0;
55
- width: 100%;
56
- z-index: calc(var(--odx-v-layer-6) - 1);
57
+ @starting-style {
58
+ &__inner:popover-open {
59
+ transform: translateX(-100%);
60
+ }
57
61
  }
58
62
 
59
63
  &__actions {
@@ -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,29 +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
- z-index: 1;
162
- }
163
- }
164
-
165
- .odx-daterangepicker {
166
- &__trigger-wrapper .odx-button {
167
- @include dimensions.margin(0.5, left);
168
- }
169
152
  }
170
153
 
171
154
  .odx-calendar {
172
155
  --odx-input-control-outline-color: var(--gray-200);
173
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
+ }
174
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