@dereekb/dbx-web 13.4.2 → 13.5.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.
Files changed (58) hide show
  1. package/_index.scss +6 -1
  2. package/fesm2022/dereekb-dbx-web-calendar.mjs +10 -11
  3. package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
  4. package/fesm2022/dereekb-dbx-web-mapbox.mjs +76 -76
  5. package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
  6. package/fesm2022/dereekb-dbx-web-table.mjs +100 -100
  7. package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
  8. package/fesm2022/dereekb-dbx-web.mjs +1701 -1585
  9. package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
  10. package/lib/action/_action.scss +0 -1
  11. package/lib/action/snackbar/_snackbar.scss +0 -19
  12. package/lib/button/_button.scss +0 -18
  13. package/lib/button/progress/bar.button.component.scss +6 -0
  14. package/lib/error/_error.scss +0 -18
  15. package/lib/extension/_extension.scss +0 -31
  16. package/lib/extension/calendar/_calendar.scss +25 -74
  17. package/lib/extension/calendar/style/month/calendar-month-view.scss +1 -1
  18. package/lib/extension/help/_help.scss +0 -20
  19. package/lib/extension/table/_table.scss +0 -19
  20. package/lib/extension/zip/_zip.scss +5 -20
  21. package/lib/interaction/_interaction.scss +0 -8
  22. package/lib/interaction/dialog/_dialog.scss +4 -19
  23. package/lib/interaction/filter/_filter.scss +0 -19
  24. package/lib/interaction/iframe/_iframe.scss +0 -19
  25. package/lib/interaction/popover/_popover.scss +7 -17
  26. package/lib/interaction/popup/_popup.scss +2 -26
  27. package/lib/interaction/prompt/_prompt.scss +0 -19
  28. package/lib/interaction/style/_style.scss +4 -35
  29. package/lib/interaction/upload/_upload.scss +4 -45
  30. package/lib/layout/_layout.scss +0 -14
  31. package/lib/layout/avatar/_avatar.scss +2 -29
  32. package/lib/layout/bar/_bar.scss +10 -43
  33. package/lib/layout/block/_block.scss +0 -19
  34. package/lib/layout/card/_card.scss +0 -19
  35. package/lib/layout/column/_column.scss +2 -17
  36. package/lib/layout/content/_content.scss +7 -55
  37. package/lib/layout/flag/_flag.scss +0 -19
  38. package/lib/layout/flex/_flex.scss +0 -19
  39. package/lib/layout/item/_item.scss +0 -19
  40. package/lib/layout/list/_list.scss +3 -26
  41. package/lib/layout/section/_section.scss +7 -17
  42. package/lib/layout/step/_step.scss +0 -19
  43. package/lib/layout/style/_style.scss +1 -18
  44. package/lib/layout/text/_text.scss +8 -46
  45. package/lib/loading/_loading.scss +0 -19
  46. package/lib/router/_router.scss +0 -4
  47. package/lib/router/layout/anchor/_anchor.scss +0 -19
  48. package/lib/router/layout/anchorlist/_anchorlist.scss +4 -32
  49. package/lib/router/layout/navbar/_navbar.scss +0 -18
  50. package/lib/router/layout/sidenav/_sidenav.scss +22 -102
  51. package/lib/style/_all-typography.scss +0 -16
  52. package/lib/style/_m2-visual-compat.scss +120 -0
  53. package/lib/style/_root-variables.scss +37 -47
  54. package/lib/style/_theming.scss +1 -202
  55. package/lib/style/_variables.scss +35 -2
  56. package/package.json +13 -13
  57. package/types/dereekb-dbx-web-table.d.ts +6 -6
  58. package/types/dereekb-dbx-web.d.ts +109 -21
@@ -5,7 +5,6 @@
5
5
  }
6
6
 
7
7
  @mixin all-action-typography($theme-config) {
8
- @include snackbar.typography($theme-config);
9
8
  }
10
9
 
11
10
  @mixin all-action-theme($theme-config) {
@@ -10,24 +10,5 @@
10
10
  }
11
11
  }
12
12
 
13
- @mixin color($theme-config) {
14
- }
15
-
16
- @mixin typography($theme-config-or-typography-config) {
17
- }
18
-
19
13
  @mixin theme($theme-config) {
20
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-action-snackbar') {
21
- $color: theming.m2-get-color-config($theme-config);
22
- $density: theming.m2-get-density-config($theme-config);
23
- $typography: theming.m2-get-typography-config($theme-config);
24
-
25
- @if $color !=null {
26
- @include color($theme-config);
27
- }
28
-
29
- @if $typography !=null {
30
- @include typography($theme-config);
31
- }
32
- }
33
14
  }
@@ -202,9 +202,7 @@ $big-button-height: 46px; // 33% bigger
202
202
  }
203
203
  }
204
204
  }
205
- }
206
205
 
207
- @mixin color($theme-config) {
208
206
  .dbx-icon-button > .mat-mdc-button {
209
207
  background: inherit;
210
208
 
@@ -234,21 +232,5 @@ $big-button-height: 46px; // 33% bigger
234
232
  }
235
233
  }
236
234
 
237
- @mixin typography($theme-config-or-typography-config) {
238
- }
239
-
240
235
  @mixin theme($theme-config) {
241
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-button') {
242
- $color: theming.m2-get-color-config($theme-config);
243
- $density: theming.m2-get-density-config($theme-config);
244
- $typography: theming.m2-get-typography-config($theme-config);
245
-
246
- @if $color !=null {
247
- @include color($theme-config);
248
- }
249
-
250
- @if $typography !=null {
251
- @include typography($theme-config);
252
- }
253
- }
254
236
  }
@@ -1,5 +1,9 @@
1
+ $bar-button-progress-bar-height-default: 5px;
2
+
1
3
  :host {
2
4
  > button.dbx-progress-bar-button.mdc-button.mat-mdc-button {
5
+ overflow: hidden; // clip progress bar to rounded corners
6
+
3
7
  &.working {
4
8
  cursor: not-allowed;
5
9
  }
@@ -16,6 +20,8 @@
16
20
  position: absolute;
17
21
  top: 0;
18
22
  left: 0;
23
+ --mat-progress-bar-track-height: var(--dbx-progress-bar-button-height, #{$bar-button-progress-bar-height-default});
24
+ --mat-progress-bar-active-indicator-height: var(--dbx-progress-bar-button-height, #{$bar-button-progress-bar-height-default});
19
25
  }
20
26
 
21
27
  mat-icon {
@@ -38,9 +38,7 @@ $error-message-button-margin: 12px;
38
38
  align-items: center;
39
39
  }
40
40
  }
41
- }
42
41
 
43
- @mixin color($theme-config) {
44
42
  .mat-mdc-snack-bar-container.dbx-error-snackbar {
45
43
  --mdc-snackbar-container-color: var(--dbx-warn-color);
46
44
  --mdc-snackbar-supporting-text-color: var(--dbx-warn-color-contrast);
@@ -51,21 +49,5 @@ $error-message-button-margin: 12px;
51
49
  }
52
50
  }
53
51
 
54
- @mixin typography($theme-config-or-typography-config) {
55
- }
56
-
57
52
  @mixin theme($theme-config) {
58
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-error') {
59
- $color: theming.m2-get-color-config($theme-config);
60
- $density: theming.m2-get-density-config($theme-config);
61
- $typography: theming.m2-get-typography-config($theme-config);
62
-
63
- @if $color !=null {
64
- @include color($theme-config);
65
- }
66
-
67
- @if $typography !=null {
68
- @include typography($theme-config);
69
- }
70
- }
71
53
  }
@@ -36,37 +36,6 @@
36
36
  }
37
37
 
38
38
  @mixin all-extension-typography($theme-config-or-typography-config) {
39
- $calendar-enabled: 1;
40
- $table-enabled: 1;
41
- $zip-enabled: 1;
42
- $help-enabled: 1;
43
-
44
- @if ($theme-config-or-typography-config != null) {
45
- @if (theming.private-is-theme-object($theme-config-or-typography-config)) {
46
- $theme-config: $theme-config-or-typography-config;
47
-
48
- $calendar-enabled: config.get-dbx-extension-calendar-enabled($theme-config);
49
- $table-enabled: config.get-dbx-extension-table-enabled($theme-config);
50
- $zip-enabled: config.get-dbx-extension-zip-enabled($theme-config);
51
- $help-enabled: config.get-dbx-extension-help-enabled($theme-config);
52
- }
53
-
54
- @if ($calendar-enabled == 1) {
55
- @include calendar.typography($theme-config-or-typography-config);
56
- }
57
-
58
- @if ($table-enabled == 1) {
59
- @include table.typography($theme-config-or-typography-config);
60
- }
61
-
62
- @if ($zip-enabled == 1) {
63
- @include zip.typography($theme-config-or-typography-config);
64
- }
65
-
66
- @if ($help-enabled == 1) {
67
- @include help.typography($theme-config-or-typography-config);
68
- }
69
- }
70
39
  }
71
40
 
72
41
  @mixin all-extension-theme($theme-config) {
@@ -1,4 +1,3 @@
1
- @use 'sass:map';
2
1
  @use '../../style/theming';
3
2
  @use './style/angular-calendar' as calendar;
4
3
 
@@ -146,81 +145,33 @@ $calendar-content-border-consideration: 2px;
146
145
  .cal-day-number {
147
146
  user-select: none; // Do not allow selecting/highlighting text accidentally
148
147
  }
149
- }
150
- }
151
148
 
152
- @mixin color($theme-config) {
153
- $color-config: theming.m2-get-color-config($theme-config);
154
- $primary: map.get($color-config, 'primary');
155
- $accent: map.get($color-config, 'accent');
156
- $warn: map.get($color-config, 'warn');
157
- $background: map.get($color-config, 'background');
158
- $foreground: map.get($color-config, 'foreground');
159
-
160
- $background-color: theming.m2-get-color-from-palette($background, 'background');
161
- $hover-color: theming.m2-get-color-from-palette($background, 'hover');
162
- $focused-color: theming.m2-get-color-from-palette($background, 'focused-button');
163
- $border-color: theming.m2-get-color-from-palette($foreground, 'divider');
164
- $text-color: theming.m2-get-color-from-palette($foreground, 'text');
165
-
166
- $event-icon-color: theming.m2-get-color-from-palette($primary, 600);
167
- $event-bg-color: theming.m2-get-color-from-palette($primary, 800);
168
- $event-text-color: theming.m2-get-color-from-palette($primary, '800-contrast');
169
- $highlight-color: theming.m2-get-color-from-palette($accent, 300);
170
- $weekend-color: $text-color; // theming.m2-get-color-from-palette($accent, 500);
171
- $badge-color: theming.m2-get-color-from-palette($accent, 500);
172
- $current-time-marker-color: theming.m2-get-color-from-palette($accent, 400);
173
-
174
- $active-color: rgba($highlight-color, 0.3);
175
- $selected-color: theming.m2-get-color-from-palette($primary, '500-contrast');
176
- $selected-background-color: transparentize(theming.m2-get-color-from-palette($primary, 500), 0.4);
177
-
178
- $disabled-color: theming.m2-get-color-from-palette($warn, 500);
179
- $disabled-background-color: theming.m2-get-color-from-palette($background, 'background');
180
-
181
- $not-applicable-color: transparentize($text-color, 0.7);
182
- $not-applicable-background-color: $background-color;
183
-
184
- #{calendar.$cal-event-icon-color-var}: $event-icon-color; // text/border color
185
- #{calendar.$cal-event-color-primary-var}: $event-text-color; // text/border color
186
- #{calendar.$cal-event-color-secondary-var}: $event-bg-color; // event background color
187
- #{calendar.$cal-border-color-var}: $border-color;
188
- #{calendar.$cal-bg-primary-var}: $background-color;
189
- #{calendar.$cal-bg-secondary-var}: $hover-color;
190
- #{calendar.$cal-bg-hover-var}: $hover-color;
191
- #{calendar.$cal-bg-active-var}: $active-color;
192
- #{calendar.$cal-bg-selected-var}: $selected-background-color;
193
- #{calendar.$cal-bg-disabled-var}: $disabled-background-color;
194
- #{calendar.$cal-bg-not-applicable-var}: $not-applicable-background-color;
195
- #{calendar.$cal-bg-highlight-var}: rgba($highlight-color, 0.3);
196
- #{calendar.$cal-today-bg-var}: $hover-color;
197
- #{calendar.$cal-weekend-color-var}: $weekend-color;
198
- #{calendar.$cal-badge-color-var}: $badge-color;
199
- #{calendar.$cal-selected-var}: $selected-color;
200
- #{calendar.$cal-disabled-var}: $disabled-color;
201
- #{calendar.$cal-not-applicable-var}: $not-applicable-color;
202
- #{calendar.$cal-current-time-marker-color-var}: $current-time-marker-color;
203
- #{calendar.$cal-white-var}: #fff;
204
- #{calendar.$cal-gray-var}: #555;
205
- #{calendar.$cal-black-var}: #000;
206
- #{calendar.$cal-gradient-var}: inset 0 0 10px 0 rgba($background-color, 0.2);
207
- }
208
-
209
- @mixin typography($theme-config-or-typography-config) {
149
+ // Calendar color tokens (theme-aware via --mat-sys-* / --dbx-* CSS variables)
150
+ #{calendar.$cal-event-icon-color-var}: var(--dbx-primary-color);
151
+ #{calendar.$cal-event-color-primary-var}: var(--mat-sys-on-primary-container);
152
+ #{calendar.$cal-event-color-secondary-var}: var(--mat-sys-primary-container);
153
+ #{calendar.$cal-border-color-var}: var(--mat-sys-outline);
154
+ #{calendar.$cal-bg-primary-var}: var(--mat-sys-background);
155
+ #{calendar.$cal-bg-secondary-var}: color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent);
156
+ #{calendar.$cal-bg-hover-var}: color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent);
157
+ #{calendar.$cal-bg-active-var}: color-mix(in srgb, var(--dbx-accent-color) 30%, transparent);
158
+ #{calendar.$cal-bg-selected-var}: color-mix(in srgb, var(--dbx-primary-color) 60%, transparent);
159
+ #{calendar.$cal-bg-disabled-var}: var(--mat-sys-surface);
160
+ #{calendar.$cal-bg-not-applicable-var}: var(--mat-sys-surface);
161
+ #{calendar.$cal-bg-highlight-var}: color-mix(in srgb, var(--dbx-accent-color) 30%, transparent);
162
+ #{calendar.$cal-today-bg-var}: color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent);
163
+ #{calendar.$cal-weekend-color-var}: var(--mat-sys-on-surface);
164
+ #{calendar.$cal-badge-color-var}: var(--dbx-accent-color);
165
+ #{calendar.$cal-selected-var}: var(--mat-sys-on-primary);
166
+ #{calendar.$cal-disabled-var}: var(--dbx-warn-color);
167
+ #{calendar.$cal-not-applicable-var}: color-mix(in srgb, var(--mat-sys-on-surface) 30%, transparent);
168
+ #{calendar.$cal-current-time-marker-color-var}: var(--dbx-accent-color);
169
+ #{calendar.$cal-white-var}: var(--mat-sys-surface);
170
+ #{calendar.$cal-gray-var}: var(--mat-sys-on-surface-variant);
171
+ #{calendar.$cal-black-var}: var(--mat-sys-on-surface);
172
+ #{calendar.$cal-gradient-var}: inset 0 0 10px 0 color-mix(in srgb, var(--mat-sys-surface) 20%, transparent);
173
+ }
210
174
  }
211
175
 
212
176
  @mixin theme($theme-config) {
213
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-calendar') {
214
- $color: theming.m2-get-color-config($theme-config);
215
- $density: theming.m2-get-density-config($theme-config);
216
- $typography: theming.m2-get-typography-config($theme-config);
217
-
218
- @if $color !=null {
219
- @include color($theme-config);
220
- }
221
-
222
- @if $typography !=null {
223
- @include typography($theme-config);
224
- }
225
- }
226
177
  }
@@ -78,7 +78,7 @@
78
78
  text-align: center;
79
79
  white-space: nowrap;
80
80
  vertical-align: middle;
81
- border-radius: 10px;
81
+ border-radius: var(--dbx-calendar-day-badge-container-shape, var(--mat-sys-corner-small));
82
82
  }
83
83
 
84
84
  .cal-day-number {
@@ -3,25 +3,5 @@
3
3
  @mixin core() {
4
4
  }
5
5
 
6
- @mixin color($theme-config) {
7
- }
8
-
9
- @mixin typography($theme-config-or-typography-config) {
10
- // Add typography styles if needed
11
- }
12
-
13
6
  @mixin theme($theme-config) {
14
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-help') {
15
- $color: theming.m2-get-color-config($theme-config);
16
- $density: theming.m2-get-density-config($theme-config);
17
- $typography: theming.m2-get-typography-config($theme-config);
18
-
19
- @if $color !=null {
20
- @include color($theme-config);
21
- }
22
-
23
- @if $typography !=null {
24
- @include typography($theme-config);
25
- }
26
- }
27
7
  }
@@ -51,24 +51,5 @@
51
51
  }
52
52
  }
53
53
 
54
- @mixin color($theme-config) {
55
- }
56
-
57
- @mixin typography($theme-config-or-typography-config) {
58
- }
59
-
60
54
  @mixin theme($theme-config) {
61
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-table') {
62
- $color: theming.m2-get-color-config($theme-config);
63
- $density: theming.m2-get-density-config($theme-config);
64
- $typography: theming.m2-get-typography-config($theme-config);
65
-
66
- @if $color !=null {
67
- @include color($theme-config);
68
- }
69
-
70
- @if $typography !=null {
71
- @include typography($theme-config);
72
- }
73
- }
74
55
  }
@@ -2,34 +2,19 @@
2
2
  @use '../../style/theming';
3
3
 
4
4
  // MARK: Variables
5
- $dbx-zip-blob-preview-toolbar-height: 36px;
5
+ $dbx-zip-blob-preview-toolbar-height: 42px;
6
6
  $dbx-zip-blob-preview-path-height: 28px;
7
7
 
8
8
  // MARK: Mixin
9
9
  @mixin core() {
10
+ .dbx-zip-blob-preview-toolbar {
11
+ overflow-y: hidden;
12
+ }
13
+
10
14
  .dbx-zip-blob-preview-content {
11
15
  height: calc(100% - #{$dbx-zip-blob-preview-toolbar-height} - #{$dbx-zip-blob-preview-path-height});
12
16
  }
13
17
  }
14
18
 
15
- @mixin color($theme-config) {
16
- }
17
-
18
- @mixin typography($theme-config-or-typography-config) {
19
- }
20
-
21
19
  @mixin theme($theme-config) {
22
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-zip') {
23
- $color: theming.m2-get-color-config($theme-config);
24
- $density: theming.m2-get-density-config($theme-config);
25
- $typography: theming.m2-get-typography-config($theme-config);
26
-
27
- @if $color !=null {
28
- @include color($theme-config);
29
- }
30
-
31
- @if $typography !=null {
32
- @include typography($theme-config);
33
- }
34
- }
35
20
  }
@@ -19,14 +19,6 @@
19
19
  }
20
20
 
21
21
  @mixin all-interaction-typography($theme-config) {
22
- @include dialog.typography($theme-config);
23
- @include filter.typography($theme-config);
24
- @include iframe.typography($theme-config);
25
- @include popover.typography($theme-config);
26
- @include popup.typography($theme-config);
27
- @include prompt.typography($theme-config);
28
- @include style.typography($theme-config);
29
- @include upload.typography($theme-config);
30
22
  }
31
23
 
32
24
  @mixin all-interaction-theme($theme-config) {
@@ -12,6 +12,10 @@ $dbx-dialog-content-close-right-offset: $dbx-dialog-content-close-edge-padding;
12
12
 
13
13
  // MARK: Mixin
14
14
  @mixin core() {
15
+ .mat-mdc-dialog-surface {
16
+ color: var(--mat-sys-on-surface);
17
+ }
18
+
15
19
  .dbx-dialog-content {
16
20
  display: block;
17
21
  padding: $mat-dialog-container-padding;
@@ -93,24 +97,5 @@ $dbx-dialog-content-close-right-offset: $dbx-dialog-content-close-edge-padding;
93
97
  }
94
98
  }
95
99
 
96
- @mixin color($theme-config) {
97
- }
98
-
99
- @mixin typography($theme-config-or-typography-config) {
100
- }
101
-
102
100
  @mixin theme($theme-config) {
103
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-dialog') {
104
- $color: theming.m2-get-color-config($theme-config);
105
- $density: theming.m2-get-density-config($theme-config);
106
- $typography: theming.m2-get-typography-config($theme-config);
107
-
108
- @if $color !=null {
109
- @include color($theme-config);
110
- }
111
-
112
- @if $typography !=null {
113
- @include typography($theme-config);
114
- }
115
- }
116
101
  }
@@ -6,24 +6,5 @@
6
6
  @mixin core() {
7
7
  }
8
8
 
9
- @mixin color($theme-config) {
10
- }
11
-
12
- @mixin typography($theme-config-or-typography-config) {
13
- }
14
-
15
9
  @mixin theme($theme-config) {
16
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-filter') {
17
- $color: theming.m2-get-color-config($theme-config);
18
- $density: theming.m2-get-density-config($theme-config);
19
- $typography: theming.m2-get-typography-config($theme-config);
20
-
21
- @if $color !=null {
22
- @include color($theme-config);
23
- }
24
-
25
- @if $typography !=null {
26
- @include typography($theme-config);
27
- }
28
- }
29
10
  }
@@ -23,24 +23,5 @@ $dbx-iframe-height-var: --dbx-iframe-height;
23
23
  }
24
24
  }
25
25
 
26
- @mixin color($theme-config) {
27
- }
28
-
29
- @mixin typography($theme-config-or-typography-config) {
30
- }
31
-
32
26
  @mixin theme($theme-config) {
33
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-iframe') {
34
- $color: theming.m2-get-color-config($theme-config);
35
- $density: theming.m2-get-density-config($theme-config);
36
- $typography: theming.m2-get-typography-config($theme-config);
37
-
38
- @if $color !=null {
39
- @include color($theme-config);
40
- }
41
-
42
- @if $typography !=null {
43
- @include typography($theme-config);
44
- }
45
- }
46
27
  }
@@ -7,6 +7,11 @@ $dbx-popover-header-height: 48px;
7
7
 
8
8
  // MARK: Mixin
9
9
  @mixin core() {
10
+ .dbx-popover-container {
11
+ background: var(--mat-sys-surface);
12
+ border-radius: var(--mat-sys-corner-medium, 12px);
13
+ }
14
+
10
15
  .dbx-popover-content,
11
16
  .dbx-popover-component {
12
17
  height: 100%;
@@ -74,7 +79,7 @@ $dbx-popover-header-height: 48px;
74
79
  }
75
80
  }
76
81
 
77
- @mixin color($theme-config) {
82
+ @mixin responsive($theme-config) {
78
83
  .dbx-popover-header {
79
84
  .dbx-popover-header-content {
80
85
  @include theming.if-small-screen($theme-config) {
@@ -84,23 +89,8 @@ $dbx-popover-header-height: 48px;
84
89
  }
85
90
  }
86
91
 
87
- @mixin typography($theme-config-or-typography-config) {
88
- }
89
-
90
92
  @mixin theme($theme-config) {
91
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-popover') {
92
- $color: theming.m2-get-color-config($theme-config);
93
- $density: theming.m2-get-density-config($theme-config);
94
- $typography: theming.m2-get-typography-config($theme-config);
95
-
96
- @if $color !=null {
97
- @include color($theme-config);
98
- }
99
-
100
- @if $typography !=null {
101
- @include typography($theme-config);
102
- }
103
- }
93
+ @include responsive($theme-config);
104
94
  }
105
95
 
106
96
  @mixin fillPopoverContentHeight($hasControls: 0, $hasHeader: 0) {
@@ -1,5 +1,3 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
1
  @use '../../style/theming';
4
2
 
5
3
  // MARK: Variables
@@ -46,38 +44,16 @@ $dbx-popup-border-radius: 4px;
46
44
  min-height: 28px;
47
45
  }
48
46
  }
49
- }
50
-
51
- @mixin color($theme-config) {
52
- $color-config: theming.m2-get-color-config($theme-config);
53
- $background: map.get($color-config, 'background');
54
- $controls-bg-color: theming.m2-get-color-from-palette($background);
55
- $controls-text-color: theming.m2-get-color-from-palette($background, 'contrast');
56
47
 
57
48
  .dbx-popup-controls {
58
- color: $controls-text-color;
59
- background: $controls-bg-color;
49
+ color: var(--mat-sys-on-surface);
50
+ background: var(--mat-sys-surface);
60
51
  }
61
- }
62
52
 
63
- @mixin typography($theme-config-or-typography-config) {
64
53
  .dbx-popup-controls-header {
65
54
  @include theming.limit-text();
66
55
  }
67
56
  }
68
57
 
69
58
  @mixin theme($theme-config) {
70
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-popup') {
71
- $color: theming.m2-get-color-config($theme-config);
72
- $density: theming.m2-get-density-config($theme-config);
73
- $typography: theming.m2-get-typography-config($theme-config);
74
-
75
- @if $color !=null {
76
- @include color($theme-config);
77
- }
78
-
79
- @if $typography !=null {
80
- @include typography($theme-config);
81
- }
82
- }
83
59
  }
@@ -23,24 +23,5 @@ $dbx-popup-controls-height: 33px;
23
23
  }
24
24
  }
25
25
 
26
- @mixin color($theme-config) {
27
- }
28
-
29
- @mixin typography($theme-config-or-typography-config) {
30
- }
31
-
32
26
  @mixin theme($theme-config) {
33
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-prompt') {
34
- $color: theming.m2-get-color-config($theme-config);
35
- $density: theming.m2-get-density-config($theme-config);
36
- $typography: theming.m2-get-typography-config($theme-config);
37
-
38
- @if $color !=null {
39
- @include color($theme-config);
40
- }
41
-
42
- @if $typography !=null {
43
- @include typography($theme-config);
44
- }
45
- }
46
27
  }
@@ -1,6 +1,3 @@
1
- @use 'sass:map';
2
- @use 'sass:list';
3
- @use 'sass:color';
4
1
  @use '../../style/theming';
5
2
 
6
3
  // Sections
@@ -8,42 +5,14 @@
8
5
  .cdk-overlay-pane .mat-menu-panel {
9
6
  max-width: 90vw;
10
7
  }
11
- }
12
-
13
- @mixin color($theme-config) {
14
- $color-config: theming.m2-get-color-config($theme-config);
15
- $background: map.get($color-config, 'background');
16
- $foreground: map.get($color-config, 'foreground');
17
- $cdk-background-color: theming.m2-get-color-from-palette($background, 'background');
18
- $cdk-text-color: theming.m2-get-color-from-palette($foreground, 'text');
19
- $cdk-border-color: color.adjust(
20
- $color: $cdk-text-color,
21
- $alpha: -0.9
22
- );
23
8
 
24
- .ng-overlay-container {
25
- color: $cdk-text-color;
26
- background: $cdk-background-color;
9
+ .cdk-overlay-pane.ng-overlay-container {
10
+ color: var(--mat-sys-on-surface);
11
+ background-color: var(--mat-sys-surface);
27
12
  @include theming.elevation(8);
28
- border: 1px solid $cdk-border-color;
13
+ border: 1px solid color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent);
29
14
  }
30
15
  }
31
16
 
32
- @mixin typography($theme-config-or-typography-config) {
33
- }
34
-
35
17
  @mixin theme($theme-config) {
36
- @include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-interaction-style') {
37
- $color: theming.m2-get-color-config($theme-config);
38
- $density: theming.m2-get-density-config($theme-config);
39
- $typography: theming.m2-get-typography-config($theme-config);
40
-
41
- @if $color !=null {
42
- @include color($theme-config);
43
- }
44
-
45
- @if $typography !=null {
46
- @include typography($theme-config);
47
- }
48
- }
49
18
  }