@odx/ui 3.8.0 → 3.9.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,11 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 32bc292: Added possibility for datepicker and daterangepicker to be included in main filter group
8
+
3
9
  ## 3.8.0
4
10
 
5
11
  ### Minor Changes
package/core-theme.css CHANGED
@@ -4856,9 +4856,13 @@ html body .odx-fs-italic {
4856
4856
  min-width: calc(var(--odx-vertical-rythm-base-size) * 7.1667);
4857
4857
  }
4858
4858
  .odx-mainfilter-group .odx-form-field__label {
4859
+ padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4860
+ padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4861
+ background-color: var(--odx-input-control-background-color);
4859
4862
  margin-top: 0;
4860
4863
  position: absolute;
4861
4864
  right: 0;
4865
+ right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
4862
4866
  top: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4863
4867
  z-index: 1;
4864
4868
  }
@@ -4866,11 +4870,8 @@ html body .odx-fs-italic {
4866
4870
  right: calc(var(--odx-vertical-rythm-base-size) * 1.5);
4867
4871
  }
4868
4872
  .odx-mainfilter-group .odx-form-field-label {
4869
- padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4870
- padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.125);
4871
4873
  padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4872
4874
  padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
4873
- background-color: var(--odx-input-control-background-color);
4874
4875
  border-radius: var(--odx-v-border-radius-controls);
4875
4876
  display: inline-block;
4876
4877
  font-size: calc(var(--odx-vertical-rythm-base-size) * 0.4167);
@@ -4938,6 +4939,25 @@ html body .odx-fs-italic {
4938
4939
  background-color: transparent;
4939
4940
  }
4940
4941
  }
4942
+ .odx-mainfilter-group .odx-datepicker > .odx-action-group,
4943
+ .odx-mainfilter-group .odx-daterangepicker > .odx-action-group {
4944
+ z-index: 1;
4945
+ }
4946
+ .odx-mainfilter-group .odx-datepicker .odx-button,
4947
+ .odx-mainfilter-group .odx-daterangepicker .odx-button {
4948
+ margin-top: 0;
4949
+ outline: none;
4950
+ }
4951
+ .odx-mainfilter-group .odx-datepicker .odx-button::before,
4952
+ .odx-mainfilter-group .odx-daterangepicker .odx-button::before {
4953
+ content: unset;
4954
+ }
4955
+ .odx-mainfilter-group .odx-daterangepicker__trigger-wrapper .odx-button {
4956
+ margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4957
+ }
4958
+ .odx-mainfilter-group .odx-calendar {
4959
+ --odx-input-control-outline-color: var(--gray-200);
4960
+ }
4941
4961
 
4942
4962
  .odx-main-menu-button {
4943
4963
  color: inherit;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -42,9 +42,13 @@
42
42
  }
43
43
 
44
44
  &__label {
45
+ @include dimensions.padding-x(math.div(3, 24));
46
+
47
+ background-color: var(--odx-input-control-background-color);
45
48
  margin-top: 0;
46
49
  position: absolute;
47
50
  right: 0;
51
+ right: dimensions.get-size(math.div(8, 24));
48
52
  top: dimensions.get-size(math.div(12, 24));
49
53
  z-index: 1;
50
54
  }
@@ -56,10 +60,8 @@
56
60
  }
57
61
 
58
62
  &-label {
59
- @include dimensions.padding-x(math.div(3, 24));
60
63
  @include dimensions.padding-y(math.div(2, 24));
61
64
 
62
- background-color: var(--odx-input-control-background-color);
63
65
  border-radius: var(--odx-v-border-radius-controls);
64
66
  display: inline-block;
65
67
  font-size: dimensions.get-size(math.div(10, 24));
@@ -136,4 +138,30 @@
136
138
  }
137
139
  }
138
140
  }
141
+
142
+ .odx-datepicker,
143
+ .odx-daterangepicker {
144
+ & > .odx-action-group {
145
+ z-index: 1;
146
+ }
147
+
148
+ .odx-button {
149
+ margin-top: 0;
150
+ outline: none;
151
+
152
+ &::before {
153
+ content: unset;
154
+ }
155
+ }
156
+ }
157
+
158
+ .odx-daterangepicker {
159
+ &__trigger-wrapper .odx-button {
160
+ @include dimensions.margin(0.5, left);
161
+ }
162
+ }
163
+
164
+ .odx-calendar {
165
+ --odx-input-control-outline-color: var(--gray-200);
166
+ }
139
167
  }