material 3.8.0 → 3.8.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 (382) hide show
  1. package/README.md +1 -1
  2. package/dist/components/badge/badge.d.ts +4 -0
  3. package/dist/components/badge/constants.d.ts +4 -0
  4. package/dist/components/badge/index.d.ts +1 -0
  5. package/dist/components/badge/types.d.ts +102 -0
  6. package/dist/components/bottom-app-bar/bottom-app-bar.d.ts +4 -0
  7. package/dist/components/bottom-app-bar/constants.d.ts +3 -0
  8. package/dist/components/bottom-app-bar/types.d.ts +42 -0
  9. package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
  10. package/dist/components/bottom-sheet/constants.d.ts +9 -0
  11. package/dist/components/bottom-sheet/types.d.ts +52 -0
  12. package/dist/components/button/button.d.ts +4 -0
  13. package/dist/components/button/constants.d.ts +20 -0
  14. package/dist/components/button/index.d.ts +1 -0
  15. package/dist/components/button/types.d.ts +190 -0
  16. package/dist/components/button-group/button-group.d.ts +4 -0
  17. package/dist/components/button-group/constants.d.ts +54 -0
  18. package/dist/components/button-group/index.d.ts +1 -0
  19. package/dist/components/button-group/types.d.ts +125 -0
  20. package/dist/components/card/card.d.ts +4 -0
  21. package/dist/components/card/constants.d.ts +11 -0
  22. package/dist/components/card/content.d.ts +16 -0
  23. package/dist/components/card/index.d.ts +2 -0
  24. package/dist/components/card/types.d.ts +123 -0
  25. package/dist/components/carousel/carousel.d.ts +1 -0
  26. package/dist/components/carousel/constants.d.ts +10 -0
  27. package/dist/components/carousel/types.d.ts +16 -0
  28. package/dist/components/checkbox/checkbox.d.ts +5 -0
  29. package/dist/components/checkbox/constants.d.ts +13 -0
  30. package/dist/components/checkbox/index.d.ts +2 -0
  31. package/dist/components/checkbox/types.d.ts +94 -0
  32. package/dist/components/chips/chips.d.ts +4 -0
  33. package/dist/components/chips/constants.d.ts +1 -0
  34. package/dist/components/chips/factories.d.ts +4 -0
  35. package/dist/components/chips/types.d.ts +140 -0
  36. package/dist/components/datepicker/constants.d.ts +38 -0
  37. package/dist/components/datepicker/datepicker.d.ts +2 -0
  38. package/dist/components/datepicker/types.d.ts +139 -0
  39. package/dist/components/dialog/constants.d.ts +45 -0
  40. package/dist/components/dialog/dialog.d.ts +5 -0
  41. package/dist/components/dialog/index.d.ts +1 -0
  42. package/dist/components/dialog/types.d.ts +196 -0
  43. package/dist/components/divider/config.d.ts +30 -0
  44. package/dist/components/divider/constants.d.ts +15 -0
  45. package/dist/components/divider/divider.d.ts +4 -0
  46. package/dist/components/divider/types.d.ts +27 -0
  47. package/dist/components/drawer/constants.d.ts +39 -0
  48. package/dist/components/drawer/drawer.d.ts +4 -0
  49. package/dist/components/drawer/index.d.ts +1 -0
  50. package/dist/components/drawer/types.d.ts +109 -0
  51. package/dist/components/extended-fab/constants.d.ts +32 -0
  52. package/dist/components/extended-fab/extended-fab.d.ts +4 -0
  53. package/dist/components/extended-fab/types.d.ts +123 -0
  54. package/dist/components/fab/constants.d.ts +26 -0
  55. package/dist/components/fab/fab.d.ts +4 -0
  56. package/dist/components/fab/types.d.ts +100 -0
  57. package/dist/components/fab-menu/constants.d.ts +9 -0
  58. package/dist/components/fab-menu/fab-menu.d.ts +4 -0
  59. package/dist/components/fab-menu/types.d.ts +41 -0
  60. package/dist/components/icon-button/constants.d.ts +34 -0
  61. package/dist/components/icon-button/icon-button.d.ts +4 -0
  62. package/dist/components/icon-button/types.d.ts +157 -0
  63. package/dist/components/index.d.ts +1 -0
  64. package/dist/components/list/constants.d.ts +30 -0
  65. package/dist/components/list/index.d.ts +1 -0
  66. package/dist/components/list/list.d.ts +4 -0
  67. package/dist/components/list/types.d.ts +110 -0
  68. package/dist/components/loading-indicator/constants.d.ts +16 -0
  69. package/dist/components/loading-indicator/features/renderer.d.ts +13 -0
  70. package/dist/components/loading-indicator/loading-indicator.d.ts +4 -0
  71. package/dist/components/loading-indicator/types.d.ts +21 -0
  72. package/dist/components/menu/constants.d.ts +51 -0
  73. package/dist/components/menu/features/controller.js +1 -1
  74. package/dist/components/menu/features/keyboard.js +8 -3
  75. package/dist/components/menu/features/opener.js +2 -16
  76. package/dist/components/menu/index.d.ts +2 -0
  77. package/dist/components/menu/inner.d.ts +2 -0
  78. package/dist/components/menu/menu.d.ts +4 -0
  79. package/dist/components/menu/on-demand.d.ts +9 -0
  80. package/dist/components/menu/types.d.ts +185 -1
  81. package/dist/components/navigation-bar/navigation-bar.d.ts +1 -0
  82. package/dist/components/navigation-bar/types.d.ts +12 -0
  83. package/dist/components/navigation-rail/constants.d.ts +2 -0
  84. package/dist/components/navigation-rail/navigation-rail.d.ts +1 -0
  85. package/dist/components/navigation-rail/types.d.ts +18 -0
  86. package/dist/components/progress/constants.d.ts +37 -0
  87. package/dist/components/progress/progress.d.ts +4 -0
  88. package/dist/components/progress/types.d.ts +136 -0
  89. package/dist/components/radios/constants.d.ts +14 -0
  90. package/dist/components/radios/radios.d.ts +4 -0
  91. package/dist/components/radios/types.d.ts +89 -0
  92. package/dist/components/search/constants.d.ts +34 -0
  93. package/dist/components/search/search.d.ts +4 -0
  94. package/dist/components/search/types.d.ts +109 -0
  95. package/dist/components/select/constants.d.ts +46 -0
  96. package/dist/components/select/features.js +9 -1
  97. package/dist/components/select/index.d.ts +2 -0
  98. package/dist/components/select/select.d.ts +4 -0
  99. package/dist/components/select/types.d.ts +95 -0
  100. package/dist/components/side-sheet/constants.d.ts +9 -0
  101. package/dist/components/side-sheet/side-sheet.d.ts +4 -0
  102. package/dist/components/side-sheet/types.d.ts +51 -0
  103. package/dist/components/slider/constants.d.ts +62 -0
  104. package/dist/components/slider/slider.d.ts +4 -0
  105. package/dist/components/slider/types.d.ts +78 -0
  106. package/dist/components/snackbar/constants.d.ts +37 -0
  107. package/dist/components/snackbar/snackbar.d.ts +5 -0
  108. package/dist/components/snackbar/types.d.ts +67 -0
  109. package/dist/components/split-button/api.js +13 -3
  110. package/dist/components/split-button/constants.d.ts +13 -0
  111. package/dist/components/split-button/split-button.d.ts +4 -0
  112. package/dist/components/split-button/types.d.ts +50 -0
  113. package/dist/components/switch/constants.d.ts +34 -0
  114. package/dist/components/switch/switch.d.ts +4 -0
  115. package/dist/components/switch/types.d.ts +55 -0
  116. package/dist/components/tabs/constants.d.ts +49 -0
  117. package/dist/components/tabs/indicator.d.ts +22 -0
  118. package/dist/components/tabs/responsive.d.ts +17 -0
  119. package/dist/components/tabs/tab.d.ts +5 -0
  120. package/dist/components/tabs/tabs.d.ts +4 -0
  121. package/dist/components/tabs/types.d.ts +170 -0
  122. package/dist/components/tabs/utils.d.ts +24 -0
  123. package/dist/components/text-field/constants.d.ts +61 -0
  124. package/dist/components/text-field/features/trailing-icon.d.ts +25 -0
  125. package/dist/components/text-field/text-field.d.ts +4 -0
  126. package/dist/components/text-field/types.d.ts +84 -0
  127. package/dist/components/timepicker/constants.d.ts +61 -0
  128. package/dist/components/timepicker/types.d.ts +145 -0
  129. package/dist/components/toolbar/constants.d.ts +8 -0
  130. package/dist/components/toolbar/toolbar.d.ts +4 -0
  131. package/dist/components/toolbar/types.d.ts +75 -0
  132. package/dist/components/tooltip/constants.d.ts +43 -0
  133. package/dist/components/tooltip/tooltip.d.ts +4 -0
  134. package/dist/components/tooltip/types.d.ts +78 -0
  135. package/dist/components/top-app-bar/constants.d.ts +29 -0
  136. package/dist/components/top-app-bar/top-app-bar.d.ts +4 -0
  137. package/dist/components/top-app-bar/types.d.ts +55 -0
  138. package/dist/core/canvas/animation.d.ts +6 -0
  139. package/dist/core/canvas/drawing.d.ts +47 -0
  140. package/dist/core/canvas/index.d.ts +1 -0
  141. package/dist/core/canvas/resize.d.ts +7 -0
  142. package/dist/core/canvas/utils.d.ts +39 -0
  143. package/dist/core/compose/base.d.ts +9 -0
  144. package/dist/core/compose/cleanup.d.ts +2 -0
  145. package/dist/core/compose/component.d.ts +13 -0
  146. package/dist/core/compose/features/badge.d.ts +10 -0
  147. package/dist/core/compose/features/checkable.d.ts +13 -0
  148. package/dist/core/compose/features/debounce.d.ts +19 -0
  149. package/dist/core/compose/features/disabled.d.ts +11 -0
  150. package/dist/core/compose/features/events.d.ts +19 -0
  151. package/dist/core/compose/features/icon.d.ts +20 -0
  152. package/dist/core/compose/features/input.d.ts +31 -0
  153. package/dist/core/compose/features/lifecycle.d.ts +16 -0
  154. package/dist/core/compose/features/position.d.ts +13 -0
  155. package/dist/core/compose/features/ripple.d.ts +17 -0
  156. package/dist/core/compose/features/size.d.ts +5 -0
  157. package/dist/core/compose/features/style.d.ts +5 -0
  158. package/dist/core/compose/features/text.d.ts +20 -0
  159. package/dist/core/compose/features/textinput.d.ts +39 -0
  160. package/dist/core/compose/features/textlabel.d.ts +18 -0
  161. package/dist/core/compose/features/throttle.d.ts +18 -0
  162. package/dist/core/compose/features/track.d.ts +12 -0
  163. package/dist/core/compose/features/variant.d.ts +5 -0
  164. package/dist/core/compose/features/withEvents.d.ts +12 -0
  165. package/dist/core/compose/pipe.d.ts +12 -0
  166. package/dist/core/compose/utils/type-guards.d.ts +5 -0
  167. package/dist/core/config/component.d.ts +17 -0
  168. package/dist/core/config/global.d.ts +15 -0
  169. package/dist/core/config.d.ts +34 -0
  170. package/dist/core/dom/attributes.d.ts +25 -0
  171. package/dist/core/dom/classes.d.ts +24 -0
  172. package/dist/core/dom/create.d.ts +47 -0
  173. package/dist/core/dom/events.d.ts +26 -0
  174. package/dist/core/dom/focus.d.ts +11 -0
  175. package/dist/core/dom/html.d.ts +6 -0
  176. package/dist/core/dom/layer.d.ts +36 -0
  177. package/dist/core/dom/roving.d.ts +7 -0
  178. package/dist/core/navigation/destinations.d.ts +10 -0
  179. package/dist/core/shapes/cubic.d.ts +8 -0
  180. package/dist/core/shapes/material.d.ts +45 -0
  181. package/dist/core/shapes/polygon.d.ts +11 -0
  182. package/dist/core/state/emitter.d.ts +19 -0
  183. package/dist/core/state/events.d.ts +17 -0
  184. package/dist/core/state/store.d.ts +40 -0
  185. package/dist/core/theme/shape.d.ts +3 -0
  186. package/dist/core/theme/tokens.d.ts +6 -0
  187. package/dist/core/utils/background.d.ts +7 -0
  188. package/dist/core/utils/color.d.ts +5 -0
  189. package/dist/core/utils/index.d.ts +9 -0
  190. package/dist/core/utils/mobile.d.ts +10 -0
  191. package/dist/core/utils/object.d.ts +9 -0
  192. package/dist/core/utils/performance.d.ts +20 -0
  193. package/dist/core/utils/theme.d.ts +8 -0
  194. package/dist/core/utils/url.d.ts +3 -0
  195. package/dist/elements/adapter.d.ts +24 -0
  196. package/dist/elements/badge.d.ts +4 -0
  197. package/dist/elements/bottom-app-bar.d.ts +4 -0
  198. package/dist/elements/bottom-sheet.d.ts +6 -0
  199. package/dist/elements/button-group.d.ts +8 -0
  200. package/dist/elements/button.d.ts +5 -0
  201. package/dist/elements/card.d.ts +4 -0
  202. package/dist/elements/carousel.d.ts +5 -0
  203. package/dist/elements/checkbox.d.ts +4 -0
  204. package/dist/elements/chips.d.ts +9 -0
  205. package/dist/elements/css/menu.css +1 -1
  206. package/dist/elements/css/menu.js +1 -1
  207. package/dist/elements/datepicker.d.ts +6 -0
  208. package/dist/elements/define.d.ts +48 -0
  209. package/dist/elements/dialog.d.ts +5 -0
  210. package/dist/elements/divider.d.ts +4 -0
  211. package/dist/elements/drawer.d.ts +6 -0
  212. package/dist/elements/extended-fab.d.ts +5 -0
  213. package/dist/elements/fab-menu.d.ts +10 -0
  214. package/dist/elements/fab.d.ts +5 -0
  215. package/dist/elements/icon-button.d.ts +6 -0
  216. package/dist/elements/index.d.ts +4 -0
  217. package/dist/elements/list.d.ts +8 -0
  218. package/dist/elements/loading-indicator.d.ts +4 -0
  219. package/dist/elements/menu.d.ts +12 -0
  220. package/dist/elements/navigation-bar.d.ts +6 -0
  221. package/dist/elements/navigation-rail.d.ts +10 -0
  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/progress.d.ts +4 -0
  261. package/dist/elements/radios.d.ts +5 -0
  262. package/dist/elements/search.d.ts +15 -0
  263. package/dist/elements/select.d.ts +6 -0
  264. package/dist/elements/side-sheet.d.ts +5 -0
  265. package/dist/elements/slider.d.ts +7 -0
  266. package/dist/elements/snackbar.d.ts +4 -0
  267. package/dist/elements/split-button.d.ts +8 -0
  268. package/dist/elements/styles.d.ts +11 -0
  269. package/dist/elements/switch.d.ts +5 -0
  270. package/dist/elements/tabs.d.ts +6 -0
  271. package/dist/elements/text-field.d.ts +9 -0
  272. package/dist/elements/timepicker.d.ts +9 -0
  273. package/dist/elements/toolbar.d.ts +4 -0
  274. package/dist/elements/tooltip.d.ts +4 -0
  275. package/dist/elements/top-app-bar.d.ts +4 -0
  276. package/dist/index.d.ts +1 -0
  277. package/dist/react/create.d.ts +15 -0
  278. package/dist/react/index.d.ts +1 -0
  279. package/dist/react/jsx.d.ts +3 -0
  280. package/dist/solid/create.d.ts +16 -0
  281. package/dist/solid/index.d.ts +1 -0
  282. package/dist/solid/jsx.d.ts +4 -0
  283. package/dist/ssr/index.d.ts +3 -0
  284. package/dist/ssr/solid.d.ts +1 -0
  285. package/dist/ssr/svelte.d.ts +1 -0
  286. package/dist/ssr/vue.d.ts +1 -0
  287. package/dist/styles/badge.css +1 -1
  288. package/dist/styles/base-lite.css +1 -1
  289. package/dist/styles/base.css +1 -1
  290. package/dist/styles/bottom-app-bar.css +1 -1
  291. package/dist/styles/bottom-sheet.css +1 -1
  292. package/dist/styles/button-group.css +1 -1
  293. package/dist/styles/button.css +1 -1
  294. package/dist/styles/card.css +1 -1
  295. package/dist/styles/carousel.css +1 -1
  296. package/dist/styles/checkbox.css +1 -1
  297. package/dist/styles/chips.css +1 -1
  298. package/dist/styles/contrast.css +1 -1
  299. package/dist/styles/datepicker.css +1 -1
  300. package/dist/styles/dialog.css +1 -1
  301. package/dist/styles/divider.css +1 -1
  302. package/dist/styles/drawer.css +1 -1
  303. package/dist/styles/extended-fab.css +1 -1
  304. package/dist/styles/fab-menu.css +1 -1
  305. package/dist/styles/fab.css +1 -1
  306. package/dist/styles/icon-button.css +1 -1
  307. package/dist/styles/list.css +1 -1
  308. package/dist/styles/loading-indicator.css +1 -1
  309. package/dist/styles/menu.css +2 -2
  310. package/dist/styles/navigation-bar.css +1 -1
  311. package/dist/styles/navigation-rail.css +1 -1
  312. package/dist/styles/progress.css +1 -1
  313. package/dist/styles/radios.css +1 -1
  314. package/dist/styles/search.css +1 -1
  315. package/dist/styles/select.css +1 -1
  316. package/dist/styles/side-sheet.css +1 -1
  317. package/dist/styles/slider.css +1 -1
  318. package/dist/styles/snackbar.css +1 -1
  319. package/dist/styles/split-button.css +1 -1
  320. package/dist/styles/switch.css +1 -1
  321. package/dist/styles/tabs.css +1 -1
  322. package/dist/styles/text-field.css +1 -1
  323. package/dist/styles/timepicker.css +1 -1
  324. package/dist/styles/toolbar.css +1 -1
  325. package/dist/styles/tooltip.css +1 -1
  326. package/dist/styles/top-app-bar.css +1 -1
  327. package/dist/styles/typography.css +1 -1
  328. package/dist/styles/utilities.css +1 -1
  329. package/dist/styles.css +2 -2
  330. package/dist/svelte/runtime.d.ts +21 -0
  331. package/dist/theme/image.d.ts +2 -0
  332. package/dist/theme/index.d.ts +20 -0
  333. package/dist/theme/variants.d.ts +6 -0
  334. package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +1 -0
  335. package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +39 -0
  336. package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +13 -0
  337. package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +1 -0
  338. package/dist/theme/vendor/hct/hct.d.ts +9 -0
  339. package/dist/themes/autumn-contrast.css +1 -1
  340. package/dist/themes/autumn.css +1 -1
  341. package/dist/themes/baseline-contrast.css +1 -1
  342. package/dist/themes/baseline.css +1 -1
  343. package/dist/themes/brownbeige-contrast.css +1 -1
  344. package/dist/themes/brownbeige.css +1 -1
  345. package/dist/themes/content-contrast.css +1 -1
  346. package/dist/themes/content.css +1 -1
  347. package/dist/themes/desert-contrast.css +1 -1
  348. package/dist/themes/desert.css +1 -1
  349. package/dist/themes/expressive-contrast.css +1 -1
  350. package/dist/themes/expressive.css +1 -1
  351. package/dist/themes/fidelity-contrast.css +1 -1
  352. package/dist/themes/fidelity.css +1 -1
  353. package/dist/themes/forest-contrast.css +1 -1
  354. package/dist/themes/forest.css +1 -1
  355. package/dist/themes/fruit-salad-contrast.css +1 -1
  356. package/dist/themes/fruit-salad.css +1 -1
  357. package/dist/themes/highcontrast-contrast.css +1 -1
  358. package/dist/themes/highcontrast.css +1 -1
  359. package/dist/themes/monochrome-contrast.css +1 -1
  360. package/dist/themes/monochrome.css +1 -1
  361. package/dist/themes/neutral-contrast.css +1 -1
  362. package/dist/themes/neutral.css +1 -1
  363. package/dist/themes/ocean-contrast.css +1 -1
  364. package/dist/themes/ocean.css +1 -1
  365. package/dist/themes/rainbow-contrast.css +1 -1
  366. package/dist/themes/rainbow.css +1 -1
  367. package/dist/themes/sageivory-contrast.css +1 -1
  368. package/dist/themes/sageivory.css +1 -1
  369. package/dist/themes/spring-contrast.css +1 -1
  370. package/dist/themes/spring.css +1 -1
  371. package/dist/themes/summer-contrast.css +1 -1
  372. package/dist/themes/summer.css +1 -1
  373. package/dist/themes/sunset-contrast.css +1 -1
  374. package/dist/themes/sunset.css +1 -1
  375. package/dist/themes/tealcaramel-contrast.css +1 -1
  376. package/dist/themes/tealcaramel.css +1 -1
  377. package/dist/themes/vibrant-contrast.css +1 -1
  378. package/dist/themes/vibrant.css +1 -1
  379. package/dist/vue/create.d.ts +18 -0
  380. package/dist/vue/index.d.ts +1 -0
  381. package/package.json +1 -1
  382. package/src/styles/components/_menu.scss +14 -1
@@ -1,40 +1,48 @@
1
+ /** Card variants following Material Design 3 guidelines */
1
2
  export declare const CARD_VARIANTS: {
2
3
  readonly ELEVATED: "elevated";
3
4
  readonly FILLED: "filled";
4
5
  readonly OUTLINED: "outlined";
5
6
  };
7
+ /** Card elevation levels in Material Design 3 */
6
8
  export declare const CARD_ELEVATIONS: {
7
9
  readonly LEVEL0: 0;
8
10
  readonly LEVEL1: 1;
9
11
  readonly LEVEL2: 2;
10
12
  readonly LEVEL4: 4;
11
13
  };
14
+ /** Card width constants */
12
15
  export declare const CARD_WIDTHS: {
13
16
  readonly SMALL: "344px";
14
17
  readonly MEDIUM: "480px";
15
18
  readonly LARGE: "624px";
16
19
  readonly FULL: "100%";
17
20
  };
21
+ /** Card corner radius options */
18
22
  export declare const CARD_CORNER_RADIUS: {
19
23
  readonly SMALL: "8px";
20
24
  readonly MEDIUM: "12px";
21
25
  readonly LARGE: "16px";
22
26
  };
27
+ /** Card media aspect ratio options */
23
28
  export declare const CARD_ASPECT_RATIOS: {
24
29
  readonly SQUARE: "1:1";
25
30
  readonly STANDARD: "4:3";
26
31
  readonly WIDESCREEN: "16:9";
27
32
  };
33
+ /** Card action alignment options */
28
34
  export declare const CARD_ACTION_ALIGNMENT: {
29
35
  readonly START: "start";
30
36
  readonly CENTER: "center";
31
37
  readonly END: "end";
32
38
  readonly SPACE_BETWEEN: "space-between";
33
39
  };
40
+ /** Card media position options */
34
41
  export declare const CARD_MEDIA_POSITION: {
35
42
  readonly TOP: "top";
36
43
  readonly BOTTOM: "bottom";
37
44
  };
45
+ /** CSS class names used in the card component */
38
46
  export declare const CARD_CLASSES: {
39
47
  readonly ROOT: "card";
40
48
  readonly HEADER: "card__header";
@@ -45,11 +53,14 @@ export declare const CARD_CLASSES: {
45
53
  readonly CONTENT: "card__content";
46
54
  readonly MEDIA: "card__media";
47
55
  readonly ACTIONS: "card__actions";
56
+ /** Reserved modifier; draggable currently uses the native attribute. */
48
57
  readonly DRAGGABLE: "card--draggable";
49
58
  readonly INTERACTIVE: "card--interactive";
50
59
  readonly FULL_WIDTH: "card--full-width";
60
+ /** Reserved modifier; clickable currently uses INTERACTIVE. */
51
61
  readonly CLICKABLE: "card--clickable";
52
62
  readonly LOADING: "card--state-loading";
53
63
  readonly EXPANDED: "card--expanded";
64
+ /** Reserved modifier prefix; elevation currently uses styles. */
54
65
  readonly ELEVATION_PREFIX: "card--elevation-";
55
66
  };
@@ -1,6 +1,22 @@
1
1
  import { CardContentConfig, CardHeaderConfig, CardMediaConfig, CardActionsConfig } from "./types.js";
2
2
  export declare const CARD_CONTENT_PADDING = true;
3
+ /**
4
+ * Creates a card content component
5
+ * @param config
6
+ */
3
7
  export declare const createCardContent: (config?: CardContentConfig) => HTMLElement;
8
+ /**
9
+ * Creates a card header component
10
+ * @param config
11
+ */
4
12
  export declare const createCardHeader: (config?: CardHeaderConfig) => HTMLElement;
13
+ /**
14
+ * Creates a card actions component
15
+ * @param config
16
+ */
5
17
  export declare const createCardActions: (config?: CardActionsConfig) => HTMLElement;
18
+ /**
19
+ * Creates a card media component
20
+ * @param config
21
+ */
6
22
  export declare const createCardMedia: (config?: CardMediaConfig) => HTMLElement;
@@ -1,3 +1,5 @@
1
+ /** Factory function to create a new Card component. */
1
2
  export { default, default as createCard } from "./card.js";
3
+ /** Card component types and interfaces These types define the structure and behavior of the Card component. */
2
4
  export type { CardVariant, CardElevationLevel, CardConfig, CardHeaderConfig, CardContentConfig, CardActionsConfig, CardMediaConfig, CardAriaAttributes, CardComponent, CardEvents, } from "./types.js";
3
5
  export { createCardContent, createCardHeader, createCardActions, createCardMedia, } from "./content.js";
@@ -1,102 +1,185 @@
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
+ /** Card variant types following Material Design 3 guidelines. */
4
5
  export type CardVariant = 'elevated' | 'filled' | 'outlined';
6
+ /** Card elevation levels in Material Design 3. */
5
7
  export type CardElevationLevel = 0 | 1 | 2 | 4;
8
+ /** Button configuration interface for buttons shorthand. */
6
9
  export interface ButtonConfig extends Omit<BaseButtonConfig, "variant"> {
10
+ /** Button text content */
7
11
  text?: string;
12
+ /** Button variant (text, outlined, filled, etc.) */
8
13
  variant?: string;
14
+ /** Button icon HTML content */
9
15
  icon?: string;
10
16
  }
17
+ /** Card configuration interface defining all possible card options. */
11
18
  export interface CardConfig {
19
+ /** Card variant type (elevated, filled, outlined) */
12
20
  variant?: CardVariant | string;
21
+ /** The hover and press states and their elevation, for a card the app makes interactive itself. */
13
22
  interactive?: boolean;
23
+ /** Whether the card should take full width */
14
24
  fullWidth?: boolean;
25
+ /** A card that acts on activation: a button (role, tab stop, Enter and */
15
26
  clickable?: boolean;
27
+ /** Whether the card is draggable */
16
28
  draggable?: boolean;
29
+ /** Additional CSS class(es) */
17
30
  class?: string;
31
+ /** Header configuration */
18
32
  headerConfig?: CardHeaderConfig;
33
+ /** Content configuration */
19
34
  contentConfig?: CardContentConfig;
35
+ /** Actions configuration */
20
36
  actionsConfig?: CardActionsConfig;
37
+ /** Media configuration */
21
38
  mediaConfig?: CardMediaConfig;
39
+ /** ARIA attributes for accessibility */
22
40
  aria?: CardAriaAttributes;
41
+ /** Inline header configuration (alternative to headerConfig) */
23
42
  header?: CardHeaderConfig;
43
+ /** Inline content configuration (alternative to contentConfig) */
24
44
  content?: CardContentConfig;
45
+ /** Inline media configuration (alternative to mediaConfig) */
25
46
  media?: CardMediaConfig;
47
+ /** Inline actions configuration (alternative to actionsConfig) */
26
48
  actions?: CardActionsConfig;
49
+ /** Simple buttons array for actions (will be converted to actionsConfig) */
27
50
  buttons?: ButtonConfig[];
51
+ /** Internal component name */
28
52
  componentName?: string;
53
+ /** CSS class prefix */
29
54
  prefix?: string;
55
+ /** Callback executed after component creation */
30
56
  afterCreation?: (component: BaseComponent) => void;
31
57
  }
58
+ /** ARIA attributes for card accessibility. */
32
59
  export interface CardAriaAttributes {
60
+ /** ARIA label */
33
61
  label?: string;
62
+ /** ARIA labelledby */
34
63
  labelledby?: string;
64
+ /** ARIA describedby */
35
65
  describedby?: string;
66
+ /** ARIA role (default: 'button' for a clickable card, 'article' for any other) */
36
67
  role?: string;
68
+ /** Additional ARIA attributes as key-value pairs */
37
69
  [key: string]: string | undefined;
38
70
  }
71
+ /** Card header configuration. */
39
72
  export interface CardHeaderConfig {
73
+ /** Header title text */
40
74
  title?: string;
75
+ /** Header subtitle text */
41
76
  subtitle?: string;
77
+ /** Avatar element or HTML string */
42
78
  avatar?: HTMLElement | string;
79
+ /** Action element or HTML string */
43
80
  action?: HTMLElement | string;
81
+ /** Additional CSS class(es) */
44
82
  class?: string;
45
83
  }
84
+ /** Card content configuration. */
46
85
  export interface CardContentConfig {
86
+ /** Text content */
47
87
  text?: string;
88
+ /** HTML content */
48
89
  html?: string;
90
+ /** Child elements */
49
91
  children?: HTMLElement[];
92
+ /** Whether to add padding (true by default) */
50
93
  padding?: boolean;
94
+ /** Additional CSS class(es) */
51
95
  class?: string;
52
96
  }
97
+ /** Card actions configuration. */
53
98
  export interface CardActionsConfig {
99
+ /** Action elements */
54
100
  actions?: HTMLElement[];
101
+ /** Whether actions should be full-bleed */
55
102
  fullBleed?: boolean;
103
+ /** Whether actions should be stacked vertically */
56
104
  vertical?: boolean;
105
+ /** Horizontal alignment */
57
106
  align?: 'start' | 'center' | 'end' | 'space-between';
107
+ /** Additional CSS class(es) */
58
108
  class?: string;
59
109
  }
110
+ /** Card media configuration. */
60
111
  export interface CardMediaConfig {
112
+ /** Image source URL */
61
113
  src?: string;
114
+ /** Image alt text (required for accessibility) */
62
115
  alt?: string;
116
+ /** Custom element instead of image */
63
117
  element?: HTMLElement;
118
+ /** Aspect ratio */
64
119
  aspectRatio?: '16:9' | '4:3' | '1:1' | string;
120
+ /** Whether media should use object-fit: contain */
65
121
  contain?: boolean;
122
+ /** Additional CSS class(es) */
66
123
  class?: string;
124
+ /** Position of the media in the card */
67
125
  position?: 'top' | 'bottom';
68
126
  }
127
+ /** Base component interface. */
69
128
  export interface BaseComponent {
129
+ /** The DOM element */
70
130
  element: HTMLElement;
131
+ /** Get class name with prefix */
71
132
  getClass: (name: string) => string;
133
+ /** Get modifier class */
72
134
  getModifierClass: (base: string, modifier: string) => string;
135
+ /** Get element class */
73
136
  getElementClass: (base: string, element: string) => string;
137
+ /** Add CSS class(es) */
74
138
  addClass: (...classes: string[]) => BaseComponent;
139
+ /** Emit one of the card's own events ({@link CardEvents}), with its payload: the names and payloads `on` and `off` accept. */
75
140
  emit?: <K extends keyof CardEvents>(event: K, payload: Parameters<CardEvents[K]>[0]) => void;
141
+ /** Component configuration */
76
142
  config: CardComponentConfig;
143
+ /** Touch state for touch interactions */
77
144
  touchState?: TouchState;
145
+ /** Update touch state */
78
146
  updateTouchState?: (event: TouchEvent | MouseEvent, status: 'start' | 'end') => void;
147
+ /** Component lifecycle methods */
79
148
  lifecycle?: ComponentLifecycle;
80
149
  }
150
+ /** Touch state interface for touch interactions. */
81
151
  export interface TouchState {
152
+ /** Timestamp when touch started */
82
153
  startTime: number;
154
+ /** Starting position */
83
155
  startPosition: {
84
156
  x: number;
85
157
  y: number;
86
158
  };
159
+ /** Whether touch is active */
87
160
  isTouching: boolean;
161
+ /** Current touch target */
88
162
  activeTarget: EventTarget | null;
89
163
  }
164
+ /** Component lifecycle interface. */
90
165
  export interface ComponentLifecycle {
166
+ /** Called when component is mounted to DOM */
91
167
  mount?: () => void;
168
+ /** Called when component is updated */
92
169
  update?: () => void;
170
+ /** Called when component is destroyed */
93
171
  destroy: () => void;
94
172
  }
173
+ /** Card component configuration. */
95
174
  export interface CardComponentConfig extends CardConfig {
175
+ /** Component name */
96
176
  componentName: string;
177
+ /** CSS class prefix */
97
178
  prefix: string;
98
179
  }
180
+ /** The card's events. */
99
181
  export interface CardEvents extends TouchEvents {
182
+ /** Presentation state after expanding or collapsing. */
100
183
  expandedChanged: (payload: {
101
184
  expanded: boolean;
102
185
  }) => void;
@@ -113,35 +196,75 @@ export interface CardEvents extends TouchEvents {
113
196
  event: DragEvent;
114
197
  }) => void;
115
198
  }
199
+ /** Card component interface with methods. */
116
200
  export interface CardComponent extends BaseComponent {
201
+ /** Subscribes to one of the card's events */
117
202
  on: <K extends keyof CardEvents>(event: K, handler: CardEvents[K]) => CardComponent;
203
+ /** Removes a handler added with `on` */
118
204
  off: <K extends keyof CardEvents>(event: K, handler: CardEvents[K]) => CardComponent;
205
+ /**
206
+ * Adds content to the card.
207
+ * @param contentElement
208
+ */
119
209
  addContent: (contentElement: HTMLElement) => CardComponent;
210
+ /**
211
+ * Sets the card header.
212
+ * @param headerElement
213
+ */
120
214
  setHeader: (headerElement: HTMLElement) => CardComponent;
215
+ /**
216
+ * Adds media to the card.
217
+ * @param mediaElement
218
+ * @param position
219
+ */
121
220
  addMedia: (mediaElement: HTMLElement, position?: 'top' | 'bottom') => CardComponent;
221
+ /**
222
+ * Sets the card actions section.
223
+ * @param actionsElement
224
+ */
122
225
  setActions: (actionsElement: HTMLElement) => CardComponent;
226
+ /**
227
+ * Makes the card draggable.
228
+ * @param dragStartCallback
229
+ */
123
230
  makeDraggable: (dragStartCallback?: (event: DragEvent) => void) => CardComponent;
231
+ /** Sets focus to the card. */
124
232
  focus: () => CardComponent;
233
+ /** Destroys the card component and removes event listeners. */
125
234
  destroy: () => void;
126
235
  }
236
+ /** Loading feature interface. */
127
237
  export interface LoadingFeature {
238
+ /** Check if loading state is active */
128
239
  isLoading: () => boolean;
240
+ /** Set loading state */
129
241
  setLoading: (loading: boolean) => void;
130
242
  }
243
+ /** Expandable feature interface. */
131
244
  export interface ExpandableFeature {
245
+ /** Check if expanded state is active */
132
246
  isExpanded: () => boolean;
247
+ /** Set expanded state */
133
248
  setExpanded: (expanded: boolean) => void;
249
+ /** Toggle expanded state */
134
250
  toggleExpanded: () => void;
135
251
  }
252
+ /** Swipeable feature interface. */
136
253
  export interface SwipeableFeature {
254
+ /** Reset swipe position */
137
255
  reset: () => void;
138
256
  }
257
+ /** API options interface. */
139
258
  export interface ApiOptions {
259
+ /** Lifecycle methods */
140
260
  lifecycle: {
261
+ /** Destroy callback */
141
262
  destroy: () => void;
142
263
  };
264
+ /** The resolved configuration the card was created from */
143
265
  config: CardComponentConfig;
144
266
  }
267
+ /** Registers CardConfig with the global defaults map, so `setComponentDefaults("card", ...)` is typed without core importing anything from this component. */
145
268
  declare module "../../core/config/global" {
146
269
  interface ComponentConfigMap {
147
270
  card?: Partial<CardConfig>;
@@ -1,3 +1,4 @@
1
1
  import { CarouselConfig, CarouselComponent } from "./types.js";
2
+ /** Creates a Material 3 carousel. */
2
3
  export declare const createCarousel: (config?: CarouselConfig) => CarouselComponent;
3
4
  export default createCarousel;
@@ -1,17 +1,27 @@
1
+ /** Material 3 carousel layouts (m3.material.io carousel specs) */
1
2
  export declare const CAROUSEL_VARIANTS: {
3
+ /** At least one large, one medium and one small item; the default */
2
4
  readonly MULTI_BROWSE: "multi-browse";
5
+ /** Items keep one size and run off the trailing edge */
3
6
  readonly UNCONTAINED: "uncontained";
7
+ /** One large item and a small preview of the next */
4
8
  readonly HERO: "hero";
9
+ /** One large item centred between two small ones */
5
10
  readonly HERO_CENTER: "hero-center";
11
+ /** One edge-to-edge item at a time, scrolling vertically */
6
12
  readonly FULL_SCREEN: "full-screen";
7
13
  };
8
14
  export declare const CAROUSEL_EVENTS: {
15
+ /** The snapped item changed; detail carries the index */
9
16
  readonly CHANGE: "change";
10
17
  };
18
+ /** Defaults from the Compose Material 3 carousel (CarouselDefaults) and the carousel specs: 8dp between items, 16dp container padding, 28dp corners, small items between 40 and 56dp, 10dp anchors just outside the container. */
11
19
  export declare const CAROUSEL_DEFAULTS: {
12
20
  readonly VARIANT: "multi-browse";
21
+ /** Preferred width of a large item; hero layouts use it as a maximum */
13
22
  readonly ITEM_WIDTH: 280;
14
23
  readonly GAP: 8;
24
+ /** Full-screen layouts space items 16dp apart */
15
25
  readonly GAP_FULL_SCREEN: 16;
16
26
  readonly PADDING: 16;
17
27
  readonly CORNER_RADIUS: 28;
@@ -1,34 +1,48 @@
1
1
  import type { ForwardedEventPayload } from "../../core/dom/index.js";
2
+ /** Current item reported by programmatic navigation or native scrolling. */
2
3
  export interface CarouselChangePayload {
4
+ /** The current item's index, as `getValue()` returns it; every model event carries it */
3
5
  value: number;
4
6
  }
7
+ /** Events emitted by the scroll feature and forwarded from the root. */
5
8
  export interface CarouselEvents {
6
9
  change: (payload: CarouselChangePayload) => void;
7
10
  focus: (payload: ForwardedEventPayload<FocusEvent, HTMLElement>) => void;
8
11
  blur: (payload: ForwardedEventPayload<FocusEvent, HTMLElement>) => void;
9
12
  }
10
13
  export type CarouselVariant = "multi-browse" | "uncontained" | "hero" | "hero-center" | "full-screen";
14
+ /** Content of one carousel item. */
11
15
  export interface CarouselSlide {
12
16
  image?: string;
17
+ /** Alternative text for the image; empty when the image is decorative */
13
18
  alt?: string;
14
19
  title?: string;
15
20
  description?: string;
16
21
  buttonText?: string;
17
22
  buttonUrl?: string;
23
+ /** Custom content, replaces the image and text */
18
24
  content?: HTMLElement | string;
19
25
  }
20
26
  export interface CarouselConfig {
27
+ /** Layout, "multi-browse" by default */
21
28
  variant?: CarouselVariant;
22
29
  slides?: CarouselSlide[];
30
+ /** Width of a large item in px. */
23
31
  itemWidth?: number;
32
+ /** Space between items, 8 by default (16 for full-screen) */
24
33
  gap?: number;
34
+ /** Space between the container edges and the items, 16 by default (0 for full-screen) */
25
35
  padding?: number;
36
+ /** Corner radius of the items, 28 by default */
26
37
  cornerRadius?: number;
38
+ /** Snap to items after scrolling; on by default except for uncontained layouts */
27
39
  snap?: boolean;
40
+ /** Scroll horizontal carousels with a vertical mouse wheel; false by default. */
28
41
  wheel?: boolean;
29
42
  initialSlide?: number;
30
43
  minSmallItemWidth?: number;
31
44
  maxSmallItemWidth?: number;
45
+ /** Accessible name of the carousel */
32
46
  ariaLabel?: string;
33
47
  prefix?: string;
34
48
  componentName?: string;
@@ -45,8 +59,10 @@ export interface CarouselComponent {
45
59
  prev: () => CarouselComponent;
46
60
  goTo: (index: number) => CarouselComponent;
47
61
  getCurrentSlide: () => number;
62
+ /** Reads the current model value without changing selection. */
48
63
  getValue: () => number;
49
64
  getVariant: () => CarouselVariant;
65
+ /** Enable or disable vertical mouse wheel scrolling in place. */
50
66
  setWheel: (on: boolean) => CarouselComponent;
51
67
  addSlide: (slide: CarouselSlide, index?: number) => CarouselComponent;
52
68
  removeSlide: (index: number) => CarouselComponent;
@@ -1,3 +1,8 @@
1
+ /** Checkbox Component Implementation This module implements a Material Design 3 checkbox component with support for different visual variants, indeterminate state, and configurable label positioning. */
1
2
  import { CheckboxConfig, CheckboxComponent } from "./types.js";
3
+ /**
4
+ * Creates a new Checkbox component with the specified configuration.
5
+ * @param config
6
+ */
2
7
  declare const createCheckbox: (config?: CheckboxConfig) => CheckboxComponent;
3
8
  export default createCheckbox;
@@ -1,16 +1,29 @@
1
+ /** Label position options for the checkbox Controls whether the label appears before or after the checkbox. */
1
2
  export declare const CHECKBOX_LABEL_POSITION: {
3
+ /** Label appears before (to the left of) the checkbox */
2
4
  readonly START: "start";
5
+ /** Label appears after (to the right of) the checkbox (default) */
3
6
  readonly END: "end";
4
7
  };
8
+ /** Checkbox state classes These classes are applied to the checkbox element to reflect its current state. */
5
9
  export declare const CHECKBOX_STATES: {
10
+ /** Applied when the checkbox is checked */
6
11
  readonly CHECKED: "checked";
12
+ /** Applied when the checkbox is in indeterminate state */
7
13
  readonly INDETERMINATE: "indeterminate";
14
+ /** Applied when the checkbox is disabled */
8
15
  readonly DISABLED: "disabled";
16
+ /** Applied when the checkbox has focus */
9
17
  readonly FOCUSED: "focused";
10
18
  };
19
+ /** Checkbox element classes These classes are applied to different parts of the checkbox component. */
11
20
  export declare const CHECKBOX_CLASSES: {
21
+ /** The main checkbox container element */
12
22
  readonly ROOT: "checkbox";
23
+ /** The actual input element (usually hidden) */
13
24
  readonly INPUT: "checkbox__input";
25
+ /** The visual checkbox icon */
14
26
  readonly ICON: "checkbox__icon";
27
+ /** The text label associated with the checkbox */
15
28
  readonly LABEL: "checkbox__label";
16
29
  };
@@ -1,3 +1,5 @@
1
+ /** Checkbox Component Module A Material Design 3 checkbox implementation with support for different variants, indeterminate state, and label positioning. */
1
2
  export { default, default as createCheckbox } from "./checkbox.js";
2
3
  export type { CheckboxConfig, CheckboxComponent, CheckboxEvents, CheckboxChangePayload, CheckboxLabelPosition } from "./types.js";
4
+ /** Constants for checkbox configuration Use these constants instead of string literals for better code completion, type safety, and to follow best practices. */
3
5
  export { CHECKBOX_LABEL_POSITION, CHECKBOX_STATES, CHECKBOX_CLASSES } from "./constants.js";
@@ -1,53 +1,144 @@
1
1
  import type { TouchEvents } from "../../core/utils/mobile.js";
2
2
  import type { EventCallback } from "../../core/state/emitter.js";
3
+ /** Checkbox label position types - controls where the label appears */
3
4
  export type CheckboxLabelPosition = "start" | "end";
5
+ /** Configuration interface for the Checkbox component */
4
6
  export interface CheckboxConfig {
7
+ /** Input name attribute, used for form submission */
5
8
  name?: string;
9
+ /**
10
+ * Initial checked state
11
+ * @default false
12
+ */
6
13
  checked?: boolean;
14
+ /**
15
+ * Initial indeterminate state (partially checked)
16
+ * @default false
17
+ */
7
18
  indeterminate?: boolean;
19
+ /**
20
+ * Whether input is required for form validation
21
+ * @default false
22
+ */
8
23
  required?: boolean;
24
+ /**
25
+ * Whether checkbox is disabled (non-interactive)
26
+ * @default false
27
+ */
9
28
  disabled?: boolean;
29
+ /** Input value attribute, used for form submission */
10
30
  value?: string;
31
+ /** Label text displayed next to the checkbox */
11
32
  label?: string;
33
+ /**
34
+ * Label position (start/end)
35
+ * @default "end"
36
+ */
12
37
  labelPosition?: CheckboxLabelPosition | string;
38
+ /**
39
+ * Error state: the outline, the selected container and the state layers take the error role, and the input is marked `aria-invalid`.
40
+ * @default false
41
+ */
13
42
  error?: boolean;
43
+ /** Accessible name when there is no visible label */
14
44
  ariaLabel?: string;
45
+ /** Whether Enter toggles as Space does. */
15
46
  enterToggles?: boolean;
47
+ /** Additional CSS classes to apply to the checkbox */
16
48
  class?: string;
49
+ /**
50
+ * CSS class prefix for all checkbox classes
51
+ * @default "mtrl"
52
+ */
17
53
  prefix?: string;
54
+ /**
55
+ * Component name used in CSS class generation
56
+ * @default "checkbox"
57
+ */
18
58
  componentName?: string;
19
59
  }
60
+ /** A checked-state change from native input activation. */
20
61
  export interface CheckboxChangePayload {
62
+ /** The new checked state. */
21
63
  checked: boolean;
64
+ /** The checked model value, matching getValue() at dispatch. */
22
65
  value: boolean;
66
+ /** The input's HTML value attribute, used for native form submission. */
23
67
  valueAttribute: string;
68
+ /** The original native change event, when supplied by the emitter. */
24
69
  nativeEvent?: Event;
25
70
  }
71
+ /** Events emitted by the checkbox API. */
26
72
  export interface CheckboxEvents extends TouchEvents {
27
73
  change: (payload: CheckboxChangePayload) => void;
28
74
  }
75
+ /** Checkbox component interface */
29
76
  export interface CheckboxComponent {
77
+ /** The checkbox's root DOM element (container) */
30
78
  element: HTMLElement;
79
+ /** The actual input element (native checkbox) */
31
80
  input: HTMLInputElement;
81
+ /** Gets the checkbox's checked state (boolean) for form compatibility */
32
82
  getValue: () => boolean;
83
+ /**
84
+ * Sets the checkbox's checked state.
85
+ * @param value
86
+ */
33
87
  setValue: (value: boolean | string) => CheckboxComponent;
88
+ /** Gets the HTML value attribute (rarely needed) */
34
89
  getValueAttribute: () => string;
90
+ /**
91
+ * Sets the HTML value attribute (rarely needed)
92
+ * @param value
93
+ */
35
94
  setValueAttribute: (value: string) => CheckboxComponent;
95
+ /** Checks the checkbox (sets checked=true). */
36
96
  check: () => CheckboxComponent;
97
+ /** Unchecks the checkbox (sets checked=false). */
37
98
  uncheck: () => CheckboxComponent;
99
+ /** Toggles the checkbox's checked state. */
38
100
  toggle: () => CheckboxComponent;
101
+ /** Checks if the checkbox is currently checked */
39
102
  isChecked: () => boolean;
103
+ /**
104
+ * Sets the checkbox's indeterminate state
105
+ * @param state
106
+ */
40
107
  setIndeterminate: (state: boolean) => CheckboxComponent;
108
+ /**
109
+ * Sets or clears the error state
110
+ * @param error
111
+ */
41
112
  setError: (error: boolean) => CheckboxComponent;
113
+ /**
114
+ * Sets the checkbox's label text
115
+ * @param text
116
+ */
42
117
  setLabel: (text: string) => CheckboxComponent;
118
+ /** Gets the checkbox's current label text */
43
119
  getLabel: () => string;
120
+ /**
121
+ * Adds an event listener to the checkbox
122
+ * @param event
123
+ * @param handler
124
+ */
44
125
  on: <K extends keyof CheckboxEvents>(event: K, handler: CheckboxEvents[K]) => CheckboxComponent;
126
+ /**
127
+ * Removes an event listener from the checkbox
128
+ * @param event
129
+ * @param handler
130
+ */
45
131
  off: <K extends keyof CheckboxEvents>(event: K, handler: CheckboxEvents[K]) => CheckboxComponent;
132
+ /** Enables the checkbox, making it interactive */
46
133
  enable: () => CheckboxComponent;
134
+ /** Disables the checkbox, making it non-interactive */
47
135
  disable: () => CheckboxComponent;
136
+ /** Whether the checkbox is disabled */
48
137
  isDisabled: () => boolean;
138
+ /** Destroys the checkbox component and cleans up resources */
49
139
  destroy: () => void;
50
140
  }
141
+ /** API options interface for internal use */
51
142
  export interface ApiOptions {
52
143
  disabled: {
53
144
  enable: () => void;
@@ -64,6 +155,7 @@ export interface ApiOptions {
64
155
  isChecked: () => boolean;
65
156
  };
66
157
  }
158
+ /** Base component interface for internal composition */
67
159
  export interface BaseComponent {
68
160
  element: HTMLElement;
69
161
  input?: HTMLInputElement;
@@ -92,7 +184,9 @@ export interface BaseComponent {
92
184
  isChecked: () => boolean;
93
185
  };
94
186
  }
187
+ /** Component as it reaches the API step of the pipeline. */
95
188
  export type ApiComponent = BaseComponent & Required<Pick<BaseComponent, "checkable" | "disabled" | "lifecycle">>;
189
+ /** Registers CheckboxConfig with the global defaults map, so `setComponentDefaults("checkbox", ...)` is typed without core importing anything from this component. */
96
190
  declare module "../../core/config/global" {
97
191
  interface ComponentConfigMap {
98
192
  checkbox?: Partial<CheckboxConfig>;
@@ -1,3 +1,7 @@
1
1
  import { ChipsConfig, ChipsComponent } from "./types.js";
2
+ /**
3
+ * Creates a chips container for grouping related chips Chips follows a clear architectural pattern: 1.
4
+ * @param config
5
+ */
2
6
  declare const createChips: (config?: ChipsConfig) => ChipsComponent;
3
7
  export default createChips;
@@ -1,3 +1,4 @@
1
+ /** Material Design chip types. */
1
2
  export declare const CHIP_TYPES: {
2
3
  readonly ASSIST: "assist";
3
4
  readonly FILTER: "filter";