material 3.8.2 → 3.9.0

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 (354) hide show
  1. package/README.md +3 -3
  2. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +6 -0
  3. package/dist/components/bottom-app-bar/constants.d.ts +16 -3
  4. package/dist/components/bottom-app-bar/types.d.ts +71 -10
  5. package/dist/components/bottom-sheet/config.js +1 -1
  6. package/dist/components/bottom-sheet/features/structure.js +10 -2
  7. package/dist/components/bottom-sheet/types.d.ts +2 -0
  8. package/dist/components/button-group/button-group.js +1 -1
  9. package/dist/components/checkbox/config.js +3 -2
  10. package/dist/components/checkbox/types.d.ts +5 -0
  11. package/dist/components/datepicker/config.js +1 -1
  12. package/dist/components/datepicker/datepicker.js +12 -3
  13. package/dist/components/datepicker/render.js +2 -2
  14. package/dist/components/datepicker/types.d.ts +4 -0
  15. package/dist/components/index.d.ts +2 -1
  16. package/dist/components/index.js +1 -1
  17. package/dist/components/list/features/listbox.d.ts +16 -0
  18. package/dist/components/list/features/listbox.js +230 -0
  19. package/dist/components/list/index.d.ts +2 -0
  20. package/dist/components/list/index.js +1 -0
  21. package/dist/components/menu/config.js +2 -2
  22. package/dist/components/menu/constants.d.ts +4 -4
  23. package/dist/components/menu/constants.js +1 -1
  24. package/dist/components/menu/features/controller.js +12 -1
  25. package/dist/components/menu/features/position.js +15 -8
  26. package/dist/components/menu/features/submenu.js +3 -0
  27. package/dist/components/menu/types.d.ts +8 -1
  28. package/dist/components/radios/config.js +1 -0
  29. package/dist/components/radios/radio.js +2 -0
  30. package/dist/components/radios/types.d.ts +2 -0
  31. package/dist/components/search/features/input.js +6 -1
  32. package/dist/components/search/features/structure.js +3 -1
  33. package/dist/components/side-sheet/config.js +1 -1
  34. package/dist/components/side-sheet/features/structure.js +10 -2
  35. package/dist/components/side-sheet/types.d.ts +2 -0
  36. package/dist/components/slider/config.js +3 -2
  37. package/dist/components/slider/types.d.ts +5 -0
  38. package/dist/components/split-button/config.js +1 -1
  39. package/dist/components/switch/config.js +3 -2
  40. package/dist/components/switch/types.d.ts +5 -0
  41. package/dist/components/tabs/config.js +1 -0
  42. package/dist/components/tabs/tab.js +11 -5
  43. package/dist/components/tabs/types.d.ts +5 -1
  44. package/dist/components/text-field/config.js +7 -2
  45. package/dist/components/text-field/types.d.ts +5 -0
  46. package/dist/components/timepicker/api.js +7 -8
  47. package/dist/components/timepicker/config.js +1 -1
  48. package/dist/components/timepicker/render.js +22 -5
  49. package/dist/components/timepicker/timepicker.js +0 -1
  50. package/dist/components/timepicker/types.d.ts +4 -0
  51. package/dist/components/toolbar/config.js +1 -0
  52. package/dist/components/toolbar/constants.d.ts +4 -1
  53. package/dist/components/toolbar/constants.js +3 -0
  54. package/dist/components/toolbar/toolbar.js +18 -3
  55. package/dist/components/toolbar/types.d.ts +6 -2
  56. package/dist/core/config/component.d.ts +5 -515
  57. package/dist/core/config/control-label.js +5 -0
  58. package/dist/elements/bottom-app-bar.d.ts +19 -2
  59. package/dist/elements/bottom-sheet.js +3 -2
  60. package/dist/elements/css/badge.js +2 -2
  61. package/dist/elements/css/bottom-app-bar.js +2 -2
  62. package/dist/elements/css/bottom-sheet.js +2 -2
  63. package/dist/elements/css/button-group.js +2 -2
  64. package/dist/elements/css/button.css +1 -1
  65. package/dist/elements/css/button.js +2 -2
  66. package/dist/elements/css/card.js +2 -2
  67. package/dist/elements/css/carousel.js +2 -2
  68. package/dist/elements/css/checkbox.js +2 -2
  69. package/dist/elements/css/chips.js +2 -2
  70. package/dist/elements/css/datepicker.js +2 -2
  71. package/dist/elements/css/dialog.js +2 -2
  72. package/dist/elements/css/divider.js +2 -2
  73. package/dist/elements/css/drawer.js +2 -2
  74. package/dist/elements/css/extended-fab.js +2 -2
  75. package/dist/elements/css/fab-menu.js +2 -2
  76. package/dist/elements/css/fab.js +2 -2
  77. package/dist/elements/css/icon-button.js +2 -2
  78. package/dist/elements/css/list.css +1 -1
  79. package/dist/elements/css/list.js +2 -2
  80. package/dist/elements/css/loading-indicator.js +2 -2
  81. package/dist/elements/css/menu.css +1 -1
  82. package/dist/elements/css/menu.js +2 -2
  83. package/dist/elements/css/navigation-bar.js +2 -2
  84. package/dist/elements/css/navigation-rail.js +2 -2
  85. package/dist/elements/css/progress.js +2 -2
  86. package/dist/elements/css/radios.js +2 -2
  87. package/dist/elements/css/ripple.js +2 -2
  88. package/dist/elements/css/search.js +2 -2
  89. package/dist/elements/css/select.js +2 -2
  90. package/dist/elements/css/side-sheet.js +2 -2
  91. package/dist/elements/css/slider.js +2 -2
  92. package/dist/elements/css/snackbar.js +2 -2
  93. package/dist/elements/css/split-button.js +2 -2
  94. package/dist/elements/css/switch.js +2 -2
  95. package/dist/elements/css/tabs.js +2 -2
  96. package/dist/elements/css/text-field.js +2 -2
  97. package/dist/elements/css/timepicker.js +2 -2
  98. package/dist/elements/css/toolbar.css +1 -1
  99. package/dist/elements/css/toolbar.js +2 -2
  100. package/dist/elements/css/tooltip.js +2 -2
  101. package/dist/elements/css/top-app-bar.js +2 -2
  102. package/dist/elements/datepicker.d.ts +5 -0
  103. package/dist/elements/datepicker.js +1 -0
  104. package/dist/elements/index.d.ts +26 -323
  105. package/dist/elements/menu.js +17 -3
  106. package/dist/elements/preupgrade/badge.css +1 -1
  107. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  108. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  109. package/dist/elements/preupgrade/button-group.css +1 -1
  110. package/dist/elements/preupgrade/button.css +1 -1
  111. package/dist/elements/preupgrade/card.css +1 -1
  112. package/dist/elements/preupgrade/carousel.css +1 -1
  113. package/dist/elements/preupgrade/checkbox.css +1 -1
  114. package/dist/elements/preupgrade/chips.css +1 -1
  115. package/dist/elements/preupgrade/datepicker.css +1 -1
  116. package/dist/elements/preupgrade/dialog.css +1 -1
  117. package/dist/elements/preupgrade/divider.css +1 -1
  118. package/dist/elements/preupgrade/drawer.css +1 -1
  119. package/dist/elements/preupgrade/extended-fab.css +1 -1
  120. package/dist/elements/preupgrade/fab-menu.css +1 -1
  121. package/dist/elements/preupgrade/fab.css +1 -1
  122. package/dist/elements/preupgrade/icon-button.css +1 -1
  123. package/dist/elements/preupgrade/list.css +1 -1
  124. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  125. package/dist/elements/preupgrade/menu.css +1 -1
  126. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  127. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  128. package/dist/elements/preupgrade/progress.css +1 -1
  129. package/dist/elements/preupgrade/radios.css +1 -1
  130. package/dist/elements/preupgrade/search.css +1 -1
  131. package/dist/elements/preupgrade/select.css +1 -1
  132. package/dist/elements/preupgrade/side-sheet.css +1 -1
  133. package/dist/elements/preupgrade/slider.css +1 -1
  134. package/dist/elements/preupgrade/snackbar.css +1 -1
  135. package/dist/elements/preupgrade/split-button.css +1 -1
  136. package/dist/elements/preupgrade/switch.css +1 -1
  137. package/dist/elements/preupgrade/tabs.css +1 -1
  138. package/dist/elements/preupgrade/text-field.css +1 -1
  139. package/dist/elements/preupgrade/timepicker.css +1 -1
  140. package/dist/elements/preupgrade/toolbar.css +1 -1
  141. package/dist/elements/preupgrade/tooltip.css +1 -1
  142. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  143. package/dist/elements/preupgrade.css +1 -1
  144. package/dist/elements/preupgrade.js +2 -3
  145. package/dist/elements/radios.d.ts +1 -0
  146. package/dist/elements/radios.js +5 -1
  147. package/dist/elements/search.js +19 -3
  148. package/dist/elements/sheet.js +16 -6
  149. package/dist/elements/side-sheet.d.ts +3 -0
  150. package/dist/elements/side-sheet.js +5 -3
  151. package/dist/elements/styles.js +39 -0
  152. package/dist/elements/switch.d.ts +4 -0
  153. package/dist/elements/switch.js +1 -0
  154. package/dist/elements/tabs.d.ts +5 -0
  155. package/dist/elements/tabs.js +6 -0
  156. package/dist/elements/timepicker.d.ts +5 -0
  157. package/dist/elements/timepicker.js +1 -0
  158. package/dist/elements/toolbar.d.ts +9 -1
  159. package/dist/elements/toolbar.js +13 -1
  160. package/dist/react/bottom-app-bar.d.ts +1 -0
  161. package/dist/react/jsx.d.ts +1 -0
  162. package/dist/solid/bottom-app-bar.d.ts +1 -0
  163. package/dist/solid/jsx.d.ts +31 -27
  164. package/dist/styles/badge.css +1 -1
  165. package/dist/styles/base-lite.css +1 -1
  166. package/dist/styles/base.css +1 -1
  167. package/dist/styles/bottom-app-bar.css +1 -1
  168. package/dist/styles/bottom-sheet.css +1 -1
  169. package/dist/styles/button-group.css +1 -1
  170. package/dist/styles/button.css +2 -2
  171. package/dist/styles/card.css +1 -1
  172. package/dist/styles/carousel.css +1 -1
  173. package/dist/styles/checkbox.css +1 -1
  174. package/dist/styles/chips.css +1 -1
  175. package/dist/styles/contrast.css +1 -1
  176. package/dist/styles/datepicker.css +1 -1
  177. package/dist/styles/dialog.css +1 -1
  178. package/dist/styles/divider.css +1 -1
  179. package/dist/styles/drawer.css +1 -1
  180. package/dist/styles/extended-fab.css +1 -1
  181. package/dist/styles/fab-menu.css +1 -1
  182. package/dist/styles/fab.css +1 -1
  183. package/dist/styles/icon-button.css +1 -1
  184. package/dist/styles/list.css +2 -2
  185. package/dist/styles/loading-indicator.css +1 -1
  186. package/dist/styles/menu.css +2 -2
  187. package/dist/styles/navigation-bar.css +1 -1
  188. package/dist/styles/navigation-rail.css +1 -1
  189. package/dist/styles/progress.css +1 -1
  190. package/dist/styles/radios.css +1 -1
  191. package/dist/styles/search.css +1 -1
  192. package/dist/styles/select.css +1 -1
  193. package/dist/styles/side-sheet.css +1 -1
  194. package/dist/styles/slider.css +1 -1
  195. package/dist/styles/snackbar.css +1 -1
  196. package/dist/styles/split-button.css +1 -1
  197. package/dist/styles/switch.css +1 -1
  198. package/dist/styles/tabs.css +1 -1
  199. package/dist/styles/text-field.css +1 -1
  200. package/dist/styles/timepicker.css +1 -1
  201. package/dist/styles/toolbar.css +2 -2
  202. package/dist/styles/tooltip.css +1 -1
  203. package/dist/styles/top-app-bar.css +1 -1
  204. package/dist/styles/typography.css +1 -1
  205. package/dist/styles/utilities.css +1 -1
  206. package/dist/styles.css +2 -2
  207. package/dist/svelte/BottomAppBar.svelte.d.ts +1 -0
  208. package/dist/theme/2025.d.ts +3 -0
  209. package/dist/theme/2025.js +2 -0
  210. package/dist/theme/index.js +65 -17
  211. package/dist/theme/spec2025.d.ts +56 -0
  212. package/dist/theme/spec2025.js +37 -0
  213. package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +846 -0
  214. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +7 -0
  215. package/dist/theme/vendor/dynamiccolor/dynamic_color.js +9 -5
  216. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +12 -0
  217. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +13 -9
  218. package/dist/theme/vendor/dynamiccolor/spec_2025.js +263 -0
  219. package/dist/theme/vendor/dynamiccolor/spec_extensions.js +70 -0
  220. package/dist/theme/vendor/palettes/tonal_palette.d.ts +23 -0
  221. package/dist/themes/autumn-contrast.css +1 -1
  222. package/dist/themes/autumn.css +1 -1
  223. package/dist/themes/baseline-contrast.css +1 -1
  224. package/dist/themes/baseline.css +1 -1
  225. package/dist/themes/brownbeige-contrast.css +1 -1
  226. package/dist/themes/brownbeige.css +1 -1
  227. package/dist/themes/content-contrast.css +1 -1
  228. package/dist/themes/content.css +1 -1
  229. package/dist/themes/desert-contrast.css +1 -1
  230. package/dist/themes/desert.css +1 -1
  231. package/dist/themes/expressive-contrast.css +1 -1
  232. package/dist/themes/expressive.css +1 -1
  233. package/dist/themes/fidelity-contrast.css +1 -1
  234. package/dist/themes/fidelity.css +1 -1
  235. package/dist/themes/forest-contrast.css +1 -1
  236. package/dist/themes/forest.css +1 -1
  237. package/dist/themes/fruit-salad-contrast.css +1 -1
  238. package/dist/themes/fruit-salad.css +1 -1
  239. package/dist/themes/highcontrast-contrast.css +1 -1
  240. package/dist/themes/highcontrast.css +1 -1
  241. package/dist/themes/monochrome-contrast.css +1 -1
  242. package/dist/themes/monochrome.css +1 -1
  243. package/dist/themes/neutral-contrast.css +1 -1
  244. package/dist/themes/neutral.css +1 -1
  245. package/dist/themes/ocean-contrast.css +1 -1
  246. package/dist/themes/ocean.css +1 -1
  247. package/dist/themes/rainbow-contrast.css +1 -1
  248. package/dist/themes/rainbow.css +1 -1
  249. package/dist/themes/sageivory-contrast.css +1 -1
  250. package/dist/themes/sageivory.css +1 -1
  251. package/dist/themes/spring-contrast.css +1 -1
  252. package/dist/themes/spring.css +1 -1
  253. package/dist/themes/summer-contrast.css +1 -1
  254. package/dist/themes/summer.css +1 -1
  255. package/dist/themes/sunset-contrast.css +1 -1
  256. package/dist/themes/sunset.css +1 -1
  257. package/dist/themes/tealcaramel-contrast.css +1 -1
  258. package/dist/themes/tealcaramel.css +1 -1
  259. package/dist/themes/vibrant-contrast.css +1 -1
  260. package/dist/themes/vibrant.css +1 -1
  261. package/dist/vue/bottom-app-bar.d.ts +1 -0
  262. package/package.json +8 -3
  263. package/src/styles/components/_button.scss +19 -0
  264. package/src/styles/components/_list.scss +35 -1
  265. package/src/styles/components/_menu.scss +64 -46
  266. package/src/styles/components/_toolbar.scss +19 -2
  267. package/dist/elements/css/badge.d.ts +0 -1
  268. package/dist/elements/css/bottom-app-bar.d.ts +0 -1
  269. package/dist/elements/css/bottom-sheet.d.ts +0 -1
  270. package/dist/elements/css/button-group.d.ts +0 -1
  271. package/dist/elements/css/button.d.ts +0 -1
  272. package/dist/elements/css/card.d.ts +0 -1
  273. package/dist/elements/css/carousel.d.ts +0 -1
  274. package/dist/elements/css/checkbox.d.ts +0 -1
  275. package/dist/elements/css/chips.d.ts +0 -1
  276. package/dist/elements/css/datepicker.d.ts +0 -1
  277. package/dist/elements/css/dialog.d.ts +0 -1
  278. package/dist/elements/css/divider.d.ts +0 -1
  279. package/dist/elements/css/drawer.d.ts +0 -1
  280. package/dist/elements/css/extended-fab.d.ts +0 -1
  281. package/dist/elements/css/fab-menu.d.ts +0 -1
  282. package/dist/elements/css/fab.d.ts +0 -1
  283. package/dist/elements/css/icon-button.d.ts +0 -1
  284. package/dist/elements/css/list.d.ts +0 -1
  285. package/dist/elements/css/loading-indicator.d.ts +0 -1
  286. package/dist/elements/css/menu.d.ts +0 -1
  287. package/dist/elements/css/navigation-bar.d.ts +0 -1
  288. package/dist/elements/css/navigation-rail.d.ts +0 -1
  289. package/dist/elements/css/progress.d.ts +0 -1
  290. package/dist/elements/css/radios.d.ts +0 -1
  291. package/dist/elements/css/ripple.d.ts +0 -1
  292. package/dist/elements/css/search.d.ts +0 -1
  293. package/dist/elements/css/select.d.ts +0 -1
  294. package/dist/elements/css/side-sheet.d.ts +0 -1
  295. package/dist/elements/css/slider.d.ts +0 -1
  296. package/dist/elements/css/snackbar.d.ts +0 -1
  297. package/dist/elements/css/split-button.d.ts +0 -1
  298. package/dist/elements/css/switch.d.ts +0 -1
  299. package/dist/elements/css/tabs.d.ts +0 -1
  300. package/dist/elements/css/text-field.d.ts +0 -1
  301. package/dist/elements/css/timepicker.d.ts +0 -1
  302. package/dist/elements/css/toolbar.d.ts +0 -1
  303. package/dist/elements/css/tooltip.d.ts +0 -1
  304. package/dist/elements/css/top-app-bar.d.ts +0 -1
  305. package/dist/styles/badge.d.ts +0 -1
  306. package/dist/styles/base-lite.d.ts +0 -1
  307. package/dist/styles/base.d.ts +0 -1
  308. package/dist/styles/bottom-app-bar.d.ts +0 -1
  309. package/dist/styles/bottom-sheet.d.ts +0 -1
  310. package/dist/styles/button-group.d.ts +0 -1
  311. package/dist/styles/button.d.ts +0 -1
  312. package/dist/styles/card.d.ts +0 -1
  313. package/dist/styles/carousel.d.ts +0 -1
  314. package/dist/styles/checkbox.d.ts +0 -1
  315. package/dist/styles/chips.d.ts +0 -1
  316. package/dist/styles/contrast.d.ts +0 -1
  317. package/dist/styles/datepicker.d.ts +0 -1
  318. package/dist/styles/dialog.d.ts +0 -1
  319. package/dist/styles/divider.d.ts +0 -1
  320. package/dist/styles/drawer.d.ts +0 -1
  321. package/dist/styles/extended-fab.d.ts +0 -1
  322. package/dist/styles/fab-menu.d.ts +0 -1
  323. package/dist/styles/fab.d.ts +0 -1
  324. package/dist/styles/icon-button.d.ts +0 -1
  325. package/dist/styles/list.d.ts +0 -1
  326. package/dist/styles/loading-indicator.d.ts +0 -1
  327. package/dist/styles/menu.d.ts +0 -1
  328. package/dist/styles/navigation-bar.d.ts +0 -1
  329. package/dist/styles/navigation-rail.d.ts +0 -1
  330. package/dist/styles/progress.d.ts +0 -1
  331. package/dist/styles/radios.d.ts +0 -1
  332. package/dist/styles/search.d.ts +0 -1
  333. package/dist/styles/select.d.ts +0 -1
  334. package/dist/styles/side-sheet.d.ts +0 -1
  335. package/dist/styles/slider.d.ts +0 -1
  336. package/dist/styles/snackbar.d.ts +0 -1
  337. package/dist/styles/split-button.d.ts +0 -1
  338. package/dist/styles/switch.d.ts +0 -1
  339. package/dist/styles/tabs.d.ts +0 -1
  340. package/dist/styles/text-field.d.ts +0 -1
  341. package/dist/styles/timepicker.d.ts +0 -1
  342. package/dist/styles/toolbar.d.ts +0 -1
  343. package/dist/styles/tooltip.d.ts +0 -1
  344. package/dist/styles/top-app-bar.d.ts +0 -1
  345. package/dist/styles/typography.d.ts +0 -1
  346. package/dist/styles/utilities.d.ts +0 -1
  347. package/dist/theme/roles.js +0 -68
  348. package/dist/theme/vendor/scheme/scheme_content.js +0 -30
  349. package/dist/theme/vendor/scheme/scheme_expressive.js +0 -30
  350. package/dist/theme/vendor/scheme/scheme_fidelity.js +0 -30
  351. package/dist/theme/vendor/scheme/scheme_monochrome.js +0 -30
  352. package/dist/theme/vendor/scheme/scheme_neutral.js +0 -30
  353. package/dist/theme/vendor/scheme/scheme_tonal_spot.js +0 -30
  354. package/dist/theme/vendor/scheme/scheme_vibrant.js +0 -30
@@ -31,10 +31,11 @@ export declare const TOOLBAR_ARRANGEMENTS: {
31
31
  readonly CENTER: "center";
32
32
  };
33
33
  export type ToolbarArrangement = (typeof TOOLBAR_ARRANGEMENTS)[keyof typeof TOOLBAR_ARRANGEMENTS];
34
- /** Scroll behaviours: stay on screen, or leave it while scrolling forward. */
34
+ /** Scroll behaviours: stay on screen, leave it while scrolling forward, or — docked only — shrink while the content scrolls forward and restore when it scrolls back. */
35
35
  export declare const TOOLBAR_SCROLL_BEHAVIORS: {
36
36
  readonly NONE: "none";
37
37
  readonly EXIT: "exit";
38
+ readonly COLLAPSE: "collapse";
38
39
  };
39
40
  export type ToolbarScrollBehavior = (typeof TOOLBAR_SCROLL_BEHAVIORS)[keyof typeof TOOLBAR_SCROLL_BEHAVIORS];
40
41
  /** Which side of a floating toolbar its FAB sits on, along the toolbar. */
@@ -44,4 +45,6 @@ export declare const TOOLBAR_SCROLL_THRESHOLD = 40;
44
45
  export declare const TOOLBAR_EVENTS: {
45
46
  readonly SHOW: "show";
46
47
  readonly HIDE: "hide";
48
+ readonly COLLAPSE: "collapse";
49
+ readonly EXPAND: "expand";
47
50
  };
@@ -24,9 +24,12 @@ CENTER: "center",
24
24
  export const TOOLBAR_SCROLL_BEHAVIORS = {
25
25
  NONE: "none",
26
26
  EXIT: "exit",
27
+ COLLAPSE: "collapse",
27
28
  };
28
29
  export const TOOLBAR_SCROLL_THRESHOLD = 40;
29
30
  export const TOOLBAR_EVENTS = {
30
31
  SHOW: "show",
31
32
  HIDE: "hide",
33
+ COLLAPSE: "collapse",
34
+ EXPAND: "expand",
32
35
  };
@@ -117,22 +117,37 @@ else
117
117
  root.setAttribute("inert", "");
118
118
  component.emit(visible ? TOOLBAR_EVENTS.SHOW : TOOLBAR_EVENTS.HIDE);
119
119
  };
120
- if (settings.exit) {
120
+ let collapsed = false;
121
+ const setCollapsed = (next) => {
122
+ if (next === collapsed)
123
+ return;
124
+ collapsed = next;
125
+ root.classList.toggle(`${block}--collapsed`, collapsed);
126
+ component.emit(collapsed ? TOOLBAR_EVENTS.COLLAPSE : TOOLBAR_EVENTS.EXPAND);
127
+ };
128
+ if (settings.exit || settings.collapse) {
121
129
  const target = settings.scrollTarget ?? window;
122
130
  const position = () => target === window ? window.scrollY : target.scrollTop;
123
131
  const threshold = settings.scrollThreshold;
124
132
  let anchor = position();
125
133
  const onScroll = () => {
126
134
  const y = position();
135
+ const open = settings.exit ? visible : !collapsed;
127
136
  if (y <= 0) {
137
+ if (settings.exit)
128
138
  setVisible(true);
139
+ else
140
+ setCollapsed(false);
129
141
  anchor = 0;
130
142
  }
131
- else if (visible ? y - anchor >= threshold : anchor - y >= threshold) {
143
+ else if (open ? y - anchor >= threshold : anchor - y >= threshold) {
144
+ if (settings.exit)
132
145
  setVisible(!visible);
146
+ else
147
+ setCollapsed(!collapsed);
133
148
  anchor = y;
134
149
  }
135
- else if (visible ? y < anchor : y > anchor) {
150
+ else if (open ? y < anchor : y > anchor) {
136
151
  anchor = y;
137
152
  }
138
153
  };
@@ -67,12 +67,12 @@ export interface ToolbarConfig extends BaseComponentConfig {
67
67
  */
68
68
  overflowLabel?: string;
69
69
  /**
70
- * `'exit'` hides the toolbar while the content scrolls forward and shows it
70
+ * `'exit'` hides the toolbar while the content scrolls forward and shows it when it scrolls back; `'collapse'` shrinks it instead of hiding it, and keeps its items and their accessible names.
71
71
  * @default 'none'
72
72
  */
73
73
  scrollBehavior?: ToolbarScrollBehavior | string;
74
74
  /**
75
- * What scrolls, for `scrollBehavior: 'exit'`
75
+ * What scrolls, for `scrollBehavior: 'exit'` or `'collapse'`
76
76
  * @default window
77
77
  */
78
78
  scrollTarget?: HTMLElement | Window;
@@ -95,6 +95,10 @@ export interface ToolbarEvents {
95
95
  show: () => void;
96
96
  /** The toolbar left the screen */
97
97
  hide: () => void;
98
+ /** The toolbar shrank (`scrollBehavior: 'collapse'`) */
99
+ collapse: () => void;
100
+ /** The toolbar restored its height (`scrollBehavior: 'collapse'`) */
101
+ expand: () => void;
98
102
  }
99
103
  /** A toolbar */
100
104
  export interface ToolbarComponent extends ElementComponent {
@@ -1,4 +1,7 @@
1
1
  import type { EventCondition } from "../dom/create.js";
2
+ type StyleDeclaration = {
3
+ -readonly [K in keyof CSSStyleDeclaration]?: CSSStyleDeclaration[K];
4
+ };
2
5
  /** Base component configuration interface */
3
6
  export interface BaseComponentConfig {
4
7
  componentName?: string;
@@ -56,521 +59,7 @@ export declare const createElementConfig: (config: BaseComponentConfig, options:
56
59
  name: string | undefined;
57
60
  title: string | undefined;
58
61
  tabIndex: number | undefined;
59
- style: {
60
- [x: number]: string | undefined;
61
- accentColor?: string | undefined;
62
- alignContent?: string | undefined;
63
- alignItems?: string | undefined;
64
- alignSelf?: string | undefined;
65
- alignmentBaseline?: string | undefined;
66
- all?: string | undefined;
67
- animation?: string | undefined;
68
- animationComposition?: string | undefined;
69
- animationDelay?: string | undefined;
70
- animationDirection?: string | undefined;
71
- animationDuration?: string | undefined;
72
- animationFillMode?: string | undefined;
73
- animationIterationCount?: string | undefined;
74
- animationName?: string | undefined;
75
- animationPlayState?: string | undefined;
76
- animationTimingFunction?: string | undefined;
77
- appearance?: string | undefined;
78
- aspectRatio?: string | undefined;
79
- backdropFilter?: string | undefined;
80
- backfaceVisibility?: string | undefined;
81
- background?: string | undefined;
82
- backgroundAttachment?: string | undefined;
83
- backgroundBlendMode?: string | undefined;
84
- backgroundClip?: string | undefined;
85
- backgroundColor?: string | undefined;
86
- backgroundImage?: string | undefined;
87
- backgroundOrigin?: string | undefined;
88
- backgroundPosition?: string | undefined;
89
- backgroundPositionX?: string | undefined;
90
- backgroundPositionY?: string | undefined;
91
- backgroundRepeat?: string | undefined;
92
- backgroundSize?: string | undefined;
93
- baselineShift?: string | undefined;
94
- baselineSource?: string | undefined;
95
- blockSize?: string | undefined;
96
- border?: string | undefined;
97
- borderBlock?: string | undefined;
98
- borderBlockColor?: string | undefined;
99
- borderBlockEnd?: string | undefined;
100
- borderBlockEndColor?: string | undefined;
101
- borderBlockEndStyle?: string | undefined;
102
- borderBlockEndWidth?: string | undefined;
103
- borderBlockStart?: string | undefined;
104
- borderBlockStartColor?: string | undefined;
105
- borderBlockStartStyle?: string | undefined;
106
- borderBlockStartWidth?: string | undefined;
107
- borderBlockStyle?: string | undefined;
108
- borderBlockWidth?: string | undefined;
109
- borderBottom?: string | undefined;
110
- borderBottomColor?: string | undefined;
111
- borderBottomLeftRadius?: string | undefined;
112
- borderBottomRightRadius?: string | undefined;
113
- borderBottomStyle?: string | undefined;
114
- borderBottomWidth?: string | undefined;
115
- borderCollapse?: string | undefined;
116
- borderColor?: string | undefined;
117
- borderEndEndRadius?: string | undefined;
118
- borderEndStartRadius?: string | undefined;
119
- borderImage?: string | undefined;
120
- borderImageOutset?: string | undefined;
121
- borderImageRepeat?: string | undefined;
122
- borderImageSlice?: string | undefined;
123
- borderImageSource?: string | undefined;
124
- borderImageWidth?: string | undefined;
125
- borderInline?: string | undefined;
126
- borderInlineColor?: string | undefined;
127
- borderInlineEnd?: string | undefined;
128
- borderInlineEndColor?: string | undefined;
129
- borderInlineEndStyle?: string | undefined;
130
- borderInlineEndWidth?: string | undefined;
131
- borderInlineStart?: string | undefined;
132
- borderInlineStartColor?: string | undefined;
133
- borderInlineStartStyle?: string | undefined;
134
- borderInlineStartWidth?: string | undefined;
135
- borderInlineStyle?: string | undefined;
136
- borderInlineWidth?: string | undefined;
137
- borderLeft?: string | undefined;
138
- borderLeftColor?: string | undefined;
139
- borderLeftStyle?: string | undefined;
140
- borderLeftWidth?: string | undefined;
141
- borderRadius?: string | undefined;
142
- borderRight?: string | undefined;
143
- borderRightColor?: string | undefined;
144
- borderRightStyle?: string | undefined;
145
- borderRightWidth?: string | undefined;
146
- borderSpacing?: string | undefined;
147
- borderStartEndRadius?: string | undefined;
148
- borderStartStartRadius?: string | undefined;
149
- borderStyle?: string | undefined;
150
- borderTop?: string | undefined;
151
- borderTopColor?: string | undefined;
152
- borderTopLeftRadius?: string | undefined;
153
- borderTopRightRadius?: string | undefined;
154
- borderTopStyle?: string | undefined;
155
- borderTopWidth?: string | undefined;
156
- borderWidth?: string | undefined;
157
- bottom?: string | undefined;
158
- boxDecorationBreak?: string | undefined;
159
- boxShadow?: string | undefined;
160
- boxSizing?: string | undefined;
161
- breakAfter?: string | undefined;
162
- breakBefore?: string | undefined;
163
- breakInside?: string | undefined;
164
- captionSide?: string | undefined;
165
- caretColor?: string | undefined;
166
- clear?: string | undefined;
167
- clip?: string | undefined;
168
- clipPath?: string | undefined;
169
- clipRule?: string | undefined;
170
- color?: string | undefined;
171
- colorInterpolation?: string | undefined;
172
- colorInterpolationFilters?: string | undefined;
173
- colorScheme?: string | undefined;
174
- columnCount?: string | undefined;
175
- columnFill?: string | undefined;
176
- columnGap?: string | undefined;
177
- columnRule?: string | undefined;
178
- columnRuleColor?: string | undefined;
179
- columnRuleStyle?: string | undefined;
180
- columnRuleWidth?: string | undefined;
181
- columnSpan?: string | undefined;
182
- columnWidth?: string | undefined;
183
- columns?: string | undefined;
184
- contain?: string | undefined;
185
- containIntrinsicBlockSize?: string | undefined;
186
- containIntrinsicHeight?: string | undefined;
187
- containIntrinsicInlineSize?: string | undefined;
188
- containIntrinsicSize?: string | undefined;
189
- containIntrinsicWidth?: string | undefined;
190
- container?: string | undefined;
191
- containerName?: string | undefined;
192
- containerType?: string | undefined;
193
- content?: string | undefined;
194
- contentVisibility?: string | undefined;
195
- counterIncrement?: string | undefined;
196
- counterReset?: string | undefined;
197
- counterSet?: string | undefined;
198
- cssFloat?: string | undefined;
199
- cssText?: string | undefined;
200
- cursor?: string | undefined;
201
- cx?: string | undefined;
202
- cy?: string | undefined;
203
- d?: string | undefined;
204
- direction?: string | undefined;
205
- display?: string | undefined;
206
- dominantBaseline?: string | undefined;
207
- emptyCells?: string | undefined;
208
- fill?: string | undefined;
209
- fillOpacity?: string | undefined;
210
- fillRule?: string | undefined;
211
- filter?: string | undefined;
212
- flex?: string | undefined;
213
- flexBasis?: string | undefined;
214
- flexDirection?: string | undefined;
215
- flexFlow?: string | undefined;
216
- flexGrow?: string | undefined;
217
- flexShrink?: string | undefined;
218
- flexWrap?: string | undefined;
219
- float?: string | undefined;
220
- floodColor?: string | undefined;
221
- floodOpacity?: string | undefined;
222
- font?: string | undefined;
223
- fontFamily?: string | undefined;
224
- fontFeatureSettings?: string | undefined;
225
- fontKerning?: string | undefined;
226
- fontOpticalSizing?: string | undefined;
227
- fontPalette?: string | undefined;
228
- fontSize?: string | undefined;
229
- fontSizeAdjust?: string | undefined;
230
- fontStretch?: string | undefined;
231
- fontStyle?: string | undefined;
232
- fontSynthesis?: string | undefined;
233
- fontSynthesisSmallCaps?: string | undefined;
234
- fontSynthesisStyle?: string | undefined;
235
- fontSynthesisWeight?: string | undefined;
236
- fontVariant?: string | undefined;
237
- fontVariantAlternates?: string | undefined;
238
- fontVariantCaps?: string | undefined;
239
- fontVariantEastAsian?: string | undefined;
240
- fontVariantLigatures?: string | undefined;
241
- fontVariantNumeric?: string | undefined;
242
- fontVariantPosition?: string | undefined;
243
- fontVariationSettings?: string | undefined;
244
- fontWeight?: string | undefined;
245
- forcedColorAdjust?: string | undefined;
246
- gap?: string | undefined;
247
- grid?: string | undefined;
248
- gridArea?: string | undefined;
249
- gridAutoColumns?: string | undefined;
250
- gridAutoFlow?: string | undefined;
251
- gridAutoRows?: string | undefined;
252
- gridColumn?: string | undefined;
253
- gridColumnEnd?: string | undefined;
254
- gridColumnGap?: string | undefined;
255
- gridColumnStart?: string | undefined;
256
- gridGap?: string | undefined;
257
- gridRow?: string | undefined;
258
- gridRowEnd?: string | undefined;
259
- gridRowGap?: string | undefined;
260
- gridRowStart?: string | undefined;
261
- gridTemplate?: string | undefined;
262
- gridTemplateAreas?: string | undefined;
263
- gridTemplateColumns?: string | undefined;
264
- gridTemplateRows?: string | undefined;
265
- height?: string | undefined;
266
- hyphenateCharacter?: string | undefined;
267
- hyphens?: string | undefined;
268
- imageOrientation?: string | undefined;
269
- imageRendering?: string | undefined;
270
- inlineSize?: string | undefined;
271
- inset?: string | undefined;
272
- insetBlock?: string | undefined;
273
- insetBlockEnd?: string | undefined;
274
- insetBlockStart?: string | undefined;
275
- insetInline?: string | undefined;
276
- insetInlineEnd?: string | undefined;
277
- insetInlineStart?: string | undefined;
278
- isolation?: string | undefined;
279
- justifyContent?: string | undefined;
280
- justifyItems?: string | undefined;
281
- justifySelf?: string | undefined;
282
- left?: string | undefined;
283
- length?: number | undefined;
284
- letterSpacing?: string | undefined;
285
- lightingColor?: string | undefined;
286
- lineBreak?: string | undefined;
287
- lineHeight?: string | undefined;
288
- listStyle?: string | undefined;
289
- listStyleImage?: string | undefined;
290
- listStylePosition?: string | undefined;
291
- listStyleType?: string | undefined;
292
- margin?: string | undefined;
293
- marginBlock?: string | undefined;
294
- marginBlockEnd?: string | undefined;
295
- marginBlockStart?: string | undefined;
296
- marginBottom?: string | undefined;
297
- marginInline?: string | undefined;
298
- marginInlineEnd?: string | undefined;
299
- marginInlineStart?: string | undefined;
300
- marginLeft?: string | undefined;
301
- marginRight?: string | undefined;
302
- marginTop?: string | undefined;
303
- marker?: string | undefined;
304
- markerEnd?: string | undefined;
305
- markerMid?: string | undefined;
306
- markerStart?: string | undefined;
307
- mask?: string | undefined;
308
- maskClip?: string | undefined;
309
- maskComposite?: string | undefined;
310
- maskImage?: string | undefined;
311
- maskMode?: string | undefined;
312
- maskOrigin?: string | undefined;
313
- maskPosition?: string | undefined;
314
- maskRepeat?: string | undefined;
315
- maskSize?: string | undefined;
316
- maskType?: string | undefined;
317
- mathDepth?: string | undefined;
318
- mathStyle?: string | undefined;
319
- maxBlockSize?: string | undefined;
320
- maxHeight?: string | undefined;
321
- maxInlineSize?: string | undefined;
322
- maxWidth?: string | undefined;
323
- minBlockSize?: string | undefined;
324
- minHeight?: string | undefined;
325
- minInlineSize?: string | undefined;
326
- minWidth?: string | undefined;
327
- mixBlendMode?: string | undefined;
328
- objectFit?: string | undefined;
329
- objectPosition?: string | undefined;
330
- offset?: string | undefined;
331
- offsetAnchor?: string | undefined;
332
- offsetDistance?: string | undefined;
333
- offsetPath?: string | undefined;
334
- offsetPosition?: string | undefined;
335
- offsetRotate?: string | undefined;
336
- opacity?: string | undefined;
337
- order?: string | undefined;
338
- orphans?: string | undefined;
339
- outline?: string | undefined;
340
- outlineColor?: string | undefined;
341
- outlineOffset?: string | undefined;
342
- outlineStyle?: string | undefined;
343
- outlineWidth?: string | undefined;
344
- overflow?: string | undefined;
345
- overflowAnchor?: string | undefined;
346
- overflowClipMargin?: string | undefined;
347
- overflowWrap?: string | undefined;
348
- overflowX?: string | undefined;
349
- overflowY?: string | undefined;
350
- overscrollBehavior?: string | undefined;
351
- overscrollBehaviorBlock?: string | undefined;
352
- overscrollBehaviorInline?: string | undefined;
353
- overscrollBehaviorX?: string | undefined;
354
- overscrollBehaviorY?: string | undefined;
355
- padding?: string | undefined;
356
- paddingBlock?: string | undefined;
357
- paddingBlockEnd?: string | undefined;
358
- paddingBlockStart?: string | undefined;
359
- paddingBottom?: string | undefined;
360
- paddingInline?: string | undefined;
361
- paddingInlineEnd?: string | undefined;
362
- paddingInlineStart?: string | undefined;
363
- paddingLeft?: string | undefined;
364
- paddingRight?: string | undefined;
365
- paddingTop?: string | undefined;
366
- page?: string | undefined;
367
- pageBreakAfter?: string | undefined;
368
- pageBreakBefore?: string | undefined;
369
- pageBreakInside?: string | undefined;
370
- paintOrder?: string | undefined;
371
- parentRule?: CSSRule | null | undefined;
372
- perspective?: string | undefined;
373
- perspectiveOrigin?: string | undefined;
374
- placeContent?: string | undefined;
375
- placeItems?: string | undefined;
376
- placeSelf?: string | undefined;
377
- pointerEvents?: string | undefined;
378
- position?: string | undefined;
379
- printColorAdjust?: string | undefined;
380
- quotes?: string | undefined;
381
- r?: string | undefined;
382
- resize?: string | undefined;
383
- right?: string | undefined;
384
- rotate?: string | undefined;
385
- rowGap?: string | undefined;
386
- rubyAlign?: string | undefined;
387
- rubyPosition?: string | undefined;
388
- rx?: string | undefined;
389
- ry?: string | undefined;
390
- scale?: string | undefined;
391
- scrollBehavior?: string | undefined;
392
- scrollMargin?: string | undefined;
393
- scrollMarginBlock?: string | undefined;
394
- scrollMarginBlockEnd?: string | undefined;
395
- scrollMarginBlockStart?: string | undefined;
396
- scrollMarginBottom?: string | undefined;
397
- scrollMarginInline?: string | undefined;
398
- scrollMarginInlineEnd?: string | undefined;
399
- scrollMarginInlineStart?: string | undefined;
400
- scrollMarginLeft?: string | undefined;
401
- scrollMarginRight?: string | undefined;
402
- scrollMarginTop?: string | undefined;
403
- scrollPadding?: string | undefined;
404
- scrollPaddingBlock?: string | undefined;
405
- scrollPaddingBlockEnd?: string | undefined;
406
- scrollPaddingBlockStart?: string | undefined;
407
- scrollPaddingBottom?: string | undefined;
408
- scrollPaddingInline?: string | undefined;
409
- scrollPaddingInlineEnd?: string | undefined;
410
- scrollPaddingInlineStart?: string | undefined;
411
- scrollPaddingLeft?: string | undefined;
412
- scrollPaddingRight?: string | undefined;
413
- scrollPaddingTop?: string | undefined;
414
- scrollSnapAlign?: string | undefined;
415
- scrollSnapStop?: string | undefined;
416
- scrollSnapType?: string | undefined;
417
- scrollbarColor?: string | undefined;
418
- scrollbarGutter?: string | undefined;
419
- scrollbarWidth?: string | undefined;
420
- shapeImageThreshold?: string | undefined;
421
- shapeMargin?: string | undefined;
422
- shapeOutside?: string | undefined;
423
- shapeRendering?: string | undefined;
424
- stopColor?: string | undefined;
425
- stopOpacity?: string | undefined;
426
- stroke?: string | undefined;
427
- strokeDasharray?: string | undefined;
428
- strokeDashoffset?: string | undefined;
429
- strokeLinecap?: string | undefined;
430
- strokeLinejoin?: string | undefined;
431
- strokeMiterlimit?: string | undefined;
432
- strokeOpacity?: string | undefined;
433
- strokeWidth?: string | undefined;
434
- tabSize?: string | undefined;
435
- tableLayout?: string | undefined;
436
- textAlign?: string | undefined;
437
- textAlignLast?: string | undefined;
438
- textAnchor?: string | undefined;
439
- textBox?: string | undefined;
440
- textBoxEdge?: string | undefined;
441
- textBoxTrim?: string | undefined;
442
- textCombineUpright?: string | undefined;
443
- textDecoration?: string | undefined;
444
- textDecorationColor?: string | undefined;
445
- textDecorationLine?: string | undefined;
446
- textDecorationSkipInk?: string | undefined;
447
- textDecorationStyle?: string | undefined;
448
- textDecorationThickness?: string | undefined;
449
- textEmphasis?: string | undefined;
450
- textEmphasisColor?: string | undefined;
451
- textEmphasisPosition?: string | undefined;
452
- textEmphasisStyle?: string | undefined;
453
- textIndent?: string | undefined;
454
- textOrientation?: string | undefined;
455
- textOverflow?: string | undefined;
456
- textRendering?: string | undefined;
457
- textShadow?: string | undefined;
458
- textTransform?: string | undefined;
459
- textUnderlineOffset?: string | undefined;
460
- textUnderlinePosition?: string | undefined;
461
- textWrap?: string | undefined;
462
- textWrapMode?: string | undefined;
463
- textWrapStyle?: string | undefined;
464
- top?: string | undefined;
465
- touchAction?: string | undefined;
466
- transform?: string | undefined;
467
- transformBox?: string | undefined;
468
- transformOrigin?: string | undefined;
469
- transformStyle?: string | undefined;
470
- transition?: string | undefined;
471
- transitionBehavior?: string | undefined;
472
- transitionDelay?: string | undefined;
473
- transitionDuration?: string | undefined;
474
- transitionProperty?: string | undefined;
475
- transitionTimingFunction?: string | undefined;
476
- translate?: string | undefined;
477
- unicodeBidi?: string | undefined;
478
- userSelect?: string | undefined;
479
- vectorEffect?: string | undefined;
480
- verticalAlign?: string | undefined;
481
- viewTransitionClass?: string | undefined;
482
- viewTransitionName?: string | undefined;
483
- visibility?: string | undefined;
484
- webkitAlignContent?: string | undefined;
485
- webkitAlignItems?: string | undefined;
486
- webkitAlignSelf?: string | undefined;
487
- webkitAnimation?: string | undefined;
488
- webkitAnimationDelay?: string | undefined;
489
- webkitAnimationDirection?: string | undefined;
490
- webkitAnimationDuration?: string | undefined;
491
- webkitAnimationFillMode?: string | undefined;
492
- webkitAnimationIterationCount?: string | undefined;
493
- webkitAnimationName?: string | undefined;
494
- webkitAnimationPlayState?: string | undefined;
495
- webkitAnimationTimingFunction?: string | undefined;
496
- webkitAppearance?: string | undefined;
497
- webkitBackfaceVisibility?: string | undefined;
498
- webkitBackgroundClip?: string | undefined;
499
- webkitBackgroundOrigin?: string | undefined;
500
- webkitBackgroundSize?: string | undefined;
501
- webkitBorderBottomLeftRadius?: string | undefined;
502
- webkitBorderBottomRightRadius?: string | undefined;
503
- webkitBorderRadius?: string | undefined;
504
- webkitBorderTopLeftRadius?: string | undefined;
505
- webkitBorderTopRightRadius?: string | undefined;
506
- webkitBoxAlign?: string | undefined;
507
- webkitBoxFlex?: string | undefined;
508
- webkitBoxOrdinalGroup?: string | undefined;
509
- webkitBoxOrient?: string | undefined;
510
- webkitBoxPack?: string | undefined;
511
- webkitBoxShadow?: string | undefined;
512
- webkitBoxSizing?: string | undefined;
513
- webkitFilter?: string | undefined;
514
- webkitFlex?: string | undefined;
515
- webkitFlexBasis?: string | undefined;
516
- webkitFlexDirection?: string | undefined;
517
- webkitFlexFlow?: string | undefined;
518
- webkitFlexGrow?: string | undefined;
519
- webkitFlexShrink?: string | undefined;
520
- webkitFlexWrap?: string | undefined;
521
- webkitJustifyContent?: string | undefined;
522
- webkitLineClamp?: string | undefined;
523
- webkitMask?: string | undefined;
524
- webkitMaskBoxImage?: string | undefined;
525
- webkitMaskBoxImageOutset?: string | undefined;
526
- webkitMaskBoxImageRepeat?: string | undefined;
527
- webkitMaskBoxImageSlice?: string | undefined;
528
- webkitMaskBoxImageSource?: string | undefined;
529
- webkitMaskBoxImageWidth?: string | undefined;
530
- webkitMaskClip?: string | undefined;
531
- webkitMaskComposite?: string | undefined;
532
- webkitMaskImage?: string | undefined;
533
- webkitMaskOrigin?: string | undefined;
534
- webkitMaskPosition?: string | undefined;
535
- webkitMaskRepeat?: string | undefined;
536
- webkitMaskSize?: string | undefined;
537
- webkitOrder?: string | undefined;
538
- webkitPerspective?: string | undefined;
539
- webkitPerspectiveOrigin?: string | undefined;
540
- webkitTextFillColor?: string | undefined;
541
- webkitTextSizeAdjust?: string | undefined;
542
- webkitTextStroke?: string | undefined;
543
- webkitTextStrokeColor?: string | undefined;
544
- webkitTextStrokeWidth?: string | undefined;
545
- webkitTransform?: string | undefined;
546
- webkitTransformOrigin?: string | undefined;
547
- webkitTransformStyle?: string | undefined;
548
- webkitTransition?: string | undefined;
549
- webkitTransitionDelay?: string | undefined;
550
- webkitTransitionDuration?: string | undefined;
551
- webkitTransitionProperty?: string | undefined;
552
- webkitTransitionTimingFunction?: string | undefined;
553
- webkitUserSelect?: string | undefined;
554
- whiteSpace?: string | undefined;
555
- whiteSpaceCollapse?: string | undefined;
556
- widows?: string | undefined;
557
- width?: string | undefined;
558
- willChange?: string | undefined;
559
- wordBreak?: string | undefined;
560
- wordSpacing?: string | undefined;
561
- wordWrap?: string | undefined;
562
- writingMode?: string | undefined;
563
- x?: string | undefined;
564
- y?: string | undefined;
565
- zIndex?: string | undefined;
566
- zoom?: string | undefined;
567
- getPropertyPriority?: ((property: string) => string) | undefined;
568
- getPropertyValue?: ((property: string) => string) | undefined;
569
- item?: ((index: number) => string) | undefined;
570
- removeProperty?: ((property: string) => string) | undefined;
571
- setProperty?: ((property: string, value: string | null, priority?: string) => void) | undefined;
572
- [Symbol.iterator]?: (() => ArrayIterator<string>) | undefined;
573
- } | undefined;
62
+ style: StyleDeclaration | undefined;
574
63
  data: Record<string, string> | undefined;
575
64
  role: string | undefined;
576
65
  ariaLabel: string | undefined;
@@ -582,3 +71,4 @@ export declare const createElementConfig: (config: BaseComponentConfig, options:
582
71
  forwardEvents: Record<string, EventCondition>;
583
72
  interactive: boolean | undefined;
584
73
  };
74
+ export {};
@@ -0,0 +1,5 @@
1
+ export function controlLabelConfig(wrapper, controlOnly) {
2
+ if (controlOnly)
3
+ wrapper.ariaLabel = undefined;
4
+ return wrapper;
5
+ }
@@ -34,11 +34,28 @@ declare const bottomAppBarSpec: {
34
34
  config: (host: HTMLElement) => Config;
35
35
  setup: (host: import("./define.js").ElementHost<BottomAppBarComponent>, component: BottomAppBarComponent) => () => void | undefined;
36
36
  };
37
+ /**
38
+ * The `<m-bottom-app-bar>` element.
39
+ * @deprecated Material Design 3 Expressive replaces the bottom app bar with
40
+ * the docked toolbar. Use `<m-toolbar variant="docked" placement="bottom">`
41
+ * and toolbarElement instead. A centred FAB, adding a FAB after creation, a
42
+ * custom transition duration and a custom tag are not yet available on the
43
+ * docked toolbar.
44
+ */
37
45
  export declare const bottomAppBarElement: import("./define.js").ElementDefinition<BottomAppBarComponent>;
46
+ /** @deprecated Use ToolbarSpec: the docked toolbar's element spec. */
38
47
  export type BottomAppBarSpec = typeof bottomAppBarSpec;
39
- /** `<m-bottom-app-bar>` as a ref or a query returns it. */
48
+ /**
49
+ * `<m-bottom-app-bar>` as a ref or a query returns it.
50
+ * @deprecated Use ToolbarElement: the docked toolbar's element type.
51
+ */
40
52
  export type BottomAppBarElement = ElementInstance<BottomAppBarSpec, BottomAppBarComponent>;
41
- /** Registers `<m-bottom-app-bar>` (or `<prefix-bottom-app-bar>`). */
53
+ /**
54
+ * Registers `<m-bottom-app-bar>` (or `<prefix-bottom-app-bar>`).
55
+ * @deprecated Material Design 3 Expressive replaces the bottom app bar with
56
+ * the docked toolbar. Use defineToolbar and
57
+ * `<m-toolbar variant="docked" placement="bottom">` instead.
58
+ */
42
59
  export declare const defineBottomAppBar: (options?: DefineOptions) => string;
43
60
  declare global {
44
61
  /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */