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