@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
@@ -4,52 +4,37 @@ import { StackChange, type StackedOverlayComponent } from '../../utils/controlle
4
4
  import type { DialogRole, DialogSize, DialogVariant } from './dialog.types';
5
5
  declare const Dialog_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<Component & import("../../utils/mixins/BackdropMixin").BackdropMixinInterface> & import("../../utils/mixins/index.types").Constructor<Component & import("../../utils/mixins/PreventScrollMixin").PreventScrollMixinInterface> & import("../../utils/mixins/index.types").Constructor<Component & import("../../utils/mixins/focus/FocusTrapMixin").FocusTrapClassInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/FooterMixin").FooterMixinInterface> & typeof Component;
6
6
  /**
7
- * Dialog component is a modal dialog that can be used to display information or prompt the user for input.
8
- * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.
9
- * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
10
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
11
- *
12
- * Dialog component have 2 variants: default and promotional.
13
- *
14
- * ## Visibility
15
- *
16
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
17
- * If a `triggerID` is provided, the dialog will manage focus with that element, otherwise it will
18
- * remember the previously focused element before the dialog was opened.
19
- *
20
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
21
- * Use the `visible` property to control the visibility of the dialog.
22
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
23
- * or Escape is pressed).
24
- *
25
- * ## Accessibility
26
- *
27
- * Some attributes have to be explicitly set by the consumer of the component:
28
- *
29
- * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
30
- * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
31
- *
32
- * ## Responsive design
33
- *
34
- * Dialog has few built in logic to prevent content clipping on small screens
35
- *
36
- * - maximum height limited to the viewport height
37
- * - dialog body has `overflow: auto` by default
38
- * - dialog itself also has `overflow: auto`, it activates only when the body can not shrink more
39
- *
40
- *
7
+ * A dialog is a modal surface that interrupts the user to display information, confirm a destructive action, or collect input. It blocks interaction with the rest of the application until it is closed.
8
+ *
9
+ * The dialog is a controlled component: the consumer drives visibility through the `visible` property and listens to the `close` event to react to the user dismissing the dialog. Visibility is not toggled internally.
10
+ *
11
+ * Five sizes are available: `small` (432px), `medium` (656px), `large` (992px), `xlarge` (90% viewport), and `fullscreen` (100% viewport). Two visual variants are available: `default` and `promotional`. When the surrounding `mdc-responsivesettingsprovider` has `forceFullscreenDialog` enabled, every dialog is rendered as `fullscreen` regardless of its `size`.
12
+ *
13
+ * **When to use**
14
+ *
15
+ * - Use `mdc-dialog` to confirm a destructive action (e.g. deleting an item) before it happens.
16
+ * - Use it to collect a short input that should block the underlying flow until completed.
17
+ * - Use it for messages that demand the user's attention and cannot be deferred to a banner or toast.
18
+ *
19
+ * **When not to use**
20
+ *
21
+ * - Use `mdc-announcementdialog` when the surface is a curated marketing/announcement layout with a fixed structure.
22
+ * - Use `mdc-popover` or `mdc-coachmark` for non-modal overlays anchored to a trigger.
23
+ * - Use `mdc-toast` for transient, dismissable notifications that should not block interaction.
24
+ * - Use `mdc-banner` for persistent in-page messages.
25
+ *
26
+ * @tagname mdc-dialog
27
+ *
41
28
  * @dependency mdc-button
42
29
  * @dependency mdc-text
43
- *
44
- * @tagname mdc-dialog
45
- *
30
+ *
46
31
  * @event shown - (React: onShown) Dispatched when the dialog is shown
47
32
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
48
33
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
49
34
  * @event destroyed - (React: onDestroyed) Dispatched when the dialog is destroyed (removed from the DOM)
50
35
  * @event close - (React: onClose) Dispatched when the Close Button is clicked or Escape key is pressed
51
36
  * (this does not hide the dialog)
52
- *
37
+ *
53
38
  * @cssproperty --mdc-dialog-primary-background-color - primary background color of the dialog
54
39
  * @cssproperty --mdc-dialog-border-color - border color of the dialog
55
40
  * @cssproperty --mdc-dialog-header-text-color - text color of the header/title of the dialog
@@ -58,14 +43,14 @@ declare const Dialog_base: import("../../utils/mixins/index.types").Constructor<
58
43
  * @cssproperty --mdc-dialog-width - width of the dialog
59
44
  * @cssproperty --mdc-dialog-height - height of the dialog
60
45
  * @cssproperty --mdc-dialog-backdrop-color - background color of the backdrop (if backdrop is enabled)
61
- *
46
+ *
62
47
  * @csspart body - The body section of the dialog.
63
48
  * @csspart description-text - The description text of the dialog.
64
49
  * @csspart dialog-close-btn - The close button of the dialog.
65
50
  * @csspart header - The header of the dialog.
66
51
  * @csspart header-section - The header section of the dialog.
67
52
  * @csspart header-text - The header text of the dialog.
68
- *
53
+ *
69
54
  * @slot header-prefix - Slot for the dialog header content. This can be used to pass custom header content.
70
55
  * @slot dialog-body - Slot for the dialog body content
71
56
  * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.
@@ -26,45 +26,11 @@ import { DEFAULTS } from './dialog.constants';
26
26
  import { DialogEventManager } from './dialog.events';
27
27
  import styles from './dialog.styles';
28
28
  /**
29
- * Dialog component is a modal dialog that can be used to display information or prompt the user for input.
30
- * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.
31
- * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
32
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
33
- *
34
- * Dialog component have 2 variants: default and promotional.
35
- *
36
- * ## Visibility
37
- *
38
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
39
- * If a `triggerID` is provided, the dialog will manage focus with that element, otherwise it will
40
- * remember the previously focused element before the dialog was opened.
41
- *
42
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
43
- * Use the `visible` property to control the visibility of the dialog.
44
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
45
- * or Escape is pressed).
46
- *
47
- * ## Accessibility
48
- *
49
- * Some attributes have to be explicitly set by the consumer of the component:
50
- *
51
- * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
52
- * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
53
- *
54
- * ## Responsive design
55
- *
56
- * Dialog has few built in logic to prevent content clipping on small screens
57
- *
58
- * - maximum height limited to the viewport height
59
- * - dialog body has `overflow: auto` by default
60
- * - dialog itself also has `overflow: auto`, it activates only when the body can not shrink more
61
- *
29
+ * @tagname mdc-dialog
62
30
  *
63
31
  * @dependency mdc-button
64
32
  * @dependency mdc-text
65
33
  *
66
- * @tagname mdc-dialog
67
- *
68
34
  * @event shown - (React: onShown) Dispatched when the dialog is shown
69
35
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
70
36
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
@@ -3,31 +3,29 @@ import { CSSResult } from 'lit';
3
3
  import { Component } from '../../models';
4
4
  import type { Directions, DividerOrientation, DividerVariant } from './divider.types';
5
5
  /**
6
- * The Divider component provides a visual line to separate and organize content within layouts.
7
- * It supports both horizontal and vertical orientations with solid or gradient styles, and can
8
- * optionally include centered text labels or interactive grabber buttons.
9
- *
10
- * The divider automatically infers its type based on the content in its slot:
11
- * - **Primary**: Simple line with no content
12
- * - **Text**: Horizontal line with centered text label
13
- * - **Grabber Button**: Line with centered interactive button
14
- *
15
- * **Note:**
16
- * - Vertical text dividers are not currently supported.
17
- * - If the slot contains invalid tag names or multiple elements, the divider defaults to the Primary type
18
- * - Use the provided CSS custom properties to customize divider styles
19
- *
20
- * ## When to use
21
- * Use dividers to create visual separation between content sections, list items, or layout regions.
22
- * Add text labels to provide context, or grabber buttons to create resizable panes.
23
- *
24
- * ## Accessibility
25
- * - When using a grabber button, provide `aria-label` to describe its purpose
26
- * - Set `aria-expanded` on the button to indicate the current state of resizable sections
27
- * - Ensure sufficient color contrast for the divider line
28
- *
6
+ * The divider draws a thin separator line between sections of a layout. It supports both horizontal and vertical orientations and two visual variants `solid` (uniform colour) and `gradient` (fades on both ends).
7
+ *
8
+ * The component infers its type from the slotted content:
9
+ *
10
+ * - **Primary** no slotted content; renders just the line.
11
+ * - **Text** a single `mdc-text` child; renders the line with a centred label.
12
+ * - **Grabber Button** — a single `mdc-button` child; renders the line with a centred interactive button (typically used to collapse/expand a resizable pane).
13
+ *
14
+ * If the slot contains multiple elements or unrecognised tag names, the divider falls back to the primary type.
15
+ *
16
+ * **When to use**
17
+ *
18
+ * - Use `mdc-divider` to separate sections of content within a layout, list, or table.
19
+ * - Use a text divider to add a short caption between two visually similar sections.
20
+ * - Use a grabber-button divider to create a resizable boundary between two panes.
21
+ *
22
+ * **When not to use**
23
+ *
24
+ * - Use whitespace, padding, or background-colour groupings when a visible line is not needed — a divider should add meaning, not decoration.
25
+ * - Use `mdc-list` separators rather than nesting dividers inside list items, since lists already render their own dividers.
26
+ *
29
27
  * @tagname mdc-divider
30
- *
28
+ *
31
29
  * @cssproperty --mdc-divider-background-color - Background color of the divider line.
32
30
  * @cssproperty --mdc-divider-width - Width (thickness) of the divider line.
33
31
  * @cssproperty --mdc-divider-horizontal-gradient - Gradient for horizontal dividers.
@@ -41,7 +39,7 @@ import type { Directions, DividerOrientation, DividerVariant } from './divider.t
41
39
  * @cssproperty --mdc-divider-grabber-button-background-color-pressed - Background color of the grabber button in pressed state.
42
40
  * @cssproperty --mdc-divider-grabber-button-border-color - Border color of the grabber button.
43
41
  * @cssproperty --mdc-divider-grabber-button-border-radius - Border radius of the grabber button.
44
- *
42
+ *
45
43
  * @slot - Content for the divider. Use `mdc-text` for text labels or `mdc-button` for grabber buttons.
46
44
  */
47
45
  declare class Divider extends Component {
@@ -13,29 +13,6 @@ import { Component } from '../../models';
13
13
  import { ARROW_ICONS, BUTTON_TAG, DEFAULTS, DIRECTIONS, DIVIDER_ORIENTATION, DIVIDER_VARIANT, TEXT_TAG, } from './divider.constants';
14
14
  import styles from './divider.styles';
15
15
  /**
16
- * The Divider component provides a visual line to separate and organize content within layouts.
17
- * It supports both horizontal and vertical orientations with solid or gradient styles, and can
18
- * optionally include centered text labels or interactive grabber buttons.
19
- *
20
- * The divider automatically infers its type based on the content in its slot:
21
- * - **Primary**: Simple line with no content
22
- * - **Text**: Horizontal line with centered text label
23
- * - **Grabber Button**: Line with centered interactive button
24
- *
25
- * **Note:**
26
- * - Vertical text dividers are not currently supported.
27
- * - If the slot contains invalid tag names or multiple elements, the divider defaults to the Primary type
28
- * - Use the provided CSS custom properties to customize divider styles
29
- *
30
- * ## When to use
31
- * Use dividers to create visual separation between content sections, list items, or layout regions.
32
- * Add text labels to provide context, or grabber buttons to create resizable panes.
33
- *
34
- * ## Accessibility
35
- * - When using a grabber button, provide `aria-label` to describe its purpose
36
- * - Set `aria-expanded` on the button to indicate the current state of resizable sections
37
- * - Ensure sufficient color contrast for the divider line
38
- *
39
16
  * @tagname mdc-divider
40
17
  *
41
18
  * @cssproperty --mdc-divider-background-color - Background color of the divider line.
@@ -1,22 +1,33 @@
1
1
  import { CSSResult, PropertyValues } from 'lit';
2
2
  import Chip from '../chip/chip.component';
3
3
  /**
4
- * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.
5
- * They can be found with lists or tables as quick filters.
6
- *
7
- * This component is built on top of the mdc-chip component.
8
- *
4
+ * The filterchip is a compact, togglable chip used to represent a single filter in a list, table, or search context. Activating the chip flips its `selected` state and the component swaps its leading icon to a checkmark to indicate the active filter.
5
+ *
6
+ * Filterchips are typically rendered in a horizontal row next to a result set; users toggle them on and off to narrow the set.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-filterchip` when each chip toggles a single filter that can be applied or removed independently.
11
+ * - Use it inside a row of filters where the selected state should be visually obvious at a glance.
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Use `mdc-chip` when the chip triggers an action rather than a toggle.
16
+ * - Use `mdc-alertchip` when the chip communicates a status (information, warning, error) rather than a togglable filter.
17
+ * - Use `mdc-staticchip` when the chip is purely decorative and should not be interactive.
18
+ * - Use `mdc-checkbox` or `mdc-radio` when the control should appear inside a form field group rather than as a compact filter row.
19
+ *
9
20
  * @tagname mdc-filterchip
10
- *
21
+ *
11
22
  * @dependency mdc-icon
12
23
  * @dependency mdc-text
13
- *
24
+ *
14
25
  * @csspart label - The label part of the chip.
15
- *
26
+ *
16
27
  * @cssproperty --mdc-chip-color - The color of the chip.
17
28
  * @cssproperty --mdc-chip-border-color - The border color of the chip.
18
29
  * @cssproperty --mdc-chip-background-color - The background color of the chip.
19
- *
30
+ *
20
31
  * @event click - (React: onClick) This event is dispatched when the chip is clicked.
21
32
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
22
33
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
@@ -12,11 +12,6 @@ import Chip from '../chip/chip.component';
12
12
  import styles from './filterchip.styles';
13
13
  import { DEFAULTS } from './filterchip.constants';
14
14
  /**
15
- * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.
16
- * They can be found with lists or tables as quick filters.
17
- *
18
- * This component is built on top of the mdc-chip component.
19
- *
20
15
  * @tagname mdc-filterchip
21
16
  *
22
17
  * @dependency mdc-icon
@@ -1,34 +1,33 @@
1
1
  import type { CSSResult } from 'lit';
2
2
  import FormfieldWrapper from '../formfieldwrapper/formfieldwrapper.component';
3
3
  /**
4
- * `mdc-formfieldgroup` component, groups the form field components together.
5
- * All passed in children will have a gap of 12px (0.75rem) each applied.
6
- *
7
- * This component is specifically for creating a `checkbox` group and a `toggle` group component.
8
- * For the radiogroup use the RadioGroup component instead.
9
- *
10
- * The header text and description text are displayed above the items with accessible labels.<br/>
11
- * The consumer has to provide atleast the header-text or the aria-label,
12
- * like one of them <b>has</b> to be passed in always, otherwise its not accessible.
13
- *
14
- * The role will be set to `group`.
15
- * The aria-label will be set with the data-aria-label property.
16
- * The aria-labelledby will be set with the header id which contains the header text information.
17
- * The aria-describedby will be set with the description id which contains the description text information.
18
- *
4
+ * The formfieldgroup groups several related form fields under a single shared label, helper text, and group role. It is intended for checkbox groups and toggle groups; each child is rendered with a 12px (0.75rem) gap between siblings.
5
+ *
6
+ * The group is announced to screen readers as a single semantic unit via `role="group"`, with the header text and helper text wired as the accessible name and description.
7
+ *
8
+ * **When to use**
9
+ *
10
+ * - Use `mdc-formfieldgroup` to wrap a set of related `mdc-checkbox` controls so they share a single label and helper text.
11
+ * - Use it to wrap a set of related `mdc-toggle` controls in the same way.
12
+ *
13
+ * **When not to use**
14
+ *
15
+ * - Use `mdc-radiogroup` for radio buttons radios require the `radiogroup` role and arrow-key navigation, which `mdc-formfieldgroup` does not provide.
16
+ * - Use `mdc-formfieldwrapper` for a single labelled form field rather than a group.
17
+ *
19
18
  * @tagname mdc-formfieldgroup
20
- *
19
+ *
21
20
  * @dependency mdc-button
22
21
  * @dependency mdc-icon
23
22
  * @dependency mdc-text
24
23
  * @dependency mdc-toggletip
25
- *
24
+ *
26
25
  * @slot default - This is a default slot for checkbox or toggle components.
27
26
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
28
27
  * @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.
29
28
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
30
29
  * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
31
- *
30
+ *
32
31
  * @csspart label - The label element.
33
32
  * @csspart label-text - The container for the label and required indicator elements.
34
33
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -38,7 +37,7 @@ import FormfieldWrapper from '../formfieldwrapper/formfieldwrapper.component';
38
37
  * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
39
38
  * @csspart help-text-container - The container for the helper/validation icon and text elements.
40
39
  * @csspart group-header - This contains the label and help text for the group
41
- *
40
+ *
42
41
  * @cssproperty --mdc-label-font-size - Font size for the label text.
43
42
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
44
43
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -3,21 +3,6 @@ import { ROLE } from '../../utils/roles';
3
3
  import FormfieldWrapper from '../formfieldwrapper/formfieldwrapper.component';
4
4
  import styles from './formfieldgroup.styles';
5
5
  /**
6
- * `mdc-formfieldgroup` component, groups the form field components together.
7
- * All passed in children will have a gap of 12px (0.75rem) each applied.
8
- *
9
- * This component is specifically for creating a `checkbox` group and a `toggle` group component.
10
- * For the radiogroup use the RadioGroup component instead.
11
- *
12
- * The header text and description text are displayed above the items with accessible labels.<br/>
13
- * The consumer has to provide atleast the header-text or the aria-label,
14
- * like one of them <b>has</b> to be passed in always, otherwise its not accessible.
15
- *
16
- * The role will be set to `group`.
17
- * The aria-label will be set with the data-aria-label property.
18
- * The aria-labelledby will be set with the header id which contains the header text information.
19
- * The aria-describedby will be set with the description id which contains the description text information.
20
- *
21
6
  * @tagname mdc-formfieldgroup
22
7
  *
23
8
  * @dependency mdc-button
@@ -4,22 +4,30 @@ import type { PopoverPlacement, PopoverStrategy } from '../popover/popover.types
4
4
  import type { ValidationType } from './formfieldwrapper.types';
5
5
  declare const FormfieldWrapper_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
6
6
  /**
7
- * formfieldwrapper is a component that contains the label and helper/validation text
8
- * that can be configured in various ways to suit different use cases (most of the input related components).
9
- * It is used as an internal component and is not intended to be used directly by consumers.
10
- *
7
+ * The formfieldwrapper is an internal base component that renders the label row (label, required indicator, optional info-icon toggletip) and the helper/validation row (icon + text) used by every form field. It is **not** intended to be instantiated directly by consumers — components such as `mdc-input`, `mdc-textarea`, `mdc-checkbox`, `mdc-radio`, `mdc-select`, `mdc-combobox`, `mdc-datepicker`, `mdc-formfieldgroup`, and others extend it to inherit a consistent label and helper-text contract.
8
+ *
9
+ * This entry documents the properties, slots, and accessibility hooks that every extending component exposes to consumers. Consumers will interact with these via the concrete form-field component (e.g. set `label` on an `mdc-input`), not on `mdc-formfieldwrapper` itself.
10
+ *
11
+ * **When to use**
12
+ *
13
+ * - Use the formfieldwrapper indirectly by extending it from a new form-field component that needs the standard label, required indicator, helper text, and toggletip layout.
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Do not render `mdc-formfieldwrapper` directly in application code — pick the concrete form-field component (`mdc-input`, `mdc-textarea`, `mdc-checkbox`, etc.) instead.
18
+ *
11
19
  * @tagname mdc-formfieldwrapper
12
- *
20
+ *
13
21
  * @dependency mdc-text
14
22
  * @dependency mdc-icon
15
23
  * @dependency mdc-button
16
24
  * @dependency mdc-toggletip
17
- *
25
+ *
18
26
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
19
27
  * @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.
20
28
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
21
29
  * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
22
- *
30
+ *
23
31
  * @csspart label - The label element.
24
32
  * @csspart label-text - The container for the label and required indicator elements.
25
33
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -28,7 +36,7 @@ declare const FormfieldWrapper_base: import("../../utils/mixins/index.types").Co
28
36
  * @csspart help-text - The helper/validation text element.
29
37
  * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
30
38
  * @csspart help-text-container - The container for the helper/validation icon and text elements.
31
- *
39
+ *
32
40
  * @cssproperty --mdc-label-font-size - Font size for the label text.
33
41
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
34
42
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -18,10 +18,6 @@ import { DEFAULTS, MDC_TEXT_OPTIONS } from './formfieldwrapper.constants';
18
18
  import styles from './formfieldwrapper.styles';
19
19
  import { getHelperIcon } from './formfieldwrapper.utils';
20
20
  /**
21
- * formfieldwrapper is a component that contains the label and helper/validation text
22
- * that can be configured in various ways to suit different use cases (most of the input related components).
23
- * It is used as an internal component and is not intended to be used directly by consumers.
24
- *
25
21
  * @tagname mdc-formfieldwrapper
26
22
  *
27
23
  * @dependency mdc-text
@@ -2,51 +2,26 @@ import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import type { IconNames } from './icon.types';
4
4
  /**
5
- * Icon component that dynamically displays SVG icons based on a valid name.
6
- *
7
- * This component must be mounted within an `IconProvider` component.
8
- *
9
- * The `IconProvider` defines the source URL from which icons are consumed.
10
- * The `Icon` component accepts a `name` attribute, which corresponds to
11
- * the file name of the icon to be loaded from the specified URL.
12
- *
13
- * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,
14
- * no icon will be displayed.
15
- *
16
- * The `size` attribute allows for dynamic sizing of the icon based on the provided
17
- * `length-unit` attribute. This unit can either come from the `IconProvider`
18
- * or can be overridden for each individual icon. For example:
19
- * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be
20
- * `width: 1em; height: 1em`.
21
- *
22
- * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.
23
- *
24
- * ### Decorative Icons
25
- * - Decorative icons do not convey any essential information to the content of a page.
26
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
27
- * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.
28
- *
29
- * ### Informative Icons
30
- * - Informative icons convey important information that is not adequately represented
31
- * by surrounding text or components.
32
- * - They provide valuable context and must be announced by assistive technologies.
33
- * - For informative icons, an `aria-label` is required, and the `role` will be set to "img" automatically.
34
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
35
- * the role will be unset.
36
- *
37
- * ### Informative Standalone Icons
38
- * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must
39
- * have a Tooltip that describes what it means.
40
- * - For informative standalone icons, an `aria-label` & `tabindex="0"` is required,
41
- * and the `role` will be set to "img" automatically.
42
- * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**
43
- *
5
+ * The icon renders an SVG by name. It must be mounted inside an `mdc-iconprovider`, which supplies the source URL (or selects the `momentum-icons` package), file extension, default size, and length unit. Setting `name` triggers a fetch (or dynamic import) for that icon; on success the SVG is inlined into the component, and on failure the component renders nothing.
6
+ *
7
+ * The size is computed from the `size` and `length-unit` attributes, with fallbacks to the values broadcast by `mdc-iconprovider`. The accessibility contract depends on whether the icon is decorative, informative, or informative-standalone — see the Accessibility section.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-icon` inside any component or layout that needs a Momentum design-system icon.
12
+ * - Use it when the icon source is shared across the app — the surrounding `mdc-iconprovider` configures it once.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Use `mdc-illustration` when the asset is a larger illustrative graphic rather than a simple, single-colour icon.
17
+ * - Use an inline `<svg>` when the icon is a one-off graphic that does not need to be loaded through the icon provider system.
18
+ *
44
19
  * @tagname mdc-icon
45
- *
20
+ *
46
21
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
47
22
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
48
23
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
49
- *
24
+ *
50
25
  * @csspart icon - The svg inside the icon element.
51
26
  */
52
27
  declare class Icon extends Component {
@@ -16,45 +16,6 @@ import styles from './icon.styles';
16
16
  import { svgFetch } from './icon.utils';
17
17
  import { DEFAULTS } from './icon.constants';
18
18
  /**
19
- * Icon component that dynamically displays SVG icons based on a valid name.
20
- *
21
- * This component must be mounted within an `IconProvider` component.
22
- *
23
- * The `IconProvider` defines the source URL from which icons are consumed.
24
- * The `Icon` component accepts a `name` attribute, which corresponds to
25
- * the file name of the icon to be loaded from the specified URL.
26
- *
27
- * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,
28
- * no icon will be displayed.
29
- *
30
- * The `size` attribute allows for dynamic sizing of the icon based on the provided
31
- * `length-unit` attribute. This unit can either come from the `IconProvider`
32
- * or can be overridden for each individual icon. For example:
33
- * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be
34
- * `width: 1em; height: 1em`.
35
- *
36
- * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.
37
- *
38
- * ### Decorative Icons
39
- * - Decorative icons do not convey any essential information to the content of a page.
40
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
41
- * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.
42
- *
43
- * ### Informative Icons
44
- * - Informative icons convey important information that is not adequately represented
45
- * by surrounding text or components.
46
- * - They provide valuable context and must be announced by assistive technologies.
47
- * - For informative icons, an `aria-label` is required, and the `role` will be set to "img" automatically.
48
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
49
- * the role will be unset.
50
- *
51
- * ### Informative Standalone Icons
52
- * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must
53
- * have a Tooltip that describes what it means.
54
- * - For informative standalone icons, an `aria-label` & `tabindex="0"` is required,
55
- * and the `role` will be set to "img" automatically.
56
- * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**
57
- *
58
19
  * @tagname mdc-icon
59
20
  *
60
21
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
@@ -2,31 +2,21 @@ import { Provider } from '../../models';
2
2
  import IconProviderContext from './iconprovider.context';
3
3
  import type { CacheStrategy, IconSet } from './iconprovider.types';
4
4
  /**
5
- * IconProvider component, which allows to be consumed from sub components
6
- * (see `providerUtils.consume` for how to consume)
7
- *
8
- * Attribute `iconSet` can be set to either `momentum-icons` or `custom-icons`.
9
- * If `momentum-icons` is selected, the icons will be fetched from the
10
- * Momentum Design System icon set per a dynamic JS Import (no need to provide a URL).
11
- * This requires the consumer to have the `@momentum-design/icons` package installed and the
12
- * build tooling needs to support dynamic imports.
13
- *
14
- * If `custom-icons` is selected, the icons will be fetched from the provided URL.
15
- * This requires the consumer to provide a URL from which the icons will be fetched and
16
- * the consumer needs to make sure to bundle the icons in the application.
17
- *
18
- * If `cacheStrategy` is provided (only works with iconSet = `custom-icons`), the
19
- * IconProvider will cache the icons in the selected cache (either web-api-cache or in-memory-cache),
20
- * to avoid fetching the same icon multiple times over the network.
21
- * This is useful when the same icon is used multiple times in the application.
22
- * To consider:
23
- * - The `in-memory-cache` is not persisted and will be lost when the
24
- * IconProvider is removed from the DOM.
25
- * - The `web-api-cache` is persisted, but only works in https environments
26
- * (https://developer.mozilla.org/en-US/docs/Web/API/Cache).
27
- *
5
+ * The iconprovider is a context provider for `mdc-icon`. It broadcasts the configuration every nested icon needs to resolve its `name` into a rendered SVG: which icon set to use, where to fetch from (for custom icons), what file extension to apply, the default size and length unit, and an optional cache strategy.
6
+ *
7
+ * Wrap the application (or a sub-tree) with an `mdc-iconprovider` once; every `mdc-icon` inside it reads the same configuration via context. Without a surrounding iconprovider, an `mdc-icon` cannot resolve its source and renders nothing.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Wrap the root of the application (or any sub-tree that uses icons) with `mdc-iconprovider` to configure the icon source for all nested `mdc-icon` components in one place.
12
+ * - Use it when icons should be cached across re-renders or page navigations to avoid repeated network fetches.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Do not nest multiple `mdc-iconprovider`s when one provider is enough the nearest provider wins per icon, so nesting only makes sense when different sub-trees genuinely need different sources.
17
+ *
28
18
  * @tagname mdc-iconprovider
29
- *
19
+ *
30
20
  * @slot - children
31
21
  */
32
22
  declare class IconProvider extends Provider<IconProviderContext> {