material 3.7.3 → 3.8.1

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 (440) hide show
  1. package/NOTICE +223 -0
  2. package/README.md +6 -4
  3. package/dist/components/badge/badge.d.ts +4 -0
  4. package/dist/components/badge/constants.d.ts +4 -0
  5. package/dist/components/badge/index.d.ts +1 -0
  6. package/dist/components/badge/types.d.ts +102 -0
  7. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +4 -0
  8. package/dist/components/bottom-app-bar/constants.d.ts +3 -0
  9. package/dist/components/bottom-app-bar/types.d.ts +42 -0
  10. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  11. package/dist/components/bottom-sheet/constants.d.ts +9 -0
  12. package/dist/components/bottom-sheet/types.d.ts +52 -0
  13. package/dist/components/button/button.d.ts +4 -0
  14. package/dist/components/button/constants.d.ts +20 -0
  15. package/dist/components/button/index.d.ts +1 -0
  16. package/dist/components/button/types.d.ts +190 -0
  17. package/dist/components/button-group/button-group.d.ts +4 -0
  18. package/dist/components/button-group/constants.d.ts +54 -0
  19. package/dist/components/button-group/index.d.ts +1 -0
  20. package/dist/components/button-group/types.d.ts +125 -0
  21. package/dist/components/card/card.d.ts +4 -0
  22. package/dist/components/card/constants.d.ts +11 -0
  23. package/dist/components/card/content.d.ts +16 -0
  24. package/dist/components/card/index.d.ts +2 -0
  25. package/dist/components/card/types.d.ts +123 -0
  26. package/dist/components/carousel/carousel.d.ts +1 -0
  27. package/dist/components/carousel/constants.d.ts +10 -0
  28. package/dist/components/carousel/types.d.ts +16 -0
  29. package/dist/components/checkbox/checkbox.d.ts +5 -0
  30. package/dist/components/checkbox/constants.d.ts +13 -0
  31. package/dist/components/checkbox/index.d.ts +2 -0
  32. package/dist/components/checkbox/types.d.ts +94 -0
  33. package/dist/components/chips/chips.d.ts +4 -0
  34. package/dist/components/chips/constants.d.ts +1 -0
  35. package/dist/components/chips/factories.d.ts +4 -0
  36. package/dist/components/chips/types.d.ts +140 -0
  37. package/dist/components/datepicker/constants.d.ts +38 -0
  38. package/dist/components/datepicker/datepicker.d.ts +2 -0
  39. package/dist/components/datepicker/types.d.ts +139 -0
  40. package/dist/components/dialog/constants.d.ts +45 -0
  41. package/dist/components/dialog/dialog.d.ts +5 -0
  42. package/dist/components/dialog/index.d.ts +1 -0
  43. package/dist/components/dialog/types.d.ts +196 -0
  44. package/dist/components/divider/config.d.ts +30 -0
  45. package/dist/components/divider/constants.d.ts +15 -0
  46. package/dist/components/divider/divider.d.ts +4 -0
  47. package/dist/components/divider/types.d.ts +27 -0
  48. package/dist/components/drawer/constants.d.ts +39 -0
  49. package/dist/components/drawer/drawer.d.ts +4 -0
  50. package/dist/components/drawer/index.d.ts +1 -0
  51. package/dist/components/drawer/types.d.ts +109 -0
  52. package/dist/components/extended-fab/constants.d.ts +32 -0
  53. package/dist/components/extended-fab/extended-fab.d.ts +4 -0
  54. package/dist/components/extended-fab/types.d.ts +126 -0
  55. package/dist/components/fab/constants.d.ts +26 -0
  56. package/dist/components/fab/fab.d.ts +4 -0
  57. package/dist/components/fab/types.d.ts +103 -0
  58. package/dist/components/fab-menu/constants.d.ts +9 -0
  59. package/dist/components/fab-menu/fab-menu.d.ts +4 -0
  60. package/dist/components/fab-menu/types.d.ts +41 -0
  61. package/dist/components/icon-button/constants.d.ts +34 -0
  62. package/dist/components/icon-button/icon-button.d.ts +4 -0
  63. package/dist/components/icon-button/types.d.ts +157 -0
  64. package/dist/components/index.d.ts +1 -0
  65. package/dist/components/list/constants.d.ts +30 -0
  66. package/dist/components/list/index.d.ts +1 -0
  67. package/dist/components/list/list.d.ts +4 -0
  68. package/dist/components/list/types.d.ts +110 -0
  69. package/dist/components/loading-indicator/constants.d.ts +16 -0
  70. package/dist/components/loading-indicator/features/renderer.d.ts +13 -0
  71. package/dist/components/loading-indicator/loading-indicator.d.ts +4 -0
  72. package/dist/components/loading-indicator/types.d.ts +21 -0
  73. package/dist/components/menu/constants.d.ts +51 -0
  74. package/dist/components/menu/features/controller.js +1 -1
  75. package/dist/components/menu/features/keyboard.js +8 -3
  76. package/dist/components/menu/features/opener.js +2 -16
  77. package/dist/components/menu/index.d.ts +2 -0
  78. package/dist/components/menu/inner.d.ts +2 -0
  79. package/dist/components/menu/menu.d.ts +4 -0
  80. package/dist/components/menu/on-demand.d.ts +9 -0
  81. package/dist/components/menu/types.d.ts +185 -1
  82. package/dist/components/navigation-bar/navigation-bar.d.ts +1 -0
  83. package/dist/components/navigation-bar/types.d.ts +12 -0
  84. package/dist/components/navigation-rail/constants.d.ts +2 -0
  85. package/dist/components/navigation-rail/navigation-rail.d.ts +1 -0
  86. package/dist/components/navigation-rail/types.d.ts +18 -0
  87. package/dist/components/progress/constants.d.ts +37 -0
  88. package/dist/components/progress/progress.d.ts +4 -0
  89. package/dist/components/progress/types.d.ts +136 -0
  90. package/dist/components/radios/constants.d.ts +14 -0
  91. package/dist/components/radios/radios.d.ts +4 -0
  92. package/dist/components/radios/types.d.ts +89 -0
  93. package/dist/components/search/constants.d.ts +34 -0
  94. package/dist/components/search/search.d.ts +4 -0
  95. package/dist/components/search/types.d.ts +109 -0
  96. package/dist/components/select/constants.d.ts +46 -0
  97. package/dist/components/select/features.js +9 -1
  98. package/dist/components/select/index.d.ts +2 -0
  99. package/dist/components/select/select.d.ts +4 -0
  100. package/dist/components/select/types.d.ts +95 -0
  101. package/dist/components/side-sheet/constants.d.ts +9 -0
  102. package/dist/components/side-sheet/side-sheet.d.ts +4 -0
  103. package/dist/components/side-sheet/types.d.ts +51 -0
  104. package/dist/components/slider/constants.d.ts +62 -0
  105. package/dist/components/slider/slider.d.ts +4 -0
  106. package/dist/components/slider/types.d.ts +78 -0
  107. package/dist/components/snackbar/constants.d.ts +37 -0
  108. package/dist/components/snackbar/snackbar.d.ts +5 -0
  109. package/dist/components/snackbar/types.d.ts +67 -0
  110. package/dist/components/split-button/api.js +13 -3
  111. package/dist/components/split-button/constants.d.ts +13 -0
  112. package/dist/components/split-button/split-button.d.ts +4 -0
  113. package/dist/components/split-button/types.d.ts +50 -0
  114. package/dist/components/switch/constants.d.ts +34 -0
  115. package/dist/components/switch/switch.d.ts +4 -0
  116. package/dist/components/switch/types.d.ts +55 -0
  117. package/dist/components/tabs/constants.d.ts +49 -0
  118. package/dist/components/tabs/indicator.d.ts +22 -0
  119. package/dist/components/tabs/responsive.d.ts +17 -0
  120. package/dist/components/tabs/tab.d.ts +5 -0
  121. package/dist/components/tabs/tabs.d.ts +4 -0
  122. package/dist/components/tabs/types.d.ts +170 -0
  123. package/dist/components/tabs/utils.d.ts +24 -0
  124. package/dist/components/text-field/constants.d.ts +61 -0
  125. package/dist/components/text-field/features/trailing-icon.d.ts +25 -0
  126. package/dist/components/text-field/text-field.d.ts +4 -0
  127. package/dist/components/text-field/types.d.ts +84 -0
  128. package/dist/components/timepicker/constants.d.ts +61 -0
  129. package/dist/components/timepicker/types.d.ts +145 -0
  130. package/dist/components/toolbar/constants.d.ts +8 -0
  131. package/dist/components/toolbar/toolbar.d.ts +4 -0
  132. package/dist/components/toolbar/types.d.ts +75 -0
  133. package/dist/components/tooltip/constants.d.ts +43 -0
  134. package/dist/components/tooltip/tooltip.d.ts +4 -0
  135. package/dist/components/tooltip/types.d.ts +78 -0
  136. package/dist/components/top-app-bar/constants.d.ts +29 -0
  137. package/dist/components/top-app-bar/top-app-bar.d.ts +4 -0
  138. package/dist/components/top-app-bar/types.d.ts +55 -0
  139. package/dist/core/canvas/animation.d.ts +6 -0
  140. package/dist/core/canvas/drawing.d.ts +47 -0
  141. package/dist/core/canvas/index.d.ts +1 -0
  142. package/dist/core/canvas/resize.d.ts +7 -0
  143. package/dist/core/canvas/utils.d.ts +39 -0
  144. package/dist/core/compose/base.d.ts +9 -0
  145. package/dist/core/compose/cleanup.d.ts +2 -0
  146. package/dist/core/compose/component.d.ts +13 -0
  147. package/dist/core/compose/features/badge.d.ts +10 -0
  148. package/dist/core/compose/features/checkable.d.ts +13 -0
  149. package/dist/core/compose/features/debounce.d.ts +19 -0
  150. package/dist/core/compose/features/disabled.d.ts +11 -0
  151. package/dist/core/compose/features/events.d.ts +19 -0
  152. package/dist/core/compose/features/icon.d.ts +20 -0
  153. package/dist/core/compose/features/input.d.ts +31 -0
  154. package/dist/core/compose/features/lifecycle.d.ts +16 -0
  155. package/dist/core/compose/features/position.d.ts +13 -0
  156. package/dist/core/compose/features/ripple.d.ts +17 -0
  157. package/dist/core/compose/features/size.d.ts +5 -0
  158. package/dist/core/compose/features/style.d.ts +5 -0
  159. package/dist/core/compose/features/text.d.ts +20 -0
  160. package/dist/core/compose/features/textinput.d.ts +39 -0
  161. package/dist/core/compose/features/textlabel.d.ts +18 -0
  162. package/dist/core/compose/features/throttle.d.ts +18 -0
  163. package/dist/core/compose/features/track.d.ts +12 -0
  164. package/dist/core/compose/features/variant.d.ts +5 -0
  165. package/dist/core/compose/features/withEvents.d.ts +12 -0
  166. package/dist/core/compose/pipe.d.ts +12 -0
  167. package/dist/core/compose/utils/type-guards.d.ts +5 -0
  168. package/dist/core/config/component.d.ts +17 -0
  169. package/dist/core/config/global.d.ts +15 -0
  170. package/dist/core/config.d.ts +34 -0
  171. package/dist/core/dom/attributes.d.ts +25 -0
  172. package/dist/core/dom/classes.d.ts +24 -0
  173. package/dist/core/dom/create.d.ts +47 -0
  174. package/dist/core/dom/events.d.ts +26 -0
  175. package/dist/core/dom/focus.d.ts +11 -0
  176. package/dist/core/dom/html.d.ts +6 -0
  177. package/dist/core/dom/layer.d.ts +36 -0
  178. package/dist/core/dom/roving.d.ts +7 -0
  179. package/dist/core/navigation/destinations.d.ts +10 -0
  180. package/dist/core/shapes/cubic.d.ts +8 -0
  181. package/dist/core/shapes/material.d.ts +45 -0
  182. package/dist/core/shapes/polygon.d.ts +11 -0
  183. package/dist/core/state/emitter.d.ts +19 -0
  184. package/dist/core/state/events.d.ts +17 -0
  185. package/dist/core/state/store.d.ts +40 -0
  186. package/dist/core/theme/shape.d.ts +3 -0
  187. package/dist/core/theme/tokens.d.ts +6 -0
  188. package/dist/core/utils/background.d.ts +7 -0
  189. package/dist/core/utils/color.d.ts +5 -0
  190. package/dist/core/utils/index.d.ts +9 -0
  191. package/dist/core/utils/mobile.d.ts +10 -0
  192. package/dist/core/utils/object.d.ts +9 -0
  193. package/dist/core/utils/performance.d.ts +20 -0
  194. package/dist/core/utils/theme.d.ts +8 -0
  195. package/dist/core/utils/url.d.ts +3 -0
  196. package/dist/elements/adapter.d.ts +24 -0
  197. package/dist/elements/badge.d.ts +4 -0
  198. package/dist/elements/bottom-app-bar.d.ts +4 -0
  199. package/dist/elements/bottom-sheet.d.ts +6 -0
  200. package/dist/elements/button-group.d.ts +8 -0
  201. package/dist/elements/button.d.ts +5 -0
  202. package/dist/elements/card.d.ts +4 -0
  203. package/dist/elements/carousel.d.ts +5 -0
  204. package/dist/elements/checkbox.d.ts +4 -0
  205. package/dist/elements/chips.d.ts +9 -0
  206. package/dist/elements/css/menu.css +1 -1
  207. package/dist/elements/css/menu.js +1 -1
  208. package/dist/elements/datepicker.d.ts +6 -0
  209. package/dist/elements/define.d.ts +48 -0
  210. package/dist/elements/dialog.d.ts +5 -0
  211. package/dist/elements/divider.d.ts +4 -0
  212. package/dist/elements/drawer.d.ts +6 -0
  213. package/dist/elements/extended-fab.d.ts +6 -0
  214. package/dist/elements/fab-menu.d.ts +10 -0
  215. package/dist/elements/fab.d.ts +6 -0
  216. package/dist/elements/icon-button.d.ts +6 -0
  217. package/dist/elements/index.d.ts +4 -0
  218. package/dist/elements/list.d.ts +8 -0
  219. package/dist/elements/loading-indicator.d.ts +4 -0
  220. package/dist/elements/menu.d.ts +12 -0
  221. package/dist/elements/navigation-bar.d.ts +6 -0
  222. package/dist/elements/navigation-rail.d.ts +10 -0
  223. package/dist/elements/preupgrade/badge.css +1 -1
  224. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  225. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  226. package/dist/elements/preupgrade/button-group.css +1 -1
  227. package/dist/elements/preupgrade/button.css +1 -1
  228. package/dist/elements/preupgrade/card.css +1 -1
  229. package/dist/elements/preupgrade/carousel.css +1 -1
  230. package/dist/elements/preupgrade/checkbox.css +1 -1
  231. package/dist/elements/preupgrade/chips.css +1 -1
  232. package/dist/elements/preupgrade/datepicker.css +1 -1
  233. package/dist/elements/preupgrade/dialog.css +1 -1
  234. package/dist/elements/preupgrade/divider.css +1 -1
  235. package/dist/elements/preupgrade/drawer.css +1 -1
  236. package/dist/elements/preupgrade/extended-fab.css +1 -1
  237. package/dist/elements/preupgrade/fab-menu.css +1 -1
  238. package/dist/elements/preupgrade/fab.css +1 -1
  239. package/dist/elements/preupgrade/icon-button.css +1 -1
  240. package/dist/elements/preupgrade/list.css +1 -1
  241. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  242. package/dist/elements/preupgrade/menu.css +1 -1
  243. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  244. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  245. package/dist/elements/preupgrade/progress.css +1 -1
  246. package/dist/elements/preupgrade/radios.css +1 -1
  247. package/dist/elements/preupgrade/search.css +1 -1
  248. package/dist/elements/preupgrade/select.css +1 -1
  249. package/dist/elements/preupgrade/side-sheet.css +1 -1
  250. package/dist/elements/preupgrade/slider.css +1 -1
  251. package/dist/elements/preupgrade/snackbar.css +1 -1
  252. package/dist/elements/preupgrade/split-button.css +1 -1
  253. package/dist/elements/preupgrade/switch.css +1 -1
  254. package/dist/elements/preupgrade/tabs.css +1 -1
  255. package/dist/elements/preupgrade/text-field.css +1 -1
  256. package/dist/elements/preupgrade/timepicker.css +1 -1
  257. package/dist/elements/preupgrade/toolbar.css +1 -1
  258. package/dist/elements/preupgrade/tooltip.css +1 -1
  259. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  260. package/dist/elements/preupgrade.css +1 -1
  261. package/dist/elements/progress.d.ts +4 -0
  262. package/dist/elements/radios.d.ts +5 -0
  263. package/dist/elements/search.d.ts +15 -0
  264. package/dist/elements/select.d.ts +6 -0
  265. package/dist/elements/side-sheet.d.ts +5 -0
  266. package/dist/elements/slider.d.ts +7 -0
  267. package/dist/elements/snackbar.d.ts +4 -0
  268. package/dist/elements/split-button.d.ts +8 -0
  269. package/dist/elements/styles.d.ts +11 -0
  270. package/dist/elements/switch.d.ts +5 -0
  271. package/dist/elements/tabs.d.ts +6 -0
  272. package/dist/elements/text-field.d.ts +9 -0
  273. package/dist/elements/timepicker.d.ts +9 -0
  274. package/dist/elements/toolbar.d.ts +4 -0
  275. package/dist/elements/tooltip.d.ts +4 -0
  276. package/dist/elements/top-app-bar.d.ts +4 -0
  277. package/dist/index.d.ts +1 -0
  278. package/dist/react/create.d.ts +15 -0
  279. package/dist/react/index.d.ts +1 -0
  280. package/dist/react/jsx.d.ts +3 -0
  281. package/dist/solid/create.d.ts +16 -0
  282. package/dist/solid/index.d.ts +1 -0
  283. package/dist/solid/jsx.d.ts +4 -0
  284. package/dist/ssr/index.d.ts +3 -0
  285. package/dist/ssr/solid.d.ts +1 -0
  286. package/dist/ssr/svelte.d.ts +1 -0
  287. package/dist/ssr/vue.d.ts +1 -0
  288. package/dist/styles/badge.css +1 -1
  289. package/dist/styles/base-lite.css +2 -2
  290. package/dist/styles/base.css +2 -2
  291. package/dist/styles/bottom-app-bar.css +1 -1
  292. package/dist/styles/bottom-sheet.css +1 -1
  293. package/dist/styles/button-group.css +1 -1
  294. package/dist/styles/button.css +1 -1
  295. package/dist/styles/card.css +1 -1
  296. package/dist/styles/carousel.css +1 -1
  297. package/dist/styles/checkbox.css +1 -1
  298. package/dist/styles/chips.css +1 -1
  299. package/dist/styles/contrast.css +2 -2
  300. package/dist/styles/datepicker.css +1 -1
  301. package/dist/styles/dialog.css +1 -1
  302. package/dist/styles/divider.css +1 -1
  303. package/dist/styles/drawer.css +1 -1
  304. package/dist/styles/extended-fab.css +1 -1
  305. package/dist/styles/fab-menu.css +1 -1
  306. package/dist/styles/fab.css +1 -1
  307. package/dist/styles/icon-button.css +1 -1
  308. package/dist/styles/list.css +1 -1
  309. package/dist/styles/loading-indicator.css +1 -1
  310. package/dist/styles/menu.css +2 -2
  311. package/dist/styles/navigation-bar.css +1 -1
  312. package/dist/styles/navigation-rail.css +1 -1
  313. package/dist/styles/progress.css +1 -1
  314. package/dist/styles/radios.css +1 -1
  315. package/dist/styles/search.css +1 -1
  316. package/dist/styles/select.css +1 -1
  317. package/dist/styles/side-sheet.css +1 -1
  318. package/dist/styles/slider.css +1 -1
  319. package/dist/styles/snackbar.css +1 -1
  320. package/dist/styles/split-button.css +1 -1
  321. package/dist/styles/switch.css +1 -1
  322. package/dist/styles/tabs.css +1 -1
  323. package/dist/styles/text-field.css +1 -1
  324. package/dist/styles/timepicker.css +1 -1
  325. package/dist/styles/toolbar.css +1 -1
  326. package/dist/styles/tooltip.css +1 -1
  327. package/dist/styles/top-app-bar.css +1 -1
  328. package/dist/styles/typography.css +1 -1
  329. package/dist/styles/utilities.css +1 -1
  330. package/dist/styles.css +2 -2
  331. package/dist/svelte/runtime.d.ts +21 -0
  332. package/dist/theme/image.d.ts +4 -0
  333. package/dist/theme/image.js +5 -0
  334. package/dist/theme/index.d.ts +43 -0
  335. package/dist/theme/index.js +32 -0
  336. package/dist/theme/roles.js +68 -0
  337. package/dist/theme/variants.d.ts +15 -0
  338. package/dist/theme/variants.js +17 -0
  339. package/dist/theme/vendor/contrast/contrast.js +72 -0
  340. package/dist/theme/vendor/dislike/dislike_analyzer.js +31 -0
  341. package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +64 -0
  342. package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +663 -0
  343. package/dist/theme/vendor/dynamiccolor/contrast_curve.js +42 -0
  344. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +63 -0
  345. package/dist/theme/vendor/dynamiccolor/dynamic_color.js +264 -0
  346. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +100 -0
  347. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +418 -0
  348. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +125 -0
  349. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +311 -0
  350. package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +27 -0
  351. package/dist/theme/vendor/dynamiccolor/variant.js +28 -0
  352. package/dist/theme/vendor/hct/cam16.js +249 -0
  353. package/dist/theme/vendor/hct/hct.d.ts +32 -0
  354. package/dist/theme/vendor/hct/hct.js +86 -0
  355. package/dist/theme/vendor/hct/hct_solver.js +390 -0
  356. package/dist/theme/vendor/hct/viewing_conditions.js +73 -0
  357. package/dist/theme/vendor/palettes/tonal_palette.js +114 -0
  358. package/dist/theme/vendor/quantize/lab_point_provider.js +31 -0
  359. package/dist/theme/vendor/quantize/quantizer_celebi.js +25 -0
  360. package/dist/theme/vendor/quantize/quantizer_map.js +31 -0
  361. package/dist/theme/vendor/quantize/quantizer_wsmeans.js +178 -0
  362. package/dist/theme/vendor/quantize/quantizer_wu.js +342 -0
  363. package/dist/theme/vendor/scheme/scheme_content.js +30 -0
  364. package/dist/theme/vendor/scheme/scheme_expressive.js +30 -0
  365. package/dist/theme/vendor/scheme/scheme_fidelity.js +30 -0
  366. package/dist/theme/vendor/scheme/scheme_monochrome.js +30 -0
  367. package/dist/theme/vendor/scheme/scheme_neutral.js +30 -0
  368. package/dist/theme/vendor/scheme/scheme_tonal_spot.js +30 -0
  369. package/dist/theme/vendor/scheme/scheme_vibrant.js +30 -0
  370. package/dist/theme/vendor/score/score.js +100 -0
  371. package/dist/theme/vendor/temperature/temperature_cache.js +198 -0
  372. package/dist/theme/vendor/utils/color_utils.js +173 -0
  373. package/dist/theme/vendor/utils/image_utils.js +72 -0
  374. package/dist/theme/vendor/utils/math_utils.js +75 -0
  375. package/dist/theme/vendor/utils/string_utils.js +61 -0
  376. package/dist/themes/autumn-contrast.css +2 -2
  377. package/dist/themes/autumn.css +2 -2
  378. package/dist/themes/baseline-contrast.css +2 -2
  379. package/dist/themes/baseline.css +2 -2
  380. package/dist/themes/brownbeige-contrast.css +2 -2
  381. package/dist/themes/brownbeige.css +2 -2
  382. package/dist/themes/content-contrast.css +2 -2
  383. package/dist/themes/content.css +2 -2
  384. package/dist/themes/desert-contrast.css +2 -2
  385. package/dist/themes/desert.css +2 -2
  386. package/dist/themes/expressive-contrast.css +2 -2
  387. package/dist/themes/expressive.css +2 -2
  388. package/dist/themes/fidelity-contrast.css +2 -2
  389. package/dist/themes/fidelity.css +2 -2
  390. package/dist/themes/forest-contrast.css +2 -2
  391. package/dist/themes/forest.css +2 -2
  392. package/dist/themes/fruit-salad-contrast.css +2 -2
  393. package/dist/themes/fruit-salad.css +2 -2
  394. package/dist/themes/highcontrast-contrast.css +2 -2
  395. package/dist/themes/highcontrast.css +2 -2
  396. package/dist/themes/monochrome-contrast.css +2 -2
  397. package/dist/themes/monochrome.css +2 -2
  398. package/dist/themes/neutral-contrast.css +2 -2
  399. package/dist/themes/neutral.css +2 -2
  400. package/dist/themes/ocean-contrast.css +2 -2
  401. package/dist/themes/ocean.css +2 -2
  402. package/dist/themes/rainbow-contrast.css +2 -2
  403. package/dist/themes/rainbow.css +2 -2
  404. package/dist/themes/sageivory-contrast.css +2 -2
  405. package/dist/themes/sageivory.css +2 -2
  406. package/dist/themes/spring-contrast.css +2 -2
  407. package/dist/themes/spring.css +2 -2
  408. package/dist/themes/summer-contrast.css +2 -2
  409. package/dist/themes/summer.css +2 -2
  410. package/dist/themes/sunset-contrast.css +2 -2
  411. package/dist/themes/sunset.css +2 -2
  412. package/dist/themes/tealcaramel-contrast.css +2 -2
  413. package/dist/themes/tealcaramel.css +2 -2
  414. package/dist/themes/vibrant-contrast.css +2 -2
  415. package/dist/themes/vibrant.css +2 -2
  416. package/dist/vue/create.d.ts +18 -0
  417. package/dist/vue/index.d.ts +1 -0
  418. package/package.json +14 -1
  419. package/src/styles/components/_menu.scss +14 -1
  420. package/src/styles/themes/_autumn.scss +20 -2
  421. package/src/styles/themes/_base-theme.scss +34 -24
  422. package/src/styles/themes/_baseline.scss +18 -0
  423. package/src/styles/themes/_brownbeige.scss +30 -2
  424. package/src/styles/themes/_content.scss +30 -2
  425. package/src/styles/themes/_desert.scss +30 -2
  426. package/src/styles/themes/_expressive.scss +30 -2
  427. package/src/styles/themes/_fidelity.scss +30 -2
  428. package/src/styles/themes/_forest.scss +20 -2
  429. package/src/styles/themes/_fruit-salad.scss +30 -2
  430. package/src/styles/themes/_highcontrast.scss +21 -2
  431. package/src/styles/themes/_monochrome.scss +30 -2
  432. package/src/styles/themes/_neutral.scss +30 -2
  433. package/src/styles/themes/_ocean.scss +20 -2
  434. package/src/styles/themes/_rainbow.scss +30 -2
  435. package/src/styles/themes/_sageivory.scss +30 -2
  436. package/src/styles/themes/_spring.scss +20 -2
  437. package/src/styles/themes/_summer.scss +30 -2
  438. package/src/styles/themes/_sunset.scss +20 -2
  439. package/src/styles/themes/_tealcaramel.scss +30 -2
  440. package/src/styles/themes/_vibrant.scss +30 -2
@@ -1,17 +1,21 @@
1
+ /** What every generated Svelte component (`dist/svelte/*.svelte`) runs. */
1
2
  import type { Snippet } from "svelte";
2
3
  import type { Action } from "svelte/action";
3
4
  import type { HTMLAttributes } from "svelte/elements";
4
5
  import type { DefineOptions, ElementEvents, ElementProperties, ElementProps, ElementSlotProp } from "../elements/index.js";
5
6
  import { type ComponentSpec, type DeclarationSpec, type DefaultProps, type FormProps, type RetiredEvents } from "../elements/adapter.js";
6
7
  export { configure } from "../elements/adapter.js";
8
+ /** `change` → `onchange`, as Svelte 5 names event props, typed with the element's event. */
7
9
  export type EventProps<S> = {
8
10
  [K in keyof ElementEvents<S> & string as `on${K}`]?: (event: ElementEvents<S>[K]) => void;
9
11
  };
10
12
  type BaseProps<S> = ElementProps<S> & DefaultProps<S> & FormProps<S> & EventProps<S>;
13
+ /** Each named slot as a snippet prop (`{#snippet actions()}`); a text prop of the same name (`headline`) takes its text or a snippet. */
11
14
  type SnippetProps<S, P> = {
12
15
  [K in ElementSlotProp<S>]?: (K extends keyof P ? Exclude<P[K], undefined> : never) | Snippet;
13
16
  };
14
17
  type OwnProps<S> = Omit<BaseProps<S>, ElementSlotProp<S>> & SnippetProps<S, BaseProps<S>>;
18
+ /** `nonce` is global; Svelte types it on script and style only. */
15
19
  type SvelteHostGaps = {
16
20
  nonce?: string;
17
21
  };
@@ -19,37 +23,54 @@ type Missing<Base, Extra> = {
19
23
  [K in Exclude<keyof Extra, keyof Base>]?: K extends keyof Extra ? Extra[K] : never;
20
24
  };
21
25
  type SvelteHostAttributes = HTMLAttributes<HTMLElement> & Missing<HTMLAttributes<HTMLElement>, SvelteHostGaps>;
26
+ /** Props of a generated component: the element's own, plus any HTML attribute for the host. */
22
27
  export type SvelteProps<S> = OwnProps<S> & Omit<SvelteHostAttributes, keyof OwnProps<S> | "children" | RetiredProps<S>> & {
23
28
  [K in RetiredProps<S>]?: `${K} was removed in material 3.0.0: use onchange`;
24
29
  } & {
25
30
  children?: Snippet;
26
31
  };
32
+ /** The handler props of events material 3.0.0 removed (`ontoggle` on the icon button): refused, see `RetiredEvents`. */
27
33
  type RetiredProps<S> = `on${RetiredEvents<S>}`;
34
+ /** The live properties a generated component binds (`bind:checked`). */
28
35
  export type Bindable<S> = keyof ElementProperties<S> & string;
29
36
  export type DeclarationProps<A> = A & Omit<SvelteHostAttributes, keyof A | "children"> & {
30
37
  children?: Snippet;
31
38
  };
39
+ /** What a generated component passes its action on every update. */
32
40
  export interface Binding {
41
+ /** The component's props other than the bindable ones and `children`. */
33
42
  props: Record<string, unknown>;
43
+ /** The bindable props' current values. */
34
44
  live: Record<string, unknown>;
45
+ /** Writes a bindable prop back, for `bind:`. */
35
46
  set: Record<string, (value: unknown) => void>;
36
47
  }
37
48
  export interface Adapter {
38
49
  tag: string;
50
+ /** What to spread on the element. */
39
51
  attributes: (props: Record<string, unknown>, live: Record<string, unknown>, shadow?: string) => Record<string, unknown>;
52
+ /** The named snippets, each with the slot it renders into (`headerAction` → `header-action`). */
40
53
  snippets: (props: Record<string, unknown>) => Array<[
41
54
  slot: string,
42
55
  snippet: Snippet
43
56
  ]>;
44
57
  action: Action<HTMLElement, Binding>;
45
58
  }
59
+ /**
60
+ * The runtime of the Svelte component for an element.
61
+ * @param spec
62
+ * @param define
63
+ */
46
64
  export declare const adapter: (spec: ComponentSpec, define: (options?: DefineOptions) => string) => Adapter;
65
+ /** The runtime of the Svelte component for a declaration child; its parent registers the tag. */
47
66
  export declare const declaration: (spec: DeclarationSpec) => {
48
67
  tag: string;
49
68
  attributes: (props: Record<string, unknown>) => Record<string, unknown>;
50
69
  };
70
+ /** Installed only by `material/ssr/svelte` on `Symbol.for("mtrl.ssr")`. */
51
71
  export type SvelteShadowRenderer = (tag: string, attributes: Record<string, unknown>, children: Snippet | undefined, slots: Array<[
52
72
  slot: string,
53
73
  snippet: Snippet
54
74
  ]>, prefix: string) => string;
75
+ /** The declarative shadow template for a host, or `""` in the browser, when `material/ssr/svelte` was not imported, and when the element opts out of SSR. */
55
76
  export declare const shadowMarkup: (runtime: Adapter, props: Record<string, unknown>, children: Snippet | undefined, live: Record<string, unknown>) => string;
@@ -0,0 +1,4 @@
1
+ /** The dominant-colour path, behind `material/theme/image`. */
2
+ import { Hct } from "./vendor/hct/hct.js";
3
+ /** The source colour of an image: its dominant colour, found by quantizing the pixels and scoring the result. */
4
+ export declare function sourceColorFromImage(image: HTMLImageElement): Promise<Hct>;
@@ -0,0 +1,5 @@
1
+ import { Hct } from "./vendor/hct/hct.js";
2
+ import { sourceColorFromImage as argbFromImage } from "./vendor/utils/image_utils.js";
3
+ export async function sourceColorFromImage(image) {
4
+ return Hct.fromInt(await argbFromImage(image));
5
+ }
@@ -0,0 +1,43 @@
1
+ /** Runtime colour: a Material 3 dynamic scheme generated from a seed colour and written to the page as the `--<prefix>-sys-color-*` tokens the stylesheet already reads. */
2
+ import { DynamicScheme } from "./vendor/dynamiccolor/dynamic_scheme.js";
3
+ import { Hct } from "./vendor/hct/hct.js";
4
+ export { Hct };
5
+ export type { DynamicScheme };
6
+ /** A scheme factory: the source colour, whether it is dark, and the contrast level. */
7
+ export type SchemeFactory = (source: Hct, dark: boolean, contrastLevel: number) => DynamicScheme;
8
+ /** The tonal-spot variant, Material's default theme. */
9
+ export declare const tonalSpot: SchemeFactory;
10
+ /** The vibrant variant. */
11
+ export declare const vibrant: SchemeFactory;
12
+ /** The expressive variant. */
13
+ export declare const expressive: SchemeFactory;
14
+ /** The fidelity variant. */
15
+ export declare const fidelity: SchemeFactory;
16
+ /** The content variant. */
17
+ export declare const content: SchemeFactory;
18
+ /** The neutral variant. */
19
+ export declare const neutral: SchemeFactory;
20
+ /** The monochrome variant. */
21
+ export declare const monochrome: SchemeFactory;
22
+ /** The mode of the generated scheme: a light or a dark one. */
23
+ export type SchemeMode = "light" | "dark";
24
+ export interface SchemeOptions {
25
+ /** The variant to generate, as its factory — `tonalSpot`, `vibrant`, or another of the seven. */
26
+ variant?: SchemeFactory;
27
+ /** Generate the dark scheme. */
28
+ mode?: SchemeMode;
29
+ /** The contrast level, `-1` (reduced) to `1` (high), continuous; `0` is the standard level. */
30
+ contrast?: number;
31
+ }
32
+ /**
33
+ * Generates a dynamic colour scheme from one seed colour.
34
+ * @param seed
35
+ * @param options
36
+ */
37
+ export declare function createScheme(seed: string | number | Hct, options?: SchemeOptions): DynamicScheme;
38
+ export interface ApplyOptions {
39
+ /** The custom-property prefix the stylesheet was compiled with (`$prefix`, `mtrl` by default). */
40
+ prefix?: string;
41
+ }
42
+ /** Writes the scheme's role colours to `--<prefix>-sys-color-*` on the target, the same tokens the theme partials set, so a runtime scheme and a Sass theme are interchangeable. */
43
+ export declare function applyScheme(scheme: DynamicScheme, target?: Element, options?: ApplyOptions): void;
@@ -0,0 +1,32 @@
1
+ import { MaterialDynamicColors } from "./vendor/dynamiccolor/material_dynamic_colors.js";
2
+ import { Hct } from "./vendor/hct/hct.js";
3
+ import { SchemeContent } from "./vendor/scheme/scheme_content.js";
4
+ import { SchemeExpressive } from "./vendor/scheme/scheme_expressive.js";
5
+ import { SchemeFidelity } from "./vendor/scheme/scheme_fidelity.js";
6
+ import { SchemeMonochrome } from "./vendor/scheme/scheme_monochrome.js";
7
+ import { SchemeNeutral } from "./vendor/scheme/scheme_neutral.js";
8
+ import { SchemeTonalSpot } from "./vendor/scheme/scheme_tonal_spot.js";
9
+ import { SchemeVibrant } from "./vendor/scheme/scheme_vibrant.js";
10
+ import { argbFromHex, hexFromArgb } from "./vendor/utils/string_utils.js";
11
+ import { camel, SCHEME_ROLES } from "./roles.js";
12
+ export { Hct };
13
+ export const tonalSpot = (source, dark, contrast) => new SchemeTonalSpot(source, dark, contrast);
14
+ export const vibrant = (source, dark, contrast) => new SchemeVibrant(source, dark, contrast);
15
+ export const expressive = (source, dark, contrast) => new SchemeExpressive(source, dark, contrast);
16
+ export const fidelity = (source, dark, contrast) => new SchemeFidelity(source, dark, contrast);
17
+ export const content = (source, dark, contrast) => new SchemeContent(source, dark, contrast);
18
+ export const neutral = (source, dark, contrast) => new SchemeNeutral(source, dark, contrast);
19
+ export const monochrome = (source, dark, contrast) => new SchemeMonochrome(source, dark, contrast);
20
+ export function createScheme(seed, options = {}) {
21
+ const source = typeof seed === "string" ? Hct.fromInt(argbFromHex(seed)) : typeof seed === "number" ? Hct.fromInt(seed) : seed;
22
+ const variant = options.variant ?? tonalSpot;
23
+ return variant(source, options.mode === "dark", options.contrast ?? 0);
24
+ }
25
+ export function applyScheme(scheme, target = document.documentElement, options = {}) {
26
+ const { prefix = "mtrl" } = options;
27
+ const colors = new MaterialDynamicColors();
28
+ const { style } = target;
29
+ for (const role of SCHEME_ROLES) {
30
+ style.setProperty(`--${prefix}-sys-color-${role}`, hexFromArgb(colors[camel(role)]().getArgb(scheme)));
31
+ }
32
+ }
@@ -0,0 +1,68 @@
1
+ import { MaterialDynamicColors } from "./vendor/dynamiccolor/material_dynamic_colors.js";
2
+ import { Hct } from "./vendor/hct/hct.js";
3
+ import { TonalPalette } from "./vendor/palettes/tonal_palette.js";
4
+ export const STATUS_ROLES = [
5
+ "success",
6
+ "on-success",
7
+ "warning",
8
+ "on-warning",
9
+ "info",
10
+ "on-info",
11
+ ];
12
+ export const SCHEME_ROLES = [
13
+ "primary",
14
+ "on-primary",
15
+ "primary-container",
16
+ "on-primary-container",
17
+ "secondary",
18
+ "on-secondary",
19
+ "secondary-container",
20
+ "on-secondary-container",
21
+ "tertiary",
22
+ "on-tertiary",
23
+ "tertiary-container",
24
+ "on-tertiary-container",
25
+ "error",
26
+ "on-error",
27
+ "error-container",
28
+ "on-error-container",
29
+ "surface",
30
+ "surface-dim",
31
+ "surface-bright",
32
+ "surface-container-lowest",
33
+ "surface-container-low",
34
+ "surface-container",
35
+ "surface-container-high",
36
+ "surface-container-highest",
37
+ "surface-variant",
38
+ "on-surface",
39
+ "on-surface-variant",
40
+ "outline",
41
+ "outline-variant",
42
+ "shadow",
43
+ "scrim",
44
+ "inverse-surface",
45
+ "inverse-on-surface",
46
+ "inverse-primary",
47
+ "success",
48
+ "on-success",
49
+ "warning",
50
+ "on-warning",
51
+ "info",
52
+ "on-info",
53
+ ];
54
+ export const camel = (role) => role.replace(/-([a-z])/g, (_m, c) => c.toUpperCase());
55
+ const proto = MaterialDynamicColors.prototype;
56
+ SCHEME_ROLES.slice(34).forEach((k, i) => {
57
+ const f = Hct.fromInt([0x7b5a, 0xdd6d06, 0x61a4][i >> 1]);
58
+ proto[camel(k)] = () => ({
59
+ getArgb: (s) => proto[i & 1 ? "onError" : "error"]().getArgb({
60
+ __proto__: s,
61
+ errorPalette: TonalPalette.fromInt(Hct.from(f.hue + Math.max(-15, Math.min(15, (((s.variant && Hct.fromInt(s.primaryPalette.tone(40)).hue) - f.hue + 540) % 360 - 180) * 0.5)), f.chroma, f.tone).toInt()),
62
+ }),
63
+ });
64
+ });
65
+ export function statusRolesArgb(scheme, primaryArgb) {
66
+ const s = primaryArgb !== undefined ? { __proto__: scheme, primaryPalette: { tone: () => primaryArgb } } : scheme;
67
+ return Object.fromEntries(STATUS_ROLES.map((r) => [r, proto[camel(r)]().getArgb(s)]));
68
+ }
@@ -0,0 +1,15 @@
1
+ /** The name-based variant lookup: `createSchemeByName` and the seven names. */
2
+ import { Hct } from "./vendor/hct/hct.js";
3
+ import { type DynamicScheme, type SchemeMode } from "./index.js";
4
+ /** The dynamic-scheme variants Material 3 names, in its order. */
5
+ export type ThemeVariant = "tonal-spot" | "vibrant" | "expressive" | "fidelity" | "content" | "neutral" | "monochrome";
6
+ export interface NamedSchemeOptions {
7
+ /** The variant to generate by name. */
8
+ variant?: ThemeVariant;
9
+ /** Generate the dark scheme. */
10
+ mode?: SchemeMode;
11
+ /** The contrast level, `-1` to `1`, continuous. */
12
+ contrast?: number;
13
+ }
14
+ /** Generates a dynamic colour scheme from one seed colour, the variant named. */
15
+ export declare function createSchemeByName(seed: string | number | Hct, options?: NamedSchemeOptions): DynamicScheme;
@@ -0,0 +1,17 @@
1
+ import { content, createScheme, expressive, fidelity, monochrome, neutral, tonalSpot, vibrant, } from "./index.js";
2
+ const VARIANTS = {
3
+ "tonal-spot": tonalSpot,
4
+ vibrant,
5
+ expressive,
6
+ fidelity,
7
+ content,
8
+ neutral,
9
+ monochrome,
10
+ };
11
+ export function createSchemeByName(seed, options = {}) {
12
+ return createScheme(seed, {
13
+ variant: VARIANTS[options.variant ?? "tonal-spot"],
14
+ mode: options.mode,
15
+ contrast: options.contrast,
16
+ });
17
+ }
@@ -0,0 +1,72 @@
1
+ /*!
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import * as utils from "../utils/color_utils.js";
18
+ import * as math from "../utils/math_utils.js";
19
+ export class Contrast {
20
+ static ratioOfTones(toneA, toneB) {
21
+ toneA = math.clampDouble(0.0, 100.0, toneA);
22
+ toneB = math.clampDouble(0.0, 100.0, toneB);
23
+ return Contrast.ratioOfYs(utils.yFromLstar(toneA), utils.yFromLstar(toneB));
24
+ }
25
+ static ratioOfYs(y1, y2) {
26
+ const lighter = y1 > y2 ? y1 : y2;
27
+ const darker = (lighter === y2) ? y1 : y2;
28
+ return (lighter + 5.0) / (darker + 5.0);
29
+ }
30
+ static lighter(tone, ratio) {
31
+ if (tone < 0.0 || tone > 100.0) {
32
+ return -1.0;
33
+ }
34
+ const darkY = utils.yFromLstar(tone);
35
+ const lightY = ratio * (darkY + 5.0) - 5.0;
36
+ const realContrast = Contrast.ratioOfYs(lightY, darkY);
37
+ const delta = Math.abs(realContrast - ratio);
38
+ if (realContrast < ratio && delta > 0.04) {
39
+ return -1;
40
+ }
41
+ const returnValue = utils.lstarFromY(lightY) + 0.4;
42
+ if (returnValue < 0 || returnValue > 100) {
43
+ return -1;
44
+ }
45
+ return returnValue;
46
+ }
47
+ static darker(tone, ratio) {
48
+ if (tone < 0.0 || tone > 100.0) {
49
+ return -1.0;
50
+ }
51
+ const lightY = utils.yFromLstar(tone);
52
+ const darkY = ((lightY + 5.0) / ratio) - 5.0;
53
+ const realContrast = Contrast.ratioOfYs(lightY, darkY);
54
+ const delta = Math.abs(realContrast - ratio);
55
+ if (realContrast < ratio && delta > 0.04) {
56
+ return -1;
57
+ }
58
+ const returnValue = utils.lstarFromY(darkY) - 0.4;
59
+ if (returnValue < 0 || returnValue > 100) {
60
+ return -1;
61
+ }
62
+ return returnValue;
63
+ }
64
+ static lighterUnsafe(tone, ratio) {
65
+ const lighterSafe = Contrast.lighter(tone, ratio);
66
+ return (lighterSafe < 0.0) ? 100.0 : lighterSafe;
67
+ }
68
+ static darkerUnsafe(tone, ratio) {
69
+ const darkerSafe = Contrast.darker(tone, ratio);
70
+ return (darkerSafe < 0.0) ? 0.0 : darkerSafe;
71
+ }
72
+ }
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * @license
3
+ * Copyright 2023 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Hct } from "../hct/hct.js";
18
+ export class DislikeAnalyzer {
19
+ static isDisliked(hct) {
20
+ const huePasses = Math.round(hct.hue) >= 90.0 && Math.round(hct.hue) <= 111.0;
21
+ const chromaPasses = Math.round(hct.chroma) > 16.0;
22
+ const tonePasses = Math.round(hct.tone) < 65.0;
23
+ return huePasses && chromaPasses && tonePasses;
24
+ }
25
+ static fixIfDisliked(hct) {
26
+ if (DislikeAnalyzer.isDisliked(hct)) {
27
+ return Hct.from(hct.hue, hct.chroma, 70.0);
28
+ }
29
+ return hct;
30
+ }
31
+ }
@@ -0,0 +1,64 @@
1
+ /** A delegate for the dynamic color spec of a DynamicScheme in the 2021 spec. */
2
+ export class ColorSpecDelegateImpl2021 {
3
+ primaryPaletteKeyColor(): DynamicColor;
4
+ secondaryPaletteKeyColor(): DynamicColor;
5
+ tertiaryPaletteKeyColor(): DynamicColor;
6
+ neutralPaletteKeyColor(): DynamicColor;
7
+ neutralVariantPaletteKeyColor(): DynamicColor;
8
+ errorPaletteKeyColor(): DynamicColor;
9
+ background(): DynamicColor;
10
+ onBackground(): DynamicColor;
11
+ surface(): DynamicColor;
12
+ surfaceDim(): DynamicColor;
13
+ surfaceBright(): DynamicColor;
14
+ surfaceContainerLowest(): DynamicColor;
15
+ surfaceContainerLow(): DynamicColor;
16
+ surfaceContainer(): DynamicColor;
17
+ surfaceContainerHigh(): DynamicColor;
18
+ surfaceContainerHighest(): DynamicColor;
19
+ onSurface(): DynamicColor;
20
+ surfaceVariant(): DynamicColor;
21
+ onSurfaceVariant(): DynamicColor;
22
+ inverseSurface(): DynamicColor;
23
+ inverseOnSurface(): DynamicColor;
24
+ outline(): DynamicColor;
25
+ outlineVariant(): DynamicColor;
26
+ shadow(): DynamicColor;
27
+ scrim(): DynamicColor;
28
+ surfaceTint(): DynamicColor;
29
+ primary(): DynamicColor;
30
+ primaryDim(): undefined;
31
+ onPrimary(): DynamicColor;
32
+ primaryContainer(): DynamicColor;
33
+ onPrimaryContainer(): DynamicColor;
34
+ inversePrimary(): DynamicColor;
35
+ secondary(): DynamicColor;
36
+ secondaryDim(): undefined;
37
+ onSecondary(): DynamicColor;
38
+ secondaryContainer(): DynamicColor;
39
+ onSecondaryContainer(): DynamicColor;
40
+ tertiary(): DynamicColor;
41
+ tertiaryDim(): undefined;
42
+ onTertiary(): DynamicColor;
43
+ tertiaryContainer(): DynamicColor;
44
+ onTertiaryContainer(): DynamicColor;
45
+ error(): DynamicColor;
46
+ errorDim(): undefined;
47
+ onError(): DynamicColor;
48
+ errorContainer(): DynamicColor;
49
+ onErrorContainer(): DynamicColor;
50
+ primaryFixed(): DynamicColor;
51
+ primaryFixedDim(): DynamicColor;
52
+ onPrimaryFixed(): DynamicColor;
53
+ onPrimaryFixedVariant(): DynamicColor;
54
+ secondaryFixed(): DynamicColor;
55
+ secondaryFixedDim(): DynamicColor;
56
+ onSecondaryFixed(): DynamicColor;
57
+ onSecondaryFixedVariant(): DynamicColor;
58
+ tertiaryFixed(): DynamicColor;
59
+ tertiaryFixedDim(): DynamicColor;
60
+ onTertiaryFixed(): DynamicColor;
61
+ onTertiaryFixedVariant(): DynamicColor;
62
+ highestSurface(s: any): DynamicColor;
63
+ }
64
+ import { DynamicColor } from "./dynamic_color.js";