@material/web 1.0.0-pre.7 → 1.0.0-pre.8

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 (321) hide show
  1. package/README.md +3 -3
  2. package/aria/aria.js +37 -13
  3. package/aria/aria.js.map +1 -1
  4. package/aria/delegate.d.ts +1 -1
  5. package/aria/delegate.js +1 -1
  6. package/aria/delegate.js.map +1 -1
  7. package/badge/lib/badge.d.ts +0 -3
  8. package/badge/lib/badge.js +4 -6
  9. package/badge/lib/badge.js.map +1 -1
  10. package/button/lib/_elevated-button.scss +35 -6
  11. package/button/lib/_filled-button.scss +35 -3
  12. package/button/lib/_outlined-button.scss +35 -6
  13. package/button/lib/_shared.scss +4 -2
  14. package/button/lib/_text-button.scss +35 -6
  15. package/button/lib/_tonal-button.scss +34 -7
  16. package/button/lib/button.d.ts +23 -26
  17. package/button/lib/button.js +12 -30
  18. package/button/lib/button.js.map +1 -1
  19. package/button/lib/elevated-button.d.ts +6 -4
  20. package/button/lib/elevated-button.js.map +1 -1
  21. package/button/lib/elevated-styles.css.js +1 -1
  22. package/button/lib/elevated-styles.css.js.map +1 -1
  23. package/button/lib/filled-button.d.ts +6 -4
  24. package/button/lib/filled-button.js.map +1 -1
  25. package/button/lib/filled-styles.css.js +1 -1
  26. package/button/lib/filled-styles.css.js.map +1 -1
  27. package/button/lib/outlined-button.d.ts +6 -4
  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-styles.css.js +1 -1
  32. package/button/lib/shared-styles.css.js.map +1 -1
  33. package/button/lib/text-button.d.ts +5 -2
  34. package/button/lib/text-button.js.map +1 -1
  35. package/button/lib/text-styles.css.js +1 -1
  36. package/button/lib/text-styles.css.js.map +1 -1
  37. package/button/lib/tonal-button.d.ts +6 -4
  38. package/button/lib/tonal-button.js.map +1 -1
  39. package/button/lib/tonal-styles.css.js +1 -1
  40. package/button/lib/tonal-styles.css.js.map +1 -1
  41. package/checkbox/lib/_checkbox.scss +48 -47
  42. package/checkbox/lib/checkbox-styles.css.js +1 -1
  43. package/checkbox/lib/checkbox-styles.css.js.map +1 -1
  44. package/checkbox/lib/checkbox.d.ts +2 -6
  45. package/checkbox/lib/checkbox.js +3 -20
  46. package/checkbox/lib/checkbox.js.map +1 -1
  47. package/checkbox/lib/forced-colors-styles.css.js +1 -1
  48. package/checkbox/lib/forced-colors-styles.css.js.map +1 -1
  49. package/chips/assist-chip.js +2 -1
  50. package/chips/assist-chip.js.map +1 -1
  51. package/chips/filter-chip.js +2 -1
  52. package/chips/filter-chip.js.map +1 -1
  53. package/chips/lib/_assist-chip.scss +37 -3
  54. package/chips/lib/_elevated.scss +60 -0
  55. package/chips/lib/_filter-chip.scss +43 -9
  56. package/chips/lib/_shared.scss +36 -76
  57. package/chips/lib/_suggestion-chip.scss +36 -5
  58. package/chips/lib/assist-chip.d.ts +12 -0
  59. package/chips/lib/assist-chip.js +64 -0
  60. package/chips/lib/assist-chip.js.map +1 -1
  61. package/chips/lib/assist-styles.css.js +1 -1
  62. package/chips/lib/assist-styles.css.js.map +1 -1
  63. package/chips/lib/chip.d.ts +19 -16
  64. package/chips/lib/chip.js +43 -63
  65. package/chips/lib/chip.js.map +1 -1
  66. package/chips/lib/elevated-styles.css.d.ts +1 -0
  67. package/chips/lib/elevated-styles.css.js +9 -0
  68. package/chips/lib/elevated-styles.css.js.map +1 -0
  69. package/chips/lib/elevated-styles.scss +10 -0
  70. package/chips/lib/filter-chip.d.ts +6 -1
  71. package/chips/lib/filter-chip.js +38 -5
  72. package/chips/lib/filter-chip.js.map +1 -1
  73. package/chips/lib/filter-styles.css.js +1 -1
  74. package/chips/lib/filter-styles.css.js.map +1 -1
  75. package/chips/lib/shared-styles.css.js +1 -1
  76. package/chips/lib/shared-styles.css.js.map +1 -1
  77. package/chips/lib/suggestion-chip.d.ts +2 -2
  78. package/chips/lib/suggestion-chip.js +4 -2
  79. package/chips/lib/suggestion-chip.js.map +1 -1
  80. package/chips/lib/suggestion-styles.css.js +1 -1
  81. package/chips/lib/suggestion-styles.css.js.map +1 -1
  82. package/chips/suggestion-chip.js +2 -1
  83. package/chips/suggestion-chip.js.map +1 -1
  84. package/circularprogress/lib/_circular-progress.scss +13 -7
  85. package/circularprogress/lib/circular-progress-styles.css.js +1 -1
  86. package/circularprogress/lib/circular-progress-styles.css.js.map +1 -1
  87. package/circularprogress/lib/circular-progress.d.ts +5 -6
  88. package/circularprogress/lib/circular-progress.js +1 -2
  89. package/circularprogress/lib/circular-progress.js.map +1 -1
  90. package/dialog/lib/_dialog.scss +0 -1
  91. package/dialog/lib/_tokens.scss +0 -1
  92. package/dialog/lib/dialog.d.ts +10 -10
  93. package/dialog/lib/dialog.js +8 -7
  94. package/dialog/lib/dialog.js.map +1 -1
  95. package/elevation/lib/elevation.d.ts +1 -1
  96. package/elevation/lib/elevation.js.map +1 -1
  97. package/fab/branded-fab.d.ts +3 -0
  98. package/fab/lib/_fab-branded.scss +58 -4
  99. package/fab/lib/_fab.scss +80 -6
  100. package/fab/lib/_shared.scss +8 -3
  101. package/fab/lib/fab-branded-styles.css.js +1 -1
  102. package/fab/lib/fab-branded-styles.css.js.map +1 -1
  103. package/fab/lib/fab-styles.css.js +1 -1
  104. package/fab/lib/fab-styles.css.js.map +1 -1
  105. package/fab/lib/fab.d.ts +4 -0
  106. package/fab/lib/forced-colors-styles.css.js +1 -1
  107. package/fab/lib/forced-colors-styles.css.js.map +1 -1
  108. package/fab/lib/shared-styles.css.js +1 -1
  109. package/fab/lib/shared-styles.css.js.map +1 -1
  110. package/fab/lib/shared.d.ts +12 -15
  111. package/fab/lib/shared.js +2 -26
  112. package/fab/lib/shared.js.map +1 -1
  113. package/field/lib/_filled-field.scss +47 -12
  114. package/field/lib/_outlined-field.scss +39 -12
  115. package/field/lib/filled-styles.css.js +1 -1
  116. package/field/lib/filled-styles.css.js.map +1 -1
  117. package/field/lib/outlined-styles.css.js +1 -1
  118. package/field/lib/outlined-styles.css.js.map +1 -1
  119. package/focus/focus-ring.d.ts +2 -0
  120. package/focus/focus-ring.js +2 -0
  121. package/focus/focus-ring.js.map +1 -1
  122. package/focus/lib/_focus-ring.scss +49 -34
  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/lib/focus-ring.d.ts +59 -12
  126. package/focus/lib/focus-ring.js +116 -11
  127. package/focus/lib/focus-ring.js.map +1 -1
  128. package/iconbutton/filled-icon-button.d.ts +6 -2
  129. package/iconbutton/filled-icon-button.js.map +1 -1
  130. package/iconbutton/filled-tonal-icon-button.d.ts +6 -2
  131. package/iconbutton/filled-tonal-icon-button.js.map +1 -1
  132. package/iconbutton/harness.d.ts +1 -1
  133. package/iconbutton/harness.js +4 -1
  134. package/iconbutton/harness.js.map +1 -1
  135. package/iconbutton/lib/_filled-icon-button.scss +38 -13
  136. package/iconbutton/lib/_filled-tonal-icon-button.scss +38 -11
  137. package/iconbutton/lib/_outlined-icon-button.scss +38 -13
  138. package/iconbutton/lib/_shared.scss +4 -6
  139. package/iconbutton/lib/_standard-icon-button.scss +14 -14
  140. package/iconbutton/lib/filled-styles.css.js +1 -1
  141. package/iconbutton/lib/filled-styles.css.js.map +1 -1
  142. package/iconbutton/lib/filled-tonal-styles.css.js +1 -1
  143. package/iconbutton/lib/filled-tonal-styles.css.js.map +1 -1
  144. package/iconbutton/lib/icon-button.d.ts +17 -21
  145. package/iconbutton/lib/icon-button.js +12 -28
  146. package/iconbutton/lib/icon-button.js.map +1 -1
  147. package/iconbutton/lib/outlined-styles.css.js +1 -1
  148. package/iconbutton/lib/outlined-styles.css.js.map +1 -1
  149. package/iconbutton/lib/shared-styles.css.js +1 -1
  150. package/iconbutton/lib/shared-styles.css.js.map +1 -1
  151. package/iconbutton/lib/standard-styles.css.js +1 -1
  152. package/iconbutton/lib/standard-styles.css.js.map +1 -1
  153. package/iconbutton/outlined-icon-button.d.ts +5 -2
  154. package/iconbutton/outlined-icon-button.js.map +1 -1
  155. package/iconbutton/standard-icon-button.d.ts +5 -2
  156. package/iconbutton/standard-icon-button.js.map +1 -1
  157. package/linearprogress/lib/_linear-progress.scss +78 -72
  158. package/linearprogress/lib/linear-progress.d.ts +5 -5
  159. package/linearprogress/lib/linear-progress.js +1 -1
  160. package/linearprogress/lib/linear-progress.js.map +1 -1
  161. package/list/lib/_list.scss +4 -2
  162. package/list/lib/list.d.ts +7 -12
  163. package/list/lib/list.js +2 -11
  164. package/list/lib/list.js.map +1 -1
  165. package/list/lib/listitem/_list-item.scss +8 -4
  166. package/list/lib/listitem/list-item-styles.css.js +1 -1
  167. package/list/lib/listitem/list-item-styles.css.js.map +1 -1
  168. package/list/lib/listitem/list-item.d.ts +27 -27
  169. package/list/lib/listitem/list-item.js +4 -29
  170. package/list/lib/listitem/list-item.js.map +1 -1
  171. package/list/lib/listitemlink/list-item-link.js +1 -3
  172. package/list/lib/listitemlink/list-item-link.js.map +1 -1
  173. package/menu/lib/_menu.scss +4 -2
  174. package/menu/lib/menu-styles.css.js +1 -1
  175. package/menu/lib/menu-styles.css.js.map +1 -1
  176. package/menu/lib/menu.d.ts +31 -39
  177. package/menu/lib/menu.js +14 -20
  178. package/menu/lib/menu.js.map +1 -1
  179. package/menu/lib/menuitem/_menu-item.scss +4 -2
  180. package/menu/lib/shared.d.ts +14 -0
  181. package/menu/lib/shared.js +18 -0
  182. package/menu/lib/shared.js.map +1 -1
  183. package/menu/lib/submenuitem/sub-menu-item.d.ts +16 -11
  184. package/menu/lib/submenuitem/sub-menu-item.js +20 -3
  185. package/menu/lib/submenuitem/sub-menu-item.js.map +1 -1
  186. package/menu/lib/typeaheadController.d.ts +9 -9
  187. package/menu/lib/typeaheadController.js.map +1 -1
  188. package/navigationbar/lib/navigation-bar.d.ts +2 -2
  189. package/navigationbar/lib/navigation-bar.js.map +1 -1
  190. package/navigationdrawer/lib/_navigation-drawer-modal.scss +0 -3
  191. package/navigationdrawer/lib/_navigation-drawer.scss +0 -3
  192. package/navigationdrawer/lib/_shared.scss +1 -4
  193. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js +1 -1
  194. package/navigationdrawer/lib/navigation-drawer-modal-styles.css.js.map +1 -1
  195. package/navigationdrawer/lib/navigation-drawer-modal.d.ts +3 -3
  196. package/navigationdrawer/lib/navigation-drawer-modal.js.map +1 -1
  197. package/navigationdrawer/lib/navigation-drawer-styles.css.js +1 -1
  198. package/navigationdrawer/lib/navigation-drawer-styles.css.js.map +1 -1
  199. package/navigationdrawer/lib/navigation-drawer.d.ts +2 -2
  200. package/navigationdrawer/lib/navigation-drawer.js.map +1 -1
  201. package/navigationdrawer/lib/shared-styles.css.js +1 -1
  202. package/navigationdrawer/lib/shared-styles.css.js.map +1 -1
  203. package/navigationtab/lib/_navigation-tab.scss +2 -2
  204. package/navigationtab/lib/navigation-tab-styles.css.js +1 -1
  205. package/navigationtab/lib/navigation-tab-styles.css.js.map +1 -1
  206. package/navigationtab/lib/navigation-tab.d.ts +9 -17
  207. package/navigationtab/lib/navigation-tab.js +3 -22
  208. package/navigationtab/lib/navigation-tab.js.map +1 -1
  209. package/navigationtab/lib/state.d.ts +1 -1
  210. package/navigationtab/lib/state.js.map +1 -1
  211. package/package.json +1 -1
  212. package/radio/lib/_radio.scss +1 -1
  213. package/radio/lib/radio-styles.css.js +1 -1
  214. package/radio/lib/radio-styles.css.js.map +1 -1
  215. package/radio/lib/radio.d.ts +2 -7
  216. package/radio/lib/radio.js +2 -22
  217. package/radio/lib/radio.js.map +1 -1
  218. package/ripple/lib/ripple.js +4 -0
  219. package/ripple/lib/ripple.js.map +1 -1
  220. package/segmentedbutton/lib/segmented-button.d.ts +15 -21
  221. package/segmentedbutton/lib/segmented-button.js +3 -24
  222. package/segmentedbutton/lib/segmented-button.js.map +1 -1
  223. package/segmentedbuttonset/lib/_outlined-segmented-button-set.scss +32 -13
  224. package/segmentedbuttonset/lib/outlined-styles.css.js +1 -1
  225. package/segmentedbuttonset/lib/outlined-styles.css.js.map +1 -1
  226. package/segmentedbuttonset/lib/segmented-button-set.d.ts +1 -1
  227. package/segmentedbuttonset/lib/segmented-button-set.js.map +1 -1
  228. package/select/lib/_filled-select.scss +66 -7
  229. package/select/lib/_outlined-select.scss +41 -7
  230. package/select/lib/filled-select-styles.css.js +1 -1
  231. package/select/lib/filled-select-styles.css.js.map +1 -1
  232. package/select/lib/outlined-select-styles.css.js +1 -1
  233. package/select/lib/outlined-select-styles.css.js.map +1 -1
  234. package/select/lib/select.d.ts +46 -48
  235. package/select/lib/select.js +21 -19
  236. package/select/lib/select.js.map +1 -1
  237. package/slider/harness.d.ts +1 -1
  238. package/slider/harness.js +9 -9
  239. package/slider/harness.js.map +1 -1
  240. package/slider/lib/_slider.scss +6 -6
  241. package/slider/lib/slider-styles.css.js +1 -1
  242. package/slider/lib/slider-styles.css.js.map +1 -1
  243. package/slider/lib/slider.d.ts +22 -51
  244. package/slider/lib/slider.js +18 -54
  245. package/slider/lib/slider.js.map +1 -1
  246. package/switch/lib/_switch.scss +63 -18
  247. package/switch/lib/switch-styles.css.js +1 -1
  248. package/switch/lib/switch-styles.css.js.map +1 -1
  249. package/switch/lib/switch.d.ts +0 -5
  250. package/switch/lib/switch.js +2 -27
  251. package/switch/lib/switch.js.map +1 -1
  252. package/textfield/harness.d.ts +1 -1
  253. package/textfield/harness.js.map +1 -1
  254. package/textfield/lib/_filled-text-field.scss +70 -14
  255. package/textfield/lib/_outlined-text-field.scss +60 -35
  256. package/textfield/lib/filled-forced-colors-styles.css.js +1 -1
  257. package/textfield/lib/filled-forced-colors-styles.css.js.map +1 -1
  258. package/textfield/lib/filled-styles.css.js +1 -1
  259. package/textfield/lib/filled-styles.css.js.map +1 -1
  260. package/textfield/lib/outlined-forced-colors-styles.css.js +1 -1
  261. package/textfield/lib/outlined-forced-colors-styles.css.js.map +1 -1
  262. package/textfield/lib/outlined-styles.css.js +1 -1
  263. package/textfield/lib/outlined-styles.css.js.map +1 -1
  264. package/textfield/lib/text-field.d.ts +1 -1
  265. package/textfield/lib/text-field.js.map +1 -1
  266. package/tokens/_index.scss +2 -18
  267. package/tokens/_md-comp-assist-chip.scss +0 -9
  268. package/tokens/_md-comp-checkbox.scss +78 -1
  269. package/tokens/_md-comp-circular-progress-indicator.scss +39 -13
  270. package/tokens/_md-comp-elevated-button.scss +0 -10
  271. package/tokens/_md-comp-fab-branded.scss +6 -31
  272. package/tokens/_md-comp-fab.scss +9 -50
  273. package/tokens/_md-comp-filled-button.scss +0 -10
  274. package/{field/lib → tokens}/_md-comp-filled-field.scss +91 -9
  275. package/tokens/_md-comp-filled-icon-button.scss +46 -1
  276. package/tokens/_md-comp-filled-select.scss +4 -30
  277. package/tokens/_md-comp-filled-text-field.scss +93 -9
  278. package/tokens/_md-comp-filled-tonal-button.scss +0 -11
  279. package/tokens/_md-comp-filled-tonal-icon-button.scss +45 -3
  280. package/tokens/_md-comp-filter-chip.scss +0 -10
  281. package/tokens/_md-comp-focus-ring.scss +23 -24
  282. package/tokens/_md-comp-icon-button.scss +37 -1
  283. package/tokens/_md-comp-input-chip.scss +0 -10
  284. package/tokens/_md-comp-linear-progress-indicator.scss +23 -8
  285. package/tokens/_md-comp-list-item.scss +0 -27
  286. package/tokens/_md-comp-list.scss +3 -29
  287. package/tokens/_md-comp-menu-item.scss +3 -29
  288. package/tokens/_md-comp-menu.scss +0 -23
  289. package/tokens/_md-comp-outlined-button.scss +0 -10
  290. package/{field/lib → tokens}/_md-comp-outlined-field.scss +85 -9
  291. package/tokens/_md-comp-outlined-icon-button.scss +41 -1
  292. package/tokens/_md-comp-outlined-segmented-button.scss +57 -11
  293. package/tokens/_md-comp-outlined-select.scss +1 -28
  294. package/tokens/_md-comp-outlined-text-field.scss +85 -8
  295. package/tokens/_md-comp-suggestion-chip.scss +0 -9
  296. package/tokens/_md-comp-switch.scss +81 -1
  297. package/tokens/_md-comp-text-button.scss +0 -10
  298. package/tokens/_values.scss +2 -7
  299. package/types/aria.d.ts +0 -2
  300. package/focus/strong-focus.d.ts +0 -56
  301. package/focus/strong-focus.js +0 -101
  302. package/focus/strong-focus.js.map +0 -1
  303. package/sass/_shape.scss +0 -154
  304. package/tokens/_md-comp-extended-fab-branded.scss +0 -45
  305. package/tokens/_md-comp-extended-fab-primary.scss +0 -45
  306. package/tokens/_md-comp-extended-fab-secondary.scss +0 -48
  307. package/tokens/_md-comp-extended-fab-surface.scss +0 -45
  308. package/tokens/_md-comp-extended-fab-tertiary.scss +0 -48
  309. package/tokens/_md-comp-fab-branded-large.scss +0 -23
  310. package/tokens/_md-comp-fab-primary-large.scss +0 -23
  311. package/tokens/_md-comp-fab-primary-small.scss +0 -23
  312. package/tokens/_md-comp-fab-primary.scss +0 -23
  313. package/tokens/_md-comp-fab-secondary-large.scss +0 -23
  314. package/tokens/_md-comp-fab-secondary-small.scss +0 -23
  315. package/tokens/_md-comp-fab-secondary.scss +0 -23
  316. package/tokens/_md-comp-fab-surface-large.scss +0 -23
  317. package/tokens/_md-comp-fab-surface-small.scss +0 -23
  318. package/tokens/_md-comp-fab-surface.scss +0 -23
  319. package/tokens/_md-comp-fab-tertiary-large.scss +0 -23
  320. package/tokens/_md-comp-fab-tertiary-small.scss +0 -23
  321. package/tokens/_md-comp-fab-tertiary.scss +0 -23
@@ -8,8 +8,83 @@
8
8
  @use './md-sys-shape';
9
9
  @use './md-sys-state';
10
10
  @use './v0_172/md-comp-switch';
11
+ @use './values';
11
12
  // go/keep-sorted end
12
13
 
14
+ $supported-tokens: (
15
+ // go/keep-sorted start
16
+ 'disabled-selected-handle-color',
17
+ 'disabled-selected-handle-opacity',
18
+ 'disabled-selected-icon-color',
19
+ 'disabled-selected-icon-opacity',
20
+ 'disabled-selected-track-color',
21
+ 'disabled-track-opacity',
22
+ 'disabled-unselected-handle-color',
23
+ 'disabled-unselected-handle-opacity',
24
+ 'disabled-unselected-icon-color',
25
+ 'disabled-unselected-icon-opacity',
26
+ 'disabled-unselected-track-color',
27
+ 'disabled-unselected-track-outline-color',
28
+ 'handle-shape',
29
+ 'pressed-handle-height',
30
+ 'pressed-handle-width',
31
+ 'selected-focus-handle-color',
32
+ 'selected-focus-icon-color',
33
+ 'selected-focus-state-layer-color',
34
+ 'selected-focus-state-layer-opacity',
35
+ 'selected-focus-track-color',
36
+ 'selected-handle-color',
37
+ 'selected-handle-height',
38
+ 'selected-handle-width',
39
+ 'selected-hover-handle-color',
40
+ 'selected-hover-icon-color',
41
+ 'selected-hover-state-layer-color',
42
+ 'selected-hover-state-layer-opacity',
43
+ 'selected-hover-track-color',
44
+ 'selected-icon-color',
45
+ 'selected-icon-size',
46
+ 'selected-pressed-handle-color',
47
+ 'selected-pressed-icon-color',
48
+ 'selected-pressed-state-layer-color',
49
+ 'selected-pressed-state-layer-opacity',
50
+ 'selected-pressed-track-color',
51
+ 'selected-track-color',
52
+ 'state-layer-shape',
53
+ 'state-layer-size',
54
+ 'track-height',
55
+ 'track-outline-width',
56
+ 'track-shape',
57
+ 'track-width',
58
+ 'unselected-focus-handle-color',
59
+ 'unselected-focus-icon-color',
60
+ 'unselected-focus-state-layer-color',
61
+ 'unselected-focus-state-layer-opacity',
62
+ 'unselected-focus-track-color',
63
+ 'unselected-focus-track-outline-color',
64
+ 'unselected-handle-color',
65
+ 'unselected-handle-height',
66
+ 'unselected-handle-width',
67
+ 'unselected-hover-handle-color',
68
+ 'unselected-hover-icon-color',
69
+ 'unselected-hover-state-layer-color',
70
+ 'unselected-hover-state-layer-opacity',
71
+ 'unselected-hover-track-color',
72
+ 'unselected-hover-track-outline-color',
73
+ 'unselected-icon-color',
74
+ 'unselected-icon-size',
75
+ 'unselected-pressed-handle-color',
76
+ 'unselected-pressed-icon-color',
77
+ 'unselected-pressed-state-layer-color',
78
+ 'unselected-pressed-state-layer-opacity',
79
+ 'unselected-pressed-track-color',
80
+ 'unselected-pressed-track-outline-color',
81
+ 'unselected-track-color',
82
+ 'unselected-track-outline-color',
83
+ 'with-icon-handle-height',
84
+ 'with-icon-handle-width',
85
+ // go/keep-sorted end
86
+ );
87
+
13
88
  $_default: (
14
89
  'md-sys-color': md-sys-color.values-light(),
15
90
  'md-sys-shape': md-sys-shape.values(),
@@ -17,5 +92,10 @@ $_default: (
17
92
  );
18
93
 
19
94
  @function values($deps: $_default, $exclude-hardcoded-values: false) {
20
- @return md-comp-switch.values($deps, $exclude-hardcoded-values);
95
+ $tokens: values.validate(
96
+ md-comp-switch.values($deps, $exclude-hardcoded-values),
97
+ $supported-tokens: $supported-tokens
98
+ );
99
+
100
+ @return $tokens;
21
101
  }
@@ -7,7 +7,6 @@
7
7
  @use 'sass:map';
8
8
  // go/keep-sorted end
9
9
  // go/keep-sorted start
10
- @use '../sass/shape';
11
10
  @use './md-sys-color';
12
11
  @use './md-sys-shape';
13
12
  @use './md-sys-state';
@@ -94,14 +93,5 @@ $_default: (
94
93
  )
95
94
  );
96
95
 
97
- @each $token, $value in $tokens {
98
- $tokens: map.set(
99
- $tokens,
100
- $token,
101
- var(--md-text-button-#{$token}, #{$value})
102
- );
103
- }
104
-
105
- $tokens: shape.resolve-tokens($tokens, 'container-shape');
106
96
  @return $tokens;
107
97
  }
@@ -37,8 +37,6 @@
37
37
  /// @param {Map} $new-tokens [null] - Keyword argument for a Map whose keys
38
38
  /// and values are new tokens to be added. They must also appear in the
39
39
  /// `$supported-tokens` list.
40
- /// @param {Bool} $is-subset [null] - Check if provided tokens are only a subset
41
- /// of the supported tokens. e.g. when generating a theme.
42
40
  /// @return {Map} The `tokens.md-comp-*-values()` Map with any unsupported
43
41
  /// tokens removed, renamed tokens updated, and new tokens added.
44
42
  @function validate($values, $tokens...) {
@@ -86,9 +84,7 @@
86
84
  @warn 'values.validate($new-tokens: (\'#{$new-token}\': \'#{$new-value}\')) already exists. Has it been added to tokens? If so, remove this new token.';
87
85
  }
88
86
 
89
- @if $new-value {
90
- $values: map.set($values, $new-token, $new-value);
91
- }
87
+ $values: map.set($values, $new-token, $new-value);
92
88
  }
93
89
  }
94
90
 
@@ -104,8 +100,7 @@
104
100
  }
105
101
 
106
102
  @each $supported-token in $supported-tokens {
107
- $is-subset: map.get($tokens, 'is-subset');
108
- @if not($is-subset or map.has-key($values, $supported-token)) {
103
+ @if not map.has-key($values, $supported-token) {
109
104
  @error 'The provided values are missing the supported \'#{$supported-token}\' token.';
110
105
  }
111
106
  }
package/types/aria.d.ts CHANGED
@@ -32,7 +32,6 @@ export interface ARIAMixinStrict extends ARIAMixin {
32
32
  ariaChecked: 'true'|'false'|null;
33
33
  ariaColCount: `${number}`|null;
34
34
  ariaColIndex: `${number}`|null;
35
- ariaColIndexText: string|null;
36
35
  ariaColSpan: `${number}`|null;
37
36
  ariaCurrent: 'page'|'step'|'location'|'date'|'time'|'true'|'false'|null;
38
37
  ariaDisabled: 'true'|'false'|null;
@@ -56,7 +55,6 @@ export interface ARIAMixinStrict extends ARIAMixin {
56
55
  ariaRoleDescription: string|null;
57
56
  ariaRowCount: `${number}`|null;
58
57
  ariaRowIndex: `${number}`|null;
59
- ariaRowIndexText: string|null;
60
58
  ariaRowSpan: `${number}`|null;
61
59
  ariaSelected: 'true'|'false'|null;
62
60
  ariaSetSize: `${number}`|null;
@@ -1,56 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- interface StrongFocus {
7
- visible: boolean;
8
- setVisible(visible: boolean): void;
9
- }
10
- /**
11
- * Components should call this when a user interacts with a component with a
12
- * keyboard event in the very special case that the component needs to call
13
- * focus inside of a keydown handler. Otherwise, this module will handle
14
- * keyboard events on window.
15
- *
16
- * By default, this will enable the strong focus to be shown.
17
- *
18
- * @param e The native keyboard event.
19
- */
20
- export declare function keydownHandler(e: KeyboardEvent): void;
21
- /**
22
- * Set up integration with alternate global focus tracking object
23
- *
24
- * @param focusGlobal A global focus object to coordinate between multiple
25
- * systems
26
- * @param enableKeydownHandler Set to true to let StrongFocusService listen for
27
- * keyboard navigation
28
- */
29
- export declare function setup(focusGlobal: StrongFocus, enableKeydownHandler?: boolean): void;
30
- /**
31
- * Returns `true` if the component should show strong focus.
32
- *
33
- * By default, strong focus is shown only on keyboard navigation, and not on
34
- * pointer interaction.
35
- */
36
- export declare function shouldShowStrongFocus(): boolean;
37
- /**
38
- * Control if strong focus should always be shown on component focus
39
- *
40
- * Defaults to `false`
41
- *
42
- * @param force Forces strong focus on the page. Disables strong focus if false.
43
- */
44
- export declare function setForceStrongFocus(force: boolean): void;
45
- /**
46
- * If `true`, strong focus is always shown
47
- */
48
- export declare function isStrongFocusForced(): boolean;
49
- /**
50
- * Components should call this when a user interacts with a component with a
51
- * pointing device.
52
- *
53
- * By default, this will prevent the strong focus from being shown.
54
- */
55
- export declare function pointerPress(): void;
56
- export {};
@@ -1,101 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- * SPDX-License-Identifier: Apache-2.0
5
- */
6
- import { isServer } from 'lit';
7
- class FocusGlobal {
8
- constructor() {
9
- this.visible = false;
10
- }
11
- setVisible(visible) {
12
- this.visible = visible;
13
- }
14
- }
15
- /**
16
- * This object can be overwritten by the `setup()` function to use a different
17
- * focus coordination object.
18
- */
19
- let focusObject = new FocusGlobal();
20
- /**
21
- * Set of keyboard event codes that correspond to keyboard navigation
22
- */
23
- const KEYBOARD_NAVIGATION_KEYS = new Set(['Tab', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']);
24
- /**
25
- * Components should call this when a user interacts with a component with a
26
- * keyboard event in the very special case that the component needs to call
27
- * focus inside of a keydown handler. Otherwise, this module will handle
28
- * keyboard events on window.
29
- *
30
- * By default, this will enable the strong focus to be shown.
31
- *
32
- * @param e The native keyboard event.
33
- */
34
- export function keydownHandler(e) {
35
- if (KEYBOARD_NAVIGATION_KEYS.has(e.key)) {
36
- focusObject.setVisible(true);
37
- }
38
- }
39
- /**
40
- * Set up integration with alternate global focus tracking object
41
- *
42
- * @param focusGlobal A global focus object to coordinate between multiple
43
- * systems
44
- * @param enableKeydownHandler Set to true to let StrongFocusService listen for
45
- * keyboard navigation
46
- */
47
- export function setup(focusGlobal, enableKeydownHandler = false) {
48
- focusObject = focusGlobal;
49
- // Server doesn't have addEventListener shimmed
50
- if (isServer) {
51
- return;
52
- }
53
- if (enableKeydownHandler) {
54
- window.addEventListener('keydown', keydownHandler);
55
- }
56
- else {
57
- window.removeEventListener('keydown', keydownHandler);
58
- }
59
- }
60
- /**
61
- * Setting for always showing strong focus
62
- *
63
- * Defaults to false, controlled by `setForceStrongFocus`
64
- */
65
- let alwaysStrong = false;
66
- /**
67
- * Returns `true` if the component should show strong focus.
68
- *
69
- * By default, strong focus is shown only on keyboard navigation, and not on
70
- * pointer interaction.
71
- */
72
- export function shouldShowStrongFocus() {
73
- return alwaysStrong || focusObject.visible;
74
- }
75
- /**
76
- * Control if strong focus should always be shown on component focus
77
- *
78
- * Defaults to `false`
79
- *
80
- * @param force Forces strong focus on the page. Disables strong focus if false.
81
- */
82
- export function setForceStrongFocus(force) {
83
- alwaysStrong = force;
84
- }
85
- /**
86
- * If `true`, strong focus is always shown
87
- */
88
- export function isStrongFocusForced() {
89
- return alwaysStrong;
90
- }
91
- /**
92
- * Components should call this when a user interacts with a component with a
93
- * pointing device.
94
- *
95
- * By default, this will prevent the strong focus from being shown.
96
- */
97
- export function pointerPress() {
98
- focusObject.setVisible(false);
99
- }
100
- setup(focusObject, true);
101
- //# sourceMappingURL=strong-focus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strong-focus.js","sourceRoot":"","sources":["strong-focus.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,KAAK,CAAC;AAO7B,MAAM,WAAW;IAAjB;QACE,YAAO,GAAG,KAAK,CAAC;IAIlB,CAAC;IAHC,UAAU,CAAC,OAAgB;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;CACF;AAED;;;GAGG;AACH,IAAI,WAAW,GAAgB,IAAI,WAAW,EAAE,CAAC;AAEjD;;GAEG;AACH,MAAM,wBAAwB,GAC1B,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;AAExE;;;;;;;;;GASG;AACH,MAAM,UAAU,cAAc,CAAC,CAAgB;IAC7C,IAAI,wBAAwB,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;QACvC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;KAC9B;AACH,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,KAAK,CAAC,WAAwB,EAAE,oBAAoB,GAAG,KAAK;IAC1E,WAAW,GAAG,WAAW,CAAC;IAE1B,+CAA+C;IAC/C,IAAI,QAAQ,EAAE;QACZ,OAAO;KACR;IAED,IAAI,oBAAoB,EAAE;QACxB,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;KACpD;SAAM;QACL,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;KACvD;AACH,CAAC;AAED;;;;GAIG;AACH,IAAI,YAAY,GAAG,KAAK,CAAC;AAEzB;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,YAAY,IAAI,WAAW,CAAC,OAAO,CAAC;AAC7C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAc;IAChD,YAAY,GAAG,KAAK,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,YAAY;IAC1B,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC;AAED,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport {isServer} from 'lit';\n\ninterface StrongFocus {\n visible: boolean;\n setVisible(visible: boolean): void;\n}\n\nclass FocusGlobal implements StrongFocus {\n visible = false;\n setVisible(visible: boolean) {\n this.visible = visible;\n }\n}\n\n/**\n * This object can be overwritten by the `setup()` function to use a different\n * focus coordination object.\n */\nlet focusObject: StrongFocus = new FocusGlobal();\n\n/**\n * Set of keyboard event codes that correspond to keyboard navigation\n */\nconst KEYBOARD_NAVIGATION_KEYS =\n new Set(['Tab', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']);\n\n/**\n * Components should call this when a user interacts with a component with a\n * keyboard event in the very special case that the component needs to call\n * focus inside of a keydown handler. Otherwise, this module will handle\n * keyboard events on window.\n *\n * By default, this will enable the strong focus to be shown.\n *\n * @param e The native keyboard event.\n */\nexport function keydownHandler(e: KeyboardEvent) {\n if (KEYBOARD_NAVIGATION_KEYS.has(e.key)) {\n focusObject.setVisible(true);\n }\n}\n\n/**\n * Set up integration with alternate global focus tracking object\n *\n * @param focusGlobal A global focus object to coordinate between multiple\n * systems\n * @param enableKeydownHandler Set to true to let StrongFocusService listen for\n * keyboard navigation\n */\nexport function setup(focusGlobal: StrongFocus, enableKeydownHandler = false) {\n focusObject = focusGlobal;\n\n // Server doesn't have addEventListener shimmed\n if (isServer) {\n return;\n }\n\n if (enableKeydownHandler) {\n window.addEventListener('keydown', keydownHandler);\n } else {\n window.removeEventListener('keydown', keydownHandler);\n }\n}\n\n/**\n * Setting for always showing strong focus\n *\n * Defaults to false, controlled by `setForceStrongFocus`\n */\nlet alwaysStrong = false;\n\n/**\n * Returns `true` if the component should show strong focus.\n *\n * By default, strong focus is shown only on keyboard navigation, and not on\n * pointer interaction.\n */\nexport function shouldShowStrongFocus() {\n return alwaysStrong || focusObject.visible;\n}\n\n/**\n * Control if strong focus should always be shown on component focus\n *\n * Defaults to `false`\n *\n * @param force Forces strong focus on the page. Disables strong focus if false.\n */\nexport function setForceStrongFocus(force: boolean) {\n alwaysStrong = force;\n}\n\n/**\n * If `true`, strong focus is always shown\n */\nexport function isStrongFocusForced() {\n return alwaysStrong;\n}\n\n/**\n * Components should call this when a user interacts with a component with a\n * pointing device.\n *\n * By default, this will prevent the strong focus from being shown.\n */\nexport function pointerPress() {\n focusObject.setVisible(false);\n}\n\nsetup(focusObject, true);"]}
package/sass/_shape.scss DELETED
@@ -1,154 +0,0 @@
1
- //
2
- // Copyright 2021 Google LLC
3
- // SPDX-License-Identifier: Apache-2.0
4
- //
5
-
6
- // go/keep-sorted start
7
- @use 'sass:list';
8
- @use 'sass:map';
9
- @use 'sass:meta';
10
- @use 'sass:string';
11
- // go/keep-sorted end
12
- // go/keep-sorted start
13
- @use './string-ext';
14
- @use './var';
15
- // go/keep-sorted end
16
-
17
- /// Resolves one or more shape tokens and expands them into 4 separate logical
18
- /// tokens for each corner.
19
- ///
20
- /// Must be called after `theme.create-theme-vars()`
21
- ///
22
- /// @example - scss
23
- /// $theme: (container-shape: (4px 4px 0 0));
24
- /// $tokens: theme.create-theme-vars($theme, component);
25
- /// $tokens: shape.resolve-tokens(
26
- /// $tokens,
27
- /// container-shape,
28
- /// );
29
- ///
30
- /// // (
31
- /// // container-shape-start-start: var(--md-component-container-shape-start-start, var(--md-component-container-shape, 4px)),
32
- /// // container-shape-start-end: var(--md-component-container-shape-start-end, var(--md-component-container-shape, 4px)),
33
- /// // container-shape-end-end: var(--md-component-container-shape-end-start, var(--md-component-container-shape, 0)),
34
- /// // container-shape-end-start: var(--md-component-container-shape-end-end, var(--md-component-container-shape, 0)),
35
- /// // )
36
- ///
37
- /// @param {Map} $tokens - The theme to resolve tokens for.
38
- /// @param {String...} $shape-tokens - The shape tokens to resolve.
39
- /// @return {Map} The theme with resolved shape tokens.
40
- @function resolve-tokens($tokens, $shape-tokens...) {
41
- @each $token in $shape-tokens {
42
- $shape: map.get($tokens, $token);
43
- @if $shape != null {
44
- @if not var.is-var($shape) {
45
- @error 'resolve-tokens() must be called after theme.create-theme-vars()';
46
- }
47
- $shape-name: var.name($shape);
48
- // fallback may be a stringified list, split into sass list again
49
- $shape: string-ext.split(var.fallback($shape));
50
- $shape-theme: resolver(
51
- $shape: $shape,
52
- );
53
-
54
- @each $key, $value in $shape-theme {
55
- $corner-name: '#{$shape-name}-#{$key}';
56
- $shape-theme: map.set(
57
- $shape-theme,
58
- $key,
59
- var.create($corner-name, var.create($shape-name, $value))
60
- );
61
- }
62
-
63
- // Add resolved values, but allow $theme to override the results if needed.
64
- $tokens: map.merge(
65
- (
66
- '#{$token}-start-start': map.get($shape-theme, start-start),
67
- '#{$token}-start-end': map.get($shape-theme, start-end),
68
- '#{$token}-end-end': map.get($shape-theme, end-end),
69
- '#{$token}-end-start': map.get($shape-theme, end-start),
70
- ),
71
- $tokens
72
- );
73
-
74
- $tokens: map.remove($tokens, $token);
75
- }
76
- }
77
-
78
- @return $tokens;
79
- }
80
-
81
- /// Generate a shape token list from the expanded corners.
82
- ///
83
- /// @example - scss
84
- /// $shape: shape.corners-to-shape-token(--md-component-container-shape);
85
- /// // (
86
- /// // var(--md-component-container-shape-start-start),
87
- /// // var(--md-component-container-shape-start-end),
88
- /// // var(--md-component-container-shape-end-end),
89
- /// // var(--md-component-container-shape-end-start),
90
- /// // )
91
- /// foo.theme((shape: $shape))
92
- ///
93
- /// @param {String} $shape-token - The shape variable the corners are generated from
94
- /// @return {List} A list that can be processed by `expand-corners`
95
- @function corners-to-shape-token($shape-token) {
96
- // NOTE: use a space separated list to avoid confusing `string-ext.split()`
97
- @return (
98
- var.create('#{$shape-token}-start-start')
99
- var.create('#{$shape-token}-start-end')
100
- var.create('#{$shape-token}-end-end')
101
- var.create('#{$shape-token}-end-start')
102
- );
103
- }
104
-
105
- /// Resolves a shape value by expanding it into logical values for each corner.
106
- ///
107
- /// @param {Number|List} $shape - The shape token's value.
108
- /// @return {Map} A map with logical tokens for each corner's value.
109
- @function resolver($args...) {
110
- $args: meta.keywords($args);
111
- $shape: map.get($args, shape);
112
- @if meta.type-of($shape) != 'list' {
113
- @return (
114
- start-start: $shape,
115
- start-end: $shape,
116
- end-end: $shape,
117
- end-start: $shape
118
- );
119
- }
120
-
121
- @if list.length($shape) == 1 {
122
- @return (
123
- start-start: list.nth($shape, 1),
124
- start-end: list.nth($shape, 1),
125
- end-end: list.nth($shape, 1),
126
- end-start: list.nth($shape, 1)
127
- );
128
- }
129
-
130
- @if list.length($shape) == 2 {
131
- @return (
132
- start-start: list.nth($shape, 1),
133
- start-end: list.nth($shape, 2),
134
- end-end: list.nth($shape, 1),
135
- end-start: list.nth($shape, 2)
136
- );
137
- }
138
-
139
- @if list.length($shape) == 3 {
140
- @return (
141
- start-start: list.nth($shape, 1),
142
- start-end: list.nth($shape, 2),
143
- end-end: list.nth($shape, 3),
144
- end-start: list.nth($shape, 2)
145
- );
146
- }
147
-
148
- @return (
149
- start-start: list.nth($shape, 1),
150
- start-end: list.nth($shape, 2),
151
- end-end: list.nth($shape, 3),
152
- end-start: list.nth($shape, 4)
153
- );
154
- }
@@ -1,45 +0,0 @@
1
- //
2
- // Copyright 2023 Google LLC
3
- // SPDX-License-Identifier: Apache-2.0
4
- //
5
-
6
- // go/keep-sorted start
7
- @use 'sass:map';
8
- // go/keep-sorted end
9
- // go/keep-sorted start
10
- @use './md-sys-color';
11
- @use './md-sys-elevation';
12
- @use './md-sys-shape';
13
- @use './md-sys-state';
14
- @use './md-sys-typescale';
15
- @use './v0_172/md-comp-extended-fab-branded';
16
- // go/keep-sorted end
17
-
18
- $_default: (
19
- 'md-sys-color': md-sys-color.values-light(),
20
- 'md-sys-elevation': md-sys-elevation.values(),
21
- 'md-sys-shape': md-sys-shape.values(),
22
- 'md-sys-state': md-sys-state.values(),
23
- 'md-sys-typescale': md-sys-typescale.values(),
24
- );
25
-
26
- $_unsupported-tokens: (
27
- 'label-text-font',
28
- 'label-text-line-height',
29
- 'label-text-size',
30
- 'label-text-tracking',
31
- 'label-text-weight'
32
- );
33
-
34
- @function values($deps: $_default, $exclude-hardcoded-values: false) {
35
- @return md-comp-extended-fab-branded.values($deps, $exclude-hardcoded-values);
36
- $tokens: map.remove($tokens, $_unsupported-tokens...);
37
- // TODO(b/271876162): remove when tokens compiler emits typescale tokens
38
- $tokens: map.merge(
39
- $tokens,
40
- (
41
- 'label-text-type': map.get($deps, 'md-sys-typescale', 'label-large'),
42
- )
43
- );
44
- @return $tokens;
45
- }
@@ -1,45 +0,0 @@
1
- //
2
- // Copyright 2023 Google LLC
3
- // SPDX-License-Identifier: Apache-2.0
4
- //
5
-
6
- // go/keep-sorted start
7
- @use 'sass:map';
8
- // go/keep-sorted end
9
- // go/keep-sorted start
10
- @use './md-sys-color';
11
- @use './md-sys-elevation';
12
- @use './md-sys-shape';
13
- @use './md-sys-state';
14
- @use './md-sys-typescale';
15
- @use './v0_172/md-comp-extended-fab-primary';
16
- // go/keep-sorted end
17
-
18
- $_default: (
19
- 'md-sys-color': md-sys-color.values-light(),
20
- 'md-sys-elevation': md-sys-elevation.values(),
21
- 'md-sys-shape': md-sys-shape.values(),
22
- 'md-sys-state': md-sys-state.values(),
23
- 'md-sys-typescale': md-sys-typescale.values(),
24
- );
25
-
26
- $_unsupported-tokens: (
27
- 'label-text-font',
28
- 'label-text-line-height',
29
- 'label-text-size',
30
- 'label-text-tracking',
31
- 'label-text-weight'
32
- );
33
-
34
- @function values($deps: $_default, $exclude-hardcoded-values: false) {
35
- @return md-comp-extended-fab-primary.values($deps, $exclude-hardcoded-values);
36
- $tokens: map.remove($tokens, $_unsupported-tokens...);
37
- // TODO(b/271876162): remove when tokens compiler emits typescale tokens
38
- $tokens: map.merge(
39
- $tokens,
40
- (
41
- 'label-text-type': map.get($deps, 'md-sys-typescale', 'label-large'),
42
- )
43
- );
44
- @return $tokens;
45
- }
@@ -1,48 +0,0 @@
1
- //
2
- // Copyright 2023 Google LLC
3
- // SPDX-License-Identifier: Apache-2.0
4
- //
5
-
6
- // go/keep-sorted start
7
- @use 'sass:map';
8
- // go/keep-sorted end
9
- // go/keep-sorted start
10
- @use './md-sys-color';
11
- @use './md-sys-elevation';
12
- @use './md-sys-shape';
13
- @use './md-sys-state';
14
- @use './md-sys-typescale';
15
- @use './v0_172/md-comp-extended-fab-secondary';
16
- // go/keep-sorted end
17
-
18
- $_default: (
19
- 'md-sys-color': md-sys-color.values-light(),
20
- 'md-sys-elevation': md-sys-elevation.values(),
21
- 'md-sys-shape': md-sys-shape.values(),
22
- 'md-sys-state': md-sys-state.values(),
23
- 'md-sys-typescale': md-sys-typescale.values(),
24
- );
25
-
26
- $_unsupported-tokens: (
27
- 'label-text-font',
28
- 'label-text-line-height',
29
- 'label-text-size',
30
- 'label-text-tracking',
31
- 'label-text-weight'
32
- );
33
-
34
- @function values($deps: $_default, $exclude-hardcoded-values: false) {
35
- @return md-comp-extended-fab-secondary.values(
36
- $deps,
37
- $exclude-hardcoded-values
38
- );
39
- $tokens: map.remove($tokens, $_unsupported-tokens...);
40
- // TODO(b/271876162): remove when tokens compiler emits typescale tokens
41
- $tokens: map.merge(
42
- $tokens,
43
- (
44
- 'label-text-type': map.get($deps, 'md-sys-typescale', 'label-large'),
45
- )
46
- );
47
- @return $tokens;
48
- }
@@ -1,45 +0,0 @@
1
- //
2
- // Copyright 2023 Google LLC
3
- // SPDX-License-Identifier: Apache-2.0
4
- //
5
-
6
- // go/keep-sorted start
7
- @use 'sass:map';
8
- // go/keep-sorted end
9
- // go/keep-sorted start
10
- @use './md-sys-color';
11
- @use './md-sys-elevation';
12
- @use './md-sys-shape';
13
- @use './md-sys-state';
14
- @use './md-sys-typescale';
15
- @use './v0_172/md-comp-extended-fab-surface';
16
- // go/keep-sorted end
17
-
18
- $_default: (
19
- 'md-sys-color': md-sys-color.values-light(),
20
- 'md-sys-elevation': md-sys-elevation.values(),
21
- 'md-sys-shape': md-sys-shape.values(),
22
- 'md-sys-state': md-sys-state.values(),
23
- 'md-sys-typescale': md-sys-typescale.values(),
24
- );
25
-
26
- $_unsupported-tokens: (
27
- 'label-text-font',
28
- 'label-text-line-height',
29
- 'label-text-size',
30
- 'label-text-tracking',
31
- 'label-text-weight'
32
- );
33
-
34
- @function values($deps: $_default, $exclude-hardcoded-values: false) {
35
- @return md-comp-extended-fab-surface.values($deps, $exclude-hardcoded-values);
36
- $tokens: map.remove($tokens, $_unsupported-tokens...);
37
- // TODO(b/271876162): remove when tokens compiler emits typescale tokens
38
- $tokens: map.merge(
39
- $tokens,
40
- (
41
- 'label-text-type': map.get($deps, 'md-sys-typescale', 'label-large'),
42
- )
43
- );
44
- @return $tokens;
45
- }