@odx/ui 3.0.0 → 3.1.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,23 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e9ca1be: Added `muted` state to list item component
8
+
9
+ ### Patch Changes
10
+
11
+ - c618486: Fixed z-layer stacking issues
12
+
13
+ Fixed over position calculation by using CSS variables
14
+
15
+ WithTabIndex directive now applies tabindex correctly
16
+
17
+ Fixed various linting errors
18
+
19
+ - a62275c: Reduce buffer size of used `shareReplay` operators in order to reduce runtime memory consumption
20
+
3
21
  ## 3.0.0
4
22
 
5
23
  ### Major Changes
package/core-theme.css CHANGED
@@ -2068,11 +2068,15 @@ html body .odx-fs-italic {
2068
2068
  }
2069
2069
  .odx-cdk-connected-overlay__content {
2070
2070
  left: 0 !important;
2071
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
2072
+ max-width: var(--odx-cdk-connected-overlay-max-width-modified, var(--odx-cdk-connected-overlay-max-width, unset));
2073
+ min-height: var(--odx-cdk-connected-overlay-min-height-modified, var(--odx-cdk-connected-overlay-min-height, unset));
2074
+ min-width: var(--odx-cdk-connected-overlay-min-width-modified, var(--odx-cdk-connected-overlay-min-width, unset));
2071
2075
  position: relative !important;
2072
2076
  top: 0 !important;
2073
2077
  }
2074
2078
  .odx-cdk-connected-overlay__content > * {
2075
- max-height: inherit;
2079
+ max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2076
2080
  }
2077
2081
 
2078
2082
  .odx-cdk-connected-overlay-arrow {
@@ -2330,15 +2334,15 @@ html body .odx-fs-italic {
2330
2334
  border-radius: var(--odx-v-border-radius);
2331
2335
  box-shadow: var(--odx-v-box-shadow-layer-1);
2332
2336
  display: block;
2333
- min-height: inherit;
2337
+ min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2334
2338
  }
2335
2339
  .odx-dropdown__inner {
2336
2340
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2337
2341
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2338
2342
  border-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2339
2343
  border-top: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2340
- max-height: inherit;
2341
- min-height: inherit;
2344
+ max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2345
+ min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2342
2346
  overflow: auto;
2343
2347
  overscroll-behavior: contain;
2344
2348
  }
@@ -4087,12 +4091,12 @@ html body .odx-fs-italic {
4087
4091
  margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4088
4092
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4089
4093
  }
4090
- .odx-header:has(.odx-title, .odx-header__title) > .odx-logo {
4094
+ .odx-header:has(> .odx-title, > .odx-header__title) > .odx-logo {
4091
4095
  display: none;
4092
4096
  margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
4093
4097
  }
4094
4098
  @media (min-width: 768px) {
4095
- .odx-header:has(.odx-title, .odx-header__title) > .odx-logo {
4099
+ .odx-header:has(> .odx-title, > .odx-header__title) > .odx-logo {
4096
4100
  display: block;
4097
4101
  }
4098
4102
  }
@@ -4303,8 +4307,11 @@ html body .odx-fs-italic {
4303
4307
  .odx-list-item > [odxListItemSuffix] {
4304
4308
  margin-left: auto;
4305
4309
  }
4306
- .odx-list-item:not(.is-disabled) {
4307
- cursor: pointer;
4310
+ .odx-list-item.odx-list-item--muted {
4311
+ cursor: default;
4312
+ -webkit-user-select: text;
4313
+ -moz-user-select: text;
4314
+ user-select: text;
4308
4315
  }
4309
4316
  .odx-list-item::before {
4310
4317
  transition-delay: 0ms;
@@ -4319,16 +4326,16 @@ html body .odx-fs-italic {
4319
4326
  top: 0;
4320
4327
  width: calc(100% - calc(var(--odx-vertical-rythm-base-size) * 0.6667));
4321
4328
  }
4322
- .odx-list-item:focus-visible {
4329
+ .odx-list-item:focus-visible:not(.odx-list-item--muted) {
4323
4330
  --separator-color: transparent !important;
4324
4331
  }
4325
4332
  @media (hover: hover){
4326
- .odx-list-item:hover {
4333
+ .odx-list-item:hover:not(.odx-list-item--muted) {
4327
4334
  --separator-color: transparent !important;
4328
4335
  }
4329
4336
  }
4330
4337
  @media (hover: hover){
4331
- .odx-list-item:hover {
4338
+ .odx-list-item:hover:not(.odx-list-item--muted) {
4332
4339
  background-color: var(--odx-c-ghost-hover);
4333
4340
  }
4334
4341
  }
@@ -4336,7 +4343,7 @@ html body .odx-fs-italic {
4336
4343
  --separator-color: transparent !important;
4337
4344
  }
4338
4345
  @media (hover: hover){
4339
- .odx-list-item:hover+.odx-list-item {
4346
+ .odx-list-item:hover:not(.odx-list-item--muted)+.odx-list-item {
4340
4347
  --separator-color: transparent !important;
4341
4348
  }
4342
4349
  }
@@ -4351,7 +4358,7 @@ html body .odx-fs-italic {
4351
4358
  color: var(--odx-c-danger-text);
4352
4359
  }
4353
4360
  @media (hover: hover){
4354
- .odx-list-item--danger:hover {
4361
+ .odx-list-item--danger:hover:not(.odx-list-item--muted) {
4355
4362
  background-color: var(--odx-c-danger-hover);
4356
4363
  }
4357
4364
  }
@@ -4363,7 +4370,7 @@ html body .odx-fs-italic {
4363
4370
  background-color: var(--odx-c-selected);
4364
4371
  }
4365
4372
  @media (hover: hover){
4366
- .odx-list-item.is-selected:hover {
4373
+ .odx-list-item.is-selected:hover:not(.odx-list-item--muted) {
4367
4374
  background-color: var(--odx-c-selected-hover);
4368
4375
  }
4369
4376
  }
@@ -4371,7 +4378,7 @@ html body .odx-fs-italic {
4371
4378
  background-color: var(--odx-c-danger-active);
4372
4379
  }
4373
4380
  @media (hover: hover){
4374
- .odx-list-item.is-selected.odx-list-item--danger:hover {
4381
+ .odx-list-item.is-selected.odx-list-item--danger:hover:not(.odx-list-item--muted) {
4375
4382
  background-color: var(--red-800);
4376
4383
  }
4377
4384
  }
@@ -4690,7 +4697,7 @@ html body .odx-fs-italic {
4690
4697
  .odx-main-menu {
4691
4698
  --odx-area-header-title-color: var(--odx-main-menu-highlight-color);
4692
4699
  --odx-area-header-subtitle-color: var(--odx-c-text-inverse);
4693
- z-index: var(--odx-v-layer-5);
4700
+ z-index: var(--odx-v-layer-6);
4694
4701
  }
4695
4702
  .odx-main-menu__inner {
4696
4703
  background-color: var(--odx-main-menu-background-color);
@@ -4850,7 +4857,7 @@ html body .odx-fs-italic {
4850
4857
  position: fixed;
4851
4858
  top: 0;
4852
4859
  width: 100dvw;
4853
- z-index: var(--odx-v-layer-4);
4860
+ z-index: var(--odx-v-layer-5);
4854
4861
  }
4855
4862
  @media (min-width: 480px) {
4856
4863
  .odx-modal {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -22,11 +22,15 @@
22
22
 
23
23
  &__content {
24
24
  left: 0 !important;
25
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
26
+ max-width: var(--odx-cdk-connected-overlay-max-width-modified, var(--odx-cdk-connected-overlay-max-width, unset));
27
+ min-height: var(--odx-cdk-connected-overlay-min-height-modified, var(--odx-cdk-connected-overlay-min-height, unset));
28
+ min-width: var(--odx-cdk-connected-overlay-min-width-modified, var(--odx-cdk-connected-overlay-min-width, unset));
25
29
  position: relative !important;
26
30
  top: 0 !important;
27
31
 
28
32
  > * {
29
- max-height: inherit;
33
+ max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
30
34
  }
31
35
  }
32
36
  }
@@ -8,15 +8,15 @@ $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
- min-height: inherit;
11
+ min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
12
12
 
13
13
  &__inner {
14
14
  @include dimensions.padding-x(0.5);
15
15
 
16
16
  border-bottom: dimensions.get-size(0.5) solid transparent;
17
17
  border-top: dimensions.get-size(0.5) solid transparent;
18
- max-height: inherit;
19
- min-height: inherit;
18
+ max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
19
+ min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
20
20
  overflow: auto;
21
21
  overscroll-behavior: contain;
22
22
  }
@@ -35,7 +35,7 @@
35
35
  padding-right: dimensions.get-size(0.5);
36
36
  }
37
37
 
38
- &:has(.odx-title) > .odx-logo {
38
+ &:has(> .odx-title) > .odx-logo {
39
39
  display: none;
40
40
  margin-right: dimensions.get-size(0.5);
41
41
 
@@ -6,6 +6,7 @@
6
6
 
7
7
  .odx-list-item {
8
8
  $root: &;
9
+ $muted-selector: #{$root}--muted;
9
10
 
10
11
  --separator-color: var(--odx-c-separator);
11
12
 
@@ -26,8 +27,9 @@
26
27
  margin-left: auto;
27
28
  }
28
29
 
29
- &:not(.is-disabled) {
30
- cursor: pointer;
30
+ &#{$muted-selector} {
31
+ cursor: default;
32
+ user-select: text;
31
33
  }
32
34
 
33
35
  &::before {
@@ -44,16 +46,18 @@
44
46
 
45
47
  &:hover,
46
48
  &:focus-visible {
47
- --separator-color: transparent !important;
49
+ &:not(#{$muted-selector}) {
50
+ --separator-color: transparent !important;
51
+ }
48
52
  }
49
53
 
50
- &:hover {
54
+ &:hover:not(#{$muted-selector}) {
51
55
  background-color: var(--odx-c-ghost-hover);
52
56
  }
53
57
 
54
58
  &--danger + &,
55
59
  &.is-selected + &,
56
- &:hover + & {
60
+ &:hover:not(#{$muted-selector}) + & {
57
61
  --separator-color: transparent !important;
58
62
  }
59
63
 
@@ -69,7 +73,7 @@
69
73
  background-color: var(--odx-c-danger);
70
74
  color: var(--odx-c-danger-text);
71
75
 
72
- &:hover {
76
+ &:hover:not(#{$muted-selector}) {
73
77
  background-color: var(--odx-c-danger-hover);
74
78
  }
75
79
 
@@ -83,14 +87,14 @@
83
87
 
84
88
  background-color: var(--odx-c-selected);
85
89
 
86
- &:hover {
90
+ &:hover:not(#{$muted-selector}) {
87
91
  background-color: var(--odx-c-selected-hover);
88
92
  }
89
93
 
90
94
  &#{$root}--danger {
91
95
  background-color: var(--odx-c-danger-active);
92
96
 
93
- &:hover {
97
+ &:hover:not(#{$muted-selector}) {
94
98
  background-color: var(--red-800);
95
99
  }
96
100
 
@@ -28,7 +28,7 @@
28
28
  --odx-area-header-title-color: var(--odx-main-menu-highlight-color);
29
29
  --odx-area-header-subtitle-color: var(--odx-c-text-inverse);
30
30
 
31
- z-index: var(--odx-v-layer-5);
31
+ z-index: var(--odx-v-layer-6);
32
32
 
33
33
  &__inner {
34
34
  background-color: var(--odx-main-menu-background-color);
@@ -23,7 +23,7 @@ $modal-padding: math.div(12, 24);
23
23
  position: fixed;
24
24
  top: 0;
25
25
  width: 100dvw;
26
- z-index: var(--odx-v-layer-4);
26
+ z-index: var(--odx-v-layer-5);
27
27
 
28
28
  @include breakpoints.up(phone) {
29
29
  --odx-modal-margin-y: #{dimensions.get-size(3)};