@odx/ui 1.0.0-rc.22 → 1.0.0-rc.23

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/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "1.0.0-rc.22",
3
+ "version": "1.0.0-rc.23",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
+ "peerDependencies": {
7
+ "@odx/icons": "*"
8
+ },
6
9
  "files": [
7
10
  "*.css",
8
11
  "*.woff2",
@@ -0,0 +1,220 @@
1
+ @use '@odx/icons/core/utils' as icons;
2
+ @use '../../abstract/dimensions';
3
+ @use '../../abstract/typography';
4
+
5
+ .ag-theme-odx {
6
+ --ag-border-color: var(--odx-c-seperator);
7
+ --ag-foreground-color: var(--odx-c-text);
8
+ --ag-secondary-foreground-color: var(--odx-c-text);
9
+ --ag-disabled-foreground-color: vara(--odx-c-text-disabled);
10
+
11
+ --ag-background-color: var(--odx-c-background-content);
12
+
13
+ --ag-font-family: 'Pangea';
14
+ --ag-font-size: var(--odx-typography-base-size);
15
+
16
+ --ag-icon-size: #{typography.get-font-size(1)};
17
+ --ag-icon-font-family: #{icons.get-font-family()};
18
+ --ag-icon-font-code-aggregation: '#{icons.get-icon-glyph(placeholder)}';
19
+ --ag-icon-font-code-arrows: '#{icons.get-icon-glyph(placeholder)}';
20
+ --ag-icon-font-code-asc: '#{icons.get-icon-glyph(ascending)}';
21
+ --ag-icon-font-code-cancel: '#{icons.get-icon-glyph(close)}';
22
+ --ag-icon-font-code-chart: '#{icons.get-icon-glyph(placeholder)}';
23
+ --ag-icon-font-code-checkbox-checked: '#{icons.get-icon-glyph(placeholder)}';
24
+ --ag-icon-font-code-checkbox-indeterminate: '#{icons.get-icon-glyph(placeholder)}';
25
+ --ag-icon-font-code-checkbox-unchecked: '#{icons.get-icon-glyph(placeholder)}';
26
+ --ag-icon-font-code-color-picker: '#{icons.get-icon-glyph(placeholder)}';
27
+ --ag-icon-font-code-columns: '#{icons.get-icon-glyph(placeholder)}';
28
+ --ag-icon-font-code-contracted: '#{icons.get-icon-glyph(chevron-right)}';
29
+ --ag-icon-font-code-copy: '#{icons.get-icon-glyph(copy-content)}';
30
+ --ag-icon-font-code-cut: '#{icons.get-icon-glyph(cut)}';
31
+ --ag-icon-font-code-cross: '#{icons.get-icon-glyph(close)}';
32
+ --ag-icon-font-code-csv: '#{icons.get-icon-glyph(file)}';
33
+ --ag-icon-font-code-desc: '#{icons.get-icon-glyph(descending)}';
34
+ --ag-icon-font-code-excel: '#{icons.get-icon-glyph(file-excel)}';
35
+ --ag-icon-font-code-expanded: '#{icons.get-icon-glyph(chevron-left)}';
36
+ --ag-icon-font-code-eye-slash: '#{icons.get-icon-glyph(placeholder)}';
37
+ --ag-icon-font-code-eye: '#{icons.get-icon-glyph(placeholder)}';
38
+ --ag-icon-font-code-filter: '#{icons.get-icon-glyph(filter)}';
39
+ --ag-icon-font-code-first: '#{icons.get-icon-glyph(placeholder)}';
40
+ --ag-icon-font-code-grip: '#{icons.get-icon-glyph(placeholder)}';
41
+ --ag-icon-font-code-group: '#{icons.get-icon-glyph(placeholder)}';
42
+ --ag-icon-font-code-last: '#{icons.get-icon-glyph(placeholder)}';
43
+ --ag-icon-font-code-left: '#{icons.get-icon-glyph(arrow-left)}';
44
+ --ag-icon-font-code-linked: '#{icons.get-icon-glyph(placeholder)}';
45
+ --ag-icon-font-code-loading: '#{icons.get-icon-glyph(placeholder)}';
46
+ --ag-icon-font-code-maximize: '#{icons.get-icon-glyph(maximize)}';
47
+ --ag-icon-font-code-menu: '#{icons.get-icon-glyph(menu)}';
48
+ --ag-icon-font-code-minimize: '#{icons.get-icon-glyph(minimize)}';
49
+ --ag-icon-font-code-next: '#{icons.get-icon-glyph(chevron-right)}';
50
+ --ag-icon-font-code-none: '#{icons.get-icon-glyph(placeholder)}';
51
+ --ag-icon-font-code-not-allowed: '#{icons.get-icon-glyph(blocked)}';
52
+ --ag-icon-font-code-paste: '#{icons.get-icon-glyph(placeholder)}';
53
+ --ag-icon-font-code-pin: '#{icons.get-icon-glyph(pin)}';
54
+ --ag-icon-font-code-pivot: '#{icons.get-icon-glyph(placeholder)}';
55
+ --ag-icon-font-code-previous: '#{icons.get-icon-glyph(chevron-left)}';
56
+ --ag-icon-font-code-radio-button-off: '#{icons.get-icon-glyph(placeholder)}';
57
+ --ag-icon-font-code-radio-button-on: '#{icons.get-icon-glyph(placeholder)}';
58
+ --ag-icon-font-code-right: '#{icons.get-icon-glyph(arrow-right)}';
59
+ --ag-icon-font-code-save: '#{icons.get-icon-glyph(save)}';
60
+ --ag-icon-font-code-small-down: '#{icons.get-icon-glyph(chevron-down)}';
61
+ --ag-icon-font-code-small-left: '#{icons.get-icon-glyph(chevron-left)}';
62
+ --ag-icon-font-code-small-right: '#{icons.get-icon-glyph(chevron-right)}';
63
+ --ag-icon-font-code-small-up: '#{icons.get-icon-glyph(chevron-up)}';
64
+ --ag-icon-font-code-tick: '#{icons.get-icon-glyph(check)}';
65
+ --ag-icon-font-code-tree-closed: '#{icons.get-icon-glyph(chevron-right)}';
66
+ --ag-icon-font-code-tree-indeterminate: '#{icons.get-icon-glyph(minus)}';
67
+ --ag-icon-font-code-tree-open: '#{icons.get-icon-glyph(chevron-down)}';
68
+ --ag-icon-font-code-unlinked: '#{icons.get-icon-glyph(placeholder)}';
69
+
70
+ --ag-grid-size: #{dimensions.get-size(0.25)};
71
+ --ag-widget-vertical-spacing: #{dimensions.get-size(0.5)};
72
+
73
+ --ag-header-height: #{dimensions.get-size(2)};
74
+ --ag-row-height: #{dimensions.get-size(2)};
75
+ --ag-table-line-height: #{dimensions.get-size(1.5)};
76
+ --ag-list-item-height: #{dimensions.get-size(1.5)};
77
+
78
+ input[type='text'] {
79
+ background: var(--gray-100);
80
+ border: var(--ag-borders-critical) var(--gray100);
81
+ border-radius: var(--odx-v-border-radius-controls);
82
+ font-weight: var(--odx-typography-font-weight-normal);
83
+ letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
84
+ line-height: var(--ag-table-line-height);
85
+ padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
86
+ padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
87
+ vertical-align: middle;
88
+
89
+ &::placeholder {
90
+ color: var(--odx-c-text);
91
+ opacity: 0.65;
92
+ }
93
+ }
94
+
95
+ .ag-standard-button {
96
+ background-color: var(--odx-c-primary);
97
+ border-radius: var(--odx-v-border-radius-controls);
98
+ color: var(--odx-c-primary-text);
99
+ height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
100
+ min-width: calc(var(--odx-vertical-rythm-base-size) * 3);
101
+ outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
102
+ outline-width: var(--odx-v-outline-width-bold);
103
+ transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
104
+ transition-property: background-color, color, outline;
105
+ }
106
+
107
+ .ag-header {
108
+ border-bottom: var(--ag-borders-critical) var(--gray-700);
109
+
110
+ &-row:not(:first-child) {
111
+ .ag-header-cell,
112
+ .ag-header-group-cell.ag-header-group-cell-with-group {
113
+ border: none;
114
+ }
115
+ }
116
+
117
+ .ag-cell-label-container {
118
+ width: fit-content;
119
+ }
120
+
121
+ .ag-floating-filter {
122
+ .ag-filter-select {
123
+ .ag-picker-field-wrapper {
124
+ height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
125
+ }
126
+ }
127
+
128
+ input[type='text']:disabled {
129
+ color: var(--odx-c-text);
130
+ font-weight: var(--odx-typography-font-weight-medium);
131
+ padding: 0;
132
+ }
133
+ }
134
+
135
+ .ag-header-cell-text {
136
+ font-weight: var(--odx-typography-font-weight-medium);
137
+ }
138
+
139
+ .ag-header-cell-label {
140
+ padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.25);
141
+ }
142
+
143
+ .ag-header-icon {
144
+ &.ag-header-cell-menu-button {
145
+ height: calc(var(--odx-vertical-rythm-base-size) * 0.667);
146
+ width: calc(var(--odx-vertical-rythm-base-size) * 0.667);
147
+ }
148
+ }
149
+ }
150
+
151
+ &.ag-popup {
152
+ [type='text']:focus {
153
+ border-color: var(--ag-input-border-color);
154
+ border-radius: var(--odx-v-border-radius);
155
+ box-shadow: unset;
156
+ }
157
+ }
158
+
159
+ .ag-radio-button-input-wrapper {
160
+ align-items: center;
161
+ background-color: var(--odx-control-background-color);
162
+ border-radius: 50%;
163
+ display: flex;
164
+ flex: 0 0 auto;
165
+ height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
166
+ justify-content: center;
167
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
168
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
169
+ outline: var(--odx-v-outline-width) solid transparent;
170
+ outline-color: var(--odx-control-outline-color);
171
+ outline-offset: calc(-1 * var(--odx-v-outline-width));
172
+ padding: 1px;
173
+ transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
174
+ transition-property: background-color, color, outline-color;
175
+ width: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
176
+
177
+ &:hover {
178
+ background-color: var(--odx-control-background-color-hover);
179
+ outline-color: var(--odx-control-outline-color-hover);
180
+ }
181
+
182
+ &.ag-checked {
183
+ background-color: var(--odx-control-background-color-selected);
184
+ color: var(--odx-control-color-selected);
185
+ opacity: 1;
186
+ outline-color: var(--odx-control-outline-color-selected);
187
+
188
+ &::after {
189
+ background-color: var(--odx-control-color-selected);
190
+ border-radius: 50%;
191
+ content: '';
192
+ height: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
193
+ left: unset;
194
+ margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
195
+ margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
196
+ top: unset;
197
+ transform: scale(1);
198
+ width: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
199
+ }
200
+ }
201
+ }
202
+
203
+ .ag-root-wrapper {
204
+ border: none;
205
+ }
206
+
207
+ .ag-select {
208
+ .ag-picker-field-display {
209
+ color: var(--odx-c-text);
210
+ }
211
+
212
+ .ag-picker-field-icon {
213
+ padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
214
+ }
215
+ }
216
+
217
+ .ag-select-list {
218
+ color: var(--odx-c-text);
219
+ }
220
+ }
@@ -1,16 +1,20 @@
1
1
  @use 'sass:math';
2
2
  @use 'utils';
3
3
 
4
+ @function get-font-size($size: 1) {
5
+ @if $size < 0 {
6
+ @return calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-negative-font-scaling-factor), $size));
7
+ } @else {
8
+ @return calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-positive-font-scaling-factor), $size));
9
+ }
10
+ }
11
+
4
12
  @mixin font-size($size: 1) {
5
13
  @if math.round($size) != $size {
6
14
  @error '$size must me an integer';
7
15
  }
8
16
 
9
- @if $size < 0 {
10
- font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-negative-font-scaling-factor), $size));
11
- } @else {
12
- font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-positive-font-scaling-factor), $size));
13
- }
17
+ font-size: get-font-size($size);
14
18
  }
15
19
 
16
20
  @mixin font-weight($value: normal) {
@@ -22,6 +22,11 @@
22
22
  &__container {
23
23
  column-gap: dimensions.get-size(math.div(20, 24));
24
24
  display: flex;
25
+
26
+ .odx-navigation-back {
27
+ @include dimensions.margin(-0.75, right);
28
+ @include dimensions.margin(math.div(5, 24), top);
29
+ }
25
30
  }
26
31
 
27
32
  * {
@@ -21,7 +21,7 @@
21
21
  min-width: $badge-size;
22
22
  outline: 1px solid transparent;
23
23
  vertical-align: middle;
24
- z-index: 9999;
24
+ z-index: var(--odx-v-layer-1);
25
25
 
26
26
  &,
27
27
  &--highlight {
@@ -17,6 +17,10 @@
17
17
 
18
18
  color: var(--odx-c-text);
19
19
  }
20
+
21
+ &:visited {
22
+ color: var(--odx-c-link);
23
+ }
20
24
  }
21
25
 
22
26
  .odx-icon {
@@ -8,12 +8,8 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
8
8
  @include dimensions.container(1);
9
9
  @include utils.center-content(true);
10
10
 
11
- direction: ltr;
11
+ flex: 0 0 auto;
12
12
  font-size: dimensions.get-size(1);
13
- text-rendering: auto;
14
- text-transform: none;
15
- user-select: none;
16
- white-space: nowrap;
17
13
 
18
14
  @each $size, $size_factor, $factor in $icon-sizes {
19
15
  &--#{$size} {
@@ -27,9 +23,9 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
27
23
  @include dimensions.margin-y(0);
28
24
 
29
25
  font-size: inherit;
30
- height: auto;
26
+ height: 0.8em;
31
27
  line-height: inherit;
32
- vertical-align: -0.15em;
33
- width: auto;
28
+ vertical-align: super;
29
+ width: 0.8em;
34
30
  }
35
31
  }
@@ -4,4 +4,8 @@
4
4
  @extend .odx-button--ghost;
5
5
 
6
6
  color: inherit;
7
+
8
+ &:hover {
9
+ color: inherit;
10
+ }
7
11
  }
@@ -0,0 +1,23 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/dimensions';
3
+ @use '../abstract/motion';
4
+ @use '../abstract/utils';
5
+
6
+ .odx-navigation-back {
7
+ border-radius: var(--odx-v-border-radius-controls);
8
+ height: dimensions.get-size(1.5);
9
+ width: dimensions.get-size(1.5);
10
+
11
+ @include motion.transition(background-color outline);
12
+ @include utils.center-content(true);
13
+ @include utils.interactive($with-background: true);
14
+
15
+ &:hover {
16
+ background-color: var(--blue-700-5);
17
+ }
18
+
19
+ &:active {
20
+ background-color: var(--cyan-500-15);
21
+ border: none;
22
+ }
23
+ }
@@ -15,7 +15,7 @@
15
15
  right: var(--odx-toast-outer-offset);
16
16
  top: 0;
17
17
  width: 100%;
18
- z-index: var(--odx-v-layer-4);
18
+ z-index: var(--odx-v-layer-5);
19
19
 
20
20
  &__counter {
21
21
  align-self: center;
package/scss/core.scss CHANGED
@@ -53,6 +53,7 @@ Layout
53
53
  @use 'components/main-menu.component';
54
54
  @use 'components/menu.component';
55
55
  @use 'components/modal.component';
56
+ @use 'components/navigation-back.component';
56
57
  @use 'components/progress.component';
57
58
  @use 'components/radio-button.component';
58
59
  @use 'components/radio-group.component';
@@ -11,6 +11,7 @@
11
11
  --odx-v-layer-2: 10;
12
12
  --odx-v-layer-3: 20;
13
13
  --odx-v-layer-4: 9000;
14
+ --odx-v-layer-5: 9500;
14
15
 
15
16
  --odx-v-transition-duration: 250ms;
16
17
  --odx-v-transition-easing-fn: ease;
package/core-icons.css DELETED
@@ -1,43 +0,0 @@
1
- @font-face {
2
- font-display: block;
3
- font-family: "core-icons";
4
- src: url("./core-icons.woff2?2e34fa04b5d8933d0d0fd3cefa3aa4d5") format("woff2");
5
- }
6
-
7
- .odx-icon::before,
8
- [class^="odx-icon-"]::before,
9
- [class*=" odx-icon-"]::before {
10
- font-family: core-icons !important;
11
- font-style: normal;
12
- font-weight: normal !important;
13
- font-variant: normal;
14
- text-transform: none;
15
- line-height: 1;
16
- vertical-align: top;
17
- -webkit-font-smoothing: antialiased;
18
- -moz-osx-font-smoothing: grayscale;
19
- }
20
-
21
- .odx-icon-add::before { content: "\f101"; }
22
- .odx-icon-arrow-left::before { content: "\f102"; }
23
- .odx-icon-arrow-right::before { content: "\f103"; }
24
- .odx-icon-attachment::before { content: "\f104"; }
25
- .odx-icon-calendar::before { content: "\f105"; }
26
- .odx-icon-check::before { content: "\f106"; }
27
- .odx-icon-chevron-down::before { content: "\f107"; }
28
- .odx-icon-chevron-left::before { content: "\f108"; }
29
- .odx-icon-chevron-right::before { content: "\f109"; }
30
- .odx-icon-chevron-up::before { content: "\f10a"; }
31
- .odx-icon-close::before { content: "\f10b"; }
32
- .odx-icon-danger::before { content: "\f10c"; }
33
- .odx-icon-identify::before { content: "\f10d"; }
34
- .odx-icon-indeterminate::before { content: "\f10e"; }
35
- .odx-icon-info::before { content: "\f10f"; }
36
- .odx-icon-menu::before { content: "\f110"; }
37
- .odx-icon-minus::before { content: "\f111"; }
38
- .odx-icon-more::before { content: "\f112"; }
39
- .odx-icon-placeholder::before { content: "\f113"; }
40
- .odx-icon-plus::before { content: "\f114"; }
41
- .odx-icon-tile-menu::before { content: "\f115"; }
42
- .odx-icon-user::before { content: "\f116"; }
43
- .odx-icon-warning::before { content: "\f117"; }
package/core-icons.woff2 DELETED
Binary file