@momentum-design/components 0.134.19 → 0.134.21

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 (379) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +2 -2
  3. package/dist/components/accordion/accordion.component.d.ts +15 -5
  4. package/dist/components/accordionbutton/accordionbutton.component.d.ts +14 -26
  5. package/dist/components/accordionbutton/accordionbutton.component.js +0 -22
  6. package/dist/components/accordiongroup/accordiongroup.component.d.ts +12 -16
  7. package/dist/components/accordiongroup/accordiongroup.component.js +0 -14
  8. package/dist/components/alertchip/alertchip.component.d.ts +15 -11
  9. package/dist/components/alertchip/alertchip.component.js +0 -7
  10. package/dist/components/animation/animation.component.d.ts +14 -6
  11. package/dist/components/animation/animation.component.js +0 -5
  12. package/dist/components/announcementdialog/announcementdialog.component.d.ts +18 -25
  13. package/dist/components/announcementdialog/announcementdialog.component.js +1 -20
  14. package/dist/components/appheader/appheader.component.d.ts +13 -12
  15. package/dist/components/appheader/appheader.component.js +0 -9
  16. package/dist/components/avatar/avatar.component.d.ts +14 -34
  17. package/dist/components/avatar/avatar.component.js +1 -31
  18. package/dist/components/avatarbutton/avatarbutton.component.d.ts +15 -14
  19. package/dist/components/avatarbutton/avatarbutton.component.js +1 -10
  20. package/dist/components/badge/badge.component.d.ts +16 -20
  21. package/dist/components/badge/badge.component.js +1 -17
  22. package/dist/components/banner/banner.component.d.ts +17 -17
  23. package/dist/components/banner/banner.component.js +1 -13
  24. package/dist/components/brandvisual/brandvisual.component.d.ts +15 -12
  25. package/dist/components/brandvisual/brandvisual.component.js +0 -10
  26. package/dist/components/bullet/bullet.component.d.ts +15 -16
  27. package/dist/components/bullet/bullet.component.js +0 -15
  28. package/dist/components/button/button.component.d.ts +21 -52
  29. package/dist/components/button/button.component.js +1 -47
  30. package/dist/components/buttongroup/buttongroup.component.d.ts +17 -20
  31. package/dist/components/buttongroup/buttongroup.component.js +0 -17
  32. package/dist/components/buttonlink/buttonlink.component.d.ts +19 -16
  33. package/dist/components/buttonlink/buttonlink.component.js +1 -11
  34. package/dist/components/buttonsimple/buttonsimple.component.d.ts +16 -25
  35. package/dist/components/buttonsimple/buttonsimple.component.js +0 -22
  36. package/dist/components/calendar/calendar.component.d.ts +17 -11
  37. package/dist/components/calendar/calendar.component.js +0 -8
  38. package/dist/components/card/card.component.d.ts +18 -17
  39. package/dist/components/card/card.component.js +0 -13
  40. package/dist/components/cardbutton/cardbutton.component.d.ts +20 -14
  41. package/dist/components/cardbutton/cardbutton.component.js +0 -9
  42. package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +20 -19
  43. package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -14
  44. package/dist/components/cardradio/cardradio.component.d.ts +20 -20
  45. package/dist/components/cardradio/cardradio.component.js +0 -15
  46. package/dist/components/checkbox/checkbox.component.d.ts +22 -26
  47. package/dist/components/checkbox/checkbox.component.js +1 -22
  48. package/dist/components/chip/chip.component.d.ts +20 -13
  49. package/dist/components/chip/chip.component.js +0 -9
  50. package/dist/components/coachmark/coachmark.component.d.ts +22 -22
  51. package/dist/components/coachmark/coachmark.component.js +1 -18
  52. package/dist/components/combobox/combobox.component.d.ts +27 -37
  53. package/dist/components/combobox/combobox.component.js +1 -32
  54. package/dist/components/controltypeprovider/controltypeprovider.component.d.ts +19 -11
  55. package/dist/components/controltypeprovider/controltypeprovider.component.js +0 -10
  56. package/dist/components/datepicker/datepicker.component.d.ts +20 -14
  57. package/dist/components/datepicker/datepicker.component.js +0 -9
  58. package/dist/components/dialog/dialog.component.d.ts +25 -40
  59. package/dist/components/dialog/dialog.component.js +1 -35
  60. package/dist/components/divider/divider.component.d.ts +23 -25
  61. package/dist/components/divider/divider.component.js +0 -23
  62. package/dist/components/filterchip/filterchip.component.d.ts +20 -9
  63. package/dist/components/filterchip/filterchip.component.js +0 -5
  64. package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +18 -19
  65. package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -15
  66. package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +16 -8
  67. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +0 -4
  68. package/dist/components/icon/icon.component.d.ts +16 -41
  69. package/dist/components/icon/icon.component.js +0 -39
  70. package/dist/components/iconprovider/iconprovider.component.d.ts +14 -24
  71. package/dist/components/iconprovider/iconprovider.component.js +0 -23
  72. package/dist/components/illustration/illustration.component.d.ts +16 -32
  73. package/dist/components/illustration/illustration.component.js +0 -30
  74. package/dist/components/illustrationprovider/illustrationprovider.component.d.ts +14 -24
  75. package/dist/components/illustrationprovider/illustrationprovider.component.js +0 -23
  76. package/dist/components/input/input.component.d.ts +21 -16
  77. package/dist/components/input/input.component.js +0 -11
  78. package/dist/components/inputchip/inputchip.component.d.ts +19 -13
  79. package/dist/components/inputchip/inputchip.component.js +0 -7
  80. package/dist/components/link/link.component.d.ts +18 -12
  81. package/dist/components/link/link.component.js +1 -9
  82. package/dist/components/linkbutton/linkbutton.component.d.ts +19 -12
  83. package/dist/components/linkbutton/linkbutton.component.js +1 -8
  84. package/dist/components/linksimple/linksimple.component.d.ts +17 -10
  85. package/dist/components/linksimple/linksimple.component.js +0 -7
  86. package/dist/components/list/list.component.d.ts +17 -7
  87. package/dist/components/list/list.component.js +0 -5
  88. package/dist/components/listbox/listbox.component.d.ts +21 -16
  89. package/dist/components/listbox/listbox.component.js +1 -11
  90. package/dist/components/listheader/listheader.component.d.ts +14 -6
  91. package/dist/components/listheader/listheader.component.js +0 -3
  92. package/dist/components/listitem/listitem.component.d.ts +20 -18
  93. package/dist/components/listitem/listitem.component.js +0 -13
  94. package/dist/components/marker/marker.component.d.ts +15 -16
  95. package/dist/components/marker/marker.component.js +0 -15
  96. package/dist/components/menubar/menubar.component.d.ts +12 -19
  97. package/dist/components/menubar/menubar.component.js +0 -19
  98. package/dist/components/menuitem/menuitem.component.d.ts +18 -19
  99. package/dist/components/menuitem/menuitem.component.js +1 -15
  100. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +19 -30
  101. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +1 -25
  102. package/dist/components/menuitemradio/menuitemradio.component.d.ts +18 -31
  103. package/dist/components/menuitemradio/menuitemradio.component.js +1 -26
  104. package/dist/components/menupopover/menupopover.component.d.ts +16 -38
  105. package/dist/components/menupopover/menupopover.component.js +0 -34
  106. package/dist/components/menusection/menusection.component.d.ts +16 -12
  107. package/dist/components/menusection/menusection.component.js +0 -8
  108. package/dist/components/navmenuitem/navmenuitem.component.d.ts +16 -15
  109. package/dist/components/navmenuitem/navmenuitem.component.js +0 -11
  110. package/dist/components/optgroup/optgroup.component.d.ts +17 -7
  111. package/dist/components/optgroup/optgroup.component.js +1 -3
  112. package/dist/components/option/option.component.d.ts +17 -19
  113. package/dist/components/option/option.component.js +1 -15
  114. package/dist/components/password/password.component.d.ts +18 -17
  115. package/dist/components/password/password.component.js +0 -11
  116. package/dist/components/popover/popover.component.d.ts +20 -52
  117. package/dist/components/popover/popover.component.js +1 -47
  118. package/dist/components/presence/presence.component.d.ts +17 -10
  119. package/dist/components/presence/presence.component.js +1 -7
  120. package/dist/components/progressbar/progressbar.component.d.ts +17 -13
  121. package/dist/components/progressbar/progressbar.component.js +0 -9
  122. package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
  123. package/dist/components/progressspinner/progressspinner.component.js +0 -17
  124. package/dist/components/radio/radio.component.d.ts +19 -41
  125. package/dist/components/radio/radio.component.js +1 -37
  126. package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
  127. package/dist/components/radiogroup/radiogroup.component.js +0 -4
  128. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
  129. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
  130. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
  131. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
  132. package/dist/components/searchfield/searchfield.component.d.ts +16 -24
  133. package/dist/components/searchfield/searchfield.component.js +0 -20
  134. package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
  135. package/dist/components/searchpopover/searchpopover.component.js +0 -16
  136. package/dist/components/select/select.component.d.ts +23 -19
  137. package/dist/components/select/select.component.js +1 -14
  138. package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
  139. package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
  140. package/dist/components/sidenavigation/sidenavigation.component.d.ts +21 -41
  141. package/dist/components/sidenavigation/sidenavigation.component.js +1 -35
  142. package/dist/components/skeleton/skeleton.component.d.ts +14 -15
  143. package/dist/components/skeleton/skeleton.component.js +0 -13
  144. package/dist/components/slider/slider.component.d.ts +17 -15
  145. package/dist/components/slider/slider.component.js +0 -11
  146. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
  147. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
  148. package/dist/components/spinner/spinner.component.d.ts +15 -27
  149. package/dist/components/spinner/spinner.component.js +0 -25
  150. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
  151. package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
  152. package/dist/components/staticchip/staticchip.component.d.ts +17 -8
  153. package/dist/components/staticchip/staticchip.component.js +0 -5
  154. package/dist/components/staticradio/staticradio.component.d.ts +15 -19
  155. package/dist/components/staticradio/staticradio.component.js +0 -16
  156. package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
  157. package/dist/components/statictoggle/statictoggle.component.js +0 -17
  158. package/dist/components/stepper/stepper.component.d.ts +13 -5
  159. package/dist/components/stepper/stepper.component.js +0 -3
  160. package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
  161. package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
  162. package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
  163. package/dist/components/stepperitem/stepperitem.component.js +1 -10
  164. package/dist/components/tab/tab.component.d.ts +20 -23
  165. package/dist/components/tab/tab.component.js +1 -16
  166. package/dist/components/tablist/tablist.component.d.ts +18 -30
  167. package/dist/components/tablist/tablist.component.js +0 -24
  168. package/dist/components/text/text.component.d.ts +12 -13
  169. package/dist/components/text/text.component.js +0 -12
  170. package/dist/components/textarea/textarea.component.d.ts +17 -39
  171. package/dist/components/textarea/textarea.component.js +0 -34
  172. package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
  173. package/dist/components/themeprovider/themeprovider.component.js +0 -25
  174. package/dist/components/timepicker/timepicker.component.d.ts +17 -19
  175. package/dist/components/timepicker/timepicker.component.js +0 -14
  176. package/dist/components/toast/toast.component.d.ts +20 -12
  177. package/dist/components/toast/toast.component.js +1 -7
  178. package/dist/components/toggle/toggle.component.d.ts +18 -24
  179. package/dist/components/toggle/toggle.component.js +1 -21
  180. package/dist/components/toggletip/toggletip.component.d.ts +18 -28
  181. package/dist/components/toggletip/toggletip.component.js +1 -24
  182. package/dist/components/tooltip/tooltip.component.d.ts +16 -16
  183. package/dist/components/tooltip/tooltip.component.js +0 -13
  184. package/dist/components/typewriter/typewriter.component.d.ts +18 -34
  185. package/dist/components/typewriter/typewriter.component.js +1 -31
  186. package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
  187. package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
  188. package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
  189. package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
  190. package/dist/custom-elements.json +190 -190
  191. package/dist/react/accordion/index.d.ts +15 -5
  192. package/dist/react/accordionbutton/index.d.ts +14 -26
  193. package/dist/react/accordionbutton/index.js +0 -22
  194. package/dist/react/accordiongroup/index.d.ts +12 -16
  195. package/dist/react/accordiongroup/index.js +0 -14
  196. package/dist/react/alertchip/index.d.ts +15 -11
  197. package/dist/react/alertchip/index.js +0 -7
  198. package/dist/react/animation/index.d.ts +14 -6
  199. package/dist/react/animation/index.js +0 -5
  200. package/dist/react/announcementdialog/index.d.ts +18 -25
  201. package/dist/react/announcementdialog/index.js +1 -20
  202. package/dist/react/appheader/index.d.ts +13 -12
  203. package/dist/react/appheader/index.js +0 -9
  204. package/dist/react/avatar/index.d.ts +14 -34
  205. package/dist/react/avatar/index.js +1 -31
  206. package/dist/react/avatarbutton/index.d.ts +15 -14
  207. package/dist/react/avatarbutton/index.js +1 -10
  208. package/dist/react/badge/index.d.ts +16 -20
  209. package/dist/react/badge/index.js +1 -17
  210. package/dist/react/banner/index.d.ts +17 -17
  211. package/dist/react/banner/index.js +1 -13
  212. package/dist/react/brandvisual/index.d.ts +15 -12
  213. package/dist/react/brandvisual/index.js +0 -10
  214. package/dist/react/bullet/index.d.ts +15 -16
  215. package/dist/react/bullet/index.js +0 -15
  216. package/dist/react/button/index.d.ts +21 -52
  217. package/dist/react/button/index.js +1 -47
  218. package/dist/react/buttongroup/index.d.ts +17 -20
  219. package/dist/react/buttongroup/index.js +0 -17
  220. package/dist/react/buttonlink/index.d.ts +19 -16
  221. package/dist/react/buttonlink/index.js +1 -11
  222. package/dist/react/buttonsimple/index.d.ts +16 -25
  223. package/dist/react/buttonsimple/index.js +0 -22
  224. package/dist/react/calendar/index.d.ts +17 -11
  225. package/dist/react/calendar/index.js +0 -8
  226. package/dist/react/card/index.d.ts +18 -17
  227. package/dist/react/card/index.js +0 -13
  228. package/dist/react/cardbutton/index.d.ts +20 -14
  229. package/dist/react/cardbutton/index.js +0 -9
  230. package/dist/react/cardcheckbox/index.d.ts +20 -19
  231. package/dist/react/cardcheckbox/index.js +0 -14
  232. package/dist/react/cardradio/index.d.ts +20 -20
  233. package/dist/react/cardradio/index.js +0 -15
  234. package/dist/react/checkbox/index.d.ts +22 -26
  235. package/dist/react/checkbox/index.js +1 -22
  236. package/dist/react/chip/index.d.ts +20 -13
  237. package/dist/react/chip/index.js +0 -9
  238. package/dist/react/coachmark/index.d.ts +22 -22
  239. package/dist/react/coachmark/index.js +1 -18
  240. package/dist/react/combobox/index.d.ts +27 -37
  241. package/dist/react/combobox/index.js +1 -32
  242. package/dist/react/controltypeprovider/index.d.ts +19 -11
  243. package/dist/react/controltypeprovider/index.js +0 -10
  244. package/dist/react/datepicker/index.d.ts +20 -14
  245. package/dist/react/datepicker/index.js +0 -9
  246. package/dist/react/dialog/index.d.ts +25 -40
  247. package/dist/react/dialog/index.js +1 -35
  248. package/dist/react/divider/index.d.ts +23 -25
  249. package/dist/react/divider/index.js +0 -23
  250. package/dist/react/filterchip/index.d.ts +20 -9
  251. package/dist/react/filterchip/index.js +0 -5
  252. package/dist/react/formfieldgroup/index.d.ts +18 -19
  253. package/dist/react/formfieldgroup/index.js +0 -15
  254. package/dist/react/formfieldwrapper/index.d.ts +16 -8
  255. package/dist/react/formfieldwrapper/index.js +0 -4
  256. package/dist/react/icon/index.d.ts +16 -41
  257. package/dist/react/icon/index.js +0 -39
  258. package/dist/react/iconprovider/index.d.ts +14 -24
  259. package/dist/react/iconprovider/index.js +0 -23
  260. package/dist/react/illustration/index.d.ts +16 -32
  261. package/dist/react/illustration/index.js +0 -30
  262. package/dist/react/illustrationprovider/index.d.ts +14 -24
  263. package/dist/react/illustrationprovider/index.js +0 -23
  264. package/dist/react/input/index.d.ts +21 -16
  265. package/dist/react/input/index.js +0 -11
  266. package/dist/react/inputchip/index.d.ts +19 -13
  267. package/dist/react/inputchip/index.js +0 -7
  268. package/dist/react/link/index.d.ts +18 -12
  269. package/dist/react/link/index.js +1 -9
  270. package/dist/react/linkbutton/index.d.ts +19 -12
  271. package/dist/react/linkbutton/index.js +1 -8
  272. package/dist/react/linksimple/index.d.ts +17 -10
  273. package/dist/react/linksimple/index.js +0 -7
  274. package/dist/react/list/index.d.ts +17 -7
  275. package/dist/react/list/index.js +0 -5
  276. package/dist/react/listbox/index.d.ts +21 -16
  277. package/dist/react/listbox/index.js +1 -11
  278. package/dist/react/listheader/index.d.ts +14 -6
  279. package/dist/react/listheader/index.js +0 -3
  280. package/dist/react/listitem/index.d.ts +20 -18
  281. package/dist/react/listitem/index.js +0 -13
  282. package/dist/react/marker/index.d.ts +15 -16
  283. package/dist/react/marker/index.js +0 -15
  284. package/dist/react/menubar/index.d.ts +12 -19
  285. package/dist/react/menubar/index.js +0 -19
  286. package/dist/react/menuitem/index.d.ts +18 -19
  287. package/dist/react/menuitem/index.js +1 -15
  288. package/dist/react/menuitemcheckbox/index.d.ts +19 -30
  289. package/dist/react/menuitemcheckbox/index.js +1 -25
  290. package/dist/react/menuitemradio/index.d.ts +18 -31
  291. package/dist/react/menuitemradio/index.js +1 -26
  292. package/dist/react/menupopover/index.d.ts +16 -38
  293. package/dist/react/menupopover/index.js +0 -34
  294. package/dist/react/menusection/index.d.ts +16 -12
  295. package/dist/react/menusection/index.js +0 -8
  296. package/dist/react/navmenuitem/index.d.ts +16 -15
  297. package/dist/react/navmenuitem/index.js +0 -11
  298. package/dist/react/optgroup/index.d.ts +17 -7
  299. package/dist/react/optgroup/index.js +1 -3
  300. package/dist/react/option/index.d.ts +17 -19
  301. package/dist/react/option/index.js +1 -15
  302. package/dist/react/password/index.d.ts +18 -17
  303. package/dist/react/password/index.js +0 -11
  304. package/dist/react/popover/index.d.ts +20 -52
  305. package/dist/react/popover/index.js +1 -47
  306. package/dist/react/presence/index.d.ts +17 -10
  307. package/dist/react/presence/index.js +1 -7
  308. package/dist/react/progressbar/index.d.ts +17 -13
  309. package/dist/react/progressbar/index.js +0 -9
  310. package/dist/react/progressspinner/index.d.ts +14 -19
  311. package/dist/react/progressspinner/index.js +0 -17
  312. package/dist/react/radio/index.d.ts +19 -41
  313. package/dist/react/radio/index.js +1 -37
  314. package/dist/react/radiogroup/index.d.ts +12 -5
  315. package/dist/react/radiogroup/index.js +0 -4
  316. package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
  317. package/dist/react/responsivesettingsprovider/index.js +0 -29
  318. package/dist/react/screenreaderannouncer/index.d.ts +12 -51
  319. package/dist/react/screenreaderannouncer/index.js +0 -51
  320. package/dist/react/searchfield/index.d.ts +16 -24
  321. package/dist/react/searchfield/index.js +0 -20
  322. package/dist/react/searchpopover/index.d.ts +16 -20
  323. package/dist/react/searchpopover/index.js +0 -16
  324. package/dist/react/select/index.d.ts +23 -19
  325. package/dist/react/select/index.js +1 -14
  326. package/dist/react/selectlistbox/index.d.ts +12 -8
  327. package/dist/react/selectlistbox/index.js +0 -7
  328. package/dist/react/sidenavigation/index.d.ts +21 -41
  329. package/dist/react/sidenavigation/index.js +1 -35
  330. package/dist/react/skeleton/index.d.ts +14 -15
  331. package/dist/react/skeleton/index.js +0 -13
  332. package/dist/react/slider/index.d.ts +17 -15
  333. package/dist/react/slider/index.js +0 -11
  334. package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
  335. package/dist/react/spatialnavigationprovider/index.js +1 -214
  336. package/dist/react/spinner/index.d.ts +15 -27
  337. package/dist/react/spinner/index.js +0 -25
  338. package/dist/react/staticcheckbox/index.d.ts +16 -21
  339. package/dist/react/staticcheckbox/index.js +0 -17
  340. package/dist/react/staticchip/index.d.ts +17 -8
  341. package/dist/react/staticchip/index.js +0 -5
  342. package/dist/react/staticradio/index.d.ts +15 -19
  343. package/dist/react/staticradio/index.js +0 -16
  344. package/dist/react/statictoggle/index.d.ts +16 -21
  345. package/dist/react/statictoggle/index.js +0 -17
  346. package/dist/react/stepper/index.d.ts +13 -5
  347. package/dist/react/stepper/index.js +0 -3
  348. package/dist/react/stepperconnector/index.d.ts +13 -6
  349. package/dist/react/stepperconnector/index.js +0 -4
  350. package/dist/react/stepperitem/index.d.ts +16 -14
  351. package/dist/react/stepperitem/index.js +1 -10
  352. package/dist/react/tab/index.d.ts +20 -23
  353. package/dist/react/tab/index.js +1 -16
  354. package/dist/react/tablist/index.d.ts +18 -30
  355. package/dist/react/tablist/index.js +0 -24
  356. package/dist/react/text/index.d.ts +12 -13
  357. package/dist/react/text/index.js +0 -12
  358. package/dist/react/textarea/index.d.ts +17 -39
  359. package/dist/react/textarea/index.js +0 -34
  360. package/dist/react/themeprovider/index.d.ts +13 -27
  361. package/dist/react/themeprovider/index.js +0 -25
  362. package/dist/react/timepicker/index.d.ts +17 -19
  363. package/dist/react/timepicker/index.js +0 -14
  364. package/dist/react/toast/index.d.ts +20 -12
  365. package/dist/react/toast/index.js +1 -7
  366. package/dist/react/toggle/index.d.ts +18 -24
  367. package/dist/react/toggle/index.js +1 -21
  368. package/dist/react/toggletip/index.d.ts +18 -28
  369. package/dist/react/toggletip/index.js +1 -24
  370. package/dist/react/tooltip/index.d.ts +16 -16
  371. package/dist/react/tooltip/index.js +0 -13
  372. package/dist/react/typewriter/index.d.ts +18 -34
  373. package/dist/react/typewriter/index.js +1 -31
  374. package/dist/react/verticaltablist/index.d.ts +17 -30
  375. package/dist/react/verticaltablist/index.js +0 -26
  376. package/dist/react/virtualizedlist/index.d.ts +16 -58
  377. package/dist/react/virtualizedlist/index.js +0 -55
  378. package/dist/utils/dom.js +1 -1
  379. package/package.json +1 -1
@@ -1,22 +1,32 @@
1
1
  import type { CSSResult, PropertyValues } from 'lit';
2
2
  import AccordionButton from '../accordionbutton/accordionbutton.component';
3
3
  /**
4
+ * The accordion is a vertically stacked component with a header and an expandable/collapsible body section. The header displays an optional prefix icon, header text, optional leading and trailing control slots, and a dedicated expand/collapse button. Unlike `mdc-accordionbutton`, only the expand/collapse button is interactive — the rest of the header is not clickable.
5
+ *
6
+ * **When to use**
7
+ *
8
+ * - Use `mdc-accordion` when you need additional interactive controls (chips, badges, buttons, icons) in the header alongside the expand/collapse behaviour.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Use `mdc-accordionbutton` instead when you only need a simple clickable header without extra controls in the header row.
13
+ *
4
14
  * @tagname mdc-accordion
5
- *
15
+ *
6
16
  * @dependency mdc-button
7
17
  * @dependency mdc-icon
8
18
  * @dependency mdc-text
9
- *
19
+ *
10
20
  * @slot leading-header-text - The leading header text slot of the accordion on the header section. Placed after the prefix icon.
11
21
  * @slot leading-controls - The leading controls slot of the accordion on the header section. Placed after the header text.
12
22
  * @slot trailing-controls - The trailing controls slot of the accordion on the header section. Placed before the expand/collapse button.
13
23
  * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.
14
- *
24
+ *
15
25
  * @event shown - (React: onShown) This event is triggered when the accordion is toggled (expanded or collapsed).
16
- *
26
+ *
17
27
  * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion.
18
28
  * @cssproperty --mdc-accordionbutton-disabled-color - The disabled text color of the accordion.
19
- *
29
+ *
20
30
  * @csspart body-section - The body section of the accordion.
21
31
  * @csspart header-section - The header section of the accordion.
22
32
  * @csspart leading-header - The leading header of the accordion.
@@ -6,43 +6,31 @@ import type { IconNames } from '../icon/icon.types';
6
6
  import type { IconName, Variant, TogglePosition } from './accordionbutton.types';
7
7
  declare const AccordionButton_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyDownHandledMixin").KeyDownHandledMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyToActionMixin").KeyToActionInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
8
8
  /**
9
- * An accordion button is a vertically stacked component with a clickable header and expandable/collapsible body section.
10
- * The entire header is clickable to toggle the visibility of the body content.
11
- *
12
- * ## Header contains
13
- * - Optional prefix icon
14
- * - Header text (default H3, customizable via `data-aria-level`)
15
- * - Expand/collapse arrow icon (visual indicator)
16
- *
17
- * ## Body contains
18
- * - Default slot for any content
19
- *
20
- * The accordion button supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
21
- * An accordion button can be disabled, which prevents the header from being clickable.
22
- *
23
- * ## When to use
9
+ * The accordion button is a vertically stacked component with a clickable header and an expandable/collapsible body section. The entire header is clickable to toggle the visibility of the body content. The header contains an optional prefix icon, header text (default H3, customizable via `data-aria-level`), and an expand/collapse arrow icon as visual indicator. The body contains a default slot for any content. The component supports different border styles through the `variant` attribute and different spacing through the `size` attribute, and can be disabled to prevent the header from being clickable.
10
+ *
11
+ * **When to use**
12
+ *
24
13
  * - Use `mdc-accordionbutton` for simple clickable headers without additional controls.
25
- * - Use `mdc-accordion` instead if you need extra controls (chips, badges, icons) in the header.
26
- *
27
- * ## Accessibility
28
- * - Adjust `data-aria-level` based on heading hierarchy in your page.
29
- * - Note: Screen readers may lose focus when toggling if accordion button is expanded by default.
30
- *
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Use `mdc-accordion` instead if you need extra controls (chips, badges, icons) in the header itself.
18
+ *
31
19
  * @tagname mdc-accordionbutton
32
- *
20
+ *
33
21
  * @dependency mdc-button
34
22
  * @dependency mdc-icon
35
23
  * @dependency mdc-text
36
- *
24
+ *
37
25
  * @slot default - The default slot contains the body section of the accordion. User can place anything inside this body slot.
38
- *
26
+ *
39
27
  * @event shown - (React: onShown) This event is triggered when the accordion button is toggled (expanded or collapsed).
40
- *
28
+ *
41
29
  * @cssproperty --mdc-accordionbutton-border-color - The border color of the accordion button.
42
30
  * @cssproperty --mdc-accordionbutton-hover-color - The hover background color of the accordion button header.
43
31
  * @cssproperty --mdc-accordionbutton-active-color - The active background color of the accordion button header.
44
32
  * @cssproperty --mdc-accordionbutton-disabled-color - The disabled text color of the accordion button.
45
- *
33
+ *
46
34
  * @csspart body-section - The body section of the accordion button.
47
35
  * @csspart header-button-section - The header button section of the accordion button.
48
36
  * @csspart header-section - The header section of the accordion button.
@@ -19,28 +19,6 @@ import { KeyDownHandledMixin } from '../../utils/mixins/KeyDownHandledMixin';
19
19
  import { DEFAULTS, ICON_NAME, TOGGLE_POSITION } from './accordionbutton.constants';
20
20
  import styles from './accordionbutton.styles';
21
21
  /**
22
- * An accordion button is a vertically stacked component with a clickable header and expandable/collapsible body section.
23
- * The entire header is clickable to toggle the visibility of the body content.
24
- *
25
- * ## Header contains
26
- * - Optional prefix icon
27
- * - Header text (default H3, customizable via `data-aria-level`)
28
- * - Expand/collapse arrow icon (visual indicator)
29
- *
30
- * ## Body contains
31
- * - Default slot for any content
32
- *
33
- * The accordion button supports different border styles through the `variant` attribute and different spacing through the `size` attribute.
34
- * An accordion button can be disabled, which prevents the header from being clickable.
35
- *
36
- * ## When to use
37
- * - Use `mdc-accordionbutton` for simple clickable headers without additional controls.
38
- * - Use `mdc-accordion` instead if you need extra controls (chips, badges, icons) in the header.
39
- *
40
- * ## Accessibility
41
- * - Adjust `data-aria-level` based on heading hierarchy in your page.
42
- * - Note: Screen readers may lose focus when toggling if accordion button is expanded by default.
43
- *
44
22
  * @tagname mdc-accordionbutton
45
23
  *
46
24
  * @dependency mdc-button
@@ -2,24 +2,20 @@ import type { CSSResult, PropertyValues } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import type { Size, Variant } from './accordiongroup.types';
4
4
  /**
5
- * An accordion group is a container that manages multiple accordion or accordionbutton components as a unified set.
6
- * It controls the visual styling, spacing, and expansion behavior of all child accordions.
7
- *
8
- * The group applies consistent `variant` and `size` attributes to all children automatically.
9
- * By default, expanding one accordion collapses others (`allow-multiple` is false). Set `allow-multiple` to true to allow multiple expanded items.
10
- *
11
- * ## Accepted children
12
- * - Use `mdc-accordionbutton` children for simple clickable headers.
13
- * - Use `mdc-accordion` children when you need additional controls (chips, badges, icons) in the headers.
14
- * - Other elements in the slot are ignored.
15
- *
16
- * ## Accessibility
17
- * - Note: Screen readers may lose focus when toggling if the first accordion is expanded by default.
18
- *
5
+ * The accordion group is a container that manages multiple accordion or accordionbutton components as a unified set. It controls the visual styling, spacing, and expansion behavior of all child accordions. The group applies consistent `variant` and `size` attributes to all children automatically. By default, expanding one accordion collapses the others (`allow-multiple` is false); set `allow-multiple` to true to allow multiple expanded items.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-accordiongroup` when you need to render two or more related `mdc-accordion` or `mdc-accordionbutton` items with consistent styling, spacing, and coordinated expansion behaviour.
10
+ *
11
+ * **When not to use**
12
+ *
13
+ * - Use a single `mdc-accordion` or `mdc-accordionbutton` directly when only one collapsible section is needed.
14
+ *
19
15
  * @tagname mdc-accordiongroup
20
- *
16
+ *
21
17
  * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.
22
- *
18
+ *
23
19
  * @cssproperty --mdc-accordiongroup-items-border-color - The border color applied to all child accordion items and their separators.
24
20
  */
25
21
  declare class AccordionGroup extends Component {
@@ -15,20 +15,6 @@ import { Component } from '../../models';
15
15
  import { DEFAULTS } from './accordiongroup.constants';
16
16
  import styles from './accordiongroup.styles';
17
17
  /**
18
- * An accordion group is a container that manages multiple accordion or accordionbutton components as a unified set.
19
- * It controls the visual styling, spacing, and expansion behavior of all child accordions.
20
- *
21
- * The group applies consistent `variant` and `size` attributes to all children automatically.
22
- * By default, expanding one accordion collapses others (`allow-multiple` is false). Set `allow-multiple` to true to allow multiple expanded items.
23
- *
24
- * ## Accepted children
25
- * - Use `mdc-accordionbutton` children for simple clickable headers.
26
- * - Use `mdc-accordion` children when you need additional controls (chips, badges, icons) in the headers.
27
- * - Other elements in the slot are ignored.
28
- *
29
- * ## Accessibility
30
- * - Note: Screen readers may lose focus when toggling if the first accordion is expanded by default.
31
- *
32
18
  * @tagname mdc-accordiongroup
33
19
  *
34
20
  * @slot default - The default slot can contain the `accordion` or `accordionbutton` components.
@@ -3,26 +3,30 @@ import Buttonsimple from '../buttonsimple/buttonsimple.component';
3
3
  import type { VariantType } from './alertchip.types';
4
4
  declare const AlertChip_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Buttonsimple;
5
5
  /**
6
- * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.
7
- *
8
- * - It supports a leading icon along with label.
9
- * - It supports 5 variants of alerts - error, informational, neutral, success and warning.
10
- *
11
- * This component is built by extending Buttonsimple.
12
- *
6
+ * The alert chip is an interactive chip whose color and leading icon indicate one of five visual states — `error`, `informational`, `neutral`, `success`, and `warning`. The variant only changes the visual styling; it does not announce or read out any alert content to assistive technologies on its own.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-alertchip` to surface a short, interactive status (error, success, warning, informational, neutral) inline within content.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use a non-interactive status indicator (e.g. `mdc-badge` or `mdc-staticchip`) when the chip should not be clickable or focusable.
15
+ * - Use `mdc-toast` or `mdc-banner` when the message needs more length, dedicated actions, or system-level prominence.
16
+ *
13
17
  * @tagname mdc-alertchip
14
- *
18
+ *
15
19
  * @dependency mdc-icon
16
20
  * @dependency mdc-text
17
- *
21
+ *
18
22
  * @cssproperty --mdc-chip-color - The color of the label text
19
23
  * @cssproperty --mdc-chip-icon-color - The color of the icon
20
24
  * @cssproperty --mdc-chip-border-color - The border color of the alertchip
21
25
  * @cssproperty --mdc-chip-background-color - The background color of the alertchip
22
- *
26
+ *
23
27
  * @csspart icon - The alert icon
24
28
  * @csspart label - The text label of the alertchip
25
- *
29
+ *
26
30
  * @event click - (React: onClick) This event is dispatched when the alertchip is clicked.
27
31
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the alertchip.
28
32
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the alertchip.
@@ -16,13 +16,6 @@ import styles from './alertchip.styles';
16
16
  import { DEFAULTS } from './alertchip.constants';
17
17
  import { getAlertIcon } from './alertchip.utils';
18
18
  /**
19
- * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.
20
- *
21
- * - It supports a leading icon along with label.
22
- * - It supports 5 variants of alerts - error, informational, neutral, success and warning.
23
- *
24
- * This component is built by extending Buttonsimple.
25
- *
26
19
  * @tagname mdc-alertchip
27
20
  *
28
21
  * @dependency mdc-icon
@@ -3,13 +3,21 @@ import { AnimationItem } from 'lottie-web/build/player/lottie_light';
3
3
  import { Component } from '../../models';
4
4
  import type { AnimationNames, LoopType } from './animation.types';
5
5
  /**
6
- * The `mdc-animation` component is a wrapper around the Lottie animation library.
7
- * It fetches the animation data dynamically based on the provided name and renders it.
8
- * This is a display only component that does not have any interactive functionality.
9
- * From accessibility perspective, (by default) it is a decorative image component.
10
- *
6
+ * The animation component is a wrapper around the Lottie animation library. It fetches the animation data dynamically based on the provided name (or a `src` URL) and renders it. It is a display-only component with no interactive functionality and is treated as a decorative image by default.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-animation` to play short, looping or one-shot Lottie animations inline within UI — for example illustrations, loading indicators, or success/empty-state visuals.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-icon` for a static glyph that does not need motion.
15
+ * - Use `mdc-illustration` for a non-animated illustration asset.
16
+ * - Use `mdc-progressspinner` or `mdc-progressbar` when the animation needs to communicate determinate or indeterminate progress with proper progress semantics.
17
+ * - Use `mdc-spinner` when you only need a lightweight, generic loading indicator without a dedicated Lottie asset.
18
+ *
11
19
  * @tagname mdc-animation
12
- *
20
+ *
13
21
  * @event load - (React: onLoad) This event is dispatched when the animation is loaded
14
22
  * @event complete - (React: onComplete) This event is dispatched when all animation loops completed
15
23
  * @event error - (React: onError) This event is dispatched when animation loading failed
@@ -17,11 +17,6 @@ import { ROLE } from '../../utils/roles';
17
17
  import styles from './animation.styles';
18
18
  import { DEFAULTS } from './animation.constants';
19
19
  /**
20
- * The `mdc-animation` component is a wrapper around the Lottie animation library.
21
- * It fetches the animation data dynamically based on the provided name and renders it.
22
- * This is a display only component that does not have any interactive functionality.
23
- * From accessibility perspective, (by default) it is a decorative image component.
24
- *
25
20
  * @tagname mdc-animation
26
21
  *
27
22
  * @event load - (React: onLoad) This event is dispatched when the animation is loaded
@@ -3,37 +3,30 @@ import Dialog from '../dialog/dialog.component';
3
3
  import type { IllustrationNames } from '../illustration/illustration.types';
4
4
  import type { AnnouncementDialogSize } from './announcementdialog.types';
5
5
  /**
6
- * AnnouncementDialog component is a modal dialog that can be used to display announcements, extending the existing Dialog component.
7
- * It can be used to create custom dialogs where a illustration, content and footer actions are provided by the consumer.
8
- * The dialog is available in 4 sizes: medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
9
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
10
- *
11
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
12
- * If a `triggerId` is provided, the dialog will manage focus with that element, otherwise it will
13
- * remember the previously focused element before the dialog was opened.
14
- *
15
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
16
- * Use the `visible` property to control the visibility of the dialog.
17
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
18
- * or Escape is pressed).
19
- *
20
- * ## Accessibility
21
- * - You have to be explicitly set the following attributes:
22
- * * The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
23
- * * Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
24
- *
6
+ * The announcement dialog is a modal dialog used to display announcements. Consumers provide an illustration, content, and footer actions through slots. It is available in four sizes — `medium`, `large`, `xlarge`, and `fullscreen` — and may also receive custom styling/sizing. The dialog interrupts the user and blocks interaction with the rest of the application until it is closed.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-announcementdialog` to highlight a one-off announcement, onboarding moment, or feature reveal that benefits from a prominent illustration alongside the message and primary action.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-dialog` for a generic modal that does not need an illustration-led layout.
15
+ * - Use `mdc-toast` for non-blocking, transient feedback that should not interrupt the user.
16
+ * - Use `mdc-banner` for persistent in-page messaging that should sit within the flow rather than blocking it.
17
+ *
18
+ * @tagname mdc-announcementdialog
19
+ *
25
20
  * @dependency mdc-illustration
26
21
  * @dependency mdc-text
27
- *
28
- * @tagname mdc-announcementdialog
29
- *
22
+ *
30
23
  * @event shown - (React: onShown) Dispatched when the dialog is shown
31
24
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
32
25
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
33
26
  * @event destroyed - (React: onDestroyed) Dispatched when the dialog is destroyed (removed from the DOM)
34
27
  * @event close - (React: onClose) Dispatched when the Close Button is clicked or Escape key is pressed
35
28
  * (this does not hide the dialog)
36
- *
29
+ *
37
30
  * @cssproperty --mdc-announcementdialog-illustration-background-color - background color of the illustration section
38
31
  * @cssproperty --mdc-dialog-primary-background-color - primary background color of the dialog
39
32
  * @cssproperty --mdc-dialog-border-color - border color of the dialog
@@ -42,12 +35,12 @@ import type { AnnouncementDialogSize } from './announcementdialog.types';
42
35
  * @cssproperty --mdc-dialog-elevation-3 - elevation of the dialog
43
36
  * @cssproperty --mdc-dialog-width - width of the dialog
44
37
  * @cssproperty --mdc-dialog-height - height of the dialog
45
- *
38
+ *
46
39
  * @csspart body - The main body container that holds the illustration and content sections
47
40
  * @csspart illustration-container - The container for the illustration section
48
41
  * @csspart content-container - The container for the content section
49
42
  * @csspart header-text - The header text
50
- *
43
+ *
51
44
  * @slot header-prefix - Slot for the dialog header content. This can be used to pass custom header content.
52
45
  * @slot dialog-body - Slot for the dialog body content
53
46
  * @slot illustration-container - Slot for the illustration container section
@@ -16,30 +16,11 @@ import { DIALOG_VARIANT } from '../dialog/dialog.constants';
16
16
  import styles from './announcementdialog.styles';
17
17
  import { DEFAULTS } from './announcementdialog.constants';
18
18
  /**
19
- * AnnouncementDialog component is a modal dialog that can be used to display announcements, extending the existing Dialog component.
20
- * It can be used to create custom dialogs where a illustration, content and footer actions are provided by the consumer.
21
- * The dialog is available in 4 sizes: medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
22
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
23
- *
24
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
25
- * If a `triggerId` is provided, the dialog will manage focus with that element, otherwise it will
26
- * remember the previously focused element before the dialog was opened.
27
- *
28
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
29
- * Use the `visible` property to control the visibility of the dialog.
30
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
31
- * or Escape is pressed).
32
- *
33
- * ## Accessibility
34
- * - You have to be explicitly set the following attributes:
35
- * * The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
36
- * * Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
19
+ * @tagname mdc-announcementdialog
37
20
  *
38
21
  * @dependency mdc-illustration
39
22
  * @dependency mdc-text
40
23
  *
41
- * @tagname mdc-announcementdialog
42
- *
43
24
  * @event shown - (React: onShown) Dispatched when the dialog is shown
44
25
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
45
26
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
@@ -1,23 +1,24 @@
1
1
  import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  /**
4
- * The `mdc-appheader` component provides a structured and accessible app header layout with three sections: leading, center, and trailing.
5
- *
6
- * ## Layout sections
7
- * - **Leading** - Typically holds brand logo, brand name, or menu icon
8
- * - **Center** - Can contain search bar, icons, navigation links, or action controls
9
- * - **Trailing** - Generally includes profile avatar, icons, settings, or additional action controls
10
- *
11
- * Each section automatically handles flex alignment: leading aligns left, center aligns center, trailing aligns right.
12
- *
4
+ * The app header provides a structured layout for the top of an application with three sections: leading, center, and trailing. Each section automatically handles flex alignment — leading aligns left, center aligns center, trailing aligns right.
5
+ *
6
+ * **When to use**
7
+ *
8
+ * - Use `mdc-appheader` as the top-level bar of an application to host branding, primary navigation/search, and account or action controls in a consistent layout.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Use a plain `<header>` element when you only need a simple top bar without the leading/center/trailing three-section structure.
13
+ *
13
14
  * @tagname mdc-appheader
14
- *
15
+ *
15
16
  * @slot leading - Content for the leading section (left-aligned).
16
17
  * @slot center - Content for the center section (center-aligned).
17
18
  * @slot trailing - Content for the trailing section (right-aligned).
18
- *
19
+ *
19
20
  * @cssproperty --mdc-appheader-height - Height of the app header. Default is 4rem (64px).
20
- *
21
+ *
21
22
  * @csspart container - The main header container.
22
23
  * @csspart leading-section - The leading section wrapper (left side).
23
24
  * @csspart center-section - The center section wrapper (middle).
@@ -2,15 +2,6 @@ import { html } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import styles from './appheader.styles';
4
4
  /**
5
- * The `mdc-appheader` component provides a structured and accessible app header layout with three sections: leading, center, and trailing.
6
- *
7
- * ## Layout sections
8
- * - **Leading** - Typically holds brand logo, brand name, or menu icon
9
- * - **Center** - Can contain search bar, icons, navigation links, or action controls
10
- * - **Trailing** - Generally includes profile avatar, icons, settings, or additional action controls
11
- *
12
- * Each section automatically handles flex alignment: leading aligns left, center aligns center, trailing aligns right.
13
- *
14
5
  * @tagname mdc-appheader
15
6
  *
16
7
  * @slot leading - Content for the leading section (left-aligned).
@@ -3,42 +3,22 @@ import { CSSResult } from 'lit';
3
3
  import { Component } from '../../models';
4
4
  declare const Avatar_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/AvatarComponentMixin").AvatarComponentMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Component;
5
5
  /**
6
- * The `mdc-avatar` component represents a person or a space. It displays as a photo, initials, icon, or counter.
7
- *
8
- * ## Display Priority
9
- *
10
- * When multiple attributes are provided, the component determines what to display based on this priority:
11
- * 1. **Photo** (`src`) - Takes highest priority
12
- * - While loading: Shows `initials` as placeholder if provided (instant), otherwise shows icon (requires loading)
13
- * - After loading: Shows the photo
14
- * - On error: Placeholder remains visible (initials or icon)
15
- * 2. **Icon** (`icon-name`) - Takes priority if no `src` is provided
16
- * - Shows custom icon if `icon-name` is set (requires icon library to load)
17
- * - **Note:** If both `icon-name` and `initials` are provided (without `src`), icon takes precedence and initials are ignored.
18
- * This means users may see a delay while the icon loads, even though initials render instantly.
19
- * - Defaults to `user-regular` icon if no other content is available
20
- * 3. **Initials** (`initials`) - Displayed only if no `src` or `icon-name` is provided
21
- * - Shows first two characters, converted to uppercase
22
- * - Renders instantly (no loading required)
23
- * 4. **Counter** (`counter`) - Displayed only if none of the above are provided
24
- * - Shows numeric value (max 99+)
25
- * - Negative values display as 0
26
- *
27
- * ## Behavior
28
- * - Non-interactive and non-focusable component (use `mdc-avatarbutton` for clickable avatars)
29
- * - Shows loading indicator overlay when `is-typing` is true (displays on top of existing content)
30
- * - Presence indicator hidden when counter is set or when typing
31
- *
32
- * ## Accessibility
33
- * - By default, the component is hidden from assistive technologies (`aria-hidden="true"`).
34
- * - Consumers can override this attribute `aria-hidden="false"` if needed.
35
- *
6
+ * The avatar represents a person or a group. It can be rendered as a photo, initials, icon, or counter, and is non-interactive and non-focusable by default. An optional presence indicator and a typing loading state are also supported.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-avatar` to visually represent a person or group inline within content (e.g. lists, cards, message rows).
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-avatarbutton` when the avatar must be clickable or focusable (profile menu, account switcher, etc.).
15
+ *
16
+ * @tagname mdc-avatar
17
+ *
36
18
  * @dependency mdc-icon
37
19
  * @dependency mdc-presence
38
20
  * @dependency mdc-text
39
- *
40
- * @tagname mdc-avatar
41
- *
21
+ *
42
22
  * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.
43
23
  * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.
44
24
  * @cssproperty --mdc-avatar-loading-indicator-background-color -
@@ -47,7 +27,7 @@ declare const Avatar_base: import("../../utils/mixins/index.types").Constructor<
47
27
  * Allows customization of the loading indicator foreground color.
48
28
  * @cssproperty --mdc-avatar-loading-overlay-background-color -
49
29
  * Allows customization of the loading overlay background color.
50
- *
30
+ *
51
31
  * @csspart photo - The photo of the avatar.
52
32
  * @csspart presence - The presence indicator of the avatar.
53
33
  * @csspart loading-wrapper - The wrapper for the loading indicator.
@@ -17,42 +17,12 @@ import { AVATAR_TYPE, DEFAULTS, MAX_COUNTER } from './avatar.constants';
17
17
  import styles from './avatar.styles';
18
18
  import { getAvatarIconSize, getAvatarTextFontSize, getPresenceSize } from './avatar.utils';
19
19
  /**
20
- * The `mdc-avatar` component represents a person or a space. It displays as a photo, initials, icon, or counter.
21
- *
22
- * ## Display Priority
23
- *
24
- * When multiple attributes are provided, the component determines what to display based on this priority:
25
- * 1. **Photo** (`src`) - Takes highest priority
26
- * - While loading: Shows `initials` as placeholder if provided (instant), otherwise shows icon (requires loading)
27
- * - After loading: Shows the photo
28
- * - On error: Placeholder remains visible (initials or icon)
29
- * 2. **Icon** (`icon-name`) - Takes priority if no `src` is provided
30
- * - Shows custom icon if `icon-name` is set (requires icon library to load)
31
- * - **Note:** If both `icon-name` and `initials` are provided (without `src`), icon takes precedence and initials are ignored.
32
- * This means users may see a delay while the icon loads, even though initials render instantly.
33
- * - Defaults to `user-regular` icon if no other content is available
34
- * 3. **Initials** (`initials`) - Displayed only if no `src` or `icon-name` is provided
35
- * - Shows first two characters, converted to uppercase
36
- * - Renders instantly (no loading required)
37
- * 4. **Counter** (`counter`) - Displayed only if none of the above are provided
38
- * - Shows numeric value (max 99+)
39
- * - Negative values display as 0
40
- *
41
- * ## Behavior
42
- * - Non-interactive and non-focusable component (use `mdc-avatarbutton` for clickable avatars)
43
- * - Shows loading indicator overlay when `is-typing` is true (displays on top of existing content)
44
- * - Presence indicator hidden when counter is set or when typing
45
- *
46
- * ## Accessibility
47
- * - By default, the component is hidden from assistive technologies (`aria-hidden="true"`).
48
- * - Consumers can override this attribute `aria-hidden="false"` if needed.
20
+ * @tagname mdc-avatar
49
21
  *
50
22
  * @dependency mdc-icon
51
23
  * @dependency mdc-presence
52
24
  * @dependency mdc-text
53
25
  *
54
- * @tagname mdc-avatar
55
- *
56
26
  * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.
57
27
  * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.
58
28
  * @cssproperty --mdc-avatar-loading-indicator-background-color -
@@ -3,24 +3,25 @@ import { CSSResult } from 'lit';
3
3
  import Buttonsimple from '../buttonsimple/buttonsimple.component';
4
4
  declare const AvatarButton_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/AvatarComponentMixin").AvatarComponentMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Buttonsimple;
5
5
  /**
6
- * The `mdc-avatarbutton` component is an interactive, clickable version of `mdc-avatar`.
7
- * It wraps the avatar component in a button, making it focusable and actionable.
8
- *
9
- * This component extends `buttonsimple` and includes all avatar display features (photo, initials, icon, counter, presence).
10
- * Use CSS parts to customize the avatar's appearance inside the button.
11
- *
12
- * ## Accessibility
13
- * - Always provide an `aria-label` attribute to describe the button's purpose
14
- *
6
+ * The avatar button is an interactive, clickable version of the avatar. It wraps the avatar in a button so it becomes focusable and actionable, while still supporting all avatar display modes (photo, initials, icon, counter) and the presence indicator. Use CSS parts to customise the avatar appearance inside the button.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-avatarbutton` when the avatar must be clickable or keyboard-focusable — for example a profile menu trigger, account switcher, or a member chip that opens a details panel.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-avatar` when the avatar is purely decorative or informational and should not be interactive.
15
+ *
16
+ * @tagname mdc-avatarbutton
17
+ *
15
18
  * @dependency mdc-avatar
16
- *
19
+ *
17
20
  * @event click - (React: onClick) Dispatched when the avatar button is clicked.
18
21
  * @event keydown - (React: onKeyDown) Dispatched when a key is pressed on the avatar button.
19
22
  * @event keyup - (React: onKeyUp) Dispatched when a key is released on the avatar button.
20
23
  * @event focus - (React: onFocus) Dispatched when the avatar button receives focus.
21
- *
22
- * @tagname mdc-avatarbutton
23
- *
24
+ *
24
25
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state.
25
26
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state.
26
27
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state.
@@ -29,7 +30,7 @@ declare const AvatarButton_base: import("../../utils/mixins/index.types").Constr
29
30
  * @cssproperty --mdc-avatarbutton-loading-indicator-background-color - Background color of the loading indicator.
30
31
  * @cssproperty --mdc-avatarbutton-loading-indicator-foreground-color - Foreground color of the loading indicator.
31
32
  * @cssproperty --mdc-avatarbutton-loading-overlay-background-color - Background color of the loading overlay.
32
- *
33
+ *
33
34
  * @csspart overlay - The overlay part of the avatar button.
34
35
  * @csspart content - The main content of the avatar.
35
36
  * @csspart photo - The photo part of the avatar.
@@ -18,14 +18,7 @@ import { DEFAULTS as BUTTON_DEFAULTS } from '../button/button.constants';
18
18
  import Buttonsimple from '../buttonsimple/buttonsimple.component';
19
19
  import styles from './avatarbutton.styles';
20
20
  /**
21
- * The `mdc-avatarbutton` component is an interactive, clickable version of `mdc-avatar`.
22
- * It wraps the avatar component in a button, making it focusable and actionable.
23
- *
24
- * This component extends `buttonsimple` and includes all avatar display features (photo, initials, icon, counter, presence).
25
- * Use CSS parts to customize the avatar's appearance inside the button.
26
- *
27
- * ## Accessibility
28
- * - Always provide an `aria-label` attribute to describe the button's purpose
21
+ * @tagname mdc-avatarbutton
29
22
  *
30
23
  * @dependency mdc-avatar
31
24
  *
@@ -34,8 +27,6 @@ import styles from './avatarbutton.styles';
34
27
  * @event keyup - (React: onKeyUp) Dispatched when a key is released on the avatar button.
35
28
  * @event focus - (React: onFocus) Dispatched when the avatar button receives focus.
36
29
  *
37
- * @tagname mdc-avatarbutton
38
- *
39
30
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state.
40
31
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state.
41
32
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state.