material 3.2.5 → 3.2.7

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 (564) hide show
  1. package/README.md +2 -2
  2. package/dist/components/badge/badge.d.ts +0 -59
  3. package/dist/components/badge/constants.d.ts +0 -15
  4. package/dist/components/badge/index.d.ts +0 -6
  5. package/dist/components/badge/types.d.ts +0 -244
  6. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -10
  7. package/dist/components/bottom-app-bar/constants.d.ts +0 -9
  8. package/dist/components/bottom-app-bar/index.d.ts +0 -4
  9. package/dist/components/bottom-app-bar/types.d.ts +0 -76
  10. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -21
  11. package/dist/components/bottom-sheet/constants.d.ts +0 -29
  12. package/dist/components/bottom-sheet/types.d.ts +0 -89
  13. package/dist/components/button/button.d.ts +0 -62
  14. package/dist/components/button/constants.d.ts +0 -41
  15. package/dist/components/button/index.d.ts +0 -4
  16. package/dist/components/button/types.d.ts +0 -347
  17. package/dist/components/button-group/button-group.d.ts +0 -51
  18. package/dist/components/button-group/constants.d.ts +0 -83
  19. package/dist/components/button-group/index.d.ts +0 -10
  20. package/dist/components/button-group/types.d.ts +0 -234
  21. package/dist/components/card/card.d.ts +0 -64
  22. package/dist/components/card/constants.d.ts +0 -33
  23. package/dist/components/card/content.d.ts +0 -86
  24. package/dist/components/card/index.d.ts +0 -66
  25. package/dist/components/card/types.d.ts +0 -366
  26. package/dist/components/carousel/carousel.d.ts +0 -22
  27. package/dist/components/carousel/constants.d.ts +0 -16
  28. package/dist/components/carousel/types.d.ts +0 -29
  29. package/dist/components/checkbox/checkbox.d.ts +0 -61
  30. package/dist/components/checkbox/constants.d.ts +0 -33
  31. package/dist/components/checkbox/index.d.ts +0 -25
  32. package/dist/components/checkbox/types.d.ts +0 -206
  33. package/dist/components/chips/chips.d.ts +0 -14
  34. package/dist/components/chips/constants.d.ts +0 -1
  35. package/dist/components/chips/factories.d.ts +0 -4
  36. package/dist/components/chips/types.d.ts +0 -278
  37. package/dist/components/datepicker/constants.d.ts +0 -56
  38. package/dist/components/datepicker/datepicker.d.ts +0 -5
  39. package/dist/components/datepicker/types.d.ts +12 -257
  40. package/dist/components/dialog/constants.d.ts +0 -65
  41. package/dist/components/dialog/dialog.d.ts +0 -86
  42. package/dist/components/dialog/index.d.ts +0 -12
  43. package/dist/components/dialog/types.d.ts +0 -511
  44. package/dist/components/divider/config.d.ts +0 -130
  45. package/dist/components/divider/constants.d.ts +0 -27
  46. package/dist/components/divider/divider.d.ts +0 -36
  47. package/dist/components/divider/index.d.ts +0 -29
  48. package/dist/components/divider/types.d.ts +0 -126
  49. package/dist/components/drawer/constants.d.ts +0 -53
  50. package/dist/components/drawer/drawer.d.ts +0 -56
  51. package/dist/components/drawer/features/items.js +3 -2
  52. package/dist/components/drawer/index.d.ts +0 -4
  53. package/dist/components/drawer/types.d.ts +0 -200
  54. package/dist/components/extended-fab/constants.d.ts +0 -46
  55. package/dist/components/extended-fab/extended-fab.d.ts +0 -58
  56. package/dist/components/extended-fab/index.d.ts +0 -34
  57. package/dist/components/extended-fab/types.d.ts +0 -654
  58. package/dist/components/fab/constants.d.ts +0 -40
  59. package/dist/components/fab/fab.d.ts +0 -42
  60. package/dist/components/fab/index.d.ts +0 -33
  61. package/dist/components/fab/types.d.ts +0 -543
  62. package/dist/components/fab-menu/constants.d.ts +0 -22
  63. package/dist/components/fab-menu/fab-menu.d.ts +0 -36
  64. package/dist/components/fab-menu/types.d.ts +0 -80
  65. package/dist/components/icon-button/constants.d.ts +0 -90
  66. package/dist/components/icon-button/icon-button.d.ts +0 -83
  67. package/dist/components/icon-button/index.d.ts +0 -44
  68. package/dist/components/icon-button/types.d.ts +0 -314
  69. package/dist/components/index.d.ts +0 -9
  70. package/dist/components/list/constants.d.ts +0 -47
  71. package/dist/components/list/index.d.ts +0 -1
  72. package/dist/components/list/list.d.ts +0 -26
  73. package/dist/components/list/types.d.ts +0 -263
  74. package/dist/components/loading-indicator/constants.d.ts +0 -35
  75. package/dist/components/loading-indicator/features/renderer.d.ts +0 -14
  76. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -6
  77. package/dist/components/loading-indicator/types.d.ts +0 -35
  78. package/dist/components/menu/constants.d.ts +0 -79
  79. package/dist/components/menu/index.d.ts +0 -25
  80. package/dist/components/menu/inner.d.ts +0 -3
  81. package/dist/components/menu/menu.d.ts +0 -26
  82. package/dist/components/menu/types.d.ts +0 -423
  83. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -7
  84. package/dist/components/navigation-bar/types.d.ts +0 -25
  85. package/dist/components/navigation-rail/constants.d.ts +0 -2
  86. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -5
  87. package/dist/components/navigation-rail/types.d.ts +0 -22
  88. package/dist/components/progress/constants.d.ts +24 -56
  89. package/dist/components/progress/progress.d.ts +0 -21
  90. package/dist/components/progress/types.d.ts +0 -251
  91. package/dist/components/radios/constants.d.ts +0 -22
  92. package/dist/components/radios/radios.d.ts +0 -5
  93. package/dist/components/radios/types.d.ts +0 -142
  94. package/dist/components/search/constants.d.ts +0 -59
  95. package/dist/components/search/search.d.ts +0 -32
  96. package/dist/components/search/types.d.ts +0 -159
  97. package/dist/components/select/constants.d.ts +0 -60
  98. package/dist/components/select/index.d.ts +0 -22
  99. package/dist/components/select/select.d.ts +0 -33
  100. package/dist/components/select/types.d.ts +0 -241
  101. package/dist/components/side-sheet/constants.d.ts +0 -28
  102. package/dist/components/side-sheet/side-sheet.d.ts +0 -21
  103. package/dist/components/side-sheet/types.d.ts +0 -82
  104. package/dist/components/slider/constants.d.ts +0 -86
  105. package/dist/components/slider/slider.d.ts +0 -16
  106. package/dist/components/slider/types.d.ts +0 -184
  107. package/dist/components/snackbar/constants.d.ts +0 -73
  108. package/dist/components/snackbar/snackbar.d.ts +0 -13
  109. package/dist/components/snackbar/types.d.ts +0 -147
  110. package/dist/components/split-button/constants.d.ts +0 -33
  111. package/dist/components/split-button/split-button.d.ts +0 -21
  112. package/dist/components/split-button/types.d.ts +0 -81
  113. package/dist/components/switch/constants.d.ts +0 -49
  114. package/dist/components/switch/switch.d.ts +0 -5
  115. package/dist/components/switch/types.d.ts +0 -80
  116. package/dist/components/tabs/constants.d.ts +0 -76
  117. package/dist/components/tabs/indicator.d.ts +0 -27
  118. package/dist/components/tabs/responsive.d.ts +0 -30
  119. package/dist/components/tabs/tab.d.ts +0 -13
  120. package/dist/components/tabs/tab.js +26 -3
  121. package/dist/components/tabs/tabs.d.ts +0 -24
  122. package/dist/components/tabs/types.d.ts +0 -335
  123. package/dist/components/tabs/utils.d.ts +0 -66
  124. package/dist/components/text-field/constants.d.ts +0 -82
  125. package/dist/components/text-field/features/trailing-icon.d.ts +0 -61
  126. package/dist/components/text-field/text-field.d.ts +0 -33
  127. package/dist/components/text-field/types.d.ts +0 -123
  128. package/dist/components/timepicker/constants.d.ts +0 -88
  129. package/dist/components/timepicker/types.d.ts +0 -268
  130. package/dist/components/toolbar/constants.d.ts +0 -27
  131. package/dist/components/toolbar/toolbar.d.ts +0 -25
  132. package/dist/components/toolbar/types.d.ts +0 -102
  133. package/dist/components/tooltip/constants.d.ts +0 -58
  134. package/dist/components/tooltip/tooltip.d.ts +0 -5
  135. package/dist/components/tooltip/types.d.ts +0 -140
  136. package/dist/components/top-app-bar/constants.d.ts +0 -41
  137. package/dist/components/top-app-bar/index.d.ts +0 -4
  138. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -10
  139. package/dist/components/top-app-bar/types.d.ts +0 -94
  140. package/dist/core/canvas/animation.d.ts +0 -13
  141. package/dist/core/canvas/drawing.d.ts +18 -55
  142. package/dist/core/canvas/index.d.ts +0 -4
  143. package/dist/core/canvas/resize.d.ts +0 -13
  144. package/dist/core/canvas/utils.d.ts +0 -62
  145. package/dist/core/compose/base.d.ts +0 -22
  146. package/dist/core/compose/cleanup.d.ts +0 -2
  147. package/dist/core/compose/component.d.ts +0 -31
  148. package/dist/core/compose/features/badge.d.ts +0 -25
  149. package/dist/core/compose/features/badge.js +45 -0
  150. package/dist/core/compose/features/checkable.d.ts +0 -36
  151. package/dist/core/compose/features/debounce.d.ts +0 -57
  152. package/dist/core/compose/features/disabled.d.ts +0 -31
  153. package/dist/core/compose/features/events.d.ts +0 -38
  154. package/dist/core/compose/features/icon.d.ts +0 -49
  155. package/dist/core/compose/features/input.d.ts +0 -82
  156. package/dist/core/compose/features/lifecycle.d.ts +0 -36
  157. package/dist/core/compose/features/position.d.ts +0 -27
  158. package/dist/core/compose/features/ripple.d.ts +0 -29
  159. package/dist/core/compose/features/size.d.ts +0 -9
  160. package/dist/core/compose/features/style.d.ts +0 -9
  161. package/dist/core/compose/features/text.d.ts +0 -45
  162. package/dist/core/compose/features/textinput.d.ts +0 -88
  163. package/dist/core/compose/features/textlabel.d.ts +0 -44
  164. package/dist/core/compose/features/throttle.d.ts +0 -54
  165. package/dist/core/compose/features/track.d.ts +0 -34
  166. package/dist/core/compose/features/variant.d.ts +0 -9
  167. package/dist/core/compose/features/withEvents.d.ts +0 -30
  168. package/dist/core/compose/index.d.ts +0 -4
  169. package/dist/core/compose/pipe.d.ts +0 -55
  170. package/dist/core/compose/utils/type-guards.d.ts +0 -15
  171. package/dist/core/config/component.d.ts +0 -45
  172. package/dist/core/config/global.d.ts +0 -43
  173. package/dist/core/config.d.ts +0 -59
  174. package/dist/core/dom/attributes.d.ts +0 -41
  175. package/dist/core/dom/classes.d.ts +0 -49
  176. package/dist/core/dom/create.d.ts +0 -98
  177. package/dist/core/dom/events.d.ts +0 -52
  178. package/dist/core/dom/focus.d.ts +0 -32
  179. package/dist/core/dom/html.d.ts +0 -24
  180. package/dist/core/dom/layer.d.ts +0 -98
  181. package/dist/core/dom/roving.d.ts +0 -19
  182. package/dist/core/index.d.ts +0 -9
  183. package/dist/core/navigation/destinations.d.ts +0 -14
  184. package/dist/core/navigation/destinations.js +18 -5
  185. package/dist/core/shapes/cubic.d.ts +24 -19
  186. package/dist/core/shapes/material.d.ts +0 -64
  187. package/dist/core/shapes/polygon.d.ts +6 -16
  188. package/dist/core/state/emitter.d.ts +0 -36
  189. package/dist/core/state/events.d.ts +0 -29
  190. package/dist/core/state/store.d.ts +0 -70
  191. package/dist/core/theme/index.d.ts +0 -3
  192. package/dist/core/theme/shape.d.ts +0 -7
  193. package/dist/core/theme/tokens.d.ts +48 -32
  194. package/dist/core/utils/background.d.ts +0 -29
  195. package/dist/core/utils/color.d.ts +0 -13
  196. package/dist/core/utils/index.d.ts +0 -11
  197. package/dist/core/utils/mobile.d.ts +0 -31
  198. package/dist/core/utils/object.d.ts +0 -11
  199. package/dist/core/utils/performance.d.ts +0 -70
  200. package/dist/core/utils/theme.d.ts +0 -36
  201. package/dist/core/utils/url.d.ts +0 -17
  202. package/dist/elements/adapter.d.ts +13 -62
  203. package/dist/elements/badge.d.ts +0 -17
  204. package/dist/elements/bottom-app-bar.d.ts +7 -17
  205. package/dist/elements/bottom-sheet.d.ts +9 -38
  206. package/dist/elements/button-group.d.ts +0 -31
  207. package/dist/elements/button.d.ts +0 -18
  208. package/dist/elements/card.d.ts +8 -24
  209. package/dist/elements/carousel.d.ts +5 -29
  210. package/dist/elements/checkbox.d.ts +5 -15
  211. package/dist/elements/chips.d.ts +0 -33
  212. package/dist/elements/css/badge.css +1 -1
  213. package/dist/elements/css/badge.js +1 -1
  214. package/dist/elements/css/navigation-rail.css +1 -1
  215. package/dist/elements/css/navigation-rail.js +1 -1
  216. package/dist/elements/datepicker.d.ts +4 -48
  217. package/dist/elements/define.d.ts +3 -161
  218. package/dist/elements/dialog.d.ts +8 -39
  219. package/dist/elements/divider.d.ts +0 -14
  220. package/dist/elements/drawer.d.ts +0 -35
  221. package/dist/elements/extended-fab.d.ts +6 -18
  222. package/dist/elements/fab-menu.d.ts +5 -30
  223. package/dist/elements/fab.d.ts +4 -17
  224. package/dist/elements/icon-button.d.ts +5 -26
  225. package/dist/elements/index.d.ts +0 -16
  226. package/dist/elements/list.d.ts +0 -34
  227. package/dist/elements/loading-indicator.d.ts +4 -13
  228. package/dist/elements/menu.d.ts +5 -51
  229. package/dist/elements/navigation-bar.d.ts +4 -29
  230. package/dist/elements/navigation-rail.d.ts +8 -49
  231. package/dist/elements/preupgrade/badge.css +2 -2
  232. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  233. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  234. package/dist/elements/preupgrade/button-group.css +1 -1
  235. package/dist/elements/preupgrade/button.css +1 -1
  236. package/dist/elements/preupgrade/card.css +1 -1
  237. package/dist/elements/preupgrade/carousel.css +1 -1
  238. package/dist/elements/preupgrade/checkbox.css +1 -1
  239. package/dist/elements/preupgrade/chips.css +1 -1
  240. package/dist/elements/preupgrade/datepicker.css +1 -1
  241. package/dist/elements/preupgrade/dialog.css +1 -1
  242. package/dist/elements/preupgrade/divider.css +1 -1
  243. package/dist/elements/preupgrade/drawer.css +1 -1
  244. package/dist/elements/preupgrade/extended-fab.css +1 -1
  245. package/dist/elements/preupgrade/fab-menu.css +1 -1
  246. package/dist/elements/preupgrade/fab.css +1 -1
  247. package/dist/elements/preupgrade/icon-button.css +1 -1
  248. package/dist/elements/preupgrade/list.css +1 -1
  249. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  250. package/dist/elements/preupgrade/menu.css +1 -1
  251. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  252. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  253. package/dist/elements/preupgrade/progress.css +1 -1
  254. package/dist/elements/preupgrade/radios.css +1 -1
  255. package/dist/elements/preupgrade/search.css +1 -1
  256. package/dist/elements/preupgrade/select.css +1 -1
  257. package/dist/elements/preupgrade/side-sheet.css +1 -1
  258. package/dist/elements/preupgrade/slider.css +1 -1
  259. package/dist/elements/preupgrade/snackbar.css +1 -1
  260. package/dist/elements/preupgrade/split-button.css +1 -1
  261. package/dist/elements/preupgrade/switch.css +1 -1
  262. package/dist/elements/preupgrade/tabs.css +1 -1
  263. package/dist/elements/preupgrade/text-field.css +1 -1
  264. package/dist/elements/preupgrade/timepicker.css +1 -1
  265. package/dist/elements/preupgrade/toolbar.css +1 -1
  266. package/dist/elements/preupgrade/tooltip.css +1 -1
  267. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  268. package/dist/elements/preupgrade.css +2 -2
  269. package/dist/elements/preupgrade.d.ts +0 -1
  270. package/dist/elements/preupgrade.js +1 -1
  271. package/dist/elements/progress.d.ts +0 -15
  272. package/dist/elements/radios.d.ts +0 -22
  273. package/dist/elements/search.d.ts +5 -53
  274. package/dist/elements/select.d.ts +0 -31
  275. package/dist/elements/side-sheet.d.ts +7 -29
  276. package/dist/elements/slider.d.ts +3 -22
  277. package/dist/elements/snackbar.d.ts +4 -28
  278. package/dist/elements/split-button.d.ts +0 -30
  279. package/dist/elements/styles.d.ts +0 -63
  280. package/dist/elements/switch.d.ts +5 -17
  281. package/dist/elements/tabs.d.ts +0 -22
  282. package/dist/elements/text-field.d.ts +4 -38
  283. package/dist/elements/timepicker.d.ts +4 -44
  284. package/dist/elements/toolbar.d.ts +8 -25
  285. package/dist/elements/tooltip.d.ts +4 -30
  286. package/dist/elements/top-app-bar.d.ts +7 -23
  287. package/dist/index.d.ts +0 -11
  288. package/dist/package.json +1 -1
  289. package/dist/react/create.d.ts +0 -42
  290. package/dist/react/index.d.ts +0 -6
  291. package/dist/react/jsx.d.ts +0 -13
  292. package/dist/solid/create.d.ts +0 -48
  293. package/dist/solid/index.d.ts +0 -6
  294. package/dist/solid/jsx.d.ts +0 -9
  295. package/dist/ssr/index.d.ts +0 -49
  296. package/dist/ssr/solid.d.ts +0 -4
  297. package/dist/ssr/svelte.d.ts +0 -4
  298. package/dist/ssr/vue.d.ts +0 -4
  299. package/dist/styles/badge.css +2 -2
  300. package/dist/styles/base.css +1 -1
  301. package/dist/styles/bottom-app-bar.css +1 -1
  302. package/dist/styles/bottom-sheet.css +1 -1
  303. package/dist/styles/button-group.css +1 -1
  304. package/dist/styles/button.css +1 -1
  305. package/dist/styles/card.css +1 -1
  306. package/dist/styles/carousel.css +1 -1
  307. package/dist/styles/checkbox.css +1 -1
  308. package/dist/styles/chips.css +1 -1
  309. package/dist/styles/contrast.css +1 -1
  310. package/dist/styles/datepicker.css +1 -1
  311. package/dist/styles/dialog.css +1 -1
  312. package/dist/styles/divider.css +1 -1
  313. package/dist/styles/drawer.css +1 -1
  314. package/dist/styles/extended-fab.css +1 -1
  315. package/dist/styles/fab-menu.css +1 -1
  316. package/dist/styles/fab.css +1 -1
  317. package/dist/styles/icon-button.css +1 -1
  318. package/dist/styles/list.css +1 -1
  319. package/dist/styles/loading-indicator.css +1 -1
  320. package/dist/styles/menu.css +1 -1
  321. package/dist/styles/navigation-bar.css +1 -1
  322. package/dist/styles/navigation-rail.css +2 -2
  323. package/dist/styles/progress.css +1 -1
  324. package/dist/styles/radios.css +1 -1
  325. package/dist/styles/search.css +1 -1
  326. package/dist/styles/select.css +1 -1
  327. package/dist/styles/side-sheet.css +1 -1
  328. package/dist/styles/slider.css +1 -1
  329. package/dist/styles/snackbar.css +1 -1
  330. package/dist/styles/split-button.css +1 -1
  331. package/dist/styles/switch.css +1 -1
  332. package/dist/styles/tabs.css +1 -1
  333. package/dist/styles/text-field.css +1 -1
  334. package/dist/styles/timepicker.css +1 -1
  335. package/dist/styles/toolbar.css +1 -1
  336. package/dist/styles/tooltip.css +1 -1
  337. package/dist/styles/top-app-bar.css +1 -1
  338. package/dist/styles/typography.css +1 -1
  339. package/dist/styles/utilities.css +1 -1
  340. package/dist/styles.css +2 -2
  341. package/dist/svelte/runtime.d.ts +8 -62
  342. package/dist/themes/autumn-contrast.css +1 -1
  343. package/dist/themes/autumn.css +1 -1
  344. package/dist/themes/baseline-contrast.css +1 -1
  345. package/dist/themes/baseline.css +1 -1
  346. package/dist/themes/brownbeige-contrast.css +1 -1
  347. package/dist/themes/brownbeige.css +1 -1
  348. package/dist/themes/content-contrast.css +1 -1
  349. package/dist/themes/content.css +1 -1
  350. package/dist/themes/desert-contrast.css +1 -1
  351. package/dist/themes/desert.css +1 -1
  352. package/dist/themes/expressive-contrast.css +1 -1
  353. package/dist/themes/expressive.css +1 -1
  354. package/dist/themes/fidelity-contrast.css +1 -1
  355. package/dist/themes/fidelity.css +1 -1
  356. package/dist/themes/forest-contrast.css +1 -1
  357. package/dist/themes/forest.css +1 -1
  358. package/dist/themes/fruit-salad-contrast.css +1 -1
  359. package/dist/themes/fruit-salad.css +1 -1
  360. package/dist/themes/highcontrast-contrast.css +1 -1
  361. package/dist/themes/highcontrast.css +1 -1
  362. package/dist/themes/monochrome-contrast.css +1 -1
  363. package/dist/themes/monochrome.css +1 -1
  364. package/dist/themes/neutral-contrast.css +1 -1
  365. package/dist/themes/neutral.css +1 -1
  366. package/dist/themes/ocean-contrast.css +1 -1
  367. package/dist/themes/ocean.css +1 -1
  368. package/dist/themes/rainbow-contrast.css +1 -1
  369. package/dist/themes/rainbow.css +1 -1
  370. package/dist/themes/sageivory-contrast.css +1 -1
  371. package/dist/themes/sageivory.css +1 -1
  372. package/dist/themes/spring-contrast.css +1 -1
  373. package/dist/themes/spring.css +1 -1
  374. package/dist/themes/summer-contrast.css +1 -1
  375. package/dist/themes/summer.css +1 -1
  376. package/dist/themes/sunset-contrast.css +1 -1
  377. package/dist/themes/sunset.css +1 -1
  378. package/dist/themes/tealcaramel-contrast.css +1 -1
  379. package/dist/themes/tealcaramel.css +1 -1
  380. package/dist/themes/vibrant-contrast.css +1 -1
  381. package/dist/themes/vibrant.css +1 -1
  382. package/dist/vue/create.d.ts +15 -58
  383. package/dist/vue/index.d.ts +0 -6
  384. package/package.json +1 -1
  385. package/src/styles/components/_badge.scss +75 -38
  386. package/src/styles/components/_navigation-rail.scss +9 -6
  387. package/src/styles/elements/_badge.scss +65 -4
  388. package/dist/components/badge/api.d.ts +0 -41
  389. package/dist/components/badge/config.d.ts +0 -631
  390. package/dist/components/badge/features.d.ts +0 -38
  391. package/dist/components/bottom-app-bar/config.d.ts +0 -16
  392. package/dist/components/bottom-sheet/api.d.ts +0 -44
  393. package/dist/components/bottom-sheet/config.d.ts +0 -547
  394. package/dist/components/bottom-sheet/features/drag.d.ts +0 -35
  395. package/dist/components/bottom-sheet/features/index.d.ts +0 -3
  396. package/dist/components/bottom-sheet/features/state.d.ts +0 -31
  397. package/dist/components/bottom-sheet/features/structure.d.ts +0 -26
  398. package/dist/components/button/api.d.ts +0 -68
  399. package/dist/components/button/config.d.ts +0 -594
  400. package/dist/components/button/features/progress.d.ts +0 -43
  401. package/dist/components/button/features/toggle.d.ts +0 -43
  402. package/dist/components/button-group/config.d.ts +0 -147
  403. package/dist/components/card/api.d.ts +0 -24
  404. package/dist/components/card/config.d.ts +0 -635
  405. package/dist/components/card/features.d.ts +0 -124
  406. package/dist/components/carousel/api.d.ts +0 -20
  407. package/dist/components/carousel/arrangement.d.ts +0 -23
  408. package/dist/components/carousel/config.d.ts +0 -540
  409. package/dist/components/carousel/features/index.d.ts +0 -2
  410. package/dist/components/carousel/features/scroll.d.ts +0 -20
  411. package/dist/components/carousel/features/slides.d.ts +0 -18
  412. package/dist/components/carousel/keylines.d.ts +0 -68
  413. package/dist/components/carousel/strategy.d.ts +0 -36
  414. package/dist/components/checkbox/api.d.ts +0 -7
  415. package/dist/components/checkbox/config.d.ts +0 -568
  416. package/dist/components/chips/api.d.ts +0 -62
  417. package/dist/components/chips/chip/chip.d.ts +0 -4
  418. package/dist/components/chips/chip/constants.d.ts +0 -38
  419. package/dist/components/chips/chip/index.d.ts +0 -1
  420. package/dist/components/chips/config.d.ts +0 -583
  421. package/dist/components/chips/features/chip-items.d.ts +0 -39
  422. package/dist/components/chips/features/container.d.ts +0 -75
  423. package/dist/components/chips/features/controller.d.ts +0 -61
  424. package/dist/components/chips/features/dom.d.ts +0 -24
  425. package/dist/components/chips/features/index.d.ts +0 -4
  426. package/dist/components/chips/schema.d.ts +0 -35
  427. package/dist/components/datepicker/api.d.ts +0 -7
  428. package/dist/components/datepicker/config.d.ts +0 -542
  429. package/dist/components/datepicker/render.d.ts +0 -3
  430. package/dist/components/datepicker/utils.d.ts +0 -84
  431. package/dist/components/dialog/api.d.ts +0 -66
  432. package/dist/components/dialog/config.d.ts +0 -583
  433. package/dist/components/dialog/features.d.ts +0 -42
  434. package/dist/components/divider/features.d.ts +0 -6
  435. package/dist/components/drawer/api.d.ts +0 -55
  436. package/dist/components/drawer/config.d.ts +0 -620
  437. package/dist/components/drawer/features/headline.d.ts +0 -27
  438. package/dist/components/drawer/features/index.d.ts +0 -3
  439. package/dist/components/drawer/features/items.d.ts +0 -32
  440. package/dist/components/drawer/features/state.d.ts +0 -22
  441. package/dist/components/extended-fab/api.d.ts +0 -96
  442. package/dist/components/extended-fab/config.d.ts +0 -600
  443. package/dist/components/fab/api.d.ts +0 -74
  444. package/dist/components/fab/config.d.ts +0 -596
  445. package/dist/components/fab-menu/config.d.ts +0 -11
  446. package/dist/components/fab-menu/stagger.d.ts +0 -10
  447. package/dist/components/icon-button/api.d.ts +0 -84
  448. package/dist/components/icon-button/config.d.ts +0 -624
  449. package/dist/components/icon-button/features/toggle.d.ts +0 -133
  450. package/dist/components/list/api.d.ts +0 -156
  451. package/dist/components/list/config.d.ts +0 -625
  452. package/dist/components/list/features/anatomy.d.ts +0 -6
  453. package/dist/components/list/features/index.d.ts +0 -2
  454. package/dist/components/list/features/renderer.d.ts +0 -8
  455. package/dist/components/list/features/selection.d.ts +0 -3
  456. package/dist/components/loading-indicator/api.d.ts +0 -14
  457. package/dist/components/loading-indicator/config.d.ts +0 -557
  458. package/dist/components/loading-indicator/features/motion.d.ts +0 -22
  459. package/dist/components/menu/api.d.ts +0 -63
  460. package/dist/components/menu/config.d.ts +0 -576
  461. package/dist/components/menu/features/controller.d.ts +0 -15
  462. package/dist/components/menu/features/index.d.ts +0 -5
  463. package/dist/components/menu/features/keyboard.d.ts +0 -23
  464. package/dist/components/menu/features/layer.d.ts +0 -15
  465. package/dist/components/menu/features/loader.d.ts +0 -35
  466. package/dist/components/menu/features/opener.d.ts +0 -16
  467. package/dist/components/menu/features/position.d.ts +0 -18
  468. package/dist/components/menu/features/registry.d.ts +0 -37
  469. package/dist/components/menu/features/submenu.d.ts +0 -28
  470. package/dist/components/menu/features/tasks.d.ts +0 -9
  471. package/dist/components/navigation-bar/config.d.ts +0 -2
  472. package/dist/components/navigation-rail/config.d.ts +0 -2
  473. package/dist/components/progress/api.d.ts +0 -81
  474. package/dist/components/progress/config.d.ts +0 -620
  475. package/dist/components/progress/features/canvas.d.ts +0 -60
  476. package/dist/components/progress/features/circular.d.ts +0 -19
  477. package/dist/components/progress/features/colors.d.ts +0 -17
  478. package/dist/components/progress/features/index.d.ts +0 -8
  479. package/dist/components/progress/features/linear.d.ts +0 -25
  480. package/dist/components/progress/features/motion.d.ts +0 -43
  481. package/dist/components/progress/features/resize-observer.d.ts +0 -5
  482. package/dist/components/progress/features/state.d.ts +0 -44
  483. package/dist/components/radios/api.d.ts +0 -37
  484. package/dist/components/radios/config.d.ts +0 -568
  485. package/dist/components/radios/radio.d.ts +0 -26
  486. package/dist/components/search/api.d.ts +0 -63
  487. package/dist/components/search/config.d.ts +0 -657
  488. package/dist/components/search/features/index.d.ts +0 -4
  489. package/dist/components/search/features/input.d.ts +0 -93
  490. package/dist/components/search/features/states.d.ts +0 -111
  491. package/dist/components/search/features/structure.d.ts +0 -16
  492. package/dist/components/search/features/suggestions.d.ts +0 -60
  493. package/dist/components/select/api.d.ts +0 -8
  494. package/dist/components/select/config.d.ts +0 -18
  495. package/dist/components/select/features.d.ts +0 -14
  496. package/dist/components/side-sheet/api.d.ts +0 -34
  497. package/dist/components/side-sheet/config.d.ts +0 -547
  498. package/dist/components/side-sheet/features/index.d.ts +0 -2
  499. package/dist/components/side-sheet/features/state.d.ts +0 -28
  500. package/dist/components/side-sheet/features/structure.d.ts +0 -21
  501. package/dist/components/slider/api.d.ts +0 -65
  502. package/dist/components/slider/config.d.ts +0 -605
  503. package/dist/components/slider/features/axis.d.ts +0 -42
  504. package/dist/components/slider/features/controller.d.ts +0 -528
  505. package/dist/components/slider/features/dom.d.ts +0 -22
  506. package/dist/components/slider/features/handlers.d.ts +0 -16
  507. package/dist/components/slider/features/index.d.ts +0 -5
  508. package/dist/components/slider/features/range.d.ts +0 -14
  509. package/dist/components/slider/features/states.d.ts +0 -76
  510. package/dist/components/slider/features/tracks.d.ts +0 -50
  511. package/dist/components/snackbar/api.d.ts +0 -7
  512. package/dist/components/snackbar/config.d.ts +0 -596
  513. package/dist/components/snackbar/features.d.ts +0 -26
  514. package/dist/components/snackbar/layer.d.ts +0 -23
  515. package/dist/components/snackbar/position.d.ts +0 -16
  516. package/dist/components/snackbar/queue.d.ts +0 -15
  517. package/dist/components/split-button/api.d.ts +0 -14
  518. package/dist/components/split-button/config.d.ts +0 -553
  519. package/dist/components/split-button/features/buttons.d.ts +0 -8
  520. package/dist/components/split-button/features/menu.d.ts +0 -10
  521. package/dist/components/switch/api.d.ts +0 -7
  522. package/dist/components/switch/config.d.ts +0 -558
  523. package/dist/components/switch/features.d.ts +0 -63
  524. package/dist/components/tabs/api.d.ts +0 -54
  525. package/dist/components/tabs/config.d.ts +0 -31
  526. package/dist/components/tabs/features.d.ts +0 -131
  527. package/dist/components/tabs/scroll-indicators.d.ts +0 -18
  528. package/dist/components/tabs/state.d.ts +0 -48
  529. package/dist/components/text-field/api.d.ts +0 -29
  530. package/dist/components/text-field/config.d.ts +0 -560
  531. package/dist/components/text-field/features/counter.d.ts +0 -29
  532. package/dist/components/text-field/features/density.d.ts +0 -28
  533. package/dist/components/text-field/features/error.d.ts +0 -55
  534. package/dist/components/text-field/features/field.d.ts +0 -37
  535. package/dist/components/text-field/features/index.d.ts +0 -20
  536. package/dist/components/text-field/features/leading-icon.d.ts +0 -68
  537. package/dist/components/text-field/features/placement.d.ts +0 -30
  538. package/dist/components/text-field/features/prefix-text.d.ts +0 -67
  539. package/dist/components/text-field/features/required.d.ts +0 -33
  540. package/dist/components/text-field/features/suffix-text.d.ts +0 -67
  541. package/dist/components/text-field/features/supporting-text.d.ts +0 -59
  542. package/dist/components/timepicker/api.d.ts +0 -26
  543. package/dist/components/timepicker/config.d.ts +0 -570
  544. package/dist/components/timepicker/dial.d.ts +0 -35
  545. package/dist/components/timepicker/render.d.ts +0 -9
  546. package/dist/components/timepicker/utils.d.ts +0 -55
  547. package/dist/components/toolbar/config.d.ts +0 -19
  548. package/dist/components/tooltip/api.d.ts +0 -18
  549. package/dist/components/tooltip/config.d.ts +0 -563
  550. package/dist/components/top-app-bar/config.d.ts +0 -16
  551. package/dist/core/compose/features/constants.d.ts +0 -8
  552. package/dist/core/dom/direction.d.ts +0 -16
  553. package/dist/core/dom/form-value.d.ts +0 -24
  554. package/dist/core/dom/utils.d.ts +0 -33
  555. package/dist/core/navigation/ripple.d.ts +0 -2
  556. package/dist/core/utils/attributes.d.ts +0 -29
  557. package/dist/core/utils/validate.d.ts +0 -73
  558. package/dist/core/utils/warn.d.ts +0 -16
  559. package/dist/elements/form-button.d.ts +0 -29
  560. package/dist/elements/lifecycle.d.ts +0 -4
  561. package/dist/elements/sheet.d.ts +0 -44
  562. package/dist/react/shadow.d.ts +0 -2
  563. package/dist/solid/shadow.d.ts +0 -3
  564. package/dist/vue/shadow.d.ts +0 -7
@@ -1,57 +1,16 @@
1
- /**
2
- * `<m-search>` with `<m-search-suggestion>` children: the search as a
3
- * form-associated custom element.
4
- *
5
- * Each `<m-search-suggestion>` declares one suggestion: `value`, its text (or
6
- * `label`), `icon` and `group` (a divider separates groups). The search reads
7
- * them into the factory's suggestions and redraws the list in place when they
8
- * change, in one pass per batch of changes: an app replacing them as the user
9
- * types gets one redraw, and none when they come back the same.
10
- *
11
- * The `value` attribute is the default query and the `value` property the
12
- * live one, as on a native input: the attribute moves the value until the
13
- * user or script changes it, and a form reset returns to it. The value is
14
- * submitted under the host's `name`.
15
- *
16
- * Events: `input` as the query changes (typing, and the clear button or
17
- * Escape emptying it), `change` when it is submitted (Enter), `select` when a
18
- * suggestion is chosen, `open` and `close` as the view opens and closes, and
19
- * `action` on a click of the trailing icon or the avatar. Enter on a
20
- * highlighted suggestion is the selection only.
21
- *
22
- * The open view is the factory's: in the top layer, docked (a popover over a
23
- * scrim) or full screen (a modal dialog), inside the element's shadow root.
24
- * `open` shows it and reflects its state; `show()` and `close()` are its
25
- * methods, as on `<m-dialog>`. `focus()` focuses the input, which opens the
26
- * view as a click does.
27
- *
28
- * `leading-icon`, `trailing-icon`, `avatar` and their labels have no setter
29
- * on the search: changing one recreates it, keeping the value.
30
- *
31
- * Parts: `search`, `surface`, `container`, `leading-icon`, `input`, `clear-button`, `trailing`,
32
- * `divider`, `content`, `suggestions`, `status`, among others.
33
- *
34
- * @module elements
35
- */
36
1
  import type { SearchComponent, SearchEvents } from "../components/search/types.js";
37
2
  import { type AttributeValue, type Config, type DefineOptions, type ElementAttributes, type ElementInstance } from "./define.js";
38
- /** The factory's events, and the element's own names for four of them. */
39
3
  export interface SearchElementEvents extends SearchEvents {
40
4
  change: SearchEvents["submit"];
41
5
  select: SearchEvents["suggestionSelect"];
42
6
  open: SearchEvents["expand"];
43
7
  close: SearchEvents["collapse"];
44
8
  }
45
- /** The search, with the element's events, methods and input. */
46
9
  export interface SearchElementComponent extends Omit<SearchComponent, "on" | "off"> {
47
- /** Subscribes by the element's event names (`open`, `select`…) as well as the factory's. */
48
10
  on: <K extends keyof SearchElementEvents>(event: K, handler: SearchElementEvents[K]) => SearchElementComponent;
49
11
  off: <K extends keyof SearchElementEvents>(event: K, handler: SearchElementEvents[K]) => SearchElementComponent;
50
- /** Opens the view. */
51
12
  show: () => SearchElementComponent;
52
- /** Closes the view. */
53
13
  close: () => SearchElementComponent;
54
- /** The combobox. */
55
14
  input: HTMLInputElement;
56
15
  }
57
16
  declare const searchSpec: {
@@ -107,12 +66,10 @@ declare const searchSpec: {
107
66
  config: string;
108
67
  update: (c: SearchElementComponent, v: AttributeValue) => undefined;
109
68
  };
110
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
111
69
  "leading-icon": {
112
70
  type: "string";
113
71
  config: string;
114
72
  };
115
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
116
73
  "trailing-icon": {
117
74
  type: "string";
118
75
  config: string;
@@ -121,7 +78,6 @@ declare const searchSpec: {
121
78
  type: "string";
122
79
  config: string;
123
80
  };
124
- /** Markup (HTML), not a person's name or an image URL. Not sanitized by default: see Markup and sanitizing. */
125
81
  avatar: {
126
82
  type: "string";
127
83
  config: string;
@@ -152,7 +108,11 @@ declare const searchSpec: {
152
108
  set: (c: SearchElementComponent, value: unknown) => void;
153
109
  };
154
110
  };
155
- methods: readonly ["show", "close", "focus"];
111
+ methods: readonly [
112
+ "show",
113
+ "close",
114
+ "focus"
115
+ ];
156
116
  model: "value";
157
117
  events: {
158
118
  input: {
@@ -198,12 +158,7 @@ declare const searchSpec: {
198
158
  };
199
159
  export declare const searchElement: import("./define.js").ElementDefinition<SearchElementComponent>;
200
160
  export type SearchSpec = typeof searchSpec;
201
- /** `<m-search>` as a ref or a query returns it. */
202
161
  export type SearchElement = ElementInstance<SearchSpec, SearchElementComponent>;
203
- /**
204
- * `<m-search-suggestion>` declares one suggestion and renders nothing. Its
205
- * text is the label unless `label` is set; `value` defaults to the label.
206
- */
207
162
  export declare const searchSuggestionDeclaration: {
208
163
  readonly name: "search-suggestion";
209
164
  readonly attributes: {
@@ -213,7 +168,6 @@ export declare const searchSuggestionDeclaration: {
213
168
  readonly label: {
214
169
  readonly type: "string";
215
170
  };
216
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
217
171
  readonly icon: {
218
172
  readonly type: "string";
219
173
  };
@@ -223,10 +177,8 @@ export declare const searchSuggestionDeclaration: {
223
177
  };
224
178
  };
225
179
  export type SearchSuggestionAttributes = ElementAttributes<typeof searchSuggestionDeclaration>;
226
- /** Registers `<m-search>` and `<m-search-suggestion>` (or with another prefix). */
227
180
  export declare const defineSearch: (options?: DefineOptions) => string;
228
181
  declare global {
229
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
230
182
  interface HTMLElementTagNameMap {
231
183
  "m-search": SearchElement;
232
184
  "m-search-suggestion": HTMLElement & SearchSuggestionAttributes;
@@ -1,26 +1,3 @@
1
- /**
2
- * `<m-select>` with `<m-select-option>` children: the select as a
3
- * form-associated custom element.
4
- *
5
- * Each `<m-select-option>` declares one option: `value`, its text (or
6
- * `label`), `disabled` and `icon`. The select reads them into the factory's
7
- * options and updates in place when they change; the children stay where the
8
- * framework put them.
9
- *
10
- * The `value` attribute is the default selection and the `value` property the
11
- * live one, as on a native select: the attribute moves the value until the
12
- * user or script changes it, and a form reset returns to it. Choosing an
13
- * option dispatches `change` with its value. The listbox opens in the top
14
- * layer (the factory's `layer: "top"`), inside the element's shadow root.
15
- *
16
- * `label` has no setter on the select: changing it recreates it, keeping the
17
- * value. The field is read-only, which takes it out of constraint validation:
18
- * the element reports `required` itself, as `valueMissing`.
19
- *
20
- * Parts: `select`, `text-field`, `field`, `label`, `input`, `trailing-icon`.
21
- *
22
- * @module elements
23
- */
24
1
  import type { SelectComponent } from "../components/select/types.js";
25
2
  import { type AttributeValue, type Config, type DefineOptions, type ElementAttributes, type ElementHost, type ElementInstance } from "./define.js";
26
3
  declare const selectSpec: {
@@ -107,12 +84,7 @@ declare const selectSpec: {
107
84
  };
108
85
  export declare const selectElement: import("./define.js").ElementDefinition<SelectComponent>;
109
86
  export type SelectSpec = typeof selectSpec;
110
- /** `<m-select>` as a ref or a query returns it. */
111
87
  export type SelectElement = ElementInstance<SelectSpec, SelectComponent>;
112
- /**
113
- * `<m-select-option>` declares one option and renders nothing. Its text is
114
- * the label unless `label` is set.
115
- */
116
88
  export declare const selectOptionDeclaration: {
117
89
  readonly name: "select-option";
118
90
  readonly attributes: {
@@ -122,7 +94,6 @@ export declare const selectOptionDeclaration: {
122
94
  readonly label: {
123
95
  readonly type: "string";
124
96
  };
125
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
126
97
  readonly icon: {
127
98
  readonly type: "string";
128
99
  };
@@ -132,10 +103,8 @@ export declare const selectOptionDeclaration: {
132
103
  };
133
104
  };
134
105
  export type SelectOptionAttributes = ElementAttributes<typeof selectOptionDeclaration>;
135
- /** Registers `<m-select>` and `<m-select-option>` (or with another prefix). */
136
106
  export declare const defineSelect: (options?: DefineOptions) => string;
137
107
  declare global {
138
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
139
108
  interface HTMLElementTagNameMap {
140
109
  "m-select": SelectElement;
141
110
  "m-select-option": HTMLElement & SelectOptionAttributes;
@@ -1,35 +1,13 @@
1
- /**
2
- * `<m-side-sheet>`: the side sheet as a custom element. Its regions are
3
- * slots: `headline` (the `headline` attribute is its fallback text), which
4
- * names the sheet, and the default slot, the content. The header's close
5
- * button is the factory's; `no-close-button` drops it. `position` is `start`
6
- * or `end` (the default), logical as on the factory, and `width` its width
7
- * in pixels (256 by default, up to 400).
8
- *
9
- * Standard by default, docked beside the page. `modal` makes it the modal
10
- * sheet in the factory's top layer (`layer: "top"`): a native `<dialog>` in
11
- * the element's shadow root, shown with `showModal()`, above every z-index,
12
- * the page outside inert, the scrim its `::backdrop`; Escape and a click on
13
- * the backdrop close it, unless `no-close-on-scrim-click` or
14
- * `no-close-on-escape` says otherwise.
15
- *
16
- * `open` shows it and reflects its state, as on `<dialog open>`. `show()` and
17
- * `close()` are its methods, and `open` and `close` are dispatched as it
18
- * opens and closes (not when the attribute is what changed).
19
- *
20
- * Parts: `side-sheet`, `container`, `header`, `title`, `close`, `content`.
21
- *
22
- * @module elements
23
- */
24
1
  import type { SideSheetComponent } from "../components/side-sheet/types.js";
25
2
  import { type DefineOptions, type ElementInstance } from "./define.js";
26
- /** The sheet with the `show()` the element names after `<dialog>`'s. */
27
3
  export interface SideSheetElementComponent extends SideSheetComponent {
28
4
  show: () => SideSheetComponent;
29
5
  }
30
6
  declare const sideSheetSpec: {
31
7
  name: string;
32
- slots: readonly ["headline"];
8
+ slots: readonly [
9
+ "headline"
10
+ ];
33
11
  create: (config: import("./define.js").Config) => SideSheetElementComponent;
34
12
  styles: string[];
35
13
  hostStyles: string;
@@ -72,7 +50,10 @@ declare const sideSheetSpec: {
72
50
  update: (c: SideSheetElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => void;
73
51
  };
74
52
  };
75
- methods: readonly ["show", "close"];
53
+ methods: readonly [
54
+ "show",
55
+ "close"
56
+ ];
76
57
  events: {
77
58
  open: {
78
59
  detail: () => null;
@@ -87,12 +68,9 @@ declare const sideSheetSpec: {
87
68
  };
88
69
  export declare const sideSheetElement: import("./define.js").ElementDefinition<SideSheetElementComponent>;
89
70
  export type SideSheetSpec = typeof sideSheetSpec;
90
- /** `<m-side-sheet>` as a ref or a query returns it. */
91
71
  export type SideSheetElement = ElementInstance<SideSheetSpec, SideSheetElementComponent>;
92
- /** Registers `<m-side-sheet>` (or `<prefix-side-sheet>`). */
93
72
  export declare const defineSideSheet: (options?: DefineOptions) => string;
94
73
  declare global {
95
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
96
74
  interface HTMLElementTagNameMap {
97
75
  "m-side-sheet": SideSheetElement;
98
76
  }
@@ -1,18 +1,3 @@
1
- /**
2
- * `<m-slider>`: the slider as a form-associated custom element.
3
- *
4
- * The `value` attribute is the default and the `value` property the live one,
5
- * as on a native range input: the attribute moves the value until the user or
6
- * script changes it. `range` adds a second handle, whose `second-value` and
7
- * `secondValue` work the same way. `input` fires while the
8
- * value moves and `change` when an interaction ends. `aria-label` names the
9
- * handles.
10
- *
11
- * Parts: `slider`, `container`, `track`, `handle`, `value`, `visual`, `segment`, `ticks`, `dot`,
12
- * `inset-icon`.
13
- *
14
- * @module elements
15
- */
16
1
  import type { SliderComponent } from "../components/slider/types.js";
17
2
  import { type DefineOptions, type ElementInstance } from "./define.js";
18
3
  declare const sliderSpec: {
@@ -95,7 +80,6 @@ declare const sliderSpec: {
95
80
  type: "string";
96
81
  config: string;
97
82
  };
98
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
99
83
  icon: {
100
84
  type: "string";
101
85
  config: string;
@@ -104,13 +88,11 @@ declare const sliderSpec: {
104
88
  type: "string";
105
89
  config: string;
106
90
  };
107
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. Shown at size M, L or XL. */
108
91
  "inset-icon": {
109
92
  type: "string";
110
93
  config: string;
111
94
  update: (c: SliderComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
112
95
  };
113
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. Replaces `inset-icon` while the value is at the minimum. */
114
96
  "inset-icon-at-min": {
115
97
  type: "string";
116
98
  config: string;
@@ -133,7 +115,9 @@ declare const sliderSpec: {
133
115
  };
134
116
  };
135
117
  model: "value";
136
- defaults: readonly ["secondValue"];
118
+ defaults: readonly [
119
+ "secondValue"
120
+ ];
137
121
  events: {
138
122
  input: {
139
123
  detail: (payload: unknown) => {
@@ -159,12 +143,9 @@ declare const sliderSpec: {
159
143
  };
160
144
  export declare const sliderElement: import("./define.js").ElementDefinition<SliderComponent>;
161
145
  export type SliderSpec = typeof sliderSpec;
162
- /** `<m-slider>` as a ref or a query returns it. */
163
146
  export type SliderElement = ElementInstance<SliderSpec, SliderComponent>;
164
- /** Registers `<m-slider>` (or `<prefix-slider>`). */
165
147
  export declare const defineSlider: (options?: DefineOptions) => string;
166
148
  declare global {
167
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
168
149
  interface HTMLElementTagNameMap {
169
150
  "m-slider": SliderElement;
170
151
  }
@@ -1,27 +1,3 @@
1
- /**
2
- * `<m-snackbar>`: a snackbar, in the top layer.
3
- *
4
- * The message is the `message` attribute, or the element's text when there
5
- * is none; it is read rather than slotted, since the snackbar may open inside
6
- * a modal dialog, away from the host. `action` is the action button's label,
7
- * `dismissible` adds the close icon, and `duration` is `short`, `long`,
8
- * `indefinite` or milliseconds (0 for indefinite). The snackbar opens with
9
- * `show()` or by setting `open`, and dispatches `open`, `action` and `close`
10
- * (once per close, its `detail.reason` saying why).
11
- *
12
- * Snackbars share the factory's queue, elements and factories alike: one
13
- * shows at a time, the others wait their turn in the order they were shown.
14
- * `open` is true from `show()` on, while it waits too; the `open` event comes
15
- * when it is on screen. `queue-behavior="replace"` dismisses the one on screen
16
- * (its `close` gives `reason: "queue"`) and drops the waiting ones instead.
17
- *
18
- * The surface stays in the element's shadow root and opens in the top layer
19
- * (`layer: "top"`), above modal dialogs.
20
- *
21
- * Parts: `snackbar`, `text`.
22
- *
23
- * @module elements
24
- */
25
1
  import type { SnackbarComponent } from "../components/snackbar/types.js";
26
2
  import { type DefineOptions, type ElementInstance } from "./define.js";
27
3
  declare const snackbarSpec: {
@@ -68,7 +44,10 @@ declare const snackbarSpec: {
68
44
  set: (c: SnackbarComponent, v: unknown) => undefined;
69
45
  };
70
46
  };
71
- methods: readonly ["show", "hide"];
47
+ methods: readonly [
48
+ "show",
49
+ "hide"
50
+ ];
72
51
  events: {
73
52
  open: {
74
53
  detail: () => null;
@@ -94,12 +73,9 @@ declare const snackbarSpec: {
94
73
  };
95
74
  export declare const snackbarElement: import("./define.js").ElementDefinition<SnackbarComponent>;
96
75
  export type SnackbarSpec = typeof snackbarSpec;
97
- /** `<m-snackbar>` as a ref or a query returns it. */
98
76
  export type SnackbarElement = ElementInstance<SnackbarSpec, SnackbarComponent>;
99
- /** Registers `<m-snackbar>` (or `<prefix-snackbar>`). */
100
77
  export declare const defineSnackbar: (options?: DefineOptions) => string;
101
78
  declare global {
102
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
103
79
  interface HTMLElementTagNameMap {
104
80
  "m-snackbar": SnackbarElement;
105
81
  }
@@ -1,33 +1,7 @@
1
- /**
2
- * `<m-split-button>` with `<m-menu-item>` children.
3
- *
4
- * The element's text (or `label`) is the leading button's label, and each
5
- * `<m-menu-item>` child declares one item of the menu the trailing button
6
- * opens, as in `<m-menu>`. The items are the factory's own menu items, so the
7
- * menu item declaration is shared rather than a split-button one. The menu
8
- * opens in the top layer (the factory's `layer: "top"`), inside the element's
9
- * shadow root.
10
- *
11
- * `click` is the native one, for the leading action only: a click on the
12
- * trailing button or in the menu stops at the shadow root. `open` and `close`
13
- * are dispatched as the menu opens and closes, and `select` with the item's
14
- * value when one is chosen.
15
- *
16
- * The factory creates its menu only when it has items: going from no items
17
- * to some, or back, recreates it. `variant`, `size`, `trailing-label` and
18
- * `group-label` have no setter and recreate it too.
19
- *
20
- * Parts: `split-button`, `button`, `leading`, `trailing`, `text`, `icon`, `chevron`, `ripple`.
21
- *
22
- * @module elements
23
- */
24
1
  import type { SplitButtonComponent, SplitButtonEvent, SplitButtonEventType } from "../components/split-button/types.js";
25
2
  import { type Config, type DefineOptions, type ElementInstance } from "./define.js";
26
- /** The factory's events, and the element's own names for two of them. */
27
3
  export type SplitButtonElementEventType = SplitButtonEventType | "open" | "close";
28
- /** The split button, with the element's events. */
29
4
  export interface SplitButtonElementComponent extends Omit<SplitButtonComponent, "on" | "off"> {
30
- /** Subscribes by the element's event names (`open`, `close`) as well as the factory's. */
31
5
  on: (event: SplitButtonElementEventType, handler: (event: SplitButtonEvent) => void) => SplitButtonElementComponent;
32
6
  off: (event: SplitButtonElementEventType, handler: (event: SplitButtonEvent) => void) => SplitButtonElementComponent;
33
7
  }
@@ -42,7 +16,6 @@ declare const splitButtonSpec: {
42
16
  type: "string";
43
17
  update: (c: SplitButtonElementComponent, _v: import("./define.js").AttributeValue, host: HTMLElement) => undefined;
44
18
  };
45
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
46
19
  icon: {
47
20
  type: "string";
48
21
  config: string;
@@ -96,12 +69,9 @@ declare const splitButtonSpec: {
96
69
  };
97
70
  export declare const splitButtonElement: import("./define.js").ElementDefinition<SplitButtonElementComponent>;
98
71
  export type SplitButtonSpec = typeof splitButtonSpec;
99
- /** `<m-split-button>` as a ref or a query returns it. */
100
72
  export type SplitButtonElement = ElementInstance<SplitButtonSpec, SplitButtonElementComponent>;
101
- /** Registers `<m-split-button>` and `<m-menu-item>` (or with another prefix). */
102
73
  export declare const defineSplitButton: (options?: DefineOptions) => string;
103
74
  declare global {
104
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
105
75
  interface HTMLElementTagNameMap {
106
76
  "m-split-button": SplitButtonElement;
107
77
  }
@@ -1,73 +1,10 @@
1
- /**
2
- * Stylesheets for the shadow roots of the elements.
3
- *
4
- * Each element adopts the CSS of its component and the component's style
5
- * dependencies, the same entries the selective stylesheets are built from
6
- * (`scripts/style-manifest.ts`). One sheet per entry per page, shared by every
7
- * instance.
8
- *
9
- * @module elements
10
- */
11
- /** The tag prefix: `<m-switch>`. The pre-upgrade CSS is built for it. */
12
1
  export declare const DEFAULT_PREFIX = "m";
13
- /** Internal registry access; preserves application registrations and overrides. */
14
2
  export declare const styleText: (name: string) => string | undefined;
15
- /** Identifies only fallback nodes inserted by applyStyles, never authored styles. */
16
3
  export declare const isFallbackStyle: (node: Node) => boolean;
17
- /**
18
- * Registers the CSS text of style entries, keyed as in `componentStyles`.
19
- * Must run before the elements that use them are created.
20
- *
21
- * @experimental The element authoring API (`defineElement`, `ElementSpec`,
22
- * `registerStyles`, `hasStyles`, `SHADOW_BASE_STYLES`) is outside semantic
23
- * versioning in 3.x: it may change in a minor release. The elements the
24
- * library defines, and their attributes, properties and events, are not.
25
- */
26
4
  export declare const registerStyles: (css: Record<string, string>) => void;
27
- /**
28
- * Whether CSS is registered under a name.
29
- *
30
- * @experimental The element authoring API (`defineElement`, `ElementSpec`,
31
- * `registerStyles`, `hasStyles`, `SHADOW_BASE_STYLES`) is outside semantic
32
- * versioning in 3.x: it may change in a minor release. The elements the
33
- * library defines, and their attributes, properties and events, are not.
34
- */
35
5
  export declare const hasStyles: (name: string) => boolean;
36
- /**
37
- * On a host the server rendered with a declarative shadow root.
38
- * The `data-mtrl-*` namespace is the library's own: this attribute, and the
39
- * elements' `marker` reflections (define.ts), which no component or page
40
- * writes. Component `data-*` names (`data-id`, `data-density`, `data-theme`)
41
- * are that component's own state, and a page's `data-ssr` must not be this
42
- * contract. Inert after upgrade, because the rollback rule is `:not(:defined)`.
43
- */
44
6
  export declare const RENDERED_HOST_ATTRIBUTE = "data-mtrl-ssr";
45
- /**
46
- * Last rule of every pre-upgrade sheet, inside `mtrl.preupgrade`.
47
- * `:not(#\0)` is an id selector (specificity 1,0,0) that matches every element,
48
- * so each selector outranks every pre-upgrade selector of the same subject
49
- * (the host, its `::before` and `::after`, and a direct child), none of which
50
- * has an id. The child subject is `:defined` (specificity 1,3,0). Every
51
- * built-in element is defined, so a slotted `div` or `span` is rolled back.
52
- * An undefined custom element is not: a carousel, a FAB menu, or a menu that
53
- * opted out keeps its own pre-upgrade rule. A rendered mtrl child carries
54
- * this attribute and is covered by the host selector. The deepest pre-upgrade
55
- * subject is a direct child, including a following sibling of one (`> * + *`);
56
- * none styles a grandchild or a child's pseudo-element. `all` does not reset
57
- * custom properties; the element rules set none. Not tag-specific, so
58
- * retagging for another prefix leaves it as it is.
59
- */
60
7
  export declare const preupgradeRollback: () => string;
61
- /**
62
- * Pre-upgrade CSS, built for the default prefix, for another one: every tag
63
- * selector `m-*` becomes `<prefix>-*`. The rules name tags only in selectors
64
- * (`m-tabs:not(:defined)>*`), and no value starts a word with `m-`.
65
- */
66
8
  export declare const retagPreupgrade: (css: string, prefix: string) => string;
67
- /** The rules as one layered stylesheet, for each prefix. The rollback is once, after them. */
68
9
  export declare const preupgradeSheet: (css: string, prefixes?: Iterable<string>) => string;
69
- /**
70
- * Applies the registered entries to a shadow root, in the given order.
71
- * Falls back to `<style>` elements where constructable stylesheets are missing.
72
- */
73
10
  export declare const applyStyles: (root: ShadowRoot, names: readonly string[]) => void;
@@ -1,15 +1,3 @@
1
- /**
2
- * `<m-switch>`: the switch as a form-associated custom element.
3
- *
4
- * The `checked` attribute is the default state and the `checked` property the
5
- * live one, as on a native checkbox: the attribute moves the state until the
6
- * user or script changes it. Children are the label.
7
- *
8
- * Parts: `switch`, `container`, `content`, `label`, `helper`, `input`, `track`, `thumb`,
9
- * `thumb-icon`.
10
- *
11
- * @module elements
12
- */
13
1
  import type { SwitchComponent } from "../components/switch/types.js";
14
2
  import { type DefineOptions, type ElementInstance } from "./define.js";
15
3
  declare const switchSpec: {
@@ -37,7 +25,6 @@ declare const switchSpec: {
37
25
  config: string;
38
26
  update: (c: SwitchComponent, v: import("./define.js").AttributeValue) => undefined;
39
27
  };
40
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
41
28
  icon: {
42
29
  type: "string";
43
30
  config: string;
@@ -60,7 +47,11 @@ declare const switchSpec: {
60
47
  config: string;
61
48
  };
62
49
  };
63
- methods: readonly ["toggle", "check", "uncheck"];
50
+ methods: readonly [
51
+ "toggle",
52
+ "check",
53
+ "uncheck"
54
+ ];
64
55
  model: "checked";
65
56
  events: {
66
57
  change: {
@@ -88,12 +79,9 @@ declare const switchSpec: {
88
79
  };
89
80
  export declare const switchElement: import("./define.js").ElementDefinition<SwitchComponent>;
90
81
  export type SwitchSpec = typeof switchSpec;
91
- /** `<m-switch>` as a ref or a query returns it. */
92
82
  export type SwitchElement = ElementInstance<SwitchSpec, SwitchComponent>;
93
- /** Registers `<m-switch>` (or `<prefix-switch>`). */
94
83
  export declare const defineSwitch: (options?: DefineOptions) => string;
95
84
  declare global {
96
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
97
85
  interface HTMLElementTagNameMap {
98
86
  "m-switch": SwitchElement;
99
87
  }
@@ -1,17 +1,3 @@
1
- /**
2
- * `<m-tabs>` with `<m-tab>` children.
3
- *
4
- * Each `<m-tab>` declares one tab (`value`, `icon`, `badge`, `disabled`, and its
5
- * text as content). The tabs element reads them into the factory's config and
6
- * rebuilds when they change; the children stay where the framework put them.
7
- * `value` on `<m-tabs>` is the default selection, which moves the live one
8
- * until the user or script changes it; the `value` property is the live
9
- * selection.
10
- *
11
- * Parts: `tabs`, `scroll`, `tab`, `button`, `icon`, `text`, `ripple`, `indicator`, `divider`.
12
- *
13
- * @module elements
14
- */
15
1
  import type { TabsComponent } from "../components/tabs/types.js";
16
2
  import { type Config, type DefineOptions, type ElementAttributes, type ElementInstance } from "./define.js";
17
3
  declare const tabsSpec: {
@@ -47,12 +33,7 @@ declare const tabsSpec: {
47
33
  };
48
34
  export declare const tabsElement: import("./define.js").ElementDefinition<TabsComponent>;
49
35
  export type TabsSpec = typeof tabsSpec;
50
- /** `<m-tabs>` as a ref or a query returns it. */
51
36
  export type TabsElement = ElementInstance<TabsSpec, TabsComponent>;
52
- /**
53
- * `<m-tab>` declares one tab and renders nothing. Its text content is the
54
- * label unless `label` is set.
55
- */
56
37
  export declare const tabDeclaration: {
57
38
  readonly name: "tab";
58
39
  readonly attributes: {
@@ -62,7 +43,6 @@ export declare const tabDeclaration: {
62
43
  readonly label: {
63
44
  readonly type: "string";
64
45
  };
65
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
66
46
  readonly icon: {
67
47
  readonly type: "string";
68
48
  };
@@ -75,10 +55,8 @@ export declare const tabDeclaration: {
75
55
  };
76
56
  };
77
57
  export type TabAttributes = ElementAttributes<typeof tabDeclaration>;
78
- /** Registers `<m-tabs>` and `<m-tab>` (or with another prefix). */
79
58
  export declare const defineTabs: (options?: DefineOptions) => string;
80
59
  declare global {
81
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
82
60
  interface HTMLElementTagNameMap {
83
61
  "m-tabs": TabsElement;
84
62
  "m-tab": HTMLElement & TabAttributes;
@@ -1,33 +1,6 @@
1
- /**
2
- * `<m-text-field>`: the text field as a form-associated custom element.
3
- *
4
- * The `value` attribute is the default value and the `value` property the
5
- * live one, as on a native input: the attribute moves the value until the
6
- * user or script changes it. The `label` attribute is the floating
7
- * label, which the factory renders; there is no slot. The `trailing-icon`
8
- * attribute is the trailing icon's markup and `trailing-icon-label` its
9
- * button's accessible name: without the label the icon is decorative.
10
- *
11
- * Changing `label` or `type` recreates the field and keeps the value.
12
- * Changing `trailing-icon-label` updates the existing icon in place, so the
13
- * button, the input and focus stay. A field created without a label has no
14
- * label element to update, and `type="multiline"` swaps the input for a
15
- * textarea.
16
- *
17
- * A click, Enter or Space on the trailing icon button dispatches `trailing`
18
- * from the host, with the factory's `{ value, event }`, bubbling and composed.
19
- *
20
- * Parts: `text-field`, `field`, `label`, `input`, `leading-icon`, `trailing-icon`, `prefix`,
21
- * `suffix`, `supporting`, `helper`, `counter`, `outline`, `outline-leading`, `outline-notch`,
22
- * `outline-trailing`.
23
- *
24
- * @module elements
25
- */
26
1
  import type { TextFieldComponent } from "../components/text-field/types.js";
27
2
  import { type AttributeValue, type DefineOptions, type ElementInstance } from "./define.js";
28
- /** The text field, with the methods the element adds to it. */
29
3
  export type TextFieldElementComponent = TextFieldComponent & {
30
- /** Selects the field's text. */
31
4
  select: () => void;
32
5
  };
33
6
  declare const textFieldSpec: {
@@ -79,23 +52,16 @@ declare const textFieldSpec: {
79
52
  config: string;
80
53
  update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
81
54
  };
82
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
83
55
  "leading-icon": {
84
56
  type: "string";
85
57
  config: string;
86
58
  update: (c: TextFieldElementComponent, v: AttributeValue) => undefined;
87
59
  };
88
- /** Markup (HTML). Not sanitized by default: see Markup and sanitizing. */
89
60
  "trailing-icon": {
90
61
  type: "string";
91
62
  config: string;
92
63
  update: (c: TextFieldElementComponent, v: AttributeValue, host: HTMLElement) => undefined;
93
64
  };
94
- /**
95
- * The trailing icon button's accessible name. With it the icon is a button
96
- * that emits `trailing`; without it, or with an empty value, the icon is
97
- * decorative. A change updates the existing icon through the factory setter.
98
- */
99
65
  "trailing-icon-label": {
100
66
  type: "string";
101
67
  config: string;
@@ -148,7 +114,10 @@ declare const textFieldSpec: {
148
114
  set: (c: TextFieldElementComponent, v: unknown) => undefined;
149
115
  };
150
116
  };
151
- methods: readonly ["select", "setError"];
117
+ methods: readonly [
118
+ "select",
119
+ "setError"
120
+ ];
152
121
  model: "value";
153
122
  events: {
154
123
  input: {
@@ -182,12 +151,9 @@ declare const textFieldSpec: {
182
151
  };
183
152
  export declare const textFieldElement: import("./define.js").ElementDefinition<TextFieldElementComponent>;
184
153
  export type TextFieldSpec = typeof textFieldSpec;
185
- /** `<m-text-field>` as a ref or a query returns it. */
186
154
  export type TextFieldElement = ElementInstance<TextFieldSpec, TextFieldElementComponent>;
187
- /** Registers `<m-text-field>` (or `<prefix-text-field>`). */
188
155
  export declare const defineTextField: (options?: DefineOptions) => string;
189
156
  declare global {
190
- /** `document.querySelector("m-…")` and `createElement` return the element's type (the default prefix). */
191
157
  interface HTMLElementTagNameMap {
192
158
  "m-text-field": TextFieldElement;
193
159
  }