@odx/ui 3.1.0 → 3.2.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,16 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3ebfb3c: Add brand-logo component which can be used to display the ODX brand logo
8
+
9
+ ### Patch Changes
10
+
11
+ - c357174: Use CSS only icons for breadcrumb separator icons
12
+ - 753c400: Add missing odx-v-layer-6 CSS variable
13
+
3
14
  ## 3.1.0
4
15
 
5
16
  ### Minor Changes
package/core-theme.css CHANGED
@@ -312,6 +312,7 @@
312
312
  }
313
313
 
314
314
  :root {
315
+ --odx-v-max-page-width: 1440px;
315
316
  --odx-v-border-radius: calc(var(--odx-typography-base-size) * 0.375);
316
317
  --odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
317
318
  --odx-v-backdrop-blur: 3px;
@@ -322,6 +323,7 @@
322
323
  --odx-v-layer-3: 20;
323
324
  --odx-v-layer-4: 9000;
324
325
  --odx-v-layer-5: 9500;
326
+ --odx-v-layer-6: 9900;
325
327
  --odx-v-transition-duration: 250ms;
326
328
  --odx-v-transition-easing-fn: ease;
327
329
  --odx-v-outline-width: 1px;
@@ -2921,20 +2923,29 @@ html body .odx-fs-italic {
2921
2923
  flex-wrap: wrap;
2922
2924
  gap: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
2923
2925
  }
2924
- .odx-breadcrumbs .odx-link:last-child {
2925
- font-weight: var(--odx-typography-font-weight-bold);
2926
- letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
2927
- color: var(--odx-c-text);
2926
+ .odx-breadcrumbs .odx-link {
2927
+ white-space: nowrap;
2928
2928
  }
2929
- .odx-breadcrumbs .odx-link:visited {
2930
- color: var(--odx-c-link);
2929
+ .odx-breadcrumbs .odx-link:not(:last-child) {
2930
+ margin-right: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
2931
2931
  }
2932
- .odx-breadcrumbs .odx-icon {
2932
+ .odx-breadcrumbs .odx-link:not(:last-child)::after {
2933
2933
  color: var(--gray-500);
2934
+ content: "\f158";
2935
+ display: inline-block;
2936
+ font-family: "core-icons";
2934
2937
  font-size: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2938
+ pointer-events: none;
2939
+ position: absolute;
2940
+ margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2935
2941
  }
2936
- .odx-breadcrumbs .odx-icon::before {
2937
- position: unset;
2942
+ .odx-breadcrumbs .odx-link:visited {
2943
+ color: var(--odx-c-link);
2944
+ }
2945
+ .odx-breadcrumbs .odx-link:last-child, .odx-breadcrumbs .odx-link:last-child:visited {
2946
+ font-weight: var(--odx-typography-font-weight-bold);
2947
+ letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
2948
+ color: var(--odx-c-text);
2938
2949
  }
2939
2950
 
2940
2951
  .odx-button-group {
@@ -3024,6 +3035,20 @@ html body .odx-fs-italic {
3024
3035
  border-radius: 0;
3025
3036
  }
3026
3037
 
3038
+ .odx-brand-logo {
3039
+ color: var(--odx-c-text);
3040
+ display: inline-block;
3041
+ font-weight: var(--odx-typography-font-weight-bold);
3042
+ letter-spacing: var(--odx-typography-font-weight-bold-letter-spacing);
3043
+ }
3044
+ .odx-brand-logo::before {
3045
+ color: var(--odx-c-highlight);
3046
+ content: "O";
3047
+ }
3048
+ .odx-brand-logo::after {
3049
+ content: "DX";
3050
+ }
3051
+
3027
3052
  :root {
3028
3053
  --odx-card-avatar-size: 64px;
3029
3054
  --odx-card-content-vertical-alignment: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -0,0 +1,17 @@
1
+ @use '../abstract/typography';
2
+
3
+ .odx-brand-logo {
4
+ color: var(--odx-c-text);
5
+ display: inline-block;
6
+
7
+ @include typography.font-weight(bold);
8
+
9
+ &::before {
10
+ color: var(--odx-c-highlight);
11
+ content: 'O';
12
+ }
13
+
14
+ &::after {
15
+ content: 'DX';
16
+ }
17
+ }
@@ -2,6 +2,7 @@
2
2
  @use '../abstract/dimensions';
3
3
  @use '../abstract/utils';
4
4
  @use '../abstract/typography';
5
+ @use '@odx/icons/core/core-utils' as icons;
5
6
 
6
7
  .odx-breadcrumbs {
7
8
  @include dimensions.padding-x(1);
@@ -12,23 +13,33 @@
12
13
  gap: dimensions.get-size(math.div(8, 24));
13
14
 
14
15
  .odx-link {
15
- &:last-child {
16
- @include typography.font-weight(bold);
16
+ white-space: nowrap;
17
17
 
18
- color: var(--odx-c-text);
18
+ &:not(:last-child) {
19
+ @include dimensions.margin(math.div(20, 24), right);
20
+
21
+ &::after {
22
+ color: var(--gray-500);
23
+ content: icons.get-icon-glyph('chevron-right');
24
+ display: inline-block;
25
+ font-family: icons.get-font-family();
26
+ font-size: dimensions.get-size(math.div(12, 24));
27
+ pointer-events: none;
28
+ position: absolute;
29
+
30
+ @include dimensions.margin(math.div(12, 24), left);
31
+ }
19
32
  }
20
33
 
21
34
  &:visited {
22
35
  color: var(--odx-c-link);
23
36
  }
24
- }
25
37
 
26
- .odx-icon {
27
- color: var(--gray-500);
28
- font-size: dimensions.get-size(math.div(12, 24));
38
+ &:last-child,
39
+ &:last-child:visited {
40
+ @include typography.font-weight(bold);
29
41
 
30
- &::before {
31
- position: unset;
42
+ color: var(--odx-c-text);
32
43
  }
33
44
  }
34
45
  }
package/scss/core.scss CHANGED
@@ -40,6 +40,7 @@ Layout
40
40
  @use 'components/breadcrumbs.component';
41
41
  @use 'components/button-group.component';
42
42
  @use 'components/button.component';
43
+ @use 'components/brand-logo.component';
43
44
  @use 'components/card.component';
44
45
  @use 'components/calendar.component';
45
46
  @use 'components/checkbox.component';
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ --odx-v-max-page-width: 1440px;
2
3
  --odx-v-border-radius: calc(var(--odx-typography-base-size) * 0.375);
3
4
  --odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
4
5
 
@@ -12,6 +13,7 @@
12
13
  --odx-v-layer-3: 20;
13
14
  --odx-v-layer-4: 9000;
14
15
  --odx-v-layer-5: 9500;
16
+ --odx-v-layer-6: 9900;
15
17
 
16
18
  --odx-v-transition-duration: 250ms;
17
19
  --odx-v-transition-easing-fn: ease;