material 3.9.0 → 3.10.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 (569) hide show
  1. package/README.md +5 -5
  2. package/dist/components/badge/index.d.ts +167 -3
  3. package/dist/components/bottom-app-bar/index.d.ts +141 -4
  4. package/dist/components/bottom-sheet/index.d.ts +114 -2
  5. package/dist/components/button/index.d.ts +10 -5
  6. package/dist/components/button-group/button-group.js +1 -0
  7. package/dist/components/button-group/config.js +9 -6
  8. package/dist/components/button-group/index.d.ts +250 -6
  9. package/dist/components/card/api.js +19 -0
  10. package/dist/components/card/index.d.ts +326 -5
  11. package/dist/components/carousel/features/slides.js +17 -7
  12. package/dist/components/carousel/index.d.ts +102 -3
  13. package/dist/components/checkbox/index.d.ts +217 -5
  14. package/dist/components/chips/chip/chip.js +4 -3
  15. package/dist/components/chips/index.d.ts +343 -3
  16. package/dist/components/datepicker/datepicker.js +62 -84
  17. package/dist/components/datepicker/index.d.ts +313 -2
  18. package/dist/components/datepicker/render.js +22 -18
  19. package/dist/components/datepicker/utils.js +66 -111
  20. package/dist/components/dialog/features.js +1 -1
  21. package/dist/components/dialog/index.d.ts +333 -3
  22. package/dist/components/divider/index.d.ts +99 -3
  23. package/dist/components/drawer/features/items.js +10 -2
  24. package/dist/components/drawer/index.d.ts +196 -3
  25. package/dist/components/extended-fab/index.d.ts +224 -2
  26. package/dist/components/fab/index.d.ts +183 -2
  27. package/dist/components/fab-menu/index.d.ts +106 -6
  28. package/dist/components/icon-button/index.d.ts +11 -4
  29. package/dist/components/list/features/anatomy.js +25 -6
  30. package/dist/components/list/features/selection.js +30 -2
  31. package/dist/components/list/index.d.ts +299 -6
  32. package/dist/components/loading-indicator/index.d.ts +94 -3
  33. package/dist/components/menu/features/controller.js +2 -0
  34. package/dist/components/menu/index.d.ts +10 -6
  35. package/dist/components/menu/types.d.ts +5 -0
  36. package/dist/components/navigation-bar/index.d.ts +70 -2
  37. package/dist/components/navigation-rail/index.d.ts +98 -2
  38. package/dist/components/progress/index.d.ts +9 -2
  39. package/dist/components/radios/index.d.ts +158 -3
  40. package/dist/components/search/features/states.js +3 -3
  41. package/dist/components/search/features/structure.js +24 -4
  42. package/dist/components/search/features/suggestions.js +4 -0
  43. package/dist/components/search/index.d.ts +255 -2
  44. package/dist/components/select/index.d.ts +252 -6
  45. package/dist/components/side-sheet/index.d.ts +104 -2
  46. package/dist/components/slider/index.d.ts +236 -2
  47. package/dist/components/snackbar/api.js +26 -0
  48. package/dist/components/snackbar/constants.d.ts +4 -0
  49. package/dist/components/snackbar/constants.js +3 -1
  50. package/dist/components/snackbar/index.d.ts +215 -4
  51. package/dist/components/split-button/index.d.ts +10 -3
  52. package/dist/components/switch/index.d.ts +190 -3
  53. package/dist/components/tabs/index.d.ts +476 -12
  54. package/dist/components/tabs/index.js +1 -1
  55. package/dist/components/tabs/responsive-legacy.js +65 -0
  56. package/dist/components/tabs/responsive.d.ts +7 -32
  57. package/dist/components/tabs/responsive.js +4 -63
  58. package/dist/components/tabs/tabs.js +1 -0
  59. package/dist/components/text-field/config.js +3 -4
  60. package/dist/components/text-field/features/field.js +61 -0
  61. package/dist/components/text-field/features/leading-icon.js +12 -45
  62. package/dist/components/text-field/features/prefix-text.js +6 -40
  63. package/dist/components/text-field/features/suffix-text.js +6 -40
  64. package/dist/components/text-field/index.d.ts +345 -3
  65. package/dist/components/timepicker/constants.d.ts +4 -4
  66. package/dist/components/timepicker/constants.js +2 -2
  67. package/dist/components/timepicker/index.d.ts +279 -5
  68. package/dist/components/timepicker/render.js +4 -1
  69. package/dist/components/toolbar/index.d.ts +145 -6
  70. package/dist/components/tooltip/index.d.ts +155 -3
  71. package/dist/components/top-app-bar/index.d.ts +92 -5
  72. package/dist/core/canvas/index.d.ts +172 -5
  73. package/dist/core/compose/features/icon-opt-in.js +5 -0
  74. package/dist/core/compose/features/icon-slot.js +100 -0
  75. package/dist/core/compose/features/textinput.js +2 -0
  76. package/dist/core/compose/features/track.js +4 -0
  77. package/dist/core/compose/index.d.ts +744 -8
  78. package/dist/core/dom/index.d.ts +245 -12
  79. package/dist/core/index.d.ts +93 -14
  80. package/dist/core/shapes/index.d.ts +286 -6
  81. package/dist/core/state/index.d.ts +98 -5
  82. package/dist/core/theme/index.d.ts +80 -4
  83. package/dist/core/utils/index.d.ts +98 -9
  84. package/dist/elements/css/bottom-sheet.css +1 -1
  85. package/dist/elements/css/button-group.css +1 -1
  86. package/dist/elements/css/button.css +1 -1
  87. package/dist/elements/css/datepicker.css +1 -1
  88. package/dist/elements/css/dialog.css +1 -1
  89. package/dist/elements/css/drawer.css +1 -1
  90. package/dist/elements/css/icon-button.css +1 -1
  91. package/dist/elements/css/list.css +1 -1
  92. package/dist/elements/css/menu.css +1 -1
  93. package/dist/elements/css/side-sheet.css +1 -1
  94. package/dist/elements/css/snackbar.css +1 -1
  95. package/dist/elements/css/text-field.css +1 -1
  96. package/dist/elements/css/timepicker.css +1 -1
  97. package/dist/elements/css/toolbar.css +1 -1
  98. package/dist/elements/datepicker.js +1 -0
  99. package/dist/elements/define.js +12 -1
  100. package/dist/elements/drawer.js +2 -0
  101. package/dist/elements/index.d.ts +3974 -107
  102. package/dist/elements/preupgrade/badge.css +1 -1
  103. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  104. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  105. package/dist/elements/preupgrade/button-group.css +2 -2
  106. package/dist/elements/preupgrade/button.css +2 -2
  107. package/dist/elements/preupgrade/card.css +1 -1
  108. package/dist/elements/preupgrade/carousel.css +1 -1
  109. package/dist/elements/preupgrade/checkbox.css +1 -1
  110. package/dist/elements/preupgrade/chips.css +1 -1
  111. package/dist/elements/preupgrade/datepicker.css +1 -1
  112. package/dist/elements/preupgrade/dialog.css +1 -1
  113. package/dist/elements/preupgrade/divider.css +1 -1
  114. package/dist/elements/preupgrade/drawer.css +2 -2
  115. package/dist/elements/preupgrade/extended-fab.css +1 -1
  116. package/dist/elements/preupgrade/fab-menu.css +1 -1
  117. package/dist/elements/preupgrade/fab.css +1 -1
  118. package/dist/elements/preupgrade/icon-button.css +2 -2
  119. package/dist/elements/preupgrade/list.css +2 -2
  120. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  121. package/dist/elements/preupgrade/menu.css +1 -1
  122. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  123. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  124. package/dist/elements/preupgrade/progress.css +1 -1
  125. package/dist/elements/preupgrade/radios.css +1 -1
  126. package/dist/elements/preupgrade/search.css +1 -1
  127. package/dist/elements/preupgrade/select.css +2 -2
  128. package/dist/elements/preupgrade/side-sheet.css +1 -1
  129. package/dist/elements/preupgrade/slider.css +1 -1
  130. package/dist/elements/preupgrade/snackbar.css +1 -1
  131. package/dist/elements/preupgrade/split-button.css +1 -1
  132. package/dist/elements/preupgrade/switch.css +1 -1
  133. package/dist/elements/preupgrade/tabs.css +1 -1
  134. package/dist/elements/preupgrade/text-field.css +2 -2
  135. package/dist/elements/preupgrade/timepicker.css +1 -1
  136. package/dist/elements/preupgrade/toolbar.css +1 -1
  137. package/dist/elements/preupgrade/tooltip.css +1 -1
  138. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  139. package/dist/elements/preupgrade.css +2 -2
  140. package/dist/elements/snackbar.js +2 -0
  141. package/dist/elements/styles.js +15 -15
  142. package/dist/elements/text-field.js +2 -0
  143. package/dist/index.d.ts +78 -4
  144. package/dist/react/index.d.ts +106 -52
  145. package/dist/react/jsx.d.ts +49 -49
  146. package/dist/solid/index.d.ts +106 -52
  147. package/dist/solid/jsx.d.ts +51 -50
  148. package/dist/styles/badge.css +1 -1
  149. package/dist/styles/base-lite.css +2 -2
  150. package/dist/styles/base.css +2 -2
  151. package/dist/styles/bottom-app-bar.css +1 -1
  152. package/dist/styles/bottom-sheet.css +2 -2
  153. package/dist/styles/button-group.css +2 -2
  154. package/dist/styles/button.css +2 -2
  155. package/dist/styles/card.css +1 -1
  156. package/dist/styles/carousel.css +1 -1
  157. package/dist/styles/checkbox.css +1 -1
  158. package/dist/styles/chips.css +1 -1
  159. package/dist/styles/contrast.css +1 -1
  160. package/dist/styles/datepicker.css +2 -2
  161. package/dist/styles/dialog.css +2 -2
  162. package/dist/styles/divider.css +1 -1
  163. package/dist/styles/drawer.css +2 -2
  164. package/dist/styles/extended-fab.css +1 -1
  165. package/dist/styles/fab-menu.css +1 -1
  166. package/dist/styles/fab.css +1 -1
  167. package/dist/styles/icon-button.css +2 -2
  168. package/dist/styles/list.css +2 -2
  169. package/dist/styles/loading-indicator.css +1 -1
  170. package/dist/styles/menu.css +2 -2
  171. package/dist/styles/navigation-bar.css +1 -1
  172. package/dist/styles/navigation-rail.css +1 -1
  173. package/dist/styles/progress.css +1 -1
  174. package/dist/styles/radios.css +1 -1
  175. package/dist/styles/search.css +1 -1
  176. package/dist/styles/select.css +1 -1
  177. package/dist/styles/side-sheet.css +2 -2
  178. package/dist/styles/slider.css +1 -1
  179. package/dist/styles/snackbar.css +2 -2
  180. package/dist/styles/split-button.css +1 -1
  181. package/dist/styles/switch.css +1 -1
  182. package/dist/styles/tabs.css +1 -1
  183. package/dist/styles/text-field.css +2 -2
  184. package/dist/styles/timepicker.css +2 -2
  185. package/dist/styles/toolbar.css +2 -2
  186. package/dist/styles/tooltip.css +1 -1
  187. package/dist/styles/top-app-bar.css +1 -1
  188. package/dist/styles/typography.css +1 -1
  189. package/dist/styles/utilities.css +1 -1
  190. package/dist/styles.css +2 -2
  191. package/dist/themes/autumn-contrast.css +1 -1
  192. package/dist/themes/autumn.css +1 -1
  193. package/dist/themes/baseline-contrast.css +1 -1
  194. package/dist/themes/baseline.css +1 -1
  195. package/dist/themes/brownbeige-contrast.css +1 -1
  196. package/dist/themes/brownbeige.css +1 -1
  197. package/dist/themes/content-contrast.css +1 -1
  198. package/dist/themes/content.css +1 -1
  199. package/dist/themes/desert-contrast.css +1 -1
  200. package/dist/themes/desert.css +1 -1
  201. package/dist/themes/expressive-contrast.css +1 -1
  202. package/dist/themes/expressive.css +1 -1
  203. package/dist/themes/fidelity-contrast.css +1 -1
  204. package/dist/themes/fidelity.css +1 -1
  205. package/dist/themes/forest-contrast.css +1 -1
  206. package/dist/themes/forest.css +1 -1
  207. package/dist/themes/fruit-salad-contrast.css +1 -1
  208. package/dist/themes/fruit-salad.css +1 -1
  209. package/dist/themes/highcontrast-contrast.css +1 -1
  210. package/dist/themes/highcontrast.css +1 -1
  211. package/dist/themes/monochrome-contrast.css +1 -1
  212. package/dist/themes/monochrome.css +1 -1
  213. package/dist/themes/neutral-contrast.css +1 -1
  214. package/dist/themes/neutral.css +1 -1
  215. package/dist/themes/ocean-contrast.css +1 -1
  216. package/dist/themes/ocean.css +1 -1
  217. package/dist/themes/rainbow-contrast.css +1 -1
  218. package/dist/themes/rainbow.css +1 -1
  219. package/dist/themes/sageivory-contrast.css +1 -1
  220. package/dist/themes/sageivory.css +1 -1
  221. package/dist/themes/spring-contrast.css +1 -1
  222. package/dist/themes/spring.css +1 -1
  223. package/dist/themes/summer-contrast.css +1 -1
  224. package/dist/themes/summer.css +1 -1
  225. package/dist/themes/sunset-contrast.css +1 -1
  226. package/dist/themes/sunset.css +1 -1
  227. package/dist/themes/tealcaramel-contrast.css +1 -1
  228. package/dist/themes/tealcaramel.css +1 -1
  229. package/dist/themes/vibrant-contrast.css +1 -1
  230. package/dist/themes/vibrant.css +1 -1
  231. package/dist/vue/index.d.ts +192 -53
  232. package/package.json +5 -1
  233. package/src/styles/abstract/_functions.scss +22 -1
  234. package/src/styles/abstract/_variables.scss +0 -2
  235. package/src/styles/base/_tokens.scss +12 -0
  236. package/src/styles/components/_bottom-sheet.scss +1 -0
  237. package/src/styles/components/_button-group.scss +9 -5
  238. package/src/styles/components/_button.scss +9 -12
  239. package/src/styles/components/_datepicker.scss +1 -0
  240. package/src/styles/components/_dialog.scss +1 -0
  241. package/src/styles/components/_drawer.scss +33 -65
  242. package/src/styles/components/_icon-button.scss +32 -33
  243. package/src/styles/components/_list.scss +19 -5
  244. package/src/styles/components/_menu.scss +1 -0
  245. package/src/styles/components/_side-sheet.scss +1 -0
  246. package/src/styles/components/_snackbar.scss +1 -0
  247. package/src/styles/components/_text-field.scss +17 -109
  248. package/src/styles/components/_timepicker.scss +2 -1
  249. package/src/styles/components/_toolbar.scss +4 -4
  250. package/src/styles/elements/_button-group.scss +17 -4
  251. package/src/styles/elements/_button.scss +3 -2
  252. package/src/styles/elements/_drawer.scss +2 -1
  253. package/src/styles/elements/_field.scss +25 -14
  254. package/src/styles/elements/_icon-button.scss +8 -3
  255. package/src/styles/elements/_list.scss +3 -2
  256. package/src/styles/elements/_text-field.scss +71 -47
  257. package/dist/components/badge/badge.d.ts +0 -7
  258. package/dist/components/badge/types.d.ts +0 -152
  259. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -12
  260. package/dist/components/bottom-app-bar/types.d.ts +0 -124
  261. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -7
  262. package/dist/components/bottom-sheet/types.d.ts +0 -100
  263. package/dist/components/button/button.d.ts +0 -7
  264. package/dist/components/button-group/button-group.d.ts +0 -7
  265. package/dist/components/button-group/types.d.ts +0 -227
  266. package/dist/components/card/card.d.ts +0 -7
  267. package/dist/components/card/content.d.ts +0 -22
  268. package/dist/components/card/types.d.ts +0 -272
  269. package/dist/components/carousel/carousel.d.ts +0 -4
  270. package/dist/components/carousel/types.d.ts +0 -81
  271. package/dist/components/checkbox/checkbox.d.ts +0 -8
  272. package/dist/components/checkbox/types.d.ts +0 -199
  273. package/dist/components/chips/chips.d.ts +0 -7
  274. package/dist/components/chips/factories.d.ts +0 -9
  275. package/dist/components/chips/types.d.ts +0 -304
  276. package/dist/components/datepicker/datepicker.d.ts +0 -7
  277. package/dist/components/datepicker/types.d.ts +0 -300
  278. package/dist/components/datepicker/types.js +0 -17
  279. package/dist/components/dialog/dialog.d.ts +0 -8
  280. package/dist/components/dialog/types.d.ts +0 -311
  281. package/dist/components/divider/config.d.ts +0 -43
  282. package/dist/components/divider/divider.d.ts +0 -7
  283. package/dist/components/divider/types.d.ts +0 -43
  284. package/dist/components/drawer/drawer.d.ts +0 -7
  285. package/dist/components/drawer/types.d.ts +0 -179
  286. package/dist/components/extended-fab/extended-fab.d.ts +0 -7
  287. package/dist/components/extended-fab/types.d.ts +0 -208
  288. package/dist/components/fab/fab.d.ts +0 -7
  289. package/dist/components/fab/types.d.ts +0 -168
  290. package/dist/components/fab-menu/fab-menu.d.ts +0 -8
  291. package/dist/components/fab-menu/types.d.ts +0 -91
  292. package/dist/components/icon-button/icon-button.d.ts +0 -7
  293. package/dist/components/index.d.ts +0 -82
  294. package/dist/components/list/features/listbox.d.ts +0 -16
  295. package/dist/components/list/list.d.ts +0 -7
  296. package/dist/components/list/types.d.ts +0 -257
  297. package/dist/components/loading-indicator/features/renderer.d.ts +0 -28
  298. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -7
  299. package/dist/components/loading-indicator/types.d.ts +0 -53
  300. package/dist/components/menu/menu.d.ts +0 -7
  301. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -3
  302. package/dist/components/navigation-bar/types.d.ts +0 -59
  303. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -3
  304. package/dist/components/navigation-rail/types.d.ts +0 -87
  305. package/dist/components/progress/progress.d.ts +0 -7
  306. package/dist/components/radios/radios.d.ts +0 -7
  307. package/dist/components/radios/types.d.ts +0 -144
  308. package/dist/components/search/search.d.ts +0 -7
  309. package/dist/components/search/types.d.ts +0 -235
  310. package/dist/components/select/select.d.ts +0 -7
  311. package/dist/components/select/types.d.ts +0 -232
  312. package/dist/components/side-sheet/side-sheet.d.ts +0 -7
  313. package/dist/components/side-sheet/types.d.ts +0 -91
  314. package/dist/components/slider/slider.d.ts +0 -7
  315. package/dist/components/slider/types.d.ts +0 -218
  316. package/dist/components/snackbar/snackbar.d.ts +0 -9
  317. package/dist/components/snackbar/types.d.ts +0 -180
  318. package/dist/components/split-button/split-button.d.ts +0 -7
  319. package/dist/components/switch/switch.d.ts +0 -7
  320. package/dist/components/switch/types.d.ts +0 -171
  321. package/dist/components/tabs/indicator.d.ts +0 -44
  322. package/dist/components/tabs/tab.d.ts +0 -7
  323. package/dist/components/tabs/tabs.d.ts +0 -7
  324. package/dist/components/tabs/types.d.ts +0 -304
  325. package/dist/components/tabs/utils.d.ts +0 -46
  326. package/dist/components/text-field/features/trailing-icon.d.ts +0 -54
  327. package/dist/components/text-field/text-field.d.ts +0 -7
  328. package/dist/components/text-field/types.d.ts +0 -261
  329. package/dist/components/timepicker/timepicker.d.ts +0 -3
  330. package/dist/components/timepicker/types.d.ts +0 -258
  331. package/dist/components/toolbar/toolbar.d.ts +0 -8
  332. package/dist/components/toolbar/types.d.ts +0 -129
  333. package/dist/components/tooltip/tooltip.d.ts +0 -7
  334. package/dist/components/tooltip/types.d.ts +0 -137
  335. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -7
  336. package/dist/components/top-app-bar/types.d.ts +0 -80
  337. package/dist/core/canvas/animation.d.ts +0 -20
  338. package/dist/core/canvas/drawing.d.ts +0 -67
  339. package/dist/core/canvas/resize.d.ts +0 -8
  340. package/dist/core/canvas/utils.d.ts +0 -62
  341. package/dist/core/compose/base.d.ts +0 -18
  342. package/dist/core/compose/features/badge.d.ts +0 -27
  343. package/dist/core/compose/features/checkable.d.ts +0 -33
  344. package/dist/core/compose/features/debounce.d.ts +0 -45
  345. package/dist/core/compose/features/disabled.d.ts +0 -26
  346. package/dist/core/compose/features/events.d.ts +0 -31
  347. package/dist/core/compose/features/index.d.ts +0 -34
  348. package/dist/core/compose/features/input.d.ts +0 -54
  349. package/dist/core/compose/features/lifecycle.d.ts +0 -41
  350. package/dist/core/compose/features/position.d.ts +0 -36
  351. package/dist/core/compose/features/ripple.d.ts +0 -35
  352. package/dist/core/compose/features/size.d.ts +0 -12
  353. package/dist/core/compose/features/style.d.ts +0 -11
  354. package/dist/core/compose/features/textinput.d.ts +0 -66
  355. package/dist/core/compose/features/textlabel.d.ts +0 -34
  356. package/dist/core/compose/features/throttle.d.ts +0 -38
  357. package/dist/core/compose/features/track.d.ts +0 -24
  358. package/dist/core/compose/features/variant.d.ts +0 -12
  359. package/dist/core/compose/features/withEvents.d.ts +0 -27
  360. package/dist/core/compose/pipe.d.ts +0 -55
  361. package/dist/core/compose/utils/type-guards.d.ts +0 -17
  362. package/dist/core/config.d.ts +0 -72
  363. package/dist/core/dom/attributes.d.ts +0 -34
  364. package/dist/core/dom/classes.d.ts +0 -29
  365. package/dist/core/dom/events.d.ts +0 -43
  366. package/dist/core/dom/focus.d.ts +0 -15
  367. package/dist/core/dom/html.d.ts +0 -16
  368. package/dist/core/dom/layer.d.ts +0 -57
  369. package/dist/core/dom/roving.d.ts +0 -18
  370. package/dist/core/shapes/cubic.d.ts +0 -45
  371. package/dist/core/shapes/material.d.ts +0 -131
  372. package/dist/core/shapes/polygon.d.ts +0 -38
  373. package/dist/core/state/events.d.ts +0 -25
  374. package/dist/core/state/store.d.ts +0 -60
  375. package/dist/core/theme/shape.d.ts +0 -5
  376. package/dist/core/theme/tokens.d.ts +0 -67
  377. package/dist/core/utils/background.d.ts +0 -13
  378. package/dist/core/utils/color.d.ts +0 -6
  379. package/dist/core/utils/object.d.ts +0 -11
  380. package/dist/core/utils/performance.d.ts +0 -32
  381. package/dist/core/utils/theme.d.ts +0 -17
  382. package/dist/core/utils/url.d.ts +0 -6
  383. package/dist/elements/badge.d.ts +0 -57
  384. package/dist/elements/bottom-app-bar.d.ts +0 -66
  385. package/dist/elements/bottom-sheet.d.ts +0 -107
  386. package/dist/elements/button-group.d.ts +0 -142
  387. package/dist/elements/button.d.ts +0 -101
  388. package/dist/elements/card.d.ts +0 -69
  389. package/dist/elements/carousel.d.ts +0 -119
  390. package/dist/elements/checkbox.d.ts +0 -97
  391. package/dist/elements/chips.d.ts +0 -126
  392. package/dist/elements/datepicker.d.ts +0 -131
  393. package/dist/elements/dialog.d.ts +0 -101
  394. package/dist/elements/divider.d.ts +0 -52
  395. package/dist/elements/drawer.d.ts +0 -119
  396. package/dist/elements/extended-fab.d.ts +0 -97
  397. package/dist/elements/fab-menu.d.ts +0 -102
  398. package/dist/elements/fab.d.ts +0 -71
  399. package/dist/elements/list.d.ts +0 -127
  400. package/dist/elements/loading-indicator.d.ts +0 -47
  401. package/dist/elements/menu.d.ts +0 -144
  402. package/dist/elements/navigation-bar.d.ts +0 -104
  403. package/dist/elements/navigation-rail.d.ts +0 -145
  404. package/dist/elements/progress.d.ts +0 -87
  405. package/dist/elements/radios.d.ts +0 -92
  406. package/dist/elements/search.d.ts +0 -202
  407. package/dist/elements/select.d.ts +0 -119
  408. package/dist/elements/side-sheet.d.ts +0 -86
  409. package/dist/elements/slider.d.ts +0 -160
  410. package/dist/elements/snackbar.d.ts +0 -87
  411. package/dist/elements/split-button.d.ts +0 -87
  412. package/dist/elements/switch.d.ts +0 -98
  413. package/dist/elements/tabs.d.ts +0 -76
  414. package/dist/elements/text-field.d.ts +0 -170
  415. package/dist/elements/timepicker.d.ts +0 -148
  416. package/dist/elements/toolbar.d.ts +0 -98
  417. package/dist/elements/tooltip.d.ts +0 -75
  418. package/dist/elements/top-app-bar.d.ts +0 -60
  419. package/dist/react/badge.d.ts +0 -4
  420. package/dist/react/bottom-app-bar.d.ts +0 -5
  421. package/dist/react/bottom-sheet.d.ts +0 -4
  422. package/dist/react/button-group-item.d.ts +0 -3
  423. package/dist/react/button-group.d.ts +0 -7
  424. package/dist/react/button.d.ts +0 -5
  425. package/dist/react/card.d.ts +0 -4
  426. package/dist/react/carousel-item.d.ts +0 -3
  427. package/dist/react/carousel.d.ts +0 -4
  428. package/dist/react/checkbox.d.ts +0 -4
  429. package/dist/react/chip.d.ts +0 -3
  430. package/dist/react/chips.d.ts +0 -4
  431. package/dist/react/datepicker.d.ts +0 -4
  432. package/dist/react/dialog.d.ts +0 -7
  433. package/dist/react/divider.d.ts +0 -4
  434. package/dist/react/drawer-item.d.ts +0 -3
  435. package/dist/react/drawer.d.ts +0 -4
  436. package/dist/react/extended-fab.d.ts +0 -4
  437. package/dist/react/fab-menu-item.d.ts +0 -3
  438. package/dist/react/fab-menu.d.ts +0 -6
  439. package/dist/react/fab.d.ts +0 -4
  440. package/dist/react/icon-button.d.ts +0 -4
  441. package/dist/react/list-item.d.ts +0 -3
  442. package/dist/react/list.d.ts +0 -4
  443. package/dist/react/loading-indicator.d.ts +0 -4
  444. package/dist/react/menu-item.d.ts +0 -3
  445. package/dist/react/menu.d.ts +0 -4
  446. package/dist/react/navigation-bar-item.d.ts +0 -3
  447. package/dist/react/navigation-bar.d.ts +0 -4
  448. package/dist/react/navigation-rail-item.d.ts +0 -3
  449. package/dist/react/navigation-rail.d.ts +0 -4
  450. package/dist/react/progress.d.ts +0 -4
  451. package/dist/react/radio.d.ts +0 -3
  452. package/dist/react/radios.d.ts +0 -4
  453. package/dist/react/search-suggestion.d.ts +0 -3
  454. package/dist/react/search.d.ts +0 -4
  455. package/dist/react/select-option.d.ts +0 -3
  456. package/dist/react/select.d.ts +0 -6
  457. package/dist/react/side-sheet.d.ts +0 -4
  458. package/dist/react/slider.d.ts +0 -4
  459. package/dist/react/snackbar.d.ts +0 -7
  460. package/dist/react/split-button.d.ts +0 -7
  461. package/dist/react/switch.d.ts +0 -4
  462. package/dist/react/tab.d.ts +0 -3
  463. package/dist/react/tabs.d.ts +0 -7
  464. package/dist/react/text-field.d.ts +0 -4
  465. package/dist/react/timepicker.d.ts +0 -4
  466. package/dist/react/toolbar.d.ts +0 -5
  467. package/dist/react/tooltip.d.ts +0 -4
  468. package/dist/react/top-app-bar.d.ts +0 -4
  469. package/dist/solid/badge.d.ts +0 -4
  470. package/dist/solid/bottom-app-bar.d.ts +0 -5
  471. package/dist/solid/bottom-sheet.d.ts +0 -4
  472. package/dist/solid/button-group-item.d.ts +0 -3
  473. package/dist/solid/button-group.d.ts +0 -7
  474. package/dist/solid/button.d.ts +0 -5
  475. package/dist/solid/card.d.ts +0 -4
  476. package/dist/solid/carousel-item.d.ts +0 -3
  477. package/dist/solid/carousel.d.ts +0 -4
  478. package/dist/solid/checkbox.d.ts +0 -4
  479. package/dist/solid/chip.d.ts +0 -3
  480. package/dist/solid/chips.d.ts +0 -4
  481. package/dist/solid/datepicker.d.ts +0 -4
  482. package/dist/solid/dialog.d.ts +0 -7
  483. package/dist/solid/divider.d.ts +0 -4
  484. package/dist/solid/drawer-item.d.ts +0 -3
  485. package/dist/solid/drawer.d.ts +0 -4
  486. package/dist/solid/extended-fab.d.ts +0 -4
  487. package/dist/solid/fab-menu-item.d.ts +0 -3
  488. package/dist/solid/fab-menu.d.ts +0 -6
  489. package/dist/solid/fab.d.ts +0 -4
  490. package/dist/solid/icon-button.d.ts +0 -4
  491. package/dist/solid/list-item.d.ts +0 -3
  492. package/dist/solid/list.d.ts +0 -4
  493. package/dist/solid/loading-indicator.d.ts +0 -4
  494. package/dist/solid/menu-item.d.ts +0 -3
  495. package/dist/solid/menu.d.ts +0 -4
  496. package/dist/solid/navigation-bar-item.d.ts +0 -3
  497. package/dist/solid/navigation-bar.d.ts +0 -4
  498. package/dist/solid/navigation-rail-item.d.ts +0 -3
  499. package/dist/solid/navigation-rail.d.ts +0 -4
  500. package/dist/solid/progress.d.ts +0 -4
  501. package/dist/solid/radio.d.ts +0 -3
  502. package/dist/solid/radios.d.ts +0 -4
  503. package/dist/solid/search-suggestion.d.ts +0 -3
  504. package/dist/solid/search.d.ts +0 -4
  505. package/dist/solid/select-option.d.ts +0 -3
  506. package/dist/solid/select.d.ts +0 -6
  507. package/dist/solid/side-sheet.d.ts +0 -4
  508. package/dist/solid/slider.d.ts +0 -4
  509. package/dist/solid/snackbar.d.ts +0 -7
  510. package/dist/solid/split-button.d.ts +0 -7
  511. package/dist/solid/switch.d.ts +0 -4
  512. package/dist/solid/tab.d.ts +0 -3
  513. package/dist/solid/tabs.d.ts +0 -7
  514. package/dist/solid/text-field.d.ts +0 -4
  515. package/dist/solid/timepicker.d.ts +0 -4
  516. package/dist/solid/toolbar.d.ts +0 -5
  517. package/dist/solid/tooltip.d.ts +0 -4
  518. package/dist/solid/top-app-bar.d.ts +0 -4
  519. package/dist/vue/badge.d.ts +0 -4
  520. package/dist/vue/bottom-app-bar.d.ts +0 -5
  521. package/dist/vue/bottom-sheet.d.ts +0 -4
  522. package/dist/vue/button-group-item.d.ts +0 -3
  523. package/dist/vue/button-group.d.ts +0 -7
  524. package/dist/vue/button.d.ts +0 -5
  525. package/dist/vue/card.d.ts +0 -4
  526. package/dist/vue/carousel-item.d.ts +0 -3
  527. package/dist/vue/carousel.d.ts +0 -4
  528. package/dist/vue/checkbox.d.ts +0 -4
  529. package/dist/vue/chip.d.ts +0 -3
  530. package/dist/vue/chips.d.ts +0 -4
  531. package/dist/vue/create.d.ts +0 -73
  532. package/dist/vue/datepicker.d.ts +0 -4
  533. package/dist/vue/dialog.d.ts +0 -7
  534. package/dist/vue/divider.d.ts +0 -4
  535. package/dist/vue/drawer-item.d.ts +0 -3
  536. package/dist/vue/drawer.d.ts +0 -4
  537. package/dist/vue/extended-fab.d.ts +0 -4
  538. package/dist/vue/fab-menu-item.d.ts +0 -3
  539. package/dist/vue/fab-menu.d.ts +0 -6
  540. package/dist/vue/fab.d.ts +0 -4
  541. package/dist/vue/icon-button.d.ts +0 -4
  542. package/dist/vue/list-item.d.ts +0 -3
  543. package/dist/vue/list.d.ts +0 -4
  544. package/dist/vue/loading-indicator.d.ts +0 -4
  545. package/dist/vue/menu-item.d.ts +0 -3
  546. package/dist/vue/menu.d.ts +0 -4
  547. package/dist/vue/navigation-bar-item.d.ts +0 -3
  548. package/dist/vue/navigation-bar.d.ts +0 -4
  549. package/dist/vue/navigation-rail-item.d.ts +0 -3
  550. package/dist/vue/navigation-rail.d.ts +0 -4
  551. package/dist/vue/progress.d.ts +0 -4
  552. package/dist/vue/radio.d.ts +0 -3
  553. package/dist/vue/radios.d.ts +0 -4
  554. package/dist/vue/search-suggestion.d.ts +0 -3
  555. package/dist/vue/search.d.ts +0 -4
  556. package/dist/vue/select-option.d.ts +0 -3
  557. package/dist/vue/select.d.ts +0 -6
  558. package/dist/vue/side-sheet.d.ts +0 -4
  559. package/dist/vue/slider.d.ts +0 -4
  560. package/dist/vue/snackbar.d.ts +0 -7
  561. package/dist/vue/split-button.d.ts +0 -7
  562. package/dist/vue/switch.d.ts +0 -4
  563. package/dist/vue/tab.d.ts +0 -3
  564. package/dist/vue/tabs.d.ts +0 -7
  565. package/dist/vue/text-field.d.ts +0 -4
  566. package/dist/vue/timepicker.d.ts +0 -4
  567. package/dist/vue/toolbar.d.ts +0 -5
  568. package/dist/vue/tooltip.d.ts +0 -4
  569. package/dist/vue/top-app-bar.d.ts +0 -4
@@ -1,43 +0,0 @@
1
- import { BaseComponent, ElementComponent } from "../../core/compose/index.js";
2
- /** The three slices of a divider, one per enhancer in features.ts. */
3
- export interface DividerOrientation {
4
- /** Gets current orientation of the divider */
5
- getOrientation(): 'horizontal' | 'vertical';
6
- /**
7
- * Sets orientation of the divider Changes the divider's orientation between horizontal (default) and vertical.
8
- * @param orientation
9
- */
10
- setOrientation(orientation: 'horizontal' | 'vertical'): this;
11
- }
12
- /** The inset slice. */
13
- export interface DividerInset {
14
- /** Gets current variant of the divider */
15
- getVariant(): 'full-width' | 'inset' | 'middle-inset';
16
- /**
17
- * Sets variant of the divider
18
- * @param variant
19
- */
20
- setVariant(variant: 'full-width' | 'inset' | 'middle-inset'): this;
21
- /**
22
- * Sets custom inset values for the divider Allows fine-grained control over inset spacing, overriding the default values applied by the variant.
23
- * @param insetStart
24
- * @param insetEnd
25
- */
26
- setInset(insetStart?: number, insetEnd?: number): this;
27
- }
28
- /** The style slice. */
29
- export interface DividerStyle {
30
- /**
31
- * Sets thickness of the divider Changes the divider's thickness (height for horizontal, width for vertical).
32
- * @param thickness
33
- */
34
- setThickness(thickness: number): this;
35
- /**
36
- * Sets custom color for the divider By default, dividers use the 'outline-variant' color from the theme.
37
- * @param color
38
- */
39
- setColor(color: string): this;
40
- }
41
- /** Divider component interface Represents a Material Design 3 divider that separates content into distinct sections. */
42
- export interface DividerComponent extends BaseComponent, ElementComponent, DividerOrientation, DividerInset, DividerStyle {
43
- }
@@ -1,7 +0,0 @@
1
- import { DrawerConfig, DrawerComponent } from "./types.js";
2
- /**
3
- * Creates a new Drawer component with the specified configuration.
4
- * @param config
5
- */
6
- declare const createDrawer: (config?: DrawerConfig) => DrawerComponent;
7
- export default createDrawer;
@@ -1,179 +0,0 @@
1
- import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
- import { BaseComponentConfig } from "../../core/config/component.js";
3
- /** Drawer variant type — controls layout behavior */
4
- export type DrawerVariant = "standard" | "modal";
5
- /** Drawer position — which edge the drawer anchors to */
6
- export type DrawerPosition = "start" | "end";
7
- /** Configuration for a navigation destination item */
8
- export interface DrawerItemConfig {
9
- /** Item type — defaults to 'item' if omitted */
10
- type?: "item" | "divider" | "section";
11
- /** Unique identifier for the item */
12
- id?: string;
13
- /** Destination label text */
14
- label?: string;
15
- /** Icon HTML content (placed before label). */
16
- icon?: string;
17
- /** Badge text (e.g. */
18
- badge?: string;
19
- /** Whether this item is initially active/selected */
20
- active?: boolean;
21
- /** Section label text (only when type is 'section') */
22
- sectionLabel?: string;
23
- /** Whether the item is disabled */
24
- disabled?: boolean;
25
- }
26
- /** Event detail emitted when a drawer item is selected */
27
- export interface DrawerSelectEvent {
28
- /** The selected item's id */
29
- id: string;
30
- /** The id again, as the `value` of the `<m-drawer>` element's `change` */
31
- value: string;
32
- /** The selected item's label */
33
- label: string;
34
- /** The selected item's index within navigation items (excludes dividers/sections) */
35
- index: number;
36
- /** The underlying DOM event */
37
- originalEvent: Event;
38
- }
39
- /** Events emitted by drawer state, navigation items and root DOM forwarding. */
40
- export interface DrawerEvents {
41
- open: () => void;
42
- close: () => void;
43
- /** User activation only; setActive() is silent. */
44
- select: (payload: DrawerSelectEvent) => void;
45
- click: (payload: ForwardedEventPayload<MouseEvent, HTMLElement>) => void;
46
- keydown: (payload: ForwardedEventPayload<KeyboardEvent, HTMLElement>) => void;
47
- }
48
- /** Configuration interface for the Drawer component */
49
- export interface DrawerConfig extends BaseComponentConfig {
50
- /**
51
- * Drawer variant that determines layout behavior
52
- * @default 'standard'
53
- */
54
- variant?: DrawerVariant | string;
55
- /**
56
- * Drawer anchor position
57
- * @default 'start'
58
- */
59
- position?: DrawerPosition | string;
60
- /**
61
- * Whether the drawer is initially open
62
- * @default false
63
- */
64
- open?: boolean;
65
- /**
66
- * Whether the modal drawer can be dismissed by clicking the scrim, or with Escape.
67
- * @default true
68
- */
69
- dismissible?: boolean;
70
- /** `"top"` makes a modal drawer's root a `<dialog>` element, rendered where the drawer is, and opens it with `showModal()`: in the browser's top layer, above every z-index and outside any clipping ancestor, with the rest of the page inert, a shadow root's page included. */
71
- layer?: "top";
72
- /** Optional headline text displayed at the top of the drawer */
73
- headline?: string;
74
- /** The drawer's accessible name. */
75
- ariaLabel?: string;
76
- /** Navigation items configuration array. */
77
- items?: DrawerItemConfig[];
78
- /**
79
- * Drawer width as a CSS value
80
- * @default 360
81
- */
82
- width?: string | number;
83
- /**
84
- * When true, renders a compact drawer with smaller items and tighter spacing.
85
- * @default false
86
- */
87
- dense?: boolean;
88
- /**
89
- * Whether items show a ripple on press.
90
- * @default true
91
- */
92
- ripple?: boolean;
93
- /** Additional CSS classes to add to the drawer */
94
- class?: string;
95
- /**
96
- * Component prefix for class names
97
- * @default 'mtrl'
98
- */
99
- prefix?: string;
100
- /** Component name used in class generation */
101
- componentName?: string;
102
- /** `select` listener registered at creation. */
103
- onSelect?: DrawerEvents["select"];
104
- /** `open` listener registered at creation. */
105
- onOpen?: DrawerEvents["open"];
106
- /** `close` listener registered at creation. */
107
- onClose?: DrawerEvents["close"];
108
- }
109
- /** Drawer component interface — public API */
110
- export interface DrawerComponent {
111
- /** The drawer's root DOM element */
112
- element: HTMLElement;
113
- /**
114
- * Gets a class name with the component's prefix
115
- * @param name
116
- */
117
- getClass: (name: string) => string;
118
- /** Opens the drawer */
119
- open: () => DrawerComponent;
120
- /** Closes the drawer */
121
- close: () => DrawerComponent;
122
- /** Toggles the drawer open/closed state */
123
- toggle: () => DrawerComponent;
124
- /** Checks if the drawer is currently open */
125
- isOpen: () => boolean;
126
- /**
127
- * Sets the active navigation item by id
128
- * @param id
129
- */
130
- setActive: (id: string) => DrawerComponent;
131
- /** Gets the currently active item id */
132
- getActive: () => string | null;
133
- /** Reads the current model value without changing selection. */
134
- getValue: () => string | null;
135
- /**
136
- * Sets the headline text
137
- * @param text
138
- */
139
- setHeadline: (text: string) => DrawerComponent;
140
- /** Gets the headline text */
141
- getHeadline: () => string;
142
- /**
143
- * Sets the navigation items
144
- * @param items
145
- */
146
- setItems: (items: DrawerItemConfig[]) => DrawerComponent;
147
- /** Gets the current items configuration */
148
- getItems: () => DrawerItemConfig[];
149
- /**
150
- * Sets a badge on a specific item
151
- * @param id
152
- * @param badge
153
- */
154
- setBadge: (id: string, badge: string) => DrawerComponent;
155
- /**
156
- * Adds an event listener
157
- * @param event
158
- * @param handler
159
- */
160
- on: <K extends keyof DrawerEvents>(event: K, handler: DrawerEvents[K]) => DrawerComponent;
161
- /**
162
- * Removes an event listener
163
- * @param event
164
- * @param handler
165
- */
166
- off: <K extends keyof DrawerEvents>(event: K, handler: DrawerEvents[K]) => DrawerComponent;
167
- /**
168
- * Adds CSS classes to the drawer element
169
- * @param classes
170
- */
171
- addClass: (...classes: string[]) => DrawerComponent;
172
- /** Destroys the drawer component and cleans up resources */
173
- destroy: () => void;
174
- /** API for managing component lifecycle */
175
- lifecycle: {
176
- /** Destroys the component and cleans up resources */
177
- destroy: () => void;
178
- };
179
- }
@@ -1,7 +0,0 @@
1
- import { ExtendedFabConfig, ExtendedFabComponent } from "./types.js";
2
- /**
3
- * Creates a new Extended Floating Action Button (Extended FAB) component Extended FABs are a variant of the standard Floating Action Button that include both an icon and text label.
4
- * @param config
5
- */
6
- declare const createExtendedFab: (config?: ExtendedFabConfig) => ExtendedFabComponent;
7
- export default createExtendedFab;
@@ -1,208 +0,0 @@
1
- import type { TouchEvents } from "../../core/utils/mobile.js";
2
- import type { IconManager } from "../../core/compose/features/icon.js";
3
- import type { TextManager } from "../../core/compose/features/text.js";
4
- import type { ForwardedEventPayload } from "../../core/dom/index.js";
5
- /** Extended FAB variants following Material Design 3 guidelines Material Design 3 offers different color variants for the Extended FAB to match visual hierarchy and application color schemes. */
6
- export type ExtendedFabVariant = "primary-container" | "secondary-container" | "tertiary-container" | "primary" | "secondary" | "tertiary";
7
- /** Expressive extended FAB size: small 56dp, medium 80dp, large 96dp. */
8
- export type ExtendedFabSize = "small" | "medium" | "large";
9
- /** Extended FAB width behavior Controls how the Extended FAB's width is calculated. */
10
- export type ExtendedFabWidth = "fixed" | "fluid";
11
- /** Extended FAB position on the screen Predefined positions for the Extended FAB when used as a floating element. */
12
- export type ExtendedFabPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
13
- /** Logical viewport corners; start/end follow text direction. */
14
- export type ExtendedFabPlacement = "none" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
15
- /** Configuration interface for the Extended FAB component Comprehensive options for creating and customizing an Extended Floating Action Button according to Material Design 3 guidelines. */
16
- export interface ExtendedFabConfig {
17
- /** Expressive container, icon and label size. */
18
- size?: ExtendedFabSize;
19
- /**
20
- * Extended FAB variant that determines visual styling The color variant affects the Extended FAB's background color, text color, and elevation.
21
- * @default 'primary-container'
22
- */
23
- variant?: ExtendedFabVariant | string;
24
- /**
25
- * Whether the Extended FAB is initially disabled When disabled, the Extended FAB will have a visually muted appearance and won't respond to user interactions.
26
- * @default false
27
- */
28
- disabled?: boolean;
29
- /** Extended FAB icon HTML content. */
30
- icon?: string;
31
- /** Icon size in pixels or other CSS units Allows customizing the icon size beyond the default 24px size. */
32
- iconSize?: string;
33
- /**
34
- * Position of the icon relative to the text Controls whether the icon appears before or after the text label.
35
- * @default 'start'
36
- */
37
- iconPosition?: "start" | "end";
38
- /** Text label for the Extended FAB The text should be short, typically one or two words describing the primary action. */
39
- text?: string;
40
- /** Additional CSS classes to add to the Extended FAB Custom classes for styling or identifying the Extended FAB. */
41
- class?: string;
42
- /** Button value attribute Sets the HTML value attribute of the button element, useful when using the Extended FAB in a form context. */
43
- value?: string;
44
- /** Position of the Extended FAB on the screen Configures the Extended FAB for floating positioning on the screen. */
45
- /** @deprecated Use placement. Physical left/right do not mirror in RTL; removal in 4.0. */
46
- position?: ExtendedFabPosition | string;
47
- /** Logical corner, fixed with 16px margins; none stays in flow. */
48
- placement?: ExtendedFabPlacement;
49
- /**
50
- * Button type attribute Sets the HTML type attribute of the button element.
51
- * @default 'button'
52
- */
53
- type?: "button" | "submit" | "reset";
54
- /** Accessible label for screen readers Sets the aria-label attribute. */
55
- ariaLabel?: string;
56
- /**
57
- * Whether to enable ripple effect The ripple effect provides visual feedback when the user interacts with the Extended FAB.
58
- * @default true
59
- */
60
- ripple?: boolean;
61
- /**
62
- * Component prefix for class names The prefix used for BEM-style class names.
63
- * @default 'mtrl'
64
- */
65
- prefix?: string;
66
- /** Component name used in class generation */
67
- componentName?: string;
68
- /** Ripple effect configuration Fine-grained control over the ripple effect appearance and behavior. */
69
- rippleConfig?: {
70
- /** How long, in milliseconds, a released wave lingers before it is removed */
71
- duration?: number;
72
- };
73
- /**
74
- * Whether to show the Extended FAB with an entrance animation When true, the Extended FAB will animate into view when added to the DOM.
75
- * @default false
76
- */
77
- animate?: boolean;
78
- /**
79
- * Width behavior of the Extended FAB
80
- * @default 'fixed'
81
- */
82
- width?: ExtendedFabWidth | string;
83
- /**
84
- * Whether the Extended FAB should collapse to a standard FAB on scroll When true, the Extended FAB will automatically shrink to a circular FAB (hiding the text) when the user scrolls down, and expand back to the Extended FAB when scrolling up.
85
- * @default false
86
- */
87
- collapseOnScroll?: boolean;
88
- /** Index signature for additional configuration options */
89
- [key: string]: unknown;
90
- }
91
- /** Native events forwarded through the Extended FAB's emitter. */
92
- export interface ExtendedFabEvents extends TouchEvents {
93
- /** Clicks are not forwarded while the button is disabled. */
94
- click: (payload: ForwardedEventPayload<MouseEvent, HTMLButtonElement>) => void;
95
- /** The button took focus. */
96
- focus: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
97
- /** The button lost focus. */
98
- blur: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
99
- /** `collapse()` ran, by call or on scroll */
100
- collapse: () => void;
101
- /** `expand()` ran, by call or on scroll */
102
- expand: () => void;
103
- }
104
- /** Extended FAB component interface Provides methods for interacting with and manipulating an Extended Floating Action Button. */
105
- export interface ExtendedFabComponent {
106
- /** The Extended FAB's DOM element Direct access to the underlying button element for DOM manipulation. */
107
- element: HTMLButtonElement;
108
- /** API for managing Extended FAB icons Access to low-level icon methods and elements. */
109
- icon: {
110
- /** Sets the icon HTML content */
111
- setIcon: (html: string) => IconManager;
112
- /** Gets the current icon HTML content */
113
- getIcon: () => string;
114
- /** Gets the icon DOM element */
115
- getElement: () => HTMLElement | null;
116
- };
117
- /** API for managing text content Access to low-level text methods and elements. */
118
- text: {
119
- /** Sets the text content */
120
- setText: (text: string) => TextManager;
121
- /** Gets the current text content */
122
- getText: () => string;
123
- /** Gets the text DOM element */
124
- getElement: () => HTMLElement | null;
125
- };
126
- /** API for managing disabled state Access to low-level disabled state methods. */
127
- disabled: {
128
- /** Enables the Extended FAB */
129
- enable: () => void;
130
- /** Disables the Extended FAB */
131
- disable: () => void;
132
- /** Checks if the Extended FAB is disabled */
133
- isDisabled: () => boolean;
134
- };
135
- /** API for managing component lifecycle Access to low-level lifecycle methods. */
136
- lifecycle: {
137
- /** Destroys the component and cleans up resources */
138
- destroy: () => void;
139
- };
140
- /**
141
- * Gets a class name with the component's prefix
142
- * @param name
143
- */
144
- getClass: (name: string) => string;
145
- /** Gets the Extended FAB's value attribute */
146
- getValue: () => string;
147
- /**
148
- * Sets the Extended FAB's value attribute
149
- * @param value
150
- */
151
- setValue: (value: string) => ExtendedFabComponent;
152
- /** Enables the Extended FAB (removes disabled attribute) Makes the Extended FAB interactive and visually enabled. */
153
- enable: () => ExtendedFabComponent;
154
- /** Disables the Extended FAB (adds disabled attribute) Makes the Extended FAB non-interactive and visually disabled. */
155
- disable: () => ExtendedFabComponent;
156
- /** Whether the extended FAB is disabled */
157
- isDisabled: () => boolean;
158
- /**
159
- * Sets the Extended FAB's icon
160
- * @param icon
161
- */
162
- setIcon: (icon: string) => ExtendedFabComponent;
163
- /** Gets the Extended FAB's icon HTML content */
164
- getIcon: () => string;
165
- /**
166
- * Sets the Extended FAB's text content
167
- * @param text
168
- */
169
- setText: (text: string) => ExtendedFabComponent;
170
- /** Gets the Extended FAB's text content */
171
- getText: () => string;
172
- /**
173
- * Sets the Extended FAB's position Positions the Extended FAB in one of the four corners of the viewport.
174
- * @param position
175
- */
176
- /** @deprecated Physical position alias; use the placement option/attribute. Removal in 4.0. */
177
- setPosition: (position: string) => ExtendedFabComponent;
178
- /** Gets the current position of the Extended FAB */
179
- /** @deprecated Reads only the physical position alias. Removal in 4.0. */
180
- getPosition: () => string | null;
181
- /** Lowers the Extended FAB (useful for pressed state) Visually lowers the Extended FAB by reducing its elevation, typically used to indicate a pressed or active state. */
182
- lower: () => ExtendedFabComponent;
183
- /** Raises the Extended FAB back to its default elevation Restores the default elevation after it has been lowered. */
184
- raise: () => ExtendedFabComponent;
185
- /** Collapses the Extended FAB into a standard FAB Hides the text label, showing only the icon in a circular container. */
186
- collapse: () => ExtendedFabComponent;
187
- /** Expands a collapsed Extended FAB back to its full size Shows the text label alongside the icon. */
188
- expand: () => ExtendedFabComponent;
189
- /** Destroys the Extended FAB component and cleans up resources Removes event listeners and prepares the component for garbage collection. */
190
- destroy: () => void;
191
- /**
192
- * Adds an event listener to the Extended FAB
193
- * @param event
194
- * @param handler
195
- */
196
- on: <K extends keyof ExtendedFabEvents>(event: K, handler: ExtendedFabEvents[K]) => ExtendedFabComponent;
197
- /**
198
- * Removes an event listener from the Extended FAB
199
- * @param event
200
- * @param handler
201
- */
202
- off: <K extends keyof ExtendedFabEvents>(event: K, handler: ExtendedFabEvents[K]) => ExtendedFabComponent;
203
- /**
204
- * Adds CSS classes to the Extended FAB element
205
- * @param classes
206
- */
207
- addClass: (...classes: string[]) => ExtendedFabComponent;
208
- }
@@ -1,7 +0,0 @@
1
- import { FabConfig, FabComponent } from "./types.js";
2
- /**
3
- * Creates a new Floating Action Button (FAB) component Floating Action Buttons (FABs) represent the primary action in an application.
4
- * @param config
5
- */
6
- declare const createFab: (config: FabConfig) => FabComponent;
7
- export default createFab;
@@ -1,168 +0,0 @@
1
- import type { TouchEvents } from "../../core/utils/mobile.js";
2
- import type { IconManager } from "../../core/compose/features/icon.js";
3
- import type { ForwardedEventPayload } from "../../core/dom/create.js";
4
- /** FAB variants following Material Design 3 guidelines Material Design 3 offers different color variants for the FAB to match visual hierarchy and application color schemes. */
5
- export type FabVariant = "primary-container" | "secondary-container" | "tertiary-container" | "primary" | "secondary" | "tertiary";
6
- /** FAB size variants Material Design 3 defines multiple size options for FABs to accommodate different use cases and screen sizes. */
7
- export type FabSize = "default" | "medium" | "large";
8
- /** FAB position options Predefined positions for the FAB when used as a floating element. */
9
- export type FabPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
10
- /** Logical viewport corners; start/end follow text direction. */
11
- export type FabPlacement = "none" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
12
- /** Configuration interface for the FAB component Comprehensive options for creating and customizing a Floating Action Button according to Material Design 3 guidelines. */
13
- export interface FabConfig {
14
- /**
15
- * FAB variant that determines visual styling The color variant affects the FAB's background color, icon color, and elevation.
16
- * @default 'primary-container'
17
- */
18
- variant?: FabVariant | string;
19
- /**
20
- * FAB size variant Controls the diameter of the FAB and the appropriate icon size.
21
- * @default 'default'
22
- */
23
- size?: FabSize | string;
24
- /**
25
- * Whether the FAB is initially disabled When disabled, the FAB will have a visually muted appearance and won't respond to user interactions.
26
- * @default false
27
- */
28
- disabled?: boolean;
29
- /** FAB icon HTML content. */
30
- icon?: string;
31
- /** Icon size in pixels or other CSS units Allows customizing the icon size beyond the default size for the selected FAB size. */
32
- iconSize?: string;
33
- /** Additional CSS classes to add to the FAB Custom classes for styling or identifying the FAB. */
34
- class?: string;
35
- /** Button value attribute Sets the HTML value attribute of the button element, useful when using the FAB in a form context. */
36
- value?: string;
37
- /** Position of the FAB on the screen Configures the FAB for floating positioning on the screen. */
38
- /** @deprecated Use placement. Physical left/right do not mirror in RTL; removal in 4.0. */
39
- position?: FabPosition | string;
40
- /** Logical corner, fixed with 16px margins; none stays in flow. */
41
- placement?: FabPlacement;
42
- /**
43
- * Button type attribute Sets the HTML type attribute of the button element.
44
- * @default 'button'
45
- */
46
- type?: "button" | "submit" | "reset";
47
- /** Accessible label for screen readers Sets the aria-label attribute for accessibility. */
48
- /** Accessible name. */
49
- ariaLabel: string;
50
- /**
51
- * Whether to enable ripple effect The ripple effect provides visual feedback when the user interacts with the FAB.
52
- * @default true
53
- */
54
- ripple?: boolean;
55
- /**
56
- * Component prefix for class names The prefix used for BEM-style class names.
57
- * @default 'mtrl'
58
- */
59
- prefix?: string;
60
- /** Component name used in class generation */
61
- componentName?: string;
62
- /** Ripple effect configuration Fine-grained control over the ripple effect appearance and behavior. */
63
- rippleConfig?: {
64
- /** How long, in milliseconds, a released wave lingers before it is removed */
65
- duration?: number;
66
- };
67
- /**
68
- * Whether to show the FAB with an entrance animation When true, the FAB will animate into view when added to the DOM.
69
- * @default false
70
- */
71
- animate?: boolean;
72
- /** Index signature for additional configuration options */
73
- [key: string]: unknown;
74
- }
75
- /** FAB component interface Provides methods for interacting with and manipulating a Floating Action Button. */
76
- /** The events a FAB reports, and what each hands its handler. */
77
- export interface FabEvents extends TouchEvents {
78
- /** The FAB was clicked. */
79
- click: (payload: ForwardedEventPayload<MouseEvent, HTMLButtonElement>) => void;
80
- /** The FAB took focus. */
81
- focus: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
82
- /** The FAB lost focus. */
83
- blur: (payload: ForwardedEventPayload<FocusEvent, HTMLButtonElement>) => void;
84
- }
85
- export interface FabComponent {
86
- /** The FAB's DOM element Direct access to the underlying button element for DOM manipulation. */
87
- element: HTMLButtonElement;
88
- /** API for managing FAB icons Access to low-level icon methods and elements. */
89
- icon: {
90
- /** Sets the icon HTML content */
91
- setIcon: (html: string) => IconManager;
92
- /** Gets the current icon HTML content */
93
- getIcon: () => string;
94
- /** Gets the icon DOM element */
95
- getElement: () => HTMLElement | null;
96
- };
97
- /** API for managing disabled state Access to low-level disabled state methods. */
98
- disabled: {
99
- /** Enables the FAB */
100
- enable: () => void;
101
- /** Disables the FAB */
102
- disable: () => void;
103
- /** Checks if the FAB is disabled */
104
- isDisabled: () => boolean;
105
- };
106
- /** API for managing component lifecycle Access to low-level lifecycle methods. */
107
- lifecycle: {
108
- /** Destroys the component and cleans up resources */
109
- destroy: () => void;
110
- };
111
- /**
112
- * Gets a class name with the component's prefix
113
- * @param name
114
- */
115
- getClass: (name: string) => string;
116
- /** Gets the FAB's value attribute */
117
- getValue: () => string;
118
- /**
119
- * Sets the FAB's value attribute
120
- * @param value
121
- */
122
- setValue: (value: string) => FabComponent;
123
- /** Enables the FAB (removes disabled attribute) Makes the FAB interactive and visually enabled. */
124
- enable: () => FabComponent;
125
- /** Disables the FAB (adds disabled attribute) Makes the FAB non-interactive and visually disabled. */
126
- disable: () => FabComponent;
127
- /** Whether the FAB is disabled */
128
- isDisabled: () => boolean;
129
- /**
130
- * Sets the FAB's icon
131
- * @param icon
132
- */
133
- setIcon: (icon: string) => FabComponent;
134
- /** Gets the FAB's icon HTML content */
135
- getIcon: () => string;
136
- /**
137
- * Sets the FAB's position Positions the FAB in one of the four corners of the viewport.
138
- * @param position
139
- */
140
- /** @deprecated Physical position alias; use the placement option/attribute. Removal in 4.0. */
141
- setPosition: (position: string) => FabComponent;
142
- /** Gets the current position of the FAB */
143
- /** @deprecated Reads only the physical position alias. Removal in 4.0. */
144
- getPosition: () => string | null;
145
- /** Lowers the FAB (useful for pressed state) Visually lowers the FAB by reducing its elevation, typically used to indicate a pressed or active state. */
146
- lower: () => FabComponent;
147
- /** Raises the FAB back to its default elevation Restores the default elevation after it has been lowered. */
148
- raise: () => FabComponent;
149
- /** Destroys the FAB component and cleans up resources Removes event listeners and prepares the component for garbage collection. */
150
- destroy: () => void;
151
- /**
152
- * Adds an event listener to the FAB
153
- * @param event
154
- * @param handler
155
- */
156
- on: <K extends keyof FabEvents>(event: K, handler: FabEvents[K]) => FabComponent;
157
- /**
158
- * Removes an event listener from the FAB
159
- * @param event
160
- * @param handler
161
- */
162
- off: <K extends keyof FabEvents>(event: K, handler: FabEvents[K]) => FabComponent;
163
- /**
164
- * Adds CSS classes to the FAB element
165
- * @param classes
166
- */
167
- addClass: (...classes: string[]) => FabComponent;
168
- }
@@ -1,8 +0,0 @@
1
- import type { FabMenuConfig, FabMenuComponent } from "./types.js";
2
- /**
3
- * Creates a FAB menu: M3 Expressive's FAB that opens a list of related actions.
4
- * @param config
5
- */
6
- declare const createFabMenu: (config: FabMenuConfig) => FabMenuComponent;
7
- export default createFabMenu;
8
- export { createFabMenu };