@angular/material 16.2.0-next.4 → 16.2.0-rc.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 (113) hide show
  1. package/badge/_badge-theme.scss +84 -118
  2. package/bottom-sheet/_bottom-sheet-theme.scss +10 -11
  3. package/bottom-sheet/index.d.ts +6 -0
  4. package/button-toggle/_button-toggle-theme.scss +20 -97
  5. package/button-toggle/_button-toggle-variables.scss +2 -0
  6. package/chips/index.d.ts +11 -4
  7. package/core/index.d.ts +1 -0
  8. package/core/selection/pseudo-checkbox/_pseudo-checkbox-common.scss +1 -1
  9. package/core/tokens/_token-utils.scss +1 -0
  10. package/core/tokens/m2/mat/_badge.scss +78 -0
  11. package/core/tokens/m2/mat/_bottom-sheet.scss +56 -0
  12. package/core/tokens/m2/mat/_datepicker.scss +184 -0
  13. package/core/tokens/m2/mat/_divider.scss +45 -0
  14. package/core/tokens/m2/mat/_form-field.scss +44 -0
  15. package/core/tokens/m2/mat/_grid-list.scss +46 -0
  16. package/core/tokens/m2/mat/_icon.scss +45 -0
  17. package/core/tokens/m2/mat/_legacy-button-toggle.scss +63 -0
  18. package/core/tokens/m2/mat/_sidenav.scss +65 -0
  19. package/core/tokens/m2/mat/_slide-toggle.scss +1 -1
  20. package/core/tokens/m2/mat/_standard-button-toggle.scss +87 -0
  21. package/core/tokens/m2/mat/_tab-header.scss +1 -1
  22. package/core/tokens/m2/mat/_toolbar.scss +79 -0
  23. package/core/tokens/m2/mdc/_circular-progress.scss +1 -1
  24. package/core/tokens/m2/mdc/_filled-text-field.scss +175 -0
  25. package/core/tokens/m2/mdc/_outlined-text-field.scss +158 -0
  26. package/core/tokens/m2/mdc/_plain-tooltip.scss +2 -2
  27. package/datepicker/_datepicker-theme.scss +44 -203
  28. package/dialog/index.d.ts +6 -0
  29. package/divider/_divider-theme.scss +6 -8
  30. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +3 -3
  31. package/esm2022/bottom-sheet/bottom-sheet-ref.mjs +8 -1
  32. package/esm2022/button-toggle/button-toggle.mjs +2 -2
  33. package/esm2022/chips/chip-option.mjs +4 -5
  34. package/esm2022/chips/chip-row.mjs +15 -10
  35. package/esm2022/chips/chip.mjs +29 -12
  36. package/esm2022/core/private/ripple-loader.mjs +4 -1
  37. package/esm2022/core/version.mjs +1 -1
  38. package/esm2022/datepicker/calendar-body.mjs +2 -2
  39. package/esm2022/datepicker/calendar.mjs +2 -2
  40. package/esm2022/datepicker/date-range-input.mjs +2 -2
  41. package/esm2022/datepicker/datepicker-base.mjs +3 -3
  42. package/esm2022/datepicker/datepicker-toggle.mjs +2 -2
  43. package/esm2022/dialog/dialog-ref.mjs +1 -1
  44. package/esm2022/dialog/dialog.mjs +2 -1
  45. package/esm2022/divider/divider.mjs +2 -2
  46. package/esm2022/form-field/form-field.mjs +3 -3
  47. package/esm2022/grid-list/grid-list.mjs +2 -2
  48. package/esm2022/grid-list/grid-tile.mjs +2 -2
  49. package/esm2022/icon/icon.mjs +2 -2
  50. package/esm2022/menu/menu-item.mjs +4 -4
  51. package/esm2022/menu/menu.mjs +3 -3
  52. package/esm2022/radio/radio.mjs +13 -1
  53. package/esm2022/sidenav/drawer.mjs +3 -3
  54. package/esm2022/sidenav/sidenav.mjs +3 -3
  55. package/esm2022/slide-toggle/slide-toggle.mjs +2 -2
  56. package/esm2022/tabs/ink-bar.mjs +1 -1
  57. package/esm2022/tabs/tab-group.mjs +2 -2
  58. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  59. package/esm2022/toolbar/toolbar.mjs +2 -2
  60. package/fesm2022/bottom-sheet.mjs +9 -2
  61. package/fesm2022/bottom-sheet.mjs.map +1 -1
  62. package/fesm2022/button-toggle.mjs +2 -2
  63. package/fesm2022/button-toggle.mjs.map +1 -1
  64. package/fesm2022/chips.mjs +41 -17
  65. package/fesm2022/chips.mjs.map +1 -1
  66. package/fesm2022/core.mjs +4 -1
  67. package/fesm2022/core.mjs.map +1 -1
  68. package/fesm2022/datepicker.mjs +10 -10
  69. package/fesm2022/datepicker.mjs.map +1 -1
  70. package/fesm2022/dialog.mjs +1 -0
  71. package/fesm2022/dialog.mjs.map +1 -1
  72. package/fesm2022/divider.mjs +2 -2
  73. package/fesm2022/divider.mjs.map +1 -1
  74. package/fesm2022/form-field.mjs +2 -2
  75. package/fesm2022/form-field.mjs.map +1 -1
  76. package/fesm2022/grid-list.mjs +4 -4
  77. package/fesm2022/grid-list.mjs.map +1 -1
  78. package/fesm2022/icon.mjs +2 -2
  79. package/fesm2022/icon.mjs.map +1 -1
  80. package/fesm2022/menu.mjs +5 -5
  81. package/fesm2022/menu.mjs.map +1 -1
  82. package/fesm2022/radio.mjs +12 -0
  83. package/fesm2022/radio.mjs.map +1 -1
  84. package/fesm2022/sidenav.mjs +4 -4
  85. package/fesm2022/sidenav.mjs.map +1 -1
  86. package/fesm2022/slide-toggle.mjs +2 -2
  87. package/fesm2022/slide-toggle.mjs.map +1 -1
  88. package/fesm2022/tabs.mjs +4 -4
  89. package/fesm2022/tabs.mjs.map +1 -1
  90. package/fesm2022/toolbar.mjs +2 -2
  91. package/fesm2022/toolbar.mjs.map +1 -1
  92. package/form-field/_form-field-theme.scss +37 -44
  93. package/form-field/_mdc-text-field-structure-overrides.scss +18 -0
  94. package/grid-list/_grid-list-theme.scss +7 -6
  95. package/icon/_icon-theme.scss +18 -8
  96. package/legacy-prebuilt-themes/legacy-deeppurple-amber.css +1 -1
  97. package/legacy-prebuilt-themes/legacy-indigo-pink.css +1 -1
  98. package/legacy-prebuilt-themes/legacy-pink-bluegrey.css +1 -1
  99. package/legacy-prebuilt-themes/legacy-purple-green.css +1 -1
  100. package/package.json +49 -49
  101. package/prebuilt-themes/deeppurple-amber.css +1 -1
  102. package/prebuilt-themes/indigo-pink.css +1 -1
  103. package/prebuilt-themes/pink-bluegrey.css +1 -1
  104. package/prebuilt-themes/purple-green.css +1 -1
  105. package/radio/index.d.ts +4 -1
  106. package/schematics/ng-add/index.js +1 -1
  107. package/schematics/ng-add/index.mjs +1 -1
  108. package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
  109. package/schematics/ng-update/index_bundled.js +25 -25
  110. package/sidenav/_sidenav-theme.scss +6 -69
  111. package/tabs/_tabs-common.scss +1 -1
  112. package/tabs/index.d.ts +1 -1
  113. package/toolbar/_toolbar-theme.scss +25 -71
@@ -0,0 +1,79 @@
1
+ @use 'sass:map';
2
+ @use '../../token-utils';
3
+ @use '../../../typography/typography-utils';
4
+ @use '../../../theming/theming';
5
+ @use '../../../style/sass-utils';
6
+
7
+ // The prefix used to generate the fully qualified name for tokens in this file.
8
+ $prefix: (mat, toolbar);
9
+
10
+ // Tokens that can't be configured through Angular Material's current theming API,
11
+ // but may be in a future version of the theming API.
12
+ @function get-unthemable-tokens() {
13
+ @return ();
14
+ }
15
+
16
+ // Tokens that can be configured through Angular Material's color theming API.
17
+ @function get-color-tokens($config) {
18
+ $foreground: map.get($config, foreground);
19
+ $background: map.get($config, background);
20
+
21
+ @return private-get-color-palette-color-tokens(
22
+ $background-color: theming.get-color-from-palette($background, app-bar),
23
+ $text-color: theming.get-color-from-palette($foreground, text),
24
+ );
25
+ }
26
+
27
+ // Tokens that can be configured through Angular Material's typography theming API.
28
+ @function get-typography-tokens($config) {
29
+ @return (
30
+ title-text-font: typography-utils.font-family($config, title) or
31
+ typography-utils.font-family($config),
32
+ title-text-line-height: typography-utils.line-height($config, title),
33
+ title-text-size: typography-utils.font-size($config, title),
34
+ title-text-tracking: typography-utils.letter-spacing($config, title),
35
+ title-text-weight: typography-utils.font-weight($config, title),
36
+ );
37
+ }
38
+
39
+ // Tokens that can be configured through Angular Material's density theming API.
40
+ @function get-density-tokens($config) {
41
+ $density-scale: theming.clamp-density($config, -3);
42
+ $standard-scale: (
43
+ 0: 64px,
44
+ -1: 60px,
45
+ -2: 56px,
46
+ -3: 52px,
47
+ );
48
+
49
+ $mobile-scale: (
50
+ 0: 56px,
51
+ -1: 52px,
52
+ -2: 48px,
53
+ -3: 44px,
54
+ );
55
+
56
+ @return (
57
+ standard-height: map.get($standard-scale, $density-scale),
58
+ mobile-height: map.get($mobile-scale, $density-scale),
59
+ );
60
+ }
61
+
62
+ // Generates the tokens used to theme the toolbar based on a palette.
63
+ @function private-get-color-palette-color-tokens($background-color, $text-color) {
64
+ @return (
65
+ container-background-color: $background-color,
66
+ container-text-color: $text-color,
67
+ );
68
+ }
69
+
70
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
71
+ // This is used to create token slots.
72
+ @function get-token-slots() {
73
+ @return sass-utils.deep-merge-all(
74
+ get-unthemable-tokens(),
75
+ get-color-tokens(token-utils.$placeholder-color-config),
76
+ get-typography-tokens(token-utils.$placeholder-typography-config),
77
+ get-density-tokens(token-utils.$placeholder-density-config)
78
+ );
79
+ }
@@ -16,7 +16,7 @@ $prefix: (mdc, circular-progress);
16
16
  @return (
17
17
  // The thickness of the progress spinner's active indicator.
18
18
  active-indicator-width: 4px,
19
- // The the diameter of the spinner
19
+ // The diameter of the spinner
20
20
  size: 48px,
21
21
  // =============================================================================================
22
22
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
@@ -0,0 +1,175 @@
1
+ @use 'sass:color';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+ @use '../../../theming/theming';
5
+ @use '../../../style/sass-utils';
6
+ @use '../../../typography/typography-utils';
7
+ @use '../../token-utils';
8
+
9
+ // The prefix used to generate the fully qualified name for tokens in this file.
10
+ $prefix: (mdc, filled-text-field);
11
+
12
+ // Tokens that can't be configured through Angular Material's current theming API,
13
+ // but may be in a future version of the theming API.
14
+ //
15
+ // Tokens that are available in MDC, but not used in Angular Material should be mapped to `null`.
16
+ // `null` indicates that we are intentionally choosing not to emit a slot or value for the token in
17
+ // our CSS.
18
+ @function get-unthemable-tokens() {
19
+ @return (
20
+ active-indicator-height: 1px,
21
+ focus-active-indicator-height: 2px,
22
+ container-shape: 4px,
23
+
24
+ // =============================================================================================
25
+ // = TOKENS NOT USED IN ANGULAR MATERIAL =
26
+ // =============================================================================================
27
+ disabled-active-indicator-height: null,
28
+ hover-active-indicator-height: null,
29
+ disabled-active-indicator-opacity: null,
30
+ error-focus-caret-color: null,
31
+ error-hover-caret-color: null,
32
+ focus-caret-color: null,
33
+ hover-caret-color: null,
34
+ label-text-populated-line-height: null,
35
+ label-text-populated-size: null,
36
+ label-text-type: null,
37
+ disabled-label-text-opacity: null,
38
+ hover-label-text-color: null,
39
+ error-hover-label-text-color: null,
40
+ supporting-text-color: null,
41
+ supporting-text-font: null,
42
+ supporting-text-line-height: null,
43
+ supporting-text-size: null,
44
+ supporting-text-tracking: null,
45
+ supporting-text-weight: null,
46
+ disabled-supporting-text-color: null,
47
+ disabled-supporting-text-opacity: null,
48
+ error-focus-supporting-text-color: null,
49
+ error-hover-supporting-text-color: null,
50
+ error-supporting-text-color: null,
51
+ focus-supporting-text-color: null,
52
+ hover-supporting-text-color: null,
53
+ input-text-prefix-color: null,
54
+ container-height: null,
55
+ disabled-trailing-icon-color: null,
56
+ disabled-trailing-icon-opacity: null,
57
+ error-focus-trailing-icon-color: null,
58
+ error-hover-trailing-icon-color: null,
59
+ error-trailing-icon-color: null,
60
+ focus-trailing-icon-color: null,
61
+ hover-trailing-icon-color: null,
62
+ trailing-icon-color: null,
63
+ trailing-icon-size: null,
64
+ disabled-leading-icon-color: null,
65
+ disabled-leading-icon-opacity: null,
66
+ error-focus-leading-icon-color: null,
67
+ error-hover-leading-icon-color: null,
68
+ error-leading-icon-color: null,
69
+ focus-leading-icon-color: null,
70
+ hover-leading-icon-color: null,
71
+ leading-icon-color: null,
72
+ leading-icon-size: null,
73
+ input-text-type: null,
74
+ input-text-suffix-color: null,
75
+ input-text-font: null,
76
+ input-text-line-height: null,
77
+ input-text-size: null,
78
+ input-text-tracking: null,
79
+ input-text-weight: null,
80
+ error-input-text-color: null,
81
+ focus-input-text-color: null,
82
+ hover-input-text-color: null,
83
+ disabled-input-text-opacity: null,
84
+ error-focus-input-text-color: null,
85
+ error-hover-input-text-color: null,
86
+ disabled-container-opacity: null,
87
+ error-hover-state-layer-color: null,
88
+ error-hover-state-layer-opacity: null,
89
+ hover-state-layer-color: null,
90
+ hover-state-layer-opacity: null,
91
+ );
92
+ }
93
+
94
+ // Tokens that can be configured through Angular Material's color theming API.
95
+ @function get-color-tokens($config) {
96
+ $foreground: map.get($config, foreground);
97
+ $background: map.get($config, background);
98
+ $warn: map.get($config, warn);
99
+ $is-dark: map.get($config, is-dark);
100
+ $surface: theming.get-color-from-palette($background, card);
101
+ $on-surface: if($is-dark, #fff, #000);
102
+ $warn-color: theming.get-color-from-palette($warn);
103
+ $color-tokens: private-get-color-palette-color-tokens($config, primary);
104
+
105
+ @return map.merge($color-tokens, (
106
+ container-color: _variable-safe-mix($on-surface, $surface, 4%),
107
+ disabled-container-color: _variable-safe-mix($on-surface, $surface, 2%),
108
+
109
+ label-text-color: rgba($on-surface, 0.6),
110
+ disabled-label-text-color: rgba($on-surface, 0.38),
111
+
112
+ input-text-color: rgba($on-surface, 0.87),
113
+ disabled-input-text-color: rgba($on-surface, 0.38),
114
+ input-text-placeholder-color: rgba($on-surface, 0.6),
115
+
116
+ error-focus-label-text-color: $warn-color,
117
+ error-label-text-color: $warn-color,
118
+ error-caret-color: $warn-color,
119
+
120
+ active-indicator-color: rgba($on-surface, 0.42),
121
+ disabled-active-indicator-color: rgba($on-surface, 0.06),
122
+ hover-active-indicator-color: rgba($on-surface, 0.87),
123
+ error-active-indicator-color: $warn-color,
124
+ error-focus-active-indicator-color: $warn-color,
125
+ error-hover-active-indicator-color: $warn-color,
126
+ ));
127
+ }
128
+
129
+ @function _variable-safe-mix($first-color, $second-color, $amount) {
130
+ @if (meta.type-of($first-color) == color and meta.type-of($second-color) == color) {
131
+ @return color.mix($first-color, $second-color, $amount);
132
+ }
133
+ @return $first-color;
134
+ }
135
+
136
+ // Generates the mapping for the properties that change based on the slide toggle color.
137
+ @function private-get-color-palette-color-tokens($config, $palette-name) {
138
+ $palette: map.get($config, $palette-name);
139
+ $palette-color: theming.get-color-from-palette($palette);
140
+
141
+ @return (
142
+ caret-color: $palette-color,
143
+ focus-active-indicator-color: $palette-color,
144
+ focus-label-text-color: theming.get-color-from-palette($palette, default, 0.87),
145
+ );
146
+ }
147
+
148
+ // Tokens that can be configured through Angular Material's typography theming API.
149
+ @function get-typography-tokens($config) {
150
+ $fallback-font-family: typography-utils.font-family($config);
151
+
152
+ @return (
153
+ label-text-font: typography-utils.font-family($config, body-1) or $fallback-font-family,
154
+ label-text-line-height: typography-utils.line-height($config, body-1),
155
+ label-text-size: typography-utils.font-size($config, body-1),
156
+ label-text-tracking: typography-utils.letter-spacing($config, body-1),
157
+ label-text-weight: typography-utils.font-weight($config, body-1),
158
+ );
159
+ }
160
+
161
+ // Tokens that can be configured through Angular Material's density theming API.
162
+ @function get-density-tokens($config) {
163
+ @return ();
164
+ }
165
+
166
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
167
+ // This is used to create token slots.
168
+ @function get-token-slots() {
169
+ @return sass-utils.deep-merge-all(
170
+ get-unthemable-tokens(),
171
+ get-color-tokens(token-utils.$placeholder-color-config),
172
+ get-typography-tokens(token-utils.$placeholder-typography-config),
173
+ get-density-tokens(token-utils.$placeholder-density-config)
174
+ );
175
+ }
@@ -0,0 +1,158 @@
1
+ @use 'sass:map';
2
+ @use '../../../theming/theming';
3
+ @use '../../../style/sass-utils';
4
+ @use '../../../typography/typography-utils';
5
+ @use '../../token-utils';
6
+
7
+ // The prefix used to generate the fully qualified name for tokens in this file.
8
+ $prefix: (mdc, outlined-text-field);
9
+
10
+ // Tokens that can't be configured through Angular Material's current theming API,
11
+ // but may be in a future version of the theming API.
12
+ //
13
+ // Tokens that are available in MDC, but not used in Angular Material should be mapped to `null`.
14
+ // `null` indicates that we are intentionally choosing not to emit a slot or value for the token in
15
+ // our CSS.
16
+ @function get-unthemable-tokens() {
17
+ @return (
18
+ outline-width: 1px,
19
+ focus-outline-width: 2px,
20
+ container-shape: 4px,
21
+
22
+ // =============================================================================================
23
+ // = TOKENS NOT USED IN ANGULAR MATERIAL =
24
+ // =============================================================================================
25
+ error-focus-caret-color: null,
26
+ error-hover-caret-color: null,
27
+ focus-caret-color: null,
28
+ hover-caret-color: null,
29
+ disabled-outline-opacity: null,
30
+ hover-outline-width: null,
31
+ disabled-outline-width: null,
32
+ label-text-type: null,
33
+ label-text-populated-line-height: null,
34
+ label-text-populated-size: null,
35
+ hover-label-text-color: null,
36
+ error-hover-label-text-color: null,
37
+ disabled-label-text-opacity: null,
38
+ disabled-supporting-text-color: null,
39
+ disabled-supporting-text-opacity: null,
40
+ error-focus-supporting-text-color: null,
41
+ error-hover-supporting-text-color: null,
42
+ error-supporting-text-color: null,
43
+ focus-supporting-text-color: null,
44
+ hover-supporting-text-color: null,
45
+ supporting-text-color: null,
46
+ supporting-text-font: null,
47
+ supporting-text-line-height: null,
48
+ supporting-text-size: null,
49
+ supporting-text-tracking: null,
50
+ supporting-text-type: null,
51
+ supporting-text-weight: null,
52
+ disabled-leading-icon-color: null,
53
+ disabled-leading-icon-opacity: null,
54
+ error-focus-leading-icon-color: null,
55
+ error-hover-leading-icon-color: null,
56
+ error-leading-icon-color: null,
57
+ focus-leading-icon-color: null,
58
+ hover-leading-icon-color: null,
59
+ leading-icon-color: null,
60
+ leading-icon-size: null,
61
+ disabled-trailing-icon-color: null,
62
+ disabled-trailing-icon-opacity: null,
63
+ error-focus-trailing-icon-color: null,
64
+ error-hover-trailing-icon-color: null,
65
+ error-trailing-icon-color: null,
66
+ focus-trailing-icon-color: null,
67
+ hover-trailing-icon-color: null,
68
+ trailing-icon-color: null,
69
+ trailing-icon-size: null,
70
+ input-text-prefix-color: null,
71
+ input-text-type: null,
72
+ container-height: null,
73
+ input-text-suffix-color: null,
74
+ input-text-font: null,
75
+ input-text-line-height: null,
76
+ input-text-size: null,
77
+ input-text-tracking: null,
78
+ input-text-weight: null,
79
+ disabled-input-text-opacity: null,
80
+ error-focus-input-text-color: null,
81
+ error-hover-input-text-color: null,
82
+ error-input-text-color: null,
83
+ focus-input-text-color: null,
84
+ hover-input-text-color: null,
85
+ );
86
+ }
87
+
88
+ // Tokens that can be configured through Angular Material's color theming API.
89
+ @function get-color-tokens($config) {
90
+ $foreground: map.get($config, foreground);
91
+ $warn: map.get($config, warn);
92
+ $is-dark: map.get($config, is-dark);
93
+ $on-surface: if($is-dark, #fff, #000);
94
+ $warn-color: theming.get-color-from-palette($warn);
95
+ $color-tokens: private-get-color-palette-color-tokens($config, primary);
96
+
97
+ @return map.merge($color-tokens, (
98
+ label-text-color: rgba($on-surface, 0.6),
99
+ disabled-label-text-color: rgba($on-surface, 0.38),
100
+
101
+ input-text-color: rgba($on-surface, 0.87),
102
+ disabled-input-text-color: rgba($on-surface, 0.38),
103
+ input-text-placeholder-color: rgba($on-surface, 0.6),
104
+
105
+ error-caret-color: $warn-color,
106
+ error-focus-label-text-color: $warn-color,
107
+ error-label-text-color: $warn-color,
108
+
109
+ // Outline tokens
110
+ outline-color: rgba($on-surface, 0.38),
111
+ disabled-outline-color: rgba($on-surface, 0.06),
112
+ hover-outline-color: rgba($on-surface, 0.87),
113
+ error-focus-outline-color: $warn-color,
114
+ error-hover-outline-color: $warn-color,
115
+ error-outline-color: $warn-color,
116
+ ));
117
+ }
118
+
119
+ // Generates the mapping for the properties that change based on the slide toggle color.
120
+ @function private-get-color-palette-color-tokens($config, $palette-name) {
121
+ $palette: map.get($config, $palette-name);
122
+ $palette-color: theming.get-color-from-palette($palette);
123
+
124
+ @return (
125
+ caret-color: $palette-color,
126
+ focus-outline-color: $palette-color,
127
+ focus-label-text-color: theming.get-color-from-palette($palette, default, 0.87),
128
+ );
129
+ }
130
+
131
+ // Tokens that can be configured through Angular Material's typography theming API.
132
+ @function get-typography-tokens($config) {
133
+ $fallback-font-family: typography-utils.font-family($config);
134
+
135
+ @return (
136
+ label-text-font: typography-utils.font-family($config, body-1) or $fallback-font-family,
137
+ label-text-line-height: typography-utils.line-height($config, body-1),
138
+ label-text-size: typography-utils.font-size($config, body-1),
139
+ label-text-tracking: typography-utils.letter-spacing($config, body-1),
140
+ label-text-weight: typography-utils.font-weight($config, body-1),
141
+ );
142
+ }
143
+
144
+ // Tokens that can be configured through Angular Material's density theming API.
145
+ @function get-density-tokens($config) {
146
+ @return ();
147
+ }
148
+
149
+ // Combines the tokens generated by the above functions into a single map with placeholder values.
150
+ // This is used to create token slots.
151
+ @function get-token-slots() {
152
+ @return sass-utils.deep-merge-all(
153
+ get-unthemable-tokens(),
154
+ get-color-tokens(token-utils.$placeholder-color-config),
155
+ get-typography-tokens(token-utils.$placeholder-typography-config),
156
+ get-density-tokens(token-utils.$placeholder-density-config)
157
+ );
158
+ }
@@ -51,9 +51,9 @@ $prefix: (mdc, plain-tooltip);
51
51
  // Font for the tooltip text.
52
52
  supporting-text-font: typography-utils.font-family($config, caption)
53
53
  or typography-utils.font-family($config),
54
- // Font size for the the tooltip text.
54
+ // Font size for the tooltip text.
55
55
  supporting-text-size: typography-utils.font-size($config, caption),
56
- // Font weight of the the tooltip text.
56
+ // Font weight of the tooltip text.
57
57
  supporting-text-weight: typography-utils.font-weight($config, caption),
58
58
  // Tracking (space between letters) of the tooltip text.
59
59
  supporting-text-tracking: typography-utils.letter-spacing($config, caption),