@angular/material 18.1.0-next.0 → 18.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 (317) hide show
  1. package/_index.scss +1 -1
  2. package/autocomplete/index.d.ts +1 -1
  3. package/badge/index.d.ts +4 -1
  4. package/bottom-sheet/index.d.ts +1 -1
  5. package/checkbox/_checkbox-common.scss +523 -0
  6. package/checkbox/_checkbox-theme.scss +23 -8
  7. package/checkbox/index.d.ts +10 -2
  8. package/chips/index.d.ts +5 -1
  9. package/core/index.d.ts +1 -1
  10. package/core/m2/_typography.scss +1 -1
  11. package/core/ripple/_ripple.scss +6 -0
  12. package/core/style/_vendor-prefixes.scss +5 -0
  13. package/core/theming/_config-validation.scss +3 -2
  14. package/core/theming/_definition.scss +4 -2
  15. package/core/theming/_palettes.scss +2 -0
  16. package/core/tokens/_m3-tokens.scss +168 -152
  17. package/core/tokens/m2/mdc/_checkbox.scss +3 -4
  18. package/core/tokens/m3/mat/_divider.scss +1 -1
  19. package/core/tokens/m3/mat/_expansion.scss +1 -1
  20. package/core/tokens/m3/mat/_stepper.scss +1 -1
  21. package/core/tokens/m3/mat/_table.scss +1 -1
  22. package/datepicker/index.d.ts +10 -2
  23. package/dialog/index.d.ts +0 -1
  24. package/dialog/testing/index.d.ts +1 -0
  25. package/esm2022/autocomplete/autocomplete-origin.mjs +4 -4
  26. package/esm2022/autocomplete/autocomplete-trigger.mjs +11 -10
  27. package/esm2022/autocomplete/autocomplete.mjs +4 -4
  28. package/esm2022/autocomplete/module.mjs +5 -5
  29. package/esm2022/badge/badge-module.mjs +5 -5
  30. package/esm2022/badge/badge.mjs +11 -8
  31. package/esm2022/bottom-sheet/bottom-sheet-container.mjs +4 -4
  32. package/esm2022/bottom-sheet/bottom-sheet-module.mjs +5 -5
  33. package/esm2022/bottom-sheet/bottom-sheet.mjs +4 -4
  34. package/esm2022/button/button-base.mjs +7 -7
  35. package/esm2022/button/button.mjs +7 -7
  36. package/esm2022/button/fab.mjs +13 -13
  37. package/esm2022/button/icon-button.mjs +7 -7
  38. package/esm2022/button/module.mjs +5 -5
  39. package/esm2022/button-toggle/button-toggle-module.mjs +5 -5
  40. package/esm2022/button-toggle/button-toggle.mjs +7 -7
  41. package/esm2022/card/card.mjs +43 -43
  42. package/esm2022/card/module.mjs +5 -5
  43. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  44. package/esm2022/checkbox/checkbox-required-validator.mjs +4 -4
  45. package/esm2022/checkbox/checkbox.mjs +8 -15
  46. package/esm2022/checkbox/module.mjs +9 -9
  47. package/esm2022/chips/chip-action.mjs +4 -4
  48. package/esm2022/chips/chip-edit-input.mjs +4 -4
  49. package/esm2022/chips/chip-grid.mjs +4 -4
  50. package/esm2022/chips/chip-icons.mjs +10 -10
  51. package/esm2022/chips/chip-input.mjs +4 -4
  52. package/esm2022/chips/chip-listbox.mjs +4 -4
  53. package/esm2022/chips/chip-option.mjs +4 -4
  54. package/esm2022/chips/chip-row.mjs +4 -4
  55. package/esm2022/chips/chip-set.mjs +4 -4
  56. package/esm2022/chips/chip.mjs +9 -9
  57. package/esm2022/chips/module.mjs +5 -5
  58. package/esm2022/core/common-behaviors/common-module.mjs +5 -5
  59. package/esm2022/core/datetime/index.mjs +9 -9
  60. package/esm2022/core/datetime/native-date-adapter.mjs +4 -4
  61. package/esm2022/core/error/error-options.mjs +7 -7
  62. package/esm2022/core/internal-form-field/internal-form-field.mjs +4 -4
  63. package/esm2022/core/line/line.mjs +8 -8
  64. package/esm2022/core/option/index.mjs +5 -5
  65. package/esm2022/core/option/optgroup.mjs +4 -4
  66. package/esm2022/core/option/option.mjs +4 -4
  67. package/esm2022/core/private/ripple-loader.mjs +4 -4
  68. package/esm2022/core/ripple/index.mjs +5 -5
  69. package/esm2022/core/ripple/ripple.mjs +4 -4
  70. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox-module.mjs +5 -5
  71. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
  72. package/esm2022/core/version.mjs +1 -1
  73. package/esm2022/datepicker/calendar-body.mjs +4 -4
  74. package/esm2022/datepicker/calendar.mjs +8 -8
  75. package/esm2022/datepicker/date-range-input-parts.mjs +10 -10
  76. package/esm2022/datepicker/date-range-input.mjs +4 -4
  77. package/esm2022/datepicker/date-range-picker.mjs +4 -4
  78. package/esm2022/datepicker/date-range-selection-strategy.mjs +4 -4
  79. package/esm2022/datepicker/date-selection-model.mjs +10 -10
  80. package/esm2022/datepicker/datepicker-actions.mjs +10 -10
  81. package/esm2022/datepicker/datepicker-base.mjs +20 -23
  82. package/esm2022/datepicker/datepicker-input-base.mjs +4 -4
  83. package/esm2022/datepicker/datepicker-input.mjs +4 -4
  84. package/esm2022/datepicker/datepicker-intl.mjs +4 -4
  85. package/esm2022/datepicker/datepicker-module.mjs +5 -5
  86. package/esm2022/datepicker/datepicker-toggle.mjs +7 -7
  87. package/esm2022/datepicker/datepicker.mjs +4 -4
  88. package/esm2022/datepicker/month-view.mjs +4 -4
  89. package/esm2022/datepicker/multi-year-view.mjs +4 -4
  90. package/esm2022/datepicker/year-view.mjs +4 -4
  91. package/esm2022/dialog/dialog-container.mjs +4 -9
  92. package/esm2022/dialog/dialog-content-directives.mjs +16 -16
  93. package/esm2022/dialog/dialog.mjs +4 -4
  94. package/esm2022/dialog/module.mjs +5 -5
  95. package/esm2022/dialog/testing/dialog-opener.mjs +4 -3
  96. package/esm2022/divider/divider-module.mjs +5 -5
  97. package/esm2022/divider/divider.mjs +4 -4
  98. package/esm2022/expansion/accordion.mjs +4 -4
  99. package/esm2022/expansion/expansion-module.mjs +5 -5
  100. package/esm2022/expansion/expansion-panel-content.mjs +4 -4
  101. package/esm2022/expansion/expansion-panel-header.mjs +10 -10
  102. package/esm2022/expansion/expansion-panel.mjs +7 -7
  103. package/esm2022/form-field/directives/error.mjs +4 -4
  104. package/esm2022/form-field/directives/floating-label.mjs +4 -4
  105. package/esm2022/form-field/directives/hint.mjs +4 -4
  106. package/esm2022/form-field/directives/label.mjs +4 -4
  107. package/esm2022/form-field/directives/line-ripple.mjs +4 -4
  108. package/esm2022/form-field/directives/notched-outline.mjs +4 -4
  109. package/esm2022/form-field/directives/prefix.mjs +4 -4
  110. package/esm2022/form-field/directives/suffix.mjs +4 -4
  111. package/esm2022/form-field/form-field-control.mjs +4 -4
  112. package/esm2022/form-field/form-field.mjs +4 -4
  113. package/esm2022/form-field/module.mjs +5 -5
  114. package/esm2022/grid-list/grid-list-module.mjs +5 -5
  115. package/esm2022/grid-list/grid-list.mjs +4 -4
  116. package/esm2022/grid-list/grid-tile.mjs +16 -16
  117. package/esm2022/icon/icon-module.mjs +5 -5
  118. package/esm2022/icon/icon-registry.mjs +4 -4
  119. package/esm2022/icon/icon.mjs +4 -4
  120. package/esm2022/icon/testing/fake-icon-registry.mjs +8 -8
  121. package/esm2022/input/input.mjs +4 -4
  122. package/esm2022/input/module.mjs +5 -5
  123. package/esm2022/list/action-list.mjs +4 -4
  124. package/esm2022/list/list-base.mjs +7 -7
  125. package/esm2022/list/list-item-sections.mjs +19 -19
  126. package/esm2022/list/list-module.mjs +5 -5
  127. package/esm2022/list/list-option.mjs +6 -6
  128. package/esm2022/list/list.mjs +7 -7
  129. package/esm2022/list/nav-list.mjs +4 -4
  130. package/esm2022/list/selection-list.mjs +4 -4
  131. package/esm2022/list/subheader.mjs +4 -4
  132. package/esm2022/menu/menu-content.mjs +4 -4
  133. package/esm2022/menu/menu-item.mjs +4 -4
  134. package/esm2022/menu/menu-trigger.mjs +4 -4
  135. package/esm2022/menu/menu.mjs +4 -4
  136. package/esm2022/menu/module.mjs +5 -5
  137. package/esm2022/paginator/module.mjs +5 -5
  138. package/esm2022/paginator/paginator-intl.mjs +4 -4
  139. package/esm2022/paginator/paginator.mjs +4 -4
  140. package/esm2022/progress-bar/module.mjs +5 -5
  141. package/esm2022/progress-bar/progress-bar.mjs +4 -4
  142. package/esm2022/progress-spinner/module.mjs +5 -5
  143. package/esm2022/progress-spinner/progress-spinner.mjs +4 -4
  144. package/esm2022/radio/module.mjs +5 -5
  145. package/esm2022/radio/radio.mjs +31 -9
  146. package/esm2022/select/module.mjs +5 -5
  147. package/esm2022/select/select.mjs +7 -7
  148. package/esm2022/sidenav/drawer.mjs +10 -10
  149. package/esm2022/sidenav/sidenav-module.mjs +5 -5
  150. package/esm2022/sidenav/sidenav.mjs +10 -10
  151. package/esm2022/slide-toggle/module.mjs +9 -9
  152. package/esm2022/slide-toggle/slide-toggle-required-validator.mjs +4 -4
  153. package/esm2022/slide-toggle/slide-toggle.mjs +4 -4
  154. package/esm2022/slider/module.mjs +5 -5
  155. package/esm2022/slider/slider-input.mjs +7 -7
  156. package/esm2022/slider/slider-interface.mjs +2 -2
  157. package/esm2022/slider/slider-thumb.mjs +4 -4
  158. package/esm2022/slider/slider.mjs +9 -9
  159. package/esm2022/snack-bar/module.mjs +5 -5
  160. package/esm2022/snack-bar/simple-snack-bar.mjs +4 -4
  161. package/esm2022/snack-bar/snack-bar-container.mjs +6 -6
  162. package/esm2022/snack-bar/snack-bar-content.mjs +10 -10
  163. package/esm2022/snack-bar/snack-bar.mjs +4 -4
  164. package/esm2022/sort/sort-header-intl.mjs +4 -4
  165. package/esm2022/sort/sort-header.mjs +4 -4
  166. package/esm2022/sort/sort-module.mjs +5 -5
  167. package/esm2022/sort/sort.mjs +4 -4
  168. package/esm2022/stepper/step-content.mjs +4 -4
  169. package/esm2022/stepper/step-header.mjs +4 -4
  170. package/esm2022/stepper/step-label.mjs +4 -4
  171. package/esm2022/stepper/stepper-button.mjs +7 -7
  172. package/esm2022/stepper/stepper-icon.mjs +4 -4
  173. package/esm2022/stepper/stepper-intl.mjs +4 -4
  174. package/esm2022/stepper/stepper-module.mjs +5 -5
  175. package/esm2022/stepper/stepper.mjs +7 -7
  176. package/esm2022/table/cell.mjs +22 -22
  177. package/esm2022/table/module.mjs +5 -5
  178. package/esm2022/table/row.mjs +22 -22
  179. package/esm2022/table/table.mjs +9 -9
  180. package/esm2022/table/text-column.mjs +4 -4
  181. package/esm2022/tabs/ink-bar.mjs +4 -4
  182. package/esm2022/tabs/module.mjs +5 -5
  183. package/esm2022/tabs/paginated-tab-header.mjs +4 -4
  184. package/esm2022/tabs/tab-body.mjs +7 -7
  185. package/esm2022/tabs/tab-content.mjs +4 -4
  186. package/esm2022/tabs/tab-group.mjs +4 -4
  187. package/esm2022/tabs/tab-header.mjs +4 -4
  188. package/esm2022/tabs/tab-label-wrapper.mjs +4 -4
  189. package/esm2022/tabs/tab-label.mjs +4 -4
  190. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +10 -10
  191. package/esm2022/tabs/tab.mjs +4 -4
  192. package/esm2022/toolbar/toolbar-module.mjs +5 -5
  193. package/esm2022/toolbar/toolbar.mjs +7 -7
  194. package/esm2022/tooltip/module.mjs +5 -5
  195. package/esm2022/tooltip/tooltip.mjs +7 -7
  196. package/esm2022/tree/node.mjs +10 -10
  197. package/esm2022/tree/outlet.mjs +4 -4
  198. package/esm2022/tree/padding.mjs +4 -4
  199. package/esm2022/tree/toggle.mjs +4 -4
  200. package/esm2022/tree/tree-module.mjs +5 -5
  201. package/esm2022/tree/tree.mjs +4 -4
  202. package/fesm2022/autocomplete.mjs +14 -13
  203. package/fesm2022/autocomplete.mjs.map +1 -1
  204. package/fesm2022/badge.mjs +14 -11
  205. package/fesm2022/badge.mjs.map +1 -1
  206. package/fesm2022/bottom-sheet.mjs +10 -10
  207. package/fesm2022/bottom-sheet.mjs.map +1 -1
  208. package/fesm2022/button-toggle.mjs +10 -10
  209. package/fesm2022/button-toggle.mjs.map +1 -1
  210. package/fesm2022/button.mjs +34 -34
  211. package/fesm2022/button.mjs.map +1 -1
  212. package/fesm2022/card.mjs +46 -46
  213. package/fesm2022/card.mjs.map +1 -1
  214. package/fesm2022/checkbox.mjs +16 -16
  215. package/fesm2022/checkbox.mjs.map +1 -1
  216. package/fesm2022/chips.mjs +44 -44
  217. package/fesm2022/chips.mjs.map +1 -1
  218. package/fesm2022/core.mjs +59 -59
  219. package/fesm2022/core.mjs.map +1 -1
  220. package/fesm2022/datepicker.mjs +88 -84
  221. package/fesm2022/datepicker.mjs.map +1 -1
  222. package/fesm2022/dialog/testing.mjs +3 -2
  223. package/fesm2022/dialog/testing.mjs.map +1 -1
  224. package/fesm2022/dialog.mjs +25 -30
  225. package/fesm2022/dialog.mjs.map +1 -1
  226. package/fesm2022/divider.mjs +7 -7
  227. package/fesm2022/divider.mjs.map +1 -1
  228. package/fesm2022/expansion.mjs +25 -25
  229. package/fesm2022/expansion.mjs.map +1 -1
  230. package/fesm2022/form-field.mjs +34 -34
  231. package/fesm2022/form-field.mjs.map +1 -1
  232. package/fesm2022/grid-list.mjs +22 -22
  233. package/fesm2022/grid-list.mjs.map +1 -1
  234. package/fesm2022/icon/testing.mjs +7 -7
  235. package/fesm2022/icon/testing.mjs.map +1 -1
  236. package/fesm2022/icon.mjs +10 -10
  237. package/fesm2022/icon.mjs.map +1 -1
  238. package/fesm2022/input.mjs +7 -7
  239. package/fesm2022/input.mjs.map +1 -1
  240. package/fesm2022/list.mjs +51 -51
  241. package/fesm2022/list.mjs.map +1 -1
  242. package/fesm2022/menu.mjs +16 -16
  243. package/fesm2022/menu.mjs.map +1 -1
  244. package/fesm2022/paginator.mjs +10 -10
  245. package/fesm2022/paginator.mjs.map +1 -1
  246. package/fesm2022/progress-bar.mjs +7 -7
  247. package/fesm2022/progress-bar.mjs.map +1 -1
  248. package/fesm2022/progress-spinner.mjs +7 -7
  249. package/fesm2022/progress-spinner.mjs.map +1 -1
  250. package/fesm2022/radio.mjs +35 -13
  251. package/fesm2022/radio.mjs.map +1 -1
  252. package/fesm2022/select.mjs +10 -10
  253. package/fesm2022/select.mjs.map +1 -1
  254. package/fesm2022/sidenav.mjs +22 -22
  255. package/fesm2022/sidenav.mjs.map +1 -1
  256. package/fesm2022/slide-toggle.mjs +14 -14
  257. package/fesm2022/slide-toggle.mjs.map +1 -1
  258. package/fesm2022/slider.mjs +22 -22
  259. package/fesm2022/slider.mjs.map +1 -1
  260. package/fesm2022/snack-bar.mjs +24 -24
  261. package/fesm2022/snack-bar.mjs.map +1 -1
  262. package/fesm2022/sort.mjs +13 -13
  263. package/fesm2022/sort.mjs.map +1 -1
  264. package/fesm2022/stepper.mjs +31 -31
  265. package/fesm2022/stepper.mjs.map +1 -1
  266. package/fesm2022/table.mjs +57 -57
  267. package/fesm2022/table.mjs.map +1 -1
  268. package/fesm2022/tabs.mjs +43 -43
  269. package/fesm2022/tabs.mjs.map +1 -1
  270. package/fesm2022/toolbar.mjs +10 -10
  271. package/fesm2022/toolbar.mjs.map +1 -1
  272. package/fesm2022/tooltip.mjs +10 -10
  273. package/fesm2022/tooltip.mjs.map +1 -1
  274. package/fesm2022/tree.mjs +25 -25
  275. package/fesm2022/tree.mjs.map +1 -1
  276. package/list/_list-item-hcm-indicator.scss +19 -19
  277. package/list/_list-theme.scss +6 -4
  278. package/package.json +2 -2
  279. package/prebuilt-themes/azure-blue.css +1 -1
  280. package/prebuilt-themes/cyan-orange.css +1 -1
  281. package/prebuilt-themes/deeppurple-amber.css +1 -1
  282. package/prebuilt-themes/indigo-pink.css +1 -1
  283. package/prebuilt-themes/magenta-violet.css +1 -1
  284. package/prebuilt-themes/pink-bluegrey.css +1 -1
  285. package/prebuilt-themes/purple-green.css +1 -1
  286. package/prebuilt-themes/rose-red.css +1 -1
  287. package/radio/index.d.ts +1 -0
  288. package/schematics/ng-add/fonts/material-fonts.js +2 -3
  289. package/schematics/ng-add/fonts/material-fonts.mjs +2 -3
  290. package/schematics/ng-add/index.js +3 -3
  291. package/schematics/ng-add/index.mjs +3 -3
  292. package/schematics/ng-add/package-config.js +3 -4
  293. package/schematics/ng-add/package-config.mjs +3 -4
  294. package/schematics/ng-add/setup-project.js +2 -2
  295. package/schematics/ng-add/setup-project.mjs +2 -2
  296. package/schematics/ng-add/theming/create-custom-theme.js +4 -5
  297. package/schematics/ng-add/theming/create-custom-theme.mjs +4 -5
  298. package/schematics/ng-add/theming/theming.js +3 -4
  299. package/schematics/ng-add/theming/theming.mjs +3 -4
  300. package/schematics/ng-generate/address-form/index.js +2 -2
  301. package/schematics/ng-generate/address-form/index.mjs +2 -2
  302. package/schematics/ng-generate/dashboard/index.js +2 -2
  303. package/schematics/ng-generate/dashboard/index.mjs +2 -2
  304. package/schematics/ng-generate/m3-theme/index_bundled.js +83 -4
  305. package/schematics/ng-generate/m3-theme/index_bundled.js.map +3 -3
  306. package/schematics/ng-generate/navigation/index.js +2 -2
  307. package/schematics/ng-generate/navigation/index.mjs +2 -2
  308. package/schematics/ng-generate/table/index.js +2 -2
  309. package/schematics/ng-generate/table/index.mjs +2 -2
  310. package/schematics/ng-generate/tree/index.js +2 -2
  311. package/schematics/ng-generate/tree/index.mjs +2 -2
  312. package/schematics/ng-update/index_bundled.js +192 -57
  313. package/schematics/ng-update/index_bundled.js.map +2 -2
  314. package/slider/index.d.ts +1 -1
  315. package/snack-bar/_snack-bar-theme.scss +16 -7
  316. package/sort/index.d.ts +1 -1
  317. package/tree/index.d.ts +2 -2
package/_index.scss CHANGED
@@ -127,7 +127,7 @@
127
127
  @forward './slider/slider-theme' as slider-* show slider-theme, slider-color, slider-typography,
128
128
  slider-density, slider-base, slider-overrides;
129
129
  @forward './snack-bar/snack-bar-theme' as snack-bar-* show snack-bar-theme, snack-bar-color,
130
- snack-bar-typography, snack-bar-density, snack-bar-base, bar-overrides;
130
+ snack-bar-typography, snack-bar-density, snack-bar-base, snack-bar-overrides;
131
131
  @forward './sort/sort-theme' as sort-* show sort-theme, sort-color, sort-typography, sort-density,
132
132
  sort-base, sort-overrides;
133
133
  @forward './stepper/stepper-theme' as stepper-* show stepper-theme, stepper-color,
@@ -340,7 +340,7 @@ export declare class MatAutocompleteTrigger implements ControlValueAccessor, Aft
340
340
  autocompleteDisabled: boolean;
341
341
  private _initialized;
342
342
  private _injector;
343
- constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: MatAutocompleteDefaultOptions | null | undefined);
343
+ constructor(_element: ElementRef<HTMLInputElement>, _overlay: Overlay, _viewContainerRef: ViewContainerRef, _zone: NgZone, _changeDetectorRef: ChangeDetectorRef, scrollStrategy: any, _dir: Directionality | null, _formField: MatFormField | null, _document: any, _viewportRuler: ViewportRuler, _defaults?: (MatAutocompleteDefaultOptions | null) | undefined);
344
344
  /** Class to apply to the panel when it's above the input. */
345
345
  private _aboveClass;
346
346
  ngAfterViewInit(): void;
package/badge/index.d.ts CHANGED
@@ -25,7 +25,10 @@ export declare class MatBadge implements OnInit, OnDestroy {
25
25
  private _ariaDescriber;
26
26
  private _renderer;
27
27
  private _animationMode?;
28
- /** The color of the badge. Can be `primary`, `accent`, or `warn`. */
28
+ /**
29
+ * The color of the badge. Can be `primary`, `accent`, or `warn`.
30
+ * Not recommended in M3, for more information see https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants.
31
+ */
29
32
  get color(): ThemePalette;
30
33
  set color(value: ThemePalette);
31
34
  private _color;
@@ -54,7 +54,7 @@ export declare class MatBottomSheet implements OnDestroy {
54
54
  /** Reference to the currently opened bottom sheet. */
55
55
  get _openedBottomSheetRef(): MatBottomSheetRef<any> | null;
56
56
  set _openedBottomSheetRef(value: MatBottomSheetRef<any> | null);
57
- constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig<any> | undefined);
57
+ constructor(_overlay: Overlay, injector: Injector, _parentBottomSheet: MatBottomSheet, _defaultOptions?: MatBottomSheetConfig | undefined);
58
58
  /**
59
59
  * Opens a bottom sheet containing the given component.
60
60
  * @param component Type of the component to load into the bottom sheet.
@@ -0,0 +1,523 @@
1
+ @use 'sass:math';
2
+ @use '@angular/cdk';
3
+ @use '../core/tokens/m2/mdc/checkbox' as tokens-mdc-checkbox;
4
+ @use '../core/tokens/token-utils';
5
+
6
+ $_path-length: 29.7833385;
7
+ $_transition-duration: 90ms;
8
+ $_icon-size: 18px;
9
+ $_mark-stroke-size: math.div(2, 15) * $_icon-size;
10
+ $_indeterminate-checked-curve: cubic-bezier(0.14, 0, 0, 1);
11
+ $_indeterminate-change-duration: 500ms;
12
+ $_enter-curve: cubic-bezier(0, 0, 0.2, 1);
13
+ $_exit-curve: cubic-bezier(0.4, 0, 0.6, 1);
14
+ $_fallback-size: 40px;
15
+
16
+ // Structural styles for a checkbox. Shared with the selection list.
17
+ @mixin checkbox-structure($include-state-layer-styles) {
18
+ $prefix: tokens-mdc-checkbox.$prefix;
19
+ $slots: tokens-mdc-checkbox.get-token-slots();
20
+
21
+ .mdc-checkbox {
22
+ display: inline-block;
23
+ position: relative;
24
+ flex: 0 0 $_icon-size;
25
+ box-sizing: content-box;
26
+ width: $_icon-size;
27
+ height: $_icon-size;
28
+ line-height: 0;
29
+ white-space: nowrap;
30
+ cursor: pointer;
31
+ vertical-align: bottom;
32
+
33
+ @include token-utils.use-tokens($prefix, $slots) {
34
+ $layer-size: token-utils.get-token-variable(state-layer-size);
35
+ padding: calc((var(#{$layer-size}, #{$_fallback-size}) - #{$_icon-size}) / 2);
36
+ margin: calc((var(#{$layer-size}, #{$_fallback-size}) -
37
+ var(#{$layer-size}, #{$_fallback-size})) / 2);
38
+
39
+ @if ($include-state-layer-styles) {
40
+ @include _state-layer-styles;
41
+ }
42
+ }
43
+
44
+ // These styles have to be nested in order to override overly-broad
45
+ // user selectors like `input[type='checkbox']`.
46
+ .mdc-checkbox__native-control {
47
+ position: absolute;
48
+ margin: 0;
49
+ padding: 0;
50
+ opacity: 0;
51
+ cursor: inherit;
52
+
53
+ @include token-utils.use-tokens($prefix, $slots) {
54
+ $layer-size: token-utils.get-token-variable(state-layer-size);
55
+ $offset: calc((var(#{$layer-size}, #{$_fallback-size}) -
56
+ var(#{$layer-size}, #{$_fallback-size})) / 2);
57
+ width: var(#{$layer-size}, #{$_fallback-size});
58
+ height: var(#{$layer-size}, #{$_fallback-size});
59
+ top: $offset;
60
+ right: $offset;
61
+ left: $offset;
62
+ }
63
+ }
64
+ }
65
+
66
+ .mdc-checkbox--disabled {
67
+ cursor: default;
68
+ pointer-events: none;
69
+ }
70
+
71
+ .mdc-checkbox__background {
72
+ display: inline-flex;
73
+ position: absolute;
74
+ align-items: center;
75
+ justify-content: center;
76
+ box-sizing: border-box;
77
+ width: $_icon-size;
78
+ height: $_icon-size;
79
+ border: 2px solid currentColor;
80
+ border-radius: 2px;
81
+ background-color: transparent;
82
+ pointer-events: none;
83
+ will-change: background-color, border-color;
84
+ transition: background-color $_transition-duration $_exit-curve,
85
+ border-color $_transition-duration $_exit-curve;
86
+
87
+ @include token-utils.use-tokens($prefix, $slots) {
88
+ $layer-size: token-utils.get-token-variable(state-layer-size);
89
+ $offset: calc((var(#{$layer-size}, $_fallback-size) - #{$_icon-size}) / 2);
90
+
91
+ @include token-utils.create-token-slot(border-color, unselected-icon-color);
92
+ top: $offset;
93
+ left: $offset;
94
+ }
95
+ }
96
+
97
+ // These can't be under `.mdc-checkbox__background` because
98
+ // the selectors will break when the mixin is nested.
99
+ @include token-utils.use-tokens($prefix, $slots) {
100
+ .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,
101
+ .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background {
102
+ @include token-utils.create-token-slot(border-color, selected-icon-color);
103
+ @include token-utils.create-token-slot(background-color, selected-icon-color);
104
+ }
105
+
106
+ .mdc-checkbox--disabled .mdc-checkbox__background {
107
+ @include token-utils.create-token-slot(border-color, disabled-unselected-icon-color);
108
+ }
109
+
110
+ .mdc-checkbox__native-control:disabled:checked ~ .mdc-checkbox__background,
111
+ .mdc-checkbox__native-control:disabled:indeterminate ~ .mdc-checkbox__background {
112
+ @include token-utils.create-token-slot(background-color, disabled-selected-icon-color);
113
+ border-color: transparent;
114
+ }
115
+
116
+ .mdc-checkbox:hover .mdc-checkbox__native-control:not(:checked) ~ .mdc-checkbox__background,
117
+ .mdc-checkbox:hover
118
+ .mdc-checkbox__native-control:not(:indeterminate) ~ .mdc-checkbox__background {
119
+ @include token-utils.create-token-slot(border-color, unselected-hover-icon-color);
120
+ background-color: transparent;
121
+ }
122
+
123
+ .mdc-checkbox:hover .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
124
+ .mdc-checkbox:hover .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
125
+ @include token-utils.create-token-slot(border-color, selected-hover-icon-color);
126
+ @include token-utils.create-token-slot(background-color, selected-hover-icon-color);
127
+ }
128
+
129
+ // Note: this must be more specific than the hover styles above.
130
+ // Double :focus is added for increased specificity.
131
+ .mdc-checkbox__native-control:focus:focus:not(:checked) ~ .mdc-checkbox__background,
132
+ .mdc-checkbox__native-control:focus:focus:not(:indeterminate) ~ .mdc-checkbox__background {
133
+ @include token-utils.create-token-slot(border-color, unselected-focus-icon-color);
134
+ }
135
+
136
+ .mdc-checkbox__native-control:focus:focus:checked ~ .mdc-checkbox__background,
137
+ .mdc-checkbox__native-control:focus:focus:indeterminate ~ .mdc-checkbox__background {
138
+ @include token-utils.create-token-slot(border-color, selected-focus-icon-color);
139
+ @include token-utils.create-token-slot(background-color, selected-focus-icon-color);
140
+ }
141
+ }
142
+
143
+ .mdc-checkbox__checkmark {
144
+ position: absolute;
145
+ top: 0;
146
+ right: 0;
147
+ bottom: 0;
148
+ left: 0;
149
+ width: 100%;
150
+ opacity: 0;
151
+ transition: opacity $_transition-duration * 2 $_exit-curve;
152
+
153
+ @include token-utils.use-tokens($prefix, $slots) {
154
+ // Always apply the color since the element becomes `opacity: 0`
155
+ // when unchecked. This makes the animation look better.
156
+ @include token-utils.create-token-slot(color, selected-checkmark-color);
157
+ }
158
+ }
159
+
160
+ @include token-utils.use-tokens($prefix, $slots) {
161
+ .mdc-checkbox--disabled .mdc-checkbox__checkmark {
162
+ @include token-utils.create-token-slot(color, disabled-selected-checkmark-color);
163
+ }
164
+ }
165
+
166
+ .mdc-checkbox__checkmark-path {
167
+ transition: stroke-dashoffset $_transition-duration * 2 $_exit-curve;
168
+ stroke: currentColor;
169
+ stroke-width: $_mark-stroke-size * 1.3;
170
+ stroke-dashoffset: $_path-length;
171
+ stroke-dasharray: $_path-length;
172
+ }
173
+
174
+ .mdc-checkbox__mixedmark {
175
+ width: 100%;
176
+ height: 0;
177
+ transform: scaleX(0) rotate(0deg);
178
+ border-width: math.div(math.floor($_mark-stroke-size), 2);
179
+ border-style: solid;
180
+ opacity: 0;
181
+ transition: opacity $_transition-duration $_exit-curve,
182
+ transform $_transition-duration $_exit-curve;
183
+
184
+ @include cdk.high-contrast(active, off) {
185
+ margin: 0 1px;
186
+ }
187
+
188
+ @include token-utils.use-tokens($prefix, $slots) {
189
+ // Always apply the color since the element becomes `opacity: 0`
190
+ // when unchecked. This makes the animation look better.
191
+ @include token-utils.create-token-slot(border-color, selected-checkmark-color);
192
+ }
193
+ }
194
+
195
+ @include token-utils.use-tokens($prefix, $slots) {
196
+ .mdc-checkbox--disabled .mdc-checkbox__mixedmark {
197
+ @include token-utils.create-token-slot(border-color, disabled-selected-checkmark-color);
198
+ }
199
+ }
200
+
201
+ .mdc-checkbox--anim-unchecked-checked,
202
+ .mdc-checkbox--anim-unchecked-indeterminate,
203
+ .mdc-checkbox--anim-checked-unchecked,
204
+ .mdc-checkbox--anim-indeterminate-unchecked {
205
+ .mdc-checkbox__background {
206
+ animation-duration: $_transition-duration * 2;
207
+ animation-timing-function: linear;
208
+ }
209
+ }
210
+
211
+ .mdc-checkbox--anim-unchecked-checked {
212
+ .mdc-checkbox__checkmark-path {
213
+ animation: mdc-checkbox-unchecked-checked-checkmark-path
214
+ $_transition-duration * 2 linear;
215
+ transition: none;
216
+ }
217
+ }
218
+
219
+ .mdc-checkbox--anim-unchecked-indeterminate {
220
+ .mdc-checkbox__mixedmark {
221
+ animation: mdc-checkbox-unchecked-indeterminate-mixedmark $_transition-duration linear;
222
+ transition: none;
223
+ }
224
+ }
225
+
226
+ .mdc-checkbox--anim-checked-unchecked {
227
+ .mdc-checkbox__checkmark-path {
228
+ animation: mdc-checkbox-checked-unchecked-checkmark-path $_transition-duration linear;
229
+ transition: none;
230
+ }
231
+ }
232
+
233
+ .mdc-checkbox--anim-checked-indeterminate {
234
+ .mdc-checkbox__checkmark {
235
+ animation: mdc-checkbox-checked-indeterminate-checkmark $_transition-duration linear;
236
+ transition: none;
237
+ }
238
+
239
+ .mdc-checkbox__mixedmark {
240
+ animation: mdc-checkbox-checked-indeterminate-mixedmark $_transition-duration linear;
241
+ transition: none;
242
+ }
243
+ }
244
+
245
+ .mdc-checkbox--anim-indeterminate-checked {
246
+ .mdc-checkbox__checkmark {
247
+ animation: mdc-checkbox-indeterminate-checked-checkmark
248
+ $_indeterminate-change-duration linear;
249
+ transition: none;
250
+ }
251
+
252
+ .mdc-checkbox__mixedmark {
253
+ animation: mdc-checkbox-indeterminate-checked-mixedmark
254
+ $_indeterminate-change-duration linear;
255
+ transition: none;
256
+ }
257
+ }
258
+
259
+ .mdc-checkbox--anim-indeterminate-unchecked {
260
+ .mdc-checkbox__mixedmark {
261
+ animation: mdc-checkbox-indeterminate-unchecked-mixedmark
262
+ $_indeterminate-change-duration * 0.6 linear;
263
+ transition: none;
264
+ }
265
+ }
266
+
267
+ .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background,
268
+ .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
269
+ transition: border-color $_transition-duration $_enter-curve,
270
+ background-color $_transition-duration $_enter-curve;
271
+
272
+ .mdc-checkbox__checkmark-path {
273
+ stroke-dashoffset: 0;
274
+ }
275
+ }
276
+
277
+ .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background {
278
+ .mdc-checkbox__checkmark {
279
+ transition: opacity $_transition-duration * 2 $_enter-curve,
280
+ transform $_transition-duration * 2 $_enter-curve;
281
+ opacity: 1;
282
+ }
283
+
284
+ .mdc-checkbox__mixedmark {
285
+ transform: scaleX(1) rotate(-45deg);
286
+ }
287
+ }
288
+ .mdc-checkbox__native-control:indeterminate ~ .mdc-checkbox__background {
289
+ .mdc-checkbox__checkmark {
290
+ transform: rotate(45deg);
291
+ opacity: 0;
292
+ transition: opacity $_transition-duration $_exit-curve,
293
+ transform $_transition-duration $_exit-curve;
294
+ }
295
+
296
+ .mdc-checkbox__mixedmark {
297
+ transform: scaleX(1) rotate(0deg);
298
+ opacity: 1;
299
+ }
300
+ }
301
+
302
+ @keyframes mdc-checkbox-unchecked-checked-checkmark-path {
303
+ 0%, 50% {
304
+ stroke-dashoffset: $_path-length;
305
+ }
306
+
307
+ 50% {
308
+ animation-timing-function: $_enter-curve;
309
+ }
310
+
311
+ 100% {
312
+ stroke-dashoffset: 0;
313
+ }
314
+ }
315
+
316
+ @keyframes mdc-checkbox-unchecked-indeterminate-mixedmark {
317
+ 0%, 68.2% {
318
+ transform: scaleX(0);
319
+ }
320
+
321
+ 68.2% {
322
+ animation-timing-function: cubic-bezier(0, 0, 0, 1);
323
+ }
324
+
325
+ 100% {
326
+ transform: scaleX(1);
327
+ }
328
+ }
329
+
330
+ @keyframes mdc-checkbox-checked-unchecked-checkmark-path {
331
+ from {
332
+ animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
333
+ opacity: 1;
334
+ stroke-dashoffset: 0;
335
+ }
336
+
337
+ to {
338
+ opacity: 0;
339
+ stroke-dashoffset: $_path-length * -1;
340
+ }
341
+ }
342
+
343
+ @keyframes mdc-checkbox-checked-indeterminate-checkmark {
344
+ from {
345
+ animation-timing-function: $_enter-curve;
346
+ transform: rotate(0deg);
347
+ opacity: 1;
348
+ }
349
+
350
+ to {
351
+ transform: rotate(45deg);
352
+ opacity: 0;
353
+ }
354
+ }
355
+
356
+ @keyframes mdc-checkbox-indeterminate-checked-checkmark {
357
+ from {
358
+ animation-timing-function: $_indeterminate-checked-curve;
359
+ transform: rotate(45deg);
360
+ opacity: 0;
361
+ }
362
+
363
+ to {
364
+ transform: rotate(360deg);
365
+ opacity: 1;
366
+ }
367
+ }
368
+
369
+ @keyframes mdc-checkbox-checked-indeterminate-mixedmark {
370
+ from {
371
+ animation-timing-function: $_enter-curve;
372
+ transform: rotate(-45deg);
373
+ opacity: 0;
374
+ }
375
+
376
+ to {
377
+ transform: rotate(0deg);
378
+ opacity: 1;
379
+ }
380
+ }
381
+
382
+ @keyframes mdc-checkbox-indeterminate-checked-mixedmark {
383
+ from {
384
+ animation-timing-function: $_indeterminate-checked-curve;
385
+ transform: rotate(0deg);
386
+ opacity: 1;
387
+ }
388
+
389
+ to {
390
+ transform: rotate(315deg);
391
+ opacity: 0;
392
+ }
393
+ }
394
+
395
+ @keyframes mdc-checkbox-indeterminate-unchecked-mixedmark {
396
+ 0% {
397
+ animation-timing-function: linear;
398
+ transform: scaleX(1);
399
+ opacity: 1;
400
+ }
401
+
402
+ 32.8%, 100% {
403
+ transform: scaleX(0);
404
+ opacity: 0;
405
+ }
406
+ }
407
+ }
408
+
409
+ // Conditionally disables the animations of the checkbox.
410
+ @mixin checkbox-noop-animations() {
411
+ &._mat-animation-noopable .mdc-checkbox {
412
+ *, *::before {
413
+ transition: none !important;
414
+ animation: none !important;
415
+ }
416
+ }
417
+ }
418
+
419
+ @mixin _state-layer-styles() {
420
+ // MDC expects `.mdc-checkbox__ripple::before` to be the state layer, but we use
421
+ // `.mdc-checkbox__ripple` instead, so we emit the state layer slots ourselves.
422
+ &:hover {
423
+ .mdc-checkbox__ripple {
424
+ @include token-utils.create-token-slot(opacity, unselected-hover-state-layer-opacity);
425
+ @include token-utils.create-token-slot(
426
+ background-color,
427
+ unselected-hover-state-layer-color
428
+ );
429
+ }
430
+
431
+ .mat-mdc-checkbox-ripple .mat-ripple-element {
432
+ @include token-utils.create-token-slot(
433
+ background-color,
434
+ unselected-hover-state-layer-color
435
+ );
436
+ }
437
+ }
438
+
439
+ .mdc-checkbox__native-control:focus {
440
+ & ~ .mdc-checkbox__ripple {
441
+ @include token-utils.create-token-slot(opacity, unselected-focus-state-layer-opacity);
442
+ @include token-utils.create-token-slot(
443
+ background-color,
444
+ unselected-focus-state-layer-color
445
+ );
446
+ }
447
+
448
+ & ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
449
+ @include token-utils.create-token-slot(
450
+ background-color,
451
+ unselected-focus-state-layer-color
452
+ );
453
+ }
454
+ }
455
+
456
+ &:active .mdc-checkbox__native-control {
457
+ & ~ .mdc-checkbox__ripple {
458
+ @include token-utils.create-token-slot(opacity, unselected-pressed-state-layer-opacity);
459
+ @include token-utils.create-token-slot(
460
+ background-color,
461
+ unselected-pressed-state-layer-color
462
+ );
463
+ }
464
+
465
+ & ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
466
+ @include token-utils.create-token-slot(
467
+ background-color,
468
+ unselected-pressed-state-layer-color
469
+ );
470
+ }
471
+ }
472
+
473
+ &:hover .mdc-checkbox__native-control:checked {
474
+ & ~ .mdc-checkbox__ripple {
475
+ @include token-utils.create-token-slot(opacity, selected-hover-state-layer-opacity);
476
+ @include token-utils.create-token-slot(
477
+ background-color,
478
+ selected-hover-state-layer-color
479
+ );
480
+ }
481
+
482
+ & ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
483
+ @include token-utils.create-token-slot(
484
+ background-color,
485
+ selected-hover-state-layer-color
486
+ );
487
+ }
488
+ }
489
+
490
+ .mdc-checkbox__native-control:focus:checked {
491
+ & ~ .mdc-checkbox__ripple {
492
+ @include token-utils.create-token-slot(opacity, selected-focus-state-layer-opacity);
493
+ @include token-utils.create-token-slot(
494
+ background-color,
495
+ selected-focus-state-layer-color
496
+ );
497
+ }
498
+
499
+ & ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
500
+ @include token-utils.create-token-slot(
501
+ background-color,
502
+ selected-focus-state-layer-color
503
+ );
504
+ }
505
+ }
506
+
507
+ &:active .mdc-checkbox__native-control:checked {
508
+ & ~ .mdc-checkbox__ripple {
509
+ @include token-utils.create-token-slot(opacity, selected-pressed-state-layer-opacity);
510
+ @include token-utils.create-token-slot(
511
+ background-color,
512
+ selected-pressed-state-layer-color
513
+ );
514
+ }
515
+
516
+ & ~ .mat-mdc-checkbox-ripple .mat-ripple-element {
517
+ @include token-utils.create-token-slot(
518
+ background-color,
519
+ selected-pressed-state-layer-color
520
+ );
521
+ }
522
+ }
523
+ }
@@ -1,4 +1,3 @@
1
- @use '@material/checkbox/checkbox-theme' as mdc-checkbox-theme;
2
1
  @use '../core/style/sass-utils';
3
2
  @use '../core/theming/theming';
4
3
  @use '../core/theming/inspection';
@@ -16,7 +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-checkbox-theme.theme(tokens-mdc-checkbox.get-unthemable-tokens());
18
+ @include token-utils.create-token-values(
19
+ tokens-mdc-checkbox.$prefix,
20
+ tokens-mdc-checkbox.get-unthemable-tokens()
21
+ );
20
22
  @include token-utils.create-token-values(
21
23
  tokens-mat-checkbox.$prefix,
22
24
  tokens-mat-checkbox.get-unthemable-tokens()
@@ -35,7 +37,10 @@
35
37
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
36
38
  } @else {
37
39
  @include sass-utils.current-selector-or-root() {
38
- @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme));
40
+ @include token-utils.create-token-values(
41
+ tokens-mdc-checkbox.$prefix,
42
+ tokens-mdc-checkbox.get-color-tokens($theme)
43
+ );
39
44
  @include token-utils.create-token-values(
40
45
  tokens-mat-checkbox.$prefix,
41
46
  tokens-mat-checkbox.get-color-tokens($theme)
@@ -44,11 +49,15 @@
44
49
 
45
50
  .mat-mdc-checkbox {
46
51
  &.mat-primary {
47
- @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme, primary));
52
+ @include token-utils.create-token-values(
53
+ tokens-mdc-checkbox.$prefix,
54
+ tokens-mdc-checkbox.get-color-tokens($theme, primary));
48
55
  }
49
56
 
50
57
  &.mat-warn {
51
- @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-color-tokens($theme, warn));
58
+ @include token-utils.create-token-values(
59
+ tokens-mdc-checkbox.$prefix,
60
+ tokens-mdc-checkbox.get-color-tokens($theme, warn));
52
61
  }
53
62
  }
54
63
  }
@@ -61,7 +70,10 @@
61
70
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
62
71
  } @else {
63
72
  @include sass-utils.current-selector-or-root() {
64
- @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-typography-tokens($theme));
73
+ @include token-utils.create-token-values(
74
+ tokens-mdc-checkbox.$prefix,
75
+ tokens-mdc-checkbox.get-typography-tokens($theme)
76
+ );
65
77
  @include token-utils.create-token-values(
66
78
  tokens-mat-checkbox.$prefix,
67
79
  tokens-mat-checkbox.get-typography-tokens($theme)
@@ -79,7 +91,10 @@
79
91
  @include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
80
92
  } @else {
81
93
  @include sass-utils.current-selector-or-root() {
82
- @include mdc-checkbox-theme.theme(tokens-mdc-checkbox.get-density-tokens($theme));
94
+ @include token-utils.create-token-values(
95
+ tokens-mdc-checkbox.$prefix,
96
+ tokens-mdc-checkbox.get-density-tokens($theme)
97
+ );
83
98
  @include token-utils.create-token-values(
84
99
  tokens-mat-checkbox.$prefix,
85
100
  tokens-mat-checkbox.get-density-tokens($theme)
@@ -140,6 +155,6 @@
140
155
  // Don't pass $options here, since the mdc-checkbox doesn't support color options,
141
156
  // only the mdc-checkbox does.
142
157
  $mat-checkbox-tokens: token-utils.get-tokens-for($tokens, tokens-mat-checkbox.$prefix);
143
- @include mdc-checkbox-theme.theme($mdc-checkbox-tokens);
158
+ @include token-utils.create-token-values(tokens-mdc-checkbox.$prefix, $mdc-checkbox-tokens);
144
159
  @include token-utils.create-token-values(tokens-mat-checkbox.$prefix, $mat-checkbox-tokens);
145
160
  }
@@ -109,7 +109,11 @@ export declare class MatCheckbox implements AfterViewInit, OnChanges, ControlVal
109
109
  _labelElement: ElementRef<HTMLInputElement>;
110
110
  /** Tabindex for the checkbox. */
111
111
  tabIndex: number;
112
- /** Palette color of the checkbox. */
112
+ /**
113
+ * Palette color of the checkbox. This API is supported in M2 themes only, it has no effect in M3
114
+ * themes. For information on applying color variants in M3, see
115
+ * https://material.angular.io/guide/theming#using-component-color-variants
116
+ */
113
117
  color: string | undefined;
114
118
  /**
115
119
  * Reference to the MatRipple instance of the checkbox.
@@ -211,7 +215,11 @@ export declare type MatCheckboxClickAction = 'noop' | 'check' | 'check-indetermi
211
215
 
212
216
  /** Default `mat-checkbox` options that can be overridden. */
213
217
  export declare interface MatCheckboxDefaultOptions {
214
- /** Default theme color palette to be used for checkboxes. */
218
+ /**
219
+ * Default theme color palette to be used for checkboxes. This API is supported in M2 themes
220
+ * only, it has no effect in M3 themes. For information on applying color variants in M3, see
221
+ * https://material.angular.io/guide/theming#using-component-color-variants
222
+ */
215
223
  color?: ThemePalette;
216
224
  /** Default checkbox click action for checkboxes. */
217
225
  clickAction?: MatCheckboxClickAction;
package/chips/index.d.ts CHANGED
@@ -184,7 +184,11 @@ export declare class MatChip implements OnInit, AfterViewInit, AfterContentInit,
184
184
  get value(): any;
185
185
  set value(value: any);
186
186
  protected _value: any;
187
- /** Theme color palette of the chip. */
187
+ /**
188
+ * Theme color palette of the chip. This API is supported in M2 themes only, it has no effect in
189
+ * M3 themes. For information on applying color variants in M3, see
190
+ * https://material.angular.io/guide/theming#using-component-color-variants
191
+ */
188
192
  color?: string | null;
189
193
  /**
190
194
  * Determines whether or not the chip displays the remove styling and emits (removed) events.
package/core/index.d.ts CHANGED
@@ -970,7 +970,7 @@ export declare class NativeDateAdapter extends DateAdapter<Date> {
970
970
  * invalid date for all other values.
971
971
  */
972
972
  deserialize(value: any): Date | null;
973
- isDateInstance(obj: any): boolean;
973
+ isDateInstance(obj: any): obj is Date;
974
974
  isValid(date: Date): boolean;
975
975
  invalid(): Date;
976
976
  /** Creates a date but allows the month and date to overflow. */