material 3.9.0 → 3.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (618) hide show
  1. package/NOTICE +3 -1
  2. package/README.md +5 -5
  3. package/dist/components/badge/index.d.ts +167 -3
  4. package/dist/components/bottom-app-bar/index.d.ts +141 -4
  5. package/dist/components/bottom-sheet/index.d.ts +114 -2
  6. package/dist/components/button/index.d.ts +10 -5
  7. package/dist/components/button-group/button-group.js +1 -0
  8. package/dist/components/button-group/config.js +9 -6
  9. package/dist/components/button-group/index.d.ts +250 -6
  10. package/dist/components/card/api.js +19 -0
  11. package/dist/components/card/index.d.ts +326 -5
  12. package/dist/components/carousel/features/slides.js +17 -7
  13. package/dist/components/carousel/index.d.ts +102 -3
  14. package/dist/components/checkbox/index.d.ts +217 -5
  15. package/dist/components/chips/chip/chip.js +4 -3
  16. package/dist/components/chips/index.d.ts +343 -3
  17. package/dist/components/datepicker/datepicker.js +62 -84
  18. package/dist/components/datepicker/index.d.ts +313 -2
  19. package/dist/components/datepicker/render.js +25 -21
  20. package/dist/components/datepicker/utils.js +65 -110
  21. package/dist/components/dialog/features.js +1 -1
  22. package/dist/components/dialog/index.d.ts +333 -3
  23. package/dist/components/divider/index.d.ts +96 -3
  24. package/dist/components/drawer/features/items.js +10 -2
  25. package/dist/components/drawer/index.d.ts +196 -3
  26. package/dist/components/extended-fab/index.d.ts +224 -2
  27. package/dist/components/fab/index.d.ts +183 -2
  28. package/dist/components/fab-menu/index.d.ts +106 -6
  29. package/dist/components/icon-button/index.d.ts +11 -4
  30. package/dist/components/list/features/anatomy.js +25 -6
  31. package/dist/components/list/features/selection.js +30 -2
  32. package/dist/components/list/index.d.ts +299 -6
  33. package/dist/components/loading-indicator/index.d.ts +91 -3
  34. package/dist/components/menu/features/controller.js +2 -0
  35. package/dist/components/menu/index.d.ts +10 -6
  36. package/dist/components/menu/inner.d.ts +2 -2
  37. package/dist/components/menu/on-demand.d.ts +5 -9
  38. package/dist/components/menu/types.d.ts +12 -7
  39. package/dist/components/navigation-bar/index.d.ts +70 -2
  40. package/dist/components/navigation-rail/index.d.ts +98 -2
  41. package/dist/components/progress/index.d.ts +9 -2
  42. package/dist/components/progress/types.d.ts +5 -5
  43. package/dist/components/radios/index.d.ts +158 -3
  44. package/dist/components/search/features/states.js +20 -39
  45. package/dist/components/search/features/structure.js +24 -4
  46. package/dist/components/search/features/suggestions.js +4 -0
  47. package/dist/components/search/index.d.ts +255 -2
  48. package/dist/components/select/index.d.ts +252 -6
  49. package/dist/components/side-sheet/index.d.ts +104 -2
  50. package/dist/components/slider/index.d.ts +236 -2
  51. package/dist/components/snackbar/api.js +26 -0
  52. package/dist/components/snackbar/constants.d.ts +4 -0
  53. package/dist/components/snackbar/constants.js +3 -1
  54. package/dist/components/snackbar/index.d.ts +215 -4
  55. package/dist/components/split-button/index.d.ts +10 -3
  56. package/dist/components/split-button/types.d.ts +3 -3
  57. package/dist/components/switch/index.d.ts +190 -3
  58. package/dist/components/tabs/index.d.ts +454 -12
  59. package/dist/components/tabs/index.js +1 -1
  60. package/dist/components/tabs/responsive-legacy.js +65 -0
  61. package/dist/components/tabs/responsive.d.ts +7 -32
  62. package/dist/components/tabs/responsive.js +4 -63
  63. package/dist/components/tabs/tabs.js +1 -0
  64. package/dist/components/text-field/config.js +3 -4
  65. package/dist/components/text-field/features/field.js +61 -0
  66. package/dist/components/text-field/features/leading-icon.js +12 -45
  67. package/dist/components/text-field/features/prefix-text.js +6 -40
  68. package/dist/components/text-field/features/suffix-text.js +6 -40
  69. package/dist/components/text-field/index.d.ts +338 -3
  70. package/dist/components/timepicker/constants.d.ts +4 -4
  71. package/dist/components/timepicker/constants.js +2 -2
  72. package/dist/components/timepicker/dial.js +30 -3
  73. package/dist/components/timepicker/index.d.ts +279 -5
  74. package/dist/components/timepicker/render.js +15 -9
  75. package/dist/components/toolbar/index.d.ts +145 -6
  76. package/dist/components/tooltip/index.d.ts +155 -3
  77. package/dist/components/top-app-bar/index.d.ts +92 -5
  78. package/dist/core/canvas/index.d.ts +172 -5
  79. package/dist/core/canvas/utils.js +3 -13
  80. package/dist/core/compose/cleanup.d.ts +1 -1
  81. package/dist/core/compose/features/icon-opt-in.js +5 -0
  82. package/dist/core/compose/features/icon-slot.js +100 -0
  83. package/dist/core/compose/features/textinput.js +2 -0
  84. package/dist/core/compose/features/track.js +4 -0
  85. package/dist/core/compose/index.d.ts +741 -8
  86. package/dist/core/config/component.d.ts +1 -4
  87. package/dist/core/dom/create.d.ts +1 -4
  88. package/dist/core/dom/index.d.ts +233 -12
  89. package/dist/core/index.d.ts +93 -14
  90. package/dist/core/navigation/destinations.d.ts +6 -6
  91. package/dist/core/shapes/index.d.ts +286 -6
  92. package/dist/core/state/index.d.ts +98 -5
  93. package/dist/core/theme/index.d.ts +80 -4
  94. package/dist/core/utils/index.d.ts +95 -9
  95. package/dist/core/utils/mobile.d.ts +2 -2
  96. package/dist/elements/adapter.d.ts +3 -3
  97. package/dist/elements/css/bottom-sheet.css +1 -1
  98. package/dist/elements/css/button-group.css +1 -1
  99. package/dist/elements/css/button.css +1 -1
  100. package/dist/elements/css/datepicker.css +1 -1
  101. package/dist/elements/css/dialog.css +1 -1
  102. package/dist/elements/css/drawer.css +1 -1
  103. package/dist/elements/css/icon-button.css +1 -1
  104. package/dist/elements/css/list.css +1 -1
  105. package/dist/elements/css/menu.css +1 -1
  106. package/dist/elements/css/side-sheet.css +1 -1
  107. package/dist/elements/css/snackbar.css +1 -1
  108. package/dist/elements/css/text-field.css +1 -1
  109. package/dist/elements/css/timepicker.css +1 -1
  110. package/dist/elements/css/toolbar.css +1 -1
  111. package/dist/elements/datepicker.js +1 -0
  112. package/dist/elements/define.d.ts +3 -3
  113. package/dist/elements/define.js +12 -1
  114. package/dist/elements/drawer.js +2 -0
  115. package/dist/elements/index.d.ts +3974 -107
  116. package/dist/elements/preupgrade/badge.css +1 -1
  117. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  118. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  119. package/dist/elements/preupgrade/button-group.css +2 -2
  120. package/dist/elements/preupgrade/button.css +2 -2
  121. package/dist/elements/preupgrade/card.css +1 -1
  122. package/dist/elements/preupgrade/carousel.css +1 -1
  123. package/dist/elements/preupgrade/checkbox.css +1 -1
  124. package/dist/elements/preupgrade/chips.css +1 -1
  125. package/dist/elements/preupgrade/datepicker.css +1 -1
  126. package/dist/elements/preupgrade/dialog.css +1 -1
  127. package/dist/elements/preupgrade/divider.css +1 -1
  128. package/dist/elements/preupgrade/drawer.css +2 -2
  129. package/dist/elements/preupgrade/extended-fab.css +1 -1
  130. package/dist/elements/preupgrade/fab-menu.css +1 -1
  131. package/dist/elements/preupgrade/fab.css +1 -1
  132. package/dist/elements/preupgrade/icon-button.css +2 -2
  133. package/dist/elements/preupgrade/list.css +2 -2
  134. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  135. package/dist/elements/preupgrade/menu.css +1 -1
  136. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  137. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  138. package/dist/elements/preupgrade/progress.css +1 -1
  139. package/dist/elements/preupgrade/radios.css +1 -1
  140. package/dist/elements/preupgrade/search.css +1 -1
  141. package/dist/elements/preupgrade/select.css +2 -2
  142. package/dist/elements/preupgrade/side-sheet.css +1 -1
  143. package/dist/elements/preupgrade/slider.css +1 -1
  144. package/dist/elements/preupgrade/snackbar.css +1 -1
  145. package/dist/elements/preupgrade/split-button.css +1 -1
  146. package/dist/elements/preupgrade/switch.css +1 -1
  147. package/dist/elements/preupgrade/tabs.css +1 -1
  148. package/dist/elements/preupgrade/text-field.css +2 -2
  149. package/dist/elements/preupgrade/timepicker.css +1 -1
  150. package/dist/elements/preupgrade/toolbar.css +1 -1
  151. package/dist/elements/preupgrade/tooltip.css +1 -1
  152. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  153. package/dist/elements/preupgrade.css +2 -2
  154. package/dist/elements/snackbar.js +2 -0
  155. package/dist/elements/styles.d.ts +7 -7
  156. package/dist/elements/styles.js +15 -15
  157. package/dist/elements/text-field.js +2 -0
  158. package/dist/index.d.ts +78 -4
  159. package/dist/react/create.d.ts +2 -6
  160. package/dist/react/index.d.ts +106 -52
  161. package/dist/react/jsx.d.ts +49 -49
  162. package/dist/solid/create.d.ts +2 -7
  163. package/dist/solid/index.d.ts +106 -52
  164. package/dist/solid/jsx.d.ts +51 -50
  165. package/dist/styles/badge.css +1 -1
  166. package/dist/styles/base-lite.css +2 -2
  167. package/dist/styles/base.css +2 -2
  168. package/dist/styles/bottom-app-bar.css +1 -1
  169. package/dist/styles/bottom-sheet.css +2 -2
  170. package/dist/styles/button-group.css +2 -2
  171. package/dist/styles/button.css +2 -2
  172. package/dist/styles/card.css +1 -1
  173. package/dist/styles/carousel.css +1 -1
  174. package/dist/styles/checkbox.css +1 -1
  175. package/dist/styles/chips.css +1 -1
  176. package/dist/styles/contrast.css +1 -1
  177. package/dist/styles/datepicker.css +2 -2
  178. package/dist/styles/dialog.css +2 -2
  179. package/dist/styles/divider.css +1 -1
  180. package/dist/styles/drawer.css +2 -2
  181. package/dist/styles/extended-fab.css +1 -1
  182. package/dist/styles/fab-menu.css +1 -1
  183. package/dist/styles/fab.css +1 -1
  184. package/dist/styles/icon-button.css +2 -2
  185. package/dist/styles/list.css +2 -2
  186. package/dist/styles/loading-indicator.css +1 -1
  187. package/dist/styles/menu.css +2 -2
  188. package/dist/styles/navigation-bar.css +1 -1
  189. package/dist/styles/navigation-rail.css +1 -1
  190. package/dist/styles/progress.css +1 -1
  191. package/dist/styles/radios.css +1 -1
  192. package/dist/styles/search.css +1 -1
  193. package/dist/styles/select.css +1 -1
  194. package/dist/styles/side-sheet.css +2 -2
  195. package/dist/styles/slider.css +1 -1
  196. package/dist/styles/snackbar.css +2 -2
  197. package/dist/styles/split-button.css +1 -1
  198. package/dist/styles/switch.css +1 -1
  199. package/dist/styles/tabs.css +1 -1
  200. package/dist/styles/text-field.css +2 -2
  201. package/dist/styles/timepicker.css +2 -2
  202. package/dist/styles/toolbar.css +2 -2
  203. package/dist/styles/tooltip.css +1 -1
  204. package/dist/styles/top-app-bar.css +1 -1
  205. package/dist/styles/typography.css +1 -1
  206. package/dist/styles/utilities.css +1 -1
  207. package/dist/styles.css +2 -2
  208. package/dist/svelte/runtime.d.ts +6 -10
  209. package/dist/theme/vendor/contrast/contrast.js +1 -16
  210. package/dist/theme/vendor/dislike/dislike_analyzer.js +1 -16
  211. package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +1 -16
  212. package/dist/theme/vendor/dynamiccolor/color_spec_2025.js +1 -16
  213. package/dist/theme/vendor/dynamiccolor/contrast_curve.js +1 -16
  214. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +2 -2
  215. package/dist/theme/vendor/dynamiccolor/dynamic_color.js +1 -16
  216. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +2 -2
  217. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +1 -16
  218. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +1 -16
  219. package/dist/theme/vendor/dynamiccolor/spec_2025.js +1 -16
  220. package/dist/theme/vendor/dynamiccolor/spec_extensions.js +1 -16
  221. package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +1 -16
  222. package/dist/theme/vendor/dynamiccolor/variant.js +1 -16
  223. package/dist/theme/vendor/hct/cam16.js +1 -16
  224. package/dist/theme/vendor/hct/hct.js +1 -16
  225. package/dist/theme/vendor/hct/hct_solver.js +1 -16
  226. package/dist/theme/vendor/hct/viewing_conditions.js +1 -16
  227. package/dist/theme/vendor/palettes/tonal_palette.d.ts +6 -9
  228. package/dist/theme/vendor/palettes/tonal_palette.js +1 -16
  229. package/dist/theme/vendor/quantize/lab_point_provider.js +1 -16
  230. package/dist/theme/vendor/quantize/quantizer_celebi.js +1 -16
  231. package/dist/theme/vendor/quantize/quantizer_map.js +1 -16
  232. package/dist/theme/vendor/quantize/quantizer_wsmeans.js +1 -16
  233. package/dist/theme/vendor/quantize/quantizer_wu.js +1 -16
  234. package/dist/theme/vendor/score/score.js +1 -16
  235. package/dist/theme/vendor/temperature/temperature_cache.js +1 -16
  236. package/dist/theme/vendor/utils/color_utils.js +1 -16
  237. package/dist/theme/vendor/utils/image_utils.js +1 -16
  238. package/dist/theme/vendor/utils/math_utils.js +1 -16
  239. package/dist/theme/vendor/utils/string_utils.js +1 -16
  240. package/dist/themes/autumn-contrast.css +1 -1
  241. package/dist/themes/autumn.css +1 -1
  242. package/dist/themes/baseline-contrast.css +1 -1
  243. package/dist/themes/baseline.css +1 -1
  244. package/dist/themes/brownbeige-contrast.css +1 -1
  245. package/dist/themes/brownbeige.css +1 -1
  246. package/dist/themes/content-contrast.css +1 -1
  247. package/dist/themes/content.css +1 -1
  248. package/dist/themes/desert-contrast.css +1 -1
  249. package/dist/themes/desert.css +1 -1
  250. package/dist/themes/expressive-contrast.css +1 -1
  251. package/dist/themes/expressive.css +1 -1
  252. package/dist/themes/fidelity-contrast.css +1 -1
  253. package/dist/themes/fidelity.css +1 -1
  254. package/dist/themes/forest-contrast.css +1 -1
  255. package/dist/themes/forest.css +1 -1
  256. package/dist/themes/fruit-salad-contrast.css +1 -1
  257. package/dist/themes/fruit-salad.css +1 -1
  258. package/dist/themes/highcontrast-contrast.css +1 -1
  259. package/dist/themes/highcontrast.css +1 -1
  260. package/dist/themes/monochrome-contrast.css +1 -1
  261. package/dist/themes/monochrome.css +1 -1
  262. package/dist/themes/neutral-contrast.css +1 -1
  263. package/dist/themes/neutral.css +1 -1
  264. package/dist/themes/ocean-contrast.css +1 -1
  265. package/dist/themes/ocean.css +1 -1
  266. package/dist/themes/rainbow-contrast.css +1 -1
  267. package/dist/themes/rainbow.css +1 -1
  268. package/dist/themes/sageivory-contrast.css +1 -1
  269. package/dist/themes/sageivory.css +1 -1
  270. package/dist/themes/spring-contrast.css +1 -1
  271. package/dist/themes/spring.css +1 -1
  272. package/dist/themes/summer-contrast.css +1 -1
  273. package/dist/themes/summer.css +1 -1
  274. package/dist/themes/sunset-contrast.css +1 -1
  275. package/dist/themes/sunset.css +1 -1
  276. package/dist/themes/tealcaramel-contrast.css +1 -1
  277. package/dist/themes/tealcaramel.css +1 -1
  278. package/dist/themes/vibrant-contrast.css +1 -1
  279. package/dist/themes/vibrant.css +1 -1
  280. package/dist/vue/index.d.ts +188 -53
  281. package/package.json +5 -1
  282. package/src/styles/abstract/_functions.scss +22 -1
  283. package/src/styles/abstract/_variables.scss +0 -2
  284. package/src/styles/base/_tokens.scss +12 -0
  285. package/src/styles/components/_bottom-sheet.scss +1 -0
  286. package/src/styles/components/_button-group.scss +9 -5
  287. package/src/styles/components/_button.scss +9 -12
  288. package/src/styles/components/_datepicker.scss +2 -1
  289. package/src/styles/components/_dialog.scss +1 -0
  290. package/src/styles/components/_drawer.scss +33 -65
  291. package/src/styles/components/_icon-button.scss +32 -33
  292. package/src/styles/components/_list.scss +19 -5
  293. package/src/styles/components/_menu.scss +1 -0
  294. package/src/styles/components/_side-sheet.scss +1 -0
  295. package/src/styles/components/_snackbar.scss +1 -0
  296. package/src/styles/components/_text-field.scss +17 -109
  297. package/src/styles/components/_timepicker.scss +19 -5
  298. package/src/styles/components/_toolbar.scss +4 -4
  299. package/src/styles/elements/_button-group.scss +17 -4
  300. package/src/styles/elements/_button.scss +3 -2
  301. package/src/styles/elements/_drawer.scss +2 -1
  302. package/src/styles/elements/_field.scss +25 -14
  303. package/src/styles/elements/_icon-button.scss +8 -3
  304. package/src/styles/elements/_list.scss +3 -2
  305. package/src/styles/elements/_text-field.scss +71 -47
  306. package/dist/components/badge/badge.d.ts +0 -7
  307. package/dist/components/badge/types.d.ts +0 -152
  308. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -12
  309. package/dist/components/bottom-app-bar/types.d.ts +0 -124
  310. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -7
  311. package/dist/components/bottom-sheet/types.d.ts +0 -100
  312. package/dist/components/button/button.d.ts +0 -7
  313. package/dist/components/button-group/button-group.d.ts +0 -7
  314. package/dist/components/button-group/types.d.ts +0 -227
  315. package/dist/components/card/card.d.ts +0 -7
  316. package/dist/components/card/content.d.ts +0 -22
  317. package/dist/components/card/types.d.ts +0 -272
  318. package/dist/components/carousel/carousel.d.ts +0 -4
  319. package/dist/components/carousel/types.d.ts +0 -81
  320. package/dist/components/checkbox/checkbox.d.ts +0 -8
  321. package/dist/components/checkbox/types.d.ts +0 -199
  322. package/dist/components/chips/chips.d.ts +0 -7
  323. package/dist/components/chips/factories.d.ts +0 -9
  324. package/dist/components/chips/types.d.ts +0 -304
  325. package/dist/components/datepicker/datepicker.d.ts +0 -7
  326. package/dist/components/datepicker/types.d.ts +0 -300
  327. package/dist/components/datepicker/types.js +0 -17
  328. package/dist/components/dialog/dialog.d.ts +0 -8
  329. package/dist/components/dialog/types.d.ts +0 -311
  330. package/dist/components/divider/config.d.ts +0 -43
  331. package/dist/components/divider/divider.d.ts +0 -7
  332. package/dist/components/divider/types.d.ts +0 -43
  333. package/dist/components/drawer/drawer.d.ts +0 -7
  334. package/dist/components/drawer/types.d.ts +0 -179
  335. package/dist/components/extended-fab/extended-fab.d.ts +0 -7
  336. package/dist/components/extended-fab/types.d.ts +0 -208
  337. package/dist/components/fab/fab.d.ts +0 -7
  338. package/dist/components/fab/types.d.ts +0 -168
  339. package/dist/components/fab-menu/fab-menu.d.ts +0 -8
  340. package/dist/components/fab-menu/types.d.ts +0 -91
  341. package/dist/components/icon-button/icon-button.d.ts +0 -7
  342. package/dist/components/index.d.ts +0 -82
  343. package/dist/components/list/features/listbox.d.ts +0 -16
  344. package/dist/components/list/list.d.ts +0 -7
  345. package/dist/components/list/types.d.ts +0 -257
  346. package/dist/components/loading-indicator/features/renderer.d.ts +0 -28
  347. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -7
  348. package/dist/components/loading-indicator/types.d.ts +0 -53
  349. package/dist/components/menu/menu.d.ts +0 -7
  350. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -3
  351. package/dist/components/navigation-bar/types.d.ts +0 -59
  352. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -3
  353. package/dist/components/navigation-rail/types.d.ts +0 -87
  354. package/dist/components/progress/progress.d.ts +0 -7
  355. package/dist/components/radios/radios.d.ts +0 -7
  356. package/dist/components/radios/types.d.ts +0 -144
  357. package/dist/components/search/search.d.ts +0 -7
  358. package/dist/components/search/types.d.ts +0 -235
  359. package/dist/components/select/select.d.ts +0 -7
  360. package/dist/components/select/types.d.ts +0 -232
  361. package/dist/components/side-sheet/side-sheet.d.ts +0 -7
  362. package/dist/components/side-sheet/types.d.ts +0 -91
  363. package/dist/components/slider/slider.d.ts +0 -7
  364. package/dist/components/slider/types.d.ts +0 -218
  365. package/dist/components/snackbar/snackbar.d.ts +0 -9
  366. package/dist/components/snackbar/types.d.ts +0 -180
  367. package/dist/components/split-button/split-button.d.ts +0 -7
  368. package/dist/components/switch/switch.d.ts +0 -7
  369. package/dist/components/switch/types.d.ts +0 -171
  370. package/dist/components/tabs/indicator.d.ts +0 -44
  371. package/dist/components/tabs/tab.d.ts +0 -7
  372. package/dist/components/tabs/tabs.d.ts +0 -7
  373. package/dist/components/tabs/types.d.ts +0 -304
  374. package/dist/components/tabs/utils.d.ts +0 -46
  375. package/dist/components/text-field/features/trailing-icon.d.ts +0 -54
  376. package/dist/components/text-field/text-field.d.ts +0 -7
  377. package/dist/components/text-field/types.d.ts +0 -261
  378. package/dist/components/timepicker/timepicker.d.ts +0 -3
  379. package/dist/components/timepicker/types.d.ts +0 -258
  380. package/dist/components/toolbar/toolbar.d.ts +0 -8
  381. package/dist/components/toolbar/types.d.ts +0 -129
  382. package/dist/components/tooltip/tooltip.d.ts +0 -7
  383. package/dist/components/tooltip/types.d.ts +0 -137
  384. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -7
  385. package/dist/components/top-app-bar/types.d.ts +0 -80
  386. package/dist/core/canvas/animation.d.ts +0 -20
  387. package/dist/core/canvas/drawing.d.ts +0 -67
  388. package/dist/core/canvas/resize.d.ts +0 -8
  389. package/dist/core/canvas/utils.d.ts +0 -62
  390. package/dist/core/compose/base.d.ts +0 -18
  391. package/dist/core/compose/features/badge.d.ts +0 -27
  392. package/dist/core/compose/features/checkable.d.ts +0 -33
  393. package/dist/core/compose/features/debounce.d.ts +0 -45
  394. package/dist/core/compose/features/disabled.d.ts +0 -26
  395. package/dist/core/compose/features/events.d.ts +0 -31
  396. package/dist/core/compose/features/index.d.ts +0 -34
  397. package/dist/core/compose/features/input.d.ts +0 -54
  398. package/dist/core/compose/features/lifecycle.d.ts +0 -41
  399. package/dist/core/compose/features/position.d.ts +0 -36
  400. package/dist/core/compose/features/ripple.d.ts +0 -35
  401. package/dist/core/compose/features/size.d.ts +0 -12
  402. package/dist/core/compose/features/style.d.ts +0 -11
  403. package/dist/core/compose/features/textinput.d.ts +0 -66
  404. package/dist/core/compose/features/textlabel.d.ts +0 -34
  405. package/dist/core/compose/features/throttle.d.ts +0 -38
  406. package/dist/core/compose/features/track.d.ts +0 -24
  407. package/dist/core/compose/features/variant.d.ts +0 -12
  408. package/dist/core/compose/features/withEvents.d.ts +0 -27
  409. package/dist/core/compose/pipe.d.ts +0 -55
  410. package/dist/core/compose/utils/type-guards.d.ts +0 -17
  411. package/dist/core/config.d.ts +0 -72
  412. package/dist/core/dom/attributes.d.ts +0 -34
  413. package/dist/core/dom/classes.d.ts +0 -29
  414. package/dist/core/dom/events.d.ts +0 -43
  415. package/dist/core/dom/focus.d.ts +0 -15
  416. package/dist/core/dom/html.d.ts +0 -16
  417. package/dist/core/dom/layer.d.ts +0 -57
  418. package/dist/core/dom/roving.d.ts +0 -18
  419. package/dist/core/shapes/cubic.d.ts +0 -45
  420. package/dist/core/shapes/material.d.ts +0 -131
  421. package/dist/core/shapes/polygon.d.ts +0 -38
  422. package/dist/core/state/events.d.ts +0 -25
  423. package/dist/core/state/store.d.ts +0 -60
  424. package/dist/core/theme/shape.d.ts +0 -5
  425. package/dist/core/theme/tokens.d.ts +0 -67
  426. package/dist/core/utils/background.d.ts +0 -13
  427. package/dist/core/utils/color.d.ts +0 -6
  428. package/dist/core/utils/object.d.ts +0 -11
  429. package/dist/core/utils/performance.d.ts +0 -32
  430. package/dist/core/utils/theme.d.ts +0 -17
  431. package/dist/core/utils/url.d.ts +0 -6
  432. package/dist/elements/badge.d.ts +0 -57
  433. package/dist/elements/bottom-app-bar.d.ts +0 -66
  434. package/dist/elements/bottom-sheet.d.ts +0 -107
  435. package/dist/elements/button-group.d.ts +0 -142
  436. package/dist/elements/button.d.ts +0 -101
  437. package/dist/elements/card.d.ts +0 -69
  438. package/dist/elements/carousel.d.ts +0 -119
  439. package/dist/elements/checkbox.d.ts +0 -97
  440. package/dist/elements/chips.d.ts +0 -126
  441. package/dist/elements/datepicker.d.ts +0 -131
  442. package/dist/elements/dialog.d.ts +0 -101
  443. package/dist/elements/divider.d.ts +0 -52
  444. package/dist/elements/drawer.d.ts +0 -119
  445. package/dist/elements/extended-fab.d.ts +0 -97
  446. package/dist/elements/fab-menu.d.ts +0 -102
  447. package/dist/elements/fab.d.ts +0 -71
  448. package/dist/elements/list.d.ts +0 -127
  449. package/dist/elements/loading-indicator.d.ts +0 -47
  450. package/dist/elements/menu.d.ts +0 -144
  451. package/dist/elements/navigation-bar.d.ts +0 -104
  452. package/dist/elements/navigation-rail.d.ts +0 -145
  453. package/dist/elements/progress.d.ts +0 -87
  454. package/dist/elements/radios.d.ts +0 -92
  455. package/dist/elements/search.d.ts +0 -202
  456. package/dist/elements/select.d.ts +0 -119
  457. package/dist/elements/side-sheet.d.ts +0 -86
  458. package/dist/elements/slider.d.ts +0 -160
  459. package/dist/elements/snackbar.d.ts +0 -87
  460. package/dist/elements/split-button.d.ts +0 -87
  461. package/dist/elements/switch.d.ts +0 -98
  462. package/dist/elements/tabs.d.ts +0 -76
  463. package/dist/elements/text-field.d.ts +0 -170
  464. package/dist/elements/timepicker.d.ts +0 -148
  465. package/dist/elements/toolbar.d.ts +0 -98
  466. package/dist/elements/tooltip.d.ts +0 -75
  467. package/dist/elements/top-app-bar.d.ts +0 -60
  468. package/dist/react/badge.d.ts +0 -4
  469. package/dist/react/bottom-app-bar.d.ts +0 -5
  470. package/dist/react/bottom-sheet.d.ts +0 -4
  471. package/dist/react/button-group-item.d.ts +0 -3
  472. package/dist/react/button-group.d.ts +0 -7
  473. package/dist/react/button.d.ts +0 -5
  474. package/dist/react/card.d.ts +0 -4
  475. package/dist/react/carousel-item.d.ts +0 -3
  476. package/dist/react/carousel.d.ts +0 -4
  477. package/dist/react/checkbox.d.ts +0 -4
  478. package/dist/react/chip.d.ts +0 -3
  479. package/dist/react/chips.d.ts +0 -4
  480. package/dist/react/datepicker.d.ts +0 -4
  481. package/dist/react/dialog.d.ts +0 -7
  482. package/dist/react/divider.d.ts +0 -4
  483. package/dist/react/drawer-item.d.ts +0 -3
  484. package/dist/react/drawer.d.ts +0 -4
  485. package/dist/react/extended-fab.d.ts +0 -4
  486. package/dist/react/fab-menu-item.d.ts +0 -3
  487. package/dist/react/fab-menu.d.ts +0 -6
  488. package/dist/react/fab.d.ts +0 -4
  489. package/dist/react/icon-button.d.ts +0 -4
  490. package/dist/react/list-item.d.ts +0 -3
  491. package/dist/react/list.d.ts +0 -4
  492. package/dist/react/loading-indicator.d.ts +0 -4
  493. package/dist/react/menu-item.d.ts +0 -3
  494. package/dist/react/menu.d.ts +0 -4
  495. package/dist/react/navigation-bar-item.d.ts +0 -3
  496. package/dist/react/navigation-bar.d.ts +0 -4
  497. package/dist/react/navigation-rail-item.d.ts +0 -3
  498. package/dist/react/navigation-rail.d.ts +0 -4
  499. package/dist/react/progress.d.ts +0 -4
  500. package/dist/react/radio.d.ts +0 -3
  501. package/dist/react/radios.d.ts +0 -4
  502. package/dist/react/search-suggestion.d.ts +0 -3
  503. package/dist/react/search.d.ts +0 -4
  504. package/dist/react/select-option.d.ts +0 -3
  505. package/dist/react/select.d.ts +0 -6
  506. package/dist/react/side-sheet.d.ts +0 -4
  507. package/dist/react/slider.d.ts +0 -4
  508. package/dist/react/snackbar.d.ts +0 -7
  509. package/dist/react/split-button.d.ts +0 -7
  510. package/dist/react/switch.d.ts +0 -4
  511. package/dist/react/tab.d.ts +0 -3
  512. package/dist/react/tabs.d.ts +0 -7
  513. package/dist/react/text-field.d.ts +0 -4
  514. package/dist/react/timepicker.d.ts +0 -4
  515. package/dist/react/toolbar.d.ts +0 -5
  516. package/dist/react/tooltip.d.ts +0 -4
  517. package/dist/react/top-app-bar.d.ts +0 -4
  518. package/dist/solid/badge.d.ts +0 -4
  519. package/dist/solid/bottom-app-bar.d.ts +0 -5
  520. package/dist/solid/bottom-sheet.d.ts +0 -4
  521. package/dist/solid/button-group-item.d.ts +0 -3
  522. package/dist/solid/button-group.d.ts +0 -7
  523. package/dist/solid/button.d.ts +0 -5
  524. package/dist/solid/card.d.ts +0 -4
  525. package/dist/solid/carousel-item.d.ts +0 -3
  526. package/dist/solid/carousel.d.ts +0 -4
  527. package/dist/solid/checkbox.d.ts +0 -4
  528. package/dist/solid/chip.d.ts +0 -3
  529. package/dist/solid/chips.d.ts +0 -4
  530. package/dist/solid/datepicker.d.ts +0 -4
  531. package/dist/solid/dialog.d.ts +0 -7
  532. package/dist/solid/divider.d.ts +0 -4
  533. package/dist/solid/drawer-item.d.ts +0 -3
  534. package/dist/solid/drawer.d.ts +0 -4
  535. package/dist/solid/extended-fab.d.ts +0 -4
  536. package/dist/solid/fab-menu-item.d.ts +0 -3
  537. package/dist/solid/fab-menu.d.ts +0 -6
  538. package/dist/solid/fab.d.ts +0 -4
  539. package/dist/solid/icon-button.d.ts +0 -4
  540. package/dist/solid/list-item.d.ts +0 -3
  541. package/dist/solid/list.d.ts +0 -4
  542. package/dist/solid/loading-indicator.d.ts +0 -4
  543. package/dist/solid/menu-item.d.ts +0 -3
  544. package/dist/solid/menu.d.ts +0 -4
  545. package/dist/solid/navigation-bar-item.d.ts +0 -3
  546. package/dist/solid/navigation-bar.d.ts +0 -4
  547. package/dist/solid/navigation-rail-item.d.ts +0 -3
  548. package/dist/solid/navigation-rail.d.ts +0 -4
  549. package/dist/solid/progress.d.ts +0 -4
  550. package/dist/solid/radio.d.ts +0 -3
  551. package/dist/solid/radios.d.ts +0 -4
  552. package/dist/solid/search-suggestion.d.ts +0 -3
  553. package/dist/solid/search.d.ts +0 -4
  554. package/dist/solid/select-option.d.ts +0 -3
  555. package/dist/solid/select.d.ts +0 -6
  556. package/dist/solid/side-sheet.d.ts +0 -4
  557. package/dist/solid/slider.d.ts +0 -4
  558. package/dist/solid/snackbar.d.ts +0 -7
  559. package/dist/solid/split-button.d.ts +0 -7
  560. package/dist/solid/switch.d.ts +0 -4
  561. package/dist/solid/tab.d.ts +0 -3
  562. package/dist/solid/tabs.d.ts +0 -7
  563. package/dist/solid/text-field.d.ts +0 -4
  564. package/dist/solid/timepicker.d.ts +0 -4
  565. package/dist/solid/toolbar.d.ts +0 -5
  566. package/dist/solid/tooltip.d.ts +0 -4
  567. package/dist/solid/top-app-bar.d.ts +0 -4
  568. package/dist/vue/badge.d.ts +0 -4
  569. package/dist/vue/bottom-app-bar.d.ts +0 -5
  570. package/dist/vue/bottom-sheet.d.ts +0 -4
  571. package/dist/vue/button-group-item.d.ts +0 -3
  572. package/dist/vue/button-group.d.ts +0 -7
  573. package/dist/vue/button.d.ts +0 -5
  574. package/dist/vue/card.d.ts +0 -4
  575. package/dist/vue/carousel-item.d.ts +0 -3
  576. package/dist/vue/carousel.d.ts +0 -4
  577. package/dist/vue/checkbox.d.ts +0 -4
  578. package/dist/vue/chip.d.ts +0 -3
  579. package/dist/vue/chips.d.ts +0 -4
  580. package/dist/vue/create.d.ts +0 -73
  581. package/dist/vue/datepicker.d.ts +0 -4
  582. package/dist/vue/dialog.d.ts +0 -7
  583. package/dist/vue/divider.d.ts +0 -4
  584. package/dist/vue/drawer-item.d.ts +0 -3
  585. package/dist/vue/drawer.d.ts +0 -4
  586. package/dist/vue/extended-fab.d.ts +0 -4
  587. package/dist/vue/fab-menu-item.d.ts +0 -3
  588. package/dist/vue/fab-menu.d.ts +0 -6
  589. package/dist/vue/fab.d.ts +0 -4
  590. package/dist/vue/icon-button.d.ts +0 -4
  591. package/dist/vue/list-item.d.ts +0 -3
  592. package/dist/vue/list.d.ts +0 -4
  593. package/dist/vue/loading-indicator.d.ts +0 -4
  594. package/dist/vue/menu-item.d.ts +0 -3
  595. package/dist/vue/menu.d.ts +0 -4
  596. package/dist/vue/navigation-bar-item.d.ts +0 -3
  597. package/dist/vue/navigation-bar.d.ts +0 -4
  598. package/dist/vue/navigation-rail-item.d.ts +0 -3
  599. package/dist/vue/navigation-rail.d.ts +0 -4
  600. package/dist/vue/progress.d.ts +0 -4
  601. package/dist/vue/radio.d.ts +0 -3
  602. package/dist/vue/radios.d.ts +0 -4
  603. package/dist/vue/search-suggestion.d.ts +0 -3
  604. package/dist/vue/search.d.ts +0 -4
  605. package/dist/vue/select-option.d.ts +0 -3
  606. package/dist/vue/select.d.ts +0 -6
  607. package/dist/vue/side-sheet.d.ts +0 -4
  608. package/dist/vue/slider.d.ts +0 -4
  609. package/dist/vue/snackbar.d.ts +0 -7
  610. package/dist/vue/split-button.d.ts +0 -7
  611. package/dist/vue/switch.d.ts +0 -4
  612. package/dist/vue/tab.d.ts +0 -3
  613. package/dist/vue/tabs.d.ts +0 -7
  614. package/dist/vue/text-field.d.ts +0 -4
  615. package/dist/vue/timepicker.d.ts +0 -4
  616. package/dist/vue/toolbar.d.ts +0 -5
  617. package/dist/vue/tooltip.d.ts +0 -4
  618. package/dist/vue/top-app-bar.d.ts +0 -4
@@ -1,5 +1,6 @@
1
1
  @use 'config' as c;
2
2
  @use 'field';
3
+ @use '../abstract/functions' as f;
3
4
  @use '../abstract/variables' as v;
4
5
  @use '../abstract/mixins' as m;
5
6
  @use '../abstract/theme' as t;
@@ -14,8 +15,8 @@ content: attr(value) ' ';
14
15
  display: inline-block;
15
16
  box-sizing: border-box;
16
17
  width: 100%;
17
- height: v.text-field('height');
18
- padding: 24.5px v.text-field('padding-horizontal') 0;
18
+ height: f.density(v.text-field('height'), 40px);
19
+ padding: f.density(24.5px, 12.5px, 3px) v.text-field('padding-horizontal') 0;
19
20
  border-radius: v.text-field('border-radius') v.text-field('border-radius') 0 0;
20
21
  border-bottom: v.text-field('border-width') solid t.color('on-surface-variant');
21
22
  background-color: t.color('surface-container-highest');
@@ -26,62 +27,48 @@ overflow: clip;
26
27
  }
27
28
 
28
29
  &:not([label])::before {
29
- padding-top: 16.5px;
30
+ padding-top: f.density(16.5px, 8.5px, 2px);
30
31
  }
31
32
 
32
33
  &[variant='outlined']::before {
33
- padding-top: 15.5px;
34
+ padding-top: f.density(15.5px, 7.5px, 2px);
34
35
  border: v.text-field('border-width') solid t.color('outline');
35
36
  border-radius: v.text-field('border-radius');
36
37
  background: none;
37
38
  }
38
39
 
39
- &[density='compact'] {
40
- &::before {
41
- height: 40px;
42
- padding-top: 13.5px;
43
- @include m.typography('body-medium');
44
- }
45
-
46
- &:not([label])::before { padding-top: 10px; }
47
- &[variant='outlined']::before { padding-top: 9px; }
48
- }
49
40
 
50
41
  &[supporting-text]:not([supporting-text='']),
51
42
  &[maxlength] {
52
43
  &::before {
53
- height: calc(#{v.text-field('height')} + #{field.$supporting-row});
44
+ height: calc(#{f.density(v.text-field('height'), 40px)} + #{field.$supporting-row});
54
45
  border-bottom: field.$supporting-row solid transparent;
55
46
  background-clip: padding-box;
56
47
  background-image: linear-gradient(to top, #{t.color('on-surface-variant')} v.text-field('border-width'), transparent v.text-field('border-width'));
57
48
  }
58
49
 
59
50
  &[variant='outlined']::before {
60
- padding-top: calc(15.5px + #{v.text-field('border-width')});
51
+ padding-top: calc(#{f.density(15.5px, 7.5px, 2px)} + #{v.text-field('border-width')});
61
52
  padding-left: calc(#{v.text-field('padding-horizontal')} + #{v.text-field('border-width')});
62
53
  border-width: 0 0 field.$supporting-row;
63
54
  border-radius: v.text-field('border-radius') / v.text-field('border-radius') v.text-field('border-radius') calc(#{v.text-field('border-radius')} + #{field.$supporting-row}) calc(#{v.text-field('border-radius')} + #{field.$supporting-row});
64
55
  background-image: none;
65
56
  box-shadow: inset 0 0 0 v.text-field('border-width') t.color('outline');
66
57
  }
67
-
68
- &[density='compact']::before {
69
- height: calc(40px + #{field.$supporting-row});
70
- }
71
58
  }
72
59
 
73
60
  &[label]::after {
74
61
  content: attr(label);
75
62
  white-space: nowrap;
76
63
  position: absolute;
77
- top: v.text-field('padding-vertical');
64
+ top: f.density(v.text-field('padding-vertical'), 8px, 2px);
78
65
  left: v.text-field('padding-horizontal');
79
66
  color: t.color('on-surface-variant');
80
67
  @include m.typography('body-large');
81
68
  }
82
69
 
83
70
  &[label][value]:not([value=''])::after {
84
- top: 8px;
71
+ top: f.density(8px, 0px, 2px);
85
72
  @include m.typography('body-small');
86
73
  }
87
74
 
@@ -91,67 +78,104 @@ padding: 0 4px;
91
78
  left: 12px;
92
79
  }
93
80
 
94
- &[density='compact']::after {
95
- top: 10px;
96
- @include m.typography('body-medium');
97
- }
98
-
99
81
  &[type='multiline'] {
100
82
  &::before {
101
83
  display: inline-flex;
102
- height: v.text-field('height-multiline');
103
- padding-top: v.text-field('padding-top-multiline');
84
+ height: f.density(v.text-field('height-multiline'), 84px);
85
+ padding-top: f.density(v.text-field('padding-top-multiline'), 8px, 2px);
104
86
  }
105
87
 
106
88
  &[label]::before {
107
- padding-top: v.text-field('padding-top-multiline-label');
89
+ padding-top: f.density(v.text-field('padding-top-multiline-label'), 12px, 3px);
108
90
  }
109
91
 
110
92
  &[variant='outlined']::before {
111
- padding-top: calc(#{v.text-field('padding-top-multiline')} - #{v.text-field('border-width')});
93
+ padding-top: calc(#{f.density(v.text-field('padding-top-multiline'), 8px, 2px)} - #{v.text-field('border-width')});
94
+ }
95
+
96
+ &[supporting-text]:not([supporting-text='']),
97
+ &[maxlength] {
98
+ &::before {
99
+ height: calc(#{f.density(v.text-field('height-multiline'), 84px)} + #{field.$supporting-row});
100
+ }
101
+
102
+ &[variant='outlined']::before {
103
+ padding-top: f.density(v.text-field('padding-top-multiline'), 8px, 2px);
104
+ }
105
+ }
106
+ }
107
+
108
+ &[type='password' i]::before,
109
+ &[type='hidden' i]::before {
110
+ content: ' ';
111
+ }
112
+
113
+ &[type='hidden' i] {
114
+ display: none;
112
115
  }
113
116
 
114
117
  &[density='compact'] {
115
118
  &::before {
116
119
  height: 40px;
117
- padding-top: v.text-field('padding-top-multiline-compact');
120
+ padding-top: 12.5px;
118
121
  }
119
122
 
120
- &[label]::before {
121
- padding-top: v.text-field('padding-top-multiline-compact-label');
123
+ &:not([label])::before {
124
+ padding-top: 8.5px;
122
125
  }
123
126
 
124
127
  &[variant='outlined']::before {
125
- padding-top: calc(#{v.text-field('padding-top-multiline-compact')} - #{v.text-field('border-width')});
126
- }
128
+ padding-top: 7.5px;
127
129
  }
128
130
 
129
131
  &[supporting-text]:not([supporting-text='']),
130
132
  &[maxlength] {
131
133
  &::before {
132
- height: calc(#{v.text-field('height-multiline')} + #{field.$supporting-row});
134
+ height: calc(40px + #{field.$supporting-row});
133
135
  }
134
136
 
135
137
  &[variant='outlined']::before {
136
- padding-top: v.text-field('padding-top-multiline');
138
+ padding-top: calc(7.5px + #{v.text-field('border-width')});
139
+ }
137
140
  }
138
141
 
139
- &[density='compact'] {
140
- &::before { height: calc(40px + #{field.$supporting-row}); }
141
- &[variant='outlined']::before {
142
- padding-top: v.text-field('padding-top-multiline-compact');
142
+ &[label]::after {
143
+ top: 8px;
143
144
  }
145
+
146
+ &[label][value]:not([value=''])::after {
147
+ top: 0;
144
148
  }
149
+
150
+ &[variant='outlined'][label][value]:not([value=''])::after {
151
+ top: -8px;
145
152
  }
153
+
154
+ &[type='multiline'] {
155
+ &::before {
156
+ height: 84px;
157
+ padding-top: 8px;
146
158
  }
147
159
 
148
- &[type='password' i]::before,
149
- &[type='hidden' i]::before {
150
- content: ' ';
160
+ &[label]::before {
161
+ padding-top: 12px;
151
162
  }
152
163
 
153
- &[type='hidden' i] {
154
- display: none;
164
+ &[variant='outlined']::before {
165
+ padding-top: calc(8px - #{v.text-field('border-width')});
166
+ }
167
+
168
+ &[supporting-text]:not([supporting-text='']),
169
+ &[maxlength] {
170
+ &::before {
171
+ height: calc(84px + #{field.$supporting-row});
172
+ }
173
+
174
+ &[variant='outlined']::before {
175
+ padding-top: 8px;
176
+ }
177
+ }
178
+ }
155
179
  }
156
180
 
157
181
  > * { display: none; }
@@ -1,7 +0,0 @@
1
- import { BadgeConfig, BadgeComponent } from "./types.js";
2
- /**
3
- * Creates a new Badge component following Material Design 3 guidelines.
4
- * @param config
5
- */
6
- declare const createBadge: (config?: BadgeConfig) => BadgeComponent;
7
- export default createBadge;
@@ -1,152 +0,0 @@
1
- import { ElementComponent } from "../../core/compose/component.js";
2
- /** Badge variant types - determines the badge size and appearance */
3
- export type BadgeVariant = 'small' | 'large';
4
- /** Badge color types - determines the badge's background color */
5
- export type BadgeColor = 'error' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'info';
6
- /** Badge position types - determines where the badge appears relative to its target */
7
- export type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
8
- /** Configuration interface for the Badge component */
9
- export interface BadgeConfig {
10
- /**
11
- * Badge variant (small dot or large numbered)
12
- * @default 'large'
13
- */
14
- variant?: BadgeVariant | string;
15
- /**
16
- * Badge color (follows Material Design 3 color system)
17
- * @default 'error'
18
- */
19
- color?: BadgeColor | string;
20
- /**
21
- * Badge position relative to its container element
22
- * @default 'top-right'
23
- */
24
- position?: BadgePosition | string;
25
- /** Text label inside the badge (for large badges) Up to 4 characters, numbers exceeding max will show "{max}+" For a small dot, nonnumeric text supplies its accessible announcement; otherwise it announces "New notification" without rendering text. */
26
- label?: string | number;
27
- /** Maximum value to display (shows "{max}+" if label exceeds max) */
28
- max?: number;
29
- /**
30
- * Whether the badge should be initially visible
31
- * @default true
32
- */
33
- visible?: boolean;
34
- /** Target element to which badge will be attached */
35
- target?: HTMLElement;
36
- /** Additional CSS classes to apply to the badge element */
37
- class?: string;
38
- /**
39
- * CSS class prefix for all badge classes
40
- * @default "mtrl"
41
- */
42
- prefix?: string;
43
- /**
44
- * Component name used in CSS class generation
45
- * @default "badge"
46
- */
47
- componentName?: string;
48
- }
49
- /** The visibility control withVisibility installs on a badge. */
50
- export interface BadgeVisibility {
51
- /** Shows the badge */
52
- show: () => void;
53
- /** Hides the badge */
54
- hide: () => void;
55
- /** Toggles badge visibility, or forces it when given a flag */
56
- toggle: (visible?: boolean) => void;
57
- /** Whether the badge is currently visible */
58
- isVisible: () => boolean;
59
- }
60
- /** What a badge feature enhancer needs from the component it is handed. */
61
- export interface BadgeFeatureHost extends ElementComponent {
62
- config: BadgeConfig & Record<string, unknown>;
63
- wrapper?: HTMLElement;
64
- }
65
- /** Badge component interface */
66
- export interface BadgeComponent {
67
- /** The badge's root DOM element */
68
- element: HTMLElement;
69
- /** Badge wrapper element (if badge is attached to target) */
70
- wrapper?: HTMLElement;
71
- /**
72
- * Sets the badge's text label
73
- * @param label
74
- */
75
- setLabel: (label: string | number) => BadgeComponent;
76
- /** Gets the badge's current text label */
77
- getLabel: () => string;
78
- /**
79
- * Sets the badge's content (alias for setLabel)
80
- * @param content
81
- */
82
- setContent: (content: string | number) => BadgeComponent;
83
- /** Gets the badge's current content (alias for getLabel) */
84
- getContent: () => string;
85
- /** Shows the badge (makes it visible) */
86
- show: () => BadgeComponent;
87
- /** Hides the badge (makes it invisible) */
88
- hide: () => BadgeComponent;
89
- /**
90
- * Toggles badge visibility
91
- * @param visible
92
- */
93
- toggle: (visible?: boolean) => BadgeComponent;
94
- /** Checks if the badge is currently visible */
95
- isVisible: () => boolean;
96
- /**
97
- * Sets maximum value (after which badge shows max+)
98
- * @param max
99
- */
100
- setMax: (max: number) => BadgeComponent;
101
- /**
102
- * Sets badge color
103
- * @param color
104
- */
105
- setColor: (color: BadgeColor | string) => BadgeComponent;
106
- /**
107
- * Sets badge variant (size style)
108
- * @param variant
109
- */
110
- setVariant: (variant: BadgeVariant | string) => BadgeComponent;
111
- /**
112
- * Sets badge position relative to target
113
- * @param position
114
- */
115
- setPosition: (position: BadgePosition | string) => BadgeComponent;
116
- /**
117
- * Attaches badge to a target element
118
- * @param target
119
- */
120
- attachTo: (target: HTMLElement) => BadgeComponent;
121
- /** Makes badge standalone (removes from wrapper) */
122
- detach: () => BadgeComponent;
123
- /** Destroys the badge component and cleans up resources */
124
- destroy: () => void;
125
- /**
126
- * Gets a class name with the component's prefix
127
- * @param name
128
- */
129
- getClass: (name: string) => string;
130
- /**
131
- * Adds CSS classes to the badge element
132
- * @param classes
133
- */
134
- addClass: (...classes: string[]) => BadgeComponent;
135
- /**
136
- * Removes CSS classes from the badge element
137
- * @param classes
138
- */
139
- removeClass: (...classes: string[]) => BadgeComponent;
140
- /**
141
- * Adds an event listener to the badge
142
- * @param event
143
- * @param handler
144
- */
145
- on: (event: string, handler: Function) => BadgeComponent;
146
- /**
147
- * Removes an event listener from the badge
148
- * @param event
149
- * @param handler
150
- */
151
- off: (event: string, handler: Function) => BadgeComponent;
152
- }
@@ -1,12 +0,0 @@
1
- import { BottomAppBarComponent, BottomAppBarConfig } from "./types.js";
2
- /**
3
- * Creates a bottom app bar component
4
- * @deprecated Material Design 3 Expressive replaces the bottom app bar with
5
- * the docked toolbar. Use createToolbar with
6
- * { variant: 'docked', placement: 'bottom' } from material/components/toolbar
7
- * instead. A centred FAB, adding a FAB after creation, a custom
8
- * transitionDuration and a custom tag are not yet available on the docked
9
- * toolbar. Removal is parked until Material Design v4.
10
- * @param config
11
- */
12
- export declare const createBottomAppBar: (config?: BottomAppBarConfig) => BottomAppBarComponent;
@@ -1,124 +0,0 @@
1
- import { ElementComponent } from "../../core/compose/index.js";
2
- /**
3
- * FAB position type for Bottom App Bar
4
- * @deprecated Material Design 3 Expressive replaces the bottom app bar with
5
- * the docked toolbar. Use the toolbar's fabPosition: 'start' or 'end'. A
6
- * centred FAB is not yet available on the docked toolbar.
7
- */
8
- export type FabPosition = 'center' | 'end';
9
- /**
10
- * Configuration options for Bottom App Bar component
11
- * @deprecated Material Design 3 Expressive replaces the bottom app bar with
12
- * the docked toolbar. Use ToolbarConfig with
13
- * { variant: 'docked', placement: 'bottom' }; each option here names its
14
- * toolbar replacement. A centred FAB, adding a FAB after creation, a custom
15
- * transition duration and a custom tag are not yet available on the docked
16
- * toolbar. Removal is parked until Material Design v4.
17
- */
18
- export interface BottomAppBarConfig {
19
- /**
20
- * Element to use for the container
21
- * @default 'div'
22
- * @deprecated The docked toolbar renders a div; a custom tag is not yet
23
- * available on the docked toolbar.
24
- */
25
- tag?: string;
26
- /**
27
- * Whether to show FAB in the bottom bar
28
- * @default false
29
- * @deprecated Pass the FAB as fab to createToolbar, or use slot="fab" on
30
- * m-toolbar.
31
- */
32
- hasFab?: boolean;
33
- /**
34
- * FAB position in bottom bar
35
- * @default 'end'
36
- * @deprecated Use the toolbar's fabPosition: 'start' or 'end'. A centred
37
- * FAB ('center') is not yet available on the docked toolbar.
38
- */
39
- fabPosition?: FabPosition;
40
- /**
41
- * Additional CSS classes to apply
42
- * @deprecated Use the toolbar's class option; the classes it applies are
43
- * its own.
44
- */
45
- class?: string;
46
- /**
47
- * Whether to enable auto-hide on scroll
48
- * @default false
49
- * @deprecated Use scrollBehavior: 'exit' on createToolbar. Its threshold is
50
- * set with scrollThreshold (default 40; the bottom app bar used 10), and a
51
- * hidden toolbar is also inert.
52
- */
53
- autoHide?: boolean;
54
- /**
55
- * Transition duration for show/hide in ms
56
- * @default 300
57
- * @deprecated The docked toolbar transitions with the motion tokens; a
58
- * custom transition duration is not yet available on the docked toolbar.
59
- */
60
- transitionDuration?: number;
61
- /**
62
- * Called with the new visibility when it changes.
63
- * @deprecated Listen for the toolbar's show and hide events with
64
- * toolbar.on('show', handler) and toolbar.on('hide', handler).
65
- */
66
- onVisibilityChange?: (visible: boolean) => void;
67
- /**
68
- * Component prefix for class names
69
- * @default 'mtrl'
70
- * @deprecated Never took effect: the prefix is fixed at build time. The
71
- * docked toolbar has no per-instance prefix option either.
72
- */
73
- prefix?: string;
74
- /**
75
- * Component name for class generation
76
- * @deprecated Never took effect: the component name is fixed per component.
77
- * The docked toolbar's name is fixed too.
78
- */
79
- componentName?: string;
80
- }
81
- /**
82
- * Bottom App Bar component interface
83
- * @deprecated Material Design 3 Expressive replaces the bottom app bar with
84
- * the docked toolbar. Use ToolbarComponent from createToolbar with
85
- * { variant: 'docked', placement: 'bottom' }; each method names its toolbar
86
- * replacement. Removal is parked until Material Design v4.
87
- */
88
- export interface BottomAppBarComponent extends ElementComponent {
89
- /**
90
- * Adds an action button to the bottom bar
91
- * @param button
92
- * @deprecated Use toolbar.add(item), which returns the item's element.
93
- */
94
- addAction(button: HTMLElement): this;
95
- /**
96
- * Adds a floating action button to the bottom bar
97
- * @param fab
98
- * @deprecated Pass fab to createToolbar's config. Adding a FAB after
99
- * creation is not yet available on the docked toolbar.
100
- */
101
- addFab(fab: HTMLElement): this;
102
- /**
103
- * Shows the bottom bar
104
- * @deprecated Use toolbar.show().
105
- */
106
- show(): this;
107
- /**
108
- * Hides the bottom bar
109
- * @deprecated Use toolbar.hide(), which also takes the toolbar out of the
110
- * focus order with inert.
111
- */
112
- hide(): this;
113
- /**
114
- * Checks if the bottom bar is visible
115
- * @deprecated Use toolbar.isVisible().
116
- */
117
- isVisible: () => boolean;
118
- /**
119
- * Get the actions container element
120
- * @deprecated Use toolbar.bar (the element with the toolbar role) or
121
- * toolbar.getItems().
122
- */
123
- getActionsContainer: () => HTMLElement;
124
- }
@@ -1,7 +0,0 @@
1
- import { BottomSheetConfig, BottomSheetComponent } from "./types.js";
2
- /**
3
- * Creates a bottom sheet: a surface anchored to the bottom edge holding content secondary to the page.
4
- * @param config
5
- */
6
- declare const createBottomSheet: (config?: BottomSheetConfig) => BottomSheetComponent;
7
- export default createBottomSheet;
@@ -1,100 +0,0 @@
1
- import { BOTTOM_SHEET_VARIANTS, BOTTOM_SHEET_STATES } from "./constants.js";
2
- /** Standard or modal */
3
- export type BottomSheetVariant = (typeof BOTTOM_SHEET_VARIANTS)[keyof typeof BOTTOM_SHEET_VARIANTS];
4
- /** How far the sheet is open */
5
- export type BottomSheetState = (typeof BOTTOM_SHEET_STATES)[keyof typeof BOTTOM_SHEET_STATES];
6
- /** What a state change reports */
7
- export interface BottomSheetStateEvent {
8
- /** The state the sheet has moved to */
9
- state: BottomSheetState;
10
- /** The state it came from */
11
- previous: BottomSheetState;
12
- }
13
- /** Handlers accepted at creation, one per event name */
14
- export interface BottomSheetEventHandlers {
15
- open?: () => void;
16
- close?: () => void;
17
- stateChange?: (event: BottomSheetStateEvent) => void;
18
- dragStart?: () => void;
19
- dragEnd?: (event: BottomSheetStateEvent) => void;
20
- }
21
- /** Configuration for the bottom sheet. */
22
- export interface BottomSheetConfig {
23
- /**
24
- * Standard sheets leave the page usable; modal sheets cover it with a scrim and take focus.
25
- * @default 'modal'
26
- */
27
- variant?: BottomSheetVariant;
28
- /** Headline shown above the content. */
29
- title?: string;
30
- /** Accessible label for assistive technology when no visible `title` headline is provided. */
31
- ariaLabel?: string;
32
- /** Body of the sheet, as markup or an element */
33
- content?: string | HTMLElement;
34
- /**
35
- * The 32x4dp bar at the top edge, which says the sheet can be dragged.
36
- * @default true
37
- */
38
- dragHandle?: boolean;
39
- /** Height of the partially expanded state, in pixels: a sheet with more content shows this much of it until it is expanded. */
40
- peekHeight?: number;
41
- /**
42
- * The sheet stops growing at this width and centres itself, so it does not stretch across a desktop window.
43
- * @default 640
44
- */
45
- maxWidth?: number;
46
- /**
47
- * State to start in.
48
- * @default 'hidden'
49
- */
50
- initialState?: BottomSheetState;
51
- /**
52
- * Whether a click on the scrim closes a modal sheet.
53
- * @default true
54
- */
55
- closeOnScrimClick?: boolean;
56
- /**
57
- * Whether Escape closes a modal sheet.
58
- * @default true
59
- */
60
- closeOnEscape?: boolean;
61
- /** Where to mount the sheet. */
62
- container?: HTMLElement;
63
- /** `"top"` makes a modal sheet's root a `<dialog>` element, rendered in `container` like any sheet, 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. */
64
- layer?: "top";
65
- /** Handlers registered at creation, equivalent to calling `on` for each */
66
- on?: BottomSheetEventHandlers;
67
- /** Extra classes for the root element */
68
- class?: string;
69
- prefix?: string;
70
- componentName?: string;
71
- }
72
- /** A bottom sheet instance. */
73
- export interface BottomSheetComponent {
74
- /** The root element, which holds the scrim and the container */
75
- element: HTMLElement;
76
- /** Opens the sheet, partially expanded */
77
- open: () => BottomSheetComponent;
78
- /** Closes the sheet */
79
- close: () => BottomSheetComponent;
80
- /** Opens the sheet to its full height */
81
- expand: () => BottomSheetComponent;
82
- /** Returns the sheet to the peek height */
83
- collapse: () => BottomSheetComponent;
84
- /** Whether the sheet is showing at all */
85
- isOpen: () => boolean;
86
- /** How far the sheet is open */
87
- getState: () => BottomSheetState;
88
- /** Replaces the body of the sheet */
89
- setContent: (content: string | HTMLElement) => BottomSheetComponent;
90
- /** Replaces the headline */
91
- setTitle: (title: string) => BottomSheetComponent;
92
- /** Adds an event listener */
93
- on: <T extends keyof BottomSheetEventHandlers>(event: T, handler: NonNullable<BottomSheetEventHandlers[T]>) => BottomSheetComponent;
94
- /** Removes an event listener */
95
- off: <T extends keyof BottomSheetEventHandlers>(event: T, handler: NonNullable<BottomSheetEventHandlers[T]>) => BottomSheetComponent;
96
- /** Removes the sheet from the page and releases its listeners */
97
- destroy: () => void;
98
- /** Prefixes a class name, for styling hooks */
99
- getClass: (name: string) => string;
100
- }
@@ -1,7 +0,0 @@
1
- import { ButtonConfig, ButtonComponent } from "./types.js";
2
- /**
3
- * Creates a new Button component with the specified configuration.
4
- * @param config
5
- */
6
- declare const createButton: (config?: ButtonConfig) => ButtonComponent;
7
- export default createButton;
@@ -1,7 +0,0 @@
1
- import { ButtonGroupConfig, ButtonGroupComponent } from "./types.js";
2
- /**
3
- * Creates a new Button Group component The Button Group component provides a container for grouping related action buttons.
4
- * @param config
5
- */
6
- declare const createButtonGroup: (config?: ButtonGroupConfig) => ButtonGroupComponent;
7
- export default createButtonGroup;