@momentum-design/components 0.134.20 → 0.134.22

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 (390) hide show
  1. package/dist/browser/index.js +481 -458
  2. package/dist/browser/index.js.map +4 -4
  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 +25 -14
  57. package/dist/components/datepicker/datepicker.component.js +96 -35
  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 +2 -20
  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 +17 -39
  105. package/dist/components/menupopover/menupopover.component.js +4 -38
  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 +47 -16
  109. package/dist/components/navmenuitem/navmenuitem.component.js +146 -20
  110. package/dist/components/navmenuitem/navmenuitem.constants.d.ts +1 -0
  111. package/dist/components/navmenuitem/navmenuitem.constants.js +1 -0
  112. package/dist/components/navmenuitem/navmenuitem.styles.js +16 -5
  113. package/dist/components/optgroup/optgroup.component.d.ts +17 -7
  114. package/dist/components/optgroup/optgroup.component.js +1 -3
  115. package/dist/components/option/option.component.d.ts +17 -19
  116. package/dist/components/option/option.component.js +1 -15
  117. package/dist/components/password/password.component.d.ts +18 -17
  118. package/dist/components/password/password.component.js +0 -11
  119. package/dist/components/popover/popover.component.d.ts +20 -52
  120. package/dist/components/popover/popover.component.js +1 -47
  121. package/dist/components/presence/presence.component.d.ts +17 -10
  122. package/dist/components/presence/presence.component.js +1 -7
  123. package/dist/components/progressbar/progressbar.component.d.ts +17 -13
  124. package/dist/components/progressbar/progressbar.component.js +0 -9
  125. package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
  126. package/dist/components/progressspinner/progressspinner.component.js +0 -17
  127. package/dist/components/radio/radio.component.d.ts +19 -41
  128. package/dist/components/radio/radio.component.js +1 -37
  129. package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
  130. package/dist/components/radiogroup/radiogroup.component.js +0 -4
  131. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
  132. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
  133. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
  134. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
  135. package/dist/components/searchfield/searchfield.component.d.ts +16 -24
  136. package/dist/components/searchfield/searchfield.component.js +0 -20
  137. package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
  138. package/dist/components/searchpopover/searchpopover.component.js +0 -16
  139. package/dist/components/select/select.component.d.ts +23 -19
  140. package/dist/components/select/select.component.js +1 -14
  141. package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
  142. package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
  143. package/dist/components/sidenavigation/sidenavigation.component.d.ts +64 -44
  144. package/dist/components/sidenavigation/sidenavigation.component.js +241 -43
  145. package/dist/components/sidenavigation/sidenavigation.constants.d.ts +6 -1
  146. package/dist/components/sidenavigation/sidenavigation.constants.js +6 -1
  147. package/dist/components/sidenavigation/sidenavigation.context.d.ts +6 -1
  148. package/dist/components/sidenavigation/sidenavigation.context.js +36 -11
  149. package/dist/components/sidenavigation/sidenavigation.types.d.ts +3 -2
  150. package/dist/components/sidenavigation/sidenavigationbase.d.ts +8 -0
  151. package/dist/components/sidenavigation/sidenavigationbase.js +7 -0
  152. package/dist/components/skeleton/skeleton.component.d.ts +14 -15
  153. package/dist/components/skeleton/skeleton.component.js +0 -13
  154. package/dist/components/slider/slider.component.d.ts +17 -15
  155. package/dist/components/slider/slider.component.js +0 -11
  156. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
  157. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
  158. package/dist/components/spinner/spinner.component.d.ts +15 -27
  159. package/dist/components/spinner/spinner.component.js +0 -25
  160. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
  161. package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
  162. package/dist/components/staticchip/staticchip.component.d.ts +17 -8
  163. package/dist/components/staticchip/staticchip.component.js +0 -5
  164. package/dist/components/staticradio/staticradio.component.d.ts +15 -19
  165. package/dist/components/staticradio/staticradio.component.js +0 -16
  166. package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
  167. package/dist/components/statictoggle/statictoggle.component.js +0 -17
  168. package/dist/components/stepper/stepper.component.d.ts +13 -5
  169. package/dist/components/stepper/stepper.component.js +0 -3
  170. package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
  171. package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
  172. package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
  173. package/dist/components/stepperitem/stepperitem.component.js +1 -10
  174. package/dist/components/tab/tab.component.d.ts +20 -23
  175. package/dist/components/tab/tab.component.js +1 -16
  176. package/dist/components/tablist/tablist.component.d.ts +18 -30
  177. package/dist/components/tablist/tablist.component.js +0 -24
  178. package/dist/components/text/text.component.d.ts +12 -13
  179. package/dist/components/text/text.component.js +0 -12
  180. package/dist/components/textarea/textarea.component.d.ts +17 -39
  181. package/dist/components/textarea/textarea.component.js +0 -34
  182. package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
  183. package/dist/components/themeprovider/themeprovider.component.js +0 -25
  184. package/dist/components/timepicker/timepicker.component.d.ts +17 -19
  185. package/dist/components/timepicker/timepicker.component.js +0 -14
  186. package/dist/components/toast/toast.component.d.ts +20 -12
  187. package/dist/components/toast/toast.component.js +1 -7
  188. package/dist/components/toggle/toggle.component.d.ts +18 -24
  189. package/dist/components/toggle/toggle.component.js +1 -21
  190. package/dist/components/toggletip/toggletip.component.d.ts +18 -28
  191. package/dist/components/toggletip/toggletip.component.js +1 -24
  192. package/dist/components/tooltip/tooltip.component.d.ts +16 -16
  193. package/dist/components/tooltip/tooltip.component.js +0 -13
  194. package/dist/components/typewriter/typewriter.component.d.ts +18 -34
  195. package/dist/components/typewriter/typewriter.component.js +1 -31
  196. package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
  197. package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
  198. package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
  199. package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
  200. package/dist/custom-elements.json +334 -191
  201. package/dist/models/provider/provider.component.d.ts +2 -2
  202. package/dist/models/provider/provider.component.js +13 -0
  203. package/dist/react/accordion/index.d.ts +15 -5
  204. package/dist/react/accordionbutton/index.d.ts +14 -26
  205. package/dist/react/accordionbutton/index.js +0 -22
  206. package/dist/react/accordiongroup/index.d.ts +12 -16
  207. package/dist/react/accordiongroup/index.js +0 -14
  208. package/dist/react/alertchip/index.d.ts +15 -11
  209. package/dist/react/alertchip/index.js +0 -7
  210. package/dist/react/animation/index.d.ts +14 -6
  211. package/dist/react/animation/index.js +0 -5
  212. package/dist/react/announcementdialog/index.d.ts +18 -25
  213. package/dist/react/announcementdialog/index.js +1 -20
  214. package/dist/react/appheader/index.d.ts +13 -12
  215. package/dist/react/appheader/index.js +0 -9
  216. package/dist/react/avatar/index.d.ts +14 -34
  217. package/dist/react/avatar/index.js +1 -31
  218. package/dist/react/avatarbutton/index.d.ts +15 -14
  219. package/dist/react/avatarbutton/index.js +1 -10
  220. package/dist/react/badge/index.d.ts +16 -20
  221. package/dist/react/badge/index.js +1 -17
  222. package/dist/react/banner/index.d.ts +17 -17
  223. package/dist/react/banner/index.js +1 -13
  224. package/dist/react/brandvisual/index.d.ts +15 -12
  225. package/dist/react/brandvisual/index.js +0 -10
  226. package/dist/react/bullet/index.d.ts +15 -16
  227. package/dist/react/bullet/index.js +0 -15
  228. package/dist/react/button/index.d.ts +21 -52
  229. package/dist/react/button/index.js +1 -47
  230. package/dist/react/buttongroup/index.d.ts +17 -20
  231. package/dist/react/buttongroup/index.js +0 -17
  232. package/dist/react/buttonlink/index.d.ts +19 -16
  233. package/dist/react/buttonlink/index.js +1 -11
  234. package/dist/react/buttonsimple/index.d.ts +16 -25
  235. package/dist/react/buttonsimple/index.js +0 -22
  236. package/dist/react/calendar/index.d.ts +17 -11
  237. package/dist/react/calendar/index.js +0 -8
  238. package/dist/react/card/index.d.ts +18 -17
  239. package/dist/react/card/index.js +0 -13
  240. package/dist/react/cardbutton/index.d.ts +20 -14
  241. package/dist/react/cardbutton/index.js +0 -9
  242. package/dist/react/cardcheckbox/index.d.ts +20 -19
  243. package/dist/react/cardcheckbox/index.js +0 -14
  244. package/dist/react/cardradio/index.d.ts +20 -20
  245. package/dist/react/cardradio/index.js +0 -15
  246. package/dist/react/checkbox/index.d.ts +22 -26
  247. package/dist/react/checkbox/index.js +1 -22
  248. package/dist/react/chip/index.d.ts +20 -13
  249. package/dist/react/chip/index.js +0 -9
  250. package/dist/react/coachmark/index.d.ts +22 -22
  251. package/dist/react/coachmark/index.js +1 -18
  252. package/dist/react/combobox/index.d.ts +27 -37
  253. package/dist/react/combobox/index.js +1 -32
  254. package/dist/react/controltypeprovider/index.d.ts +19 -11
  255. package/dist/react/controltypeprovider/index.js +0 -10
  256. package/dist/react/datepicker/index.d.ts +20 -14
  257. package/dist/react/datepicker/index.js +0 -9
  258. package/dist/react/dialog/index.d.ts +25 -40
  259. package/dist/react/dialog/index.js +1 -35
  260. package/dist/react/divider/index.d.ts +23 -25
  261. package/dist/react/divider/index.js +0 -23
  262. package/dist/react/filterchip/index.d.ts +20 -9
  263. package/dist/react/filterchip/index.js +0 -5
  264. package/dist/react/formfieldgroup/index.d.ts +18 -19
  265. package/dist/react/formfieldgroup/index.js +0 -15
  266. package/dist/react/formfieldwrapper/index.d.ts +16 -8
  267. package/dist/react/formfieldwrapper/index.js +0 -4
  268. package/dist/react/icon/index.d.ts +16 -41
  269. package/dist/react/icon/index.js +0 -39
  270. package/dist/react/iconprovider/index.d.ts +14 -24
  271. package/dist/react/iconprovider/index.js +0 -23
  272. package/dist/react/illustration/index.d.ts +16 -32
  273. package/dist/react/illustration/index.js +0 -30
  274. package/dist/react/illustrationprovider/index.d.ts +14 -24
  275. package/dist/react/illustrationprovider/index.js +0 -23
  276. package/dist/react/input/index.d.ts +21 -16
  277. package/dist/react/input/index.js +0 -11
  278. package/dist/react/inputchip/index.d.ts +19 -13
  279. package/dist/react/inputchip/index.js +0 -7
  280. package/dist/react/link/index.d.ts +18 -12
  281. package/dist/react/link/index.js +1 -9
  282. package/dist/react/linkbutton/index.d.ts +19 -12
  283. package/dist/react/linkbutton/index.js +1 -8
  284. package/dist/react/linksimple/index.d.ts +17 -10
  285. package/dist/react/linksimple/index.js +0 -7
  286. package/dist/react/list/index.d.ts +17 -7
  287. package/dist/react/list/index.js +0 -5
  288. package/dist/react/listbox/index.d.ts +21 -16
  289. package/dist/react/listbox/index.js +1 -11
  290. package/dist/react/listheader/index.d.ts +14 -6
  291. package/dist/react/listheader/index.js +0 -3
  292. package/dist/react/listitem/index.d.ts +20 -18
  293. package/dist/react/listitem/index.js +0 -13
  294. package/dist/react/marker/index.d.ts +15 -16
  295. package/dist/react/marker/index.js +0 -15
  296. package/dist/react/menubar/index.d.ts +12 -19
  297. package/dist/react/menubar/index.js +0 -19
  298. package/dist/react/menuitem/index.d.ts +18 -19
  299. package/dist/react/menuitem/index.js +1 -15
  300. package/dist/react/menuitemcheckbox/index.d.ts +19 -30
  301. package/dist/react/menuitemcheckbox/index.js +1 -25
  302. package/dist/react/menuitemradio/index.d.ts +18 -31
  303. package/dist/react/menuitemradio/index.js +1 -26
  304. package/dist/react/menupopover/index.d.ts +16 -38
  305. package/dist/react/menupopover/index.js +0 -34
  306. package/dist/react/menusection/index.d.ts +16 -12
  307. package/dist/react/menusection/index.js +0 -8
  308. package/dist/react/navmenuitem/index.d.ts +19 -16
  309. package/dist/react/navmenuitem/index.js +3 -12
  310. package/dist/react/optgroup/index.d.ts +17 -7
  311. package/dist/react/optgroup/index.js +1 -3
  312. package/dist/react/option/index.d.ts +17 -19
  313. package/dist/react/option/index.js +1 -15
  314. package/dist/react/password/index.d.ts +18 -17
  315. package/dist/react/password/index.js +0 -11
  316. package/dist/react/popover/index.d.ts +20 -52
  317. package/dist/react/popover/index.js +1 -47
  318. package/dist/react/presence/index.d.ts +17 -10
  319. package/dist/react/presence/index.js +1 -7
  320. package/dist/react/progressbar/index.d.ts +17 -13
  321. package/dist/react/progressbar/index.js +0 -9
  322. package/dist/react/progressspinner/index.d.ts +14 -19
  323. package/dist/react/progressspinner/index.js +0 -17
  324. package/dist/react/radio/index.d.ts +19 -41
  325. package/dist/react/radio/index.js +1 -37
  326. package/dist/react/radiogroup/index.d.ts +12 -5
  327. package/dist/react/radiogroup/index.js +0 -4
  328. package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
  329. package/dist/react/responsivesettingsprovider/index.js +0 -29
  330. package/dist/react/screenreaderannouncer/index.d.ts +12 -51
  331. package/dist/react/screenreaderannouncer/index.js +0 -51
  332. package/dist/react/searchfield/index.d.ts +16 -24
  333. package/dist/react/searchfield/index.js +0 -20
  334. package/dist/react/searchpopover/index.d.ts +16 -20
  335. package/dist/react/searchpopover/index.js +0 -16
  336. package/dist/react/select/index.d.ts +23 -19
  337. package/dist/react/select/index.js +1 -14
  338. package/dist/react/selectlistbox/index.d.ts +12 -8
  339. package/dist/react/selectlistbox/index.js +0 -7
  340. package/dist/react/sidenavigation/index.d.ts +21 -41
  341. package/dist/react/sidenavigation/index.js +1 -35
  342. package/dist/react/skeleton/index.d.ts +14 -15
  343. package/dist/react/skeleton/index.js +0 -13
  344. package/dist/react/slider/index.d.ts +17 -15
  345. package/dist/react/slider/index.js +0 -11
  346. package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
  347. package/dist/react/spatialnavigationprovider/index.js +1 -214
  348. package/dist/react/spinner/index.d.ts +15 -27
  349. package/dist/react/spinner/index.js +0 -25
  350. package/dist/react/staticcheckbox/index.d.ts +16 -21
  351. package/dist/react/staticcheckbox/index.js +0 -17
  352. package/dist/react/staticchip/index.d.ts +17 -8
  353. package/dist/react/staticchip/index.js +0 -5
  354. package/dist/react/staticradio/index.d.ts +15 -19
  355. package/dist/react/staticradio/index.js +0 -16
  356. package/dist/react/statictoggle/index.d.ts +16 -21
  357. package/dist/react/statictoggle/index.js +0 -17
  358. package/dist/react/stepper/index.d.ts +13 -5
  359. package/dist/react/stepper/index.js +0 -3
  360. package/dist/react/stepperconnector/index.d.ts +13 -6
  361. package/dist/react/stepperconnector/index.js +0 -4
  362. package/dist/react/stepperitem/index.d.ts +16 -14
  363. package/dist/react/stepperitem/index.js +1 -10
  364. package/dist/react/tab/index.d.ts +20 -23
  365. package/dist/react/tab/index.js +1 -16
  366. package/dist/react/tablist/index.d.ts +18 -30
  367. package/dist/react/tablist/index.js +0 -24
  368. package/dist/react/text/index.d.ts +12 -13
  369. package/dist/react/text/index.js +0 -12
  370. package/dist/react/textarea/index.d.ts +17 -39
  371. package/dist/react/textarea/index.js +0 -34
  372. package/dist/react/themeprovider/index.d.ts +13 -27
  373. package/dist/react/themeprovider/index.js +0 -25
  374. package/dist/react/timepicker/index.d.ts +17 -19
  375. package/dist/react/timepicker/index.js +0 -14
  376. package/dist/react/toast/index.d.ts +20 -12
  377. package/dist/react/toast/index.js +1 -7
  378. package/dist/react/toggle/index.d.ts +18 -24
  379. package/dist/react/toggle/index.js +1 -21
  380. package/dist/react/toggletip/index.d.ts +18 -28
  381. package/dist/react/toggletip/index.js +1 -24
  382. package/dist/react/tooltip/index.d.ts +16 -16
  383. package/dist/react/tooltip/index.js +0 -13
  384. package/dist/react/typewriter/index.d.ts +18 -34
  385. package/dist/react/typewriter/index.js +1 -31
  386. package/dist/react/verticaltablist/index.d.ts +17 -30
  387. package/dist/react/verticaltablist/index.js +0 -26
  388. package/dist/react/virtualizedlist/index.d.ts +16 -58
  389. package/dist/react/virtualizedlist/index.js +0 -55
  390. package/package.json +1 -1
@@ -3,30 +3,35 @@ import type Option from '../option';
3
3
  import { Component } from '../../models';
4
4
  declare const ListBox_base: import("../../utils/mixins/index.types").Constructor<Component & import("../../utils/mixins/ListNavigationMixin").ListNavigationMixinInterface & import("../../utils/mixins/KeyToActionMixin").KeyToActionInterface & import("../../utils/mixins/KeyDownHandledMixin").KeyDownHandledMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/lifecycle/CaptureDestroyEventForChildElement").CaptureDestroyEventForChildElementInterface> & typeof Component;
5
5
  /**
6
- * listbox component presents a list of options and allows a user to select one or more of them.
7
- *
8
- * When `multiple` is enabled, clicking/pressing Enter/Space on an option toggles its selection
9
- * instead of replacing the current selection.
10
- *
11
- * Notes:
12
- * - This is a standalone listbox component. Select has its own mdc-selectlistbox component.
13
- * - this component has name and value attributes and also emits change event,
14
- * but it is not a form control (yet).
15
- *
6
+ * The listbox presents a list of `mdc-option` elements (optionally grouped by `mdc-optgroup`) and lets the user pick one option (default) or multiple options (`multiple`). Clicking an option, or pressing `Enter` / `Space` while it is focused, toggles selection in multi mode and replaces the selection in single mode.
7
+ *
8
+ * The listbox emits a `change` event whenever the selection changes, with `value` (the most recently selected option's `value`) and `selectedValues` (all currently selected `value`s) in the event detail. It is not yet a form control — wire its `value` into a form manually if form submission is needed.
9
+ *
10
+ * **When to use**
11
+ *
12
+ * - Use `mdc-listbox` to present a list of options where the user must pick one (single select) or several (`multiple`) — for example a side-panel filter list, a settings picker, or a stand-alone option group.
13
+ * - Use it when the WAI-ARIA listbox pattern (focus on selected option on entry, no looping, `aria-multiselectable` for multi) is the right semantic fit.
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Use `mdc-select` (with `mdc-selectlistbox` inside) for a form-control select that opens a popover — the standalone `mdc-listbox` is the visible-options-only variant.
18
+ * - Use `mdc-menupopover` for application menus (commands), not for selection.
19
+ * - Use `mdc-list` with `mdc-listitem` for a navigable list that does not have selection semantics.
20
+ *
21
+ * @tagname mdc-listbox
22
+ *
16
23
  * @dependency mdc-list
17
24
  * @dependency mdc-icon
18
25
  * @dependency mdc-text
19
26
  * @dependency mdc-option
20
27
  * @dependency mdc-optgroup
21
- *
22
- * @tagname mdc-listbox
23
- *
28
+ *
24
29
  * @cssproperty --mdc-listbox-max-height - max height of the listbox
25
- *
30
+ *
26
31
  * @slot default - This is a default/unnamed slot, where options and optgroups are placed
27
- *
32
+ *
28
33
  * @csspart container - The container of the listbox
29
- *
34
+ *
30
35
  * @event change - (React: onChange) This event is emitted when the selected item changed
31
36
  */
32
37
  declare class ListBox extends ListBox_base {
@@ -18,15 +18,7 @@ import { Component } from '../../models';
18
18
  import { ElementStore } from '../../utils/controllers/ElementStore';
19
19
  import styles from './listbox.styles';
20
20
  /**
21
- * listbox component presents a list of options and allows a user to select one or more of them.
22
- *
23
- * When `multiple` is enabled, clicking/pressing Enter/Space on an option toggles its selection
24
- * instead of replacing the current selection.
25
- *
26
- * Notes:
27
- * - This is a standalone listbox component. Select has its own mdc-selectlistbox component.
28
- * - this component has name and value attributes and also emits change event,
29
- * but it is not a form control (yet).
21
+ * @tagname mdc-listbox
30
22
  *
31
23
  * @dependency mdc-list
32
24
  * @dependency mdc-icon
@@ -34,8 +26,6 @@ import styles from './listbox.styles';
34
26
  * @dependency mdc-option
35
27
  * @dependency mdc-optgroup
36
28
  *
37
- * @tagname mdc-listbox
38
- *
39
29
  * @cssproperty --mdc-listbox-max-height - max height of the listbox
40
30
  *
41
31
  * @slot default - This is a default/unnamed slot, where options and optgroups are placed
@@ -2,17 +2,25 @@ import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import type { IconNames } from '../icon/icon.types';
4
4
  /**
5
- * Listheader component is used to display a header in a list.
6
- * It can include icons before and after the header text, and allows for additional content via slots.
7
- *
5
+ * The listheader is a header row rendered above the items of an `mdc-list` (via the list's `list-header` slot). It displays optional prefix and postfix icons and a header text, plus a default slot for actionable content (buttons, links) aligned to the trailing end. The header itself is not interactive — interactivity comes only from elements placed in the slot.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-listheader` (in the `list-header` slot of an `mdc-list`) to label a list with a heading, an optional leading icon, and optional trailing actions.
10
+ *
11
+ * **When not to use**
12
+ *
13
+ * - Do not use `mdc-listheader` as an item inside the list's default slot — it is designed for the `list-header` slot only.
14
+ * - Use a plain section title outside the list when no leading icon, trailing icon, or trailing action is needed.
15
+ *
8
16
  * @tagname mdc-listheader
9
- *
17
+ *
10
18
  * @slot default - to pass in actionable content like buttons or links
11
- *
19
+ *
12
20
  * @cssproperty --mdc-listheader-height - height of the header
13
21
  * @cssproperty --mdc-listheader-padding - padding around the header content
14
22
  * @cssproperty --mdc-listheader-gap - gap between content
15
- *
23
+ *
16
24
  * @csspart header-text - The header text of list header
17
25
  * @csspart postfix-icon - The postfix icon of list header
18
26
  * @csspart prefix-icon - The prefix icon of list header
@@ -12,9 +12,6 @@ import { property } from 'lit/decorators.js';
12
12
  import { Component } from '../../models';
13
13
  import styles from './listheader.styles';
14
14
  /**
15
- * Listheader component is used to display a header in a list.
16
- * It can include icons before and after the header text, and allows for additional content via slots.
17
- *
18
15
  * @tagname mdc-listheader
19
16
  *
20
17
  * @slot default - to pass in actionable content like buttons or links
@@ -4,23 +4,25 @@ import type { TextType } from '../text/text.types';
4
4
  import { ListItemVariants } from './listitem.types';
5
5
  declare const ListItem_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyDownHandledMixin").KeyDownHandledMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyToActionMixin").KeyToActionInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/TabIndexMixin").TabIndexMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/lifecycle/LifeCycleMixin").LifeCycleMixinInterface> & typeof Component;
6
6
  /**
7
- * mdc-listitem component is used to display a label with different types of controls.
8
- * There can be three types of controls, a radio button, a checkbox on the
9
- * leading side and a toggle on the trailing side.
10
- * The list item can contain an avatar on the leading side and a badge on the trailing side.
11
- * Additionally, the list item can contain a side header and a subline text.
12
- *
13
- * The leading and trailing slots can be used to display controls and text. <br/>
14
- * Based on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>
15
- * Please use mdc-list as a parent element even when there is only listitem for a11y purpose.
16
- *
17
- * **Note**: If a listitem contains a long text, it is recommended to create a tooltip for the listitem that displays the full text on hover.
18
- * Consumers need to add a unique ID to this listitem 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 listitem using the `triggerID` attribute.
19
- *
7
+ * The listitem is a single row inside an `mdc-list`. It supports a leading control (radio, checkbox, avatar, icon), a trailing control (toggle, badge, icon), three leading text slots (primary / secondary / tertiary label), and two trailing text slots (side header, subline). The listitem is focusable, activates on click, `Enter`, or `Space` (dispatching a `click` event), and exposes life-cycle events (`enabled`, `disabled`, `created`, `destroyed`) that the surrounding list uses to track its items.
8
+ *
9
+ * Three visual variants are available: `full-width` (default), `rectangle`, and `pill`. The `active` flag is a visual-only state that bolds the primary label; the canonical active / selected state belongs to the parent list pattern.
10
+ *
11
+ * **When to use**
12
+ *
13
+ * - Use `mdc-listitem` as a row inside an `mdc-list`. Even a single listitem should be wrapped in `mdc-list` for screen-reader semantics.
14
+ * - Use it whenever a row needs to combine an icon / avatar / control with a label and optional trailing content.
15
+ *
16
+ * **When not to use**
17
+ *
18
+ * - Use `mdc-option` inside `mdc-listbox` / `mdc-selectlistbox` when the row represents a selectable option in a listbox pattern.
19
+ * - Use `mdc-menuitem`, `mdc-menuitemcheckbox`, or `mdc-menuitemradio` inside menu patterns rather than `mdc-listitem`.
20
+ * - Use `mdc-navmenuitem` when the row is a navigation entry inside `mdc-sidenavigation`.
21
+ *
20
22
  * @tagname mdc-listitem
21
- *
23
+ *
22
24
  * @dependency mdc-text
23
- *
25
+ *
24
26
  * @slot leading-controls - slot for list item controls to appear of leading end.
25
27
  * @slot leading-text-primary-label - slot for list item primary label.
26
28
  * @slot leading-text-secondary-label - slot for list item secondary label.
@@ -30,7 +32,7 @@ declare const ListItem_base: import("../../utils/mixins/index.types").Constructo
30
32
  * @slot trailing-controls - slot for list item controls to appear of trailing end.
31
33
  * @slot content - content slot can be used to override the content completely. Be aware that
32
34
  * this will override the default content of the list item.
33
- *
35
+ *
34
36
  * @cssproperty --mdc-listitem-default-background-color - Allows customization of the default background color.
35
37
  * @cssproperty --mdc-listitem-background-color-hover - Allows customization of the background color on hover.
36
38
  * @cssproperty --mdc-listitem-background-color-active - Allows customization of the background color when pressed.
@@ -45,12 +47,12 @@ declare const ListItem_base: import("../../utils/mixins/index.types").Constructo
45
47
  * @cssproperty --mdc-listitem-cursor - Allows customization of the cursor.
46
48
  * @cssproperty --mdc-listitem-width - Allows customization of the width of the list item.
47
49
  * @cssproperty --mdc-listitem-height - Allows customization of the height of the list item.
48
- *
50
+ *
49
51
  * @csspart leading - Allows customization of the leading part.
50
52
  * @csspart leading-text - Allows customization of the leading text part.
51
53
  * @csspart trailing - Allows customization of the trailing part.
52
54
  * @csspart trailing-text - Allows customization of the trailing text part.
53
- *
55
+ *
54
56
  * @event click - (React: onClick) This event is dispatched when the listitem is clicked.
55
57
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the listitem.
56
58
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the listitem.
@@ -21,19 +21,6 @@ import { DEFAULTS } from './listitem.constants';
21
21
  import { ListItemEventManager } from './listitem.events';
22
22
  import styles from './listitem.styles';
23
23
  /**
24
- * mdc-listitem component is used to display a label with different types of controls.
25
- * There can be three types of controls, a radio button, a checkbox on the
26
- * leading side and a toggle on the trailing side.
27
- * The list item can contain an avatar on the leading side and a badge on the trailing side.
28
- * Additionally, the list item can contain a side header and a subline text.
29
- *
30
- * The leading and trailing slots can be used to display controls and text. <br/>
31
- * Based on the leading/trailing slot, the position of the controls and text can be adjusted. <br/>
32
- * Please use mdc-list as a parent element even when there is only listitem for a11y purpose.
33
- *
34
- * **Note**: If a listitem contains a long text, it is recommended to create a tooltip for the listitem that displays the full text on hover.
35
- * Consumers need to add a unique ID to this listitem 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 listitem using the `triggerID` attribute.
36
- *
37
24
  * @tagname mdc-listitem
38
25
  *
39
26
  * @dependency mdc-text
@@ -2,23 +2,22 @@ import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import type { MarkerVariants } from './marker.types';
4
4
  /**
5
- * The Marker component displays a vertical line (0.25rem wide) used to draw attention to specific content
6
- * or signify important information. It provides visual emphasis through color and pattern variations.
7
- *
8
- * Markers are commonly used alongside list items, cards, or content blocks to indicate status,
9
- * priority, or categorization.
10
- *
11
- * ## When to use
12
- * Use markers to highlight important content, indicate status or priority levels, or provide
13
- * visual categorization in lists and layouts.
14
- *
15
- * ## Accessibility
16
- * - Markers are purely decorative and should not convey information solely through color
17
- * - Always pair markers with text labels or other indicators to convey meaning
18
- * - Ensure sufficient color contrast for visibility
19
- *
5
+ * The marker is a thin vertical line (0.25rem wide by default) used to draw the eye to a piece of content — typically rendered alongside a list item, card, or content block to indicate status, priority, or categorisation. Two visual variants are available: `solid` (a single coloured line) and `striped` (a line with diagonal stripes for a high-attention variant).
6
+ *
7
+ * The marker is purely presentational; its meaning must be conveyed elsewhere (label, status text, icon) because it has no accessible name.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-marker` to draw attention to important content, signal priority, or visually categorise items inside a layout.
12
+ * - Use it as a decorative companion to a list item, card, or content block — never as the sole signal for the information.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Use a label, status text, or an icon when the meaning must be announced to screen readers — the marker alone is invisible to assistive technology.
17
+ * - Use `mdc-divider` for separating content sections rather than highlighting a single block.
18
+ *
20
19
  * @tagname mdc-marker
21
- *
20
+ *
22
21
  * @cssproperty --mdc-marker-solid-background-color - Background color for solid variant markers.
23
22
  * @cssproperty --mdc-marker-striped-color - Stripe color for striped variant markers.
24
23
  * @cssproperty --mdc-marker-striped-background-color - Background color for striped variant markers.
@@ -12,21 +12,6 @@ import { Component } from '../../models';
12
12
  import styles from './marker.styles';
13
13
  import { MARKER_VARIANTS } from './marker.constants';
14
14
  /**
15
- * The Marker component displays a vertical line (0.25rem wide) used to draw attention to specific content
16
- * or signify important information. It provides visual emphasis through color and pattern variations.
17
- *
18
- * Markers are commonly used alongside list items, cards, or content blocks to indicate status,
19
- * priority, or categorization.
20
- *
21
- * ## When to use
22
- * Use markers to highlight important content, indicate status or priority levels, or provide
23
- * visual categorization in lists and layouts.
24
- *
25
- * ## Accessibility
26
- * - Markers are purely decorative and should not convey information solely through color
27
- * - Always pair markers with text labels or other indicators to convey meaning
28
- * - Ensure sufficient color contrast for visibility
29
- *
30
15
  * @tagname mdc-marker
31
16
  *
32
17
  * @cssproperty --mdc-marker-solid-background-color - Background color for solid variant markers.
@@ -3,25 +3,18 @@ import { Component } from '../../models';
3
3
  import { DepthManager } from '../../utils/controllers/DepthManager';
4
4
  declare const MenuBar_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyDownHandledMixin").KeyDownHandledMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/KeyToActionMixin").KeyToActionInterface> & typeof Component;
5
5
  /**
6
- * Menubar is a navigational menu component that provides a vertical fixed list of menu items,
7
- * with support for nested submenus and keyboard navigation. It serves as a container
8
- * for menu items and manages their interaction patterns, including:
9
- * - Keyboard navigation (Arrow keys, Home, End)
10
- * - Menu item activation (Enter/Space)
11
- * - Submenu toggling (Right/Left arrow keys)
12
- * - Focus management
13
- * - Integration with MenuPopover for nested menus
14
- *
15
- * A menubar will contain a set of menu items and their associated popovers.
16
- * Each menu item can have a popover for nested menus.
17
- *
18
- * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
19
- * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
20
- *
21
- * **Note:** A menubar contains three types of menu items, including menuitem, menuitemradio and menuitemcheckbox. These menu items may optionally be nested in one or more group containers. Groups or items may optionally by separated with separator elements.
22
- *
23
- * `mdc-menubar` contains a group that wraps all its chilren passed within the default slot. This has been added to ensure the right accessibility behavior while using screen readers.
24
- *
6
+ * `mdc-menubar` is a navigational menu container that holds a fixed list of menu items and manages keyboard navigation, focus, and the opening of nested submenus. It wraps its children in an internal group so screen readers announce the menu structure correctly.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-menubar` when grouping a set of `mdc-menuitem`, `mdc-menuitemcheckbox`, or `mdc-menuitemradio` entries that may also expose nested submenus via `mdc-menupopover`.
11
+ * - Use it as the root for a persistent menu region (for example, the navigation tree inside `mdc-sidenavigation`).
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Do not use `mdc-menubar` for a single overlay menu opened from a trigger button — use `mdc-menupopover` directly.
16
+ * - Do not use it for selection lists where users pick a value to submit with a form — use `mdc-listbox` with `mdc-option` (typically inside `mdc-select`).
17
+ *
25
18
  * @tagname mdc-menubar
26
19
  * @slot default - Contains the menu items and their associated popovers
27
20
  */
@@ -21,25 +21,6 @@ import { KeyDownHandledMixin } from '../../utils/mixins/KeyDownHandledMixin';
21
21
  import { DEFAULTS, TAG_NAME as MENUBAR_TAGNAME } from './menubar.constants';
22
22
  import styles from './menubar.styles';
23
23
  /**
24
- * Menubar is a navigational menu component that provides a vertical fixed list of menu items,
25
- * with support for nested submenus and keyboard navigation. It serves as a container
26
- * for menu items and manages their interaction patterns, including:
27
- * - Keyboard navigation (Arrow keys, Home, End)
28
- * - Menu item activation (Enter/Space)
29
- * - Submenu toggling (Right/Left arrow keys)
30
- * - Focus management
31
- * - Integration with MenuPopover for nested menus
32
- *
33
- * A menubar will contain a set of menu items and their associated popovers.
34
- * Each menu item can have a popover for nested menus.
35
- *
36
- * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
37
- * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
38
- *
39
- * **Note:** A menubar contains three types of menu items, including menuitem, menuitemradio and menuitemcheckbox. These menu items may optionally be nested in one or more group containers. Groups or items may optionally by separated with separator elements.
40
- *
41
- * `mdc-menubar` contains a group that wraps all its chilren passed within the default slot. This has been added to ensure the right accessibility behavior while using screen readers.
42
- *
43
24
  * @tagname mdc-menubar
44
25
  * @slot default - Contains the menu items and their associated popovers
45
26
  */
@@ -254,7 +235,8 @@ class MenuBar extends KeyDownHandledMixin(KeyToActionMixin(Component)) {
254
235
  return !!element.closest(MENUPOPOVER_TAGNAME) && element.role === ROLE.MENUITEM;
255
236
  }
256
237
  async closeAllMenuPopovers() {
257
- const popovers = this.depthManager.popUntil(item => this.contains(item));
238
+ const allPopovers = this.getAllPopovers();
239
+ const popovers = this.depthManager.popUntil(item => allPopovers.includes(item));
258
240
  await Promise.all(popovers.map(popover => popover.updateComplete));
259
241
  }
260
242
  async crossMenubarNavigationOnLeft(element) {
@@ -2,25 +2,24 @@ import type { CSSResult } from 'lit';
2
2
  import ListItem from '../listitem/listitem.component';
3
3
  import type { ArrowPositions, ArrowDirections } from './menuitem.types';
4
4
  /**
5
- * menuitem component is inherited by listitem component with the role set `menuitem`.<br/>
6
- * A menu item can contain an icon on the leading or trailing side.
7
- *
8
- * The leading and trailing slots can be used to display controls and text.<br/>
9
- * Based on the leading/trailing slot, the position of the controls and text can be adjusted.
10
- *
11
- * Please use element with role=menu as a parent element even when there is only menuitem for a11y purpose.
12
- * For example mdc-menupopover or mdc-menubar.
13
- *
14
- * Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.
15
- *
16
- * **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.
17
- * Consumers need to add a unique ID to this menuitem 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 menuitem using the `triggerID` attribute.
18
- *
5
+ * `mdc-menuitem` is an actionable entry placed inside a `mdc-menubar` or `mdc-menupopover`. It exposes leading and trailing slots for controls and text, supports an optional arrow indicator for items that open submenus, and emits a click event when activated by mouse, `Enter`, or `Space`.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-menuitem` for the individual entries inside a menubar or menu popover that perform an action or open a submenu.
10
+ * - Use it as the trigger element for a nested `mdc-menupopover` by giving it a unique `id` and pointing the popover's `triggerid` at it.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Do not use `mdc-menuitem` for toggleable state use `mdc-menuitemcheckbox` or `mdc-menuitemradio`.
15
+ * - Do not use it inside `mdc-listbox`/`mdc-select` (selection lists) — use `mdc-option` there.
16
+ * - Do not use it as a stand-alone clickable row outside of a `menu`/`menubar`/`menupopover` context; use `mdc-listitem` for generic lists.
17
+ *
18
+ * @tagname mdc-menuitem
19
+ *
19
20
  * @dependency mdc-text
20
21
  * @dependency mdc-icon
21
- *
22
- * @tagname mdc-menuitem
23
- *
22
+ *
24
23
  * @slot leading-controls - slot for menu item controls to appear of leading end.
25
24
  * @slot leading-text-primary-label - slot for menu item primary label.
26
25
  * @slot leading-text-secondary-label - slot for menu item secondary label.
@@ -28,7 +27,7 @@ import type { ArrowPositions, ArrowDirections } from './menuitem.types';
28
27
  * @slot trailing-text-side-header - slot for menu item side header text.
29
28
  * @slot trailing-text-subline - slot for menu item subline text.
30
29
  * @slot trailing-controls - slot for menu item controls to appear of trailing end.
31
- *
30
+ *
32
31
  * @event click - (React: onClick) This event is dispatched when the menuitem is clicked.
33
32
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the menuitem.
34
33
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the menuitem.
@@ -37,7 +36,7 @@ import type { ArrowPositions, ArrowDirections } from './menuitem.types';
37
36
  * @event disabled - (React: onDisabled) This event is dispatched after the menuitem is disabled
38
37
  * @event created - (React: onCreated) This event is dispatched after the menuitem is created (added to the DOM)
39
38
  * @event destroyed - (React: onDestroyed) This event is dispatched after the menuitem is destroyed (removed from the DOM)
40
- *
39
+ *
41
40
  * @csspart leading - Allows customization of the leading part.
42
41
  * @csspart leading-arrow - Allows customization of leading arrow icon.
43
42
  * @csspart leading-text - Allows customization of the leading text part.
@@ -16,25 +16,11 @@ import { ACTIONS } from '../../utils/mixins/KeyToActionMixin';
16
16
  import { ARROW_ICONS, ARROW_DIRECTIONS, ARROW_POSITIONS } from './menuitem.constants';
17
17
  import styles from './menuitem.styles';
18
18
  /**
19
- * menuitem component is inherited by listitem component with the role set `menuitem`.<br/>
20
- * A menu item can contain an icon on the leading or trailing side.
21
- *
22
- * The leading and trailing slots can be used to display controls and text.<br/>
23
- * Based on the leading/trailing slot, the position of the controls and text can be adjusted.
24
- *
25
- * Please use element with role=menu as a parent element even when there is only menuitem for a11y purpose.
26
- * For example mdc-menupopover or mdc-menubar.
27
- *
28
- * Menu item has `name` and `value` attribute that can be used to identify the menu item when it is selected.
29
- *
30
- * **Note**: If a menuitem contains a long text, it is recommended to create a tooltip for the menuitem that displays the full text on hover.
31
- * Consumers need to add a unique ID to this menuitem 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 menuitem using the `triggerID` attribute.
19
+ * @tagname mdc-menuitem
32
20
  *
33
21
  * @dependency mdc-text
34
22
  * @dependency mdc-icon
35
23
  *
36
- * @tagname mdc-menuitem
37
- *
38
24
  * @slot leading-controls - slot for menu item controls to appear of leading end.
39
25
  * @slot leading-text-primary-label - slot for menu item primary label.
40
26
  * @slot leading-text-secondary-label - slot for menu item secondary label.
@@ -3,36 +3,25 @@ import MenuItem from '../menuitem/menuitem.component';
3
3
  import type { Indicator } from './menuitemcheckbox.types';
4
4
  declare const MenuItemCheckbox_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/ControlTypeMixin").ControlTypeMixinInterface> & typeof MenuItem;
5
5
  /**
6
- * A menuitemcheckbox component is a checkable menuitem.
7
- * There should be no focusable descendants inside this menuitemcheckbox component.
8
- *
9
- * The `checked` attribute indicates whether the menuitemcheckbox is checked or not.
10
- *
11
- * Menu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.
12
- *
13
- * The `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.
14
- * By default, the `indicator` is set to <b>checkbox</b>.<br/>
15
- *
16
- * The checkbox will always be positioned on the leading side of the menuitem label and
17
- * the toggle and checkmark will always be positioned on the trailing side.
18
- *
19
- * The checkbox will have the possible states of `true` or `false`.
20
- * If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,
21
- * then the checkmark will be displayed. if not, then no indicator will be displayed.
22
- *
23
- * The forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.
24
- * It is intended to be used for customised menu items where the indicator is implemented differently.
25
- * For example, you can use a custom icon or a different visual element to indicate the state of the menu item.
26
- * Make sure the new indicator is accessible.
27
- *
28
- * If you want only one item in a group to be checked, consider using menuitemradio component.
29
- *
6
+ * `mdc-menuitemcheckbox` is a checkable menu item used inside a `mdc-menupopover`, `mdc-menubar`, or `mdc-menusection`. Its checked state can be toggled independently of other items in the same group and is reflected to assistive technology through `aria-checked`. Visual feedback is provided by a checkbox (leading), toggle (trailing), checkmark (trailing), or no indicator at all.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-menuitemcheckbox` for menu entries that toggle an independent on/off setting.
11
+ * - Use it when several items in the same menu can be checked at the same time.
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Use `mdc-menuitemradio` when only one item in a group may be selected.
16
+ * - Use `mdc-menuitem` for actions that do not have a checked state.
17
+ * - Do not use `mdc-checkbox` directly inside a menu; the dedicated `mdc-menuitemcheckbox` provides the correct role and keyboard behaviour.
18
+ *
19
+ * @tagname mdc-menuitemcheckbox
20
+ *
30
21
  * @dependency mdc-staticcheckbox
31
22
  * @dependency mdc-statictoggle
32
23
  * @dependency mdc-icon
33
- *
34
- * @tagname mdc-menuitemcheckbox
35
- *
24
+ *
36
25
  * @slot leading-controls - slot for menu item checkbox controls to appear of leading end.
37
26
  * @slot leading-text-primary-label - slot for menu item checkbox primary label.
38
27
  * @slot leading-text-secondary-label - slot for menu item checkbox secondary label.
@@ -40,13 +29,13 @@ declare const MenuItemCheckbox_base: import("../../utils/mixins/index.types").Co
40
29
  * @slot trailing-text-side-header - slot for menu item checkbox side header text.
41
30
  * @slot trailing-text-subline - slot for menu item checkbox subline text.
42
31
  * @slot trailing-controls - slot for menu item checkbox controls to appear of trailing end.
43
- *
32
+ *
44
33
  * @event change - (React: onChange) This event is dispatched when the menuitemcheckbox changes.
45
34
  * @event click - (React: onClick) This event is dispatched when the menuitemcheckbox is clicked.
46
35
  * @event focus - (React: onFocus) This event is dispatched when the menuitemcheckbox receives focus.
47
- *
36
+ *
48
37
  * @cssproperty --mdc-listitem-padding-left-and-right - Controls the padding on the left and right of the menuitemcheckbox.
49
- *
38
+ *
50
39
  * @csspart checkmark-icon - Allows customization of the checkmark icon.
51
40
  * @csspart leading - Allows customization of the leading part.
52
41
  * @csspart leading-arrow - Allows customization of leading arrow icon.
@@ -18,36 +18,12 @@ import { ControlTypeMixin } from '../../utils/mixins/ControlTypeMixin';
18
18
  import { DEFAULTS, INDICATOR } from './menuitemcheckbox.constants';
19
19
  import styles from './menuitemcheckbox.styles';
20
20
  /**
21
- * A menuitemcheckbox component is a checkable menuitem.
22
- * There should be no focusable descendants inside this menuitemcheckbox component.
23
- *
24
- * The `checked` attribute indicates whether the menuitemcheckbox is checked or not.
25
- *
26
- * Menu item checkbox has `name` and `value` attribute that can be used to identify the menu item when it is selected.
27
- *
28
- * The `indicator` attribute is used to differentiate between <b>checkbox</b>, <b>checkmark</b>, <b>toggle</b> and <b>none</b>.
29
- * By default, the `indicator` is set to <b>checkbox</b>.<br/>
30
- *
31
- * The checkbox will always be positioned on the leading side of the menuitem label and
32
- * the toggle and checkmark will always be positioned on the trailing side.
33
- *
34
- * The checkbox will have the possible states of `true` or `false`.
35
- * If the indicator is set to <b>checkmark</b> and if the `checked` attribute is set to `true`,
36
- * then the checkmark will be displayed. if not, then no indicator will be displayed.
37
- *
38
- * The forth options for the `indicator` is <b>none</b>, which will not display any indicator at all.
39
- * It is intended to be used for customised menu items where the indicator is implemented differently.
40
- * For example, you can use a custom icon or a different visual element to indicate the state of the menu item.
41
- * Make sure the new indicator is accessible.
42
- *
43
- * If you want only one item in a group to be checked, consider using menuitemradio component.
21
+ * @tagname mdc-menuitemcheckbox
44
22
  *
45
23
  * @dependency mdc-staticcheckbox
46
24
  * @dependency mdc-statictoggle
47
25
  * @dependency mdc-icon
48
26
  *
49
- * @tagname mdc-menuitemcheckbox
50
- *
51
27
  * @slot leading-controls - slot for menu item checkbox controls to appear of leading end.
52
28
  * @slot leading-text-primary-label - slot for menu item checkbox primary label.
53
29
  * @slot leading-text-secondary-label - slot for menu item checkbox secondary label.