@material/web 1.0.0-pre.4 → 1.0.0-pre.6

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 (798) hide show
  1. package/README.md +5 -5
  2. package/badge/lib/_badge.scss +2 -10
  3. package/badge/lib/badge-styles.css.js +1 -1
  4. package/badge/lib/badge-styles.css.js.map +1 -1
  5. package/button/lib/_elevated-button.scss +5 -30
  6. package/button/lib/_elevation.scss +8 -29
  7. package/button/lib/_filled-button.scss +4 -31
  8. package/button/lib/_icon.scss +1 -0
  9. package/button/lib/_outlined-button.scss +6 -23
  10. package/button/lib/_shared.scss +23 -52
  11. package/button/lib/_text-button.scss +8 -34
  12. package/button/lib/_tonal-button.scss +5 -28
  13. package/button/lib/button.d.ts +16 -1
  14. package/button/lib/button.js +41 -15
  15. package/button/lib/button.js.map +1 -1
  16. package/button/lib/elevated-button.d.ts +3 -0
  17. package/button/lib/elevated-button.js +4 -2
  18. package/button/lib/elevated-button.js.map +1 -1
  19. package/button/lib/elevated-styles.css.js +1 -1
  20. package/button/lib/elevated-styles.css.js.map +1 -1
  21. package/button/lib/filled-button.d.ts +3 -1
  22. package/button/lib/filled-button.js +4 -3
  23. package/button/lib/filled-button.js.map +1 -1
  24. package/button/lib/filled-styles.css.js +1 -1
  25. package/button/lib/filled-styles.css.js.map +1 -1
  26. package/button/lib/outlined-button.d.ts +3 -0
  27. package/button/lib/outlined-button.js +3 -1
  28. package/button/lib/outlined-button.js.map +1 -1
  29. package/button/lib/outlined-styles.css.js +1 -1
  30. package/button/lib/outlined-styles.css.js.map +1 -1
  31. package/button/lib/shared-elevation-styles.css.js +1 -1
  32. package/button/lib/shared-elevation-styles.css.js.map +1 -1
  33. package/button/lib/shared-styles.css.js +1 -1
  34. package/button/lib/shared-styles.css.js.map +1 -1
  35. package/button/lib/text-button.d.ts +3 -0
  36. package/button/lib/text-button.js +3 -1
  37. package/button/lib/text-button.js.map +1 -1
  38. package/button/lib/text-styles.css.js +1 -1
  39. package/button/lib/text-styles.css.js.map +1 -1
  40. package/button/lib/tonal-button.d.ts +3 -1
  41. package/button/lib/tonal-button.js +4 -3
  42. package/button/lib/tonal-button.js.map +1 -1
  43. package/button/lib/tonal-styles.css.js +1 -1
  44. package/button/lib/tonal-styles.css.js.map +1 -1
  45. package/checkbox/lib/_checkbox.scss +1 -2
  46. package/checkbox/lib/checkbox-styles.css.js +1 -1
  47. package/checkbox/lib/checkbox-styles.css.js.map +1 -1
  48. package/chips/_assist-chip.scss +6 -0
  49. package/chips/_suggestion-chip.scss +6 -0
  50. package/chips/assist-chip.d.ts +20 -0
  51. package/chips/assist-chip.js +24 -0
  52. package/chips/assist-chip.js.map +1 -0
  53. package/chips/lib/_assist-chip.scss +27 -0
  54. package/chips/lib/_shared.scss +213 -0
  55. package/chips/lib/_suggestion-chip.scss +30 -0
  56. package/chips/lib/assist-chip.d.ts +11 -0
  57. package/chips/lib/assist-chip.js +12 -0
  58. package/chips/lib/assist-chip.js.map +1 -0
  59. package/chips/lib/assist-styles.css.js +9 -0
  60. package/chips/lib/assist-styles.css.js.map +1 -0
  61. package/{menusurface/lib/menu-surface-styles.scss → chips/lib/assist-styles.scss} +3 -3
  62. package/chips/lib/chip.d.ts +29 -0
  63. package/chips/lib/chip.js +110 -0
  64. package/chips/lib/chip.js.map +1 -0
  65. package/chips/lib/shared-styles.css.js +9 -0
  66. package/chips/lib/shared-styles.css.js.map +1 -0
  67. package/{autocomplete → chips}/lib/shared-styles.scss +1 -1
  68. package/chips/lib/suggestion-chip.d.ts +11 -0
  69. package/chips/lib/suggestion-chip.js +12 -0
  70. package/chips/lib/suggestion-chip.js.map +1 -0
  71. package/chips/lib/suggestion-styles.css.js +9 -0
  72. package/chips/lib/suggestion-styles.css.js.map +1 -0
  73. package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.scss → chips/lib/suggestion-styles.scss} +3 -3
  74. package/chips/suggestion-chip.d.ts +20 -0
  75. package/chips/suggestion-chip.js +24 -0
  76. package/chips/suggestion-chip.js.map +1 -0
  77. package/circularprogress/_circular-progress.scss +6 -0
  78. package/circularprogress/circular-progress.d.ts +24 -0
  79. package/circularprogress/circular-progress.js +27 -0
  80. package/circularprogress/circular-progress.js.map +1 -0
  81. package/circularprogress/harness.d.ts +12 -0
  82. package/circularprogress/harness.js +12 -0
  83. package/circularprogress/harness.js.map +1 -0
  84. package/circularprogress/lib/_circular-progress.scss +282 -0
  85. package/circularprogress/lib/circular-progress-styles.css.js +9 -0
  86. package/circularprogress/lib/circular-progress-styles.css.js.map +1 -0
  87. package/circularprogress/lib/circular-progress-styles.scss +8 -0
  88. package/circularprogress/lib/circular-progress.d.ts +29 -0
  89. package/circularprogress/lib/circular-progress.js +98 -0
  90. package/circularprogress/lib/circular-progress.js.map +1 -0
  91. package/dialog/lib/_dialog.scss +5 -8
  92. package/dialog/lib/_tokens.scss +1 -2
  93. package/dialog/lib/dialog-styles.css.js +1 -1
  94. package/dialog/lib/dialog-styles.css.js.map +1 -1
  95. package/dialog/lib/dialog.js +1 -1
  96. package/dialog/lib/dialog.js.map +1 -1
  97. package/elevation/lib/_elevation.scss +14 -69
  98. package/elevation/lib/elevation-styles.css.js +1 -1
  99. package/elevation/lib/elevation-styles.css.js.map +1 -1
  100. package/elevation/lib/elevation.d.ts +0 -8
  101. package/elevation/lib/elevation.js +1 -25
  102. package/elevation/lib/elevation.js.map +1 -1
  103. package/fab/lib/_fab-extended.scss +3 -10
  104. package/fab/lib/_fab.scss +0 -3
  105. package/fab/lib/_shared.scss +19 -44
  106. package/fab/lib/fab-extended-styles.css.js +1 -1
  107. package/fab/lib/fab-extended-styles.css.js.map +1 -1
  108. package/fab/lib/fab-shared-styles.css.js +1 -1
  109. package/fab/lib/fab-shared-styles.css.js.map +1 -1
  110. package/fab/lib/fab-shared.d.ts +0 -1
  111. package/fab/lib/fab-shared.js +2 -8
  112. package/fab/lib/fab-shared.js.map +1 -1
  113. package/fab/lib/fab-styles.css.js +1 -1
  114. package/fab/lib/fab-styles.css.js.map +1 -1
  115. package/field/lib/field.d.ts +4 -1
  116. package/field/lib/field.js +7 -0
  117. package/field/lib/field.js.map +1 -1
  118. package/field/lib/filled-styles.css.js +1 -1
  119. package/field/lib/filled-styles.css.js.map +1 -1
  120. package/field/lib/outlined-styles.css.js +1 -1
  121. package/field/lib/outlined-styles.css.js.map +1 -1
  122. package/focus/lib/_focus-ring.scss +30 -14
  123. package/focus/lib/focus-ring-styles.css.js +1 -1
  124. package/focus/lib/focus-ring-styles.css.js.map +1 -1
  125. package/focus/strong-focus.d.ts +11 -0
  126. package/focus/strong-focus.js +11 -1
  127. package/focus/strong-focus.js.map +1 -1
  128. package/iconbutton/filled-icon-button.js +1 -0
  129. package/iconbutton/filled-icon-button.js.map +1 -1
  130. package/iconbutton/filled-tonal-icon-button.js +1 -0
  131. package/iconbutton/filled-tonal-icon-button.js.map +1 -1
  132. package/iconbutton/harness.d.ts +1 -2
  133. package/iconbutton/harness.js.map +1 -1
  134. package/iconbutton/lib/_filled-icon-button.scss +1 -12
  135. package/iconbutton/lib/_filled-tonal-icon-button.scss +1 -12
  136. package/iconbutton/lib/_outlined-icon-button.scss +1 -13
  137. package/iconbutton/lib/_shared.scss +10 -6
  138. package/iconbutton/lib/_standard-icon-button.scss +5 -12
  139. package/iconbutton/lib/filled-styles.css.js +1 -1
  140. package/iconbutton/lib/filled-styles.css.js.map +1 -1
  141. package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
  142. package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
  143. package/iconbutton/lib/icon-button.d.ts +33 -2
  144. package/iconbutton/lib/icon-button.js +104 -18
  145. package/iconbutton/lib/icon-button.js.map +1 -1
  146. package/iconbutton/lib/outlined-styles.css.js +1 -1
  147. package/iconbutton/lib/outlined-styles.css.js.map +1 -1
  148. package/iconbutton/lib/shared-styles.css.js +1 -1
  149. package/iconbutton/lib/shared-styles.css.js.map +1 -1
  150. package/iconbutton/lib/standard-styles.css.js +1 -1
  151. package/iconbutton/lib/standard-styles.css.js.map +1 -1
  152. package/list/harness.d.ts +1 -0
  153. package/list/harness.js +1 -0
  154. package/list/harness.js.map +1 -1
  155. package/list/lib/_list.scss +15 -9
  156. package/list/lib/list-styles.css.js +1 -1
  157. package/list/lib/list-styles.css.js.map +1 -1
  158. package/list/lib/list.js +2 -0
  159. package/list/lib/list.js.map +1 -1
  160. package/list/lib/listitem/_list-item.scss +50 -57
  161. package/list/lib/listitem/forced-colors-styles.css.js +9 -0
  162. package/list/lib/listitem/forced-colors-styles.css.js.map +1 -0
  163. package/list/lib/listitem/forced-colors-styles.scss +23 -0
  164. package/list/lib/listitem/list-item-styles.css.js +1 -1
  165. package/list/lib/listitem/list-item-styles.css.js.map +1 -1
  166. package/list/lib/listitem/list-item.d.ts +4 -3
  167. package/list/lib/listitem/list-item.js +7 -4
  168. package/list/lib/listitem/list-item.js.map +1 -1
  169. package/list/list-item-link.js +2 -1
  170. package/list/list-item-link.js.map +1 -1
  171. package/list/list-item.js +2 -1
  172. package/list/list-item.js.map +1 -1
  173. package/menu/harness.d.ts +1 -0
  174. package/menu/harness.js +1 -0
  175. package/menu/harness.js.map +1 -1
  176. package/menu/lib/_menu.scss +11 -19
  177. package/menu/lib/forced-colors-styles.css.js +9 -0
  178. package/menu/lib/forced-colors-styles.css.js.map +1 -0
  179. package/menu/lib/forced-colors-styles.scss +12 -0
  180. package/menu/lib/menu-styles.css.js +1 -1
  181. package/menu/lib/menu-styles.css.js.map +1 -1
  182. package/menu/lib/menu.d.ts +34 -10
  183. package/menu/lib/menu.js +116 -30
  184. package/menu/lib/menu.js.map +1 -1
  185. package/menu/lib/menuitem/_menu-item.scss +5 -11
  186. package/menu/lib/menuitem/forced-colors-styles.css.js +9 -0
  187. package/menu/lib/menuitem/forced-colors-styles.css.js.map +1 -0
  188. package/menu/lib/menuitem/forced-colors-styles.scss +22 -0
  189. package/menu/lib/menuitem/menu-item-styles.css.js +1 -1
  190. package/menu/lib/menuitem/menu-item-styles.css.js.map +1 -1
  191. package/menu/lib/menuitem/menu-item.js +1 -1
  192. package/menu/lib/menuitem/menu-item.js.map +1 -1
  193. package/menu/lib/menuitemlink/menu-item-link.js +2 -1
  194. package/menu/lib/menuitemlink/menu-item-link.js.map +1 -1
  195. package/menu/lib/shared.d.ts +26 -0
  196. package/menu/lib/shared.js +39 -0
  197. package/menu/lib/shared.js.map +1 -1
  198. package/menu/lib/submenuitem/sub-menu-item.d.ts +8 -0
  199. package/menu/lib/submenuitem/sub-menu-item.js +21 -2
  200. package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
  201. package/menu/lib/surfacePositionController.d.ts +10 -2
  202. package/menu/lib/surfacePositionController.js +6 -2
  203. package/menu/lib/surfacePositionController.js.map +1 -1
  204. package/menu/lib/typeaheadController.d.ts +15 -2
  205. package/menu/lib/typeaheadController.js +27 -17
  206. package/menu/lib/typeaheadController.js.map +1 -1
  207. package/menu/menu-item-link.js +3 -1
  208. package/menu/menu-item-link.js.map +1 -1
  209. package/menu/menu-item.js +4 -2
  210. package/menu/menu-item.js.map +1 -1
  211. package/menu/menu.js +2 -1
  212. package/menu/menu.js.map +1 -1
  213. package/menu/sub-menu-item.js +3 -1
  214. package/menu/sub-menu-item.js.map +1 -1
  215. package/navigationbar/lib/_navigation-bar.scss +4 -10
  216. package/navigationbar/lib/navigation-bar-styles.css.js +1 -1
  217. package/navigationbar/lib/navigation-bar-styles.css.js.map +1 -1
  218. package/navigationbar/lib/navigation-bar.js +2 -2
  219. package/navigationbar/lib/navigation-bar.js.map +1 -1
  220. package/navigationdrawer/lib/_navigation-drawer-modal.scss +10 -14
  221. package/navigationdrawer/lib/_navigation-drawer.scss +9 -17
  222. package/navigationdrawer/lib/_shared.scss +0 -9
  223. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +1 -1
  224. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -1
  225. package/navigationdrawer/lib/navigation-drawer-styles.css.js +1 -1
  226. package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
  227. package/navigationdrawer/lib/navigation-drawer.js +1 -1
  228. package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
  229. package/navigationtab/lib/_navigation-tab.scss +4 -10
  230. package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
  231. package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
  232. package/package.json +2 -1
  233. package/radio/lib/_radio.scss +1 -2
  234. package/radio/lib/radio-styles.css.js +1 -1
  235. package/radio/lib/radio-styles.css.js.map +1 -1
  236. package/ripple/lib/_md-comp-ripple.scss +3 -3
  237. package/ripple/lib/ripple-styles.css.js +1 -1
  238. package/ripple/lib/ripple-styles.css.js.map +1 -1
  239. package/segmentedbutton/lib/_shared.scss +0 -2
  240. package/segmentedbutton/lib/outlined-styles.css.js +1 -1
  241. package/segmentedbutton/lib/outlined-styles.css.js.map +1 -1
  242. package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
  243. package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
  244. package/slider/lib/_slider.scss +2 -11
  245. package/slider/lib/_tokens.scss +7 -8
  246. package/slider/lib/slider-styles.css.js +1 -1
  247. package/slider/lib/slider-styles.css.js.map +1 -1
  248. package/slider/lib/slider.js +1 -1
  249. package/slider/lib/slider.js.map +1 -1
  250. package/switch/lib/switch-styles.css.js +1 -1
  251. package/switch/lib/switch-styles.css.js.map +1 -1
  252. package/textfield/lib/_filled-text-field.scss +1 -7
  253. package/textfield/lib/_outlined-text-field.scss +1 -7
  254. package/textfield/lib/filled-styles.css.js +1 -1
  255. package/textfield/lib/filled-styles.css.js.map +1 -1
  256. package/textfield/lib/outlined-styles.css.js +1 -1
  257. package/textfield/lib/outlined-styles.css.js.map +1 -1
  258. package/tokens/_index.scss +104 -2
  259. package/tokens/_md-comp-assist-chip.scss +123 -0
  260. package/tokens/_md-comp-badge.scss +41 -0
  261. package/tokens/_md-comp-banner.scss +23 -0
  262. package/tokens/_md-comp-bottom-app-bar.scss +21 -0
  263. package/tokens/_md-comp-carousel-item.scss +23 -0
  264. package/tokens/_md-comp-checkbox.scss +21 -0
  265. package/tokens/_md-comp-circular-progress-indicator.scss +37 -0
  266. package/tokens/_md-comp-data-table.scss +23 -0
  267. package/tokens/_md-comp-date-input-modal.scss +23 -0
  268. package/tokens/_md-comp-date-picker-docked.scss +25 -0
  269. package/tokens/_md-comp-date-picker-modal.scss +25 -0
  270. package/tokens/_md-comp-dialog.scss +52 -0
  271. package/tokens/_md-comp-divider.scss +17 -0
  272. package/tokens/_md-comp-elevated-button.scss +118 -0
  273. package/tokens/_md-comp-elevated-card.scss +23 -0
  274. package/tokens/_md-comp-elevation.scss +28 -0
  275. package/tokens/_md-comp-extended-fab-branded.scss +45 -0
  276. package/tokens/_md-comp-extended-fab-primary.scss +45 -0
  277. package/tokens/_md-comp-extended-fab-secondary.scss +48 -0
  278. package/tokens/_md-comp-extended-fab-surface.scss +45 -0
  279. package/tokens/_md-comp-extended-fab-tertiary.scss +48 -0
  280. package/tokens/_md-comp-fab-branded-large.scss +23 -0
  281. package/tokens/_md-comp-fab-branded.scss +23 -0
  282. package/tokens/_md-comp-fab-primary-large.scss +23 -0
  283. package/tokens/_md-comp-fab-primary-small.scss +23 -0
  284. package/tokens/_md-comp-fab-primary.scss +23 -0
  285. package/tokens/_md-comp-fab-secondary-large.scss +23 -0
  286. package/tokens/_md-comp-fab-secondary-small.scss +23 -0
  287. package/tokens/_md-comp-fab-secondary.scss +23 -0
  288. package/tokens/_md-comp-fab-surface-large.scss +23 -0
  289. package/tokens/_md-comp-fab-surface-small.scss +23 -0
  290. package/tokens/_md-comp-fab-surface.scss +23 -0
  291. package/tokens/_md-comp-fab-tertiary-large.scss +23 -0
  292. package/tokens/_md-comp-fab-tertiary-small.scss +23 -0
  293. package/tokens/_md-comp-fab-tertiary.scss +23 -0
  294. package/tokens/_md-comp-filled-autocomplete.scss +25 -0
  295. package/tokens/_md-comp-filled-button.scss +118 -0
  296. package/tokens/_md-comp-filled-card.scss +23 -0
  297. package/tokens/_md-comp-filled-icon-button.scss +21 -0
  298. package/tokens/_md-comp-filled-menu-button.scss +25 -0
  299. package/tokens/_md-comp-filled-select.scss +25 -0
  300. package/tokens/_md-comp-filled-text-field.scss +55 -0
  301. package/tokens/_md-comp-filled-tonal-button.scss +119 -0
  302. package/tokens/_md-comp-filled-tonal-icon-button.scss +24 -0
  303. package/tokens/_md-comp-filter-chip.scss +228 -0
  304. package/tokens/_md-comp-focus-ring.scss +46 -0
  305. package/tokens/_md-comp-full-screen-dialog.scss +25 -0
  306. package/tokens/_md-comp-icon-button.scss +21 -0
  307. package/tokens/_md-comp-input-chip.scss +221 -0
  308. package/tokens/_md-comp-linear-progress-indicator.scss +22 -0
  309. package/tokens/_md-comp-list.scss +75 -0
  310. package/tokens/_md-comp-menu.scss +21 -0
  311. package/tokens/_md-comp-navigation-bar.scss +25 -0
  312. package/tokens/_md-comp-navigation-drawer.scss +25 -0
  313. package/tokens/_md-comp-navigation-rail.scss +25 -0
  314. package/tokens/_md-comp-outlined-autocomplete.scss +28 -0
  315. package/tokens/_md-comp-outlined-button.scss +114 -0
  316. package/tokens/_md-comp-outlined-card.scss +23 -0
  317. package/tokens/_md-comp-outlined-icon-button.scss +21 -0
  318. package/tokens/_md-comp-outlined-menu-button.scss +23 -0
  319. package/tokens/_md-comp-outlined-segmented-button.scss +47 -0
  320. package/tokens/_md-comp-outlined-select.scss +25 -0
  321. package/tokens/_md-comp-outlined-text-field.scss +53 -0
  322. package/tokens/_md-comp-plain-tooltip.scss +21 -0
  323. package/tokens/_md-comp-primary-navigation-tab.scss +50 -0
  324. package/tokens/_md-comp-radio-button.scss +19 -0
  325. package/tokens/_md-comp-rich-tooltip.scss +25 -0
  326. package/tokens/_md-comp-scrim.scss +17 -0
  327. package/tokens/_md-comp-search-bar.scss +25 -0
  328. package/tokens/_md-comp-search-view.scss +23 -0
  329. package/tokens/_md-comp-secondary-navigation-tab.scss +49 -0
  330. package/tokens/_md-comp-sheet-bottom.scss +21 -0
  331. package/tokens/_md-comp-sheet-floating.scss +21 -0
  332. package/tokens/_md-comp-sheet-side.scss +25 -0
  333. package/tokens/_md-comp-slider.scss +47 -0
  334. package/tokens/_md-comp-snackbar.scss +25 -0
  335. package/tokens/_md-comp-standard-menu-button.scss +23 -0
  336. package/tokens/_md-comp-suggestion-chip.scss +123 -0
  337. package/tokens/_md-comp-switch.scss +21 -0
  338. package/tokens/_md-comp-test-table.scss +31 -0
  339. package/tokens/_md-comp-text-button.scss +107 -0
  340. package/tokens/_md-comp-time-input.scss +25 -0
  341. package/tokens/_md-comp-time-picker.scss +25 -0
  342. package/tokens/_md-comp-top-app-bar-large.scss +23 -0
  343. package/tokens/_md-comp-top-app-bar-medium.scss +23 -0
  344. package/tokens/_md-comp-top-app-bar-small-centered.scss +26 -0
  345. package/tokens/_md-comp-top-app-bar-small.scss +23 -0
  346. package/tokens/_md-ref-palette.scss +12 -0
  347. package/tokens/_md-ref-typeface.scss +34 -0
  348. package/tokens/_md-sys-color.scss +25 -0
  349. package/tokens/_md-sys-elevation.scss +30 -0
  350. package/tokens/_md-sys-motion.scss +12 -0
  351. package/tokens/_md-sys-shape.scss +12 -0
  352. package/tokens/_md-sys-state.scss +12 -0
  353. package/tokens/_md-sys-typescale.scss +51 -0
  354. package/tokens/_values.scss +111 -0
  355. package/tokens/{v0_161 → v0_172}/_md-comp-assist-chip.scss +3 -4
  356. package/tokens/{v0_160 → v0_172}/_md-comp-badge.scss +1 -1
  357. package/tokens/{v0_160 → v0_172}/_md-comp-banner.scss +2 -4
  358. package/tokens/{v0_160 → v0_172}/_md-comp-bottom-app-bar.scss +3 -5
  359. package/tokens/{v0_160 → v0_172}/_md-comp-carousel-item.scss +1 -3
  360. package/tokens/{v0_161 → v0_172}/_md-comp-checkbox.scss +1 -1
  361. package/tokens/{v0_161 → v0_172}/_md-comp-circular-progress-indicator.scss +1 -1
  362. package/tokens/{v0_160 → v0_172}/_md-comp-data-table.scss +2 -2
  363. package/tokens/{v0_161 → v0_172}/_md-comp-date-input-modal.scss +2 -4
  364. package/tokens/{v0_161 → v0_172}/_md-comp-date-picker-docked.scss +2 -4
  365. package/tokens/{v0_161 → v0_172}/_md-comp-date-picker-modal.scss +2 -4
  366. package/tokens/{v0_160 → v0_172}/_md-comp-dialog.scss +2 -4
  367. package/tokens/{v0_161 → v0_172}/_md-comp-divider.scss +1 -1
  368. package/tokens/{v0_160 → v0_172}/_md-comp-elevated-button.scss +2 -4
  369. package/tokens/{v0_160 → v0_172}/_md-comp-elevated-card.scss +2 -4
  370. package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-branded.scss +4 -4
  371. package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-primary.scss +1 -1
  372. package/tokens/{v0_160 → v0_172}/_md-comp-extended-fab-secondary.scss +1 -1
  373. package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-surface.scss +4 -4
  374. package/tokens/{v0_161 → v0_172}/_md-comp-extended-fab-tertiary.scss +1 -1
  375. package/tokens/{v0_161 → v0_172}/_md-comp-fab-branded-large.scss +4 -4
  376. package/tokens/{v0_160 → v0_172}/_md-comp-fab-branded.scss +4 -4
  377. package/tokens/{v0_161 → v0_172}/_md-comp-fab-primary-large.scss +1 -1
  378. package/tokens/{v0_161 → v0_172}/_md-comp-fab-primary-small.scss +1 -1
  379. package/tokens/{v0_160 → v0_172}/_md-comp-fab-primary.scss +1 -1
  380. package/tokens/{v0_161 → v0_172}/_md-comp-fab-secondary-large.scss +1 -1
  381. package/tokens/{v0_161 → v0_172}/_md-comp-fab-secondary-small.scss +1 -1
  382. package/tokens/{v0_160 → v0_172}/_md-comp-fab-secondary.scss +1 -1
  383. package/tokens/{v0_160 → v0_172}/_md-comp-fab-surface-large.scss +4 -4
  384. package/tokens/{v0_161 → v0_172}/_md-comp-fab-surface-small.scss +4 -4
  385. package/tokens/{v0_161 → v0_172}/_md-comp-fab-surface.scss +4 -4
  386. package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary-large.scss +1 -1
  387. package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary-small.scss +1 -1
  388. package/tokens/{v0_160 → v0_172}/_md-comp-fab-tertiary.scss +1 -1
  389. package/tokens/{v0_161 → v0_172}/_md-comp-filled-autocomplete.scss +4 -6
  390. package/tokens/{v0_161 → v0_172}/_md-comp-filled-button.scss +1 -1
  391. package/tokens/{v0_161 → v0_172}/_md-comp-filled-card.scss +3 -2
  392. package/tokens/{v0_161 → v0_172}/_md-comp-filled-icon-button.scss +2 -2
  393. package/tokens/{v0_161 → v0_172}/_md-comp-filled-menu-button.scss +1 -1
  394. package/tokens/{v0_161 → v0_172}/_md-comp-filled-select.scss +4 -6
  395. package/tokens/{v0_161 → v0_172}/_md-comp-filled-text-field.scss +3 -2
  396. package/tokens/{v0_161 → v0_172}/_md-comp-filled-tonal-button.scss +1 -1
  397. package/tokens/{v0_160 → v0_172}/_md-comp-filled-tonal-icon-button.scss +2 -2
  398. package/tokens/{v0_160 → v0_172}/_md-comp-filter-chip.scss +2 -4
  399. package/tokens/{v0_160 → v0_172}/_md-comp-full-screen-dialog.scss +3 -3
  400. package/tokens/{v0_160 → v0_172}/_md-comp-icon-button.scss +1 -1
  401. package/tokens/{v0_160 → v0_172}/_md-comp-input-chip.scss +1 -1
  402. package/tokens/{v0_160 → v0_172}/_md-comp-linear-progress-indicator.scss +2 -2
  403. package/tokens/{v0_160 → v0_172}/_md-comp-list.scss +1 -1
  404. package/tokens/{v0_161 → v0_172}/_md-comp-menu.scss +3 -5
  405. package/tokens/{v0_161 → v0_172}/_md-comp-navigation-bar.scss +2 -4
  406. package/tokens/{v0_161 → v0_172}/_md-comp-navigation-drawer.scss +4 -4
  407. package/tokens/{v0_160/_md-comp-navigation-bar.scss → v0_172/_md-comp-navigation-rail.scss} +9 -7
  408. package/tokens/{v0_160 → v0_172}/_md-comp-outlined-autocomplete.scss +4 -6
  409. package/tokens/{v0_161 → v0_172}/_md-comp-outlined-button.scss +1 -1
  410. package/tokens/{v0_161 → v0_172}/_md-comp-outlined-card.scss +1 -3
  411. package/tokens/{v0_161 → v0_172}/_md-comp-outlined-icon-button.scss +1 -1
  412. package/tokens/{v0_160 → v0_172}/_md-comp-outlined-menu-button.scss +1 -1
  413. package/tokens/{v0_160 → v0_172}/_md-comp-outlined-segmented-button.scss +1 -1
  414. package/tokens/{v0_160 → v0_172}/_md-comp-outlined-select.scss +4 -6
  415. package/tokens/{v0_161 → v0_172}/_md-comp-outlined-text-field.scss +1 -1
  416. package/tokens/{v0_161 → v0_172}/_md-comp-plain-tooltip.scss +1 -1
  417. package/tokens/{v0_160 → v0_172}/_md-comp-primary-navigation-tab.scss +1 -1
  418. package/tokens/{v0_160 → v0_172}/_md-comp-radio-button.scss +1 -1
  419. package/tokens/{v0_160 → v0_172}/_md-comp-rich-tooltip.scss +3 -5
  420. package/tokens/{v0_160 → v0_172}/_md-comp-scrim.scss +1 -1
  421. package/tokens/{v0_161 → v0_172}/_md-comp-search-bar.scss +2 -4
  422. package/tokens/{v0_161 → v0_172}/_md-comp-search-view.scss +2 -4
  423. package/tokens/{v0_160 → v0_172}/_md-comp-secondary-navigation-tab.scss +3 -3
  424. package/tokens/{v0_160 → v0_172}/_md-comp-sheet-bottom.scss +3 -4
  425. package/tokens/{v0_161 → v0_172}/_md-comp-sheet-floating.scss +3 -5
  426. package/tokens/{v0_161 → v0_172}/_md-comp-sheet-side.scss +4 -4
  427. package/tokens/{v0_160 → v0_172}/_md-comp-slider.scss +3 -2
  428. package/tokens/{v0_161 → v0_172}/_md-comp-snackbar.scss +1 -1
  429. package/tokens/{v0_161 → v0_172}/_md-comp-standard-menu-button.scss +1 -1
  430. package/tokens/{v0_161 → v0_172}/_md-comp-suggestion-chip.scss +3 -4
  431. package/tokens/{v0_161 → v0_172}/_md-comp-switch.scss +13 -11
  432. package/tokens/{v0_161 → v0_172}/_md-comp-text-button.scss +1 -1
  433. package/tokens/{v0_160 → v0_172}/_md-comp-time-input.scss +3 -4
  434. package/tokens/{v0_160 → v0_172}/_md-comp-time-picker.scss +5 -5
  435. package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-large.scss +1 -3
  436. package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-medium.scss +1 -3
  437. package/tokens/{v0_161 → v0_172}/_md-comp-top-app-bar-small-centered.scss +3 -1
  438. package/tokens/{v0_160 → v0_172}/_md-comp-top-app-bar-small.scss +3 -3
  439. package/tokens/{v0_161 → v0_172}/_md-ref-palette.scss +23 -23
  440. package/tokens/{v0_161 → v0_172}/_md-ref-typeface.scss +1 -1
  441. package/tokens/{v0_161 → v0_172}/_md-sys-color.scss +9 -9
  442. package/tokens/{v0_160 → v0_172}/_md-sys-elevation.scss +1 -1
  443. package/tokens/{v0_160 → v0_172}/_md-sys-motion.scss +1 -1
  444. package/tokens/{v0_160 → v0_172}/_md-sys-shape.scss +1 -1
  445. package/tokens/{v0_160 → v0_172}/_md-sys-state.scss +1 -1
  446. package/tokens/{v0_160 → v0_172}/_md-sys-typescale.scss +1 -1
  447. package/autocomplete/_filled-autocomplete.scss +0 -6
  448. package/autocomplete/_outlined-autocomplete.scss +0 -6
  449. package/autocomplete/autocomplete-item.d.ts +0 -19
  450. package/autocomplete/autocomplete-item.js +0 -22
  451. package/autocomplete/autocomplete-item.js.map +0 -1
  452. package/autocomplete/autocomplete-list.d.ts +0 -19
  453. package/autocomplete/autocomplete-list.js +0 -23
  454. package/autocomplete/autocomplete-list.js.map +0 -1
  455. package/autocomplete/autocomplete-surface.d.ts +0 -19
  456. package/autocomplete/autocomplete-surface.js +0 -23
  457. package/autocomplete/autocomplete-surface.js.map +0 -1
  458. package/autocomplete/filled-autocomplete.d.ts +0 -28
  459. package/autocomplete/filled-autocomplete.js +0 -46
  460. package/autocomplete/filled-autocomplete.js.map +0 -1
  461. package/autocomplete/lib/_filled-autocomplete.scss +0 -189
  462. package/autocomplete/lib/_outlined-autocomplete.scss +0 -178
  463. package/autocomplete/lib/_shared.scss +0 -25
  464. package/autocomplete/lib/autocomplete.d.ts +0 -54
  465. package/autocomplete/lib/autocomplete.js +0 -265
  466. package/autocomplete/lib/autocomplete.js.map +0 -1
  467. package/autocomplete/lib/autocompleteitem/autocomplete-item.d.ts +0 -11
  468. package/autocomplete/lib/autocompleteitem/autocomplete-item.js +0 -14
  469. package/autocomplete/lib/autocompleteitem/autocomplete-item.js.map +0 -1
  470. package/autocomplete/lib/autocompleteitem/harness.d.ts +0 -11
  471. package/autocomplete/lib/autocompleteitem/harness.js +0 -12
  472. package/autocomplete/lib/autocompleteitem/harness.js.map +0 -1
  473. package/autocomplete/lib/autocompletelist/_autocomplete-list.scss +0 -13
  474. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js +0 -9
  475. package/autocomplete/lib/autocompletelist/autocomplete-list-styles.css.js.map +0 -1
  476. package/autocomplete/lib/autocompletelist/autocomplete-list.d.ts +0 -14
  477. package/autocomplete/lib/autocompletelist/autocomplete-list.js +0 -21
  478. package/autocomplete/lib/autocompletelist/autocomplete-list.js.map +0 -1
  479. package/autocomplete/lib/autocompletelist/harness.d.ts +0 -11
  480. package/autocomplete/lib/autocompletelist/harness.js +0 -12
  481. package/autocomplete/lib/autocompletelist/harness.js.map +0 -1
  482. package/autocomplete/lib/autocompletesurface/_autocomplete-surface.scss +0 -13
  483. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js +0 -9
  484. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.js.map +0 -1
  485. package/autocomplete/lib/autocompletesurface/autocomplete-surface-styles.scss +0 -10
  486. package/autocomplete/lib/autocompletesurface/autocomplete-surface.d.ts +0 -13
  487. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js +0 -21
  488. package/autocomplete/lib/autocompletesurface/autocomplete-surface.js.map +0 -1
  489. package/autocomplete/lib/filled-styles.css.js +0 -9
  490. package/autocomplete/lib/filled-styles.css.js.map +0 -1
  491. package/autocomplete/lib/filled-styles.scss +0 -10
  492. package/autocomplete/lib/outlined-styles.css.js +0 -9
  493. package/autocomplete/lib/outlined-styles.css.js.map +0 -1
  494. package/autocomplete/lib/outlined-styles.scss +0 -10
  495. package/autocomplete/lib/shared-styles.css.js +0 -9
  496. package/autocomplete/lib/shared-styles.css.js.map +0 -1
  497. package/autocomplete/outlined-autocomplete.d.ts +0 -28
  498. package/autocomplete/outlined-autocomplete.js +0 -46
  499. package/autocomplete/outlined-autocomplete.js.map +0 -1
  500. package/button/elevated-link-button.d.ts +0 -36
  501. package/button/elevated-link-button.js +0 -41
  502. package/button/elevated-link-button.js.map +0 -1
  503. package/button/filled-link-button.d.ts +0 -34
  504. package/button/filled-link-button.js +0 -39
  505. package/button/filled-link-button.js.map +0 -1
  506. package/button/lib/elevated-link-button.d.ts +0 -13
  507. package/button/lib/elevated-link-button.js +0 -21
  508. package/button/lib/elevated-link-button.js.map +0 -1
  509. package/button/lib/filled-link-button.d.ts +0 -14
  510. package/button/lib/filled-link-button.js +0 -22
  511. package/button/lib/filled-link-button.js.map +0 -1
  512. package/button/lib/link-button.d.ts +0 -24
  513. package/button/lib/link-button.js +0 -59
  514. package/button/lib/link-button.js.map +0 -1
  515. package/button/lib/outlined-link-button.d.ts +0 -12
  516. package/button/lib/outlined-link-button.js +0 -20
  517. package/button/lib/outlined-link-button.js.map +0 -1
  518. package/button/lib/text-link-button.d.ts +0 -10
  519. package/button/lib/text-link-button.js +0 -16
  520. package/button/lib/text-link-button.js.map +0 -1
  521. package/button/lib/tonal-link-button.d.ts +0 -14
  522. package/button/lib/tonal-link-button.js +0 -22
  523. package/button/lib/tonal-link-button.js.map +0 -1
  524. package/button/outlined-link-button.d.ts +0 -36
  525. package/button/outlined-link-button.js +0 -40
  526. package/button/outlined-link-button.js.map +0 -1
  527. package/button/text-link-button.d.ts +0 -34
  528. package/button/text-link-button.js +0 -38
  529. package/button/text-link-button.js.map +0 -1
  530. package/button/tonal-link-button.d.ts +0 -35
  531. package/button/tonal-link-button.js +0 -40
  532. package/button/tonal-link-button.js.map +0 -1
  533. package/chips/action/delete-action.d.ts +0 -18
  534. package/chips/action/delete-action.js +0 -20
  535. package/chips/action/delete-action.js.map +0 -1
  536. package/chips/action/lib/action.d.ts +0 -47
  537. package/chips/action/lib/action.js +0 -162
  538. package/chips/action/lib/action.js.map +0 -1
  539. package/chips/action/lib/constants.d.ts +0 -62
  540. package/chips/action/lib/constants.js +0 -69
  541. package/chips/action/lib/constants.js.map +0 -1
  542. package/chips/action/lib/delete-action.d.ts +0 -20
  543. package/chips/action/lib/delete-action.js +0 -65
  544. package/chips/action/lib/delete-action.js.map +0 -1
  545. package/chips/action/lib/events.d.ts +0 -14
  546. package/chips/action/lib/events.js +0 -16
  547. package/chips/action/lib/events.js.map +0 -1
  548. package/chips/action/lib/link-action.d.ts +0 -19
  549. package/chips/action/lib/link-action.js +0 -55
  550. package/chips/action/lib/link-action.js.map +0 -1
  551. package/chips/action/lib/presentational-action.d.ts +0 -15
  552. package/chips/action/lib/presentational-action.js +0 -30
  553. package/chips/action/lib/presentational-action.js.map +0 -1
  554. package/chips/action/lib/primary-action.d.ts +0 -28
  555. package/chips/action/lib/primary-action.js +0 -88
  556. package/chips/action/lib/primary-action.js.map +0 -1
  557. package/chips/action/lib/selectable-action.d.ts +0 -17
  558. package/chips/action/lib/selectable-action.js +0 -67
  559. package/chips/action/lib/selectable-action.js.map +0 -1
  560. package/chips/action/lib/types.d.ts +0 -23
  561. package/chips/action/lib/types.js +0 -7
  562. package/chips/action/lib/types.js.map +0 -1
  563. package/chips/action/link-action.d.ts +0 -18
  564. package/chips/action/link-action.js +0 -20
  565. package/chips/action/link-action.js.map +0 -1
  566. package/chips/action/presentational-action.d.ts +0 -18
  567. package/chips/action/presentational-action.js +0 -20
  568. package/chips/action/presentational-action.js.map +0 -1
  569. package/chips/action/primary-action.d.ts +0 -18
  570. package/chips/action/primary-action.js +0 -20
  571. package/chips/action/primary-action.js.map +0 -1
  572. package/chips/action/selectable-action.d.ts +0 -18
  573. package/chips/action/selectable-action.js +0 -20
  574. package/chips/action/selectable-action.js.map +0 -1
  575. package/chips/chip/lib/_assist-chip-theme.scss +0 -99
  576. package/chips/chip/lib/_chip-theme.scss +0 -1285
  577. package/chips/chip/lib/_chip.scss +0 -444
  578. package/chips/chip/lib/_filter-chip-theme.scss +0 -130
  579. package/chips/chip/lib/_input-chip-theme.scss +0 -91
  580. package/chips/chip/lib/_suggestion-chip-theme.scss +0 -92
  581. package/chips/chip/lib/action-chip.d.ts +0 -18
  582. package/chips/chip/lib/action-chip.js +0 -39
  583. package/chips/chip/lib/action-chip.js.map +0 -1
  584. package/chips/chip/lib/adapter.d.ts +0 -50
  585. package/chips/chip/lib/adapter.js +0 -7
  586. package/chips/chip/lib/adapter.js.map +0 -1
  587. package/chips/chip/lib/animationframe.d.ts +0 -31
  588. package/chips/chip/lib/animationframe.js +0 -66
  589. package/chips/chip/lib/animationframe.js.map +0 -1
  590. package/chips/chip/lib/chip.d.ts +0 -43
  591. package/chips/chip/lib/chip.js +0 -134
  592. package/chips/chip/lib/chip.js.map +0 -1
  593. package/chips/chip/lib/constants.d.ts +0 -43
  594. package/chips/chip/lib/constants.js +0 -48
  595. package/chips/chip/lib/constants.js.map +0 -1
  596. package/chips/chip/lib/foundation.d.ts +0 -41
  597. package/chips/chip/lib/foundation.js +0 -255
  598. package/chips/chip/lib/foundation.js.map +0 -1
  599. package/chips/chip/lib/link-chip.d.ts +0 -21
  600. package/chips/chip/lib/link-chip.js +0 -53
  601. package/chips/chip/lib/link-chip.js.map +0 -1
  602. package/chips/chip/lib/presentational-chip.d.ts +0 -18
  603. package/chips/chip/lib/presentational-chip.js +0 -39
  604. package/chips/chip/lib/presentational-chip.js.map +0 -1
  605. package/chips/chip/lib/selectable-chip.d.ts +0 -22
  606. package/chips/chip/lib/selectable-chip.js +0 -57
  607. package/chips/chip/lib/selectable-chip.js.map +0 -1
  608. package/chips/chip/lib/types.d.ts +0 -42
  609. package/chips/chip/lib/types.js +0 -7
  610. package/chips/chip/lib/types.js.map +0 -1
  611. package/chips/chipset/lib/_chip-set-theme.scss +0 -50
  612. package/chips/chipset/lib/_chip-set.scss +0 -48
  613. package/chips/chipset/lib/adapter.d.ts +0 -45
  614. package/chips/chipset/lib/adapter.js +0 -7
  615. package/chips/chipset/lib/adapter.js.map +0 -1
  616. package/chips/chipset/lib/constants.d.ts +0 -26
  617. package/chips/chipset/lib/constants.js +0 -30
  618. package/chips/chipset/lib/constants.js.map +0 -1
  619. package/chips/chipset/lib/foundation.d.ts +0 -68
  620. package/chips/chipset/lib/foundation.js +0 -314
  621. package/chips/chipset/lib/foundation.js.map +0 -1
  622. package/chips/chipset/lib/types.d.ts +0 -41
  623. package/chips/chipset/lib/types.js +0 -7
  624. package/chips/chipset/lib/types.js.map +0 -1
  625. package/elevation/lib/_md-comp-elevation.scss +0 -27
  626. package/focus/lib/_md-comp-focus-ring.scss +0 -31
  627. package/iconbutton/filled-icon-button-toggle.d.ts +0 -31
  628. package/iconbutton/filled-icon-button-toggle.js +0 -40
  629. package/iconbutton/filled-icon-button-toggle.js.map +0 -1
  630. package/iconbutton/filled-link-icon-button.d.ts +0 -31
  631. package/iconbutton/filled-link-icon-button.js +0 -39
  632. package/iconbutton/filled-link-icon-button.js.map +0 -1
  633. package/iconbutton/filled-tonal-icon-button-toggle.d.ts +0 -31
  634. package/iconbutton/filled-tonal-icon-button-toggle.js +0 -40
  635. package/iconbutton/filled-tonal-icon-button-toggle.js.map +0 -1
  636. package/iconbutton/filled-tonal-link-icon-button.d.ts +0 -31
  637. package/iconbutton/filled-tonal-link-icon-button.js +0 -39
  638. package/iconbutton/filled-tonal-link-icon-button.js.map +0 -1
  639. package/iconbutton/lib/icon-button-toggle.d.ts +0 -34
  640. package/iconbutton/lib/icon-button-toggle.js +0 -87
  641. package/iconbutton/lib/icon-button-toggle.js.map +0 -1
  642. package/iconbutton/lib/link-icon-button.d.ts +0 -23
  643. package/iconbutton/lib/link-icon-button.js +0 -58
  644. package/iconbutton/lib/link-icon-button.js.map +0 -1
  645. package/iconbutton/outlined-icon-button-toggle.d.ts +0 -31
  646. package/iconbutton/outlined-icon-button-toggle.js +0 -39
  647. package/iconbutton/outlined-icon-button-toggle.js.map +0 -1
  648. package/iconbutton/outlined-link-icon-button.d.ts +0 -31
  649. package/iconbutton/outlined-link-icon-button.js +0 -39
  650. package/iconbutton/outlined-link-icon-button.js.map +0 -1
  651. package/iconbutton/standard-icon-button-toggle.d.ts +0 -31
  652. package/iconbutton/standard-icon-button-toggle.js +0 -39
  653. package/iconbutton/standard-icon-button-toggle.js.map +0 -1
  654. package/iconbutton/standard-link-icon-button.d.ts +0 -31
  655. package/iconbutton/standard-link-icon-button.js +0 -39
  656. package/iconbutton/standard-link-icon-button.js.map +0 -1
  657. package/menusurface/_menu-surface.scss +0 -6
  658. package/menusurface/lib/_md-comp-menu-surface.scss +0 -31
  659. package/menusurface/lib/_menu-surface.scss +0 -122
  660. package/menusurface/lib/adapter.d.ts +0 -46
  661. package/menusurface/lib/adapter.js +0 -7
  662. package/menusurface/lib/adapter.js.map +0 -1
  663. package/menusurface/lib/constants.d.ts +0 -71
  664. package/menusurface/lib/constants.js +0 -83
  665. package/menusurface/lib/constants.js.map +0 -1
  666. package/menusurface/lib/foundation.d.ts +0 -176
  667. package/menusurface/lib/foundation.js +0 -544
  668. package/menusurface/lib/foundation.js.map +0 -1
  669. package/menusurface/lib/menu-surface-styles.css.js +0 -9
  670. package/menusurface/lib/menu-surface-styles.css.js.map +0 -1
  671. package/menusurface/lib/menu-surface.d.ts +0 -62
  672. package/menusurface/lib/menu-surface.js +0 -347
  673. package/menusurface/lib/menu-surface.js.map +0 -1
  674. package/menusurface/lib/types.d.ts +0 -19
  675. package/menusurface/lib/types.js +0 -7
  676. package/menusurface/lib/types.js.map +0 -1
  677. package/menusurface/menu-surface.d.ts +0 -14
  678. package/menusurface/menu-surface.js +0 -17
  679. package/menusurface/menu-surface.js.map +0 -1
  680. package/sass/_elevation.scss +0 -159
  681. package/sass/_resolvers.scss +0 -16
  682. package/sass/_typography.scss +0 -39
  683. package/tokens/v0_160/_md-comp-assist-chip.scss +0 -109
  684. package/tokens/v0_160/_md-comp-checkbox.scss +0 -126
  685. package/tokens/v0_160/_md-comp-circular-progress-indicator.scss +0 -39
  686. package/tokens/v0_160/_md-comp-date-input-modal.scss +0 -89
  687. package/tokens/v0_160/_md-comp-date-picker-docked.scss +0 -246
  688. package/tokens/v0_160/_md-comp-date-picker-modal.scss +0 -305
  689. package/tokens/v0_160/_md-comp-divider.scss +0 -25
  690. package/tokens/v0_160/_md-comp-extended-fab-branded.scss +0 -86
  691. package/tokens/v0_160/_md-comp-extended-fab-primary.scss +0 -94
  692. package/tokens/v0_160/_md-comp-extended-fab-surface.scss +0 -90
  693. package/tokens/v0_160/_md-comp-extended-fab-tertiary.scss +0 -95
  694. package/tokens/v0_160/_md-comp-fab-branded-large.scss +0 -60
  695. package/tokens/v0_160/_md-comp-fab-primary-large.scss +0 -65
  696. package/tokens/v0_160/_md-comp-fab-primary-small.scss +0 -65
  697. package/tokens/v0_160/_md-comp-fab-secondary-large.scss +0 -66
  698. package/tokens/v0_160/_md-comp-fab-secondary-small.scss +0 -66
  699. package/tokens/v0_160/_md-comp-fab-surface-small.scss +0 -64
  700. package/tokens/v0_160/_md-comp-fab-surface.scss +0 -64
  701. package/tokens/v0_160/_md-comp-filled-autocomplete.scss +0 -267
  702. package/tokens/v0_160/_md-comp-filled-button.scss +0 -89
  703. package/tokens/v0_160/_md-comp-filled-card.scss +0 -58
  704. package/tokens/v0_160/_md-comp-filled-icon-button.scss +0 -79
  705. package/tokens/v0_160/_md-comp-filled-menu-button.scss +0 -98
  706. package/tokens/v0_160/_md-comp-filled-select.scss +0 -272
  707. package/tokens/v0_160/_md-comp-filled-text-field.scss +0 -189
  708. package/tokens/v0_160/_md-comp-filled-tonal-button.scss +0 -99
  709. package/tokens/v0_160/_md-comp-menu.scss +0 -121
  710. package/tokens/v0_160/_md-comp-navigation-drawer.scss +0 -162
  711. package/tokens/v0_160/_md-comp-navigation-rail.scss +0 -131
  712. package/tokens/v0_160/_md-comp-outlined-button.scss +0 -84
  713. package/tokens/v0_160/_md-comp-outlined-card.scss +0 -65
  714. package/tokens/v0_160/_md-comp-outlined-icon-button.scss +0 -79
  715. package/tokens/v0_160/_md-comp-outlined-text-field.scss +0 -171
  716. package/tokens/v0_160/_md-comp-plain-tooltip.scss +0 -55
  717. package/tokens/v0_160/_md-comp-search-bar.scss +0 -99
  718. package/tokens/v0_160/_md-comp-search-view.scss +0 -93
  719. package/tokens/v0_160/_md-comp-sheet-floating.scss +0 -34
  720. package/tokens/v0_160/_md-comp-sheet-side.scss +0 -91
  721. package/tokens/v0_160/_md-comp-snackbar.scss +0 -127
  722. package/tokens/v0_160/_md-comp-standard-menu-button.scss +0 -98
  723. package/tokens/v0_160/_md-comp-suggestion-chip.scss +0 -125
  724. package/tokens/v0_160/_md-comp-switch.scss +0 -136
  725. package/tokens/v0_160/_md-comp-text-button.scss +0 -77
  726. package/tokens/v0_160/_md-comp-top-app-bar-large.scss +0 -63
  727. package/tokens/v0_160/_md-comp-top-app-bar-medium.scss +0 -63
  728. package/tokens/v0_160/_md-comp-top-app-bar-small-centered.scss +0 -66
  729. package/tokens/v0_160/_md-ref-palette.scss +0 -107
  730. package/tokens/v0_160/_md-ref-typeface.scss +0 -21
  731. package/tokens/v0_160/_md-sys-color.scss +0 -904
  732. package/tokens/v0_161/_index.scss +0 -107
  733. package/tokens/v0_161/_md-comp-badge.scss +0 -58
  734. package/tokens/v0_161/_md-comp-banner.scss +0 -75
  735. package/tokens/v0_161/_md-comp-bottom-app-bar.scss +0 -35
  736. package/tokens/v0_161/_md-comp-carousel-item.scss +0 -65
  737. package/tokens/v0_161/_md-comp-data-table.scss +0 -96
  738. package/tokens/v0_161/_md-comp-dialog.scss +0 -123
  739. package/tokens/v0_161/_md-comp-elevated-button.scss +0 -91
  740. package/tokens/v0_161/_md-comp-elevated-card.scss +0 -59
  741. package/tokens/v0_161/_md-comp-extended-fab-secondary.scss +0 -95
  742. package/tokens/v0_161/_md-comp-fab-branded.scss +0 -60
  743. package/tokens/v0_161/_md-comp-fab-primary.scss +0 -65
  744. package/tokens/v0_161/_md-comp-fab-secondary.scss +0 -66
  745. package/tokens/v0_161/_md-comp-fab-surface-large.scss +0 -64
  746. package/tokens/v0_161/_md-comp-fab-tertiary-large.scss +0 -66
  747. package/tokens/v0_161/_md-comp-fab-tertiary-small.scss +0 -66
  748. package/tokens/v0_161/_md-comp-fab-tertiary.scss +0 -66
  749. package/tokens/v0_161/_md-comp-filled-tonal-icon-button.scss +0 -86
  750. package/tokens/v0_161/_md-comp-filter-chip.scss +0 -209
  751. package/tokens/v0_161/_md-comp-full-screen-dialog.scss +0 -111
  752. package/tokens/v0_161/_md-comp-icon-button.scss +0 -70
  753. package/tokens/v0_161/_md-comp-input-chip.scss +0 -184
  754. package/tokens/v0_161/_md-comp-linear-progress-indicator.scss +0 -41
  755. package/tokens/v0_161/_md-comp-list.scss +0 -248
  756. package/tokens/v0_161/_md-comp-navigation-rail.scss +0 -131
  757. package/tokens/v0_161/_md-comp-outlined-autocomplete.scss +0 -257
  758. package/tokens/v0_161/_md-comp-outlined-menu-button.scss +0 -94
  759. package/tokens/v0_161/_md-comp-outlined-segmented-button.scss +0 -112
  760. package/tokens/v0_161/_md-comp-outlined-select.scss +0 -262
  761. package/tokens/v0_161/_md-comp-primary-navigation-tab.scss +0 -121
  762. package/tokens/v0_161/_md-comp-radio-button.scss +0 -68
  763. package/tokens/v0_161/_md-comp-rich-tooltip.scss +0 -121
  764. package/tokens/v0_161/_md-comp-scrim.scss +0 -25
  765. package/tokens/v0_161/_md-comp-secondary-navigation-tab.scss +0 -84
  766. package/tokens/v0_161/_md-comp-sheet-bottom.scss +0 -45
  767. package/tokens/v0_161/_md-comp-slider.scss +0 -114
  768. package/tokens/v0_161/_md-comp-time-input.scss +0 -218
  769. package/tokens/v0_161/_md-comp-time-picker.scss +0 -264
  770. package/tokens/v0_161/_md-comp-top-app-bar-small.scss +0 -64
  771. package/tokens/v0_161/_md-sys-elevation.scss +0 -21
  772. package/tokens/v0_161/_md-sys-motion.scss +0 -53
  773. package/tokens/v0_161/_md-sys-shape.scss +0 -30
  774. package/tokens/v0_161/_md-sys-state.scss +0 -19
  775. package/tokens/v0_161/_md-sys-typescale.scss +0 -284
  776. package/tokens/v0_161/index.test.css.js +0 -9
  777. package/tokens/v0_161/index.test.css.js.map +0 -1
  778. package/tokens/v0_161/index.test.scss +0 -584
  779. package/tokens/v0_161/lib.test.css.d.ts +0 -1
  780. package/tokens/v0_161/lib.test.css.js +0 -9
  781. package/tokens/v0_161/lib.test.css.js.map +0 -1
  782. package/tokens/v0_161/lib.test.scss +0 -663
  783. /package/{autocomplete/lib/autocompletelist/autocomplete-list-styles.css.d.ts → chips/lib/assist-styles.css.d.ts} +0 -0
  784. /package/{autocomplete → chips}/lib/shared-styles.css.d.ts +0 -0
  785. /package/{autocomplete/lib/autocompletesurface/autocomplete-surface-styles.css.d.ts → chips/lib/suggestion-styles.css.d.ts} +0 -0
  786. /package/{autocomplete/lib/filled-styles.css.d.ts → circularprogress/lib/circular-progress-styles.css.d.ts} +0 -0
  787. /package/{autocomplete/lib/outlined-styles.css.d.ts → list/lib/listitem/forced-colors-styles.css.d.ts} +0 -0
  788. /package/{menusurface/lib/menu-surface-styles.css.d.ts → menu/lib/forced-colors-styles.css.d.ts} +0 -0
  789. /package/{tokens/v0_160/index.test.css.d.ts → menu/lib/menuitem/forced-colors-styles.css.d.ts} +0 -0
  790. /package/tokens/{v0_160 → v0_172}/_index.scss +0 -0
  791. /package/tokens/{v0_161 → v0_172}/index.test.css.d.ts +0 -0
  792. /package/tokens/{v0_160 → v0_172}/index.test.css.js +0 -0
  793. /package/tokens/{v0_160 → v0_172}/index.test.css.js.map +0 -0
  794. /package/tokens/{v0_160 → v0_172}/index.test.scss +0 -0
  795. /package/tokens/{v0_160 → v0_172}/lib.test.css.d.ts +0 -0
  796. /package/tokens/{v0_160 → v0_172}/lib.test.css.js +0 -0
  797. /package/tokens/{v0_160 → v0_172}/lib.test.css.js.map +0 -0
  798. /package/tokens/{v0_160 → v0_172}/lib.test.scss +0 -0
@@ -1,92 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
-
7
- // go/keep-sorted start
8
- @use 'sass:map';
9
- // go/keep-sorted end
10
- // go/keep-sorted start
11
- @use '../../../sass/resolvers';
12
- @use '../../../sass/theme';
13
- @use './chip-theme';
14
- // go/keep-sorted end
15
-
16
- $_light-theme: (
17
- container-shape: null,
18
- container-height: null,
19
- flat-container-elevation: null,
20
- flat-outline-color: null,
21
- flat-outline-width: null,
22
- elevated-container-elevation: null,
23
- elevated-container-color: null,
24
- elevated-container-shadow-color: null,
25
- label-text-font: null,
26
- label-text-line-height: null,
27
- label-text-size: null,
28
- label-text-weight: null,
29
- label-text-tracking: null,
30
- label-text-color: null,
31
- flat-disabled-outline-color: null,
32
- flat-disabled-outline-opacity: null,
33
- disabled-label-text-color: null,
34
- disabled-label-text-opacity: null,
35
- elevated-disabled-container-elevation: null,
36
- elevated-disabled-container-color: null,
37
- elevated-disabled-container-opacity: null,
38
- hover-state-layer-color: null,
39
- hover-state-layer-opacity: null,
40
- hover-label-text-color: null,
41
- elevated-hover-container-elevation: null,
42
- focus-state-layer-color: null,
43
- focus-state-layer-opacity: null,
44
- focus-label-text-color: null,
45
- flat-focus-outline-color: null,
46
- elevated-focus-container-elevation: null,
47
- pressed-state-layer-color: null,
48
- pressed-state-layer-opacity: null,
49
- pressed-label-text-color: null,
50
- elevated-pressed-container-elevation: null,
51
- container-surface-tint-layer-color: null,
52
- );
53
-
54
- $_custom-property-prefix: 'suggestion-chip';
55
-
56
- @mixin theme($theme, $resolvers: resolvers.$material) {
57
- @include theme.validate-theme($_light-theme, $theme);
58
-
59
- // Resolve elevation.
60
- @each $key
61
- in (
62
- flat-container-elevation,
63
- elevated-container-elevation,
64
- elevated-disabled-container-elevation,
65
- elevated-hover-container-elevation,
66
- elevated-focus-container-elevation,
67
- elevated-pressed-container-elevation
68
- )
69
- {
70
- $value: map.get($theme, $key);
71
- @if $value {
72
- $theme: map.set(
73
- $theme,
74
- $key,
75
- meta.call(
76
- $elevation-resolver: map.get($resolvers, elevation),
77
- $elevation: $value,
78
- $shadow-color: map.get($theme, elevated-container-shadow-color),
79
- )
80
- );
81
- }
82
- }
83
-
84
- $theme: theme.create-theme-vars($theme, $_custom-property-prefix);
85
- @include theme.emit-theme-vars($theme);
86
- }
87
-
88
- @mixin theme-styles($theme, $resolvers: resolvers.$material) {
89
- @include theme.validate-theme($_light-theme, $theme);
90
- $theme: theme.create-theme-vars($theme, $_custom-property-prefix);
91
- @include chip-theme.theme-styles($theme, $resolvers: $resolvers);
92
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../action/primary-action.js';
7
- import { TemplateResult } from 'lit';
8
- import { Chip } from './chip.js';
9
- /** @soyCompatible */
10
- export declare class ActionChip extends Chip {
11
- /**
12
- * @soyTemplate
13
- * @soyAttributes attributes: .md3-chip
14
- */
15
- protected render(): TemplateResult;
16
- /** @soyTemplate */
17
- private renderPrimaryAction;
18
- }
@@ -1,39 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../action/primary-action.js';
7
- import { html } from 'lit';
8
- import { classMap } from 'lit/directives/class-map.js';
9
- import { Chip } from './chip.js';
10
- /** @soyCompatible */
11
- export class ActionChip extends Chip {
12
- /**
13
- * @soyTemplate
14
- * @soyAttributes attributes: .md3-chip
15
- */
16
- render() {
17
- return html `
18
- <span class="${classMap(this.getRootClasses())}" role="row">
19
- ${this.renderOverlay()}
20
- <span class="md3-chip__cell md3-chip__cell--primary" role="gridcell">
21
- ${this.renderPrimaryAction()}
22
- </span>
23
- ${this.renderDeleteAction()}
24
- </span>`;
25
- }
26
- /** @soyTemplate */
27
- renderPrimaryAction() {
28
- return html `
29
- <md-primary-action
30
- ?disabled=${this.disabled}
31
- ?isFocusable=${this.isFocusable}
32
- ?isTouchable=${this.isTouchable}
33
- .icon=${this.icon}
34
- .label=${this.label}
35
- .ariaLabel=${this.ariaLabel}>
36
- </md-primary-action>`;
37
- }
38
- }
39
- //# sourceMappingURL=action-chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"action-chip.js","sourceRoot":"","sources":["action-chip.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,gCAAgC,CAAC;AAExC,OAAO,EAAC,IAAI,EAAiB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,qBAAqB;AACrB,MAAM,OAAO,UAAW,SAAQ,IAAI;IAClC;;;OAGG;IACgB,MAAM;QACvB,OAAO,IAAI,CAAA;qBACM,QAAQ,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC;UAC1C,IAAI,CAAC,aAAa,EAAE;;YAElB,IAAI,CAAC,mBAAmB,EAAE;;UAE5B,IAAI,CAAC,kBAAkB,EAAE;cACrB,CAAC;IACb,CAAC;IAED,mBAAmB;IACX,mBAAmB;QACzB,OAAO,IAAI,CAAA;;sBAEO,IAAI,CAAC,QAAQ;yBACV,IAAI,CAAC,WAAW;yBAChB,IAAI,CAAC,WAAW;kBACvB,IAAI,CAAC,IAAI;mBACR,IAAI,CAAC,KAAK;uBACN,IAAI,CAAC,SAAS;2BACV,CAAC;IAC1B,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport '../../action/primary-action.js';\n\nimport {html, TemplateResult} from 'lit';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {Chip} from './chip.js';\n\n/** @soyCompatible */\nexport class ActionChip extends Chip {\n /**\n * @soyTemplate\n * @soyAttributes attributes: .md3-chip\n */\n protected override render(): TemplateResult {\n return html`\n <span class=\"${classMap(this.getRootClasses())}\" role=\"row\">\n ${this.renderOverlay()}\n <span class=\"md3-chip__cell md3-chip__cell--primary\" role=\"gridcell\">\n ${this.renderPrimaryAction()}\n </span>\n ${this.renderDeleteAction()}\n </span>`;\n }\n\n /** @soyTemplate */\n private renderPrimaryAction(): TemplateResult {\n return html`\n <md-primary-action\n ?disabled=${this.disabled}\n ?isFocusable=${this.isFocusable}\n ?isTouchable=${this.isTouchable}\n .icon=${this.icon}\n .label=${this.label}\n .ariaLabel=${this.ariaLabel}>\n </md-primary-action>`;\n }\n}\n\n"]}
@@ -1,50 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { MDCChipActionFocusBehavior, MDCChipActionType } from '../../action/lib/constants.js';
7
- import { MDCChipAttributes, MDCChipCssClasses, MDCChipEvents } from './constants.js';
8
- /**
9
- * Defines the shape of the adapter expected by the foundation.
10
- * Implement this adapter for your framework of choice to delegate updates to
11
- * the component in your framework of choice. See architecture documentation
12
- * for more details.
13
- * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md
14
- */
15
- export interface MDCChipAdapter {
16
- /** Adds the given class to the root element. */
17
- addClass(className: MDCChipCssClasses): void;
18
- /** Emits the given event with the given detail. */
19
- emitEvent<D extends object>(eventName: MDCChipEvents, eventDetail: D): void;
20
- /** Returns the child actions provided by the chip. */
21
- getActions(): MDCChipActionType[];
22
- /** Returns the value for the given attribute, if it exists. */
23
- getAttribute(attrName: MDCChipAttributes): string | null;
24
- /** Returns the ID of the root element. */
25
- getElementID(): string;
26
- /** Returns the offset width of the root element. */
27
- getOffsetWidth(): number;
28
- /** Returns true if the root element has the given class. */
29
- hasClass(className: MDCChipCssClasses): boolean;
30
- /** Proxies to the MDCChipAction#isSelectable method. */
31
- isActionSelectable(action: MDCChipActionType): boolean;
32
- /** Proxies to the MDCChipAction#isSelected method. */
33
- isActionSelected(action: MDCChipActionType): boolean;
34
- /** Proxies to the MDCChipAction#isFocusable method. */
35
- isActionFocusable(action: MDCChipActionType): boolean;
36
- /** Proxies to the MDCChipAction#isDisabled method. */
37
- isActionDisabled(action: MDCChipActionType): boolean;
38
- /** Returns true if the text direction is right-to-left. */
39
- isRTL(): boolean;
40
- /** Removes the given class from the root element. */
41
- removeClass(className: MDCChipCssClasses): void;
42
- /** Proxies to the MDCChipAction#setDisabled method. */
43
- setActionDisabled(action: MDCChipActionType, isDisabled: boolean): void;
44
- /** Proxies to the MDCChipAction#setFocus method. */
45
- setActionFocus(action: MDCChipActionType, behavior: MDCChipActionFocusBehavior): void;
46
- /** Proxies to the MDCChipAction#setSelected method. */
47
- setActionSelected(action: MDCChipActionType, isSelected: boolean): void;
48
- /** Sets the style property to the given value. */
49
- setStyleProperty(property: string, value: string): void;
50
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- export {};
7
- //# sourceMappingURL=adapter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"adapter.js","sourceRoot":"","sources":["adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {MDCChipActionFocusBehavior, MDCChipActionType} from '../../action/lib/constants.js';\n\nimport {MDCChipAttributes, MDCChipCssClasses, MDCChipEvents} from './constants.js';\n\n/**\n * Defines the shape of the adapter expected by the foundation.\n * Implement this adapter for your framework of choice to delegate updates to\n * the component in your framework of choice. See architecture documentation\n * for more details.\n * https://github.com/material-components/material-components-web/blob/master/docs/code/architecture.md\n */\nexport interface MDCChipAdapter {\n /** Adds the given class to the root element. */\n addClass(className: MDCChipCssClasses): void;\n\n /** Emits the given event with the given detail. */\n emitEvent<D extends object>(eventName: MDCChipEvents, eventDetail: D): void;\n\n /** Returns the child actions provided by the chip. */\n getActions(): MDCChipActionType[];\n\n /** Returns the value for the given attribute, if it exists. */\n getAttribute(attrName: MDCChipAttributes): string|null;\n\n /** Returns the ID of the root element. */\n getElementID(): string;\n\n /** Returns the offset width of the root element. */\n getOffsetWidth(): number;\n\n /** Returns true if the root element has the given class. */\n hasClass(className: MDCChipCssClasses): boolean;\n\n /** Proxies to the MDCChipAction#isSelectable method. */\n isActionSelectable(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isSelected method. */\n isActionSelected(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isFocusable method. */\n isActionFocusable(action: MDCChipActionType): boolean;\n\n /** Proxies to the MDCChipAction#isDisabled method. */\n isActionDisabled(action: MDCChipActionType): boolean;\n\n /** Returns true if the text direction is right-to-left. */\n isRTL(): boolean;\n\n /** Removes the given class from the root element. */\n removeClass(className: MDCChipCssClasses): void;\n\n /** Proxies to the MDCChipAction#setDisabled method. */\n setActionDisabled(action: MDCChipActionType, isDisabled: boolean): void;\n\n /** Proxies to the MDCChipAction#setFocus method. */\n setActionFocus(\n action: MDCChipActionType, behavior: MDCChipActionFocusBehavior): void;\n\n /** Proxies to the MDCChipAction#setSelected method. */\n setActionSelected(action: MDCChipActionType, isSelected: boolean): void;\n\n /** Sets the style property to the given value. */\n setStyleProperty(property: string, value: string): void;\n}\n"]}
@@ -1,31 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * AnimationFrame provides a user-friendly abstraction around requesting
8
- * and canceling animation frames.
9
- */
10
- export declare class AnimationFrame {
11
- private readonly rafIDs;
12
- /**
13
- * Requests an animation frame. Cancels any existing frame with the same key.
14
- * @param {string} key The key for this callback.
15
- * @param {FrameRequestCallback} callback The callback to be executed.
16
- */
17
- request(key: string, callback: FrameRequestCallback): void;
18
- /**
19
- * Cancels a queued callback with the given key.
20
- * @param {string} key The key for this callback.
21
- */
22
- cancel(key: string): void;
23
- /**
24
- * Cancels all queued callback.
25
- */
26
- cancelAll(): void;
27
- /**
28
- * Returns the queue of unexecuted callback keys.
29
- */
30
- getQueue(): string[];
31
- }
@@ -1,66 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- // TODO: Remove in favor of AnimationSignal
7
- /**
8
- * AnimationFrame provides a user-friendly abstraction around requesting
9
- * and canceling animation frames.
10
- */
11
- export class AnimationFrame {
12
- constructor() {
13
- this.rafIDs = new Map();
14
- }
15
- /**
16
- * Requests an animation frame. Cancels any existing frame with the same key.
17
- * @param {string} key The key for this callback.
18
- * @param {FrameRequestCallback} callback The callback to be executed.
19
- */
20
- request(key, callback) {
21
- this.cancel(key);
22
- const frameID = requestAnimationFrame((frame) => {
23
- this.rafIDs.delete(key);
24
- // Callback must come *after* the key is deleted so that nested calls to
25
- // request with the same key are not deleted.
26
- callback(frame);
27
- });
28
- this.rafIDs.set(key, frameID);
29
- }
30
- /**
31
- * Cancels a queued callback with the given key.
32
- * @param {string} key The key for this callback.
33
- */
34
- cancel(key) {
35
- const rafID = this.rafIDs.get(key);
36
- if (rafID) {
37
- cancelAnimationFrame(rafID);
38
- this.rafIDs.delete(key);
39
- }
40
- }
41
- /**
42
- * Cancels all queued callback.
43
- */
44
- cancelAll() {
45
- // Need to use forEach because it's the only iteration method supported
46
- // by IE11. Suppress the underscore because we don't need it.
47
- // tslint:disable-next-line:enforce-name-casing
48
- this.rafIDs.forEach((_, key) => {
49
- this.cancel(key);
50
- });
51
- }
52
- /**
53
- * Returns the queue of unexecuted callback keys.
54
- */
55
- getQueue() {
56
- const queue = [];
57
- // Need to use forEach because it's the only iteration method supported
58
- // by IE11. Suppress the underscore because we don't need it.
59
- // tslint:disable-next-line:enforce-name-casing
60
- this.rafIDs.forEach((_, key) => {
61
- queue.push(key);
62
- });
63
- return queue;
64
- }
65
- }
66
- //# sourceMappingURL=animationframe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"animationframe.js","sourceRoot":"","sources":["animationframe.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2CAA2C;AAC3C;;;GAGG;AACH,MAAM,OAAO,cAAc;IAA3B;QACmB,WAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;IAuDtD,CAAC;IArDC;;;;OAIG;IACH,OAAO,CAAC,GAAW,EAAE,QAA8B;QACjD,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjB,MAAM,OAAO,GAAG,qBAAqB,CAAC,CAAC,KAAK,EAAE,EAAE;YAC9C,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACxB,wEAAwE;YACxE,6CAA6C;YAC7C,QAAQ,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,GAAW;QAChB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,KAAK,EAAE;YACT,oBAAoB,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SACzB;IACH,CAAC;IAED;;OAEG;IACH,SAAS;QACP,uEAAuE;QACvE,6DAA6D;QAC7D,+CAA+C;QAC/C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC7B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,MAAM,KAAK,GAAa,EAAE,CAAC;QAC3B,uEAAuE;QACvE,6DAA6D;QAC7D,+CAA+C;QAC/C,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;YAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACf,CAAC;CACF","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n// TODO: Remove in favor of AnimationSignal\n/**\n * AnimationFrame provides a user-friendly abstraction around requesting\n * and canceling animation frames.\n */\nexport class AnimationFrame {\n private readonly rafIDs = new Map<string, number>();\n\n /**\n * Requests an animation frame. Cancels any existing frame with the same key.\n * @param {string} key The key for this callback.\n * @param {FrameRequestCallback} callback The callback to be executed.\n */\n request(key: string, callback: FrameRequestCallback) {\n this.cancel(key);\n const frameID = requestAnimationFrame((frame) => {\n this.rafIDs.delete(key);\n // Callback must come *after* the key is deleted so that nested calls to\n // request with the same key are not deleted.\n callback(frame);\n });\n this.rafIDs.set(key, frameID);\n }\n\n /**\n * Cancels a queued callback with the given key.\n * @param {string} key The key for this callback.\n */\n cancel(key: string) {\n const rafID = this.rafIDs.get(key);\n if (rafID) {\n cancelAnimationFrame(rafID);\n this.rafIDs.delete(key);\n }\n }\n\n /**\n * Cancels all queued callback.\n */\n cancelAll() {\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach((_, key) => {\n this.cancel(key);\n });\n }\n\n /**\n * Returns the queue of unexecuted callback keys.\n */\n getQueue(): string[] {\n const queue: string[] = [];\n // Need to use forEach because it's the only iteration method supported\n // by IE11. Suppress the underscore because we don't need it.\n // tslint:disable-next-line:enforce-name-casing\n this.rafIDs.forEach((_, key) => {\n queue.push(key);\n });\n return queue;\n }\n}\n"]}
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import '../../../elevation/elevation.js';
7
- import '../../action/delete-action.js';
8
- import { TemplateResult } from 'lit';
9
- import { ClassInfo } from 'lit/directives/class-map.js';
10
- import { ActionElement } from '../../../actionelement/action-element.js';
11
- /** Defines the border type of a chip. */
12
- export declare enum BorderType {
13
- ELEVATED = "ELEVATED",
14
- HAIRLINE = "HAIRLINE"
15
- }
16
- /** Defines the shape of the vertical edge of a chip. */
17
- export declare enum EdgeType {
18
- ROUNDED = "ROUNDED",
19
- STRAIGHT = "STRAIGHT"
20
- }
21
- /** @soyCompatible */
22
- export declare abstract class Chip extends ActionElement {
23
- isFocusable: boolean;
24
- isTouchable: boolean;
25
- disabled: boolean;
26
- hasAvatar: boolean;
27
- hasDeleteAction: boolean;
28
- icon: string;
29
- label: string;
30
- borderType: BorderType;
31
- edgeType: EdgeType;
32
- addedAnnouncement: string;
33
- removedAnnouncement: string;
34
- closeActionAriaLabel: string;
35
- /** @soyPrefixAttribute */
36
- ariaLabel: string;
37
- /** @soyTemplate */
38
- protected getRootClasses(): ClassInfo;
39
- /** @soyTemplate */
40
- protected renderOverlay(): TemplateResult;
41
- /** @soyTemplate */
42
- protected renderDeleteAction(): TemplateResult;
43
- }
@@ -1,134 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { __decorate, __metadata } from "tslib";
7
- import '../../../elevation/elevation.js';
8
- import '../../action/delete-action.js';
9
- import { html } from 'lit';
10
- import { property } from 'lit/decorators.js';
11
- import { ActionElement } from '../../../actionelement/action-element.js';
12
- import { ariaProperty } from '../../../decorators/aria-property.js';
13
- /** Defines the border type of a chip. */
14
- export var BorderType;
15
- (function (BorderType) {
16
- BorderType["ELEVATED"] = "ELEVATED";
17
- BorderType["HAIRLINE"] = "HAIRLINE";
18
- })(BorderType || (BorderType = {}));
19
- /** Defines the shape of the vertical edge of a chip. */
20
- export var EdgeType;
21
- (function (EdgeType) {
22
- EdgeType["ROUNDED"] = "ROUNDED";
23
- EdgeType["STRAIGHT"] = "STRAIGHT";
24
- })(EdgeType || (EdgeType = {}));
25
- /** @soyCompatible */
26
- export class Chip extends ActionElement {
27
- constructor() {
28
- super(...arguments);
29
- this.isFocusable = false;
30
- this.isTouchable = false;
31
- this.disabled = false;
32
- this.hasAvatar = false;
33
- this.hasDeleteAction = false;
34
- this.icon = '';
35
- this.label = '';
36
- this.borderType = BorderType.HAIRLINE;
37
- this.edgeType = EdgeType.ROUNDED;
38
- this.addedAnnouncement = '';
39
- this.removedAnnouncement = '';
40
- this.closeActionAriaLabel = '';
41
- }
42
- /** @soyTemplate */
43
- getRootClasses() {
44
- const hasIcon = this.icon.trim().length > 0;
45
- return {
46
- 'md3-chip': true,
47
- 'md3-chip--disabled': this.disabled,
48
- 'md3-chip--touch': this.isTouchable,
49
- 'md3-chip--with-primary-graphic': hasIcon,
50
- 'md3-chip--with-primary-icon': hasIcon,
51
- 'md3-chip--with-avatar': this.hasAvatar,
52
- 'md3-chip--with-delete-action': this.hasDeleteAction,
53
- };
54
- }
55
- /** @soyTemplate */
56
- renderOverlay() {
57
- return this.borderType === BorderType.ELEVATED ?
58
- html `<md-elevation aria-hidden="true" shadow surface></md-elevation>` :
59
- html ``;
60
- }
61
- /** @soyTemplate */
62
- renderDeleteAction() {
63
- if (!this.hasDeleteAction) {
64
- return html ``;
65
- }
66
- else {
67
- return html `
68
- <span class="md3-chip__cell md3-chip__cell--delete"
69
- role="gridcell">
70
- <md-delete-action
71
- ?disabled=${this.disabled}
72
- ?isFocusable=${this.isFocusable}
73
- ?isTouchable=${this.isTouchable}
74
- .ariaLabel=${this.closeActionAriaLabel}>
75
- </md-delete-action>
76
- </span>`;
77
- }
78
- }
79
- }
80
- __decorate([
81
- property({ type: Boolean, reflect: true }),
82
- __metadata("design:type", Object)
83
- ], Chip.prototype, "isFocusable", void 0);
84
- __decorate([
85
- property({ type: Boolean, reflect: true }),
86
- __metadata("design:type", Object)
87
- ], Chip.prototype, "isTouchable", void 0);
88
- __decorate([
89
- property({ type: Boolean, reflect: true }),
90
- __metadata("design:type", Object)
91
- ], Chip.prototype, "disabled", void 0);
92
- __decorate([
93
- property({ type: Boolean, reflect: true }),
94
- __metadata("design:type", Object)
95
- ], Chip.prototype, "hasAvatar", void 0);
96
- __decorate([
97
- property({ type: Boolean, reflect: true }),
98
- __metadata("design:type", Object)
99
- ], Chip.prototype, "hasDeleteAction", void 0);
100
- __decorate([
101
- property({ type: String }),
102
- __metadata("design:type", Object)
103
- ], Chip.prototype, "icon", void 0);
104
- __decorate([
105
- property({ type: String }),
106
- __metadata("design:type", Object)
107
- ], Chip.prototype, "label", void 0);
108
- __decorate([
109
- property({ type: String }),
110
- __metadata("design:type", Object)
111
- ], Chip.prototype, "borderType", void 0);
112
- __decorate([
113
- property({ type: String }),
114
- __metadata("design:type", Object)
115
- ], Chip.prototype, "edgeType", void 0);
116
- __decorate([
117
- property({ type: String }),
118
- __metadata("design:type", Object)
119
- ], Chip.prototype, "addedAnnouncement", void 0);
120
- __decorate([
121
- property({ type: String }),
122
- __metadata("design:type", Object)
123
- ], Chip.prototype, "removedAnnouncement", void 0);
124
- __decorate([
125
- property({ type: String }),
126
- __metadata("design:type", Object)
127
- ], Chip.prototype, "closeActionAriaLabel", void 0);
128
- __decorate([
129
- ariaProperty // tslint:disable-line:no-new-decorators
130
- ,
131
- property({ type: String, attribute: 'aria-label' }),
132
- __metadata("design:type", String)
133
- ], Chip.prototype, "ariaLabel", void 0);
134
- //# sourceMappingURL=chip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chip.js","sourceRoot":"","sources":["chip.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,iCAAiC,CAAC;AACzC,OAAO,+BAA+B,CAAC;AAEvC,OAAO,EAAC,IAAI,EAAiB,MAAM,KAAK,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAG3C,OAAO,EAAC,aAAa,EAAC,MAAM,0CAA0C,CAAC;AACvE,OAAO,EAAC,YAAY,EAAC,MAAM,sCAAsC,CAAC;AAElE,yCAAyC;AACzC,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,mCAAqB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AAED,wDAAwD;AACxD,MAAM,CAAN,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,iCAAqB,CAAA;AACvB,CAAC,EAHW,QAAQ,KAAR,QAAQ,QAGnB;AAED,qBAAqB;AACrB,MAAM,OAAgB,IAAK,SAAQ,aAAa;IAAhD;;QAC4C,gBAAW,GAAG,KAAK,CAAC;QAEpB,gBAAW,GAAG,KAAK,CAAC;QAEpB,aAAQ,GAAG,KAAK,CAAC;QAEjB,cAAS,GAAG,KAAK,CAAC;QAElB,oBAAe,GAAG,KAAK,CAAC;QAExC,SAAI,GAAG,EAAE,CAAC;QAEV,UAAK,GAAG,EAAE,CAAC;QAEX,eAAU,GAAG,UAAU,CAAC,QAAQ,CAAC;QAEjC,aAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC;QAE5B,sBAAiB,GAAG,EAAE,CAAC;QAEvB,wBAAmB,GAAG,EAAE,CAAC;QAEzB,yBAAoB,GAAG,EAAE,CAAC;IA6CtD,CAAC;IAtCC,mBAAmB;IACT,cAAc;QACtB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;QAC5C,OAAO;YACL,UAAU,EAAE,IAAI;YAChB,oBAAoB,EAAE,IAAI,CAAC,QAAQ;YACnC,iBAAiB,EAAE,IAAI,CAAC,WAAW;YACnC,gCAAgC,EAAE,OAAO;YACzC,6BAA6B,EAAE,OAAO;YACtC,uBAAuB,EAAE,IAAI,CAAC,SAAS;YACvC,8BAA8B,EAAE,IAAI,CAAC,eAAe;SACrD,CAAC;IACJ,CAAC;IAED,mBAAmB;IACT,aAAa;QACrB,OAAO,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC5C,IAAI,CAAA,iEAAiE,CAAC,CAAC;YACvE,IAAI,CAAA,EAAE,CAAC;IACb,CAAC;IAED,mBAAmB;IACT,kBAAkB;QAC1B,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACzB,OAAO,IAAI,CAAA,EAAE,CAAC;SACf;aAAM;YACL,OAAO,IAAI,CAAA;;;;wBAIO,IAAI,CAAC,QAAQ;2BACV,IAAI,CAAC,WAAW;2BAChB,IAAI,CAAC,WAAW;yBAClB,IAAI,CAAC,oBAAoB;;gBAElC,CAAC;SACZ;IACH,CAAC;CACF;AAnEC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAqB;AAE9D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;yCAAqB;AAE9D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;sCAAkB;AAE3D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;uCAAmB;AAE5D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;;6CAAyB;AAElE;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kCAAW;AAEpC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;mCAAY;AAErC;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;wCAAkC;AAE3D;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;sCAA6B;AAEtD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;+CAAwB;AAEjD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;iDAA0B;AAEnD;IAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;;kDAA2B;AAGpD;IAAC,YAAY,CAAE,wCAAwC;;IACtD,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAC,CAAC;;uCACtB","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport '../../../elevation/elevation.js';\nimport '../../action/delete-action.js';\n\nimport {html, TemplateResult} from 'lit';\nimport {property} from 'lit/decorators.js';\nimport {ClassInfo} from 'lit/directives/class-map.js';\n\nimport {ActionElement} from '../../../actionelement/action-element.js';\nimport {ariaProperty} from '../../../decorators/aria-property.js';\n\n/** Defines the border type of a chip. */\nexport enum BorderType {\n ELEVATED = 'ELEVATED',\n HAIRLINE = 'HAIRLINE',\n}\n\n/** Defines the shape of the vertical edge of a chip. */\nexport enum EdgeType {\n ROUNDED = 'ROUNDED',\n STRAIGHT = 'STRAIGHT',\n}\n\n/** @soyCompatible */\nexport abstract class Chip extends ActionElement {\n @property({type: Boolean, reflect: true}) isFocusable = false;\n\n @property({type: Boolean, reflect: true}) isTouchable = false;\n\n @property({type: Boolean, reflect: true}) disabled = false;\n\n @property({type: Boolean, reflect: true}) hasAvatar = false;\n\n @property({type: Boolean, reflect: true}) hasDeleteAction = false;\n\n @property({type: String}) icon = '';\n\n @property({type: String}) label = '';\n\n @property({type: String}) borderType = BorderType.HAIRLINE;\n\n @property({type: String}) edgeType = EdgeType.ROUNDED;\n\n @property({type: String}) addedAnnouncement = '';\n\n @property({type: String}) removedAnnouncement = '';\n\n @property({type: String}) closeActionAriaLabel = '';\n\n /** @soyPrefixAttribute */\n @ariaProperty // tslint:disable-line:no-new-decorators\n @property({type: String, attribute: 'aria-label'})\n override ariaLabel!: string;\n\n /** @soyTemplate */\n protected getRootClasses(): ClassInfo {\n const hasIcon = this.icon.trim().length > 0;\n return {\n 'md3-chip': true,\n 'md3-chip--disabled': this.disabled,\n 'md3-chip--touch': this.isTouchable,\n 'md3-chip--with-primary-graphic': hasIcon,\n 'md3-chip--with-primary-icon': hasIcon,\n 'md3-chip--with-avatar': this.hasAvatar,\n 'md3-chip--with-delete-action': this.hasDeleteAction,\n };\n }\n\n /** @soyTemplate */\n protected renderOverlay(): TemplateResult {\n return this.borderType === BorderType.ELEVATED ?\n html`<md-elevation aria-hidden=\"true\" shadow surface></md-elevation>` :\n html``;\n }\n\n /** @soyTemplate */\n protected renderDeleteAction(): TemplateResult {\n if (!this.hasDeleteAction) {\n return html``;\n } else {\n return html`\n <span class=\"md3-chip__cell md3-chip__cell--delete\"\n role=\"gridcell\">\n <md-delete-action\n ?disabled=${this.disabled}\n ?isFocusable=${this.isFocusable}\n ?isTouchable=${this.isTouchable}\n .ariaLabel=${this.closeActionAriaLabel}>\n </md-delete-action>\n </span>`;\n }\n }\n}\n"]}
@@ -1,43 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * MDCChipCssClasses provides the named constants for class names.
8
- */
9
- export declare enum MDCChipCssClasses {
10
- SELECTING = "md3-chip--selecting",
11
- DESELECTING = "md3-chip--deselecting",
12
- SELECTING_WITH_PRIMARY_ICON = "md3-chip--selecting-with-primary-icon",
13
- DESELECTING_WITH_PRIMARY_ICON = "md3-chip--deselecting-with-primary-icon",
14
- DISABLED = "md3-chip--disabled",
15
- ENTER = "md3n-chip--enter",
16
- EXIT = "md3-chip--exit",
17
- SELECTED = "md3-chip--selected",
18
- HIDDEN = "md3-chip--hidden",
19
- WITH_PRIMARY_ICON = "md3-chip--with-primary-icon"
20
- }
21
- /**
22
- * MDCChipEvents provides the named constants for emitted events.
23
- */
24
- export declare enum MDCChipEvents {
25
- INTERACTION = "MDCChip:interaction",
26
- NAVIGATION = "MDCChip:navigation",
27
- ANIMATION = "MDCChip:animation"
28
- }
29
- /**
30
- * MDCChipAttributes provides the named constants for strings used by the
31
- * foundation.
32
- */
33
- export declare enum MDCChipAttributes {
34
- DATA_REMOVED_ANNOUNCEMENT = "data-md3-removed-announcement",
35
- DATA_ADDED_ANNOUNCEMENT = "data-md3-added-announcement"
36
- }
37
- /**
38
- * MDCChipAnimation provides the names of runnable animations.
39
- */
40
- export declare enum MDCChipAnimation {
41
- ENTER = "md3-chip-enter",
42
- EXIT = "md3-chip-exit"
43
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- /**
7
- * MDCChipCssClasses provides the named constants for class names.
8
- */
9
- export var MDCChipCssClasses;
10
- (function (MDCChipCssClasses) {
11
- MDCChipCssClasses["SELECTING"] = "md3-chip--selecting";
12
- MDCChipCssClasses["DESELECTING"] = "md3-chip--deselecting";
13
- MDCChipCssClasses["SELECTING_WITH_PRIMARY_ICON"] = "md3-chip--selecting-with-primary-icon";
14
- MDCChipCssClasses["DESELECTING_WITH_PRIMARY_ICON"] = "md3-chip--deselecting-with-primary-icon";
15
- MDCChipCssClasses["DISABLED"] = "md3-chip--disabled";
16
- MDCChipCssClasses["ENTER"] = "md3n-chip--enter";
17
- MDCChipCssClasses["EXIT"] = "md3-chip--exit";
18
- MDCChipCssClasses["SELECTED"] = "md3-chip--selected";
19
- MDCChipCssClasses["HIDDEN"] = "md3-chip--hidden";
20
- MDCChipCssClasses["WITH_PRIMARY_ICON"] = "md3-chip--with-primary-icon";
21
- })(MDCChipCssClasses || (MDCChipCssClasses = {}));
22
- /**
23
- * MDCChipEvents provides the named constants for emitted events.
24
- */
25
- export var MDCChipEvents;
26
- (function (MDCChipEvents) {
27
- MDCChipEvents["INTERACTION"] = "MDCChip:interaction";
28
- MDCChipEvents["NAVIGATION"] = "MDCChip:navigation";
29
- MDCChipEvents["ANIMATION"] = "MDCChip:animation";
30
- })(MDCChipEvents || (MDCChipEvents = {}));
31
- /**
32
- * MDCChipAttributes provides the named constants for strings used by the
33
- * foundation.
34
- */
35
- export var MDCChipAttributes;
36
- (function (MDCChipAttributes) {
37
- MDCChipAttributes["DATA_REMOVED_ANNOUNCEMENT"] = "data-md3-removed-announcement";
38
- MDCChipAttributes["DATA_ADDED_ANNOUNCEMENT"] = "data-md3-added-announcement";
39
- })(MDCChipAttributes || (MDCChipAttributes = {}));
40
- /**
41
- * MDCChipAnimation provides the names of runnable animations.
42
- */
43
- export var MDCChipAnimation;
44
- (function (MDCChipAnimation) {
45
- MDCChipAnimation["ENTER"] = "md3-chip-enter";
46
- MDCChipAnimation["EXIT"] = "md3-chip-exit";
47
- })(MDCChipAnimation || (MDCChipAnimation = {}));
48
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["constants.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,sDAAiC,CAAA;IACjC,0DAAqC,CAAA;IACrC,0FAAqE,CAAA;IACrE,8FAAyE,CAAA;IACzE,oDAA+B,CAAA;IAC/B,+CAA0B,CAAA;IAC1B,4CAAuB,CAAA;IACvB,oDAA+B,CAAA;IAC/B,gDAA2B,CAAA;IAC3B,sEAAiD,CAAA;AACnD,CAAC,EAXW,iBAAiB,KAAjB,iBAAiB,QAW5B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oDAAmC,CAAA;IACnC,kDAAiC,CAAA;IACjC,gDAA+B,CAAA;AACjC,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,gFAA2D,CAAA;IAC3D,4EAAuD,CAAA;AACzD,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,4CAAwB,CAAA;IACxB,0CAAsB,CAAA;AACxB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * MDCChipCssClasses provides the named constants for class names.\n */\nexport enum MDCChipCssClasses {\n SELECTING = 'md3-chip--selecting',\n DESELECTING = 'md3-chip--deselecting',\n SELECTING_WITH_PRIMARY_ICON = 'md3-chip--selecting-with-primary-icon',\n DESELECTING_WITH_PRIMARY_ICON = 'md3-chip--deselecting-with-primary-icon',\n DISABLED = 'md3-chip--disabled',\n ENTER = 'md3n-chip--enter',\n EXIT = 'md3-chip--exit',\n SELECTED = 'md3-chip--selected',\n HIDDEN = 'md3-chip--hidden',\n WITH_PRIMARY_ICON = 'md3-chip--with-primary-icon',\n}\n\n/**\n * MDCChipEvents provides the named constants for emitted events.\n */\nexport enum MDCChipEvents {\n INTERACTION = 'MDCChip:interaction',\n NAVIGATION = 'MDCChip:navigation',\n ANIMATION = 'MDCChip:animation',\n}\n\n/**\n * MDCChipAttributes provides the named constants for strings used by the\n * foundation.\n */\nexport enum MDCChipAttributes {\n DATA_REMOVED_ANNOUNCEMENT = 'data-md3-removed-announcement',\n DATA_ADDED_ANNOUNCEMENT = 'data-md3-added-announcement',\n}\n\n/**\n * MDCChipAnimation provides the names of runnable animations.\n */\nexport enum MDCChipAnimation {\n ENTER = 'md3-chip-enter',\n EXIT = 'md3-chip-exit',\n}\n"]}
@@ -1,41 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2022 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { MDCChipActionFocusBehavior, MDCChipActionType } from '../../action/lib/constants.js';
7
- import { MDCChipAdapter } from './adapter.js';
8
- import { MDCChipAnimation } from './constants.js';
9
- import { ActionInteractionEvent, ActionNavigationEvent } from './types.js';
10
- /**
11
- * MDCChipFoundation provides a foundation for all chips.
12
- */
13
- export declare class MDCChipFoundation {
14
- private readonly adapter;
15
- static get defaultAdapter(): MDCChipAdapter;
16
- private readonly animFrame;
17
- constructor(adapter?: Partial<MDCChipAdapter>);
18
- destroy(): void;
19
- getElementID(): string;
20
- setDisabled(isDisabled: boolean): void;
21
- isDisabled(): boolean;
22
- getActions(): MDCChipActionType[];
23
- isActionFocusable(action: MDCChipActionType): boolean;
24
- isActionSelectable(action: MDCChipActionType): boolean;
25
- isActionSelected(action: MDCChipActionType): boolean;
26
- setActionFocus(action: MDCChipActionType, focus: MDCChipActionFocusBehavior): void;
27
- setActionSelected(action: MDCChipActionType, isSelected: boolean): void;
28
- startAnimation(animation: MDCChipAnimation): void;
29
- handleAnimationEnd(event: AnimationEvent): void;
30
- handleTransitionEnd(): void;
31
- handleActionInteraction({ detail }: ActionInteractionEvent): void;
32
- handleActionNavigation({ detail }: ActionNavigationEvent): void;
33
- private directionFromKey;
34
- private navigateActions;
35
- private shouldRemove;
36
- private getRemovedAnnouncement;
37
- private getAddedAnnouncement;
38
- private animateSelection;
39
- private resetAnimationStyles;
40
- private updateSelectionStyles;
41
- }