@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
@@ -3,40 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/menupopover';
4
4
  import { TAG_NAME } from '../../components/menupopover/menupopover.constants';
5
5
  /**
6
- * A popover menu component that displays a list of menu items in a floating container.
7
- * It's designed to work in conjunction with `mdc-menubar` and `mdc-menuitem` to create
8
- * accessible, nested menu structures with the following features:
9
- * - Appears adjacent to the triggering menu item
10
- * - Supports keyboard navigation (arrow keys, Home, End)
11
- * - Manages focus trapping when open
12
- * - Closes on Escape key or outside click
13
- * - Supports both mouse and keyboard interactions
14
- * - Automatically handles ARIA attributes for accessibility
15
- *
16
- * The component extends `mdc-popover` and adds menu-specific behaviors and styling.
17
- * When nested within another `mdc-menupopover`, it automatically adjusts its behavior
18
- * to work as a submenu (right-aligned, shows on hover).
19
- *
20
- * The orientation of the menu popover is always set to `vertical`.
21
- *
22
- * Submenu opens when:
23
- * - Clicked on a menu item with a submenu
24
- * - Enter or Space key pressed on a menu item with a submenu
25
- *
26
- * Menu closes completely (with all sub menus) when:
27
- * - A menu item is clicked that does not have a submenu
28
- * - Enter key pressed on a menu item (not a submenu trigger), menu item radio or menu item checkbox
29
- * - Click outside the menu popover (on the backdrop)
30
- *
31
- * Close submenus when:
32
- * - Esc key pressed, only the current submenu closed
33
- * - Arrow Left key pressed, only the current submenu closed
34
- * - Open another submenu with Click, Enter or Space key,
35
- * closes recursively all submenus until the selected item's submenu
36
- *
37
- * Menu does not close when:
38
- * - Space key pressed on a menu item radio or menu item checkbox
39
- *
40
6
  * @tagname mdc-menupopover
41
7
  *
42
8
  * @slot - Default slot for the menu popover content
@@ -2,26 +2,30 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/menusection';
3
3
  import type { Events } from '../../components/menusection/menusection.types';
4
4
  /**
5
- * `mdc-menusection` is a container element used to group a set of menu items.
6
- *
7
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
8
- *
9
- * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
10
- * only one radio item can be selected at a time.
11
- * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.
12
- *
5
+ * `mdc-menusection` groups a set of menu items (`mdc-menuitem`, `mdc-menuitemcheckbox`, `mdc-menuitemradio`) under an optional visible header, optional prefix icon, and optional divider. It also enforces single-selection semantics across any `mdc-menuitemradio` children that share a `name`.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-menusection` to label and visually separate related entries inside an `mdc-menupopover` or `mdc-menubar`.
10
+ * - Use it to scope a `mdc-menuitemradio` group: the section bounds the single-selection rule applied to radios with the same `name`.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Do not nest `mdc-menusection` inside another `mdc-menusection`; sections are flat.
15
+ * - Do not use it outside of a menu context (`mdc-menupopover`, `mdc-menubar`, `mdc-sidenavigation`).
16
+ *
13
17
  * @tagname mdc-menusection
14
- *
18
+ *
15
19
  * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`
16
- *
20
+ *
17
21
  * @event change - (React: onChange) This event is dispatched when a `menuitemcheckbox`, or `menuitemradio` changes.
18
22
  * @event action - (React: onAction) This event is dispatched when a `menuitem` selected.
19
- *
23
+ *
20
24
  * @csspart header - The header of the menusection.
21
25
  * @csspart align-header - The header of the menusection when it is aligned to the start.
22
26
  * @csspart container - The container of the menusection.
23
27
  * @csspart divider - The divider of the menusection.
24
- *
28
+ *
25
29
  * @cssproperty --mdc-menusection-divider-margin-block - Sets the margin block of the divider.
26
30
  * @cssproperty --mdc-menusection-gap - Sets the gap between items in the menusection.
27
31
  * @cssproperty --mdc-menusection-divider-width - Sets the width of the divider.
@@ -3,14 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/menusection';
4
4
  import { TAG_NAME } from '../../components/menusection/menusection.constants';
5
5
  /**
6
- * `mdc-menusection` is a container element used to group a set of menu items.
7
- *
8
- * This component supports a mix of `menuitem`, `menuitemcheckbox`, and `menuitemradio` components. MenuSection can not be nested.
9
- *
10
- * - If multiple `menuitemradio` components are slotted into the section, the group enforces a single-selection rule:
11
- * only one radio item can be selected at a time.
12
- * - If `menuitemcheckbox` components are included, their checked state can be toggled independently.
13
- *
14
6
  * @tagname mdc-menusection
15
7
  *
16
8
  * @slot - Default slot for inserting `menuitem`, `menuitemcheckbox`, or `menuitemradio`
@@ -3,30 +3,31 @@ import Component from '../../components/navmenuitem';
3
3
  import type { Events } from '../../components/navmenuitem/navmenuitem.types';
4
4
  import type { Events as EventsInherited } from '../../components/listitem/listitem.types';
5
5
  /**
6
- * `mdc-navmenuitem` is a menuitem styled to work as a navigation tab.
7
- * It supports a leading icon, optional badge and dynamic text rendering.
8
- *
9
- * The navmenuitem can be in an active or inactive state, indicating whether it is currently selected.
10
- *
11
- * Note: `mdc-navmenuitem` is intended to be used inside `mdc-menubar` as part of the sideNavigation
12
- * component. Its structure, spacing, and interactions are designed to align with
13
- * the visual and functional requirements of side navigation layouts.
14
- *
15
- * By providing the tooltip-text attribute, a tooltip will be displayed on hover of the navmenuitem. This tooltip is useful when an active navmenuitem is present within a submenu of the sidenavigation component.
16
- *
6
+ * `mdc-navmenuitem` is a menu item styled to work as a navigation tab inside `mdc-sidenavigation`. It renders a leading icon, an optional badge, and a dynamic label that appears when the surrounding side navigation is expanded. The item can be in an active or inactive state to indicate the current page, and a tooltip can be attached for collapsed states or for parent items whose nested child is active.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-navmenuitem` for primary navigation entries inside `mdc-sidenavigation` (or an `mdc-menubar` used as a side navigation tree).
11
+ * - Use the active/inactive state to reflect which destination corresponds to the current route or view.
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Do not use `mdc-navmenuitem` for action menu items inside `mdc-menupopover`; use `mdc-menuitem`, `mdc-menuitemcheckbox`, or `mdc-menuitemradio` there.
16
+ * - Do not use it as a stand-alone link or button outside a navigation context — use `mdc-link` or `mdc-button` instead.
17
+ *
17
18
  * @tagname mdc-navmenuitem
18
- *
19
+ *
19
20
  * @dependency mdc-icon
20
21
  * @dependency mdc-text
21
22
  * @dependency mdc-badge
22
23
  * @dependency mdc-tooltip
23
- *
24
+ *
24
25
  * @event click - (React: onClick) This event is dispatched when the navmenuitem is clicked.
25
26
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the navmenuitem.
26
27
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the navmenuitem.
27
28
  * @event focus - (React: onFocus) This event is dispatched when the navmenuitem receives focus.
28
29
  * @event activechange - (React: onActiveChange) Dispatched when the active state of the navmenuitem changes.
29
- *
30
+ *
30
31
  * @cssproperty --mdc-navmenuitem-in-sidenav-expanded-width - Width of the navmenuitem when expanded.
31
32
  * @cssproperty --mdc-navmenuitem-in-sidenav-expanded-margin-left - Left margin of the navmenuitem, when expanded.
32
33
  * @cssproperty --mdc-navmenuitem-in-sidenav-expanded-margin-right - Right margin of the navmenuitem, when expanded.
@@ -42,7 +43,7 @@ import type { Events as EventsInherited } from '../../components/listitem/listit
42
43
  * @cssproperty --mdc-navmenuitem-pressed-active-background-color - Background color of the active navmenuitem when pressed.
43
44
  * @cssproperty --mdc-navmenuitem-disabled-background-color - Background color of the navmenuitem when disabled.
44
45
  * @cssproperty --mdc-navmenuitem-disabled-active-background-color - Background color of the active navmenuitem when disabled.
45
- *
46
+ *
46
47
  * @csspart arrow - The arrow of the navmenuitem.
47
48
  * @csspart badge - The badge of the navmenuitem.
48
49
  * @csspart icon-container - The container of the icon.
@@ -3,17 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/navmenuitem';
4
4
  import { TAG_NAME } from '../../components/navmenuitem/navmenuitem.constants';
5
5
  /**
6
- * `mdc-navmenuitem` is a menuitem styled to work as a navigation tab.
7
- * It supports a leading icon, optional badge and dynamic text rendering.
8
- *
9
- * The navmenuitem can be in an active or inactive state, indicating whether it is currently selected.
10
- *
11
- * Note: `mdc-navmenuitem` is intended to be used inside `mdc-menubar` as part of the sideNavigation
12
- * component. Its structure, spacing, and interactions are designed to align with
13
- * the visual and functional requirements of side navigation layouts.
14
- *
15
- * By providing the tooltip-text attribute, a tooltip will be displayed on hover of the navmenuitem. This tooltip is useful when an active navmenuitem is present within a submenu of the sidenavigation component.
16
- *
17
6
  * @tagname mdc-navmenuitem
18
7
  *
19
8
  * @dependency mdc-icon
@@ -1,15 +1,25 @@
1
1
  import Component from '../../components/optgroup';
2
2
  /**
3
- * optgroup component, which creates a grouping of mdc-option within a listbox element.
4
- *
5
- * @dependency mdc-text
6
- *
3
+ * `mdc-optgroup` groups a set of `mdc-option` elements under a shared label inside a listbox (typically the `mdc-selectlistbox` rendered by `mdc-select`). It exposes the grouping to assistive technology via `role="group"` and an associated label.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-optgroup` to organise related options inside an `mdc-selectlistbox` or `mdc-listbox` (for example, grouping countries by continent).
8
+ * - Use it to disable a whole set of options at once via the `disabled` attribute.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Do not use `mdc-optgroup` for grouping menu items — use `mdc-menusection` inside `mdc-menupopover` or `mdc-menubar`.
13
+ * - Do not nest `mdc-optgroup` inside another `mdc-optgroup`.
14
+ *
7
15
  * @tagname mdc-optgroup
8
- *
16
+ *
17
+ * @dependency mdc-text
18
+ *
9
19
  * @slot default - This is a default slot for mdc-option elements.
10
- *
20
+ *
11
21
  * @cssproperty --mdc-optgroup-disabled-color - Allows customization of the disabled option color.
12
- *
22
+ *
13
23
  * @csspart header-text - The header text of the optgroup.
14
24
  */
15
25
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,12 +3,10 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/optgroup';
4
4
  import { TAG_NAME } from '../../components/optgroup/optgroup.constants';
5
5
  /**
6
- * optgroup component, which creates a grouping of mdc-option within a listbox element.
6
+ * @tagname mdc-optgroup
7
7
  *
8
8
  * @dependency mdc-text
9
9
  *
10
- * @tagname mdc-optgroup
11
- *
12
10
  * @slot default - This is a default slot for mdc-option elements.
13
11
  *
14
12
  * @cssproperty --mdc-optgroup-disabled-color - Allows customization of the disabled option color.
@@ -2,33 +2,31 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/option';
3
3
  import type { Events as EventsInherited } from '../../components/listitem/listitem.types';
4
4
  /**
5
- * Option component, which is used within Selectlistbox within Select component.
6
- *
7
- * The label and secondary label of the option can be set using the `label` and `secondaryLabel` properties respectively.
8
- * The `label` is the primary text displayed in the option, while the `secondaryLabel` is the secondary text displayed below the primary label.
9
- *
10
- * The `selected` property is used to indicate whether the option is selected or not.
11
- * When the `selected` property is set to true, a checkmark icon will be displayed
12
- * on the right side of the option to indicate that it is selected.
13
- *
14
- * The `prefixIcon` property can be used to display an icon on the left side of the option label.
15
- *
16
- * **Note**: If an option contains a long text, it is recommended to create a tooltip for the option that displays the full text on hover.
17
- * Consumers need to add a unique ID to this option and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the option using the `triggerID` attribute.
18
- *
5
+ * `mdc-option` is a selectable entry rendered inside a listbox (`mdc-selectlistbox` / `mdc-listbox`), typically as a child of `mdc-select`. It supports a primary and secondary label, an optional prefix icon, and renders a checkmark on the trailing side when selected. The component participates in form submission through its associated form-control behaviour.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-option` for each selectable value inside an `mdc-select`, `mdc-selectlistbox`, or `mdc-listbox`.
10
+ * - Group related options together with `mdc-optgroup`.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Do not use `mdc-option` inside menus use `mdc-menuitem`, `mdc-menuitemcheckbox`, or `mdc-menuitemradio` inside `mdc-menupopover`/`mdc-menubar`.
15
+ * - Do not use it as a stand-alone list row; use `mdc-listitem` for generic lists.
16
+ *
17
+ * @tagname mdc-option
18
+ *
19
19
  * @dependency mdc-icon
20
20
  * @dependency mdc-text
21
- *
22
- * @tagname mdc-option
23
- *
21
+ *
24
22
  * @event click - (React: onClick) This event is dispatched when the option is clicked.
25
23
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the option.
26
24
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the option.
27
25
  * @event focus - (React: onFocus) This event is dispatched when the option receives focus.
28
- *
26
+ *
29
27
  * @cssproperty --mdc-listitem-column-gap - gap between columns in the option
30
28
  * @cssproperty --mdc-option-icon-width - width of the icon in the option
31
- *
29
+ *
32
30
  * @csspart leading - Allows customization of the leading part.
33
31
  * @csspart leading-text - Allows customization of the leading text part.
34
32
  * @csspart trailing - Allows customization of the trailing part.
@@ -3,25 +3,11 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/option';
4
4
  import { TAG_NAME } from '../../components/option/option.constants';
5
5
  /**
6
- * Option component, which is used within Selectlistbox within Select component.
7
- *
8
- * The label and secondary label of the option can be set using the `label` and `secondaryLabel` properties respectively.
9
- * The `label` is the primary text displayed in the option, while the `secondaryLabel` is the secondary text displayed below the primary label.
10
- *
11
- * The `selected` property is used to indicate whether the option is selected or not.
12
- * When the `selected` property is set to true, a checkmark icon will be displayed
13
- * on the right side of the option to indicate that it is selected.
14
- *
15
- * The `prefixIcon` property can be used to display an icon on the left side of the option label.
16
- *
17
- * **Note**: If an option contains a long text, it is recommended to create a tooltip for the option that displays the full text on hover.
18
- * Consumers need to add a unique ID to this option and use that ID in the tooltip's `triggerID` attribute. We are not creating the tooltip automatically, consumers need to add `<mdc-tooltip>` element manually and associate it with the option using the `triggerID` attribute.
6
+ * @tagname mdc-option
19
7
  *
20
8
  * @dependency mdc-icon
21
9
  * @dependency mdc-text
22
10
  *
23
- * @tagname mdc-option
24
- *
25
11
  * @event click - (React: onClick) This event is dispatched when the option is clicked.
26
12
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the option.
27
13
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the option.
@@ -3,29 +3,31 @@ import Component from '../../components/password';
3
3
  import type { Events as EventsInherited0 } from '../../components/input/input.types';
4
4
  import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLimitMixin.ts';
5
5
  /**
6
- * `mdc-password` is a component that allows users to input their password.
7
- * It extends the `mdc-input` component and provides additional features specific to password fields.
8
- * It contains:
9
- * - `label` field - describe the password field.
10
- * - `password` field - contains the value
11
- * - `help-text` or `validation-message` - displayed below the password field.
12
- * - `help-text-type` - type of the help text, can be 'default', 'error', 'warning', 'success', 'priority'.
13
- * - `show-button-aria-label` - aria label for the trailing show button.
14
- * - `hide-button-aria-label` - aria label for the trailing hide button.
15
- * - all the attributes of the native password field.
16
- *
6
+ * `mdc-password` is a form-associated password input. It renders the same label, help-text, validation, prefix, and leading-icon surface as `mdc-input`, but the input type defaults to `password` and a trailing show/hide button is always present so users can reveal or mask the entered value.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-password` whenever the user needs to enter a credential or other secret string that should be visually masked.
11
+ * - Use it as the password field in sign-in, sign-up, and credential-change forms inside a `form` element.
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Do not use `mdc-password` for regular text — use `mdc-input` instead.
16
+ * - Do not use it for multi-line secrets — use `mdc-textarea`.
17
+ * - Do not use it for one-time codes that should be visible as the user types — use `mdc-input`.
18
+ *
17
19
  * @tagname mdc-password
18
- *
20
+ *
19
21
  * @event input - (React: onInput) This event is dispatched when the value of the password field changes (every press).
20
22
  * @event change - (React: onChange) This event is dispatched when the value of the password field changes (on blur).
21
23
  * @event focus - (React: onFocus) This event is dispatched when the password receives focus.
22
24
  * @event blur - (React: onBlur) This event is dispatched when the password loses focus.
23
- *
25
+ *
24
26
  * @dependency mdc-icon
25
27
  * @dependency mdc-text
26
28
  * @dependency mdc-button
27
29
  * @dependency mdc-toggletip
28
- *
30
+ *
29
31
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
30
32
  * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.
31
33
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
@@ -34,7 +36,7 @@ import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLim
34
36
  * @slot input-leading-icon - Slot for the leading icon before the input field. If not provided, the `leadingIcon` property will be used to render the leading icon.
35
37
  * @slot input-prefix-text - Slot for the prefix text before the input field. If not provided, the `prefixText` property will be used to render the prefix text.
36
38
  * @slot trailing-button - Slot for the trailing button to clear the input field. If not provided, the clear button will be rendered when `trailingButton` property is set to true.
37
- *
39
+ *
38
40
  * @csspart input-container - The container that wraps the input field, leading icon, prefix text, and trailing button.
39
41
  * @csspart input-section - The container that wraps the input field and prefix text.
40
42
  * @csspart input-text - The input field element.
@@ -44,7 +46,7 @@ import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLim
44
46
  * @csspart helper-icon - The helper/validation icon element.
45
47
  * @csspart toggletip - The toggletip icon button element.
46
48
  * @csspart toggletip-text - The toggletip text element.
47
- *
49
+ *
48
50
  * @cssproperty --mdc-label-font-size - Font size for the label text.
49
51
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
50
52
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -59,7 +61,6 @@ import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLim
59
61
  * @cssproperty --mdc-input-background-color - Background color for the input field
60
62
  * @cssproperty --mdc-input-selection-text-color - Text color for the selected text
61
63
  * @cssproperty --mdc-input-selection-background-color - Background color for the selected text
62
- *
63
64
  */
64
65
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
65
66
  onInput: EventName<EventsInherited0["onInputEvent"]>;
@@ -3,17 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/password';
4
4
  import { TAG_NAME } from '../../components/password/password.constants';
5
5
  /**
6
- * `mdc-password` is a component that allows users to input their password.
7
- * It extends the `mdc-input` component and provides additional features specific to password fields.
8
- * It contains:
9
- * - `label` field - describe the password field.
10
- * - `password` field - contains the value
11
- * - `help-text` or `validation-message` - displayed below the password field.
12
- * - `help-text-type` - type of the help text, can be 'default', 'error', 'warning', 'success', 'priority'.
13
- * - `show-button-aria-label` - aria label for the trailing show button.
14
- * - `hide-button-aria-label` - aria label for the trailing hide button.
15
- * - all the attributes of the native password field.
16
- *
17
6
  * @tagname mdc-password
18
7
  *
19
8
  * @event input - (React: onInput) This event is dispatched when the value of the password field changes (every press).
@@ -2,61 +2,29 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/popover';
3
3
  import type { Events } from '../../components/popover/popover.types';
4
4
  /**
5
- * Popover is generic overlay which can be triggered by any actionable element.
6
- *
7
- * It can be used for tooltips, dropdowns, menus or any showing any other contextual content.
8
- *
9
- * The popover automatically positions itself based on available space and
10
- * supports dynamic height adjustments with scrollable content when needed.
11
- * It uses [Floating UI](https://floating-ui.com/) for maintaining the position of the popover.
12
- *
13
- * ## Limitations
14
- *
15
- * ### On trigger for multiple popovers
16
- *
17
- * A component (button, etc.) can trigger more than one popover, but only one of them should change the
18
- * aria-expanded and aria-haspopup attributes on the trigger.
19
- *
20
- * To prevent unexpected attribute changes on the trigger `disable-aria-expanded` attribute must be set on all linked
21
- * Popovers except one.
22
- *
23
- * ### React Popover with append-to attribute
24
- *
25
- * React mounts the popover based on the virtual DOM, but when the append-to attribute is set, the popover removes itself
26
- * and mounts to the specified element. React will not know about the move and will not know about the
27
- * newly created mdc-popoverportal element either. This throws a `NotFoundError` error when the Popover is directly
28
- * added/removed by React, for example:
29
- *
30
- * ```tsx
31
- * const SomeComponent = () => {
32
- * const [isOpen, setIsOpen] = useState(false);
33
- * return (<div>
34
- * {isOpen && <Popover append-to="some-element-id">...</mdc-popover>}
35
- * </div>);
36
- * }
37
- * ```
38
- * As a workaround Popover need to wrap with any other element/component, for example:
39
- * ```tsx
40
- * const SomeComponent = () => {
41
- * const [isOpen, setIsOpen] = useState(false);
42
- * return (<div>
43
- * {isOpen && <div>
44
- * <Popover append-to="some-element-id">...</mdc-popover>
45
- * <div>}
46
- * </div>);
47
- * }
48
- * ```
49
- * Note the wrapper <div> around the Popover component (React.Fragment does not work).
50
- *
51
- * @dependency mdc-button
52
- *
5
+ * The popover is a generic overlay that can be anchored to any actionable element on the page (identified by its `id`) and used to host tooltips, dropdowns, menus, or any other contextual content. It automatically positions itself based on available space, can resize to fit the viewport, and uses [Floating UI](https://floating-ui.com/) to keep its position correct as the page scrolls or resizes.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-popover` to render contextual UI floating next to a trigger element — additional information, action menus, or interactive panels.
10
+ * - Use it when you need fine control over trigger events (click, hover, focus, manual), placement, offset, arrow, focus trap, or backdrop behaviour.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-tooltip` for short, non-interactive descriptive text shown on hover/focus.
15
+ * - Use `mdc-toggletip` for short text shown on click that does not need focus trapping.
16
+ * - Use `mdc-dialog` for modal flows that interrupt the user, render in the centre of the viewport, and own their own header/footer chrome.
17
+ * - Use `mdc-menupopover` / `mdc-coachmark` / `mdc-searchpopover` when one of those higher-level widgets already composes a popover for the use case.
18
+ *
53
19
  * @tagname mdc-popover
54
- *
20
+ *
21
+ * @dependency mdc-button
22
+ *
55
23
  * @event shown - (React: onShown) This event is dispatched when the popover is shown
56
24
  * @event hidden - (React: onHidden) This event is dispatched when the popover is hidden
57
25
  * @event created - (React: onCreated) This event is dispatched when the popover is created (added to the DOM)
58
26
  * @event destroyed - (React: onDestroyed) This event is dispatched when the popover is destroyed (removed from the DOM)
59
- *
27
+ *
60
28
  * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border
61
29
  * @cssproperty --mdc-popover-arrow-border - border of the arrow
62
30
  * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover
@@ -69,9 +37,9 @@ import type { Events } from '../../components/popover/popover.types';
69
37
  * @cssproperty --mdc-popover-max-height - max height of the popover
70
38
  * @cssproperty --mdc-popover-width - width of the popover
71
39
  * @cssproperty --mdc-popover-backdrop-color - background color of the backdrop (if backdrop is enabled)
72
- *
40
+ *
73
41
  * @slot - Default slot for the popover content
74
- *
42
+ *
75
43
  * @csspart popover-close - The close button of the popover.
76
44
  * @csspart popover-content - The content of the popover.
77
45
  * @csspart popover-hover-bridge - The hover bridge of the popover.
@@ -3,56 +3,10 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/popover';
4
4
  import { TAG_NAME } from '../../components/popover/popover.constants';
5
5
  /**
6
- * Popover is generic overlay which can be triggered by any actionable element.
7
- *
8
- * It can be used for tooltips, dropdowns, menus or any showing any other contextual content.
9
- *
10
- * The popover automatically positions itself based on available space and
11
- * supports dynamic height adjustments with scrollable content when needed.
12
- * It uses [Floating UI](https://floating-ui.com/) for maintaining the position of the popover.
13
- *
14
- * ## Limitations
15
- *
16
- * ### On trigger for multiple popovers
17
- *
18
- * A component (button, etc.) can trigger more than one popover, but only one of them should change the
19
- * aria-expanded and aria-haspopup attributes on the trigger.
20
- *
21
- * To prevent unexpected attribute changes on the trigger `disable-aria-expanded` attribute must be set on all linked
22
- * Popovers except one.
23
- *
24
- * ### React Popover with append-to attribute
25
- *
26
- * React mounts the popover based on the virtual DOM, but when the append-to attribute is set, the popover removes itself
27
- * and mounts to the specified element. React will not know about the move and will not know about the
28
- * newly created mdc-popoverportal element either. This throws a `NotFoundError` error when the Popover is directly
29
- * added/removed by React, for example:
30
- *
31
- * ```tsx
32
- * const SomeComponent = () => {
33
- * const [isOpen, setIsOpen] = useState(false);
34
- * return (<div>
35
- * {isOpen && <Popover append-to="some-element-id">...</mdc-popover>}
36
- * </div>);
37
- * }
38
- * ```
39
- * As a workaround Popover need to wrap with any other element/component, for example:
40
- * ```tsx
41
- * const SomeComponent = () => {
42
- * const [isOpen, setIsOpen] = useState(false);
43
- * return (<div>
44
- * {isOpen && <div>
45
- * <Popover append-to="some-element-id">...</mdc-popover>
46
- * <div>}
47
- * </div>);
48
- * }
49
- * ```
50
- * Note the wrapper <div> around the Popover component (React.Fragment does not work).
6
+ * @tagname mdc-popover
51
7
  *
52
8
  * @dependency mdc-button
53
9
  *
54
- * @tagname mdc-popover
55
- *
56
10
  * @event shown - (React: onShown) This event is dispatched when the popover is shown
57
11
  * @event hidden - (React: onHidden) This event is dispatched when the popover is hidden
58
12
  * @event created - (React: onCreated) This event is dispatched when the popover is created (added to the DOM)
@@ -1,15 +1,22 @@
1
1
  import Component from '../../components/presence';
2
2
  /**
3
- * The `mdc-presence` component is a versatile UI element used to
4
- * display the presence status of a user or entity within an avatar component.
5
- *
6
- * This component is ideal for use within avatar UIs where the presence status
7
- * needs to be visually represented.
8
- *
9
- * @dependency mdc-icon
10
- *
3
+ * The presence is a small status badge that visually represents the availability or activity state of a user or entity (for example: active, away, busy, do-not-disturb, on a call, presenting). It is sized to be paired with an avatar so the status renders as a corner indicator on top of the avatar artwork.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-presence` next to or on top of an `mdc-avatar` to indicate the represented user/entity's current availability or activity.
8
+ * - Use it whenever the application has a meaningful status signal to communicate alongside an avatar (online, in a meeting, away, etc.).
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Do not use it as a standalone status indicator divorced from an avatar — pair it with `mdc-avatar` so the icon size matches the avatar size.
13
+ * - Use `mdc-badge` for counts, dots, or non-status decorations.
14
+ * - Use `mdc-icon` if you need an arbitrary icon at custom sizes outside the supported avatar size set.
15
+ *
11
16
  * @tagname mdc-presence
12
- *
17
+ *
18
+ * @dependency mdc-icon
19
+ *
13
20
  * @cssproperty --mdc-presence-active-background-color - The background color of the presence type active.
14
21
  * @cssproperty --mdc-presence-away-background-color - The background color of the presence type away.
15
22
  * @cssproperty --mdc-presence-away-calling-background-color - The background color of the presence type away-calling.
@@ -25,7 +32,7 @@ import Component from '../../components/presence';
25
32
  * @cssproperty --mdc-presence-quiet-background-color - The background color of the presence type quiet.
26
33
  * @cssproperty --mdc-presence-scheduled-background-color - The background color of the presence type scheduled.
27
34
  * @cssproperty --mdc-presence-overlay-background-color - The background color of the presence type overlay.
28
- *
35
+ *
29
36
  * @csspart presence-content - The presence content.
30
37
  * @csspart mdc-presence-icon - The presence icon.
31
38
  * @csspart mdc-presence-icon__active - The presence icon for active.
@@ -3,16 +3,10 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/presence';
4
4
  import { TAG_NAME } from '../../components/presence/presence.constants';
5
5
  /**
6
- * The `mdc-presence` component is a versatile UI element used to
7
- * display the presence status of a user or entity within an avatar component.
8
- *
9
- * This component is ideal for use within avatar UIs where the presence status
10
- * needs to be visually represented.
6
+ * @tagname mdc-presence
11
7
  *
12
8
  * @dependency mdc-icon
13
9
  *
14
- * @tagname mdc-presence
15
- *
16
10
  * @cssproperty --mdc-presence-active-background-color - The background color of the presence type active.
17
11
  * @cssproperty --mdc-presence-away-background-color - The background color of the presence type away.
18
12
  * @cssproperty --mdc-presence-away-calling-background-color - The background color of the presence type away-calling.