@odx/ui 2.9.9 → 2.10.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,7 +1,11 @@
1
- ## @odx/ui 2.9.8 (2023-10-25)
2
-
3
1
  ## 2.9.9
4
2
 
3
+ ## 2.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 00afc8a6: Expanded the possibilities of using the Card component
8
+
5
9
  ### Patch Changes
6
10
 
7
11
  - 469224e8: Update library dependencies
package/core-theme.css CHANGED
@@ -2982,6 +2982,17 @@ body[odxTheme=dark], body.odx-theme-dark {
2982
2982
  border-radius: 0;
2983
2983
  }
2984
2984
 
2985
+ body {
2986
+ --odx-card-avatar-size: 64px;
2987
+ --odx-card-content-vertical-alignment: center;
2988
+ }
2989
+ @media (min-width: 480px) {
2990
+ body {
2991
+ --odx-card-avatar-size: 128px;
2992
+ --odx-card-content-vertical-alignment: top;
2993
+ }
2994
+ }
2995
+
2985
2996
  .odx-card {
2986
2997
  transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
2987
2998
  transition-property: box-shadow, outline-color, color;
@@ -3052,24 +3063,6 @@ body[odxTheme=dark], body.odx-theme-dark {
3052
3063
  gap: calc(var(--odx-vertical-rythm-base-size) * 1);
3053
3064
  }
3054
3065
  }
3055
- .odx-card--launch-tile .odx-avatar, .odx-card--launch-tile-centered .odx-avatar {
3056
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
3057
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
3058
- height: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
3059
- width: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
3060
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
3061
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
3062
- flex: 0 0 auto;
3063
- }
3064
- @media (min-width: 480px) {
3065
- .odx-card--launch-tile .odx-avatar, .odx-card--launch-tile-centered .odx-avatar {
3066
- margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
3067
- margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
3068
- height: calc(var(--odx-vertical-rythm-base-size) * 5.3334);
3069
- width: calc(var(--odx-vertical-rythm-base-size) * 5.3334);
3070
- margin: calc(var(--odx-vertical-rythm-base-size) * 0.1667) auto 0;
3071
- }
3072
- }
3073
3066
  .odx-card--launch-tile .odx-card__title, .odx-card--launch-tile-centered .odx-card__title {
3074
3067
  font-weight: var(--odx-typography-font-weight-medium);
3075
3068
  letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
@@ -3091,12 +3084,7 @@ body[odxTheme=dark], body.odx-theme-dark {
3091
3084
  display: flex;
3092
3085
  flex: 1;
3093
3086
  flex-direction: column;
3094
- justify-content: center;
3095
- }
3096
- @media (min-width: 480px) {
3097
- .odx-card--launch-tile .odx-card__content, .odx-card--launch-tile-centered .odx-card__content {
3098
- display: block;
3099
- }
3087
+ justify-content: var(--odx-card-content-vertical-alignment);
3100
3088
  }
3101
3089
  @media (min-width: 480px) {
3102
3090
  .odx-card__content {
@@ -3116,6 +3104,18 @@ body[odxTheme=dark], body.odx-theme-dark {
3116
3104
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
3117
3105
  }
3118
3106
  }
3107
+ .odx-card .odx-avatar {
3108
+ flex: 0 0 auto;
3109
+ height: var(--odx-card-avatar-size);
3110
+ width: var(--odx-card-avatar-size);
3111
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
3112
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
3113
+ }
3114
+ @media (min-width: 480px) {
3115
+ .odx-card .odx-avatar {
3116
+ margin: calc(var(--odx-vertical-rythm-base-size) * 0.1667) auto 0;
3117
+ }
3118
+ }
3119
3119
  .odx-card__footer {
3120
3120
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
3121
3121
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
@@ -3138,7 +3138,7 @@ body[odxTheme=dark], body.odx-theme-dark {
3138
3138
  .odx-card__footer .odx-button {
3139
3139
  margin: 0;
3140
3140
  }
3141
- .odx-card .odx-card-menu {
3141
+ .odx-card > .odx-action-group {
3142
3142
  margin: 0;
3143
3143
  position: absolute;
3144
3144
  right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "2.9.9",
3
+ "version": "2.10.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -5,6 +5,16 @@
5
5
  @use '../abstract/typography';
6
6
  @use '../abstract/utils';
7
7
 
8
+ body {
9
+ --odx-card-avatar-size: 64px;
10
+ --odx-card-content-vertical-alignment: center;
11
+
12
+ @include breakpoints.up(phone) {
13
+ --odx-card-avatar-size: 128px;
14
+ --odx-card-content-vertical-alignment: top;
15
+ }
16
+ }
17
+
8
18
  .odx-card {
9
19
  $root: &;
10
20
  $main-padding: dimensions.get-size(math.div(12, 24));
@@ -73,19 +83,6 @@
73
83
  }
74
84
  }
75
85
 
76
- .odx-avatar {
77
- @include dimensions.container(math.div(64, 24));
78
- @include dimensions.margin-y(math.div(4, 24));
79
-
80
- flex: 0 0 auto;
81
-
82
- @include breakpoints.up(phone) {
83
- @include dimensions.container(math.div(128, 24));
84
-
85
- margin: dimensions.get-size(math.div(4, 24)) auto 0;
86
- }
87
- }
88
-
89
86
  #{$root}__title {
90
87
  @include typography.font-weight(medium);
91
88
 
@@ -108,11 +105,7 @@
108
105
  display: flex;
109
106
  flex: 1;
110
107
  flex-direction: column;
111
- justify-content: center;
112
-
113
- @include breakpoints.up(phone) {
114
- display: block;
115
- }
108
+ justify-content: var(--odx-card-content-vertical-alignment);
116
109
  }
117
110
  }
118
111
 
@@ -141,6 +134,18 @@
141
134
  }
142
135
  }
143
136
 
137
+ .odx-avatar {
138
+ flex: 0 0 auto;
139
+ height: var(--odx-card-avatar-size);
140
+ width: var(--odx-card-avatar-size);
141
+
142
+ @include dimensions.margin-y(math.div(4, 24));
143
+
144
+ @include breakpoints.up(phone) {
145
+ margin: dimensions.get-size(math.div(4, 24)) auto 0;
146
+ }
147
+ }
148
+
144
149
  &__footer {
145
150
  @include dimensions.padding-x(0.5);
146
151
 
@@ -166,7 +171,7 @@
166
171
  }
167
172
  }
168
173
 
169
- .odx-card-menu {
174
+ > .odx-action-group {
170
175
  margin: 0;
171
176
  position: absolute;
172
177
  right: $main-padding;