@angular/material 18.1.0-next.2 → 18.1.0-next.4

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 (289) hide show
  1. package/autocomplete/index.d.ts +3 -0
  2. package/bottom-sheet/index.d.ts +0 -1
  3. package/button/_button-base.scss +3 -1
  4. package/button/index.d.ts +9 -1
  5. package/button-toggle/index.d.ts +2 -2
  6. package/checkbox/index.d.ts +5 -3
  7. package/chips/index.d.ts +7 -4
  8. package/core/_core-theme.scss +8 -14
  9. package/core/_core.scss +18 -4
  10. package/core/style/_vendor-prefixes.scss +5 -0
  11. package/core/tokens/_density.scss +2 -1
  12. package/core/tokens/m2/_index.scss +2 -2
  13. package/core/tokens/m2/mat/_app.scss +13 -1
  14. package/core/tokens/m2/mat/_menu.scss +3 -0
  15. package/core/tokens/m2/mat/_paginator.scss +1 -0
  16. package/core/tokens/m2/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
  17. package/core/tokens/m3/_index.scss +2 -2
  18. package/core/tokens/m3/mat/_app.scss +9 -0
  19. package/core/tokens/m3/mat/_menu.scss +3 -0
  20. package/core/tokens/m3/mdc/{_tab.scss → _secondary-navigation-tab.scss} +1 -1
  21. package/datepicker/index.d.ts +17 -1
  22. package/esm2022/autocomplete/autocomplete-origin.mjs +3 -3
  23. package/esm2022/autocomplete/autocomplete-trigger.mjs +31 -5
  24. package/esm2022/autocomplete/autocomplete.mjs +3 -3
  25. package/esm2022/autocomplete/module.mjs +4 -4
  26. package/esm2022/badge/badge-module.mjs +4 -4
  27. package/esm2022/badge/badge.mjs +6 -6
  28. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +9 -10
  29. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +4 -4
  30. package/esm2022/bottom-sheet/bottom-sheet.mjs +3 -3
  31. package/esm2022/button/button-base.mjs +8 -7
  32. package/esm2022/button/button.mjs +8 -8
  33. package/esm2022/button/fab.mjs +16 -16
  34. package/esm2022/button/icon-button.mjs +8 -8
  35. package/esm2022/button/module.mjs +4 -4
  36. package/esm2022/button-toggle/button-toggle-module.mjs +4 -4
  37. package/esm2022/button-toggle/button-toggle.mjs +36 -27
  38. package/esm2022/card/card.mjs +42 -42
  39. package/esm2022/card/module.mjs +4 -4
  40. package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
  41. package/esm2022/checkbox/checkbox.mjs +4 -4
  42. package/esm2022/checkbox/module.mjs +8 -8
  43. package/esm2022/chips/chip-action.mjs +3 -3
  44. package/esm2022/chips/chip-edit-input.mjs +3 -3
  45. package/esm2022/chips/chip-grid.mjs +7 -7
  46. package/esm2022/chips/chip-icons.mjs +9 -9
  47. package/esm2022/chips/chip-input.mjs +3 -3
  48. package/esm2022/chips/chip-listbox.mjs +3 -3
  49. package/esm2022/chips/chip-option.mjs +3 -3
  50. package/esm2022/chips/chip-row.mjs +11 -16
  51. package/esm2022/chips/chip-set.mjs +10 -6
  52. package/esm2022/chips/chip.mjs +4 -4
  53. package/esm2022/chips/module.mjs +4 -4
  54. package/esm2022/core/common-behaviors/common-module.mjs +4 -4
  55. package/esm2022/core/datetime/index.mjs +8 -8
  56. package/esm2022/core/datetime/native-date-adapter.mjs +3 -3
  57. package/esm2022/core/error/error-options.mjs +6 -6
  58. package/esm2022/core/internal-form-field/internal-form-field.mjs +3 -3
  59. package/esm2022/core/line/line.mjs +7 -7
  60. package/esm2022/core/option/index.mjs +4 -4
  61. package/esm2022/core/option/optgroup.mjs +4 -4
  62. package/esm2022/core/option/option.mjs +5 -5
  63. package/esm2022/core/private/ripple-loader.mjs +3 -3
  64. package/esm2022/core/ripple/index.mjs +4 -4
  65. package/esm2022/core/ripple/ripple.mjs +3 -3
  66. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +4 -4
  67. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  68. package/esm2022/core/version.mjs +1 -1
  69. package/esm2022/datepicker/calendar-body.mjs +3 -3
  70. package/esm2022/datepicker/calendar.mjs +12 -9
  71. package/esm2022/datepicker/date-range-input-parts.mjs +21 -17
  72. package/esm2022/datepicker/date-range-input.mjs +20 -10
  73. package/esm2022/datepicker/date-range-picker.mjs +3 -3
  74. package/esm2022/datepicker/date-range-selection-strategy.mjs +3 -3
  75. package/esm2022/datepicker/date-selection-model.mjs +9 -9
  76. package/esm2022/datepicker/datepicker-actions.mjs +9 -9
  77. package/esm2022/datepicker/datepicker-base.mjs +11 -7
  78. package/esm2022/datepicker/datepicker-input-base.mjs +3 -3
  79. package/esm2022/datepicker/datepicker-input.mjs +18 -7
  80. package/esm2022/datepicker/datepicker-intl.mjs +3 -3
  81. package/esm2022/datepicker/datepicker-module.mjs +4 -4
  82. package/esm2022/datepicker/datepicker-toggle.mjs +6 -6
  83. package/esm2022/datepicker/datepicker.mjs +3 -3
  84. package/esm2022/datepicker/month-view.mjs +3 -3
  85. package/esm2022/datepicker/multi-year-view.mjs +3 -3
  86. package/esm2022/datepicker/year-view.mjs +3 -3
  87. package/esm2022/dialog/dialog-container.mjs +3 -3
  88. package/esm2022/dialog/dialog-content-directives.mjs +15 -15
  89. package/esm2022/dialog/dialog.mjs +3 -3
  90. package/esm2022/dialog/module.mjs +4 -4
  91. package/esm2022/divider/divider-module.mjs +4 -4
  92. package/esm2022/divider/divider.mjs +3 -3
  93. package/esm2022/expansion/accordion.mjs +3 -3
  94. package/esm2022/expansion/expansion-module.mjs +4 -4
  95. package/esm2022/expansion/expansion-panel-content.mjs +3 -3
  96. package/esm2022/expansion/expansion-panel-header.mjs +9 -9
  97. package/esm2022/expansion/expansion-panel.mjs +6 -6
  98. package/esm2022/form-field/directives/error.mjs +3 -3
  99. package/esm2022/form-field/directives/floating-label.mjs +3 -3
  100. package/esm2022/form-field/directives/hint.mjs +3 -3
  101. package/esm2022/form-field/directives/label.mjs +3 -3
  102. package/esm2022/form-field/directives/line-ripple.mjs +3 -3
  103. package/esm2022/form-field/directives/notched-outline.mjs +3 -3
  104. package/esm2022/form-field/directives/prefix.mjs +3 -3
  105. package/esm2022/form-field/directives/suffix.mjs +3 -3
  106. package/esm2022/form-field/form-field-control.mjs +3 -3
  107. package/esm2022/form-field/form-field.mjs +15 -9
  108. package/esm2022/form-field/module.mjs +4 -4
  109. package/esm2022/grid-list/grid-list-module.mjs +4 -4
  110. package/esm2022/grid-list/grid-list.mjs +3 -3
  111. package/esm2022/grid-list/grid-tile.mjs +15 -15
  112. package/esm2022/icon/icon-module.mjs +4 -4
  113. package/esm2022/icon/icon-registry.mjs +3 -3
  114. package/esm2022/icon/icon.mjs +11 -5
  115. package/esm2022/icon/testing/fake-icon-registry.mjs +7 -7
  116. package/esm2022/input/input.mjs +3 -3
  117. package/esm2022/input/module.mjs +4 -4
  118. package/esm2022/list/action-list.mjs +3 -3
  119. package/esm2022/list/list-base.mjs +6 -6
  120. package/esm2022/list/list-item-sections.mjs +18 -18
  121. package/esm2022/list/list-module.mjs +4 -4
  122. package/esm2022/list/list-option.mjs +13 -7
  123. package/esm2022/list/list.mjs +6 -6
  124. package/esm2022/list/nav-list.mjs +3 -3
  125. package/esm2022/list/selection-list.mjs +16 -7
  126. package/esm2022/list/subheader.mjs +3 -3
  127. package/esm2022/menu/menu-content.mjs +3 -3
  128. package/esm2022/menu/menu-item.mjs +3 -3
  129. package/esm2022/menu/menu-trigger.mjs +3 -3
  130. package/esm2022/menu/menu.mjs +15 -6
  131. package/esm2022/menu/module.mjs +4 -4
  132. package/esm2022/paginator/module.mjs +4 -4
  133. package/esm2022/paginator/paginator-intl.mjs +3 -3
  134. package/esm2022/paginator/paginator.mjs +5 -5
  135. package/esm2022/progress-bar/module.mjs +4 -4
  136. package/esm2022/progress-bar/progress-bar.mjs +12 -6
  137. package/esm2022/progress-spinner/module.mjs +4 -4
  138. package/esm2022/progress-spinner/progress-spinner.mjs +11 -5
  139. package/esm2022/radio/module.mjs +4 -4
  140. package/esm2022/radio/radio.mjs +17 -12
  141. package/esm2022/select/module.mjs +4 -4
  142. package/esm2022/select/select.mjs +6 -6
  143. package/esm2022/sidenav/drawer.mjs +13 -10
  144. package/esm2022/sidenav/sidenav-module.mjs +4 -4
  145. package/esm2022/sidenav/sidenav.mjs +9 -9
  146. package/esm2022/slide-toggle/module.mjs +8 -8
  147. package/esm2022/slide-toggle/slide-toggle-config.mjs +1 -1
  148. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +3 -3
  149. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  150. package/esm2022/slider/module.mjs +4 -4
  151. package/esm2022/slider/slider-input.mjs +6 -6
  152. package/esm2022/slider/slider-thumb.mjs +3 -3
  153. package/esm2022/slider/slider.mjs +4 -4
  154. package/esm2022/snack-bar/module.mjs +4 -4
  155. package/esm2022/snack-bar/simple-snack-bar.mjs +3 -3
  156. package/esm2022/snack-bar/snack-bar-container.mjs +3 -3
  157. package/esm2022/snack-bar/snack-bar-content.mjs +9 -9
  158. package/esm2022/snack-bar/snack-bar.mjs +3 -3
  159. package/esm2022/sort/sort-header-intl.mjs +3 -3
  160. package/esm2022/sort/sort-header.mjs +3 -3
  161. package/esm2022/sort/sort-module.mjs +4 -4
  162. package/esm2022/sort/sort.mjs +3 -3
  163. package/esm2022/stepper/step-content.mjs +3 -3
  164. package/esm2022/stepper/step-header.mjs +4 -4
  165. package/esm2022/stepper/step-label.mjs +3 -3
  166. package/esm2022/stepper/stepper-button.mjs +6 -6
  167. package/esm2022/stepper/stepper-icon.mjs +3 -3
  168. package/esm2022/stepper/stepper-intl.mjs +3 -3
  169. package/esm2022/stepper/stepper-module.mjs +4 -4
  170. package/esm2022/stepper/stepper.mjs +7 -7
  171. package/esm2022/table/cell.mjs +21 -21
  172. package/esm2022/table/module.mjs +4 -4
  173. package/esm2022/table/row.mjs +21 -21
  174. package/esm2022/table/table.mjs +6 -6
  175. package/esm2022/table/text-column.mjs +3 -3
  176. package/esm2022/tabs/ink-bar.mjs +3 -3
  177. package/esm2022/tabs/module.mjs +4 -4
  178. package/esm2022/tabs/paginated-tab-header.mjs +3 -3
  179. package/esm2022/tabs/tab-body.mjs +11 -18
  180. package/esm2022/tabs/tab-content.mjs +3 -3
  181. package/esm2022/tabs/tab-group.mjs +12 -7
  182. package/esm2022/tabs/tab-header.mjs +5 -5
  183. package/esm2022/tabs/tab-label-wrapper.mjs +3 -3
  184. package/esm2022/tabs/tab-label.mjs +3 -3
  185. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +26 -14
  186. package/esm2022/tabs/tab.mjs +3 -3
  187. package/esm2022/toolbar/toolbar-module.mjs +4 -4
  188. package/esm2022/toolbar/toolbar.mjs +7 -7
  189. package/esm2022/tooltip/module.mjs +4 -4
  190. package/esm2022/tooltip/tooltip.mjs +8 -8
  191. package/esm2022/tree/node.mjs +9 -9
  192. package/esm2022/tree/outlet.mjs +3 -3
  193. package/esm2022/tree/padding.mjs +3 -3
  194. package/esm2022/tree/toggle.mjs +3 -3
  195. package/esm2022/tree/tree-module.mjs +4 -4
  196. package/esm2022/tree/tree.mjs +3 -3
  197. package/fesm2022/autocomplete.mjs +40 -14
  198. package/fesm2022/autocomplete.mjs.map +1 -1
  199. package/fesm2022/badge.mjs +10 -10
  200. package/fesm2022/bottom-sheet.mjs +15 -16
  201. package/fesm2022/bottom-sheet.mjs.map +1 -1
  202. package/fesm2022/button-toggle.mjs +39 -30
  203. package/fesm2022/button-toggle.mjs.map +1 -1
  204. package/fesm2022/button.mjs +43 -42
  205. package/fesm2022/button.mjs.map +1 -1
  206. package/fesm2022/card.mjs +46 -46
  207. package/fesm2022/checkbox.mjs +14 -14
  208. package/fesm2022/checkbox.mjs.map +1 -1
  209. package/fesm2022/chips.mjs +48 -49
  210. package/fesm2022/chips.mjs.map +1 -1
  211. package/fesm2022/core.mjs +61 -61
  212. package/fesm2022/core.mjs.map +1 -1
  213. package/fesm2022/datepicker.mjs +121 -89
  214. package/fesm2022/datepicker.mjs.map +1 -1
  215. package/fesm2022/dialog.mjs +25 -25
  216. package/fesm2022/divider.mjs +7 -7
  217. package/fesm2022/expansion.mjs +25 -25
  218. package/fesm2022/form-field.mjs +43 -37
  219. package/fesm2022/form-field.mjs.map +1 -1
  220. package/fesm2022/grid-list.mjs +22 -22
  221. package/fesm2022/icon/testing.mjs +7 -7
  222. package/fesm2022/icon.mjs +17 -11
  223. package/fesm2022/icon.mjs.map +1 -1
  224. package/fesm2022/input.mjs +7 -7
  225. package/fesm2022/list.mjs +69 -54
  226. package/fesm2022/list.mjs.map +1 -1
  227. package/fesm2022/menu.mjs +27 -18
  228. package/fesm2022/menu.mjs.map +1 -1
  229. package/fesm2022/paginator.mjs +11 -11
  230. package/fesm2022/paginator.mjs.map +1 -1
  231. package/fesm2022/progress-bar.mjs +15 -9
  232. package/fesm2022/progress-bar.mjs.map +1 -1
  233. package/fesm2022/progress-spinner.mjs +14 -8
  234. package/fesm2022/progress-spinner.mjs.map +1 -1
  235. package/fesm2022/radio.mjs +20 -15
  236. package/fesm2022/radio.mjs.map +1 -1
  237. package/fesm2022/select.mjs +10 -10
  238. package/fesm2022/sidenav.mjs +26 -23
  239. package/fesm2022/sidenav.mjs.map +1 -1
  240. package/fesm2022/slide-toggle.mjs +14 -14
  241. package/fesm2022/slide-toggle.mjs.map +1 -1
  242. package/fesm2022/slider.mjs +16 -16
  243. package/fesm2022/slider.mjs.map +1 -1
  244. package/fesm2022/snack-bar.mjs +22 -22
  245. package/fesm2022/sort.mjs +13 -13
  246. package/fesm2022/stepper.mjs +31 -31
  247. package/fesm2022/stepper.mjs.map +1 -1
  248. package/fesm2022/table.mjs +55 -55
  249. package/fesm2022/tabs.mjs +69 -52
  250. package/fesm2022/tabs.mjs.map +1 -1
  251. package/fesm2022/toolbar.mjs +10 -10
  252. package/fesm2022/toolbar.mjs.map +1 -1
  253. package/fesm2022/tooltip.mjs +11 -11
  254. package/fesm2022/tooltip.mjs.map +1 -1
  255. package/fesm2022/tree.mjs +25 -25
  256. package/form-field/index.d.ts +12 -2
  257. package/icon/index.d.ts +14 -2
  258. package/list/_list-theme.scss +8 -5
  259. package/list/index.d.ts +16 -2
  260. package/package.json +2 -2
  261. package/paginator/index.d.ts +7 -1
  262. package/prebuilt-themes/azure-blue.css +1 -1
  263. package/prebuilt-themes/cyan-orange.css +1 -1
  264. package/prebuilt-themes/deeppurple-amber.css +1 -1
  265. package/prebuilt-themes/indigo-pink.css +1 -1
  266. package/prebuilt-themes/magenta-violet.css +1 -1
  267. package/prebuilt-themes/pink-bluegrey.css +1 -1
  268. package/prebuilt-themes/purple-green.css +1 -1
  269. package/prebuilt-themes/rose-red.css +1 -1
  270. package/progress-bar/_progress-bar-theme.scss +10 -7
  271. package/progress-bar/index.d.ts +14 -2
  272. package/progress-spinner/index.d.ts +14 -2
  273. package/radio/_radio-common.scss +238 -0
  274. package/radio/_radio-theme.scss +25 -32
  275. package/radio/index.d.ts +21 -2
  276. package/schematics/ng-add/index.js +1 -1
  277. package/schematics/ng-add/index.mjs +1 -1
  278. package/schematics/ng-generate/m3-theme/index_bundled.js +2 -2
  279. package/schematics/ng-generate/table/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html.template +1 -1
  280. package/schematics/ng-update/index_bundled.js +31 -31
  281. package/sidenav/index.d.ts +1 -0
  282. package/slide-toggle/index.d.ts +14 -2
  283. package/slider/index.d.ts +7 -1
  284. package/stepper/index.d.ts +21 -3
  285. package/tabs/_tabs-common.scss +94 -36
  286. package/tabs/_tabs-theme.scss +33 -25
  287. package/tabs/index.d.ts +27 -4
  288. package/toolbar/index.d.ts +7 -1
  289. package/tooltip/_tooltip-theme.scss +18 -16
@@ -0,0 +1,238 @@
1
+ @use '../core/tokens/m2/mdc/radio' as tokens-mdc-radio;
2
+ @use '../core/tokens/token-utils';
3
+
4
+ $_icon-size: 20px;
5
+
6
+ @function _enter-transition($name) {
7
+ @return $name 90ms cubic-bezier(0, 0, 0.2, 1);
8
+ }
9
+
10
+ @function _exit-transition($name) {
11
+ @return $name 90ms cubic-bezier(0.4, 0, 0.6, 1);
12
+ }
13
+
14
+ // Structural styles for a radio button. Shared with the selection list.
15
+ @mixin radio-structure($is-interactive) {
16
+ $tokens: tokens-mdc-radio.$prefix, tokens-mdc-radio.get-token-slots();
17
+
18
+ .mdc-radio {
19
+ display: inline-block;
20
+ position: relative;
21
+ flex: 0 0 auto;
22
+ box-sizing: content-box;
23
+ width: $_icon-size;
24
+ height: $_icon-size;
25
+ cursor: pointer;
26
+
27
+ // This is something we inherited from MDC, but it shouldn't be necessary.
28
+ // Removing it will likely lead to screenshot diffs.
29
+ will-change: opacity, transform, border-color, color;
30
+
31
+ @include token-utils.use-tokens($tokens...) {
32
+ $size-token: var(#{token-utils.get-token-variable(state-layer-size)});
33
+ padding: calc((#{$size-token} - #{$_icon-size}) / 2);
34
+ }
35
+
36
+ @if ($is-interactive) {
37
+ // MDC's hover indication comes from their ripple which we don't use.
38
+ &:hover .mdc-radio__native-control:not([disabled]):not(:focus) {
39
+ & ~ .mdc-radio__background::before {
40
+ opacity: 0.04;
41
+ transform: scale(1);
42
+ }
43
+ }
44
+
45
+ &:hover .mdc-radio__native-control:not([disabled]) ~ .mdc-radio__background {
46
+ .mdc-radio__outer-circle {
47
+ @include token-utils.use-tokens($tokens...) {
48
+ @include token-utils.create-token-slot(border-color, unselected-hover-icon-color);
49
+ }
50
+ }
51
+ }
52
+
53
+ &:hover .mdc-radio__native-control:enabled:checked + .mdc-radio__background {
54
+ .mdc-radio__outer-circle,
55
+ .mdc-radio__inner-circle {
56
+ @include token-utils.use-tokens($tokens...) {
57
+ @include token-utils.create-token-slot(border-color, selected-hover-icon-color);
58
+ }
59
+ }
60
+ }
61
+
62
+ &:active .mdc-radio__native-control:enabled:not(:checked) + .mdc-radio__background {
63
+ .mdc-radio__outer-circle {
64
+ @include token-utils.use-tokens($tokens...) {
65
+ @include token-utils.create-token-slot(border-color, unselected-pressed-icon-color);
66
+ }
67
+ }
68
+ }
69
+
70
+ &:active .mdc-radio__native-control:enabled:checked + .mdc-radio__background {
71
+ .mdc-radio__outer-circle,
72
+ .mdc-radio__inner-circle {
73
+ @include token-utils.use-tokens($tokens...) {
74
+ @include token-utils.create-token-slot(border-color, selected-pressed-icon-color);
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ .mdc-radio__background {
82
+ display: inline-block;
83
+ position: relative;
84
+ box-sizing: border-box;
85
+ width: $_icon-size;
86
+ height: $_icon-size;
87
+
88
+ &::before {
89
+ position: absolute;
90
+ transform: scale(0, 0);
91
+ border-radius: 50%;
92
+ opacity: 0;
93
+ pointer-events: none;
94
+ content: '';
95
+ transition: _exit-transition(opacity), _exit-transition(transform);
96
+
97
+ @include token-utils.use-tokens($tokens...) {
98
+ $size-token: var(#{token-utils.get-token-variable(state-layer-size)});
99
+ $offset: calc(-1 * (#{$size-token} - #{$_icon-size}) / 2);
100
+ width: $size-token;
101
+ height: $size-token;
102
+ top: $offset;
103
+ left: $offset;
104
+ }
105
+ }
106
+ }
107
+
108
+ .mdc-radio__outer-circle {
109
+ position: absolute;
110
+ top: 0;
111
+ left: 0;
112
+ box-sizing: border-box;
113
+ width: 100%;
114
+ height: 100%;
115
+ border-width: 2px;
116
+ border-style: solid;
117
+ border-radius: 50%;
118
+ transition: _exit-transition(border-color);
119
+ }
120
+
121
+ .mdc-radio__inner-circle {
122
+ position: absolute;
123
+ top: 0;
124
+ left: 0;
125
+ box-sizing: border-box;
126
+ width: 100%;
127
+ height: 100%;
128
+ transform: scale(0, 0);
129
+ border-width: 10px;
130
+ border-style: solid;
131
+ border-radius: 50%;
132
+ transition: _exit-transition(transform), _exit-transition(border-color);
133
+ }
134
+
135
+ .mdc-radio__native-control {
136
+ position: absolute;
137
+ margin: 0;
138
+ padding: 0;
139
+ opacity: 0;
140
+ top: 0;
141
+ right: 0;
142
+ left: 0;
143
+ cursor: inherit;
144
+ z-index: 1;
145
+
146
+ @include token-utils.use-tokens($tokens...) {
147
+ @include token-utils.create-token-slot(width, state-layer-size);
148
+ @include token-utils.create-token-slot(height, state-layer-size);
149
+ }
150
+
151
+ &:checked, &:disabled {
152
+ + .mdc-radio__background {
153
+ transition: _enter-transition(opacity), _enter-transition(transform);
154
+
155
+ .mdc-radio__outer-circle {
156
+ transition: _enter-transition(border-color);
157
+ }
158
+
159
+ .mdc-radio__inner-circle {
160
+ transition: _enter-transition(transform), _enter-transition(border-color);
161
+ }
162
+ }
163
+ }
164
+
165
+ @if ($is-interactive) {
166
+ &:focus + .mdc-radio__background::before {
167
+ transform: scale(1);
168
+ opacity: 0.12;
169
+ transition: _enter-transition(opacity), _enter-transition(transform);
170
+ }
171
+ }
172
+
173
+ &:disabled {
174
+ @include token-utils.use-tokens($tokens...) {
175
+ &:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle {
176
+ @include token-utils.create-token-slot(border-color, disabled-unselected-icon-color);
177
+ @include token-utils.create-token-slot(opacity, disabled-unselected-icon-opacity);
178
+ }
179
+
180
+ + .mdc-radio__background {
181
+ cursor: default;
182
+
183
+ .mdc-radio__inner-circle,
184
+ .mdc-radio__outer-circle {
185
+ @include token-utils.create-token-slot(border-color, disabled-selected-icon-color);
186
+ @include token-utils.create-token-slot(opacity, disabled-selected-icon-opacity);
187
+ }
188
+ }
189
+ }
190
+ }
191
+
192
+ &:enabled {
193
+ @include token-utils.use-tokens($tokens...) {
194
+ &:not(:checked) + .mdc-radio__background .mdc-radio__outer-circle {
195
+ @include token-utils.create-token-slot(border-color, unselected-icon-color);
196
+ }
197
+
198
+ &:checked + .mdc-radio__background {
199
+ .mdc-radio__outer-circle,
200
+ .mdc-radio__inner-circle {
201
+ @include token-utils.create-token-slot(border-color, selected-icon-color);
202
+ }
203
+ }
204
+
205
+ @if ($is-interactive) {
206
+ &:focus:checked + .mdc-radio__background {
207
+ .mdc-radio__inner-circle,
208
+ .mdc-radio__outer-circle {
209
+ @include token-utils.create-token-slot(border-color, selected-focus-icon-color);
210
+ }
211
+ }
212
+ }
213
+ }
214
+ }
215
+
216
+ &:checked + .mdc-radio__background .mdc-radio__inner-circle {
217
+ transform: scale(0.5);
218
+ transition: _enter-transition(transform), _enter-transition(border-color);
219
+ }
220
+ }
221
+
222
+ .mdc-radio--disabled {
223
+ cursor: default;
224
+ pointer-events: none;
225
+ }
226
+ }
227
+
228
+ // Conditionally disables the animations of the radio button.
229
+ @mixin radio-noop-animations() {
230
+ &._mat-animation-noopable {
231
+ .mdc-radio__background::before,
232
+ .mdc-radio__outer-circle,
233
+ .mdc-radio__inner-circle {
234
+ // Needs to be `!important`, because MDC's selectors are really specific.
235
+ transition: none !important;
236
+ }
237
+ }
238
+ }
@@ -1,4 +1,3 @@
1
- @use '@material/radio/radio-theme' as mdc-radio-theme;
2
1
  @use '../core/style/sass-utils';
3
2
  @use '../core/theming/theming';
4
3
  @use '../core/theming/inspection';
@@ -16,11 +15,10 @@
16
15
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
17
16
  } @else {
18
17
  @include sass-utils.current-selector-or-root() {
19
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-unthemable-tokens());
20
- @include token-utils.create-token-values(
21
- tokens-mat-radio.$prefix,
22
- tokens-mat-radio.get-unthemable-tokens()
23
- );
18
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
19
+ tokens-mdc-radio.get-unthemable-tokens());
20
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
21
+ tokens-mat-radio.get-unthemable-tokens());
24
22
  }
25
23
  }
26
24
  }
@@ -36,27 +34,24 @@
36
34
  } @else {
37
35
  .mat-mdc-radio-button {
38
36
  &.mat-primary {
39
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme, primary));
40
- @include token-utils.create-token-values(
41
- tokens-mat-radio.$prefix,
42
- tokens-mat-radio.get-color-tokens($theme, primary)
43
- );
37
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
38
+ tokens-mdc-radio.get-color-tokens($theme, primary));
39
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
40
+ tokens-mat-radio.get-color-tokens($theme, primary));
44
41
  }
45
42
 
46
43
  &.mat-accent {
47
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme));
48
- @include token-utils.create-token-values(
49
- tokens-mat-radio.$prefix,
50
- tokens-mat-radio.get-color-tokens($theme)
51
- );
44
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
45
+ tokens-mdc-radio.get-color-tokens($theme));
46
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
47
+ tokens-mat-radio.get-color-tokens($theme));
52
48
  }
53
49
 
54
50
  &.mat-warn {
55
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-color-tokens($theme, warn));
56
- @include token-utils.create-token-values(
57
- tokens-mat-radio.$prefix,
58
- tokens-mat-radio.get-color-tokens($theme, warn)
59
- );
51
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
52
+ tokens-mdc-radio.get-color-tokens($theme, warn));
53
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
54
+ tokens-mat-radio.get-color-tokens($theme, warn));
60
55
  }
61
56
  }
62
57
  }
@@ -69,11 +64,10 @@
69
64
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
70
65
  } @else {
71
66
  @include sass-utils.current-selector-or-root() {
72
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-typography-tokens($theme));
73
- @include token-utils.create-token-values(
74
- tokens-mat-radio.$prefix,
75
- tokens-mat-radio.get-typography-tokens($theme)
76
- );
67
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
68
+ tokens-mdc-radio.get-typography-tokens($theme));
69
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
70
+ tokens-mat-radio.get-typography-tokens($theme));
77
71
  }
78
72
  }
79
73
  }
@@ -87,11 +81,10 @@
87
81
  $density-scale: inspection.get-theme-density($theme);
88
82
 
89
83
  @include sass-utils.current-selector-or-root() {
90
- @include mdc-radio-theme.theme(tokens-mdc-radio.get-density-tokens($theme));
91
- @include token-utils.create-token-values(
92
- tokens-mat-radio.$prefix,
93
- tokens-mat-radio.get-density-tokens($theme)
94
- );
84
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix,
85
+ tokens-mdc-radio.get-density-tokens($theme));
86
+ @include token-utils.create-token-values(tokens-mat-radio.$prefix,
87
+ tokens-mat-radio.get-density-tokens($theme));
95
88
  }
96
89
  }
97
90
  }
@@ -142,6 +135,6 @@
142
135
  );
143
136
  $mdc-radio-tokens: token-utils.get-tokens-for($tokens, tokens-mdc-radio.$prefix, $options...);
144
137
  $mat-radio-tokens: token-utils.get-tokens-for($tokens, tokens-mat-radio.$prefix, $options...);
145
- @include mdc-radio-theme.theme($mdc-radio-tokens);
138
+ @include token-utils.create-token-values(tokens-mdc-radio.$prefix, $mdc-radio-tokens);
146
139
  @include token-utils.create-token-values(tokens-mat-radio.$prefix, $mat-radio-tokens);
147
140
  }
package/radio/index.d.ts CHANGED
@@ -85,7 +85,13 @@ export declare class MatRadioButton implements OnInit, AfterViewInit, DoCheck, O
85
85
  /** Whether the radio button is required. */
86
86
  get required(): boolean;
87
87
  set required(value: boolean);
88
- /** Theme color of the radio button. */
88
+ /**
89
+ * Theme color of the radio button. This API is supported in M2 themes only, it
90
+ * has no effect in M3 themes.
91
+ *
92
+ * For information on applying color variants in M3, see
93
+ * https://material.angular.io/guide/theming#using-component-color-variants.
94
+ */
89
95
  get color(): ThemePalette;
90
96
  set color(newValue: ThemePalette);
91
97
  private _color;
@@ -166,6 +172,13 @@ export declare class MatRadioChange {
166
172
  }
167
173
 
168
174
  export declare interface MatRadioDefaultOptions {
175
+ /**
176
+ * Theme color of the radio button. This API is supported in M2 themes only, it
177
+ * has no effect in M3 themes.
178
+ *
179
+ * For information on applying color variants in M3, see
180
+ * https://material.angular.io/guide/theming#using-component-color-variants.
181
+ */
169
182
  color: ThemePalette;
170
183
  }
171
184
 
@@ -205,7 +218,13 @@ export declare class MatRadioGroup implements AfterContentInit, OnDestroy, Contr
205
218
  readonly change: EventEmitter<MatRadioChange>;
206
219
  /** Child radio buttons. */
207
220
  _radios: QueryList<MatRadioButton>;
208
- /** Theme color for all of the radio buttons in the group. */
221
+ /**
222
+ * Theme color of the radio buttons in the group. This API is supported in M2
223
+ * themes only, it has no effect in M3 themes.
224
+ *
225
+ * For information on applying color variants in M3, see
226
+ * https://material.angular.io/guide/theming#using-component-color-variants.
227
+ */
209
228
  color: ThemePalette;
210
229
  /** Name of the radio button group. All radio buttons inside this group will use this name. */
211
230
  get name(): string;
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
19
19
  * Note that the fallback version range does not use caret, but tilde because that is
20
20
  * the default for Angular framework dependencies in CLI projects.
21
21
  */
22
- const fallbackMaterialVersionRange = `~18.1.0-next.2`;
22
+ const fallbackMaterialVersionRange = `~18.1.0-next.4`;
23
23
  /**
24
24
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
25
25
  * automatically executed if developers run `ng add @angular/material`.
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
19
19
  * Note that the fallback version range does not use caret, but tilde because that is
20
20
  * the default for Angular framework dependencies in CLI projects.
21
21
  */
22
- const fallbackMaterialVersionRange = `~18.1.0-next.2`;
22
+ const fallbackMaterialVersionRange = `~18.1.0-next.4`;
23
23
  /**
24
24
  * Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
25
25
  * automatically executed if developers run `ng add @angular/material`.
@@ -50,7 +50,7 @@ var __async = (__this, __arguments, generator) => {
50
50
  });
51
51
  };
52
52
 
53
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/m3-theme/index.mjs
53
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-generate/m3-theme/index.mjs
54
54
  var m3_theme_exports = {};
55
55
  __export(m3_theme_exports, {
56
56
  default: () => m3_theme_default,
@@ -2513,7 +2513,7 @@ function customColor(source, color) {
2513
2513
  };
2514
2514
  }
2515
2515
 
2516
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/m3-theme/index.mjs
2516
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-generate/m3-theme/index.mjs
2517
2517
  var HUE_TONES = [0, 10, 20, 25, 30, 35, 40, 50, 60, 70, 80, 90, 95, 98, 99, 100];
2518
2518
  var NEUTRAL_HUES = /* @__PURE__ */ new Map([
2519
2519
  [4, { prev: 0, next: 10 }],
@@ -1,4 +1,4 @@
1
- <div class="mat-elevation-z8">
1
+ <div class="mat-elevation-z2">
2
2
  <table mat-table class="full-width-table" matSort aria-label="Elements">
3
3
  <!-- Id Column -->
4
4
  <ng-container matColumnDef="id">
@@ -605,9 +605,9 @@ var require_tslib = __commonJS({
605
605
  }
606
606
  });
607
607
 
608
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
608
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js
609
609
  var require_attribute_selectors = __commonJS({
610
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
610
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/attribute-selectors.js"(exports) {
611
611
  "use strict";
612
612
  Object.defineProperty(exports, "__esModule", { value: true });
613
613
  exports.attributeSelectors = void 0;
@@ -615,9 +615,9 @@ var require_attribute_selectors = __commonJS({
615
615
  }
616
616
  });
617
617
 
618
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
618
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js
619
619
  var require_class_names = __commonJS({
620
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
620
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/class-names.js"(exports) {
621
621
  "use strict";
622
622
  Object.defineProperty(exports, "__esModule", { value: true });
623
623
  exports.classNames = void 0;
@@ -625,9 +625,9 @@ var require_class_names = __commonJS({
625
625
  }
626
626
  });
627
627
 
628
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
628
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js
629
629
  var require_constructor_checks = __commonJS({
630
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
630
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/constructor-checks.js"(exports) {
631
631
  "use strict";
632
632
  Object.defineProperty(exports, "__esModule", { value: true });
633
633
  exports.constructorChecks = void 0;
@@ -635,9 +635,9 @@ var require_constructor_checks = __commonJS({
635
635
  }
636
636
  });
637
637
 
638
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
638
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js
639
639
  var require_css_selectors = __commonJS({
640
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
640
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-selectors.js"(exports) {
641
641
  "use strict";
642
642
  Object.defineProperty(exports, "__esModule", { value: true });
643
643
  exports.cssSelectors = void 0;
@@ -645,9 +645,9 @@ var require_css_selectors = __commonJS({
645
645
  }
646
646
  });
647
647
 
648
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-tokens.js
648
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-tokens.js
649
649
  var require_css_tokens = __commonJS({
650
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/css-tokens.js"(exports) {
650
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/css-tokens.js"(exports) {
651
651
  "use strict";
652
652
  Object.defineProperty(exports, "__esModule", { value: true });
653
653
  exports.cssTokens = void 0;
@@ -688,9 +688,9 @@ var require_css_tokens = __commonJS({
688
688
  }
689
689
  });
690
690
 
691
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
691
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js
692
692
  var require_element_selectors = __commonJS({
693
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
693
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/element-selectors.js"(exports) {
694
694
  "use strict";
695
695
  Object.defineProperty(exports, "__esModule", { value: true });
696
696
  exports.elementSelectors = void 0;
@@ -698,9 +698,9 @@ var require_element_selectors = __commonJS({
698
698
  }
699
699
  });
700
700
 
701
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
701
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js
702
702
  var require_input_names = __commonJS({
703
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
703
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/input-names.js"(exports) {
704
704
  "use strict";
705
705
  Object.defineProperty(exports, "__esModule", { value: true });
706
706
  exports.inputNames = void 0;
@@ -708,9 +708,9 @@ var require_input_names = __commonJS({
708
708
  }
709
709
  });
710
710
 
711
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
711
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js
712
712
  var require_method_call_checks = __commonJS({
713
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
713
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/method-call-checks.js"(exports) {
714
714
  "use strict";
715
715
  Object.defineProperty(exports, "__esModule", { value: true });
716
716
  exports.methodCallChecks = void 0;
@@ -718,9 +718,9 @@ var require_method_call_checks = __commonJS({
718
718
  }
719
719
  });
720
720
 
721
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
721
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js
722
722
  var require_output_names = __commonJS({
723
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
723
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/output-names.js"(exports) {
724
724
  "use strict";
725
725
  Object.defineProperty(exports, "__esModule", { value: true });
726
726
  exports.outputNames = void 0;
@@ -728,9 +728,9 @@ var require_output_names = __commonJS({
728
728
  }
729
729
  });
730
730
 
731
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
731
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js
732
732
  var require_property_names = __commonJS({
733
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
733
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/property-names.js"(exports) {
734
734
  "use strict";
735
735
  Object.defineProperty(exports, "__esModule", { value: true });
736
736
  exports.propertyNames = void 0;
@@ -738,9 +738,9 @@ var require_property_names = __commonJS({
738
738
  }
739
739
  });
740
740
 
741
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
741
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js
742
742
  var require_symbol_removal = __commonJS({
743
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
743
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/symbol-removal.js"(exports) {
744
744
  "use strict";
745
745
  Object.defineProperty(exports, "__esModule", { value: true });
746
746
  exports.symbolRemoval = void 0;
@@ -748,9 +748,9 @@ var require_symbol_removal = __commonJS({
748
748
  }
749
749
  });
750
750
 
751
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js
751
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js
752
752
  var require_data = __commonJS({
753
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
753
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/data/index.js"(exports) {
754
754
  "use strict";
755
755
  Object.defineProperty(exports, "__esModule", { value: true });
756
756
  var tslib_1 = require_tslib();
@@ -768,9 +768,9 @@ var require_data = __commonJS({
768
768
  }
769
769
  });
770
770
 
771
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
771
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js
772
772
  var require_upgrade_data = __commonJS({
773
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
773
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/upgrade-data.js"(exports) {
774
774
  "use strict";
775
775
  Object.defineProperty(exports, "__esModule", { value: true });
776
776
  exports.materialUpgradeData = void 0;
@@ -791,9 +791,9 @@ var require_upgrade_data = __commonJS({
791
791
  }
792
792
  });
793
793
 
794
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/migration.js
794
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/migration.js
795
795
  var require_migration = __commonJS({
796
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/migration.js"(exports) {
796
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/migration.js"(exports) {
797
797
  "use strict";
798
798
  Object.defineProperty(exports, "__esModule", { value: true });
799
799
  exports.migrateM2ThemingApiUsages = migrateM2ThemingApiUsages;
@@ -968,9 +968,9 @@ var require_migration = __commonJS({
968
968
  }
969
969
  });
970
970
 
971
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/index.js
971
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/index.js
972
972
  var require_m2_theming_v18 = __commonJS({
973
- "bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/index.js"(exports) {
973
+ "bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/migrations/m2-theming-v18/index.js"(exports) {
974
974
  "use strict";
975
975
  Object.defineProperty(exports, "__esModule", { value: true });
976
976
  exports.M2ThemingMigration = void 0;
@@ -1002,7 +1002,7 @@ var require_m2_theming_v18 = __commonJS({
1002
1002
  }
1003
1003
  });
1004
1004
 
1005
- // bazel-out/k8-fastbuild/bin/src/material/schematics/ng-update/index.mjs
1005
+ // bazel-out/darwin_arm64-fastbuild/bin/src/material/schematics/ng-update/index.mjs
1006
1006
  var ng_update_exports = {};
1007
1007
  __export(ng_update_exports, {
1008
1008
  updateToV18: () => updateToV18
@@ -145,6 +145,7 @@ export declare class MatDrawer implements AfterViewInit, AfterContentChecked, On
145
145
  */
146
146
  readonly _modeChanged: Subject<void>;
147
147
  private _injector;
148
+ private _changeDetectorRef;
148
149
  constructor(_elementRef: ElementRef<HTMLElement>, _focusTrapFactory: FocusTrapFactory, _focusMonitor: FocusMonitor, _platform: Platform, _ngZone: NgZone, _interactivityChecker: InteractivityChecker, _doc: any, _container?: MatDrawerContainer | undefined);
149
150
  /**
150
151
  * Focuses the provided element. If the element is not focusable, it will add a tabIndex
@@ -89,7 +89,13 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
89
89
  ariaDescribedby: string;
90
90
  /** Whether the slide-toggle is required. */
91
91
  required: boolean;
92
- /** Palette color of slide toggle. */
92
+ /**
93
+ * Theme color of the slide toggle. This API is supported in M2 themes only,
94
+ * it has no effect in M3 themes.
95
+ *
96
+ * For information on applying color variants in M3, see
97
+ * https://material.angular.io/guide/theming#using-component-color-variants.
98
+ */
93
99
  color: string | undefined;
94
100
  /** Whether the slide toggle is disabled. */
95
101
  disabled: boolean;
@@ -164,7 +170,13 @@ export declare class MatSlideToggleChange {
164
170
  export declare interface MatSlideToggleDefaultOptions {
165
171
  /** Whether toggle action triggers value changes in slide toggle. */
166
172
  disableToggleValue?: boolean;
167
- /** Default color for slide toggles. */
173
+ /**
174
+ * Default theme color of the slide toggle. This API is supported in M2 themes only,
175
+ * it has no effect in M3 themes.
176
+ *
177
+ * For information on applying color variants in M3, see
178
+ * https://material.angular.io/guide/theming#using-component-color-variants.
179
+ */
168
180
  color?: ThemePalette;
169
181
  /** Whether to hide the icon inside the slide toggle. */
170
182
  hideIcon?: boolean;
package/slider/index.d.ts CHANGED
@@ -80,7 +80,13 @@ export declare class MatSlider implements AfterViewInit, OnDestroy, _MatSlider {
80
80
  get min(): number;
81
81
  set min(v: number);
82
82
  private _min;
83
- /** Palette color of the slider. */
83
+ /**
84
+ * Theme color of the slider. This API is supported in M2 themes only, it
85
+ * has no effect in M3 themes.
86
+ *
87
+ * For information on applying color variants in M3, see
88
+ * https://material.angular.io/guide/theming#using-component-color-variants.
89
+ */
84
90
  color: ThemePalette;
85
91
  /** Whether ripples are disabled in the slider. */
86
92
  disableRipple: boolean;