material 3.9.0 → 3.10.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 (618) hide show
  1. package/NOTICE +3 -1
  2. package/README.md +5 -5
  3. package/dist/components/badge/index.d.ts +167 -3
  4. package/dist/components/bottom-app-bar/index.d.ts +141 -4
  5. package/dist/components/bottom-sheet/index.d.ts +114 -2
  6. package/dist/components/button/index.d.ts +10 -5
  7. package/dist/components/button-group/button-group.js +1 -0
  8. package/dist/components/button-group/config.js +9 -6
  9. package/dist/components/button-group/index.d.ts +250 -6
  10. package/dist/components/card/api.js +19 -0
  11. package/dist/components/card/index.d.ts +326 -5
  12. package/dist/components/carousel/features/slides.js +17 -7
  13. package/dist/components/carousel/index.d.ts +102 -3
  14. package/dist/components/checkbox/index.d.ts +217 -5
  15. package/dist/components/chips/chip/chip.js +4 -3
  16. package/dist/components/chips/index.d.ts +343 -3
  17. package/dist/components/datepicker/datepicker.js +62 -84
  18. package/dist/components/datepicker/index.d.ts +313 -2
  19. package/dist/components/datepicker/render.js +25 -21
  20. package/dist/components/datepicker/utils.js +65 -110
  21. package/dist/components/dialog/features.js +1 -1
  22. package/dist/components/dialog/index.d.ts +333 -3
  23. package/dist/components/divider/index.d.ts +96 -3
  24. package/dist/components/drawer/features/items.js +10 -2
  25. package/dist/components/drawer/index.d.ts +196 -3
  26. package/dist/components/extended-fab/index.d.ts +224 -2
  27. package/dist/components/fab/index.d.ts +183 -2
  28. package/dist/components/fab-menu/index.d.ts +106 -6
  29. package/dist/components/icon-button/index.d.ts +11 -4
  30. package/dist/components/list/features/anatomy.js +25 -6
  31. package/dist/components/list/features/selection.js +30 -2
  32. package/dist/components/list/index.d.ts +299 -6
  33. package/dist/components/loading-indicator/index.d.ts +91 -3
  34. package/dist/components/menu/features/controller.js +2 -0
  35. package/dist/components/menu/index.d.ts +10 -6
  36. package/dist/components/menu/inner.d.ts +2 -2
  37. package/dist/components/menu/on-demand.d.ts +5 -9
  38. package/dist/components/menu/types.d.ts +12 -7
  39. package/dist/components/navigation-bar/index.d.ts +70 -2
  40. package/dist/components/navigation-rail/index.d.ts +98 -2
  41. package/dist/components/progress/index.d.ts +9 -2
  42. package/dist/components/progress/types.d.ts +5 -5
  43. package/dist/components/radios/index.d.ts +158 -3
  44. package/dist/components/search/features/states.js +20 -39
  45. package/dist/components/search/features/structure.js +24 -4
  46. package/dist/components/search/features/suggestions.js +4 -0
  47. package/dist/components/search/index.d.ts +255 -2
  48. package/dist/components/select/index.d.ts +252 -6
  49. package/dist/components/side-sheet/index.d.ts +104 -2
  50. package/dist/components/slider/index.d.ts +236 -2
  51. package/dist/components/snackbar/api.js +26 -0
  52. package/dist/components/snackbar/constants.d.ts +4 -0
  53. package/dist/components/snackbar/constants.js +3 -1
  54. package/dist/components/snackbar/index.d.ts +215 -4
  55. package/dist/components/split-button/index.d.ts +10 -3
  56. package/dist/components/split-button/types.d.ts +3 -3
  57. package/dist/components/switch/index.d.ts +190 -3
  58. package/dist/components/tabs/index.d.ts +454 -12
  59. package/dist/components/tabs/index.js +1 -1
  60. package/dist/components/tabs/responsive-legacy.js +65 -0
  61. package/dist/components/tabs/responsive.d.ts +7 -32
  62. package/dist/components/tabs/responsive.js +4 -63
  63. package/dist/components/tabs/tabs.js +1 -0
  64. package/dist/components/text-field/config.js +3 -4
  65. package/dist/components/text-field/features/field.js +61 -0
  66. package/dist/components/text-field/features/leading-icon.js +12 -45
  67. package/dist/components/text-field/features/prefix-text.js +6 -40
  68. package/dist/components/text-field/features/suffix-text.js +6 -40
  69. package/dist/components/text-field/index.d.ts +338 -3
  70. package/dist/components/timepicker/constants.d.ts +4 -4
  71. package/dist/components/timepicker/constants.js +2 -2
  72. package/dist/components/timepicker/dial.js +30 -3
  73. package/dist/components/timepicker/index.d.ts +279 -5
  74. package/dist/components/timepicker/render.js +15 -9
  75. package/dist/components/toolbar/index.d.ts +145 -6
  76. package/dist/components/tooltip/index.d.ts +155 -3
  77. package/dist/components/top-app-bar/index.d.ts +92 -5
  78. package/dist/core/canvas/index.d.ts +172 -5
  79. package/dist/core/canvas/utils.js +3 -13
  80. package/dist/core/compose/cleanup.d.ts +1 -1
  81. package/dist/core/compose/features/icon-opt-in.js +5 -0
  82. package/dist/core/compose/features/icon-slot.js +100 -0
  83. package/dist/core/compose/features/textinput.js +2 -0
  84. package/dist/core/compose/features/track.js +4 -0
  85. package/dist/core/compose/index.d.ts +741 -8
  86. package/dist/core/config/component.d.ts +1 -4
  87. package/dist/core/dom/create.d.ts +1 -4
  88. package/dist/core/dom/index.d.ts +233 -12
  89. package/dist/core/index.d.ts +93 -14
  90. package/dist/core/navigation/destinations.d.ts +6 -6
  91. package/dist/core/shapes/index.d.ts +286 -6
  92. package/dist/core/state/index.d.ts +98 -5
  93. package/dist/core/theme/index.d.ts +80 -4
  94. package/dist/core/utils/index.d.ts +95 -9
  95. package/dist/core/utils/mobile.d.ts +2 -2
  96. package/dist/elements/adapter.d.ts +3 -3
  97. package/dist/elements/css/bottom-sheet.css +1 -1
  98. package/dist/elements/css/button-group.css +1 -1
  99. package/dist/elements/css/button.css +1 -1
  100. package/dist/elements/css/datepicker.css +1 -1
  101. package/dist/elements/css/dialog.css +1 -1
  102. package/dist/elements/css/drawer.css +1 -1
  103. package/dist/elements/css/icon-button.css +1 -1
  104. package/dist/elements/css/list.css +1 -1
  105. package/dist/elements/css/menu.css +1 -1
  106. package/dist/elements/css/side-sheet.css +1 -1
  107. package/dist/elements/css/snackbar.css +1 -1
  108. package/dist/elements/css/text-field.css +1 -1
  109. package/dist/elements/css/timepicker.css +1 -1
  110. package/dist/elements/css/toolbar.css +1 -1
  111. package/dist/elements/datepicker.js +1 -0
  112. package/dist/elements/define.d.ts +3 -3
  113. package/dist/elements/define.js +12 -1
  114. package/dist/elements/drawer.js +2 -0
  115. package/dist/elements/index.d.ts +3974 -107
  116. package/dist/elements/preupgrade/badge.css +1 -1
  117. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  118. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  119. package/dist/elements/preupgrade/button-group.css +2 -2
  120. package/dist/elements/preupgrade/button.css +2 -2
  121. package/dist/elements/preupgrade/card.css +1 -1
  122. package/dist/elements/preupgrade/carousel.css +1 -1
  123. package/dist/elements/preupgrade/checkbox.css +1 -1
  124. package/dist/elements/preupgrade/chips.css +1 -1
  125. package/dist/elements/preupgrade/datepicker.css +1 -1
  126. package/dist/elements/preupgrade/dialog.css +1 -1
  127. package/dist/elements/preupgrade/divider.css +1 -1
  128. package/dist/elements/preupgrade/drawer.css +2 -2
  129. package/dist/elements/preupgrade/extended-fab.css +1 -1
  130. package/dist/elements/preupgrade/fab-menu.css +1 -1
  131. package/dist/elements/preupgrade/fab.css +1 -1
  132. package/dist/elements/preupgrade/icon-button.css +2 -2
  133. package/dist/elements/preupgrade/list.css +2 -2
  134. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  135. package/dist/elements/preupgrade/menu.css +1 -1
  136. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  137. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  138. package/dist/elements/preupgrade/progress.css +1 -1
  139. package/dist/elements/preupgrade/radios.css +1 -1
  140. package/dist/elements/preupgrade/search.css +1 -1
  141. package/dist/elements/preupgrade/select.css +2 -2
  142. package/dist/elements/preupgrade/side-sheet.css +1 -1
  143. package/dist/elements/preupgrade/slider.css +1 -1
  144. package/dist/elements/preupgrade/snackbar.css +1 -1
  145. package/dist/elements/preupgrade/split-button.css +1 -1
  146. package/dist/elements/preupgrade/switch.css +1 -1
  147. package/dist/elements/preupgrade/tabs.css +1 -1
  148. package/dist/elements/preupgrade/text-field.css +2 -2
  149. package/dist/elements/preupgrade/timepicker.css +1 -1
  150. package/dist/elements/preupgrade/toolbar.css +1 -1
  151. package/dist/elements/preupgrade/tooltip.css +1 -1
  152. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  153. package/dist/elements/preupgrade.css +2 -2
  154. package/dist/elements/snackbar.js +2 -0
  155. package/dist/elements/styles.d.ts +7 -7
  156. package/dist/elements/styles.js +15 -15
  157. package/dist/elements/text-field.js +2 -0
  158. package/dist/index.d.ts +78 -4
  159. package/dist/react/create.d.ts +2 -6
  160. package/dist/react/index.d.ts +106 -52
  161. package/dist/react/jsx.d.ts +49 -49
  162. package/dist/solid/create.d.ts +2 -7
  163. package/dist/solid/index.d.ts +106 -52
  164. package/dist/solid/jsx.d.ts +51 -50
  165. package/dist/styles/badge.css +1 -1
  166. package/dist/styles/base-lite.css +2 -2
  167. package/dist/styles/base.css +2 -2
  168. package/dist/styles/bottom-app-bar.css +1 -1
  169. package/dist/styles/bottom-sheet.css +2 -2
  170. package/dist/styles/button-group.css +2 -2
  171. package/dist/styles/button.css +2 -2
  172. package/dist/styles/card.css +1 -1
  173. package/dist/styles/carousel.css +1 -1
  174. package/dist/styles/checkbox.css +1 -1
  175. package/dist/styles/chips.css +1 -1
  176. package/dist/styles/contrast.css +1 -1
  177. package/dist/styles/datepicker.css +2 -2
  178. package/dist/styles/dialog.css +2 -2
  179. package/dist/styles/divider.css +1 -1
  180. package/dist/styles/drawer.css +2 -2
  181. package/dist/styles/extended-fab.css +1 -1
  182. package/dist/styles/fab-menu.css +1 -1
  183. package/dist/styles/fab.css +1 -1
  184. package/dist/styles/icon-button.css +2 -2
  185. package/dist/styles/list.css +2 -2
  186. package/dist/styles/loading-indicator.css +1 -1
  187. package/dist/styles/menu.css +2 -2
  188. package/dist/styles/navigation-bar.css +1 -1
  189. package/dist/styles/navigation-rail.css +1 -1
  190. package/dist/styles/progress.css +1 -1
  191. package/dist/styles/radios.css +1 -1
  192. package/dist/styles/search.css +1 -1
  193. package/dist/styles/select.css +1 -1
  194. package/dist/styles/side-sheet.css +2 -2
  195. package/dist/styles/slider.css +1 -1
  196. package/dist/styles/snackbar.css +2 -2
  197. package/dist/styles/split-button.css +1 -1
  198. package/dist/styles/switch.css +1 -1
  199. package/dist/styles/tabs.css +1 -1
  200. package/dist/styles/text-field.css +2 -2
  201. package/dist/styles/timepicker.css +2 -2
  202. package/dist/styles/toolbar.css +2 -2
  203. package/dist/styles/tooltip.css +1 -1
  204. package/dist/styles/top-app-bar.css +1 -1
  205. package/dist/styles/typography.css +1 -1
  206. package/dist/styles/utilities.css +1 -1
  207. package/dist/styles.css +2 -2
  208. package/dist/svelte/runtime.d.ts +6 -10
  209. package/dist/theme/vendor/contrast/contrast.js +1 -16
  210. package/dist/theme/vendor/dislike/dislike_analyzer.js +1 -16
  211. package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +1 -16
  212. package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +1 -16
  213. package/dist/theme/vendor/dynamiccolor/contrast_curve.js +1 -16
  214. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +2 -2
  215. package/dist/theme/vendor/dynamiccolor/dynamic_color.js +1 -16
  216. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +2 -2
  217. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +1 -16
  218. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +1 -16
  219. package/dist/theme/vendor/dynamiccolor/spec_2025.js +1 -16
  220. package/dist/theme/vendor/dynamiccolor/spec_extensions.js +1 -16
  221. package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +1 -16
  222. package/dist/theme/vendor/dynamiccolor/variant.js +1 -16
  223. package/dist/theme/vendor/hct/cam16.js +1 -16
  224. package/dist/theme/vendor/hct/hct.js +1 -16
  225. package/dist/theme/vendor/hct/hct_solver.js +1 -16
  226. package/dist/theme/vendor/hct/viewing_conditions.js +1 -16
  227. package/dist/theme/vendor/palettes/tonal_palette.d.ts +6 -9
  228. package/dist/theme/vendor/palettes/tonal_palette.js +1 -16
  229. package/dist/theme/vendor/quantize/lab_point_provider.js +1 -16
  230. package/dist/theme/vendor/quantize/quantizer_celebi.js +1 -16
  231. package/dist/theme/vendor/quantize/quantizer_map.js +1 -16
  232. package/dist/theme/vendor/quantize/quantizer_wsmeans.js +1 -16
  233. package/dist/theme/vendor/quantize/quantizer_wu.js +1 -16
  234. package/dist/theme/vendor/score/score.js +1 -16
  235. package/dist/theme/vendor/temperature/temperature_cache.js +1 -16
  236. package/dist/theme/vendor/utils/color_utils.js +1 -16
  237. package/dist/theme/vendor/utils/image_utils.js +1 -16
  238. package/dist/theme/vendor/utils/math_utils.js +1 -16
  239. package/dist/theme/vendor/utils/string_utils.js +1 -16
  240. package/dist/themes/autumn-contrast.css +1 -1
  241. package/dist/themes/autumn.css +1 -1
  242. package/dist/themes/baseline-contrast.css +1 -1
  243. package/dist/themes/baseline.css +1 -1
  244. package/dist/themes/brownbeige-contrast.css +1 -1
  245. package/dist/themes/brownbeige.css +1 -1
  246. package/dist/themes/content-contrast.css +1 -1
  247. package/dist/themes/content.css +1 -1
  248. package/dist/themes/desert-contrast.css +1 -1
  249. package/dist/themes/desert.css +1 -1
  250. package/dist/themes/expressive-contrast.css +1 -1
  251. package/dist/themes/expressive.css +1 -1
  252. package/dist/themes/fidelity-contrast.css +1 -1
  253. package/dist/themes/fidelity.css +1 -1
  254. package/dist/themes/forest-contrast.css +1 -1
  255. package/dist/themes/forest.css +1 -1
  256. package/dist/themes/fruit-salad-contrast.css +1 -1
  257. package/dist/themes/fruit-salad.css +1 -1
  258. package/dist/themes/highcontrast-contrast.css +1 -1
  259. package/dist/themes/highcontrast.css +1 -1
  260. package/dist/themes/monochrome-contrast.css +1 -1
  261. package/dist/themes/monochrome.css +1 -1
  262. package/dist/themes/neutral-contrast.css +1 -1
  263. package/dist/themes/neutral.css +1 -1
  264. package/dist/themes/ocean-contrast.css +1 -1
  265. package/dist/themes/ocean.css +1 -1
  266. package/dist/themes/rainbow-contrast.css +1 -1
  267. package/dist/themes/rainbow.css +1 -1
  268. package/dist/themes/sageivory-contrast.css +1 -1
  269. package/dist/themes/sageivory.css +1 -1
  270. package/dist/themes/spring-contrast.css +1 -1
  271. package/dist/themes/spring.css +1 -1
  272. package/dist/themes/summer-contrast.css +1 -1
  273. package/dist/themes/summer.css +1 -1
  274. package/dist/themes/sunset-contrast.css +1 -1
  275. package/dist/themes/sunset.css +1 -1
  276. package/dist/themes/tealcaramel-contrast.css +1 -1
  277. package/dist/themes/tealcaramel.css +1 -1
  278. package/dist/themes/vibrant-contrast.css +1 -1
  279. package/dist/themes/vibrant.css +1 -1
  280. package/dist/vue/index.d.ts +188 -53
  281. package/package.json +5 -1
  282. package/src/styles/abstract/_functions.scss +22 -1
  283. package/src/styles/abstract/_variables.scss +0 -2
  284. package/src/styles/base/_tokens.scss +12 -0
  285. package/src/styles/components/_bottom-sheet.scss +1 -0
  286. package/src/styles/components/_button-group.scss +9 -5
  287. package/src/styles/components/_button.scss +9 -12
  288. package/src/styles/components/_datepicker.scss +2 -1
  289. package/src/styles/components/_dialog.scss +1 -0
  290. package/src/styles/components/_drawer.scss +33 -65
  291. package/src/styles/components/_icon-button.scss +32 -33
  292. package/src/styles/components/_list.scss +19 -5
  293. package/src/styles/components/_menu.scss +1 -0
  294. package/src/styles/components/_side-sheet.scss +1 -0
  295. package/src/styles/components/_snackbar.scss +1 -0
  296. package/src/styles/components/_text-field.scss +17 -109
  297. package/src/styles/components/_timepicker.scss +19 -5
  298. package/src/styles/components/_toolbar.scss +4 -4
  299. package/src/styles/elements/_button-group.scss +17 -4
  300. package/src/styles/elements/_button.scss +3 -2
  301. package/src/styles/elements/_drawer.scss +2 -1
  302. package/src/styles/elements/_field.scss +25 -14
  303. package/src/styles/elements/_icon-button.scss +8 -3
  304. package/src/styles/elements/_list.scss +3 -2
  305. package/src/styles/elements/_text-field.scss +71 -47
  306. package/dist/components/badge/badge.d.ts +0 -7
  307. package/dist/components/badge/types.d.ts +0 -152
  308. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -12
  309. package/dist/components/bottom-app-bar/types.d.ts +0 -124
  310. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -7
  311. package/dist/components/bottom-sheet/types.d.ts +0 -100
  312. package/dist/components/button/button.d.ts +0 -7
  313. package/dist/components/button-group/button-group.d.ts +0 -7
  314. package/dist/components/button-group/types.d.ts +0 -227
  315. package/dist/components/card/card.d.ts +0 -7
  316. package/dist/components/card/content.d.ts +0 -22
  317. package/dist/components/card/types.d.ts +0 -272
  318. package/dist/components/carousel/carousel.d.ts +0 -4
  319. package/dist/components/carousel/types.d.ts +0 -81
  320. package/dist/components/checkbox/checkbox.d.ts +0 -8
  321. package/dist/components/checkbox/types.d.ts +0 -199
  322. package/dist/components/chips/chips.d.ts +0 -7
  323. package/dist/components/chips/factories.d.ts +0 -9
  324. package/dist/components/chips/types.d.ts +0 -304
  325. package/dist/components/datepicker/datepicker.d.ts +0 -7
  326. package/dist/components/datepicker/types.d.ts +0 -300
  327. package/dist/components/datepicker/types.js +0 -17
  328. package/dist/components/dialog/dialog.d.ts +0 -8
  329. package/dist/components/dialog/types.d.ts +0 -311
  330. package/dist/components/divider/config.d.ts +0 -43
  331. package/dist/components/divider/divider.d.ts +0 -7
  332. package/dist/components/divider/types.d.ts +0 -43
  333. package/dist/components/drawer/drawer.d.ts +0 -7
  334. package/dist/components/drawer/types.d.ts +0 -179
  335. package/dist/components/extended-fab/extended-fab.d.ts +0 -7
  336. package/dist/components/extended-fab/types.d.ts +0 -208
  337. package/dist/components/fab/fab.d.ts +0 -7
  338. package/dist/components/fab/types.d.ts +0 -168
  339. package/dist/components/fab-menu/fab-menu.d.ts +0 -8
  340. package/dist/components/fab-menu/types.d.ts +0 -91
  341. package/dist/components/icon-button/icon-button.d.ts +0 -7
  342. package/dist/components/index.d.ts +0 -82
  343. package/dist/components/list/features/listbox.d.ts +0 -16
  344. package/dist/components/list/list.d.ts +0 -7
  345. package/dist/components/list/types.d.ts +0 -257
  346. package/dist/components/loading-indicator/features/renderer.d.ts +0 -28
  347. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -7
  348. package/dist/components/loading-indicator/types.d.ts +0 -53
  349. package/dist/components/menu/menu.d.ts +0 -7
  350. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -3
  351. package/dist/components/navigation-bar/types.d.ts +0 -59
  352. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -3
  353. package/dist/components/navigation-rail/types.d.ts +0 -87
  354. package/dist/components/progress/progress.d.ts +0 -7
  355. package/dist/components/radios/radios.d.ts +0 -7
  356. package/dist/components/radios/types.d.ts +0 -144
  357. package/dist/components/search/search.d.ts +0 -7
  358. package/dist/components/search/types.d.ts +0 -235
  359. package/dist/components/select/select.d.ts +0 -7
  360. package/dist/components/select/types.d.ts +0 -232
  361. package/dist/components/side-sheet/side-sheet.d.ts +0 -7
  362. package/dist/components/side-sheet/types.d.ts +0 -91
  363. package/dist/components/slider/slider.d.ts +0 -7
  364. package/dist/components/slider/types.d.ts +0 -218
  365. package/dist/components/snackbar/snackbar.d.ts +0 -9
  366. package/dist/components/snackbar/types.d.ts +0 -180
  367. package/dist/components/split-button/split-button.d.ts +0 -7
  368. package/dist/components/switch/switch.d.ts +0 -7
  369. package/dist/components/switch/types.d.ts +0 -171
  370. package/dist/components/tabs/indicator.d.ts +0 -44
  371. package/dist/components/tabs/tab.d.ts +0 -7
  372. package/dist/components/tabs/tabs.d.ts +0 -7
  373. package/dist/components/tabs/types.d.ts +0 -304
  374. package/dist/components/tabs/utils.d.ts +0 -46
  375. package/dist/components/text-field/features/trailing-icon.d.ts +0 -54
  376. package/dist/components/text-field/text-field.d.ts +0 -7
  377. package/dist/components/text-field/types.d.ts +0 -261
  378. package/dist/components/timepicker/timepicker.d.ts +0 -3
  379. package/dist/components/timepicker/types.d.ts +0 -258
  380. package/dist/components/toolbar/toolbar.d.ts +0 -8
  381. package/dist/components/toolbar/types.d.ts +0 -129
  382. package/dist/components/tooltip/tooltip.d.ts +0 -7
  383. package/dist/components/tooltip/types.d.ts +0 -137
  384. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -7
  385. package/dist/components/top-app-bar/types.d.ts +0 -80
  386. package/dist/core/canvas/animation.d.ts +0 -20
  387. package/dist/core/canvas/drawing.d.ts +0 -67
  388. package/dist/core/canvas/resize.d.ts +0 -8
  389. package/dist/core/canvas/utils.d.ts +0 -62
  390. package/dist/core/compose/base.d.ts +0 -18
  391. package/dist/core/compose/features/badge.d.ts +0 -27
  392. package/dist/core/compose/features/checkable.d.ts +0 -33
  393. package/dist/core/compose/features/debounce.d.ts +0 -45
  394. package/dist/core/compose/features/disabled.d.ts +0 -26
  395. package/dist/core/compose/features/events.d.ts +0 -31
  396. package/dist/core/compose/features/index.d.ts +0 -34
  397. package/dist/core/compose/features/input.d.ts +0 -54
  398. package/dist/core/compose/features/lifecycle.d.ts +0 -41
  399. package/dist/core/compose/features/position.d.ts +0 -36
  400. package/dist/core/compose/features/ripple.d.ts +0 -35
  401. package/dist/core/compose/features/size.d.ts +0 -12
  402. package/dist/core/compose/features/style.d.ts +0 -11
  403. package/dist/core/compose/features/textinput.d.ts +0 -66
  404. package/dist/core/compose/features/textlabel.d.ts +0 -34
  405. package/dist/core/compose/features/throttle.d.ts +0 -38
  406. package/dist/core/compose/features/track.d.ts +0 -24
  407. package/dist/core/compose/features/variant.d.ts +0 -12
  408. package/dist/core/compose/features/withEvents.d.ts +0 -27
  409. package/dist/core/compose/pipe.d.ts +0 -55
  410. package/dist/core/compose/utils/type-guards.d.ts +0 -17
  411. package/dist/core/config.d.ts +0 -72
  412. package/dist/core/dom/attributes.d.ts +0 -34
  413. package/dist/core/dom/classes.d.ts +0 -29
  414. package/dist/core/dom/events.d.ts +0 -43
  415. package/dist/core/dom/focus.d.ts +0 -15
  416. package/dist/core/dom/html.d.ts +0 -16
  417. package/dist/core/dom/layer.d.ts +0 -57
  418. package/dist/core/dom/roving.d.ts +0 -18
  419. package/dist/core/shapes/cubic.d.ts +0 -45
  420. package/dist/core/shapes/material.d.ts +0 -131
  421. package/dist/core/shapes/polygon.d.ts +0 -38
  422. package/dist/core/state/events.d.ts +0 -25
  423. package/dist/core/state/store.d.ts +0 -60
  424. package/dist/core/theme/shape.d.ts +0 -5
  425. package/dist/core/theme/tokens.d.ts +0 -67
  426. package/dist/core/utils/background.d.ts +0 -13
  427. package/dist/core/utils/color.d.ts +0 -6
  428. package/dist/core/utils/object.d.ts +0 -11
  429. package/dist/core/utils/performance.d.ts +0 -32
  430. package/dist/core/utils/theme.d.ts +0 -17
  431. package/dist/core/utils/url.d.ts +0 -6
  432. package/dist/elements/badge.d.ts +0 -57
  433. package/dist/elements/bottom-app-bar.d.ts +0 -66
  434. package/dist/elements/bottom-sheet.d.ts +0 -107
  435. package/dist/elements/button-group.d.ts +0 -142
  436. package/dist/elements/button.d.ts +0 -101
  437. package/dist/elements/card.d.ts +0 -69
  438. package/dist/elements/carousel.d.ts +0 -119
  439. package/dist/elements/checkbox.d.ts +0 -97
  440. package/dist/elements/chips.d.ts +0 -126
  441. package/dist/elements/datepicker.d.ts +0 -131
  442. package/dist/elements/dialog.d.ts +0 -101
  443. package/dist/elements/divider.d.ts +0 -52
  444. package/dist/elements/drawer.d.ts +0 -119
  445. package/dist/elements/extended-fab.d.ts +0 -97
  446. package/dist/elements/fab-menu.d.ts +0 -102
  447. package/dist/elements/fab.d.ts +0 -71
  448. package/dist/elements/list.d.ts +0 -127
  449. package/dist/elements/loading-indicator.d.ts +0 -47
  450. package/dist/elements/menu.d.ts +0 -144
  451. package/dist/elements/navigation-bar.d.ts +0 -104
  452. package/dist/elements/navigation-rail.d.ts +0 -145
  453. package/dist/elements/progress.d.ts +0 -87
  454. package/dist/elements/radios.d.ts +0 -92
  455. package/dist/elements/search.d.ts +0 -202
  456. package/dist/elements/select.d.ts +0 -119
  457. package/dist/elements/side-sheet.d.ts +0 -86
  458. package/dist/elements/slider.d.ts +0 -160
  459. package/dist/elements/snackbar.d.ts +0 -87
  460. package/dist/elements/split-button.d.ts +0 -87
  461. package/dist/elements/switch.d.ts +0 -98
  462. package/dist/elements/tabs.d.ts +0 -76
  463. package/dist/elements/text-field.d.ts +0 -170
  464. package/dist/elements/timepicker.d.ts +0 -148
  465. package/dist/elements/toolbar.d.ts +0 -98
  466. package/dist/elements/tooltip.d.ts +0 -75
  467. package/dist/elements/top-app-bar.d.ts +0 -60
  468. package/dist/react/badge.d.ts +0 -4
  469. package/dist/react/bottom-app-bar.d.ts +0 -5
  470. package/dist/react/bottom-sheet.d.ts +0 -4
  471. package/dist/react/button-group-item.d.ts +0 -3
  472. package/dist/react/button-group.d.ts +0 -7
  473. package/dist/react/button.d.ts +0 -5
  474. package/dist/react/card.d.ts +0 -4
  475. package/dist/react/carousel-item.d.ts +0 -3
  476. package/dist/react/carousel.d.ts +0 -4
  477. package/dist/react/checkbox.d.ts +0 -4
  478. package/dist/react/chip.d.ts +0 -3
  479. package/dist/react/chips.d.ts +0 -4
  480. package/dist/react/datepicker.d.ts +0 -4
  481. package/dist/react/dialog.d.ts +0 -7
  482. package/dist/react/divider.d.ts +0 -4
  483. package/dist/react/drawer-item.d.ts +0 -3
  484. package/dist/react/drawer.d.ts +0 -4
  485. package/dist/react/extended-fab.d.ts +0 -4
  486. package/dist/react/fab-menu-item.d.ts +0 -3
  487. package/dist/react/fab-menu.d.ts +0 -6
  488. package/dist/react/fab.d.ts +0 -4
  489. package/dist/react/icon-button.d.ts +0 -4
  490. package/dist/react/list-item.d.ts +0 -3
  491. package/dist/react/list.d.ts +0 -4
  492. package/dist/react/loading-indicator.d.ts +0 -4
  493. package/dist/react/menu-item.d.ts +0 -3
  494. package/dist/react/menu.d.ts +0 -4
  495. package/dist/react/navigation-bar-item.d.ts +0 -3
  496. package/dist/react/navigation-bar.d.ts +0 -4
  497. package/dist/react/navigation-rail-item.d.ts +0 -3
  498. package/dist/react/navigation-rail.d.ts +0 -4
  499. package/dist/react/progress.d.ts +0 -4
  500. package/dist/react/radio.d.ts +0 -3
  501. package/dist/react/radios.d.ts +0 -4
  502. package/dist/react/search-suggestion.d.ts +0 -3
  503. package/dist/react/search.d.ts +0 -4
  504. package/dist/react/select-option.d.ts +0 -3
  505. package/dist/react/select.d.ts +0 -6
  506. package/dist/react/side-sheet.d.ts +0 -4
  507. package/dist/react/slider.d.ts +0 -4
  508. package/dist/react/snackbar.d.ts +0 -7
  509. package/dist/react/split-button.d.ts +0 -7
  510. package/dist/react/switch.d.ts +0 -4
  511. package/dist/react/tab.d.ts +0 -3
  512. package/dist/react/tabs.d.ts +0 -7
  513. package/dist/react/text-field.d.ts +0 -4
  514. package/dist/react/timepicker.d.ts +0 -4
  515. package/dist/react/toolbar.d.ts +0 -5
  516. package/dist/react/tooltip.d.ts +0 -4
  517. package/dist/react/top-app-bar.d.ts +0 -4
  518. package/dist/solid/badge.d.ts +0 -4
  519. package/dist/solid/bottom-app-bar.d.ts +0 -5
  520. package/dist/solid/bottom-sheet.d.ts +0 -4
  521. package/dist/solid/button-group-item.d.ts +0 -3
  522. package/dist/solid/button-group.d.ts +0 -7
  523. package/dist/solid/button.d.ts +0 -5
  524. package/dist/solid/card.d.ts +0 -4
  525. package/dist/solid/carousel-item.d.ts +0 -3
  526. package/dist/solid/carousel.d.ts +0 -4
  527. package/dist/solid/checkbox.d.ts +0 -4
  528. package/dist/solid/chip.d.ts +0 -3
  529. package/dist/solid/chips.d.ts +0 -4
  530. package/dist/solid/datepicker.d.ts +0 -4
  531. package/dist/solid/dialog.d.ts +0 -7
  532. package/dist/solid/divider.d.ts +0 -4
  533. package/dist/solid/drawer-item.d.ts +0 -3
  534. package/dist/solid/drawer.d.ts +0 -4
  535. package/dist/solid/extended-fab.d.ts +0 -4
  536. package/dist/solid/fab-menu-item.d.ts +0 -3
  537. package/dist/solid/fab-menu.d.ts +0 -6
  538. package/dist/solid/fab.d.ts +0 -4
  539. package/dist/solid/icon-button.d.ts +0 -4
  540. package/dist/solid/list-item.d.ts +0 -3
  541. package/dist/solid/list.d.ts +0 -4
  542. package/dist/solid/loading-indicator.d.ts +0 -4
  543. package/dist/solid/menu-item.d.ts +0 -3
  544. package/dist/solid/menu.d.ts +0 -4
  545. package/dist/solid/navigation-bar-item.d.ts +0 -3
  546. package/dist/solid/navigation-bar.d.ts +0 -4
  547. package/dist/solid/navigation-rail-item.d.ts +0 -3
  548. package/dist/solid/navigation-rail.d.ts +0 -4
  549. package/dist/solid/progress.d.ts +0 -4
  550. package/dist/solid/radio.d.ts +0 -3
  551. package/dist/solid/radios.d.ts +0 -4
  552. package/dist/solid/search-suggestion.d.ts +0 -3
  553. package/dist/solid/search.d.ts +0 -4
  554. package/dist/solid/select-option.d.ts +0 -3
  555. package/dist/solid/select.d.ts +0 -6
  556. package/dist/solid/side-sheet.d.ts +0 -4
  557. package/dist/solid/slider.d.ts +0 -4
  558. package/dist/solid/snackbar.d.ts +0 -7
  559. package/dist/solid/split-button.d.ts +0 -7
  560. package/dist/solid/switch.d.ts +0 -4
  561. package/dist/solid/tab.d.ts +0 -3
  562. package/dist/solid/tabs.d.ts +0 -7
  563. package/dist/solid/text-field.d.ts +0 -4
  564. package/dist/solid/timepicker.d.ts +0 -4
  565. package/dist/solid/toolbar.d.ts +0 -5
  566. package/dist/solid/tooltip.d.ts +0 -4
  567. package/dist/solid/top-app-bar.d.ts +0 -4
  568. package/dist/vue/badge.d.ts +0 -4
  569. package/dist/vue/bottom-app-bar.d.ts +0 -5
  570. package/dist/vue/bottom-sheet.d.ts +0 -4
  571. package/dist/vue/button-group-item.d.ts +0 -3
  572. package/dist/vue/button-group.d.ts +0 -7
  573. package/dist/vue/button.d.ts +0 -5
  574. package/dist/vue/card.d.ts +0 -4
  575. package/dist/vue/carousel-item.d.ts +0 -3
  576. package/dist/vue/carousel.d.ts +0 -4
  577. package/dist/vue/checkbox.d.ts +0 -4
  578. package/dist/vue/chip.d.ts +0 -3
  579. package/dist/vue/chips.d.ts +0 -4
  580. package/dist/vue/create.d.ts +0 -73
  581. package/dist/vue/datepicker.d.ts +0 -4
  582. package/dist/vue/dialog.d.ts +0 -7
  583. package/dist/vue/divider.d.ts +0 -4
  584. package/dist/vue/drawer-item.d.ts +0 -3
  585. package/dist/vue/drawer.d.ts +0 -4
  586. package/dist/vue/extended-fab.d.ts +0 -4
  587. package/dist/vue/fab-menu-item.d.ts +0 -3
  588. package/dist/vue/fab-menu.d.ts +0 -6
  589. package/dist/vue/fab.d.ts +0 -4
  590. package/dist/vue/icon-button.d.ts +0 -4
  591. package/dist/vue/list-item.d.ts +0 -3
  592. package/dist/vue/list.d.ts +0 -4
  593. package/dist/vue/loading-indicator.d.ts +0 -4
  594. package/dist/vue/menu-item.d.ts +0 -3
  595. package/dist/vue/menu.d.ts +0 -4
  596. package/dist/vue/navigation-bar-item.d.ts +0 -3
  597. package/dist/vue/navigation-bar.d.ts +0 -4
  598. package/dist/vue/navigation-rail-item.d.ts +0 -3
  599. package/dist/vue/navigation-rail.d.ts +0 -4
  600. package/dist/vue/progress.d.ts +0 -4
  601. package/dist/vue/radio.d.ts +0 -3
  602. package/dist/vue/radios.d.ts +0 -4
  603. package/dist/vue/search-suggestion.d.ts +0 -3
  604. package/dist/vue/search.d.ts +0 -4
  605. package/dist/vue/select-option.d.ts +0 -3
  606. package/dist/vue/select.d.ts +0 -6
  607. package/dist/vue/side-sheet.d.ts +0 -4
  608. package/dist/vue/slider.d.ts +0 -4
  609. package/dist/vue/snackbar.d.ts +0 -7
  610. package/dist/vue/split-button.d.ts +0 -7
  611. package/dist/vue/switch.d.ts +0 -4
  612. package/dist/vue/tab.d.ts +0 -3
  613. package/dist/vue/tabs.d.ts +0 -7
  614. package/dist/vue/text-field.d.ts +0 -4
  615. package/dist/vue/timepicker.d.ts +0 -4
  616. package/dist/vue/toolbar.d.ts +0 -5
  617. package/dist/vue/tooltip.d.ts +0 -4
  618. package/dist/vue/top-app-bar.d.ts +0 -4
@@ -1,6 +1,286 @@
1
- export type { Cubic, Point, PointTransformer } from "./cubic.js";
2
- export { straightLine, circularArc, pointOnCurve, cubicBounds, splitCubic } from "./cubic.js";
3
- export type { CornerRounding, RoundedPolygon } from "./polygon.js";
4
- export { UNROUNDED, roundedPolygon, rectangle, regularPolygon, circle, star, transformPolygon, rotatePolygon, scalePolygon, polygonBounds, polygonMaxRadius, normalizePolygon, } from "./polygon.js";
5
- export type { MaterialShapeName, RadialProfile } from "./material.js";
6
- export { materialShape, materialShapePath, polygonPath, radialProfile, shapeCircle, shapeSquare, shapeSlanted, shapeArch, shapeFan, shapeArrow, shapeSemiCircle, shapeOval, shapePill, shapeTriangle, shapeDiamond, shapeClamShell, shapePentagon, shapeGem, shapeSunny, shapeVerySunny, shapeCookie4Sided, shapeCookie6Sided, shapeCookie7Sided, shapeCookie9Sided, shapeCookie12Sided, shapeGhostish, shapeClover4Leaf, shapeClover8Leaf, shapeBurst, shapeSoftBurst, shapeBoom, shapeSoftBoom, shapeFlower, shapePuffy, shapePuffyDiamond, shapePixelCircle, shapePixelTriangle, shapeBun, shapeHeart, } from "./material.js";
1
+
2
+ /** How a vertex is rounded: the radius, and how much the curve is smoothed into the sides (0–1) */
3
+ interface CornerRounding {
4
+ radius: number;
5
+ smoothing?: number;
6
+ }
7
+
8
+ declare const UNROUNDED: CornerRounding;
9
+
10
+ /** A closed shape made of contiguous cubics */
11
+ interface RoundedPolygon {
12
+ cubics: Cubic[];
13
+ centerX: number;
14
+ centerY: number;
15
+ }
16
+
17
+ /** Builds a rounded polygon from a flat list of vertex coordinates [x0, y0, x1, y1, ...], a rounding for every vertex or one per vertex, and an optional centre (the vertices' centroid by default). */
18
+ declare const roundedPolygon: (vertices: number[], rounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
19
+
20
+ /** A regular polygon, first vertex at angle 0 */
21
+ declare const regularPolygon: (numVertices: number, radius?: number, centerX?: number, centerY?: number, rounding?: CornerRounding, perVertexRounding?: CornerRounding[]) => RoundedPolygon;
22
+
23
+ /** A circle approximated by a fully rounded polygon */
24
+ declare const circle: (numVertices?: number, radius?: number, centerX?: number, centerY?: number) => RoundedPolygon;
25
+
26
+ /** A star with `numVerticesPerRadius` outer and inner vertices, outer first at angle 0 */
27
+ declare const star: (numVerticesPerRadius: number, radius?: number, innerRadius?: number, rounding?: CornerRounding, innerRounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
28
+
29
+ /** A rectangle centred on (centerX, centerY), its first vertex at the bottom right (graphics-shapes rectangle) */
30
+ declare const rectangle: (width?: number, height?: number, rounding?: CornerRounding, perVertexRounding?: CornerRounding[], centerX?: number, centerY?: number) => RoundedPolygon;
31
+
32
+ declare const transformPolygon: (polygon: RoundedPolygon, f: PointTransformer) => RoundedPolygon;
33
+
34
+ /** Rotation about the origin, in degrees, positive clockwise on a y-down canvas */
35
+ declare const rotatePolygon: (polygon: RoundedPolygon, degrees: number) => RoundedPolygon;
36
+
37
+ declare const scalePolygon: (polygon: RoundedPolygon, sx: number, sy?: number) => RoundedPolygon;
38
+
39
+ /** Bounding box [left, top, right, bottom] from the hull of anchors and controls */
40
+ declare const polygonBounds: (polygon: RoundedPolygon) => [
41
+ number,
42
+ number,
43
+ number,
44
+ number
45
+ ];
46
+
47
+ /** The farthest any anchor or curve midpoint gets from the centre */
48
+ declare const polygonMaxRadius: (polygon: RoundedPolygon) => number;
49
+
50
+ /** Fits the shape into the unit square, centred, keeping its aspect ratio */
51
+ declare const normalizePolygon: (polygon: RoundedPolygon) => RoundedPolygon;
52
+
53
+ /** Circle */
54
+ declare const shapeCircle: () => RoundedPolygon;
55
+
56
+ /** A rounded square */
57
+ declare const shapeSquare: () => RoundedPolygon;
58
+
59
+ /** A slanted square */
60
+ declare const shapeSlanted: () => RoundedPolygon;
61
+
62
+ /** An arch */
63
+ declare const shapeArch: () => RoundedPolygon;
64
+
65
+ /** A fan */
66
+ declare const shapeFan: () => RoundedPolygon;
67
+
68
+ /** An arrow */
69
+ declare const shapeArrow: () => RoundedPolygon;
70
+
71
+ /** A semicircle */
72
+ declare const shapeSemiCircle: () => RoundedPolygon;
73
+
74
+ /** An oval */
75
+ declare const shapeOval: () => RoundedPolygon;
76
+
77
+ /** A pill */
78
+ declare const shapePill: () => RoundedPolygon;
79
+
80
+ /** A triangle */
81
+ declare const shapeTriangle: () => RoundedPolygon;
82
+
83
+ /** A diamond */
84
+ declare const shapeDiamond: () => RoundedPolygon;
85
+
86
+ /** A clam shell */
87
+ declare const shapeClamShell: () => RoundedPolygon;
88
+
89
+ /** A pentagon */
90
+ declare const shapePentagon: () => RoundedPolygon;
91
+
92
+ /** A gem */
93
+ declare const shapeGem: () => RoundedPolygon;
94
+
95
+ /** A sunny shape: an 8-point star */
96
+ declare const shapeSunny: () => RoundedPolygon;
97
+
98
+ /** A very sunny shape */
99
+ declare const shapeVerySunny: () => RoundedPolygon;
100
+
101
+ /** A 4-sided cookie */
102
+ declare const shapeCookie4Sided: () => RoundedPolygon;
103
+
104
+ /** A 6-sided cookie */
105
+ declare const shapeCookie6Sided: () => RoundedPolygon;
106
+
107
+ /** A 7-sided cookie */
108
+ declare const shapeCookie7Sided: () => RoundedPolygon;
109
+
110
+ /** A 9-sided cookie */
111
+ declare const shapeCookie9Sided: () => RoundedPolygon;
112
+
113
+ /** A 12-sided cookie */
114
+ declare const shapeCookie12Sided: () => RoundedPolygon;
115
+
116
+ /** A ghost-ish shape */
117
+ declare const shapeGhostish: () => RoundedPolygon;
118
+
119
+ /** A 4-leaf clover */
120
+ declare const shapeClover4Leaf: () => RoundedPolygon;
121
+
122
+ /** An 8-leaf clover */
123
+ declare const shapeClover8Leaf: () => RoundedPolygon;
124
+
125
+ /** A burst */
126
+ declare const shapeBurst: () => RoundedPolygon;
127
+
128
+ /** A soft burst */
129
+ declare const shapeSoftBurst: () => RoundedPolygon;
130
+
131
+ /** A boom */
132
+ declare const shapeBoom: () => RoundedPolygon;
133
+
134
+ /** A soft boom */
135
+ declare const shapeSoftBoom: () => RoundedPolygon;
136
+
137
+ /** A flower */
138
+ declare const shapeFlower: () => RoundedPolygon;
139
+
140
+ /** A puffy shape */
141
+ declare const shapePuffy: () => RoundedPolygon;
142
+
143
+ /** A puffy diamond */
144
+ declare const shapePuffyDiamond: () => RoundedPolygon;
145
+
146
+ /** A pixelated circle */
147
+ declare const shapePixelCircle: () => RoundedPolygon;
148
+
149
+ /** A pixelated triangle */
150
+ declare const shapePixelTriangle: () => RoundedPolygon;
151
+
152
+ /** A bun */
153
+ declare const shapeBun: () => RoundedPolygon;
154
+
155
+ /** A heart */
156
+ declare const shapeHeart: () => RoundedPolygon;
157
+
158
+ declare const byName: {
159
+ circle: () => RoundedPolygon;
160
+ square: () => RoundedPolygon;
161
+ slanted: () => RoundedPolygon;
162
+ arch: () => RoundedPolygon;
163
+ fan: () => RoundedPolygon;
164
+ arrow: () => RoundedPolygon;
165
+ semiCircle: () => RoundedPolygon;
166
+ oval: () => RoundedPolygon;
167
+ pill: () => RoundedPolygon;
168
+ triangle: () => RoundedPolygon;
169
+ diamond: () => RoundedPolygon;
170
+ clamShell: () => RoundedPolygon;
171
+ pentagon: () => RoundedPolygon;
172
+ gem: () => RoundedPolygon;
173
+ sunny: () => RoundedPolygon;
174
+ verySunny: () => RoundedPolygon;
175
+ cookie4Sided: () => RoundedPolygon;
176
+ cookie6Sided: () => RoundedPolygon;
177
+ cookie7Sided: () => RoundedPolygon;
178
+ cookie9Sided: () => RoundedPolygon;
179
+ cookie12Sided: () => RoundedPolygon;
180
+ ghostish: () => RoundedPolygon;
181
+ clover4Leaf: () => RoundedPolygon;
182
+ clover8Leaf: () => RoundedPolygon;
183
+ burst: () => RoundedPolygon;
184
+ softBurst: () => RoundedPolygon;
185
+ boom: () => RoundedPolygon;
186
+ softBoom: () => RoundedPolygon;
187
+ flower: () => RoundedPolygon;
188
+ puffy: () => RoundedPolygon;
189
+ puffyDiamond: () => RoundedPolygon;
190
+ pixelCircle: () => RoundedPolygon;
191
+ pixelTriangle: () => RoundedPolygon;
192
+ bun: () => RoundedPolygon;
193
+ heart: () => RoundedPolygon;
194
+ };
195
+
196
+ /** Names of the Material shapes: Compose's, camelCased. */
197
+ type MaterialShapeName = keyof typeof byName;
198
+
199
+ /** A Material shape by name, normalised into the unit square. */
200
+ declare const materialShape: (name: MaterialShapeName) => RoundedPolygon;
201
+
202
+ /** A polygon's outline as an SVG path ("M … C … Z"), scaled by `size`: a normalised shape fills a `size` × `size` box. */
203
+ declare const polygonPath: (polygon: RoundedPolygon, size?: number) => string;
204
+
205
+ /** A Material shape as an SVG path in a `size` × `size` box. */
206
+ declare const materialShapePath: (name: MaterialShapeName, size?: number) => string;
207
+
208
+ /** A shape's outline as radii at evenly spaced angles around its centre */
209
+ interface RadialProfile {
210
+ /** Radius at angle i * 2π / radii.length, clockwise from the positive x axis on a y-down canvas */
211
+ radii: Float32Array;
212
+ /** The area centroid the radii are measured from */
213
+ centerX: number;
214
+ centerY: number;
215
+ /** The largest radius, for fitting the shape into a circle */
216
+ maxRadius: number;
217
+ }
218
+
219
+
220
+ declare const sampleProfile: (polygon: RoundedPolygon, samples?: number, stepsPerCubic?: number) => RadialProfile;
221
+
222
+ /** Samples the outline at `samples` angles around the shape's area centroid. */
223
+ declare const radialProfile: (polygon: RoundedPolygon, samples?: number, stepsPerCubic?: number) => RadialProfile;
224
+ /** A cubic Bézier: anchor 0, control 0, control 1, anchor 1 */
225
+ type Cubic = readonly [
226
+ number,
227
+ number,
228
+ number,
229
+ number,
230
+ number,
231
+ number,
232
+ number,
233
+ number
234
+ ];
235
+
236
+ /** A 2D point */
237
+ type Point = readonly [
238
+ number,
239
+ number
240
+ ];
241
+
242
+
243
+ declare const DISTANCE_EPSILON = 0.0001;
244
+
245
+ declare const lerp: (start: number, stop: number, fraction: number) => number;
246
+
247
+ declare const distance: (x: number, y: number) => number;
248
+
249
+
250
+ declare const direction: (x: number, y: number) => Point;
251
+
252
+ declare const rotate90: ([x, y]: Point) => Point;
253
+
254
+ declare const dot: (a: Point, b: Point) => number;
255
+
256
+ /** A straight segment expressed as a cubic */
257
+ declare const straightLine: (x0: number, y0: number, x1: number, y1: number) => Cubic;
258
+
259
+ /** A circular arc from (x0, y0) to (x1, y1) around (centerX, centerY), approximated by one cubic; the arc must be under 180 degrees. */
260
+ declare const circularArc: (centerX: number, centerY: number, x0: number, y0: number, x1: number, y1: number) => Cubic;
261
+
262
+ declare const pointOnCurve: (c: Cubic, t: number) => Point;
263
+
264
+ /** Splits a cubic at `t` into two that together trace it (de Casteljau) */
265
+ declare const splitCubic: (c: Cubic, t: number) => [
266
+ Cubic,
267
+ Cubic
268
+ ];
269
+
270
+ declare const reverseCubic: (c: Cubic) => Cubic;
271
+
272
+ declare const zeroLength: (c: Cubic) => boolean;
273
+
274
+ type PointTransformer = (x: number, y: number) => Point;
275
+
276
+ declare const transformCubic: (c: Cubic, f: PointTransformer) => Cubic;
277
+
278
+ /** The bounding box of a cubic as [left, top, right, bottom]. */
279
+ declare const cubicBounds: (c: Cubic) => [
280
+ number,
281
+ number,
282
+ number,
283
+ number
284
+ ];
285
+ export type { CornerRounding, Cubic, MaterialShapeName, Point, PointTransformer, RadialProfile, RoundedPolygon };
286
+ export { UNROUNDED, circle, circularArc, cubicBounds, materialShape, materialShapePath, normalizePolygon, pointOnCurve, polygonBounds, polygonMaxRadius, polygonPath, radialProfile, rectangle, regularPolygon, rotatePolygon, roundedPolygon, scalePolygon, shapeArch, shapeArrow, shapeBoom, shapeBun, shapeBurst, shapeCircle, shapeClamShell, shapeClover4Leaf, shapeClover8Leaf, shapeCookie12Sided, shapeCookie4Sided, shapeCookie6Sided, shapeCookie7Sided, shapeCookie9Sided, shapeDiamond, shapeFan, shapeFlower, shapeGem, shapeGhostish, shapeHeart, shapeOval, shapePentagon, shapePill, shapePixelCircle, shapePixelTriangle, shapePuffy, shapePuffyDiamond, shapeSemiCircle, shapeSlanted, shapeSoftBoom, shapeSoftBurst, shapeSquare, shapeSunny, shapeTriangle, shapeVerySunny, splitCubic, star, straightLine, transformPolygon };
@@ -1,6 +1,99 @@
1
- export { createEmitter } from "./emitter.js";
1
+ import type { EventCallback } from "./emitter.js";
2
+ /** State store options */
3
+ interface StoreOptions<T> {
4
+ /** Middleware functions that process state changes */
5
+ middleware?: Array<(newState: T, oldState: T) => T>;
6
+ }
7
+
8
+ /** State selector function type */
9
+ type Selector<T, R> = (state: T) => R;
10
+
11
+ /** State computation function type for derived state */
12
+ type Computation<T, R> = (state: T) => R;
13
+
14
+ /** State updater function type */
15
+ type Updater<T> = (state: T) => T;
16
+
17
+ /** What derive() returns: call it to remove the derived value, or read the value, typed, through get(). */
18
+ type DerivedState<R> = (() => void) & {
19
+ get: () => R;
20
+ };
21
+
22
+ /** State store interface */
23
+ interface Store<T> {
24
+ /** Gets current state including derived values */
25
+ getState: <D extends object = Record<never, never>>() => T & D;
26
+ /**
27
+ * Updates state
28
+ * @param update
29
+ */
30
+ setState: (update: Partial<T> | Updater<T>) => void;
31
+ /**
32
+ * Subscribes to state changes
33
+ * @param listener
34
+ */
35
+ subscribe: (listener: (state: T, oldState: T) => void) => () => void;
36
+ /**
37
+ * Creates a derived state value
38
+ * @param key
39
+ * @param computation
40
+ */
41
+ derive: <K extends string, R>(key: K, computation: Computation<T, R>) => DerivedState<R>;
42
+ /**
43
+ * Selects a specific slice of state
44
+ * @param selector
45
+ */
46
+ select: <R>(selector: Selector<T, R>) => R;
47
+ /** Resets state to initial values */
48
+ reset: () => void;
49
+ }
50
+
51
+ /**
52
+ * Creates a state store with support for derived state and middleware
53
+ * @param initialState
54
+ * @param options
55
+ */
56
+ declare const createStore: <T extends object>(initialState?: T, options?: StoreOptions<T>) => Store<T>;
57
+
58
+ /**
59
+ * Example middleware that logs state changes
60
+ * @param newState
61
+ * @param oldState
62
+ */
63
+ declare const loggingMiddleware: <T extends object>(newState: T, oldState: T) => T;
64
+
65
+ /**
66
+ * Creates a derived state selector for filtering objects
67
+ * @param predicate
68
+ */
69
+ declare const deriveFiltered: <T>(predicate: (value: T, key: string) => boolean) => (state: Record<string, T>) => Record<string, T>;
70
+
71
+ /** Event manager interface for handling component events */
72
+ interface EventManagerState {
73
+ /**
74
+ * Adds an event listener
75
+ * @param event
76
+ * @param handler
77
+ */
78
+ on: (event: string, handler: EventCallback) => EventManagerState;
79
+ /**
80
+ * Removes an event listener
81
+ * @param event
82
+ * @param handler
83
+ */
84
+ off: (event: string, handler: EventCallback) => EventManagerState;
85
+ /** Removes all event listeners and cleans up */
86
+ destroy: () => void;
87
+ /** Gets all active handlers */
88
+ getHandlers: () => Map<EventCallback, string>;
89
+ }
90
+
91
+ /**
92
+ * Creates an event manager for a component
93
+ * @param element
94
+ */
95
+ declare const createEventManager: (element: HTMLElement) => EventManagerState;
96
+ export type { Computation, DerivedState, EventManagerState, Selector, Store, StoreOptions, Updater };
97
+ export { createEventManager, createStore, deriveFiltered, loggingMiddleware };
2
98
  export type { Emitter, EventCallback } from "./emitter.js";
3
- export { createStore, loggingMiddleware, deriveFiltered } from "./store.js";
4
- export type { Store, StoreOptions, Selector, Computation, Updater, DerivedState } from "./store.js";
5
- export { createEventManager } from "./events.js";
6
- export type { EventManagerState } from "./events.js";
99
+ export { createEmitter } from "./emitter.js";
@@ -1,4 +1,80 @@
1
- export { schemeToTokens, THEME_ROLES } from "./tokens.js";
2
- export { cornerToken } from "./shape.js";
3
- export type { ShapeStep } from "./shape.js";
4
- export type { ThemeRole, SchemeRoles, SchemeToTokensOptions, ThemeTokens } from "./tokens.js";
1
+ /** M3 colour roles to mtrl's colour tokens. */
2
+ /** The colour roles a theme sets: the baseline theme's, in its order. */
3
+ declare const THEME_ROLES: readonly [
4
+ "error",
5
+ "on-error",
6
+ "error-container",
7
+ "on-error-container",
8
+ "primary",
9
+ "on-primary",
10
+ "primary-container",
11
+ "on-primary-container",
12
+ "secondary",
13
+ "on-secondary",
14
+ "secondary-container",
15
+ "on-secondary-container",
16
+ "tertiary",
17
+ "on-tertiary",
18
+ "tertiary-container",
19
+ "on-tertiary-container",
20
+ "primary-fixed",
21
+ "primary-fixed-dim",
22
+ "on-primary-fixed",
23
+ "on-primary-fixed-variant",
24
+ "secondary-fixed",
25
+ "secondary-fixed-dim",
26
+ "on-secondary-fixed",
27
+ "on-secondary-fixed-variant",
28
+ "tertiary-fixed",
29
+ "tertiary-fixed-dim",
30
+ "on-tertiary-fixed",
31
+ "on-tertiary-fixed-variant",
32
+ "surface",
33
+ "surface-dim",
34
+ "surface-bright",
35
+ "surface-variant",
36
+ "surface-container-lowest",
37
+ "surface-container-low",
38
+ "surface-container",
39
+ "surface-container-high",
40
+ "surface-container-highest",
41
+ "on-surface",
42
+ "on-surface-variant",
43
+ "outline",
44
+ "outline-variant",
45
+ "shadow",
46
+ "scrim",
47
+ "inverse-surface",
48
+ "inverse-on-surface",
49
+ "inverse-primary"
50
+ ];
51
+
52
+ type ThemeRole = (typeof THEME_ROLES)[number];
53
+
54
+ /** A scheme's colours by role. */
55
+ type SchemeRoles = Record<string, string>;
56
+
57
+ interface SchemeToTokensOptions {
58
+ /** The token prefix, as `--{prefix}-sys-color-*`. */
59
+ prefix?: string;
60
+ }
61
+
62
+ /** A theme's declarations: custom property to value, light and dark. */
63
+ interface ThemeTokens {
64
+ light: Record<string, string>;
65
+ dark: Record<string, string>;
66
+ }
67
+
68
+ /** Turns a light and a dark scheme's role colours into a theme's colour tokens. */
69
+ declare const schemeToTokens: (schemes: {
70
+ light: SchemeRoles;
71
+ dark: SchemeRoles;
72
+ }, options?: SchemeToTokensOptions) => ThemeTokens;
73
+ /** The shape scale's corner tokens, for a radius a component writes from script: as the stylesheets read it, the token with the compiled value as its fallback, so a theme's corners reach inline styles too. */
74
+ /** A step of M3's shape scale, as `$shape` in src/styles/abstract/_variables.scss names it. */
75
+ type ShapeStep = "none" | "extra-small" | "small" | "medium" | "large" | "large-increased" | "extra-large" | "extra-large-increased" | "extra-extra-large";
76
+
77
+ /** `var(--mtrl-sys-shape-corner-small, 8px)`: a step's token, its px the fallback. */
78
+ declare const cornerToken: (step: ShapeStep, px: number, prefix?: string) => string;
79
+ export type { SchemeRoles, SchemeToTokensOptions, ShapeStep, ThemeRole, ThemeTokens };
80
+ export { THEME_ROLES, cornerToken, schemeToTokens };
@@ -1,18 +1,104 @@
1
- export { isObject, byString } from "./object.js";
2
- export { normalizeEvent, hasTouchSupport, TOUCH_CONFIG, PASSIVE_EVENTS } from "./mobile.js";
3
- export { getInheritedBackground } from "./background.js";
4
- export { throttle, debounce, once } from "./performance.js";
5
- export { getThemeColor } from "./theme.js";
6
- export { colorToRGBA } from "./color.js";
7
- export { isSafeUrl, safeUrl, URL_ATTRIBUTES } from "./url.js";
1
+
8
2
  /**
9
3
  * Creates a transformer that only runs if a condition is met
10
4
  * @param predicate
11
5
  * @param transformer
12
6
  */
13
- export declare const when: <T, C>(predicate: (obj: T, context: C) => boolean, transformer: (obj: T, context: C) => T) => (obj: T, context: C) => T;
7
+ declare const when: <T, C>(predicate: (obj: T, context: C) => boolean, transformer: (obj: T, context: C) => T) => (obj: T, context: C) => T;
8
+
14
9
  /**
15
10
  * Joins class names, filtering out falsy values
16
11
  * @param classes
17
12
  */
18
- export declare const classNames: (...classes: (string | undefined | null | false)[]) => string;
13
+ declare const classNames: (...classes: (string | undefined | null | false)[]) => string;
14
+ /** Result interface for background color lookup */
15
+ interface BackgroundResult {
16
+ /** The computed background color value */
17
+ color: string;
18
+ /** The element from which the color was obtained */
19
+ element: HTMLElement | null;
20
+ }
21
+
22
+ /**
23
+ * Gets the computed background color of an element or its ancestors.
24
+ * @param element
25
+ */
26
+ declare const getInheritedBackground: (element: HTMLElement, maxDepth?: number) => BackgroundResult;
27
+ type ThemeChangeCallback = () => void;
28
+
29
+
30
+ declare const onThemeChange: (callback: ThemeChangeCallback) => (() => void);
31
+
32
+ /**
33
+ * Gets a theme color from CSS variables, with optional alpha/opacity support.
34
+ * @param varName
35
+ */
36
+ declare function getThemeColor(varName: string, options?: {
37
+ alpha?: number;
38
+ fallback?: string;
39
+ element?: Element | null;
40
+ onThemeChange?: ThemeChangeCallback;
41
+ }): string;
42
+ /**
43
+ * Checks if a value is a plain object
44
+ * @param value
45
+ */
46
+ declare const isObject: (value: unknown) => value is Record<string, unknown>;
47
+
48
+ /**
49
+ * Accesses a nested property of an object using a string path
50
+ * @param obj
51
+ * @param path
52
+ */
53
+ declare const byString: <T extends object, R = unknown>(obj: T, path: string) => R | undefined;
54
+ /**
55
+ * Converts a color to RGBA format with specified opacity
56
+ * @param color
57
+ * @param opacity
58
+ */
59
+ declare const colorToRGBA: (color: string, opacity: number) => string;
60
+ /** Attributes whose value is a URL, and so must be checked before assignment. */
61
+ declare const URL_ATTRIBUTES: Set<string>;
62
+
63
+ /** Whether a URL is safe to assign to a navigable attribute. */
64
+ declare const isSafeUrl: (url: string) => boolean;
65
+
66
+ /** Returns the URL if its scheme is allowed, otherwise an empty string. */
67
+ declare const safeUrl: (url: string) => string;
68
+ type Cancellable<F> = F & {
69
+ cancel(): void;
70
+ };
71
+
72
+ /**
73
+ * Creates a throttled function that only invokes the provided function at most once per every specified wait milliseconds.
74
+ * @param fn
75
+ * @param wait
76
+ * @param options
77
+ * @param options.leading
78
+ * @param options.trailing
79
+ */
80
+ declare const throttle: <T extends (...args: never[]) => unknown>(fn: T, wait: number, options?: {
81
+ leading?: boolean;
82
+ trailing?: boolean;
83
+ }) => Cancellable<(...args: Parameters<T>) => void>;
84
+
85
+ /**
86
+ * Creates a debounced function that delays invoking the provided function until after the specified wait milliseconds have elapsed since the last time it was invoked.
87
+ * @param fn
88
+ * @param wait
89
+ * @param options
90
+ * @param options.leading
91
+ * @param options.maxWait
92
+ */
93
+ declare const debounce: <T extends (...args: never[]) => unknown>(fn: T, wait: number, options?: {
94
+ leading?: boolean;
95
+ maxWait?: number;
96
+ }) => Cancellable<(...args: Parameters<T>) => void>;
97
+
98
+ /**
99
+ * Creates a function that is restricted to invoking the provided function once.
100
+ * @param fn
101
+ */
102
+ declare const once: <T extends (...args: never[]) => unknown>(fn: T) => ((...args: Parameters<T>) => ReturnType<T>);
103
+ export { URL_ATTRIBUTES, byString, classNames, colorToRGBA, debounce, getInheritedBackground, getThemeColor, isObject, isSafeUrl, once, safeUrl, throttle, when };
104
+ export { PASSIVE_EVENTS, TOUCH_CONFIG, hasTouchSupport, normalizeEvent } from "./mobile.js";
@@ -21,7 +21,7 @@ export interface TouchEvents {
21
21
  tap: (payload: NormalizedEvent) => void;
22
22
  swipe: (payload: SwipePayload) => void;
23
23
  }
24
- /** Detects if the current device is likely a mobile device */
24
+
25
25
  export declare const isMobileDevice: () => boolean;
26
26
  /** Options for passive event listeners */
27
27
  export declare const PASSIVE_EVENTS: AddEventListenerOptions;
@@ -32,7 +32,7 @@ export declare const TOUCH_CONFIG: {
32
32
  TAP_THRESHOLD: number;
33
33
  SWIPE_THRESHOLD: number;
34
34
  };
35
- /** Accessibility-minded touch target sizes */
35
+
36
36
  export declare const TOUCH_TARGETS: {
37
37
  MINIMUM: number;
38
38
  COMFORTABLE: number;
@@ -79,11 +79,11 @@ export interface Described {
79
79
  slots: readonly string[];
80
80
  }
81
81
  export declare const describe: (spec: ComponentSpec) => Described;
82
- /** Writes the attributes live properties shadow (`defaultChecked` → the `checked` attribute) on the element. */
82
+
83
83
  export declare const writeDefaults: (element: HTMLElement, described: Described, read: (prop: string) => unknown) => void;
84
- /** Writes live-state props to the element. */
84
+
85
85
  export declare const writeLive: (element: HTMLElement, described: Described, read: (property: string) => unknown) => void;
86
- /** On the server a live value is the markup's default, so the page renders in that state before it hydrates: the attribute each given live property shadows, with its value. */
86
+
87
87
  export declare const serverDefaults: (described: Described, read: (property: string) => unknown) => Array<[
88
88
  string,
89
89
  string
@@ -1 +1 @@
1
- .mtrl-bottom-sheet{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.mtrl-bottom-sheet--scrim-visible,.mtrl-bottom-sheet--partial,.mtrl-bottom-sheet--expanded{pointer-events:auto}.mtrl-bottom-sheet__scrim{position:absolute;inset:0;background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);opacity:0;visibility:hidden;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s linear 250ms}.mtrl-bottom-sheet__container{position:relative;width:100%;max-width:640px;max-height:100%;display:flex;flex-direction:column;box-sizing:border-box;pointer-events:auto;background-color:var(--mtrl-sys-color-surface-container-low);color:var(--mtrl-sys-color-on-surface);border-start-start-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);border-start-end-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15),0 32px 0 0 var(--mtrl-sys-color-surface-container-low);transform:translateY(100%);transition:transform 175ms linear(0, 0.075, 0.227, 0.39, 0.537, 0.657, 0.751, 0.822, 0.874, 0.912, 0.939, 0.958, 0.971, 0.98, 0.987, 0.991, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 0.999, 1, 1)}.mtrl-bottom-sheet__container:focus{outline:none}.mtrl-bottom-sheet__container:focus-visible{outline:3px solid var(--mtrl-sys-color-secondary);outline-offset:-3px}.mtrl-bottom-sheet__handle{font:inherit;flex:0 0 auto;position:relative;align-self:center;width:48px;height:48px;margin:0 auto;padding:0;border:0;border-radius:50%;background:none;cursor:grab;touch-action:none}.mtrl-bottom-sheet__handle::before{content:"";position:absolute;inset:22px 8px;border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);background-color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-bottom-sheet__handle:active{cursor:grabbing}.mtrl-bottom-sheet__handle:focus-visible{outline:3px solid var(--mtrl-sys-color-secondary);outline-offset:-3px}.mtrl-bottom-sheet__header{flex:0 0 auto;padding:0 24px 16px}.mtrl-bottom-sheet__title{margin:0;color:var(--mtrl-sys-color-on-surface);font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:24px;line-height:32px;letter-spacing:0;font-weight:400}.mtrl-bottom-sheet__content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 24px 24px;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__container{transform:translateY(0);max-height:var(--mtrl-bottom-sheet-peek-height, 50%);transition:transform 450ms linear(0, 0.055, 0.18, 0.332, 0.483, 0.619, 0.733, 0.823, 0.891, 0.94, 0.973, 0.994, 1.007, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.006, 1.005, 1.003, 1.002, 1.001, 1)}.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__scrim{opacity:1;visibility:visible;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container{transform:translateY(0);max-height:100%;transition:transform 450ms linear(0, 0.055, 0.18, 0.332, 0.483, 0.619, 0.733, 0.823, 0.891, 0.94, 0.973, 0.994, 1.007, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.006, 1.005, 1.003, 1.002, 1.001, 1)}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container:where(.mtrl-bottom-sheet--full-height *){border-start-start-radius:0;border-start-end-radius:0}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__scrim{opacity:1;visibility:visible;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s}.mtrl-bottom-sheet--standard{pointer-events:none}.mtrl-bottom-sheet--standard .mtrl-bottom-sheet__container{pointer-events:auto}@media(prefers-reduced-motion: reduce){.mtrl-bottom-sheet .mtrl-bottom-sheet__container,.mtrl-bottom-sheet .mtrl-bottom-sheet__scrim,.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__container,.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__scrim,.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container,.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__scrim{transition:none}}dialog.mtrl-bottom-sheet{width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:visible;background:rgba(0,0,0,0);color:inherit;transition:overlay 250ms allow-discrete}dialog.mtrl-bottom-sheet::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);opacity:0;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1)}dialog.mtrl-bottom-sheet.mtrl-bottom-sheet--partial::backdrop,dialog.mtrl-bottom-sheet.mtrl-bottom-sheet--expanded::backdrop{opacity:1}@media(prefers-reduced-motion: reduce){dialog.mtrl-bottom-sheet,dialog.mtrl-bottom-sheet::backdrop{transition:none}}
1
+ .mtrl-bottom-sheet{--mtrl-density: 0;position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}.mtrl-bottom-sheet--scrim-visible,.mtrl-bottom-sheet--partial,.mtrl-bottom-sheet--expanded{pointer-events:auto}.mtrl-bottom-sheet__scrim{position:absolute;inset:0;background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);opacity:0;visibility:hidden;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s linear 250ms}.mtrl-bottom-sheet__container{position:relative;width:100%;max-width:640px;max-height:100%;display:flex;flex-direction:column;box-sizing:border-box;pointer-events:auto;background-color:var(--mtrl-sys-color-surface-container-low);color:var(--mtrl-sys-color-on-surface);border-start-start-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);border-start-end-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);box-shadow:0px 1px 2px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15),0 32px 0 0 var(--mtrl-sys-color-surface-container-low);transform:translateY(100%);transition:transform 175ms linear(0, 0.075, 0.227, 0.39, 0.537, 0.657, 0.751, 0.822, 0.874, 0.912, 0.939, 0.958, 0.971, 0.98, 0.987, 0.991, 0.994, 0.996, 0.997, 0.998, 0.999, 0.999, 0.999, 1, 1)}.mtrl-bottom-sheet__container:focus{outline:none}.mtrl-bottom-sheet__container:focus-visible{outline:3px solid var(--mtrl-sys-color-secondary);outline-offset:-3px}.mtrl-bottom-sheet__handle{font:inherit;flex:0 0 auto;position:relative;align-self:center;width:48px;height:48px;margin:0 auto;padding:0;border:0;border-radius:50%;background:none;cursor:grab;touch-action:none}.mtrl-bottom-sheet__handle::before{content:"";position:absolute;inset:22px 8px;border-radius:var(--mtrl-sys-shape-corner-extra-large, 28px);background-color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-bottom-sheet__handle:active{cursor:grabbing}.mtrl-bottom-sheet__handle:focus-visible{outline:3px solid var(--mtrl-sys-color-secondary);outline-offset:-3px}.mtrl-bottom-sheet__header{flex:0 0 auto;padding:0 24px 16px}.mtrl-bottom-sheet__title{margin:0;color:var(--mtrl-sys-color-on-surface);font-family:var(--mtrl-ref-typeface-brand, Roboto, sans-serif);font-size:24px;line-height:32px;letter-spacing:0;font-weight:400}.mtrl-bottom-sheet__content{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0 24px 24px;font-family:var(--mtrl-ref-typeface-plain, Roboto, sans-serif);font-size:14px;line-height:20px;letter-spacing:.25px;font-weight:400;color:var(--mtrl-sys-color-on-surface-variant)}.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__container{transform:translateY(0);max-height:var(--mtrl-bottom-sheet-peek-height, 50%);transition:transform 450ms linear(0, 0.055, 0.18, 0.332, 0.483, 0.619, 0.733, 0.823, 0.891, 0.94, 0.973, 0.994, 1.007, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.006, 1.005, 1.003, 1.002, 1.001, 1)}.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__scrim{opacity:1;visibility:visible;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container{transform:translateY(0);max-height:100%;transition:transform 450ms linear(0, 0.055, 0.18, 0.332, 0.483, 0.619, 0.733, 0.823, 0.891, 0.94, 0.973, 0.994, 1.007, 1.013, 1.015, 1.015, 1.013, 1.011, 1.009, 1.006, 1.005, 1.003, 1.002, 1.001, 1)}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container:where(.mtrl-bottom-sheet--full-height *){border-start-start-radius:0;border-start-end-radius:0}.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__scrim{opacity:1;visibility:visible;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1),visibility 0s}.mtrl-bottom-sheet--standard{pointer-events:none}.mtrl-bottom-sheet--standard .mtrl-bottom-sheet__container{pointer-events:auto}@media(prefers-reduced-motion: reduce){.mtrl-bottom-sheet .mtrl-bottom-sheet__container,.mtrl-bottom-sheet .mtrl-bottom-sheet__scrim,.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__container,.mtrl-bottom-sheet--partial .mtrl-bottom-sheet__scrim,.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__container,.mtrl-bottom-sheet--expanded .mtrl-bottom-sheet__scrim{transition:none}}dialog.mtrl-bottom-sheet{width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:visible;background:rgba(0,0,0,0);color:inherit;transition:overlay 250ms allow-discrete}dialog.mtrl-bottom-sheet::backdrop{background-color:color-mix(in srgb, var(--mtrl-sys-color-scrim) 32%, transparent);opacity:0;transition:opacity 250ms linear(0, 0.066, 0.203, 0.355, 0.496, 0.616, 0.713, 0.788, 0.845, 0.888, 0.92, 0.943, 0.96, 0.971, 0.98, 0.986, 0.99, 0.993, 0.995, 0.997, 0.998, 0.998, 0.999, 0.999, 1)}dialog.mtrl-bottom-sheet.mtrl-bottom-sheet--partial::backdrop,dialog.mtrl-bottom-sheet.mtrl-bottom-sheet--expanded::backdrop{opacity:1}@media(prefers-reduced-motion: reduce){dialog.mtrl-bottom-sheet,dialog.mtrl-bottom-sheet::backdrop{transition:none}}