material 3.8.0 → 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 (382) hide show
  1. package/README.md +1 -1
  2. package/dist/components/badge/badge.d.ts +4 -0
  3. package/dist/components/badge/constants.d.ts +4 -0
  4. package/dist/components/badge/index.d.ts +1 -0
  5. package/dist/components/badge/types.d.ts +102 -0
  6. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +4 -0
  7. package/dist/components/bottom-app-bar/constants.d.ts +3 -0
  8. package/dist/components/bottom-app-bar/types.d.ts +42 -0
  9. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  10. package/dist/components/bottom-sheet/constants.d.ts +9 -0
  11. package/dist/components/bottom-sheet/types.d.ts +52 -0
  12. package/dist/components/button/button.d.ts +4 -0
  13. package/dist/components/button/constants.d.ts +20 -0
  14. package/dist/components/button/index.d.ts +1 -0
  15. package/dist/components/button/types.d.ts +190 -0
  16. package/dist/components/button-group/button-group.d.ts +4 -0
  17. package/dist/components/button-group/constants.d.ts +54 -0
  18. package/dist/components/button-group/index.d.ts +1 -0
  19. package/dist/components/button-group/types.d.ts +125 -0
  20. package/dist/components/card/card.d.ts +4 -0
  21. package/dist/components/card/constants.d.ts +11 -0
  22. package/dist/components/card/content.d.ts +16 -0
  23. package/dist/components/card/index.d.ts +2 -0
  24. package/dist/components/card/types.d.ts +123 -0
  25. package/dist/components/carousel/carousel.d.ts +1 -0
  26. package/dist/components/carousel/constants.d.ts +10 -0
  27. package/dist/components/carousel/types.d.ts +16 -0
  28. package/dist/components/checkbox/checkbox.d.ts +5 -0
  29. package/dist/components/checkbox/constants.d.ts +13 -0
  30. package/dist/components/checkbox/index.d.ts +2 -0
  31. package/dist/components/checkbox/types.d.ts +94 -0
  32. package/dist/components/chips/chips.d.ts +4 -0
  33. package/dist/components/chips/constants.d.ts +1 -0
  34. package/dist/components/chips/factories.d.ts +4 -0
  35. package/dist/components/chips/types.d.ts +140 -0
  36. package/dist/components/datepicker/constants.d.ts +38 -0
  37. package/dist/components/datepicker/datepicker.d.ts +2 -0
  38. package/dist/components/datepicker/types.d.ts +139 -0
  39. package/dist/components/dialog/constants.d.ts +45 -0
  40. package/dist/components/dialog/dialog.d.ts +5 -0
  41. package/dist/components/dialog/index.d.ts +1 -0
  42. package/dist/components/dialog/types.d.ts +196 -0
  43. package/dist/components/divider/config.d.ts +30 -0
  44. package/dist/components/divider/constants.d.ts +15 -0
  45. package/dist/components/divider/divider.d.ts +4 -0
  46. package/dist/components/divider/types.d.ts +27 -0
  47. package/dist/components/drawer/constants.d.ts +39 -0
  48. package/dist/components/drawer/drawer.d.ts +4 -0
  49. package/dist/components/drawer/index.d.ts +1 -0
  50. package/dist/components/drawer/types.d.ts +109 -0
  51. package/dist/components/extended-fab/constants.d.ts +32 -0
  52. package/dist/components/extended-fab/extended-fab.d.ts +4 -0
  53. package/dist/components/extended-fab/types.d.ts +123 -0
  54. package/dist/components/fab/constants.d.ts +26 -0
  55. package/dist/components/fab/fab.d.ts +4 -0
  56. package/dist/components/fab/types.d.ts +100 -0
  57. package/dist/components/fab-menu/constants.d.ts +9 -0
  58. package/dist/components/fab-menu/fab-menu.d.ts +4 -0
  59. package/dist/components/fab-menu/types.d.ts +41 -0
  60. package/dist/components/icon-button/constants.d.ts +34 -0
  61. package/dist/components/icon-button/icon-button.d.ts +4 -0
  62. package/dist/components/icon-button/types.d.ts +157 -0
  63. package/dist/components/index.d.ts +1 -0
  64. package/dist/components/list/constants.d.ts +30 -0
  65. package/dist/components/list/index.d.ts +1 -0
  66. package/dist/components/list/list.d.ts +4 -0
  67. package/dist/components/list/types.d.ts +110 -0
  68. package/dist/components/loading-indicator/constants.d.ts +16 -0
  69. package/dist/components/loading-indicator/features/renderer.d.ts +13 -0
  70. package/dist/components/loading-indicator/loading-indicator.d.ts +4 -0
  71. package/dist/components/loading-indicator/types.d.ts +21 -0
  72. package/dist/components/menu/constants.d.ts +51 -0
  73. package/dist/components/menu/features/controller.js +1 -1
  74. package/dist/components/menu/features/keyboard.js +8 -3
  75. package/dist/components/menu/features/opener.js +2 -16
  76. package/dist/components/menu/index.d.ts +2 -0
  77. package/dist/components/menu/inner.d.ts +2 -0
  78. package/dist/components/menu/menu.d.ts +4 -0
  79. package/dist/components/menu/on-demand.d.ts +9 -0
  80. package/dist/components/menu/types.d.ts +185 -1
  81. package/dist/components/navigation-bar/navigation-bar.d.ts +1 -0
  82. package/dist/components/navigation-bar/types.d.ts +12 -0
  83. package/dist/components/navigation-rail/constants.d.ts +2 -0
  84. package/dist/components/navigation-rail/navigation-rail.d.ts +1 -0
  85. package/dist/components/navigation-rail/types.d.ts +18 -0
  86. package/dist/components/progress/constants.d.ts +37 -0
  87. package/dist/components/progress/progress.d.ts +4 -0
  88. package/dist/components/progress/types.d.ts +136 -0
  89. package/dist/components/radios/constants.d.ts +14 -0
  90. package/dist/components/radios/radios.d.ts +4 -0
  91. package/dist/components/radios/types.d.ts +89 -0
  92. package/dist/components/search/constants.d.ts +34 -0
  93. package/dist/components/search/search.d.ts +4 -0
  94. package/dist/components/search/types.d.ts +109 -0
  95. package/dist/components/select/constants.d.ts +46 -0
  96. package/dist/components/select/features.js +9 -1
  97. package/dist/components/select/index.d.ts +2 -0
  98. package/dist/components/select/select.d.ts +4 -0
  99. package/dist/components/select/types.d.ts +95 -0
  100. package/dist/components/side-sheet/constants.d.ts +9 -0
  101. package/dist/components/side-sheet/side-sheet.d.ts +4 -0
  102. package/dist/components/side-sheet/types.d.ts +51 -0
  103. package/dist/components/slider/constants.d.ts +62 -0
  104. package/dist/components/slider/slider.d.ts +4 -0
  105. package/dist/components/slider/types.d.ts +78 -0
  106. package/dist/components/snackbar/constants.d.ts +37 -0
  107. package/dist/components/snackbar/snackbar.d.ts +5 -0
  108. package/dist/components/snackbar/types.d.ts +67 -0
  109. package/dist/components/split-button/api.js +13 -3
  110. package/dist/components/split-button/constants.d.ts +13 -0
  111. package/dist/components/split-button/split-button.d.ts +4 -0
  112. package/dist/components/split-button/types.d.ts +50 -0
  113. package/dist/components/switch/constants.d.ts +34 -0
  114. package/dist/components/switch/switch.d.ts +4 -0
  115. package/dist/components/switch/types.d.ts +55 -0
  116. package/dist/components/tabs/constants.d.ts +49 -0
  117. package/dist/components/tabs/indicator.d.ts +22 -0
  118. package/dist/components/tabs/responsive.d.ts +17 -0
  119. package/dist/components/tabs/tab.d.ts +5 -0
  120. package/dist/components/tabs/tabs.d.ts +4 -0
  121. package/dist/components/tabs/types.d.ts +170 -0
  122. package/dist/components/tabs/utils.d.ts +24 -0
  123. package/dist/components/text-field/constants.d.ts +61 -0
  124. package/dist/components/text-field/features/trailing-icon.d.ts +25 -0
  125. package/dist/components/text-field/text-field.d.ts +4 -0
  126. package/dist/components/text-field/types.d.ts +84 -0
  127. package/dist/components/timepicker/constants.d.ts +61 -0
  128. package/dist/components/timepicker/types.d.ts +145 -0
  129. package/dist/components/toolbar/constants.d.ts +8 -0
  130. package/dist/components/toolbar/toolbar.d.ts +4 -0
  131. package/dist/components/toolbar/types.d.ts +75 -0
  132. package/dist/components/tooltip/constants.d.ts +43 -0
  133. package/dist/components/tooltip/tooltip.d.ts +4 -0
  134. package/dist/components/tooltip/types.d.ts +78 -0
  135. package/dist/components/top-app-bar/constants.d.ts +29 -0
  136. package/dist/components/top-app-bar/top-app-bar.d.ts +4 -0
  137. package/dist/components/top-app-bar/types.d.ts +55 -0
  138. package/dist/core/canvas/animation.d.ts +6 -0
  139. package/dist/core/canvas/drawing.d.ts +47 -0
  140. package/dist/core/canvas/index.d.ts +1 -0
  141. package/dist/core/canvas/resize.d.ts +7 -0
  142. package/dist/core/canvas/utils.d.ts +39 -0
  143. package/dist/core/compose/base.d.ts +9 -0
  144. package/dist/core/compose/cleanup.d.ts +2 -0
  145. package/dist/core/compose/component.d.ts +13 -0
  146. package/dist/core/compose/features/badge.d.ts +10 -0
  147. package/dist/core/compose/features/checkable.d.ts +13 -0
  148. package/dist/core/compose/features/debounce.d.ts +19 -0
  149. package/dist/core/compose/features/disabled.d.ts +11 -0
  150. package/dist/core/compose/features/events.d.ts +19 -0
  151. package/dist/core/compose/features/icon.d.ts +20 -0
  152. package/dist/core/compose/features/input.d.ts +31 -0
  153. package/dist/core/compose/features/lifecycle.d.ts +16 -0
  154. package/dist/core/compose/features/position.d.ts +13 -0
  155. package/dist/core/compose/features/ripple.d.ts +17 -0
  156. package/dist/core/compose/features/size.d.ts +5 -0
  157. package/dist/core/compose/features/style.d.ts +5 -0
  158. package/dist/core/compose/features/text.d.ts +20 -0
  159. package/dist/core/compose/features/textinput.d.ts +39 -0
  160. package/dist/core/compose/features/textlabel.d.ts +18 -0
  161. package/dist/core/compose/features/throttle.d.ts +18 -0
  162. package/dist/core/compose/features/track.d.ts +12 -0
  163. package/dist/core/compose/features/variant.d.ts +5 -0
  164. package/dist/core/compose/features/withEvents.d.ts +12 -0
  165. package/dist/core/compose/pipe.d.ts +12 -0
  166. package/dist/core/compose/utils/type-guards.d.ts +5 -0
  167. package/dist/core/config/component.d.ts +17 -0
  168. package/dist/core/config/global.d.ts +15 -0
  169. package/dist/core/config.d.ts +34 -0
  170. package/dist/core/dom/attributes.d.ts +25 -0
  171. package/dist/core/dom/classes.d.ts +24 -0
  172. package/dist/core/dom/create.d.ts +47 -0
  173. package/dist/core/dom/events.d.ts +26 -0
  174. package/dist/core/dom/focus.d.ts +11 -0
  175. package/dist/core/dom/html.d.ts +6 -0
  176. package/dist/core/dom/layer.d.ts +36 -0
  177. package/dist/core/dom/roving.d.ts +7 -0
  178. package/dist/core/navigation/destinations.d.ts +10 -0
  179. package/dist/core/shapes/cubic.d.ts +8 -0
  180. package/dist/core/shapes/material.d.ts +45 -0
  181. package/dist/core/shapes/polygon.d.ts +11 -0
  182. package/dist/core/state/emitter.d.ts +19 -0
  183. package/dist/core/state/events.d.ts +17 -0
  184. package/dist/core/state/store.d.ts +40 -0
  185. package/dist/core/theme/shape.d.ts +3 -0
  186. package/dist/core/theme/tokens.d.ts +6 -0
  187. package/dist/core/utils/background.d.ts +7 -0
  188. package/dist/core/utils/color.d.ts +5 -0
  189. package/dist/core/utils/index.d.ts +9 -0
  190. package/dist/core/utils/mobile.d.ts +10 -0
  191. package/dist/core/utils/object.d.ts +9 -0
  192. package/dist/core/utils/performance.d.ts +20 -0
  193. package/dist/core/utils/theme.d.ts +8 -0
  194. package/dist/core/utils/url.d.ts +3 -0
  195. package/dist/elements/adapter.d.ts +24 -0
  196. package/dist/elements/badge.d.ts +4 -0
  197. package/dist/elements/bottom-app-bar.d.ts +4 -0
  198. package/dist/elements/bottom-sheet.d.ts +6 -0
  199. package/dist/elements/button-group.d.ts +8 -0
  200. package/dist/elements/button.d.ts +5 -0
  201. package/dist/elements/card.d.ts +4 -0
  202. package/dist/elements/carousel.d.ts +5 -0
  203. package/dist/elements/checkbox.d.ts +4 -0
  204. package/dist/elements/chips.d.ts +9 -0
  205. package/dist/elements/css/menu.css +1 -1
  206. package/dist/elements/css/menu.js +1 -1
  207. package/dist/elements/datepicker.d.ts +6 -0
  208. package/dist/elements/define.d.ts +48 -0
  209. package/dist/elements/dialog.d.ts +5 -0
  210. package/dist/elements/divider.d.ts +4 -0
  211. package/dist/elements/drawer.d.ts +6 -0
  212. package/dist/elements/extended-fab.d.ts +5 -0
  213. package/dist/elements/fab-menu.d.ts +10 -0
  214. package/dist/elements/fab.d.ts +5 -0
  215. package/dist/elements/icon-button.d.ts +6 -0
  216. package/dist/elements/index.d.ts +4 -0
  217. package/dist/elements/list.d.ts +8 -0
  218. package/dist/elements/loading-indicator.d.ts +4 -0
  219. package/dist/elements/menu.d.ts +12 -0
  220. package/dist/elements/navigation-bar.d.ts +6 -0
  221. package/dist/elements/navigation-rail.d.ts +10 -0
  222. package/dist/elements/preupgrade/badge.css +1 -1
  223. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  224. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  225. package/dist/elements/preupgrade/button-group.css +1 -1
  226. package/dist/elements/preupgrade/button.css +1 -1
  227. package/dist/elements/preupgrade/card.css +1 -1
  228. package/dist/elements/preupgrade/carousel.css +1 -1
  229. package/dist/elements/preupgrade/checkbox.css +1 -1
  230. package/dist/elements/preupgrade/chips.css +1 -1
  231. package/dist/elements/preupgrade/datepicker.css +1 -1
  232. package/dist/elements/preupgrade/dialog.css +1 -1
  233. package/dist/elements/preupgrade/divider.css +1 -1
  234. package/dist/elements/preupgrade/drawer.css +1 -1
  235. package/dist/elements/preupgrade/extended-fab.css +1 -1
  236. package/dist/elements/preupgrade/fab-menu.css +1 -1
  237. package/dist/elements/preupgrade/fab.css +1 -1
  238. package/dist/elements/preupgrade/icon-button.css +1 -1
  239. package/dist/elements/preupgrade/list.css +1 -1
  240. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  241. package/dist/elements/preupgrade/menu.css +1 -1
  242. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  243. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  244. package/dist/elements/preupgrade/progress.css +1 -1
  245. package/dist/elements/preupgrade/radios.css +1 -1
  246. package/dist/elements/preupgrade/search.css +1 -1
  247. package/dist/elements/preupgrade/select.css +1 -1
  248. package/dist/elements/preupgrade/side-sheet.css +1 -1
  249. package/dist/elements/preupgrade/slider.css +1 -1
  250. package/dist/elements/preupgrade/snackbar.css +1 -1
  251. package/dist/elements/preupgrade/split-button.css +1 -1
  252. package/dist/elements/preupgrade/switch.css +1 -1
  253. package/dist/elements/preupgrade/tabs.css +1 -1
  254. package/dist/elements/preupgrade/text-field.css +1 -1
  255. package/dist/elements/preupgrade/timepicker.css +1 -1
  256. package/dist/elements/preupgrade/toolbar.css +1 -1
  257. package/dist/elements/preupgrade/tooltip.css +1 -1
  258. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  259. package/dist/elements/preupgrade.css +1 -1
  260. package/dist/elements/progress.d.ts +4 -0
  261. package/dist/elements/radios.d.ts +5 -0
  262. package/dist/elements/search.d.ts +15 -0
  263. package/dist/elements/select.d.ts +6 -0
  264. package/dist/elements/side-sheet.d.ts +5 -0
  265. package/dist/elements/slider.d.ts +7 -0
  266. package/dist/elements/snackbar.d.ts +4 -0
  267. package/dist/elements/split-button.d.ts +8 -0
  268. package/dist/elements/styles.d.ts +11 -0
  269. package/dist/elements/switch.d.ts +5 -0
  270. package/dist/elements/tabs.d.ts +6 -0
  271. package/dist/elements/text-field.d.ts +9 -0
  272. package/dist/elements/timepicker.d.ts +9 -0
  273. package/dist/elements/toolbar.d.ts +4 -0
  274. package/dist/elements/tooltip.d.ts +4 -0
  275. package/dist/elements/top-app-bar.d.ts +4 -0
  276. package/dist/index.d.ts +1 -0
  277. package/dist/react/create.d.ts +15 -0
  278. package/dist/react/index.d.ts +1 -0
  279. package/dist/react/jsx.d.ts +3 -0
  280. package/dist/solid/create.d.ts +16 -0
  281. package/dist/solid/index.d.ts +1 -0
  282. package/dist/solid/jsx.d.ts +4 -0
  283. package/dist/ssr/index.d.ts +3 -0
  284. package/dist/ssr/solid.d.ts +1 -0
  285. package/dist/ssr/svelte.d.ts +1 -0
  286. package/dist/ssr/vue.d.ts +1 -0
  287. package/dist/styles/badge.css +1 -1
  288. package/dist/styles/base-lite.css +1 -1
  289. package/dist/styles/base.css +1 -1
  290. package/dist/styles/bottom-app-bar.css +1 -1
  291. package/dist/styles/bottom-sheet.css +1 -1
  292. package/dist/styles/button-group.css +1 -1
  293. package/dist/styles/button.css +1 -1
  294. package/dist/styles/card.css +1 -1
  295. package/dist/styles/carousel.css +1 -1
  296. package/dist/styles/checkbox.css +1 -1
  297. package/dist/styles/chips.css +1 -1
  298. package/dist/styles/contrast.css +1 -1
  299. package/dist/styles/datepicker.css +1 -1
  300. package/dist/styles/dialog.css +1 -1
  301. package/dist/styles/divider.css +1 -1
  302. package/dist/styles/drawer.css +1 -1
  303. package/dist/styles/extended-fab.css +1 -1
  304. package/dist/styles/fab-menu.css +1 -1
  305. package/dist/styles/fab.css +1 -1
  306. package/dist/styles/icon-button.css +1 -1
  307. package/dist/styles/list.css +1 -1
  308. package/dist/styles/loading-indicator.css +1 -1
  309. package/dist/styles/menu.css +2 -2
  310. package/dist/styles/navigation-bar.css +1 -1
  311. package/dist/styles/navigation-rail.css +1 -1
  312. package/dist/styles/progress.css +1 -1
  313. package/dist/styles/radios.css +1 -1
  314. package/dist/styles/search.css +1 -1
  315. package/dist/styles/select.css +1 -1
  316. package/dist/styles/side-sheet.css +1 -1
  317. package/dist/styles/slider.css +1 -1
  318. package/dist/styles/snackbar.css +1 -1
  319. package/dist/styles/split-button.css +1 -1
  320. package/dist/styles/switch.css +1 -1
  321. package/dist/styles/tabs.css +1 -1
  322. package/dist/styles/text-field.css +1 -1
  323. package/dist/styles/timepicker.css +1 -1
  324. package/dist/styles/toolbar.css +1 -1
  325. package/dist/styles/tooltip.css +1 -1
  326. package/dist/styles/top-app-bar.css +1 -1
  327. package/dist/styles/typography.css +1 -1
  328. package/dist/styles/utilities.css +1 -1
  329. package/dist/styles.css +2 -2
  330. package/dist/svelte/runtime.d.ts +21 -0
  331. package/dist/theme/image.d.ts +2 -0
  332. package/dist/theme/index.d.ts +20 -0
  333. package/dist/theme/variants.d.ts +6 -0
  334. package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +1 -0
  335. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +39 -0
  336. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +13 -0
  337. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +1 -0
  338. package/dist/theme/vendor/hct/hct.d.ts +9 -0
  339. package/dist/themes/autumn-contrast.css +1 -1
  340. package/dist/themes/autumn.css +1 -1
  341. package/dist/themes/baseline-contrast.css +1 -1
  342. package/dist/themes/baseline.css +1 -1
  343. package/dist/themes/brownbeige-contrast.css +1 -1
  344. package/dist/themes/brownbeige.css +1 -1
  345. package/dist/themes/content-contrast.css +1 -1
  346. package/dist/themes/content.css +1 -1
  347. package/dist/themes/desert-contrast.css +1 -1
  348. package/dist/themes/desert.css +1 -1
  349. package/dist/themes/expressive-contrast.css +1 -1
  350. package/dist/themes/expressive.css +1 -1
  351. package/dist/themes/fidelity-contrast.css +1 -1
  352. package/dist/themes/fidelity.css +1 -1
  353. package/dist/themes/forest-contrast.css +1 -1
  354. package/dist/themes/forest.css +1 -1
  355. package/dist/themes/fruit-salad-contrast.css +1 -1
  356. package/dist/themes/fruit-salad.css +1 -1
  357. package/dist/themes/highcontrast-contrast.css +1 -1
  358. package/dist/themes/highcontrast.css +1 -1
  359. package/dist/themes/monochrome-contrast.css +1 -1
  360. package/dist/themes/monochrome.css +1 -1
  361. package/dist/themes/neutral-contrast.css +1 -1
  362. package/dist/themes/neutral.css +1 -1
  363. package/dist/themes/ocean-contrast.css +1 -1
  364. package/dist/themes/ocean.css +1 -1
  365. package/dist/themes/rainbow-contrast.css +1 -1
  366. package/dist/themes/rainbow.css +1 -1
  367. package/dist/themes/sageivory-contrast.css +1 -1
  368. package/dist/themes/sageivory.css +1 -1
  369. package/dist/themes/spring-contrast.css +1 -1
  370. package/dist/themes/spring.css +1 -1
  371. package/dist/themes/summer-contrast.css +1 -1
  372. package/dist/themes/summer.css +1 -1
  373. package/dist/themes/sunset-contrast.css +1 -1
  374. package/dist/themes/sunset.css +1 -1
  375. package/dist/themes/tealcaramel-contrast.css +1 -1
  376. package/dist/themes/tealcaramel.css +1 -1
  377. package/dist/themes/vibrant-contrast.css +1 -1
  378. package/dist/themes/vibrant.css +1 -1
  379. package/dist/vue/create.d.ts +18 -0
  380. package/dist/vue/index.d.ts +1 -0
  381. package/package.json +1 -1
  382. package/src/styles/components/_menu.scss +14 -1
@@ -1,114 +1,295 @@
1
1
  import type { EventCallback } from "../../core/state/emitter.js";
2
+ /** Menu position options */
2
3
  export declare const MENU_POSITION: {
4
+ /** Places menu below the opener, aligned to left edge */
3
5
  readonly BOTTOM_START: "bottom-start";
6
+ /** Places menu below the opener, centered */
4
7
  readonly BOTTOM: "bottom";
8
+ /** Places menu below the opener, aligned to right edge */
5
9
  readonly BOTTOM_END: "bottom-end";
10
+ /** Places menu above the opener, aligned to left edge */
6
11
  readonly TOP_START: "top-start";
12
+ /** Places menu above the opener, centered */
7
13
  readonly TOP: "top";
14
+ /** Places menu above the opener, aligned to right edge */
8
15
  readonly TOP_END: "top-end";
16
+ /** Places menu to the right of the opener, aligned to top edge */
9
17
  readonly RIGHT_START: "right-start";
18
+ /** Places menu to the right of the opener, centered */
10
19
  readonly RIGHT: "right";
20
+ /** Places menu to the right of the opener, aligned to bottom edge */
11
21
  readonly RIGHT_END: "right-end";
22
+ /** Places menu to the left of the opener, aligned to top edge */
12
23
  readonly LEFT_START: "left-start";
24
+ /** Places menu to the left of the opener, centered */
13
25
  readonly LEFT: "left";
26
+ /** Places menu to the left of the opener, aligned to bottom edge */
14
27
  readonly LEFT_END: "left-end";
15
28
  };
29
+ /** Position options for the menu */
16
30
  export type MenuPosition = (typeof MENU_POSITION)[keyof typeof MENU_POSITION];
31
+ /** Configuration interface for a menu item */
17
32
  export interface MenuItem<TData = unknown> {
33
+ /** Unique ID for the menu item */
18
34
  id: string;
35
+ /** Display text for the menu item */
19
36
  text: string;
37
+ /** Optional icon to display before the text. */
20
38
  icon?: string;
39
+ /** Optional keyboard shortcut hint to display */
21
40
  shortcut?: string;
41
+ /** A second line under the label, for a short explanation of the item */
22
42
  supportingText?: string;
43
+ /** Whether the menu item is disabled */
23
44
  disabled?: boolean;
45
+ /** Whether this item has a submenu */
24
46
  hasSubmenu?: boolean;
47
+ /** Optional array of submenu items */
25
48
  submenu?: MenuItem<TData>[];
49
+ /** Additional data to associate with the menu item */
26
50
  data?: TData;
27
51
  }
52
+ /** Menu item type for dividers */
28
53
  export interface MenuDivider {
54
+ /** Type must be 'divider' to differentiate from regular menu items */
29
55
  type: "divider";
56
+ /** Optional ID for the divider (for accessibility) */
30
57
  id?: string;
31
58
  }
59
+ /** Menu item type for a gap between groups. */
32
60
  export interface MenuGap {
61
+ /** Type must be 'gap' to differentiate from regular menu items */
33
62
  type: "gap";
63
+ /** Optional ID for the gap (for accessibility) */
34
64
  id?: string;
35
65
  }
66
+ /** Combined type for menu content items (regular items, dividers or gaps) */
36
67
  export type MenuContent<TData = unknown> = MenuItem<TData> | MenuDivider | MenuGap;
68
+ /** Configuration interface for the Menu component */
69
+ /** Menu variants */
37
70
  export type MenuVariant = "baseline" | "vertical";
71
+ /** Colour mappings for the vertical menu */
38
72
  export type MenuColor = "standard" | "vibrant";
39
73
  export interface MenuConfig {
74
+ /** Element to which the menu will be openered */
40
75
  opener: HTMLElement | string | {
41
76
  element: HTMLElement;
42
77
  };
78
+ /** The element the menu is placed against, when it is not the opener's: a select's field, so its supporting text row never pushes the menu down The opener still opens, closes and gets focus back. */
43
79
  positionTarget?: HTMLElement;
80
+ /** Array of menu items and dividers to display */
44
81
  items: MenuContent[];
82
+ /**
83
+ * Menu variant.
84
+ * @default 'baseline'
85
+ */
45
86
  variant?: MenuVariant;
87
+ /** Colour mapping for the vertical variant. */
46
88
  color?: MenuColor;
89
+ /**
90
+ * Position of the menu relative to the opener
91
+ * @default 'bottom-start'
92
+ */
47
93
  position?: MenuPosition;
94
+ /**
95
+ * Whether the menu should close when an item is clicked
96
+ * @default true
97
+ */
48
98
  closeOnSelect?: boolean;
99
+ /**
100
+ * Whether the menu should close when the user clicks outside
101
+ * @default true
102
+ */
49
103
  closeOnClickOutside?: boolean;
104
+ /**
105
+ * Whether the menu should close when the escape key is pressed
106
+ * @default true
107
+ */
50
108
  closeOnEscape?: boolean;
109
+ /**
110
+ * Whether the menu should close when the window is resized
111
+ * @default false
112
+ */
51
113
  closeOnResize?: boolean;
114
+ /**
115
+ * Whether submenus should open on hover
116
+ * @default true
117
+ */
52
118
  openSubmenuOnHover?: boolean;
119
+ /** Optional width for the menu (in CSS units) */
53
120
  width?: string;
121
+ /** Optional maximum height for the menu (in CSS units) */
54
122
  maxHeight?: string;
123
+ /**
124
+ * Optional offset from the opener (in pixels)
125
+ * @default 0
126
+ */
55
127
  offset?: number;
128
+ /**
129
+ * Whether the menu should automatically flip position to stay in viewport
130
+ * @default true
131
+ */
56
132
  autoFlip?: boolean;
133
+ /**
134
+ * Whether the menu is initially visible
135
+ * @default false
136
+ */
57
137
  visible?: boolean;
138
+ /** Container element to append the menu to */
58
139
  container?: HTMLElement | null;
140
+ /** `"top"` renders the menu in place, next to its opener, and shows it in the browser's top layer as a `popover="manual"` element: above every z-index, outside any clipping ancestor, and still inside the opener's shadow root, so it keeps that root's styles. */
59
141
  layer?: "top";
142
+ /**
143
+ * When true, the opener is used only for positioning.
144
+ * @default false
145
+ */
60
146
  manualOpen?: boolean;
147
+ /**
148
+ * Renders the menu as the listbox popup of a combobox (WAI-ARIA select-only combobox): the list is `role="listbox"` and each item `role="option"` with its own id, focus stays with the combobox, which owns the keyboard and points at the active option with `aria-activedescendant`, and the opener gets no ARIA from the menu.
149
+ * @default false
150
+ */
61
151
  listbox?: boolean;
152
+ /**
153
+ * When true, renders a compact menu with smaller items and tighter spacing.
154
+ * @default false
155
+ */
62
156
  dense?: boolean;
157
+ /** Additional CSS classes to add to the menu */
63
158
  class?: string;
159
+ /**
160
+ * Component prefix for CSS class names
161
+ * @default 'mtrl'
162
+ */
64
163
  prefix?: string;
164
+ /**
165
+ * Component name used in CSS class generation
166
+ * @default 'menu'
167
+ */
65
168
  componentName?: string;
169
+ /** Event handlers for the menu */
66
170
  on?: {
171
+ /** Called when the menu is opened */
67
172
  open?: (event: MenuEvent) => void;
173
+ /** Called when the menu is closed */
68
174
  close?: (event: MenuEvent) => void;
175
+ /** Called when a menu item is selected */
69
176
  select?: (event: MenuSelectEvent) => void;
70
177
  };
71
178
  }
179
+ /** What `open` and `close` carry. */
72
180
  export interface MenuEvent {
181
+ /** The menu component that triggered the event */
73
182
  menu: MenuComponent;
183
+ /** Original DOM event if available */
74
184
  originalEvent?: Event;
75
185
  }
186
+ /** Menu selection event interface */
76
187
  export interface MenuSelectEvent<TData = unknown> extends MenuEvent {
188
+ /** The selected menu item */
77
189
  item: MenuItem<TData>;
190
+ /** ID of the selected menu item */
78
191
  itemId: string;
192
+ /** The item's id again, as the `value` of the `<m-menu>` element's `select` */
79
193
  value: string;
194
+ /** Data associated with the menu item (if any) */
80
195
  itemData?: TData;
196
+ /** Keeps the menu open: a `closeOnSelect` menu does not close for this selection */
81
197
  preventDefault: () => void;
198
+ /** Whether a listener has called `preventDefault()` */
82
199
  defaultPrevented: boolean;
83
200
  }
201
+ /** Menu component interface */
84
202
  export interface MenuComponent {
203
+ /** The menu's root DOM element */
85
204
  element: HTMLElement;
205
+ /**
206
+ * Opens the menu.
207
+ * @param event
208
+ * @param interactionType
209
+ */
86
210
  open: (event?: Event, interactionType?: "mouse" | "keyboard") => MenuComponent;
211
+ /**
212
+ * Closes the menu.
213
+ * @param event
214
+ * @param restoreFocus
215
+ * @param skipAnimation
216
+ */
87
217
  close: (event?: Event, restoreFocus?: boolean, skipAnimation?: boolean) => MenuComponent;
218
+ /**
219
+ * Toggles the menu's open state
220
+ * @param event
221
+ */
88
222
  toggle: (event?: Event) => MenuComponent;
223
+ /** Checks if the menu is currently open. */
89
224
  isOpen: () => boolean;
225
+ /**
226
+ * Updates the menu items
227
+ * @param items
228
+ */
90
229
  setItems: (items: MenuContent[]) => MenuComponent;
230
+ /** Gets the current menu items */
91
231
  getItems: () => MenuContent[];
232
+ /**
233
+ * Updates the menu's opener element
234
+ * @param opener
235
+ */
92
236
  setOpener: (opener: HTMLElement | string) => MenuComponent;
237
+ /** Gets the current opener element */
93
238
  getOpener: () => HTMLElement;
239
+ /**
240
+ * Updates the menu's position
241
+ * @param position
242
+ */
94
243
  setPosition: (position: MenuPosition) => MenuComponent;
244
+ /** Gets the current menu position */
95
245
  getPosition: () => MenuPosition;
246
+ /**
247
+ * Sets the selected menu item
248
+ * @param itemId
249
+ */
96
250
  setSelected: (itemId: string | null) => MenuComponent;
251
+ /** Gets the currently selected menu item's ID */
97
252
  getSelected: () => string | null;
253
+ /**
254
+ * Adds an event listener to the menu
255
+ * @param event
256
+ * @param handler
257
+ */
98
258
  on<T extends keyof MenuEvents>(event: T, handler: MenuEvents[T]): MenuComponent;
259
+ /**
260
+ * Adds an event listener for any event the menu emits, such as
261
+ * @param event
262
+ * @param handler
263
+ */
99
264
  on(event: string, handler: EventCallback): MenuComponent;
265
+ /**
266
+ * Removes an event listener from the menu
267
+ * @param event
268
+ * @param handler
269
+ */
100
270
  off<T extends keyof MenuEvents>(event: T, handler: MenuEvents[T]): MenuComponent;
271
+ /**
272
+ * Removes an event listener for any event the menu emits
273
+ * @param event
274
+ * @param handler
275
+ */
101
276
  off(event: string, handler: EventCallback): MenuComponent;
277
+ /** Destroys the menu component and cleans up resources */
102
278
  destroy: () => void;
103
279
  }
280
+ /** Menu events interface for type-checking */
104
281
  export interface MenuEvents {
105
282
  open: (event: MenuEvent) => void;
106
283
  close: (event: MenuEvent) => void;
107
284
  select: (event: MenuSelectEvent) => void;
108
285
  }
286
+ /** The menu as its own features see it, part-way through the pipe. */
287
+ /** What withController installs at `component.menu`. */
288
+ /** Menu state the keyboard handlers read. */
109
289
  export interface KeyboardMenuState {
110
290
  items: MenuContent[];
111
291
  }
292
+ /** Menu actions the keyboard handlers call. */
112
293
  export interface KeyboardActions {
113
294
  closeMenu: (event: Event, restoreFocus?: boolean) => void;
114
295
  findItemById: (id: string) => MenuItem | null;
@@ -128,6 +309,7 @@ export interface MenuControllerApi {
128
309
  getPosition: () => MenuPosition;
129
310
  setPosition: (position: MenuPosition) => void;
130
311
  }
312
+ /** A component that can act as a menu's opener: anything that exposes an element through `element`, `getElement()` or `input`, and follows the menu's open state when it can. */
131
313
  export interface OpenerComponent {
132
314
  element?: HTMLElement;
133
315
  getElement?: () => HTMLElement;
@@ -137,7 +319,9 @@ export interface OpenerComponent {
137
319
  focus?: () => void;
138
320
  blur?: () => void;
139
321
  }
322
+ /** What a menu opener can be given as: a selector, an element or a component */
140
323
  export type OpenerTarget = string | HTMLElement | OpenerComponent;
324
+ /** What withOpener installs at `component.opener`. */
141
325
  export interface MenuOpenerApi {
142
326
  setOpener: (opener: OpenerTarget) => void;
143
327
  getOpener: () => HTMLElement | null;
@@ -164,7 +348,7 @@ export interface MenuFeatureHost {
164
348
  setupKeyboardHandlers: (menuElement: HTMLElement, state: KeyboardMenuState, actions: KeyboardActions) => void;
165
349
  removeKeyboardHandlers: (element: HTMLElement) => void;
166
350
  handleMenuKeydown: (e: KeyboardEvent, state: KeyboardMenuState, actions: KeyboardActions) => void;
167
- handleInitialFocus: (menuElement: HTMLElement, interactionType: "keyboard" | "mouse") => void;
351
+ handleInitialFocus: (menuElement: HTMLElement, interactionType: "keyboard" | "mouse", openingEvent?: Event) => void;
168
352
  isTabNavigationActive: () => boolean;
169
353
  };
170
354
  submenu?: {
@@ -1,2 +1,3 @@
1
1
  import type { NavigationBarComponent, NavigationBarConfig } from "./types.js";
2
+ /** Creates an M3 Expressive navigation bar: three to five destinations along the bottom of a compact or medium window (Compose `ShortNavigationBar`). */
2
3
  export default function createNavigationBar(config?: NavigationBarConfig): NavigationBarComponent;
@@ -1,26 +1,35 @@
1
1
  import type { DestinationConfig } from "../../core/navigation/destinations.js";
2
+ /** One destination of the bar: a link (`href`) or a button. */
2
3
  export type NavigationBarItemConfig = DestinationConfig;
4
+ /** What `select` and `onSelect` carry: the destination chosen by click or keyboard. */
3
5
  export interface NavigationBarSelectEvent {
4
6
  id: string;
7
+ /** The id, as `<m-navigation-bar>`'s `change` carries it */
5
8
  value: string;
6
9
  index: number;
7
10
  originalEvent: MouseEvent;
8
11
  }
9
12
  export interface NavigationBarEvents {
10
13
  select: NavigationBarSelectEvent;
14
+ /** The bar was hidden (`hidden: true`) or shown again, by scroll or by `hide()`/`show()` */
11
15
  visibility: {
12
16
  hidden: boolean;
13
17
  };
14
18
  }
19
+ /** Where an item puts its icon. */
15
20
  export type NavigationBarItemLayout = 'auto' | 'vertical' | 'horizontal';
16
21
  export interface NavigationBarConfig {
22
+ /** Three to five destinations (M3) */
17
23
  items?: NavigationBarItemConfig[];
18
24
  itemLayout?: NavigationBarItemLayout;
25
+ /** Hides the bar while the page scrolls down and shows it when it scrolls up, as the bottom app bar's `autoHide`. */
19
26
  hideOnScroll?: boolean | {
20
27
  target?: HTMLElement | Window;
21
28
  };
29
+ /** The landmark's name; default "Primary navigation" */
22
30
  ariaLabel?: string;
23
31
  ripple?: boolean;
32
+ /** `select` listener registered at creation. */
24
33
  onSelect?: (event: NavigationBarEvents["select"]) => void;
25
34
  class?: string;
26
35
  prefix?: string;
@@ -33,11 +42,14 @@ export interface NavigationBarComponent {
33
42
  destroy: () => void;
34
43
  };
35
44
  getActive: () => string | null;
45
+ /** The active destination's id, as getActive(): the value getter every component has */
36
46
  getValue: () => string | null;
47
+ /** Marks a destination active, silently (no `select`); `null` clears it */
37
48
  setActive: (id: string | null) => NavigationBarComponent;
38
49
  getItems: () => NavigationBarItemConfig[];
39
50
  setItems: (items: NavigationBarItemConfig[]) => NavigationBarComponent;
40
51
  setBadge: (id: string, badge: NavigationBarItemConfig['badge'], label?: string) => NavigationBarComponent;
52
+ /** Slides the bar out of view (without the slide under reduced motion) */
41
53
  hide: () => NavigationBarComponent;
42
54
  show: () => NavigationBarComponent;
43
55
  isHidden: () => boolean;
@@ -1,3 +1,4 @@
1
+ /** M3 Expressive Android navigationrail/res/values/tokens.xml, token version 34.0.0. */
1
2
  export declare const NAVIGATION_RAIL_DEFAULTS: {
2
3
  readonly EXPANDED: false;
3
4
  readonly COLLAPSED_WIDTH: 96;
@@ -6,6 +7,7 @@ export declare const NAVIGATION_RAIL_DEFAULTS: {
6
7
  readonly MAX_EXPANDED_WIDTH: 360;
7
8
  readonly SHOW_TOGGLE: true;
8
9
  };
10
+ /** Material Symbols `menu` and `menu_open`, the M3 rail menu button in each state. */
9
11
  export declare const NAVIGATION_RAIL_ICONS: {
10
12
  readonly EXPAND: "<svg viewBox=\"0 -960 960 960\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z\"/></svg>";
11
13
  readonly COLLAPSE: "<svg viewBox=\"0 -960 960 960\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M120-240v-80h520v80H120Zm664-40L584-480l200-200 56 56-144 144 144 144-56 56ZM120-440v-80h400v80H120Zm0-200v-80h520v80H120Z\"/></svg>";
@@ -1,2 +1,3 @@
1
1
  import type { NavigationRailConfig, NavigationRailComponent } from "./types.js";
2
+ /** Creates an M3 Expressive navigation rail with stable destinations during expansion. */
2
3
  export default function createNavigationRail(config?: NavigationRailConfig): NavigationRailComponent;
@@ -1,17 +1,22 @@
1
1
  import type { BaseComponentConfig } from "../../core/config/component.js";
2
+ /** A primary destination. */
2
3
  export interface NavigationRailItemConfig {
3
4
  id: string;
4
5
  label: string;
6
+ /** Markup (HTML). */
5
7
  icon: string;
8
+ /** Markup (HTML). */
6
9
  activeIcon?: string;
7
10
  href?: string;
8
11
  badge?: string | number | boolean;
12
+ /** Accessible description for a dot badge or count, e.g. */
9
13
  badgeLabel?: string;
10
14
  active?: boolean;
11
15
  disabled?: boolean;
12
16
  }
13
17
  export interface NavigationRailSelectEvent {
14
18
  id: string;
19
+ /** The id again, as the `value` of the `<m-navigation-rail>` element's `change` */
15
20
  value: string;
16
21
  index: number;
17
22
  originalEvent: MouseEvent;
@@ -25,21 +30,32 @@ export interface NavigationRailEvents {
25
30
  expanded: false;
26
31
  };
27
32
  }
33
+ /** Standalone, non-modal M3 Expressive navigation rail. */
28
34
  export interface NavigationRailConfig extends BaseComponentConfig {
29
35
  items?: NavigationRailItemConfig[];
30
36
  expanded?: boolean;
37
+ /** Standard rail occupies layout space; modal expansion uses a native modal dialog. */
31
38
  layout?: 'standard' | 'modal';
39
+ /** Hide the standard rail when collapsed. */
32
40
  hideWhenCollapsed?: boolean;
41
+ /** Expanded width in CSS pixels, clamped to the Android token range 220–360. */
33
42
  expandedWidth?: number;
43
+ /** Show the accessible expand/collapse menu button. */
34
44
  showToggle?: boolean;
35
45
  expandLabel?: string;
36
46
  collapseLabel?: string;
47
+ /** Menu button icon while collapsed. */
37
48
  expandIcon?: string;
49
+ /** Menu button icon while expanded. */
38
50
  collapseIcon?: string;
51
+ /** Optional application-owned header, such as a FAB. */
39
52
  header?: HTMLElement;
40
53
  ripple?: boolean;
54
+ /** `select` listener registered at creation. */
41
55
  onSelect?: (event: NavigationRailEvents["select"]) => void;
56
+ /** `expand` listener registered at creation. */
42
57
  onExpand?: (event: NavigationRailEvents["expand"]) => void;
58
+ /** `collapse` listener registered at creation. */
43
59
  onCollapse?: (event: NavigationRailEvents["collapse"]) => void;
44
60
  }
45
61
  export interface NavigationRailComponent {
@@ -51,6 +67,7 @@ export interface NavigationRailComponent {
51
67
  isExpanded: () => boolean;
52
68
  setActive: (id: string | null) => NavigationRailComponent;
53
69
  getActive: () => string | null;
70
+ /** Reads the current model value without changing selection. */
54
71
  getValue: () => string | null;
55
72
  setItems: (items: NavigationRailItemConfig[]) => NavigationRailComponent;
56
73
  getItems: () => NavigationRailItemConfig[];
@@ -62,6 +79,7 @@ export interface NavigationRailComponent {
62
79
  destroy: () => void;
63
80
  };
64
81
  }
82
+ /** Registers NavigationRailConfig with the global defaults map, so `setComponentDefaults("navigation-rail", ...)` is typed without core importing anything from this component. */
65
83
  declare module "../../core/config/global" {
66
84
  interface ComponentConfigMap {
67
85
  "navigation-rail"?: Partial<NavigationRailConfig>;
@@ -18,6 +18,7 @@ export declare const PROGRESS_DEFAULTS: {
18
18
  readonly SHAPE: "flat";
19
19
  readonly SHOW_LABEL: false;
20
20
  readonly INDETERMINATE: false;
21
+ /** Accessible name when none is given */
21
22
  readonly LABEL: "Loading";
22
23
  };
23
24
  export declare const PROGRESS_CLASSES: {
@@ -33,26 +34,38 @@ export declare const PROGRESS_CLASSES: {
33
34
  readonly TEST: "progress--test";
34
35
  readonly TRANSITION: "progress--transition";
35
36
  };
37
+ /** Colour roles (ProgressIndicatorTokens): the active indicator and the stop indicator take primary, the track secondary-container. */
36
38
  export declare const PROGRESS_COLORS: {
37
39
  readonly INDICATOR: "sys-color-primary";
38
40
  readonly TRACK: "sys-color-secondary-container";
39
41
  readonly STOP: "sys-color-primary";
42
+ /** Not an M3 role: the buffer is this library's own extension */
40
43
  readonly BUFFER: "sys-color-primary-container";
41
44
  };
42
45
  export declare const PROGRESS_MEASUREMENTS: {
43
46
  readonly LINEAR: {
47
+ /** Track and active indicator thickness (LinearProgressIndicatorTokens.Height) */
44
48
  readonly HEIGHT: 4;
49
+ /** Space between the active indicator and the track (TrackActiveSpace) */
45
50
  readonly GAP: 4;
51
+ /** The dot that marks the end of the track (StopSize) */
46
52
  readonly STOP_INDICATOR: 4;
53
+ /** How far the stop indicator sits from the trailing edge, at most */
47
54
  readonly STOP_TRAILING_SPACE: 6;
55
+ /** Container height of a wavy linear indicator (WaveHeight) */
48
56
  readonly WAVE_HEIGHT: 10;
57
+ /** Inset from the edge of the element (m3.material.io: 4dp minimum) */
49
58
  readonly EDGE_INSET: 4;
50
59
  readonly MIN_HEIGHT: 4;
51
60
  };
52
61
  readonly CIRCULAR: {
62
+ /** Flat container size (CircularProgressIndicatorTokens.Size) */
53
63
  readonly SIZE: 40;
64
+ /** Wavy container size (CircularProgressIndicatorTokens.WaveSize) */
54
65
  readonly WAVE_SIZE: 48;
66
+ /** Space between the active indicator and the track (TrackActiveSpace) */
55
67
  readonly GAP: 4;
68
+ /** The guidelines' range for a circular indicator */
56
69
  readonly MIN_SIZE: 24;
57
70
  readonly MAX_SIZE: 240;
58
71
  };
@@ -64,23 +77,34 @@ export declare const PROGRESS_THICKNESS: {
64
77
  readonly THIN: 4;
65
78
  readonly THICK: 8;
66
79
  };
80
+ /** Wave geometry (LinearProgressIndicatorTokens, CircularProgressIndicatorTokens). */
67
81
  export declare const PROGRESS_WAVE: {
68
82
  readonly LINEAR: {
83
+ /** ActiveWaveWavelength */
69
84
  readonly WAVELENGTH: 40;
85
+ /** IndeterminateActiveWaveWavelength */
70
86
  readonly INDETERMINATE_WAVELENGTH: 20;
87
+ /** ActiveWaveAmplitude */
71
88
  readonly AMPLITUDE: 3;
72
89
  };
73
90
  readonly CIRCULAR: {
91
+ /** ActiveWaveWavelength */
74
92
  readonly WAVELENGTH: 15;
93
+ /** ActiveWaveAmplitude */
75
94
  readonly AMPLITUDE: 1.6;
76
95
  };
96
+ /** The wave travels one wavelength per second (WavyProgressIndicatorDefaults) */
77
97
  readonly SPEED: 1;
98
+ /** The wave flattens at both ends of the range */
78
99
  readonly AMPLITUDE_START: 0.1;
79
100
  readonly AMPLITUDE_END: 0.95;
101
+ /** How long the amplitude takes to appear or go (MotionTokens.DurationLong2) */
80
102
  readonly AMPLITUDE_DURATION: 500;
81
103
  };
104
+ /** Indeterminate motion (ProgressIndicator.kt) */
82
105
  export declare const PROGRESS_MOTION: {
83
106
  readonly LINEAR: {
107
+ /** LinearAnimationDuration */
84
108
  readonly DURATION: 1750;
85
109
  readonly FIRST_HEAD_DELAY: 0;
86
110
  readonly FIRST_HEAD_DURATION: 1000;
@@ -92,35 +116,48 @@ export declare const PROGRESS_MOTION: {
92
116
  readonly SECOND_TAIL_DURATION: 850;
93
117
  };
94
118
  readonly CIRCULAR: {
119
+ /** CircularAnimationProgressDuration */
95
120
  readonly DURATION: 6000;
121
+ /** CircularAnimationAdditionalRotationDuration */
96
122
  readonly ROTATION_DURATION: 300;
123
+ /** CircularAnimationAdditionalRotationDelay */
97
124
  readonly ROTATION_DELAY: 1500;
125
+ /** CircularGlobalRotationDegreesTarget */
98
126
  readonly GLOBAL_ROTATION: 1080;
127
+ /** CircularAdditionalRotationDegreesTarget */
99
128
  readonly ADDITIONAL_ROTATION: 360;
129
+ /** CircularIndeterminateMinProgress */
100
130
  readonly MIN_PROGRESS: 0.1;
131
+ /** CircularIndeterminateMaxProgress */
101
132
  readonly MAX_PROGRESS: 0.87;
102
133
  };
134
+ /** How long a value change takes to animate (MotionTokens.DurationLong2) */
103
135
  readonly VALUE_DURATION: 500;
104
136
  };
137
+ /** Easing curves (MotionTokens), as cubic Bézier control points */
105
138
  export declare const PROGRESS_EASING: {
139
+ /** EasingEmphasizedAccelerateCubicBezier */
106
140
  readonly EMPHASIZED_ACCELERATE: readonly [
107
141
  0.3,
108
142
  0,
109
143
  0.8,
110
144
  0.15
111
145
  ];
146
+ /** EasingEmphasizedDecelerateCubicBezier */
112
147
  readonly EMPHASIZED_DECELERATE: readonly [
113
148
  0.05,
114
149
  0.7,
115
150
  0.1,
116
151
  1
117
152
  ];
153
+ /** EasingStandardCubicBezier */
118
154
  readonly STANDARD: readonly [
119
155
  0.2,
120
156
  0,
121
157
  0,
122
158
  1
123
159
  ];
160
+ /** EasingLinearCubicBezier */
124
161
  readonly LINEAR: readonly [
125
162
  0,
126
163
  0,
@@ -1,3 +1,7 @@
1
1
  import { ProgressConfig, ProgressComponent } from "./types.js";
2
+ /**
3
+ * Creates a new Progress component using canvas rendering
4
+ * @param config
5
+ */
2
6
  declare const createProgress: (config?: ProgressConfig) => ProgressComponent;
3
7
  export default createProgress;