material 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (551) hide show
  1. package/dist/components/badge/badge.d.ts +0 -59
  2. package/dist/components/badge/constants.d.ts +0 -15
  3. package/dist/components/badge/index.d.ts +0 -6
  4. package/dist/components/badge/types.d.ts +0 -244
  5. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +0 -10
  6. package/dist/components/bottom-app-bar/constants.d.ts +0 -9
  7. package/dist/components/bottom-app-bar/index.d.ts +0 -4
  8. package/dist/components/bottom-app-bar/types.d.ts +0 -76
  9. package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -21
  10. package/dist/components/bottom-sheet/constants.d.ts +0 -29
  11. package/dist/components/bottom-sheet/types.d.ts +0 -89
  12. package/dist/components/button/button.d.ts +0 -62
  13. package/dist/components/button/constants.d.ts +0 -41
  14. package/dist/components/button/index.d.ts +0 -4
  15. package/dist/components/button/types.d.ts +0 -347
  16. package/dist/components/button-group/button-group.d.ts +0 -51
  17. package/dist/components/button-group/constants.d.ts +0 -83
  18. package/dist/components/button-group/index.d.ts +0 -10
  19. package/dist/components/button-group/types.d.ts +0 -234
  20. package/dist/components/card/card.d.ts +0 -64
  21. package/dist/components/card/constants.d.ts +0 -33
  22. package/dist/components/card/content.d.ts +0 -86
  23. package/dist/components/card/index.d.ts +0 -66
  24. package/dist/components/card/types.d.ts +0 -366
  25. package/dist/components/carousel/carousel.d.ts +0 -22
  26. package/dist/components/carousel/constants.d.ts +0 -16
  27. package/dist/components/carousel/types.d.ts +0 -29
  28. package/dist/components/checkbox/checkbox.d.ts +0 -61
  29. package/dist/components/checkbox/constants.d.ts +0 -33
  30. package/dist/components/checkbox/index.d.ts +0 -25
  31. package/dist/components/checkbox/types.d.ts +0 -206
  32. package/dist/components/chips/chips.d.ts +0 -14
  33. package/dist/components/chips/constants.d.ts +0 -1
  34. package/dist/components/chips/factories.d.ts +0 -4
  35. package/dist/components/chips/types.d.ts +0 -278
  36. package/dist/components/datepicker/constants.d.ts +0 -56
  37. package/dist/components/datepicker/datepicker.d.ts +0 -5
  38. package/dist/components/datepicker/types.d.ts +12 -257
  39. package/dist/components/dialog/constants.d.ts +0 -65
  40. package/dist/components/dialog/dialog.d.ts +0 -86
  41. package/dist/components/dialog/index.d.ts +0 -12
  42. package/dist/components/dialog/types.d.ts +0 -511
  43. package/dist/components/divider/config.d.ts +0 -130
  44. package/dist/components/divider/constants.d.ts +0 -27
  45. package/dist/components/divider/divider.d.ts +0 -36
  46. package/dist/components/divider/index.d.ts +0 -29
  47. package/dist/components/divider/types.d.ts +0 -126
  48. package/dist/components/drawer/constants.d.ts +0 -53
  49. package/dist/components/drawer/drawer.d.ts +0 -56
  50. package/dist/components/drawer/index.d.ts +0 -4
  51. package/dist/components/drawer/types.d.ts +0 -200
  52. package/dist/components/extended-fab/constants.d.ts +0 -46
  53. package/dist/components/extended-fab/extended-fab.d.ts +0 -58
  54. package/dist/components/extended-fab/index.d.ts +0 -34
  55. package/dist/components/extended-fab/types.d.ts +0 -654
  56. package/dist/components/fab/constants.d.ts +0 -40
  57. package/dist/components/fab/fab.d.ts +0 -42
  58. package/dist/components/fab/index.d.ts +0 -33
  59. package/dist/components/fab/types.d.ts +0 -543
  60. package/dist/components/fab-menu/constants.d.ts +0 -22
  61. package/dist/components/fab-menu/fab-menu.d.ts +0 -36
  62. package/dist/components/fab-menu/types.d.ts +0 -80
  63. package/dist/components/icon-button/constants.d.ts +0 -90
  64. package/dist/components/icon-button/icon-button.d.ts +0 -83
  65. package/dist/components/icon-button/index.d.ts +0 -44
  66. package/dist/components/icon-button/types.d.ts +0 -314
  67. package/dist/components/index.d.ts +0 -9
  68. package/dist/components/list/constants.d.ts +0 -47
  69. package/dist/components/list/index.d.ts +0 -1
  70. package/dist/components/list/list.d.ts +0 -26
  71. package/dist/components/list/types.d.ts +0 -263
  72. package/dist/components/loading-indicator/constants.d.ts +0 -35
  73. package/dist/components/loading-indicator/features/renderer.d.ts +0 -14
  74. package/dist/components/loading-indicator/loading-indicator.d.ts +0 -6
  75. package/dist/components/loading-indicator/types.d.ts +0 -35
  76. package/dist/components/menu/constants.d.ts +0 -79
  77. package/dist/components/menu/index.d.ts +0 -25
  78. package/dist/components/menu/inner.d.ts +0 -3
  79. package/dist/components/menu/menu.d.ts +0 -26
  80. package/dist/components/menu/types.d.ts +0 -423
  81. package/dist/components/navigation-bar/navigation-bar.d.ts +0 -7
  82. package/dist/components/navigation-bar/types.d.ts +0 -25
  83. package/dist/components/navigation-rail/constants.d.ts +0 -2
  84. package/dist/components/navigation-rail/navigation-rail.d.ts +0 -5
  85. package/dist/components/navigation-rail/types.d.ts +0 -22
  86. package/dist/components/progress/constants.d.ts +24 -56
  87. package/dist/components/progress/progress.d.ts +0 -21
  88. package/dist/components/progress/types.d.ts +0 -251
  89. package/dist/components/radios/constants.d.ts +0 -22
  90. package/dist/components/radios/radios.d.ts +0 -5
  91. package/dist/components/radios/types.d.ts +0 -142
  92. package/dist/components/search/constants.d.ts +0 -59
  93. package/dist/components/search/search.d.ts +0 -32
  94. package/dist/components/search/types.d.ts +0 -159
  95. package/dist/components/select/constants.d.ts +0 -60
  96. package/dist/components/select/index.d.ts +0 -22
  97. package/dist/components/select/select.d.ts +0 -33
  98. package/dist/components/select/types.d.ts +0 -241
  99. package/dist/components/side-sheet/constants.d.ts +0 -28
  100. package/dist/components/side-sheet/side-sheet.d.ts +0 -21
  101. package/dist/components/side-sheet/types.d.ts +0 -82
  102. package/dist/components/slider/constants.d.ts +0 -86
  103. package/dist/components/slider/slider.d.ts +0 -16
  104. package/dist/components/slider/types.d.ts +0 -184
  105. package/dist/components/snackbar/constants.d.ts +0 -73
  106. package/dist/components/snackbar/snackbar.d.ts +0 -13
  107. package/dist/components/snackbar/types.d.ts +0 -147
  108. package/dist/components/split-button/constants.d.ts +0 -33
  109. package/dist/components/split-button/split-button.d.ts +0 -21
  110. package/dist/components/split-button/types.d.ts +0 -81
  111. package/dist/components/switch/constants.d.ts +0 -49
  112. package/dist/components/switch/switch.d.ts +0 -5
  113. package/dist/components/switch/types.d.ts +0 -80
  114. package/dist/components/tabs/constants.d.ts +0 -76
  115. package/dist/components/tabs/indicator.d.ts +0 -27
  116. package/dist/components/tabs/responsive.d.ts +0 -30
  117. package/dist/components/tabs/tab.d.ts +0 -13
  118. package/dist/components/tabs/tabs.d.ts +0 -24
  119. package/dist/components/tabs/types.d.ts +0 -335
  120. package/dist/components/tabs/utils.d.ts +0 -66
  121. package/dist/components/text-field/constants.d.ts +0 -82
  122. package/dist/components/text-field/features/trailing-icon.d.ts +0 -61
  123. package/dist/components/text-field/text-field.d.ts +0 -33
  124. package/dist/components/text-field/types.d.ts +0 -123
  125. package/dist/components/timepicker/constants.d.ts +0 -88
  126. package/dist/components/timepicker/types.d.ts +0 -268
  127. package/dist/components/toolbar/constants.d.ts +0 -27
  128. package/dist/components/toolbar/toolbar.d.ts +0 -25
  129. package/dist/components/toolbar/types.d.ts +0 -102
  130. package/dist/components/tooltip/constants.d.ts +0 -58
  131. package/dist/components/tooltip/tooltip.d.ts +0 -5
  132. package/dist/components/tooltip/types.d.ts +0 -140
  133. package/dist/components/top-app-bar/constants.d.ts +0 -41
  134. package/dist/components/top-app-bar/index.d.ts +0 -4
  135. package/dist/components/top-app-bar/top-app-bar.d.ts +0 -10
  136. package/dist/components/top-app-bar/types.d.ts +0 -94
  137. package/dist/core/canvas/animation.d.ts +0 -13
  138. package/dist/core/canvas/drawing.d.ts +18 -55
  139. package/dist/core/canvas/index.d.ts +0 -4
  140. package/dist/core/canvas/resize.d.ts +0 -13
  141. package/dist/core/canvas/utils.d.ts +0 -62
  142. package/dist/core/compose/base.d.ts +0 -22
  143. package/dist/core/compose/cleanup.d.ts +0 -2
  144. package/dist/core/compose/component.d.ts +0 -31
  145. package/dist/core/compose/features/badge.d.ts +0 -25
  146. package/dist/core/compose/features/checkable.d.ts +0 -36
  147. package/dist/core/compose/features/debounce.d.ts +0 -57
  148. package/dist/core/compose/features/disabled.d.ts +0 -31
  149. package/dist/core/compose/features/events.d.ts +0 -38
  150. package/dist/core/compose/features/icon.d.ts +0 -49
  151. package/dist/core/compose/features/input.d.ts +0 -82
  152. package/dist/core/compose/features/lifecycle.d.ts +0 -36
  153. package/dist/core/compose/features/position.d.ts +0 -27
  154. package/dist/core/compose/features/ripple.d.ts +0 -29
  155. package/dist/core/compose/features/size.d.ts +0 -9
  156. package/dist/core/compose/features/style.d.ts +0 -9
  157. package/dist/core/compose/features/text.d.ts +0 -45
  158. package/dist/core/compose/features/textinput.d.ts +0 -88
  159. package/dist/core/compose/features/textlabel.d.ts +0 -44
  160. package/dist/core/compose/features/throttle.d.ts +0 -54
  161. package/dist/core/compose/features/track.d.ts +0 -34
  162. package/dist/core/compose/features/variant.d.ts +0 -9
  163. package/dist/core/compose/features/withEvents.d.ts +0 -30
  164. package/dist/core/compose/index.d.ts +0 -4
  165. package/dist/core/compose/pipe.d.ts +0 -55
  166. package/dist/core/compose/utils/type-guards.d.ts +0 -15
  167. package/dist/core/config/component.d.ts +0 -45
  168. package/dist/core/config/global.d.ts +0 -43
  169. package/dist/core/config.d.ts +0 -59
  170. package/dist/core/dom/attributes.d.ts +0 -41
  171. package/dist/core/dom/classes.d.ts +0 -49
  172. package/dist/core/dom/create.d.ts +0 -98
  173. package/dist/core/dom/events.d.ts +0 -52
  174. package/dist/core/dom/focus.d.ts +0 -32
  175. package/dist/core/dom/html.d.ts +0 -24
  176. package/dist/core/dom/layer.d.ts +0 -98
  177. package/dist/core/dom/roving.d.ts +0 -19
  178. package/dist/core/index.d.ts +0 -9
  179. package/dist/core/navigation/destinations.d.ts +0 -23
  180. package/dist/core/shapes/cubic.d.ts +24 -19
  181. package/dist/core/shapes/material.d.ts +0 -64
  182. package/dist/core/shapes/polygon.d.ts +6 -16
  183. package/dist/core/state/emitter.d.ts +0 -36
  184. package/dist/core/state/events.d.ts +0 -29
  185. package/dist/core/state/store.d.ts +0 -70
  186. package/dist/core/theme/index.d.ts +0 -3
  187. package/dist/core/theme/shape.d.ts +0 -7
  188. package/dist/core/theme/tokens.d.ts +48 -32
  189. package/dist/core/utils/background.d.ts +0 -29
  190. package/dist/core/utils/color.d.ts +0 -13
  191. package/dist/core/utils/index.d.ts +0 -11
  192. package/dist/core/utils/mobile.d.ts +0 -31
  193. package/dist/core/utils/object.d.ts +0 -11
  194. package/dist/core/utils/performance.d.ts +0 -70
  195. package/dist/core/utils/theme.d.ts +0 -36
  196. package/dist/core/utils/url.d.ts +0 -17
  197. package/dist/elements/adapter.d.ts +13 -62
  198. package/dist/elements/badge.d.ts +0 -17
  199. package/dist/elements/bottom-app-bar.d.ts +7 -17
  200. package/dist/elements/bottom-sheet.d.ts +9 -38
  201. package/dist/elements/button-group.d.ts +0 -31
  202. package/dist/elements/button.d.ts +0 -18
  203. package/dist/elements/card.d.ts +8 -24
  204. package/dist/elements/carousel.d.ts +5 -29
  205. package/dist/elements/checkbox.d.ts +5 -15
  206. package/dist/elements/chips.d.ts +0 -33
  207. package/dist/elements/datepicker.d.ts +4 -48
  208. package/dist/elements/define.d.ts +3 -161
  209. package/dist/elements/dialog.d.ts +8 -39
  210. package/dist/elements/divider.d.ts +0 -14
  211. package/dist/elements/drawer.d.ts +0 -35
  212. package/dist/elements/extended-fab.d.ts +6 -18
  213. package/dist/elements/fab-menu.d.ts +5 -30
  214. package/dist/elements/fab.d.ts +4 -17
  215. package/dist/elements/icon-button.d.ts +5 -26
  216. package/dist/elements/index.d.ts +0 -16
  217. package/dist/elements/list.d.ts +0 -34
  218. package/dist/elements/loading-indicator.d.ts +4 -13
  219. package/dist/elements/menu.d.ts +5 -51
  220. package/dist/elements/navigation-bar.d.ts +4 -29
  221. package/dist/elements/navigation-rail.d.ts +8 -49
  222. package/dist/elements/preupgrade/badge.css +1 -1
  223. package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
  224. package/dist/elements/preupgrade/bottom-sheet.css +1 -1
  225. package/dist/elements/preupgrade/button-group.css +1 -1
  226. package/dist/elements/preupgrade/button.css +1 -1
  227. package/dist/elements/preupgrade/card.css +1 -1
  228. package/dist/elements/preupgrade/carousel.css +1 -1
  229. package/dist/elements/preupgrade/checkbox.css +1 -1
  230. package/dist/elements/preupgrade/chips.css +1 -1
  231. package/dist/elements/preupgrade/datepicker.css +1 -1
  232. package/dist/elements/preupgrade/dialog.css +1 -1
  233. package/dist/elements/preupgrade/divider.css +1 -1
  234. package/dist/elements/preupgrade/drawer.css +1 -1
  235. package/dist/elements/preupgrade/extended-fab.css +1 -1
  236. package/dist/elements/preupgrade/fab-menu.css +1 -1
  237. package/dist/elements/preupgrade/fab.css +1 -1
  238. package/dist/elements/preupgrade/icon-button.css +1 -1
  239. package/dist/elements/preupgrade/list.css +1 -1
  240. package/dist/elements/preupgrade/loading-indicator.css +1 -1
  241. package/dist/elements/preupgrade/menu.css +1 -1
  242. package/dist/elements/preupgrade/navigation-bar.css +1 -1
  243. package/dist/elements/preupgrade/navigation-rail.css +1 -1
  244. package/dist/elements/preupgrade/progress.css +1 -1
  245. package/dist/elements/preupgrade/radios.css +1 -1
  246. package/dist/elements/preupgrade/search.css +1 -1
  247. package/dist/elements/preupgrade/select.css +1 -1
  248. package/dist/elements/preupgrade/side-sheet.css +1 -1
  249. package/dist/elements/preupgrade/slider.css +1 -1
  250. package/dist/elements/preupgrade/snackbar.css +1 -1
  251. package/dist/elements/preupgrade/split-button.css +1 -1
  252. package/dist/elements/preupgrade/switch.css +1 -1
  253. package/dist/elements/preupgrade/tabs.css +1 -1
  254. package/dist/elements/preupgrade/text-field.css +1 -1
  255. package/dist/elements/preupgrade/timepicker.css +1 -1
  256. package/dist/elements/preupgrade/toolbar.css +1 -1
  257. package/dist/elements/preupgrade/tooltip.css +1 -1
  258. package/dist/elements/preupgrade/top-app-bar.css +1 -1
  259. package/dist/elements/preupgrade.css +1 -1
  260. package/dist/elements/preupgrade.d.ts +0 -1
  261. package/dist/elements/progress.d.ts +0 -15
  262. package/dist/elements/radios.d.ts +0 -22
  263. package/dist/elements/search.d.ts +5 -53
  264. package/dist/elements/select.d.ts +0 -31
  265. package/dist/elements/side-sheet.d.ts +7 -29
  266. package/dist/elements/slider.d.ts +3 -22
  267. package/dist/elements/snackbar.d.ts +4 -28
  268. package/dist/elements/split-button.d.ts +0 -30
  269. package/dist/elements/styles.d.ts +0 -63
  270. package/dist/elements/switch.d.ts +5 -17
  271. package/dist/elements/tabs.d.ts +0 -22
  272. package/dist/elements/text-field.d.ts +4 -38
  273. package/dist/elements/timepicker.d.ts +4 -44
  274. package/dist/elements/toolbar.d.ts +8 -25
  275. package/dist/elements/tooltip.d.ts +4 -30
  276. package/dist/elements/top-app-bar.d.ts +7 -23
  277. package/dist/index.d.ts +0 -11
  278. package/dist/package.json +1 -1
  279. package/dist/react/create.d.ts +0 -42
  280. package/dist/react/index.d.ts +0 -6
  281. package/dist/react/jsx.d.ts +0 -13
  282. package/dist/solid/create.d.ts +0 -48
  283. package/dist/solid/index.d.ts +0 -6
  284. package/dist/solid/jsx.d.ts +0 -9
  285. package/dist/ssr/index.d.ts +0 -49
  286. package/dist/ssr/solid.d.ts +0 -4
  287. package/dist/ssr/svelte.d.ts +0 -4
  288. package/dist/ssr/vue.d.ts +0 -4
  289. package/dist/styles/badge.css +1 -1
  290. package/dist/styles/base.css +1 -1
  291. package/dist/styles/bottom-app-bar.css +1 -1
  292. package/dist/styles/bottom-sheet.css +1 -1
  293. package/dist/styles/button-group.css +1 -1
  294. package/dist/styles/button.css +1 -1
  295. package/dist/styles/card.css +1 -1
  296. package/dist/styles/carousel.css +1 -1
  297. package/dist/styles/checkbox.css +1 -1
  298. package/dist/styles/chips.css +1 -1
  299. package/dist/styles/contrast.css +1 -1
  300. package/dist/styles/datepicker.css +1 -1
  301. package/dist/styles/dialog.css +1 -1
  302. package/dist/styles/divider.css +1 -1
  303. package/dist/styles/drawer.css +1 -1
  304. package/dist/styles/extended-fab.css +1 -1
  305. package/dist/styles/fab-menu.css +1 -1
  306. package/dist/styles/fab.css +1 -1
  307. package/dist/styles/icon-button.css +1 -1
  308. package/dist/styles/list.css +1 -1
  309. package/dist/styles/loading-indicator.css +1 -1
  310. package/dist/styles/menu.css +1 -1
  311. package/dist/styles/navigation-bar.css +1 -1
  312. package/dist/styles/navigation-rail.css +1 -1
  313. package/dist/styles/progress.css +1 -1
  314. package/dist/styles/radios.css +1 -1
  315. package/dist/styles/search.css +1 -1
  316. package/dist/styles/select.css +1 -1
  317. package/dist/styles/side-sheet.css +1 -1
  318. package/dist/styles/slider.css +1 -1
  319. package/dist/styles/snackbar.css +1 -1
  320. package/dist/styles/split-button.css +1 -1
  321. package/dist/styles/switch.css +1 -1
  322. package/dist/styles/tabs.css +1 -1
  323. package/dist/styles/text-field.css +1 -1
  324. package/dist/styles/timepicker.css +1 -1
  325. package/dist/styles/toolbar.css +1 -1
  326. package/dist/styles/tooltip.css +1 -1
  327. package/dist/styles/top-app-bar.css +1 -1
  328. package/dist/styles/typography.css +1 -1
  329. package/dist/styles/utilities.css +1 -1
  330. package/dist/styles.css +1 -1
  331. package/dist/svelte/runtime.d.ts +8 -62
  332. package/dist/themes/autumn-contrast.css +1 -1
  333. package/dist/themes/autumn.css +1 -1
  334. package/dist/themes/baseline-contrast.css +1 -1
  335. package/dist/themes/baseline.css +1 -1
  336. package/dist/themes/brownbeige-contrast.css +1 -1
  337. package/dist/themes/brownbeige.css +1 -1
  338. package/dist/themes/content-contrast.css +1 -1
  339. package/dist/themes/content.css +1 -1
  340. package/dist/themes/desert-contrast.css +1 -1
  341. package/dist/themes/desert.css +1 -1
  342. package/dist/themes/expressive-contrast.css +1 -1
  343. package/dist/themes/expressive.css +1 -1
  344. package/dist/themes/fidelity-contrast.css +1 -1
  345. package/dist/themes/fidelity.css +1 -1
  346. package/dist/themes/forest-contrast.css +1 -1
  347. package/dist/themes/forest.css +1 -1
  348. package/dist/themes/fruit-salad-contrast.css +1 -1
  349. package/dist/themes/fruit-salad.css +1 -1
  350. package/dist/themes/highcontrast-contrast.css +1 -1
  351. package/dist/themes/highcontrast.css +1 -1
  352. package/dist/themes/monochrome-contrast.css +1 -1
  353. package/dist/themes/monochrome.css +1 -1
  354. package/dist/themes/neutral-contrast.css +1 -1
  355. package/dist/themes/neutral.css +1 -1
  356. package/dist/themes/ocean-contrast.css +1 -1
  357. package/dist/themes/ocean.css +1 -1
  358. package/dist/themes/rainbow-contrast.css +1 -1
  359. package/dist/themes/rainbow.css +1 -1
  360. package/dist/themes/sageivory-contrast.css +1 -1
  361. package/dist/themes/sageivory.css +1 -1
  362. package/dist/themes/spring-contrast.css +1 -1
  363. package/dist/themes/spring.css +1 -1
  364. package/dist/themes/summer-contrast.css +1 -1
  365. package/dist/themes/summer.css +1 -1
  366. package/dist/themes/sunset-contrast.css +1 -1
  367. package/dist/themes/sunset.css +1 -1
  368. package/dist/themes/tealcaramel-contrast.css +1 -1
  369. package/dist/themes/tealcaramel.css +1 -1
  370. package/dist/themes/vibrant-contrast.css +1 -1
  371. package/dist/themes/vibrant.css +1 -1
  372. package/dist/vue/create.d.ts +15 -58
  373. package/dist/vue/index.d.ts +0 -6
  374. package/package.json +1 -1
  375. package/dist/components/badge/api.d.ts +0 -41
  376. package/dist/components/badge/config.d.ts +0 -631
  377. package/dist/components/badge/features.d.ts +0 -38
  378. package/dist/components/bottom-app-bar/config.d.ts +0 -16
  379. package/dist/components/bottom-sheet/api.d.ts +0 -44
  380. package/dist/components/bottom-sheet/config.d.ts +0 -547
  381. package/dist/components/bottom-sheet/features/drag.d.ts +0 -35
  382. package/dist/components/bottom-sheet/features/index.d.ts +0 -3
  383. package/dist/components/bottom-sheet/features/state.d.ts +0 -31
  384. package/dist/components/bottom-sheet/features/structure.d.ts +0 -26
  385. package/dist/components/button/api.d.ts +0 -68
  386. package/dist/components/button/config.d.ts +0 -594
  387. package/dist/components/button/features/progress.d.ts +0 -43
  388. package/dist/components/button/features/toggle.d.ts +0 -43
  389. package/dist/components/button-group/config.d.ts +0 -147
  390. package/dist/components/card/api.d.ts +0 -24
  391. package/dist/components/card/config.d.ts +0 -635
  392. package/dist/components/card/features.d.ts +0 -124
  393. package/dist/components/carousel/api.d.ts +0 -20
  394. package/dist/components/carousel/arrangement.d.ts +0 -23
  395. package/dist/components/carousel/config.d.ts +0 -540
  396. package/dist/components/carousel/features/index.d.ts +0 -2
  397. package/dist/components/carousel/features/scroll.d.ts +0 -20
  398. package/dist/components/carousel/features/slides.d.ts +0 -18
  399. package/dist/components/carousel/keylines.d.ts +0 -68
  400. package/dist/components/carousel/strategy.d.ts +0 -36
  401. package/dist/components/checkbox/api.d.ts +0 -7
  402. package/dist/components/checkbox/config.d.ts +0 -568
  403. package/dist/components/chips/api.d.ts +0 -62
  404. package/dist/components/chips/chip/chip.d.ts +0 -4
  405. package/dist/components/chips/chip/constants.d.ts +0 -38
  406. package/dist/components/chips/chip/index.d.ts +0 -1
  407. package/dist/components/chips/config.d.ts +0 -583
  408. package/dist/components/chips/features/chip-items.d.ts +0 -39
  409. package/dist/components/chips/features/container.d.ts +0 -75
  410. package/dist/components/chips/features/controller.d.ts +0 -61
  411. package/dist/components/chips/features/dom.d.ts +0 -24
  412. package/dist/components/chips/features/index.d.ts +0 -4
  413. package/dist/components/chips/schema.d.ts +0 -35
  414. package/dist/components/datepicker/api.d.ts +0 -7
  415. package/dist/components/datepicker/config.d.ts +0 -542
  416. package/dist/components/datepicker/render.d.ts +0 -3
  417. package/dist/components/datepicker/utils.d.ts +0 -84
  418. package/dist/components/dialog/api.d.ts +0 -66
  419. package/dist/components/dialog/config.d.ts +0 -583
  420. package/dist/components/dialog/features.d.ts +0 -42
  421. package/dist/components/divider/features.d.ts +0 -6
  422. package/dist/components/drawer/api.d.ts +0 -55
  423. package/dist/components/drawer/config.d.ts +0 -620
  424. package/dist/components/drawer/features/headline.d.ts +0 -27
  425. package/dist/components/drawer/features/index.d.ts +0 -3
  426. package/dist/components/drawer/features/items.d.ts +0 -32
  427. package/dist/components/drawer/features/state.d.ts +0 -22
  428. package/dist/components/extended-fab/api.d.ts +0 -96
  429. package/dist/components/extended-fab/config.d.ts +0 -600
  430. package/dist/components/fab/api.d.ts +0 -74
  431. package/dist/components/fab/config.d.ts +0 -596
  432. package/dist/components/fab-menu/config.d.ts +0 -11
  433. package/dist/components/fab-menu/stagger.d.ts +0 -10
  434. package/dist/components/icon-button/api.d.ts +0 -84
  435. package/dist/components/icon-button/config.d.ts +0 -624
  436. package/dist/components/icon-button/features/toggle.d.ts +0 -133
  437. package/dist/components/list/api.d.ts +0 -156
  438. package/dist/components/list/config.d.ts +0 -625
  439. package/dist/components/list/features/anatomy.d.ts +0 -6
  440. package/dist/components/list/features/index.d.ts +0 -2
  441. package/dist/components/list/features/renderer.d.ts +0 -8
  442. package/dist/components/list/features/selection.d.ts +0 -3
  443. package/dist/components/loading-indicator/api.d.ts +0 -14
  444. package/dist/components/loading-indicator/config.d.ts +0 -557
  445. package/dist/components/loading-indicator/features/motion.d.ts +0 -22
  446. package/dist/components/menu/api.d.ts +0 -63
  447. package/dist/components/menu/config.d.ts +0 -576
  448. package/dist/components/menu/features/controller.d.ts +0 -15
  449. package/dist/components/menu/features/index.d.ts +0 -5
  450. package/dist/components/menu/features/keyboard.d.ts +0 -23
  451. package/dist/components/menu/features/layer.d.ts +0 -15
  452. package/dist/components/menu/features/loader.d.ts +0 -35
  453. package/dist/components/menu/features/opener.d.ts +0 -16
  454. package/dist/components/menu/features/position.d.ts +0 -18
  455. package/dist/components/menu/features/registry.d.ts +0 -37
  456. package/dist/components/menu/features/submenu.d.ts +0 -28
  457. package/dist/components/menu/features/tasks.d.ts +0 -9
  458. package/dist/components/navigation-bar/config.d.ts +0 -2
  459. package/dist/components/navigation-rail/config.d.ts +0 -2
  460. package/dist/components/progress/api.d.ts +0 -81
  461. package/dist/components/progress/config.d.ts +0 -620
  462. package/dist/components/progress/features/canvas.d.ts +0 -60
  463. package/dist/components/progress/features/circular.d.ts +0 -19
  464. package/dist/components/progress/features/colors.d.ts +0 -17
  465. package/dist/components/progress/features/index.d.ts +0 -8
  466. package/dist/components/progress/features/linear.d.ts +0 -25
  467. package/dist/components/progress/features/motion.d.ts +0 -43
  468. package/dist/components/progress/features/resize-observer.d.ts +0 -5
  469. package/dist/components/progress/features/state.d.ts +0 -44
  470. package/dist/components/radios/api.d.ts +0 -37
  471. package/dist/components/radios/config.d.ts +0 -568
  472. package/dist/components/radios/radio.d.ts +0 -26
  473. package/dist/components/search/api.d.ts +0 -63
  474. package/dist/components/search/config.d.ts +0 -657
  475. package/dist/components/search/features/index.d.ts +0 -4
  476. package/dist/components/search/features/input.d.ts +0 -93
  477. package/dist/components/search/features/states.d.ts +0 -111
  478. package/dist/components/search/features/structure.d.ts +0 -16
  479. package/dist/components/search/features/suggestions.d.ts +0 -60
  480. package/dist/components/select/api.d.ts +0 -8
  481. package/dist/components/select/config.d.ts +0 -18
  482. package/dist/components/select/features.d.ts +0 -14
  483. package/dist/components/side-sheet/api.d.ts +0 -34
  484. package/dist/components/side-sheet/config.d.ts +0 -547
  485. package/dist/components/side-sheet/features/index.d.ts +0 -2
  486. package/dist/components/side-sheet/features/state.d.ts +0 -28
  487. package/dist/components/side-sheet/features/structure.d.ts +0 -21
  488. package/dist/components/slider/api.d.ts +0 -65
  489. package/dist/components/slider/config.d.ts +0 -605
  490. package/dist/components/slider/features/axis.d.ts +0 -42
  491. package/dist/components/slider/features/controller.d.ts +0 -528
  492. package/dist/components/slider/features/dom.d.ts +0 -22
  493. package/dist/components/slider/features/handlers.d.ts +0 -16
  494. package/dist/components/slider/features/index.d.ts +0 -5
  495. package/dist/components/slider/features/range.d.ts +0 -14
  496. package/dist/components/slider/features/states.d.ts +0 -76
  497. package/dist/components/slider/features/tracks.d.ts +0 -50
  498. package/dist/components/snackbar/api.d.ts +0 -7
  499. package/dist/components/snackbar/config.d.ts +0 -596
  500. package/dist/components/snackbar/features.d.ts +0 -26
  501. package/dist/components/snackbar/layer.d.ts +0 -23
  502. package/dist/components/snackbar/position.d.ts +0 -16
  503. package/dist/components/snackbar/queue.d.ts +0 -15
  504. package/dist/components/split-button/api.d.ts +0 -14
  505. package/dist/components/split-button/config.d.ts +0 -553
  506. package/dist/components/split-button/features/buttons.d.ts +0 -8
  507. package/dist/components/split-button/features/menu.d.ts +0 -10
  508. package/dist/components/switch/api.d.ts +0 -7
  509. package/dist/components/switch/config.d.ts +0 -558
  510. package/dist/components/switch/features.d.ts +0 -63
  511. package/dist/components/tabs/api.d.ts +0 -54
  512. package/dist/components/tabs/config.d.ts +0 -31
  513. package/dist/components/tabs/features.d.ts +0 -131
  514. package/dist/components/tabs/scroll-indicators.d.ts +0 -18
  515. package/dist/components/tabs/state.d.ts +0 -48
  516. package/dist/components/text-field/api.d.ts +0 -29
  517. package/dist/components/text-field/config.d.ts +0 -560
  518. package/dist/components/text-field/features/counter.d.ts +0 -29
  519. package/dist/components/text-field/features/density.d.ts +0 -28
  520. package/dist/components/text-field/features/error.d.ts +0 -55
  521. package/dist/components/text-field/features/field.d.ts +0 -37
  522. package/dist/components/text-field/features/index.d.ts +0 -20
  523. package/dist/components/text-field/features/leading-icon.d.ts +0 -68
  524. package/dist/components/text-field/features/placement.d.ts +0 -30
  525. package/dist/components/text-field/features/prefix-text.d.ts +0 -67
  526. package/dist/components/text-field/features/required.d.ts +0 -33
  527. package/dist/components/text-field/features/suffix-text.d.ts +0 -67
  528. package/dist/components/text-field/features/supporting-text.d.ts +0 -59
  529. package/dist/components/timepicker/api.d.ts +0 -26
  530. package/dist/components/timepicker/config.d.ts +0 -570
  531. package/dist/components/timepicker/dial.d.ts +0 -35
  532. package/dist/components/timepicker/render.d.ts +0 -9
  533. package/dist/components/timepicker/utils.d.ts +0 -55
  534. package/dist/components/toolbar/config.d.ts +0 -19
  535. package/dist/components/tooltip/api.d.ts +0 -18
  536. package/dist/components/tooltip/config.d.ts +0 -563
  537. package/dist/components/top-app-bar/config.d.ts +0 -16
  538. package/dist/core/compose/features/constants.d.ts +0 -8
  539. package/dist/core/dom/direction.d.ts +0 -16
  540. package/dist/core/dom/form-value.d.ts +0 -24
  541. package/dist/core/dom/utils.d.ts +0 -33
  542. package/dist/core/navigation/ripple.d.ts +0 -2
  543. package/dist/core/utils/attributes.d.ts +0 -29
  544. package/dist/core/utils/validate.d.ts +0 -73
  545. package/dist/core/utils/warn.d.ts +0 -16
  546. package/dist/elements/form-button.d.ts +0 -29
  547. package/dist/elements/lifecycle.d.ts +0 -4
  548. package/dist/elements/sheet.d.ts +0 -44
  549. package/dist/react/shadow.d.ts +0 -2
  550. package/dist/solid/shadow.d.ts +0 -3
  551. package/dist/vue/shadow.d.ts +0 -7
@@ -1,301 +1,102 @@
1
1
  import type { TouchEvents } from "../../core/utils/mobile.js";
2
2
  import type { ButtonConfig as BaseButtonConfig } from "../button/types.js";
3
3
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
4
- /**
5
- * Card variant types following Material Design 3 guidelines.
6
- * - elevated: Card with shadow elevation (default)
7
- * - filled: Card with filled background color and no elevation
8
- * - outlined: Card with outline border and no elevation
9
- *
10
- * @category Components
11
- */
12
4
  export type CardVariant = 'elevated' | 'filled' | 'outlined';
13
- /**
14
- * Card elevation levels in Material Design 3.
15
- * Specifies the shadow height in density-independent pixels (dp).
16
- * These values match the CARD_ELEVATION_LEVELS constants.
17
- *
18
- * @category Components
19
- */
20
5
  export type CardElevationLevel = 0 | 1 | 2 | 4;
21
- /**
22
- * Button configuration interface for buttons shorthand.
23
- * Used in the card's `buttons` configuration property for simple button creation.
24
- *
25
- * @interface ButtonConfig
26
- * @category Components
27
- */
28
6
  export interface ButtonConfig extends Omit<BaseButtonConfig, "variant"> {
29
- /** Button text content */
30
7
  text?: string;
31
- /** Button variant (text, outlined, filled, etc.) */
32
8
  variant?: string;
33
- /** Button icon HTML content */
34
9
  icon?: string;
35
10
  }
36
- /**
37
- * Card configuration interface defining all possible card options.
38
- * This is the primary configuration interface for creating card components.
39
- *
40
- * @interface CardConfig
41
- * @category Components
42
- * @example
43
- * ```typescript
44
- * const cardConfig: CardConfig = {
45
- * variant: 'elevated',
46
- * interactive: true,
47
- * header: {
48
- * title: 'Card Title',
49
- * subtitle: 'Secondary text'
50
- * },
51
- * content: {
52
- * text: 'Card content text'
53
- * },
54
- * buttons: [
55
- * { text: 'Action', variant: 'text' }
56
- * ]
57
- * };
58
- * ```
59
- */
60
11
  export interface CardConfig {
61
- /** Card variant type (elevated, filled, outlined) */
62
12
  variant?: CardVariant | string;
63
- /**
64
- * The hover and press states and their elevation, for a card the app
65
- * makes interactive itself. Not a control: no role of button and no tab
66
- * stop; `clickable` is.
67
- */
68
13
  interactive?: boolean;
69
- /** Whether the card should take full width */
70
14
  fullWidth?: boolean;
71
- /**
72
- * A card that acts on activation: a button (role, tab stop, Enter and
73
- * Space click it) with the ripple
74
- */
75
15
  clickable?: boolean;
76
- /** Whether the card is draggable */
77
16
  draggable?: boolean;
78
- /** Additional CSS class(es) */
79
17
  class?: string;
80
- /** Header configuration */
81
18
  headerConfig?: CardHeaderConfig;
82
- /** Content configuration */
83
19
  contentConfig?: CardContentConfig;
84
- /** Actions configuration */
85
20
  actionsConfig?: CardActionsConfig;
86
- /** Media configuration */
87
21
  mediaConfig?: CardMediaConfig;
88
- /** ARIA attributes for accessibility */
89
22
  aria?: CardAriaAttributes;
90
- /** Inline header configuration (alternative to headerConfig) */
91
23
  header?: CardHeaderConfig;
92
- /** Inline content configuration (alternative to contentConfig) */
93
24
  content?: CardContentConfig;
94
- /** Inline media configuration (alternative to mediaConfig) */
95
25
  media?: CardMediaConfig;
96
- /** Inline actions configuration (alternative to actionsConfig) */
97
26
  actions?: CardActionsConfig;
98
- /** Simple buttons array for actions (will be converted to actionsConfig) */
99
27
  buttons?: ButtonConfig[];
100
- /** Internal component name */
101
28
  componentName?: string;
102
- /** CSS class prefix */
103
29
  prefix?: string;
104
- /** Callback executed after component creation */
105
30
  afterCreation?: (component: BaseComponent) => void;
106
31
  }
107
- /**
108
- * ARIA attributes for card accessibility.
109
- * These attributes enhance the card's accessibility for assistive technologies.
110
- *
111
- * @interface CardAriaAttributes
112
- * @category Components
113
- */
114
32
  export interface CardAriaAttributes {
115
- /** ARIA label */
116
33
  label?: string;
117
- /** ARIA labelledby */
118
34
  labelledby?: string;
119
- /** ARIA describedby */
120
35
  describedby?: string;
121
- /** ARIA role (default: 'button' for a clickable card, 'article' for any other) */
122
36
  role?: string;
123
- /** Additional ARIA attributes as key-value pairs */
124
37
  [key: string]: string | undefined;
125
38
  }
126
- /**
127
- * Card header configuration.
128
- * Options for configuring the card's header section with title, subtitle, and actions.
129
- *
130
- * @interface CardHeaderConfig
131
- * @category Components
132
- */
133
39
  export interface CardHeaderConfig {
134
- /** Header title text */
135
40
  title?: string;
136
- /** Header subtitle text */
137
41
  subtitle?: string;
138
- /** Avatar element or HTML string */
139
42
  avatar?: HTMLElement | string;
140
- /** Action element or HTML string */
141
43
  action?: HTMLElement | string;
142
- /** Additional CSS class(es) */
143
44
  class?: string;
144
45
  }
145
- /**
146
- * Card content configuration.
147
- * Options for configuring the card's main content area.
148
- *
149
- * @interface CardContentConfig
150
- * @category Components
151
- */
152
46
  export interface CardContentConfig {
153
- /** Text content */
154
47
  text?: string;
155
- /** HTML content */
156
48
  html?: string;
157
- /** Child elements */
158
49
  children?: HTMLElement[];
159
- /** Whether to add padding (true by default) */
160
50
  padding?: boolean;
161
- /** Additional CSS class(es) */
162
51
  class?: string;
163
52
  }
164
- /**
165
- * Card actions configuration.
166
- * Options for configuring the card's action buttons area at the bottom.
167
- *
168
- * @interface CardActionsConfig
169
- * @category Components
170
- */
171
53
  export interface CardActionsConfig {
172
- /** Action elements */
173
54
  actions?: HTMLElement[];
174
- /** Whether actions should be full-bleed */
175
55
  fullBleed?: boolean;
176
- /** Whether actions should be stacked vertically */
177
56
  vertical?: boolean;
178
- /** Horizontal alignment */
179
57
  align?: 'start' | 'center' | 'end' | 'space-between';
180
- /** Additional CSS class(es) */
181
58
  class?: string;
182
59
  }
183
- /**
184
- * Card media configuration.
185
- * Options for configuring the card's media section (images or other media content).
186
- *
187
- * @interface CardMediaConfig
188
- * @category Components
189
- */
190
60
  export interface CardMediaConfig {
191
- /** Image source URL */
192
61
  src?: string;
193
- /** Image alt text (required for accessibility) */
194
62
  alt?: string;
195
- /** Custom element instead of image */
196
63
  element?: HTMLElement;
197
- /** Aspect ratio */
198
64
  aspectRatio?: '16:9' | '4:3' | '1:1' | string;
199
- /** Whether media should use object-fit: contain */
200
65
  contain?: boolean;
201
- /** Additional CSS class(es) */
202
66
  class?: string;
203
- /**
204
- * Position of the media in the card
205
- * - 'top': Media appears at the top of the card (default)
206
- * - 'bottom': Media appears after the content
207
- */
208
67
  position?: 'top' | 'bottom';
209
68
  }
210
- /**
211
- * Base component interface.
212
- * Core interface that all components extend with basic functionality.
213
- *
214
- * @interface BaseComponent
215
- * @category Components
216
- */
217
69
  export interface BaseComponent {
218
- /** The DOM element */
219
70
  element: HTMLElement;
220
- /** Get class name with prefix */
221
71
  getClass: (name: string) => string;
222
- /** Get modifier class */
223
72
  getModifierClass: (base: string, modifier: string) => string;
224
- /** Get element class */
225
73
  getElementClass: (base: string, element: string) => string;
226
- /** Add CSS class(es) */
227
74
  addClass: (...classes: string[]) => BaseComponent;
228
- /**
229
- * Emit one of the card's own events ({@link CardEvents}), with its payload:
230
- * the names and payloads `on` and `off` accept.
231
- */
232
75
  emit?: <K extends keyof CardEvents>(event: K, payload: Parameters<CardEvents[K]>[0]) => void;
233
- /** Component configuration */
234
76
  config: CardComponentConfig;
235
- /** Touch state for touch interactions */
236
77
  touchState?: TouchState;
237
- /** Update touch state */
238
78
  updateTouchState?: (event: TouchEvent | MouseEvent, status: 'start' | 'end') => void;
239
- /** Component lifecycle methods */
240
79
  lifecycle?: ComponentLifecycle;
241
80
  }
242
- /**
243
- * Touch state interface for touch interactions.
244
- * Used to track touch events for interactive components.
245
- *
246
- * @interface TouchState
247
- * @category Components
248
- */
249
81
  export interface TouchState {
250
- /** Timestamp when touch started */
251
82
  startTime: number;
252
- /** Starting position */
253
83
  startPosition: {
254
84
  x: number;
255
85
  y: number;
256
86
  };
257
- /** Whether touch is active */
258
87
  isTouching: boolean;
259
- /** Current touch target */
260
88
  activeTarget: EventTarget | null;
261
89
  }
262
- /**
263
- * Component lifecycle interface.
264
- * Defines the lifecycle hooks for component creation, updates, and destruction.
265
- *
266
- * @interface ComponentLifecycle
267
- * @category Components
268
- */
269
90
  export interface ComponentLifecycle {
270
- /** Called when component is mounted to DOM */
271
91
  mount?: () => void;
272
- /** Called when component is updated */
273
92
  update?: () => void;
274
- /** Called when component is destroyed */
275
93
  destroy: () => void;
276
94
  }
277
- /**
278
- * Card component configuration.
279
- * Internal configuration object that extends the user-provided schema
280
- * with additional required properties.
281
- *
282
- * @interface CardComponentConfig
283
- * @extends CardConfig
284
- * @category Components
285
- */
286
95
  export interface CardComponentConfig extends CardConfig {
287
- /** Component name */
288
96
  componentName: string;
289
- /** CSS class prefix */
290
97
  prefix: string;
291
98
  }
292
- /**
293
- * The card's events. A clickable card forwards `click`; an
294
- * interactive one `mouseenter`, `mouseleave`, `keydown`, `focus` and `blur`;
295
- * a draggable one emits `dragstart` and `dragend`.
296
- */
297
99
  export interface CardEvents extends TouchEvents {
298
- /** Presentation state after expanding or collapsing. */
299
100
  expandedChanged: (payload: {
300
101
  expanded: boolean;
301
102
  }) => void;
@@ -312,202 +113,35 @@ export interface CardEvents extends TouchEvents {
312
113
  event: DragEvent;
313
114
  }) => void;
314
115
  }
315
- /**
316
- * Card component interface with methods.
317
- * This is the public API of the card component that users interact with.
318
- *
319
- * @interface CardComponent
320
- * @extends BaseComponent
321
- * @category Components
322
- */
323
116
  export interface CardComponent extends BaseComponent {
324
- /** Subscribes to one of the card's events */
325
117
  on: <K extends keyof CardEvents>(event: K, handler: CardEvents[K]) => CardComponent;
326
- /** Removes a handler added with `on` */
327
118
  off: <K extends keyof CardEvents>(event: K, handler: CardEvents[K]) => CardComponent;
328
- /**
329
- * Adds content to the card.
330
- * This method appends content to the card component.
331
- *
332
- * @param contentElement - The content element to add
333
- * @returns The card instance for chaining
334
- * @example
335
- * ```typescript
336
- * const content = document.createElement('div');
337
- * content.className = 'mtrl-card__content';
338
- * content.textContent = 'Card content goes here';
339
- * card.addContent(content);
340
- * ```
341
- */
342
119
  addContent: (contentElement: HTMLElement) => CardComponent;
343
- /**
344
- * Sets the card header.
345
- * Places the header element in the card. When media elements exist,
346
- * the header is placed after the last media element to ensure proper
347
- * visual hierarchy following Material Design guidelines.
348
- *
349
- * @param headerElement - The header element to add
350
- * @returns The card instance for chaining
351
- * @example
352
- * ```typescript
353
- * // Add a header after media
354
- * card.setHeader(headerElement);
355
- * ```
356
- */
357
120
  setHeader: (headerElement: HTMLElement) => CardComponent;
358
- /**
359
- * Adds media to the card.
360
- * Places media elements at the specified position in the card.
361
- *
362
- * @param mediaElement - The media element to add
363
- * @param position - Position to place media ('top', 'bottom')
364
- * @returns The card instance for chaining
365
- * @example
366
- * ```typescript
367
- * // Creating media element
368
- * const media = document.createElement('div');
369
- * media.className = 'mtrl-card__media';
370
- *
371
- * // Adding at the top (default)
372
- * card.addMedia(media);
373
- *
374
- * // Or adding at the bottom
375
- * card.addMedia(media, 'bottom');
376
- * ```
377
- */
378
121
  addMedia: (mediaElement: HTMLElement, position?: 'top' | 'bottom') => CardComponent;
379
- /**
380
- * Sets the card actions section.
381
- * Replaces any existing actions with the provided actions element.
382
- * Actions typically contain buttons or other interactive controls,
383
- * and are placed at the bottom of the card.
384
- *
385
- * @param actionsElement - The actions element to add
386
- * @returns The card instance for chaining
387
- * @example
388
- * ```typescript
389
- * // Create actions container
390
- * const actions = document.createElement('div');
391
- * actions.className = 'mtrl-card__actions';
392
- *
393
- * // Add buttons to actions
394
- * const button = document.createElement('button');
395
- * button.textContent = 'Action';
396
- * actions.appendChild(button);
397
- *
398
- * // Set actions on card
399
- * card.setActions(actions);
400
- * ```
401
- */
402
122
  setActions: (actionsElement: HTMLElement) => CardComponent;
403
- /**
404
- * Makes the card draggable.
405
- * Sets up native HTML5 drag and drop functionality and adds appropriate
406
- * accessibility attributes. Automatically updates ARIA attributes during drag.
407
- *
408
- * @param dragStartCallback - Callback for drag start event
409
- * @returns The card instance for chaining
410
- * @example
411
- * ```typescript
412
- * // Basic draggable card
413
- * card.makeDraggable();
414
- *
415
- * // With custom drag start handler
416
- * card.makeDraggable((event) => {
417
- * // Set custom data or perform other actions on drag start
418
- * event.dataTransfer.setData('text/plain', 'Card data');
419
- * });
420
- * ```
421
- */
422
123
  makeDraggable: (dragStartCallback?: (event: DragEvent) => void) => CardComponent;
423
- /**
424
- * Sets focus to the card.
425
- * Useful for programmatic focus management, especially in keyboard navigation
426
- * scenarios or after dynamic content changes.
427
- *
428
- * @returns The card instance for chaining
429
- * @example
430
- * ```typescript
431
- * // Focus the card
432
- * card.focus();
433
- *
434
- * // Can be chained with other methods
435
- * card.setHeader(headerElement).focus();
436
- * ```
437
- */
438
124
  focus: () => CardComponent;
439
- /**
440
- * Destroys the card component and removes event listeners.
441
- * Call this method when the card is no longer needed to prevent memory leaks.
442
- *
443
- * @example
444
- * ```typescript
445
- * // Clean up resources when done with the card
446
- * card.destroy();
447
- * ```
448
- */
449
125
  destroy: () => void;
450
126
  }
451
- /**
452
- * Loading feature interface.
453
- * Provides methods to control loading state on the card.
454
- *
455
- * @interface LoadingFeature
456
- * @category Components
457
- */
458
127
  export interface LoadingFeature {
459
- /** Check if loading state is active */
460
128
  isLoading: () => boolean;
461
- /** Set loading state */
462
129
  setLoading: (loading: boolean) => void;
463
130
  }
464
- /**
465
- * Expandable feature interface.
466
- * Provides methods to control the expanded/collapsed state of a card.
467
- *
468
- * @interface ExpandableFeature
469
- * @category Components
470
- */
471
131
  export interface ExpandableFeature {
472
- /** Check if expanded state is active */
473
132
  isExpanded: () => boolean;
474
- /** Set expanded state */
475
133
  setExpanded: (expanded: boolean) => void;
476
- /** Toggle expanded state */
477
134
  toggleExpanded: () => void;
478
135
  }
479
- /**
480
- * Swipeable feature interface.
481
- * Provides methods to control the swipe behavior of a card.
482
- *
483
- * @interface SwipeableFeature
484
- * @category Components
485
- */
486
136
  export interface SwipeableFeature {
487
- /** Reset swipe position */
488
137
  reset: () => void;
489
138
  }
490
- /**
491
- * API options interface.
492
- * Configuration object for the card's API methods.
493
- *
494
- * @interface ApiOptions
495
- * @category Components
496
- */
497
139
  export interface ApiOptions {
498
- /** Lifecycle methods */
499
140
  lifecycle: {
500
- /** Destroy callback */
501
141
  destroy: () => void;
502
142
  };
503
- /** The resolved configuration the card was created from */
504
143
  config: CardComponentConfig;
505
144
  }
506
- /**
507
- * Registers CardConfig with the global defaults map, so
508
- * `setComponentDefaults("card", ...)` is typed without core
509
- * importing anything from this component.
510
- */
511
145
  declare module "../../core/config/global" {
512
146
  interface ComponentConfigMap {
513
147
  card?: Partial<CardConfig>;
@@ -1,25 +1,3 @@
1
1
  import { CarouselConfig, CarouselComponent } from "./types.js";
2
- /**
3
- * Creates a Material 3 carousel.
4
- *
5
- * Items are laid out by a keyline strategy per layout (multi-browse,
6
- * uncontained, hero, centred hero, full-screen) and scrolled natively;
7
- * they change size as they move through the layout and snap into place.
8
- *
9
- * @example
10
- * ```ts
11
- * const carousel = createCarousel({
12
- * variant: 'hero',
13
- * itemWidth: 360,
14
- * slides: [
15
- * { image: 'a.jpg', title: 'Alpha' },
16
- * { image: 'b.jpg', title: 'Beta' },
17
- * ],
18
- * });
19
- * carousel.on('change', ({ index }) => console.log(index));
20
- * ```
21
- *
22
- * @category Components
23
- */
24
2
  export declare const createCarousel: (config?: CarouselConfig) => CarouselComponent;
25
3
  export default createCarousel;
@@ -1,33 +1,17 @@
1
- /**
2
- * Material 3 carousel layouts (m3.material.io carousel specs)
3
- */
4
1
  export declare const CAROUSEL_VARIANTS: {
5
- /** At least one large, one medium and one small item; the default */
6
2
  readonly MULTI_BROWSE: "multi-browse";
7
- /** Items keep one size and run off the trailing edge */
8
3
  readonly UNCONTAINED: "uncontained";
9
- /** One large item and a small preview of the next */
10
4
  readonly HERO: "hero";
11
- /** One large item centred between two small ones */
12
5
  readonly HERO_CENTER: "hero-center";
13
- /** One edge-to-edge item at a time, scrolling vertically */
14
6
  readonly FULL_SCREEN: "full-screen";
15
7
  };
16
8
  export declare const CAROUSEL_EVENTS: {
17
- /** The snapped item changed; detail carries the index */
18
9
  readonly CHANGE: "change";
19
10
  };
20
- /**
21
- * Defaults from the Compose Material 3 carousel (CarouselDefaults) and the
22
- * carousel specs: 8dp between items, 16dp container padding, 28dp corners,
23
- * small items between 40 and 56dp, 10dp anchors just outside the container.
24
- */
25
11
  export declare const CAROUSEL_DEFAULTS: {
26
12
  readonly VARIANT: "multi-browse";
27
- /** Preferred width of a large item; hero layouts use it as a maximum */
28
13
  readonly ITEM_WIDTH: 280;
29
14
  readonly GAP: 8;
30
- /** Full-screen layouts space items 16dp apart */
31
15
  readonly GAP_FULL_SCREEN: 16;
32
16
  readonly PADDING: 16;
33
17
  readonly CORNER_RADIUS: 28;
@@ -1,61 +1,34 @@
1
1
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
- /** Current item reported by programmatic navigation or native scrolling. */
3
2
  export interface CarouselChangePayload {
4
- /** The current item's index, as `getValue()` returns it; every model event carries it */
5
3
  value: number;
6
4
  }
7
- /** Events emitted by the scroll feature and forwarded from the root. */
8
5
  export interface CarouselEvents {
9
6
  change: (payload: CarouselChangePayload) => void;
10
7
  focus: (payload: ForwardedEventPayload<FocusEvent, HTMLElement>) => void;
11
8
  blur: (payload: ForwardedEventPayload<FocusEvent, HTMLElement>) => void;
12
9
  }
13
10
  export type CarouselVariant = "multi-browse" | "uncontained" | "hero" | "hero-center" | "full-screen";
14
- /**
15
- * Content of one carousel item. Either an image with optional text and a
16
- * call to action, or arbitrary content.
17
- */
18
11
  export interface CarouselSlide {
19
12
  image?: string;
20
- /** Alternative text for the image; empty when the image is decorative */
21
13
  alt?: string;
22
14
  title?: string;
23
15
  description?: string;
24
16
  buttonText?: string;
25
17
  buttonUrl?: string;
26
- /** Custom content, replaces the image and text */
27
18
  content?: HTMLElement | string;
28
19
  }
29
20
  export interface CarouselConfig {
30
- /** Layout, "multi-browse" by default */
31
21
  variant?: CarouselVariant;
32
22
  slides?: CarouselSlide[];
33
- /**
34
- * Width of a large item in px. Multi-browse and uncontained layouts
35
- * treat it as the preferred width, hero layouts as a maximum (the
36
- * container width by default).
37
- */
38
23
  itemWidth?: number;
39
- /** Space between items, 8 by default (16 for full-screen) */
40
24
  gap?: number;
41
- /** Space between the container edges and the items, 16 by default (0 for full-screen) */
42
25
  padding?: number;
43
- /** Corner radius of the items, 28 by default */
44
26
  cornerRadius?: number;
45
- /** Snap to items after scrolling; on by default except for uncontained layouts */
46
27
  snap?: boolean;
47
- /**
48
- * Scroll horizontal carousels with a vertical mouse wheel; false by default.
49
- * Normalized deltas accumulate per gesture and glide to directional snap points.
50
- * One notch advances at least one item; momentum can pass several whole items.
51
- * At either edge the page scrolls.
52
- * Horizontal trackpad gestures, zoom and vertical layouts stay native.
53
- */
54
28
  wheel?: boolean;
55
29
  initialSlide?: number;
56
30
  minSmallItemWidth?: number;
57
31
  maxSmallItemWidth?: number;
58
- /** Accessible name of the carousel */
59
32
  ariaLabel?: string;
60
33
  prefix?: string;
61
34
  componentName?: string;
@@ -72,10 +45,8 @@ export interface CarouselComponent {
72
45
  prev: () => CarouselComponent;
73
46
  goTo: (index: number) => CarouselComponent;
74
47
  getCurrentSlide: () => number;
75
- /** Reads the current model value without changing selection. */
76
48
  getValue: () => number;
77
49
  getVariant: () => CarouselVariant;
78
- /** Enable or disable vertical mouse wheel scrolling in place. */
79
50
  setWheel: (on: boolean) => CarouselComponent;
80
51
  addSlide: (slide: CarouselSlide, index?: number) => CarouselComponent;
81
52
  removeSlide: (index: number) => CarouselComponent;
@@ -1,64 +1,3 @@
1
- /**
2
- * Checkbox Component Implementation
3
- *
4
- * This module implements a Material Design 3 checkbox component
5
- * with support for different visual variants, indeterminate state,
6
- * and configurable label positioning.
7
- *
8
- * @module components/checkbox
9
- * @category Components
10
- */
11
1
  import { CheckboxConfig, CheckboxComponent } from "./types.js";
12
- /**
13
- * Creates a new Checkbox component with the specified configuration.
14
- *
15
- * Checkboxes allow users to select one or more items from a set,
16
- * or to toggle a single option on or off. This implementation follows
17
- * Material Design 3 guidelines for accessible, customizable checkboxes.
18
- *
19
- * @param {CheckboxConfig} config - Configuration options for the checkbox
20
- * @returns {CheckboxComponent} A fully configured checkbox component instance
21
- * @throws {Error} Throws an error if checkbox creation fails
22
- *
23
- * @category Components
24
- *
25
- * @example
26
- * // Create a basic checkbox
27
- * const checkbox = createCheckbox({
28
- * label: 'Accept terms and conditions',
29
- * name: 'accept-terms'
30
- * });
31
- *
32
- * document.querySelector('.form').appendChild(checkbox.element);
33
- *
34
- * @example
35
- * // Create a pre-checked checkbox with custom styling
36
- * const checkbox = createCheckbox({
37
- * label: 'Remember me',
38
- * checked: true,
39
- * labelPosition: 'start'
40
- * });
41
- *
42
- * // Add event listener
43
- * checkbox.on('change', (e) => {
44
- * console.log('Checkbox changed:', e.checked);
45
- * });
46
- *
47
- * @example
48
- * // Create an indeterminate checkbox for "select all" functionality
49
- * const selectAll = createCheckbox({
50
- * label: 'Select All',
51
- * indeterminate: true
52
- * });
53
- *
54
- * // Later, based on selections:
55
- * if (allSelected) {
56
- * selectAll.check();
57
- * } else if (noneSelected) {
58
- * selectAll.uncheck();
59
- * } else {
60
- * selectAll.setIndeterminate(true);
61
- * }
62
- */
63
2
  declare const createCheckbox: (config?: CheckboxConfig) => CheckboxComponent;
64
3
  export default createCheckbox;