@angular/material 16.1.0-next.1 → 16.1.0-next.2

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 (68) hide show
  1. package/_index.scss +7 -4
  2. package/_token-theming.scss +2 -0
  3. package/button/_icon-button-theme.scss +0 -1
  4. package/card/_card-theme.import.scss +1 -1
  5. package/card/_card-theme.scss +11 -0
  6. package/checkbox/_checkbox-theme.import.scss +1 -1
  7. package/checkbox/_checkbox-theme.scss +9 -0
  8. package/core/mdc-helpers/_mdc-helpers.scss +13 -28
  9. package/core/style/_sass-utils.scss +32 -2
  10. package/core/tokens/_token-utils.scss +3 -12
  11. package/core/tokens/m2/_index.scss +84 -0
  12. package/core/tokens/m2/mat/_card.scss +17 -16
  13. package/core/tokens/m2/mat/_radio.scss +6 -5
  14. package/core/tokens/m2/mat/_snack-bar.scss +6 -5
  15. package/core/tokens/m2/mat/_tab-header-with-background.scss +6 -5
  16. package/core/tokens/m2/mat/_tab-header.scss +2 -1
  17. package/core/tokens/m2/mdc/_checkbox.scss +39 -38
  18. package/core/tokens/m2/mdc/_chip.scss +2 -2
  19. package/core/tokens/m2/mdc/_circular-progress.scss +5 -8
  20. package/core/tokens/m2/mdc/_dialog.scss +6 -7
  21. package/core/tokens/m2/mdc/_elevated-card.scss +2 -1
  22. package/core/tokens/m2/mdc/_icon-button.scss +5 -13
  23. package/core/tokens/m2/mdc/_linear-progress.scss +9 -11
  24. package/core/tokens/m2/mdc/_list.scss +102 -101
  25. package/core/tokens/m2/mdc/_outlined-card.scss +2 -1
  26. package/core/tokens/m2/mdc/_plain-tooltip.scss +6 -9
  27. package/core/tokens/m2/mdc/_radio.scss +6 -7
  28. package/core/tokens/m2/mdc/_snack-bar.scss +6 -8
  29. package/core/tokens/m2/mdc/_tab-indicator.scss +6 -6
  30. package/core/tokens/m2/mdc/_tab.scss +6 -6
  31. package/core/typography/_all-typography.scss +1 -154
  32. package/core/typography/_typography.scss +162 -0
  33. package/esm2022/chips/chip-grid.mjs +2 -2
  34. package/esm2022/chips/chip-listbox.mjs +2 -2
  35. package/esm2022/chips/chip-set.mjs +2 -2
  36. package/esm2022/core/version.mjs +1 -1
  37. package/esm2022/legacy-select/public-api.mjs +2 -2
  38. package/esm2022/legacy-select/select.mjs +1 -1
  39. package/esm2022/paginator/paginator.mjs +1 -1
  40. package/esm2022/progress-bar/progress-bar.mjs +2 -2
  41. package/esm2022/select/select.mjs +25 -14
  42. package/esm2022/slider/slider-input.mjs +21 -9
  43. package/esm2022/table/row.mjs +2 -2
  44. package/fesm2022/chips.mjs +6 -6
  45. package/fesm2022/chips.mjs.map +1 -1
  46. package/fesm2022/core.mjs +1 -1
  47. package/fesm2022/core.mjs.map +1 -1
  48. package/fesm2022/legacy-select.mjs.map +1 -1
  49. package/fesm2022/paginator.mjs +1 -1
  50. package/fesm2022/paginator.mjs.map +1 -1
  51. package/fesm2022/progress-bar.mjs +2 -2
  52. package/fesm2022/progress-bar.mjs.map +1 -1
  53. package/fesm2022/select.mjs +24 -13
  54. package/fesm2022/select.mjs.map +1 -1
  55. package/fesm2022/slider.mjs +20 -8
  56. package/fesm2022/slider.mjs.map +1 -1
  57. package/fesm2022/table.mjs +1 -1
  58. package/fesm2022/table.mjs.map +1 -1
  59. package/legacy-select/index.d.ts +7 -2
  60. package/package.json +49 -49
  61. package/schematics/ng-add/index.js +1 -1
  62. package/schematics/ng-add/index.mjs +1 -1
  63. package/schematics/ng-generate/mdc-migration/index_bundled.js +44 -44
  64. package/schematics/ng-update/index_bundled.js +25 -25
  65. package/select/index.d.ts +13 -5
  66. package/slider/index.d.ts +10 -1
  67. package/table/index.d.ts +1 -1
  68. package/tabs/_tabs-theme.scss +0 -1
@@ -1,5 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../theming/theming';
3
+ @use '../../../style/sass-utils';
3
4
  @use '../../token-utils';
4
5
 
5
6
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -52,14 +53,10 @@ $prefix: (mdc, circular-progress);
52
53
  // Combines the tokens generated by the above functions into a single map with placeholder values.
53
54
  // This is used to create token slots.
54
55
  @function get-token-slots() {
55
- @return map.merge(
56
- get-unthemable-tokens(),
57
- map.merge(
56
+ @return sass-utils.deep-merge-all(
57
+ get-unthemable-tokens(),
58
58
  get-color-tokens(token-utils.$placeholder-color-config),
59
- map.merge(
60
- get-typography-tokens(token-utils.$placeholder-typography-config),
61
- get-density-tokens(token-utils.$placeholder-density-config)
62
- )
63
- )
59
+ get-typography-tokens(token-utils.$placeholder-typography-config),
60
+ get-density-tokens(token-utils.$placeholder-density-config)
64
61
  );
65
62
  }
@@ -2,6 +2,7 @@
2
2
  @use '../../../theming/theming';
3
3
  @use '../../../typography/typography-utils';
4
4
  @use '../../../mdc-helpers/mdc-helpers';
5
+ @use '../../../style/sass-utils';
5
6
  @use '../../token-utils';
6
7
 
7
8
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -21,7 +22,6 @@ $prefix: (mdc, dialog);
21
22
  container-shadow-color: #000,
22
23
  // Border radius of the container.
23
24
  container-shape: 4px,
24
-
25
25
  // =============================================================================================
26
26
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
27
27
  // =============================================================================================
@@ -87,7 +87,6 @@ $prefix: (mdc, dialog);
87
87
  subhead-size: typography-utils.font-size($config, headline-6),
88
88
  subhead-weight: typography-utils.font-weight($config, headline-6),
89
89
  subhead-tracking: typography-utils.letter-spacing($config, headline-6),
90
-
91
90
  // Typography of the dialog body text.
92
91
  supporting-text-font: typography-utils.font-family($config, body-1)
93
92
  or typography-utils.font-family($config),
@@ -106,10 +105,10 @@ $prefix: (mdc, dialog);
106
105
  // Combines the tokens generated by the above functions into a single map with placeholder values.
107
106
  // This is used to create token slots.
108
107
  @function get-token-slots() {
109
- @return token-utils.merge-all(
110
- get-unthemable-tokens(),
111
- get-color-tokens(token-utils.$placeholder-color-config),
112
- get-typography-tokens(token-utils.$placeholder-typography-config),
113
- get-density-tokens(token-utils.$placeholder-density-config)
108
+ @return sass-utils.deep-merge-all(
109
+ get-unthemable-tokens(),
110
+ get-color-tokens(token-utils.$placeholder-color-config),
111
+ get-typography-tokens(token-utils.$placeholder-typography-config),
112
+ get-density-tokens(token-utils.$placeholder-density-config)
114
113
  );
115
114
  }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../style/elevation';
3
3
  @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
4
5
  @use '../../token-utils';
5
6
 
6
7
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -74,7 +75,7 @@ $prefix: (mdc, elevated-card);
74
75
  // Combines the tokens generated by the above functions into a single map with placeholder values.
75
76
  // This is used to create token slots.
76
77
  @function get-token-slots() {
77
- @return token-utils.merge-all(
78
+ @return sass-utils.deep-merge-all(
78
79
  get-unthemable-tokens(),
79
80
  get-color-tokens(token-utils.$placeholder-color-config),
80
81
  get-typography-tokens(token-utils.$placeholder-typography-config),
@@ -1,4 +1,4 @@
1
- @use 'sass:map';
1
+ @use '../../../style/sass-utils';
2
2
  @use '../../token-utils';
3
3
 
4
4
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -18,18 +18,14 @@ $prefix: (mdc, icon-button);
18
18
  // Determines the size of the icon. Name is inaccurate - applies to the whole component,
19
19
  // not just the state layer.
20
20
  state-layer-size: 48px,
21
-
22
21
  // MDC's icon size applied to svg and img elements inside the component
23
22
  icon-size: 24px,
24
-
25
23
  // Only applies to :disabled icons, but Angular Components uses [disabled] since :disabled
26
24
  // wouldn't work on <a> tags.
27
25
  disabled-icon-color: black,
28
-
29
26
  // Angular version applies an opacity 1 with a color change, and this only applies with
30
27
  // :disabled anyways.
31
28
  disabled-icon-opacity: 0.38,
32
-
33
29
  // =============================================================================================
34
30
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
35
31
  // =============================================================================================
@@ -66,14 +62,10 @@ $prefix: (mdc, icon-button);
66
62
  // Combines the tokens generated by the above functions into a single map with placeholder values.
67
63
  // This is used to create token slots.
68
64
  @function get-token-slots() {
69
- @return map.merge(
65
+ @return sass-utils.deep-merge-all(
70
66
  get-unthemable-tokens(),
71
- map.merge(
72
- get-color-tokens(token-utils.$placeholder-color-config),
73
- map.merge(
74
- get-typography-tokens(token-utils.$placeholder-typography-config),
75
- get-density-tokens(token-utils.$placeholder-density-config)
76
- )
77
- )
67
+ get-color-tokens(token-utils.$placeholder-color-config),
68
+ get-typography-tokens(token-utils.$placeholder-typography-config),
69
+ get-density-tokens(token-utils.$placeholder-density-config)
78
70
  );
79
71
  }
@@ -1,4 +1,5 @@
1
1
  @use '../../../theming/theming';
2
+ @use '../../../style/sass-utils';
2
3
  @use '../../token-utils';
3
4
  @use 'sass:color';
4
5
  @use 'sass:map';
@@ -21,6 +22,7 @@ $prefix: (mdc, linear-progress);
21
22
  // bar and `track-height` applies to the track.
22
23
  active-indicator-height: $height,
23
24
  track-height: $height,
25
+ track-shape: 0,
24
26
  );
25
27
  }
26
28
 
@@ -31,9 +33,9 @@ $prefix: (mdc, linear-progress);
31
33
  // The color of the progress bar's active section.
32
34
  active-indicator-color: $primary,
33
35
  track-color: if(
34
- meta.type-of($primary) == color,
35
- color.adjust($primary, $alpha: -0.75),
36
- $primary
36
+ meta.type-of($primary) == color,
37
+ color.adjust($primary, $alpha: -0.75),
38
+ $primary
37
39
  )
38
40
  );
39
41
  }
@@ -51,14 +53,10 @@ $prefix: (mdc, linear-progress);
51
53
  // Combines the tokens generated by the above functions into a single map with placeholder values.
52
54
  // This is used to create token slots.
53
55
  @function get-token-slots() {
54
- @return map.merge(
55
- get-unthemable-tokens(),
56
- map.merge(
56
+ @return sass-utils.deep-merge-all(
57
+ get-unthemable-tokens(),
57
58
  get-color-tokens(token-utils.$placeholder-color-config),
58
- map.merge(
59
- get-typography-tokens(token-utils.$placeholder-typography-config),
60
- get-density-tokens(token-utils.$placeholder-density-config)
61
- )
62
- )
59
+ get-typography-tokens(token-utils.$placeholder-typography-config),
60
+ get-density-tokens(token-utils.$placeholder-density-config)
63
61
  );
64
62
  }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../theming/theming';
3
3
  @use '../../../typography/typography-utils';
4
+ @use '../../../style/sass-utils';
4
5
  @use '../../token-utils';
5
6
 
6
7
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -15,69 +16,69 @@ $prefix: (mdc, list);
15
16
  @function get-unthemable-tokens() {
16
17
  @return (
17
18
  // Border radius of list items.
18
- list-item-container-shape: 0,
19
+ list-item-container-shape: 0,
19
20
  // Border radius of the list item's leading avatar.
20
- list-item-leading-avatar-shape: 50%,
21
+ list-item-leading-avatar-shape: 50%,
21
22
  // Background color of list items.
22
- list-item-container-color: transparent,
23
+ list-item-container-color: transparent,
23
24
  // Background color of list items when selected.
24
- list-item-selected-container-color: transparent,
25
+ list-item-selected-container-color: transparent,
25
26
  // Background color of the list item's leading avatar.
26
- list-item-leading-avatar-color: transparent,
27
+ list-item-leading-avatar-color: transparent,
27
28
  // Height & width of the list item's leading icon.
28
- list-item-leading-icon-size: 24px,
29
+ list-item-leading-icon-size: 24px,
29
30
  // Height & width of the list item's leading avatar.
30
- list-item-leading-avatar-size: 40px,
31
+ list-item-leading-avatar-size: 40px,
31
32
  // Height & width of the list item's trailing icon.
32
- list-item-trailing-icon-size: 24px,
33
+ list-item-trailing-icon-size: 24px,
33
34
  // Color of the list item's overlay when the item is disabled.
34
- list-item-disabled-state-layer-color: transparent,
35
+ list-item-disabled-state-layer-color: transparent,
35
36
  // Opacity of the list item's overlay when the item is disabled.
36
- list-item-disabled-state-layer-opacity: 0,
37
+ list-item-disabled-state-layer-opacity: 0,
37
38
  // Opacity of the list item's primary & supporting text when the item is disabled.
38
- list-item-disabled-label-text-opacity: 0.38,
39
+ list-item-disabled-label-text-opacity: 0.38,
39
40
  // Opacity of the list item's leading icon when the item is disabled.
40
- list-item-disabled-leading-icon-opacity: 0.38,
41
+ list-item-disabled-leading-icon-opacity: 0.38,
41
42
  // Opacity of the list item's trailing icon when the item is disabled.
42
- list-item-disabled-trailing-icon-opacity: 0.38,
43
+ list-item-disabled-trailing-icon-opacity: 0.38,
43
44
  // =============================================================================================
44
45
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
45
46
  // =============================================================================================
46
47
  // Overline not implemented in Angular Material.
47
48
  // TODO(mmalerba): Consider implementing in the future.
48
- list-item-overline-color: null,
49
- list-item-overline-font: null,
50
- list-item-overline-line-height: null,
51
- list-item-overline-size: null,
52
- list-item-overline-tracking: null,
53
- list-item-overline-weight: null,
49
+ list-item-overline-color: null,
50
+ list-item-overline-font: null,
51
+ list-item-overline-line-height: null,
52
+ list-item-overline-size: null,
53
+ list-item-overline-tracking: null,
54
+ list-item-overline-weight: null,
54
55
  // Leading video not implemented in Angular Material.
55
56
  // TODO(mmalerba): Consider implementing in the future.
56
- list-item-leading-video-shape: null,
57
- list-item-leading-video-width: null,
58
- list-item-leading-video-height: null,
57
+ list-item-leading-video-shape: null,
58
+ list-item-leading-video-width: null,
59
+ list-item-leading-video-height: null,
59
60
  // Leading image not implemented in Angular Material.
60
61
  // TODO(mmalerba): Consider implementing in the future.
61
- list-item-leading-image-width: null,
62
- list-item-leading-image-height: null,
63
- list-item-leading-image-shape: null,
62
+ list-item-leading-image-width: null,
63
+ list-item-leading-image-height: null,
64
+ list-item-leading-image-shape: null,
64
65
  // List divider is not implemented in Angular Material.
65
66
  // TODO(mmalerba): Maybe mat-divider should be based on these tokens?
66
- divider-color: null,
67
- divider-height: null,
67
+ divider-color: null,
68
+ divider-height: null,
68
69
  // Redundant since it is always overridden by one- two- or three- line tokens, omitted to save
69
70
  // bytes.
70
- list-item-container-height: null,
71
+ list-item-container-height: null,
71
72
  // MDC does not seem to emit any CSS variables for these tokens, may be use in the future.
72
73
  // TODO(mmalerba): Discuss with MDC if these should be added.
73
- list-item-container-elevation: null,
74
- list-item-leading-avatar-label-color: null,
75
- list-item-leading-avatar-label-font: null,
76
- list-item-leading-avatar-label-line-height: null,
77
- list-item-leading-avatar-label-size: null,
78
- list-item-leading-avatar-label-tracking: null,
79
- list-item-leading-avatar-label-weight: null,
80
- list-item-unselected-trailing-icon-color: null,
74
+ list-item-container-elevation: null,
75
+ list-item-leading-avatar-label-color: null,
76
+ list-item-leading-avatar-label-font: null,
77
+ list-item-leading-avatar-label-line-height: null,
78
+ list-item-leading-avatar-label-size: null,
79
+ list-item-leading-avatar-label-tracking: null,
80
+ list-item-leading-avatar-label-weight: null,
81
+ list-item-unselected-trailing-icon-color: null,
81
82
  );
82
83
  }
83
84
 
@@ -87,44 +88,44 @@ $prefix: (mdc, list);
87
88
  $is-dark: map.get($config, is-dark);
88
89
  $foreground-base: theming.get-color-from-palette($foreground, base);
89
90
  $text-icon-on-background:
90
- theming.get-color-from-palette($foreground, base, if($is-dark, 0.5, 0.38));
91
+ theming.get-color-from-palette($foreground, base, if($is-dark, 0.5, 0.38));
91
92
 
92
93
  @return (
93
94
  // Text color of the list item primary text.
94
- list-item-label-text-color: theming.get-color-from-palette($foreground, text),
95
+ list-item-label-text-color: theming.get-color-from-palette($foreground, text),
95
96
  // Text color of the list item supporting text.
96
- list-item-supporting-text-color: theming.get-color-from-palette($foreground, secondary-text),
97
+ list-item-supporting-text-color: theming.get-color-from-palette($foreground, secondary-text),
97
98
  // Color of the list item's leading icon.
98
- list-item-leading-icon-color: $text-icon-on-background,
99
+ list-item-leading-icon-color: $text-icon-on-background,
99
100
  // Text color of the list item's trailing text.
100
- list-item-trailing-supporting-text-color: theming.get-color-from-palette(
101
- $foreground, hint-text),
101
+ list-item-trailing-supporting-text-color: theming.get-color-from-palette(
102
+ $foreground, hint-text),
102
103
  // Color of the list item's trailing icon.
103
- list-item-trailing-icon-color: $text-icon-on-background,
104
+ list-item-trailing-icon-color: $text-icon-on-background,
104
105
  // Color of the list item's trailing icon when the item is selected.
105
- list-item-selected-trailing-icon-color: $text-icon-on-background,
106
+ list-item-selected-trailing-icon-color: $text-icon-on-background,
106
107
  // Text color of the list item's primary text when the item is disabled.
107
- list-item-disabled-label-text-color: theming.get-color-from-palette($foreground, base),
108
+ list-item-disabled-label-text-color: theming.get-color-from-palette($foreground, base),
108
109
  // Color of the list item's leading icon when the item is disabled.
109
- list-item-disabled-leading-icon-color: theming.get-color-from-palette($foreground, base),
110
+ list-item-disabled-leading-icon-color: theming.get-color-from-palette($foreground, base),
110
111
  // Color of the list item's trailing icon when the item is disabled.
111
- list-item-disabled-trailing-icon-color: theming.get-color-from-palette($foreground, base),
112
+ list-item-disabled-trailing-icon-color: theming.get-color-from-palette($foreground, base),
112
113
  // Color of the list item's primary text when the item is being hovered.
113
- list-item-hover-label-text-color: theming.get-color-from-palette($foreground, text),
114
+ list-item-hover-label-text-color: theming.get-color-from-palette($foreground, text),
114
115
  // Color of the list item's leading icon when the item is being hovered.
115
- list-item-hover-leading-icon-color: $text-icon-on-background,
116
+ list-item-hover-leading-icon-color: $text-icon-on-background,
116
117
  // Color of the list item's trailing icon when the item is being hovered.
117
- list-item-hover-trailing-icon-color: $text-icon-on-background,
118
+ list-item-hover-trailing-icon-color: $text-icon-on-background,
118
119
  // Color of the list item's primary text when the item is focused.
119
- list-item-focus-label-text-color: theming.get-color-from-palette($foreground, text),
120
+ list-item-focus-label-text-color: theming.get-color-from-palette($foreground, text),
120
121
  // Color of the list item's overlay when the item is hovered.
121
- list-item-hover-state-layer-color: theming.get-color-from-palette($foreground, base),
122
+ list-item-hover-state-layer-color: theming.get-color-from-palette($foreground, base),
122
123
  // Opacity of the list item's overlay when the item is hovered.
123
- list-item-hover-state-layer-opacity: if($is-dark, 0.08, 0.04),
124
+ list-item-hover-state-layer-opacity: if($is-dark, 0.08, 0.04),
124
125
  // Color of the list item's overlay when the item is focused.
125
- list-item-focus-state-layer-color: theming.get-color-from-palette($foreground, base),
126
+ list-item-focus-state-layer-color: theming.get-color-from-palette($foreground, base),
126
127
  // Opacity of the list item's overlay when the item is focused.
127
- list-item-focus-state-layer-opacity: if($is-dark, 0.24, 0.12),
128
+ list-item-focus-state-layer-opacity: if($is-dark, 0.24, 0.12),
128
129
  );
129
130
  }
130
131
 
@@ -132,40 +133,40 @@ $prefix: (mdc, list);
132
133
  @function get-typography-tokens($config) {
133
134
  @return (
134
135
  // Font family of the list item primary text.
135
- list-item-label-text-font: typography-utils.font-family($config, body-1)
136
+ list-item-label-text-font: typography-utils.font-family($config, body-1)
136
137
  or typography-utils.font-family($config),
137
138
  // Line height of the list item primary text.
138
- list-item-label-text-line-height: typography-utils.line-height($config, body-1),
139
+ list-item-label-text-line-height: typography-utils.line-height($config, body-1),
139
140
  // Font size of the list item primary text.
140
- list-item-label-text-size: typography-utils.font-size($config, body-1),
141
+ list-item-label-text-size: typography-utils.font-size($config, body-1),
141
142
  // Letter spacing of the list item primary text.
142
- list-item-label-text-tracking: typography-utils.letter-spacing($config, body-1),
143
+ list-item-label-text-tracking: typography-utils.letter-spacing($config, body-1),
143
144
  // Font weight of the list item primary text.
144
- list-item-label-text-weight: typography-utils.font-weight($config, body-1),
145
+ list-item-label-text-weight: typography-utils.font-weight($config, body-1),
145
146
  // Font family of the list item supporting text.
146
- list-item-supporting-text-font: typography-utils.font-family($config, body-2)
147
+ list-item-supporting-text-font: typography-utils.font-family($config, body-2)
147
148
  or typography-utils.font-family($config),
148
149
  // Line height of the list item supporting text.
149
- list-item-supporting-text-line-height: typography-utils.line-height($config, body-2),
150
+ list-item-supporting-text-line-height: typography-utils.line-height($config, body-2),
150
151
  // Font size of the list item supporting text.
151
- list-item-supporting-text-size: typography-utils.font-size($config, body-2),
152
+ list-item-supporting-text-size: typography-utils.font-size($config, body-2),
152
153
  // Letter spacing of the list item supporting text.
153
- list-item-supporting-text-tracking: typography-utils.letter-spacing($config, body-2),
154
+ list-item-supporting-text-tracking: typography-utils.letter-spacing($config, body-2),
154
155
  // Font weight of the list item supporting text.
155
- list-item-supporting-text-weight: typography-utils.font-weight($config, body-2),
156
+ list-item-supporting-text-weight: typography-utils.font-weight($config, body-2),
156
157
  // Font family of the list item's trailing text.
157
- list-item-trailing-supporting-text-font: typography-utils.font-family($config, caption)
158
+ list-item-trailing-supporting-text-font: typography-utils.font-family($config, caption)
158
159
  or typography-utils.font-family($config),
159
160
  // Line height of the list item's trailing text.
160
- list-item-trailing-supporting-text-line-height: typography-utils.line-height(
161
- $config, caption),
161
+ list-item-trailing-supporting-text-line-height: typography-utils.line-height(
162
+ $config, caption),
162
163
  // Font size of the list item's trailing text.
163
- list-item-trailing-supporting-text-size: typography-utils.font-size($config, caption),
164
+ list-item-trailing-supporting-text-size: typography-utils.font-size($config, caption),
164
165
  // Letter spacing color of the list item's trailing text.
165
- list-item-trailing-supporting-text-tracking: typography-utils.letter-spacing(
166
- $config, caption),
166
+ list-item-trailing-supporting-text-tracking: typography-utils.letter-spacing(
167
+ $config, caption),
167
168
  // Font weight of the list item's trailing text.
168
- list-item-trailing-supporting-text-weight: typography-utils.font-weight($config, caption),
169
+ list-item-trailing-supporting-text-weight: typography-utils.font-weight($config, caption),
169
170
  );
170
171
  }
171
172
 
@@ -175,42 +176,42 @@ $prefix: (mdc, list);
175
176
 
176
177
  @return (
177
178
  // Height of one line list items.
178
- list-item-one-line-container-height: map.get((
179
- 0: 48px,
180
- -1: 44px,
181
- -2: 40px,
182
- -3: 36px,
183
- -4: 32px,
184
- -5: 24px,
185
- ), $scale),
179
+ list-item-one-line-container-height: map.get((
180
+ 0: 48px,
181
+ -1: 44px,
182
+ -2: 40px,
183
+ -3: 36px,
184
+ -4: 32px,
185
+ -5: 24px,
186
+ ), $scale),
186
187
  // Height of two line list items.
187
- list-item-two-line-container-height: map.get((
188
- 0: 64px,
189
- -1: 60px,
190
- -2: 56px,
191
- -3: 52px,
192
- -4: 48px,
193
- -5: 48px,
194
- ), $scale),
188
+ list-item-two-line-container-height: map.get((
189
+ 0: 64px,
190
+ -1: 60px,
191
+ -2: 56px,
192
+ -3: 52px,
193
+ -4: 48px,
194
+ -5: 48px,
195
+ ), $scale),
195
196
  // Height of three line list items.
196
- list-item-three-line-container-height: map.get((
197
- 0: 88px,
198
- -1: 84px,
199
- -2: 80px,
200
- -3: 76px,
201
- -4: 72px,
202
- -5: 56px,
203
- ), $scale),
197
+ list-item-three-line-container-height: map.get((
198
+ 0: 88px,
199
+ -1: 84px,
200
+ -2: 80px,
201
+ -3: 76px,
202
+ -4: 72px,
203
+ -5: 56px,
204
+ ), $scale),
204
205
  );
205
206
  }
206
207
 
207
208
  // Combines the tokens generated by the above functions into a single map with placeholder values.
208
209
  // This is used to create token slots.
209
210
  @function get-token-slots() {
210
- @return token-utils.merge-all(
211
- get-unthemable-tokens(),
212
- get-color-tokens(token-utils.$placeholder-color-config),
213
- get-typography-tokens(token-utils.$placeholder-typography-config),
214
- get-density-tokens(token-utils.$placeholder-density-config)
211
+ @return sass-utils.deep-merge-all(
212
+ get-unthemable-tokens(),
213
+ get-color-tokens(token-utils.$placeholder-color-config),
214
+ get-typography-tokens(token-utils.$placeholder-typography-config),
215
+ get-density-tokens(token-utils.$placeholder-density-config)
215
216
  );
216
217
  }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../style/elevation';
3
3
  @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
4
5
  @use '../../token-utils';
5
6
 
6
7
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -82,7 +83,7 @@ $prefix: (mdc, outlined-card);
82
83
  // Combines the tokens generated by the above functions into a single map with placeholder values.
83
84
  // This is used to create token slots.
84
85
  @function get-token-slots() {
85
- @return token-utils.merge-all(
86
+ @return sass-utils.deep-merge-all(
86
87
  get-unthemable-tokens(),
87
88
  get-color-tokens(token-utils.$placeholder-color-config),
88
89
  get-typography-tokens(token-utils.$placeholder-typography-config),
@@ -2,6 +2,7 @@
2
2
  @use '../../../theming/theming';
3
3
  @use '../../../typography/typography-utils';
4
4
  @use '../../../mdc-helpers/mdc-helpers';
5
+ @use '../../../style/sass-utils';
5
6
  @use '../../token-utils';
6
7
 
7
8
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -67,14 +68,10 @@ $prefix: (mdc, plain-tooltip);
67
68
  // Combines the tokens generated by the above functions into a single map with placeholder values.
68
69
  // This is used to create token slots.
69
70
  @function get-token-slots() {
70
- @return map.merge(
71
- get-unthemable-tokens(),
72
- map.merge(
73
- get-color-tokens(token-utils.$placeholder-color-config),
74
- map.merge(
75
- get-typography-tokens(token-utils.$placeholder-typography-config),
76
- get-density-tokens(token-utils.$placeholder-density-config)
77
- )
78
- )
71
+ @return sass-utils.deep-merge-all(
72
+ get-unthemable-tokens(),
73
+ get-color-tokens(token-utils.$placeholder-color-config),
74
+ get-typography-tokens(token-utils.$placeholder-typography-config),
75
+ get-density-tokens(token-utils.$placeholder-density-config)
79
76
  );
80
77
  }
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../theming/palette';
3
3
  @use '../../../theming/theming';
4
+ @use '../../../style/sass-utils';
4
5
  @use '../../token-utils';
5
6
 
6
7
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -16,12 +17,10 @@ $prefix: (mdc, radio);
16
17
  @return (
17
18
  disabled-selected-icon-opacity: 0.38,
18
19
  disabled-unselected-icon-opacity: 0.38,
19
-
20
20
  // This is specified both here and in the density tokens, because it
21
21
  // determines the size of the radio button itself and there are internal
22
22
  // tests who don't configure the theme correctly.
23
23
  state-layer-size: 40px,
24
-
25
24
  // =============================================================================================
26
25
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
27
26
  // =============================================================================================
@@ -85,10 +84,10 @@ $prefix: (mdc, radio);
85
84
  // Combines the tokens generated by the above functions into a single map with placeholder values.
86
85
  // This is used to create token slots.
87
86
  @function get-token-slots() {
88
- @return token-utils.merge-all(
89
- get-unthemable-tokens(),
90
- get-color-tokens(token-utils.$placeholder-color-config),
91
- get-typography-tokens(token-utils.$placeholder-typography-config),
92
- get-density-tokens(token-utils.$placeholder-density-config)
87
+ @return sass-utils.deep-merge-all(
88
+ get-unthemable-tokens(),
89
+ get-color-tokens(token-utils.$placeholder-color-config),
90
+ get-typography-tokens(token-utils.$placeholder-typography-config),
91
+ get-density-tokens(token-utils.$placeholder-density-config)
93
92
  );
94
93
  }
@@ -5,6 +5,7 @@
5
5
  @use '../../token-utils';
6
6
  @use '../../../typography/typography-utils';
7
7
  @use '../../../mdc-helpers/mdc-helpers';
8
+ @use '../../../style/sass-utils';
8
9
 
9
10
  // The prefix used to generate the fully qualified name for tokens in this file.
10
11
  $prefix: (mdc, snackbar);
@@ -19,18 +20,15 @@ $prefix: (mdc, snackbar);
19
20
  @return (
20
21
  // Sets the snack bar border radius.
21
22
  container-shape: 4px,
22
-
23
23
  // =============================================================================================
24
24
  // = TOKENS NOT USED IN ANGULAR MATERIAL =
25
25
  // =============================================================================================
26
26
  // Removed to match the previous appearance.
27
27
  supporting-text-tracking: null,
28
-
29
28
  // Excluded because they target the wrong DOM node. See the
30
29
  // comments on the elevation of `.mat-mdc-snack-bar-container`.
31
30
  container-elevation: null,
32
31
  container-shadow-color: null,
33
-
34
32
  action-focus-label-text-color: null,
35
33
  action-focus-state-layer-color: null,
36
34
  action-focus-state-layer-opacity: null,
@@ -99,10 +97,10 @@ $prefix: (mdc, snackbar);
99
97
  // Combines the tokens generated by the above functions into a single map with placeholder values.
100
98
  // This is used to create token slots.
101
99
  @function get-token-slots() {
102
- @return token-utils.merge-all(
103
- get-unthemable-tokens(),
104
- get-color-tokens(token-utils.$placeholder-color-config),
105
- get-typography-tokens(token-utils.$placeholder-typography-config),
106
- get-density-tokens(token-utils.$placeholder-density-config)
100
+ @return sass-utils.deep-merge-all(
101
+ get-unthemable-tokens(),
102
+ get-color-tokens(token-utils.$placeholder-color-config),
103
+ get-typography-tokens(token-utils.$placeholder-typography-config),
104
+ get-density-tokens(token-utils.$placeholder-density-config)
107
105
  );
108
106
  }
@@ -1,5 +1,6 @@
1
1
  @use 'sass:map';
2
2
  @use '../../../theming/theming';
3
+ @use '../../../style/sass-utils';
3
4
  @use '../../token-utils';
4
5
 
5
6
  // The prefix used to generate the fully qualified name for tokens in this file.
@@ -14,7 +15,6 @@ $prefix: (mdc, tab-indicator);
14
15
  @function get-unthemable-tokens() {
15
16
  @return (
16
17
  active-indicator-height: 2px,
17
-
18
18
  // Currently set to zero, but used by the gmat styles to make the indicator rounded.
19
19
  active-indicator-shape: 0,
20
20
  );
@@ -42,10 +42,10 @@ $prefix: (mdc, tab-indicator);
42
42
  // Combines the tokens generated by the above functions into a single map with placeholder values.
43
43
  // This is used to create token slots.
44
44
  @function get-token-slots() {
45
- @return token-utils.merge-all(
46
- get-unthemable-tokens(),
47
- get-color-tokens(token-utils.$placeholder-color-config),
48
- get-typography-tokens(token-utils.$placeholder-typography-config),
49
- get-density-tokens(token-utils.$placeholder-density-config)
45
+ @return sass-utils.deep-merge-all(
46
+ get-unthemable-tokens(),
47
+ get-color-tokens(token-utils.$placeholder-color-config),
48
+ get-typography-tokens(token-utils.$placeholder-typography-config),
49
+ get-density-tokens(token-utils.$placeholder-density-config)
50
50
  );
51
51
  }