@momentum-design/components 0.134.20 → 0.134.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/browser/index.js.map +2 -2
  2. package/dist/components/accordion/accordion.component.d.ts +15 -5
  3. package/dist/components/accordionbutton/accordionbutton.component.d.ts +14 -26
  4. package/dist/components/accordionbutton/accordionbutton.component.js +0 -22
  5. package/dist/components/accordiongroup/accordiongroup.component.d.ts +12 -16
  6. package/dist/components/accordiongroup/accordiongroup.component.js +0 -14
  7. package/dist/components/alertchip/alertchip.component.d.ts +15 -11
  8. package/dist/components/alertchip/alertchip.component.js +0 -7
  9. package/dist/components/animation/animation.component.d.ts +14 -6
  10. package/dist/components/animation/animation.component.js +0 -5
  11. package/dist/components/announcementdialog/announcementdialog.component.d.ts +18 -25
  12. package/dist/components/announcementdialog/announcementdialog.component.js +1 -20
  13. package/dist/components/appheader/appheader.component.d.ts +13 -12
  14. package/dist/components/appheader/appheader.component.js +0 -9
  15. package/dist/components/avatar/avatar.component.d.ts +14 -34
  16. package/dist/components/avatar/avatar.component.js +1 -31
  17. package/dist/components/avatarbutton/avatarbutton.component.d.ts +15 -14
  18. package/dist/components/avatarbutton/avatarbutton.component.js +1 -10
  19. package/dist/components/badge/badge.component.d.ts +16 -20
  20. package/dist/components/badge/badge.component.js +1 -17
  21. package/dist/components/banner/banner.component.d.ts +17 -17
  22. package/dist/components/banner/banner.component.js +1 -13
  23. package/dist/components/brandvisual/brandvisual.component.d.ts +15 -12
  24. package/dist/components/brandvisual/brandvisual.component.js +0 -10
  25. package/dist/components/bullet/bullet.component.d.ts +15 -16
  26. package/dist/components/bullet/bullet.component.js +0 -15
  27. package/dist/components/button/button.component.d.ts +21 -52
  28. package/dist/components/button/button.component.js +1 -47
  29. package/dist/components/buttongroup/buttongroup.component.d.ts +17 -20
  30. package/dist/components/buttongroup/buttongroup.component.js +0 -17
  31. package/dist/components/buttonlink/buttonlink.component.d.ts +19 -16
  32. package/dist/components/buttonlink/buttonlink.component.js +1 -11
  33. package/dist/components/buttonsimple/buttonsimple.component.d.ts +16 -25
  34. package/dist/components/buttonsimple/buttonsimple.component.js +0 -22
  35. package/dist/components/calendar/calendar.component.d.ts +17 -11
  36. package/dist/components/calendar/calendar.component.js +0 -8
  37. package/dist/components/card/card.component.d.ts +18 -17
  38. package/dist/components/card/card.component.js +0 -13
  39. package/dist/components/cardbutton/cardbutton.component.d.ts +20 -14
  40. package/dist/components/cardbutton/cardbutton.component.js +0 -9
  41. package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +20 -19
  42. package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -14
  43. package/dist/components/cardradio/cardradio.component.d.ts +20 -20
  44. package/dist/components/cardradio/cardradio.component.js +0 -15
  45. package/dist/components/checkbox/checkbox.component.d.ts +22 -26
  46. package/dist/components/checkbox/checkbox.component.js +1 -22
  47. package/dist/components/chip/chip.component.d.ts +20 -13
  48. package/dist/components/chip/chip.component.js +0 -9
  49. package/dist/components/coachmark/coachmark.component.d.ts +22 -22
  50. package/dist/components/coachmark/coachmark.component.js +1 -18
  51. package/dist/components/combobox/combobox.component.d.ts +27 -37
  52. package/dist/components/combobox/combobox.component.js +1 -32
  53. package/dist/components/controltypeprovider/controltypeprovider.component.d.ts +19 -11
  54. package/dist/components/controltypeprovider/controltypeprovider.component.js +0 -10
  55. package/dist/components/datepicker/datepicker.component.d.ts +20 -14
  56. package/dist/components/datepicker/datepicker.component.js +0 -9
  57. package/dist/components/dialog/dialog.component.d.ts +25 -40
  58. package/dist/components/dialog/dialog.component.js +1 -35
  59. package/dist/components/divider/divider.component.d.ts +23 -25
  60. package/dist/components/divider/divider.component.js +0 -23
  61. package/dist/components/filterchip/filterchip.component.d.ts +20 -9
  62. package/dist/components/filterchip/filterchip.component.js +0 -5
  63. package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +18 -19
  64. package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -15
  65. package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +16 -8
  66. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +0 -4
  67. package/dist/components/icon/icon.component.d.ts +16 -41
  68. package/dist/components/icon/icon.component.js +0 -39
  69. package/dist/components/iconprovider/iconprovider.component.d.ts +14 -24
  70. package/dist/components/iconprovider/iconprovider.component.js +0 -23
  71. package/dist/components/illustration/illustration.component.d.ts +16 -32
  72. package/dist/components/illustration/illustration.component.js +0 -30
  73. package/dist/components/illustrationprovider/illustrationprovider.component.d.ts +14 -24
  74. package/dist/components/illustrationprovider/illustrationprovider.component.js +0 -23
  75. package/dist/components/input/input.component.d.ts +21 -16
  76. package/dist/components/input/input.component.js +0 -11
  77. package/dist/components/inputchip/inputchip.component.d.ts +19 -13
  78. package/dist/components/inputchip/inputchip.component.js +0 -7
  79. package/dist/components/link/link.component.d.ts +18 -12
  80. package/dist/components/link/link.component.js +1 -9
  81. package/dist/components/linkbutton/linkbutton.component.d.ts +19 -12
  82. package/dist/components/linkbutton/linkbutton.component.js +1 -8
  83. package/dist/components/linksimple/linksimple.component.d.ts +17 -10
  84. package/dist/components/linksimple/linksimple.component.js +0 -7
  85. package/dist/components/list/list.component.d.ts +17 -7
  86. package/dist/components/list/list.component.js +0 -5
  87. package/dist/components/listbox/listbox.component.d.ts +21 -16
  88. package/dist/components/listbox/listbox.component.js +1 -11
  89. package/dist/components/listheader/listheader.component.d.ts +14 -6
  90. package/dist/components/listheader/listheader.component.js +0 -3
  91. package/dist/components/listitem/listitem.component.d.ts +20 -18
  92. package/dist/components/listitem/listitem.component.js +0 -13
  93. package/dist/components/marker/marker.component.d.ts +15 -16
  94. package/dist/components/marker/marker.component.js +0 -15
  95. package/dist/components/menubar/menubar.component.d.ts +12 -19
  96. package/dist/components/menubar/menubar.component.js +0 -19
  97. package/dist/components/menuitem/menuitem.component.d.ts +18 -19
  98. package/dist/components/menuitem/menuitem.component.js +1 -15
  99. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +19 -30
  100. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +1 -25
  101. package/dist/components/menuitemradio/menuitemradio.component.d.ts +18 -31
  102. package/dist/components/menuitemradio/menuitemradio.component.js +1 -26
  103. package/dist/components/menupopover/menupopover.component.d.ts +16 -38
  104. package/dist/components/menupopover/menupopover.component.js +0 -34
  105. package/dist/components/menusection/menusection.component.d.ts +16 -12
  106. package/dist/components/menusection/menusection.component.js +0 -8
  107. package/dist/components/navmenuitem/navmenuitem.component.d.ts +16 -15
  108. package/dist/components/navmenuitem/navmenuitem.component.js +0 -11
  109. package/dist/components/optgroup/optgroup.component.d.ts +17 -7
  110. package/dist/components/optgroup/optgroup.component.js +1 -3
  111. package/dist/components/option/option.component.d.ts +17 -19
  112. package/dist/components/option/option.component.js +1 -15
  113. package/dist/components/password/password.component.d.ts +18 -17
  114. package/dist/components/password/password.component.js +0 -11
  115. package/dist/components/popover/popover.component.d.ts +20 -52
  116. package/dist/components/popover/popover.component.js +1 -47
  117. package/dist/components/presence/presence.component.d.ts +17 -10
  118. package/dist/components/presence/presence.component.js +1 -7
  119. package/dist/components/progressbar/progressbar.component.d.ts +17 -13
  120. package/dist/components/progressbar/progressbar.component.js +0 -9
  121. package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
  122. package/dist/components/progressspinner/progressspinner.component.js +0 -17
  123. package/dist/components/radio/radio.component.d.ts +19 -41
  124. package/dist/components/radio/radio.component.js +1 -37
  125. package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
  126. package/dist/components/radiogroup/radiogroup.component.js +0 -4
  127. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
  128. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
  129. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
  130. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
  131. package/dist/components/searchfield/searchfield.component.d.ts +16 -24
  132. package/dist/components/searchfield/searchfield.component.js +0 -20
  133. package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
  134. package/dist/components/searchpopover/searchpopover.component.js +0 -16
  135. package/dist/components/select/select.component.d.ts +23 -19
  136. package/dist/components/select/select.component.js +1 -14
  137. package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
  138. package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
  139. package/dist/components/sidenavigation/sidenavigation.component.d.ts +21 -41
  140. package/dist/components/sidenavigation/sidenavigation.component.js +1 -35
  141. package/dist/components/skeleton/skeleton.component.d.ts +14 -15
  142. package/dist/components/skeleton/skeleton.component.js +0 -13
  143. package/dist/components/slider/slider.component.d.ts +17 -15
  144. package/dist/components/slider/slider.component.js +0 -11
  145. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
  146. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
  147. package/dist/components/spinner/spinner.component.d.ts +15 -27
  148. package/dist/components/spinner/spinner.component.js +0 -25
  149. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
  150. package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
  151. package/dist/components/staticchip/staticchip.component.d.ts +17 -8
  152. package/dist/components/staticchip/staticchip.component.js +0 -5
  153. package/dist/components/staticradio/staticradio.component.d.ts +15 -19
  154. package/dist/components/staticradio/staticradio.component.js +0 -16
  155. package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
  156. package/dist/components/statictoggle/statictoggle.component.js +0 -17
  157. package/dist/components/stepper/stepper.component.d.ts +13 -5
  158. package/dist/components/stepper/stepper.component.js +0 -3
  159. package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
  160. package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
  161. package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
  162. package/dist/components/stepperitem/stepperitem.component.js +1 -10
  163. package/dist/components/tab/tab.component.d.ts +20 -23
  164. package/dist/components/tab/tab.component.js +1 -16
  165. package/dist/components/tablist/tablist.component.d.ts +18 -30
  166. package/dist/components/tablist/tablist.component.js +0 -24
  167. package/dist/components/text/text.component.d.ts +12 -13
  168. package/dist/components/text/text.component.js +0 -12
  169. package/dist/components/textarea/textarea.component.d.ts +17 -39
  170. package/dist/components/textarea/textarea.component.js +0 -34
  171. package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
  172. package/dist/components/themeprovider/themeprovider.component.js +0 -25
  173. package/dist/components/timepicker/timepicker.component.d.ts +17 -19
  174. package/dist/components/timepicker/timepicker.component.js +0 -14
  175. package/dist/components/toast/toast.component.d.ts +20 -12
  176. package/dist/components/toast/toast.component.js +1 -7
  177. package/dist/components/toggle/toggle.component.d.ts +18 -24
  178. package/dist/components/toggle/toggle.component.js +1 -21
  179. package/dist/components/toggletip/toggletip.component.d.ts +18 -28
  180. package/dist/components/toggletip/toggletip.component.js +1 -24
  181. package/dist/components/tooltip/tooltip.component.d.ts +16 -16
  182. package/dist/components/tooltip/tooltip.component.js +0 -13
  183. package/dist/components/typewriter/typewriter.component.d.ts +18 -34
  184. package/dist/components/typewriter/typewriter.component.js +1 -31
  185. package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
  186. package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
  187. package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
  188. package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
  189. package/dist/custom-elements.json +190 -190
  190. package/dist/react/accordion/index.d.ts +15 -5
  191. package/dist/react/accordionbutton/index.d.ts +14 -26
  192. package/dist/react/accordionbutton/index.js +0 -22
  193. package/dist/react/accordiongroup/index.d.ts +12 -16
  194. package/dist/react/accordiongroup/index.js +0 -14
  195. package/dist/react/alertchip/index.d.ts +15 -11
  196. package/dist/react/alertchip/index.js +0 -7
  197. package/dist/react/animation/index.d.ts +14 -6
  198. package/dist/react/animation/index.js +0 -5
  199. package/dist/react/announcementdialog/index.d.ts +18 -25
  200. package/dist/react/announcementdialog/index.js +1 -20
  201. package/dist/react/appheader/index.d.ts +13 -12
  202. package/dist/react/appheader/index.js +0 -9
  203. package/dist/react/avatar/index.d.ts +14 -34
  204. package/dist/react/avatar/index.js +1 -31
  205. package/dist/react/avatarbutton/index.d.ts +15 -14
  206. package/dist/react/avatarbutton/index.js +1 -10
  207. package/dist/react/badge/index.d.ts +16 -20
  208. package/dist/react/badge/index.js +1 -17
  209. package/dist/react/banner/index.d.ts +17 -17
  210. package/dist/react/banner/index.js +1 -13
  211. package/dist/react/brandvisual/index.d.ts +15 -12
  212. package/dist/react/brandvisual/index.js +0 -10
  213. package/dist/react/bullet/index.d.ts +15 -16
  214. package/dist/react/bullet/index.js +0 -15
  215. package/dist/react/button/index.d.ts +21 -52
  216. package/dist/react/button/index.js +1 -47
  217. package/dist/react/buttongroup/index.d.ts +17 -20
  218. package/dist/react/buttongroup/index.js +0 -17
  219. package/dist/react/buttonlink/index.d.ts +19 -16
  220. package/dist/react/buttonlink/index.js +1 -11
  221. package/dist/react/buttonsimple/index.d.ts +16 -25
  222. package/dist/react/buttonsimple/index.js +0 -22
  223. package/dist/react/calendar/index.d.ts +17 -11
  224. package/dist/react/calendar/index.js +0 -8
  225. package/dist/react/card/index.d.ts +18 -17
  226. package/dist/react/card/index.js +0 -13
  227. package/dist/react/cardbutton/index.d.ts +20 -14
  228. package/dist/react/cardbutton/index.js +0 -9
  229. package/dist/react/cardcheckbox/index.d.ts +20 -19
  230. package/dist/react/cardcheckbox/index.js +0 -14
  231. package/dist/react/cardradio/index.d.ts +20 -20
  232. package/dist/react/cardradio/index.js +0 -15
  233. package/dist/react/checkbox/index.d.ts +22 -26
  234. package/dist/react/checkbox/index.js +1 -22
  235. package/dist/react/chip/index.d.ts +20 -13
  236. package/dist/react/chip/index.js +0 -9
  237. package/dist/react/coachmark/index.d.ts +22 -22
  238. package/dist/react/coachmark/index.js +1 -18
  239. package/dist/react/combobox/index.d.ts +27 -37
  240. package/dist/react/combobox/index.js +1 -32
  241. package/dist/react/controltypeprovider/index.d.ts +19 -11
  242. package/dist/react/controltypeprovider/index.js +0 -10
  243. package/dist/react/datepicker/index.d.ts +20 -14
  244. package/dist/react/datepicker/index.js +0 -9
  245. package/dist/react/dialog/index.d.ts +25 -40
  246. package/dist/react/dialog/index.js +1 -35
  247. package/dist/react/divider/index.d.ts +23 -25
  248. package/dist/react/divider/index.js +0 -23
  249. package/dist/react/filterchip/index.d.ts +20 -9
  250. package/dist/react/filterchip/index.js +0 -5
  251. package/dist/react/formfieldgroup/index.d.ts +18 -19
  252. package/dist/react/formfieldgroup/index.js +0 -15
  253. package/dist/react/formfieldwrapper/index.d.ts +16 -8
  254. package/dist/react/formfieldwrapper/index.js +0 -4
  255. package/dist/react/icon/index.d.ts +16 -41
  256. package/dist/react/icon/index.js +0 -39
  257. package/dist/react/iconprovider/index.d.ts +14 -24
  258. package/dist/react/iconprovider/index.js +0 -23
  259. package/dist/react/illustration/index.d.ts +16 -32
  260. package/dist/react/illustration/index.js +0 -30
  261. package/dist/react/illustrationprovider/index.d.ts +14 -24
  262. package/dist/react/illustrationprovider/index.js +0 -23
  263. package/dist/react/input/index.d.ts +21 -16
  264. package/dist/react/input/index.js +0 -11
  265. package/dist/react/inputchip/index.d.ts +19 -13
  266. package/dist/react/inputchip/index.js +0 -7
  267. package/dist/react/link/index.d.ts +18 -12
  268. package/dist/react/link/index.js +1 -9
  269. package/dist/react/linkbutton/index.d.ts +19 -12
  270. package/dist/react/linkbutton/index.js +1 -8
  271. package/dist/react/linksimple/index.d.ts +17 -10
  272. package/dist/react/linksimple/index.js +0 -7
  273. package/dist/react/list/index.d.ts +17 -7
  274. package/dist/react/list/index.js +0 -5
  275. package/dist/react/listbox/index.d.ts +21 -16
  276. package/dist/react/listbox/index.js +1 -11
  277. package/dist/react/listheader/index.d.ts +14 -6
  278. package/dist/react/listheader/index.js +0 -3
  279. package/dist/react/listitem/index.d.ts +20 -18
  280. package/dist/react/listitem/index.js +0 -13
  281. package/dist/react/marker/index.d.ts +15 -16
  282. package/dist/react/marker/index.js +0 -15
  283. package/dist/react/menubar/index.d.ts +12 -19
  284. package/dist/react/menubar/index.js +0 -19
  285. package/dist/react/menuitem/index.d.ts +18 -19
  286. package/dist/react/menuitem/index.js +1 -15
  287. package/dist/react/menuitemcheckbox/index.d.ts +19 -30
  288. package/dist/react/menuitemcheckbox/index.js +1 -25
  289. package/dist/react/menuitemradio/index.d.ts +18 -31
  290. package/dist/react/menuitemradio/index.js +1 -26
  291. package/dist/react/menupopover/index.d.ts +16 -38
  292. package/dist/react/menupopover/index.js +0 -34
  293. package/dist/react/menusection/index.d.ts +16 -12
  294. package/dist/react/menusection/index.js +0 -8
  295. package/dist/react/navmenuitem/index.d.ts +16 -15
  296. package/dist/react/navmenuitem/index.js +0 -11
  297. package/dist/react/optgroup/index.d.ts +17 -7
  298. package/dist/react/optgroup/index.js +1 -3
  299. package/dist/react/option/index.d.ts +17 -19
  300. package/dist/react/option/index.js +1 -15
  301. package/dist/react/password/index.d.ts +18 -17
  302. package/dist/react/password/index.js +0 -11
  303. package/dist/react/popover/index.d.ts +20 -52
  304. package/dist/react/popover/index.js +1 -47
  305. package/dist/react/presence/index.d.ts +17 -10
  306. package/dist/react/presence/index.js +1 -7
  307. package/dist/react/progressbar/index.d.ts +17 -13
  308. package/dist/react/progressbar/index.js +0 -9
  309. package/dist/react/progressspinner/index.d.ts +14 -19
  310. package/dist/react/progressspinner/index.js +0 -17
  311. package/dist/react/radio/index.d.ts +19 -41
  312. package/dist/react/radio/index.js +1 -37
  313. package/dist/react/radiogroup/index.d.ts +12 -5
  314. package/dist/react/radiogroup/index.js +0 -4
  315. package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
  316. package/dist/react/responsivesettingsprovider/index.js +0 -29
  317. package/dist/react/screenreaderannouncer/index.d.ts +12 -51
  318. package/dist/react/screenreaderannouncer/index.js +0 -51
  319. package/dist/react/searchfield/index.d.ts +16 -24
  320. package/dist/react/searchfield/index.js +0 -20
  321. package/dist/react/searchpopover/index.d.ts +16 -20
  322. package/dist/react/searchpopover/index.js +0 -16
  323. package/dist/react/select/index.d.ts +23 -19
  324. package/dist/react/select/index.js +1 -14
  325. package/dist/react/selectlistbox/index.d.ts +12 -8
  326. package/dist/react/selectlistbox/index.js +0 -7
  327. package/dist/react/sidenavigation/index.d.ts +21 -41
  328. package/dist/react/sidenavigation/index.js +1 -35
  329. package/dist/react/skeleton/index.d.ts +14 -15
  330. package/dist/react/skeleton/index.js +0 -13
  331. package/dist/react/slider/index.d.ts +17 -15
  332. package/dist/react/slider/index.js +0 -11
  333. package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
  334. package/dist/react/spatialnavigationprovider/index.js +1 -214
  335. package/dist/react/spinner/index.d.ts +15 -27
  336. package/dist/react/spinner/index.js +0 -25
  337. package/dist/react/staticcheckbox/index.d.ts +16 -21
  338. package/dist/react/staticcheckbox/index.js +0 -17
  339. package/dist/react/staticchip/index.d.ts +17 -8
  340. package/dist/react/staticchip/index.js +0 -5
  341. package/dist/react/staticradio/index.d.ts +15 -19
  342. package/dist/react/staticradio/index.js +0 -16
  343. package/dist/react/statictoggle/index.d.ts +16 -21
  344. package/dist/react/statictoggle/index.js +0 -17
  345. package/dist/react/stepper/index.d.ts +13 -5
  346. package/dist/react/stepper/index.js +0 -3
  347. package/dist/react/stepperconnector/index.d.ts +13 -6
  348. package/dist/react/stepperconnector/index.js +0 -4
  349. package/dist/react/stepperitem/index.d.ts +16 -14
  350. package/dist/react/stepperitem/index.js +1 -10
  351. package/dist/react/tab/index.d.ts +20 -23
  352. package/dist/react/tab/index.js +1 -16
  353. package/dist/react/tablist/index.d.ts +18 -30
  354. package/dist/react/tablist/index.js +0 -24
  355. package/dist/react/text/index.d.ts +12 -13
  356. package/dist/react/text/index.js +0 -12
  357. package/dist/react/textarea/index.d.ts +17 -39
  358. package/dist/react/textarea/index.js +0 -34
  359. package/dist/react/themeprovider/index.d.ts +13 -27
  360. package/dist/react/themeprovider/index.js +0 -25
  361. package/dist/react/timepicker/index.d.ts +17 -19
  362. package/dist/react/timepicker/index.js +0 -14
  363. package/dist/react/toast/index.d.ts +20 -12
  364. package/dist/react/toast/index.js +1 -7
  365. package/dist/react/toggle/index.d.ts +18 -24
  366. package/dist/react/toggle/index.js +1 -21
  367. package/dist/react/toggletip/index.d.ts +18 -28
  368. package/dist/react/toggletip/index.js +1 -24
  369. package/dist/react/tooltip/index.d.ts +16 -16
  370. package/dist/react/tooltip/index.js +0 -13
  371. package/dist/react/typewriter/index.d.ts +18 -34
  372. package/dist/react/typewriter/index.js +1 -31
  373. package/dist/react/verticaltablist/index.d.ts +17 -30
  374. package/dist/react/verticaltablist/index.js +0 -26
  375. package/dist/react/virtualizedlist/index.d.ts +16 -58
  376. package/dist/react/virtualizedlist/index.js +0 -55
  377. package/package.json +1 -1
@@ -1,30 +1,28 @@
1
1
  import Component from '../../components/divider';
2
2
  /**
3
- * The Divider component provides a visual line to separate and organize content within layouts.
4
- * It supports both horizontal and vertical orientations with solid or gradient styles, and can
5
- * optionally include centered text labels or interactive grabber buttons.
6
- *
7
- * The divider automatically infers its type based on the content in its slot:
8
- * - **Primary**: Simple line with no content
9
- * - **Text**: Horizontal line with centered text label
10
- * - **Grabber Button**: Line with centered interactive button
11
- *
12
- * **Note:**
13
- * - Vertical text dividers are not currently supported.
14
- * - If the slot contains invalid tag names or multiple elements, the divider defaults to the Primary type
15
- * - Use the provided CSS custom properties to customize divider styles
16
- *
17
- * ## When to use
18
- * Use dividers to create visual separation between content sections, list items, or layout regions.
19
- * Add text labels to provide context, or grabber buttons to create resizable panes.
20
- *
21
- * ## Accessibility
22
- * - When using a grabber button, provide `aria-label` to describe its purpose
23
- * - Set `aria-expanded` on the button to indicate the current state of resizable sections
24
- * - Ensure sufficient color contrast for the divider line
25
- *
3
+ * 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).
4
+ *
5
+ * The component infers its type from the slotted content:
6
+ *
7
+ * - **Primary** no slotted content; renders just the line.
8
+ * - **Text** a single `mdc-text` child; renders the line with a centred label.
9
+ * - **Grabber Button** — a single `mdc-button` child; renders the line with a centred interactive button (typically used to collapse/expand a resizable pane).
10
+ *
11
+ * If the slot contains multiple elements or unrecognised tag names, the divider falls back to the primary type.
12
+ *
13
+ * **When to use**
14
+ *
15
+ * - Use `mdc-divider` to separate sections of content within a layout, list, or table.
16
+ * - Use a text divider to add a short caption between two visually similar sections.
17
+ * - Use a grabber-button divider to create a resizable boundary between two panes.
18
+ *
19
+ * **When not to use**
20
+ *
21
+ * - Use whitespace, padding, or background-colour groupings when a visible line is not needed — a divider should add meaning, not decoration.
22
+ * - Use `mdc-list` separators rather than nesting dividers inside list items, since lists already render their own dividers.
23
+ *
26
24
  * @tagname mdc-divider
27
- *
25
+ *
28
26
  * @cssproperty --mdc-divider-background-color - Background color of the divider line.
29
27
  * @cssproperty --mdc-divider-width - Width (thickness) of the divider line.
30
28
  * @cssproperty --mdc-divider-horizontal-gradient - Gradient for horizontal dividers.
@@ -38,7 +36,7 @@ import Component from '../../components/divider';
38
36
  * @cssproperty --mdc-divider-grabber-button-background-color-pressed - Background color of the grabber button in pressed state.
39
37
  * @cssproperty --mdc-divider-grabber-button-border-color - Border color of the grabber button.
40
38
  * @cssproperty --mdc-divider-grabber-button-border-radius - Border radius of the grabber button.
41
- *
39
+ *
42
40
  * @slot - Content for the divider. Use `mdc-text` for text labels or `mdc-button` for grabber buttons.
43
41
  */
44
42
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,29 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/divider';
4
4
  import { TAG_NAME } from '../../components/divider/divider.constants';
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
- *
29
6
  * @tagname mdc-divider
30
7
  *
31
8
  * @cssproperty --mdc-divider-background-color - Background color of the divider line.
@@ -2,22 +2,33 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/filterchip';
3
3
  import type { Events as EventsInherited } from '../../components/buttonsimple/buttonsimple.types';
4
4
  /**
5
- * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.
6
- * They can be found with lists or tables as quick filters.
7
- *
8
- * This component is built on top of the mdc-chip component.
9
- *
5
+ * 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.
6
+ *
7
+ * Filterchips are typically rendered in a horizontal row next to a result set; users toggle them on and off to narrow the set.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-filterchip` when each chip toggles a single filter that can be applied or removed independently.
12
+ * - Use it inside a row of filters where the selected state should be visually obvious at a glance.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Use `mdc-chip` when the chip triggers an action rather than a toggle.
17
+ * - Use `mdc-alertchip` when the chip communicates a status (information, warning, error) rather than a togglable filter.
18
+ * - Use `mdc-staticchip` when the chip is purely decorative and should not be interactive.
19
+ * - Use `mdc-checkbox` or `mdc-radio` when the control should appear inside a form field group rather than as a compact filter row.
20
+ *
10
21
  * @tagname mdc-filterchip
11
- *
22
+ *
12
23
  * @dependency mdc-icon
13
24
  * @dependency mdc-text
14
- *
25
+ *
15
26
  * @csspart label - The label part of the chip.
16
- *
27
+ *
17
28
  * @cssproperty --mdc-chip-color - The color of the chip.
18
29
  * @cssproperty --mdc-chip-border-color - The border color of the chip.
19
30
  * @cssproperty --mdc-chip-background-color - The background color of the chip.
20
- *
31
+ *
21
32
  * @event click - (React: onClick) This event is dispatched when the chip is clicked.
22
33
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
23
34
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
@@ -3,11 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/filterchip';
4
4
  import { TAG_NAME } from '../../components/filterchip/filterchip.constants';
5
5
  /**
6
- * mdc-filterchip component is an interactive chip that consumers can use to select or deselect.
7
- * They can be found with lists or tables as quick filters.
8
- *
9
- * This component is built on top of the mdc-chip component.
10
- *
11
6
  * @tagname mdc-filterchip
12
7
  *
13
8
  * @dependency mdc-icon
@@ -1,33 +1,32 @@
1
1
  import Component from '../../components/formfieldgroup';
2
2
  /**
3
- * `mdc-formfieldgroup` component, groups the form field components together.
4
- * All passed in children will have a gap of 12px (0.75rem) each applied.
5
- *
6
- * This component is specifically for creating a `checkbox` group and a `toggle` group component.
7
- * For the radiogroup use the RadioGroup component instead.
8
- *
9
- * The header text and description text are displayed above the items with accessible labels.<br/>
10
- * The consumer has to provide atleast the header-text or the aria-label,
11
- * like one of them <b>has</b> to be passed in always, otherwise its not accessible.
12
- *
13
- * The role will be set to `group`.
14
- * The aria-label will be set with the data-aria-label property.
15
- * The aria-labelledby will be set with the header id which contains the header text information.
16
- * The aria-describedby will be set with the description id which contains the description text information.
17
- *
3
+ * 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.
4
+ *
5
+ * 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.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-formfieldgroup` to wrap a set of related `mdc-checkbox` controls so they share a single label and helper text.
10
+ * - Use it to wrap a set of related `mdc-toggle` controls in the same way.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-radiogroup` for radio buttons radios require the `radiogroup` role and arrow-key navigation, which `mdc-formfieldgroup` does not provide.
15
+ * - Use `mdc-formfieldwrapper` for a single labelled form field rather than a group.
16
+ *
18
17
  * @tagname mdc-formfieldgroup
19
- *
18
+ *
20
19
  * @dependency mdc-button
21
20
  * @dependency mdc-icon
22
21
  * @dependency mdc-text
23
22
  * @dependency mdc-toggletip
24
- *
23
+ *
25
24
  * @slot default - This is a default slot for checkbox or toggle components.
26
25
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
27
26
  * @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.
28
27
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
29
28
  * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
30
- *
29
+ *
31
30
  * @csspart label - The label element.
32
31
  * @csspart label-text - The container for the label and required indicator elements.
33
32
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -37,7 +36,7 @@ import Component from '../../components/formfieldgroup';
37
36
  * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
38
37
  * @csspart help-text-container - The container for the helper/validation icon and text elements.
39
38
  * @csspart group-header - This contains the label and help text for the group
40
- *
39
+ *
41
40
  * @cssproperty --mdc-label-font-size - Font size for the label text.
42
41
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
43
42
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -3,21 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/formfieldgroup';
4
4
  import { TAG_NAME } from '../../components/formfieldgroup/formfieldgroup.constants';
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
@@ -1,21 +1,29 @@
1
1
  import Component from '../../components/formfieldwrapper';
2
2
  /**
3
- * formfieldwrapper is a component that contains the label and helper/validation text
4
- * that can be configured in various ways to suit different use cases (most of the input related components).
5
- * It is used as an internal component and is not intended to be used directly by consumers.
6
- *
3
+ * 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.
4
+ *
5
+ * 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.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - 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.
10
+ *
11
+ * **When not to use**
12
+ *
13
+ * - Do not render `mdc-formfieldwrapper` directly in application code — pick the concrete form-field component (`mdc-input`, `mdc-textarea`, `mdc-checkbox`, etc.) instead.
14
+ *
7
15
  * @tagname mdc-formfieldwrapper
8
- *
16
+ *
9
17
  * @dependency mdc-text
10
18
  * @dependency mdc-icon
11
19
  * @dependency mdc-button
12
20
  * @dependency mdc-toggletip
13
- *
21
+ *
14
22
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
15
23
  * @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.
16
24
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
17
25
  * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
18
- *
26
+ *
19
27
  * @csspart label - The label element.
20
28
  * @csspart label-text - The container for the label and required indicator elements.
21
29
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -24,7 +32,7 @@ import Component from '../../components/formfieldwrapper';
24
32
  * @csspart help-text - The helper/validation text element.
25
33
  * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.
26
34
  * @csspart help-text-container - The container for the helper/validation icon and text elements.
27
- *
35
+ *
28
36
  * @cssproperty --mdc-label-font-size - Font size for the label text.
29
37
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
30
38
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -3,10 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/formfieldwrapper';
4
4
  import { TAG_NAME } from '../../components/formfieldwrapper/formfieldwrapper.constants';
5
5
  /**
6
- * formfieldwrapper is a component that contains the label and helper/validation text
7
- * that can be configured in various ways to suit different use cases (most of the input related components).
8
- * It is used as an internal component and is not intended to be used directly by consumers.
9
- *
10
6
  * @tagname mdc-formfieldwrapper
11
7
  *
12
8
  * @dependency mdc-text
@@ -1,50 +1,25 @@
1
1
  import Component from '../../components/icon';
2
2
  /**
3
- * Icon component that dynamically displays SVG icons based on a valid name.
4
- *
5
- * This component must be mounted within an `IconProvider` component.
6
- *
7
- * The `IconProvider` defines the source URL from which icons are consumed.
8
- * The `Icon` component accepts a `name` attribute, which corresponds to
9
- * the file name of the icon to be loaded from the specified URL.
10
- *
11
- * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,
12
- * no icon will be displayed.
13
- *
14
- * The `size` attribute allows for dynamic sizing of the icon based on the provided
15
- * `length-unit` attribute. This unit can either come from the `IconProvider`
16
- * or can be overridden for each individual icon. For example:
17
- * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be
18
- * `width: 1em; height: 1em`.
19
- *
20
- * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.
21
- *
22
- * ### Decorative Icons
23
- * - Decorative icons do not convey any essential information to the content of a page.
24
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
25
- * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.
26
- *
27
- * ### Informative Icons
28
- * - Informative icons convey important information that is not adequately represented
29
- * by surrounding text or components.
30
- * - They provide valuable context and must be announced by assistive technologies.
31
- * - For informative icons, an `aria-label` is required, and the `role` will be set to "img" automatically.
32
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
33
- * the role will be unset.
34
- *
35
- * ### Informative Standalone Icons
36
- * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must
37
- * have a Tooltip that describes what it means.
38
- * - For informative standalone icons, an `aria-label` & `tabindex="0"` is required,
39
- * and the `role` will be set to "img" automatically.
40
- * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**
41
- *
3
+ * 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.
4
+ *
5
+ * 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.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-icon` inside any component or layout that needs a Momentum design-system icon.
10
+ * - Use it when the icon source is shared across the app — the surrounding `mdc-iconprovider` configures it once.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-illustration` when the asset is a larger illustrative graphic rather than a simple, single-colour icon.
15
+ * - Use an inline `<svg>` when the icon is a one-off graphic that does not need to be loaded through the icon provider system.
16
+ *
42
17
  * @tagname mdc-icon
43
- *
18
+ *
44
19
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
45
20
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
46
21
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
47
- *
22
+ *
48
23
  * @csspart icon - The svg inside the icon element.
49
24
  */
50
25
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,45 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/icon';
4
4
  import { TAG_NAME } from '../../components/icon/icon.constants';
5
5
  /**
6
- * Icon component that dynamically displays SVG icons based on a valid name.
7
- *
8
- * This component must be mounted within an `IconProvider` component.
9
- *
10
- * The `IconProvider` defines the source URL from which icons are consumed.
11
- * The `Icon` component accepts a `name` attribute, which corresponds to
12
- * the file name of the icon to be loaded from the specified URL.
13
- *
14
- * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,
15
- * no icon will be displayed.
16
- *
17
- * The `size` attribute allows for dynamic sizing of the icon based on the provided
18
- * `length-unit` attribute. This unit can either come from the `IconProvider`
19
- * or can be overridden for each individual icon. For example:
20
- * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be
21
- * `width: 1em; height: 1em`.
22
- *
23
- * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.
24
- *
25
- * ### Decorative Icons
26
- * - Decorative icons do not convey any essential information to the content of a page.
27
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
28
- * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.
29
- *
30
- * ### Informative Icons
31
- * - Informative icons convey important information that is not adequately represented
32
- * by surrounding text or components.
33
- * - They provide valuable context and must be announced by assistive technologies.
34
- * - For informative icons, an `aria-label` is required, and the `role` will be set to "img" automatically.
35
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
36
- * the role will be unset.
37
- *
38
- * ### Informative Standalone Icons
39
- * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must
40
- * have a Tooltip that describes what it means.
41
- * - For informative standalone icons, an `aria-label` & `tabindex="0"` is required,
42
- * and the `role` will be set to "img" automatically.
43
- * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**
44
- *
45
6
  * @tagname mdc-icon
46
7
  *
47
8
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
@@ -1,30 +1,20 @@
1
1
  import Component from '../../components/iconprovider';
2
2
  /**
3
- * IconProvider component, which allows to be consumed from sub components
4
- * (see `providerUtils.consume` for how to consume)
5
- *
6
- * Attribute `iconSet` can be set to either `momentum-icons` or `custom-icons`.
7
- * If `momentum-icons` is selected, the icons will be fetched from the
8
- * Momentum Design System icon set per a dynamic JS Import (no need to provide a URL).
9
- * This requires the consumer to have the `@momentum-design/icons` package installed and the
10
- * build tooling needs to support dynamic imports.
11
- *
12
- * If `custom-icons` is selected, the icons will be fetched from the provided URL.
13
- * This requires the consumer to provide a URL from which the icons will be fetched and
14
- * the consumer needs to make sure to bundle the icons in the application.
15
- *
16
- * If `cacheStrategy` is provided (only works with iconSet = `custom-icons`), the
17
- * IconProvider will cache the icons in the selected cache (either web-api-cache or in-memory-cache),
18
- * to avoid fetching the same icon multiple times over the network.
19
- * This is useful when the same icon is used multiple times in the application.
20
- * To consider:
21
- * - The `in-memory-cache` is not persisted and will be lost when the
22
- * IconProvider is removed from the DOM.
23
- * - The `web-api-cache` is persisted, but only works in https environments
24
- * (https://developer.mozilla.org/en-US/docs/Web/API/Cache).
25
- *
3
+ * 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.
4
+ *
5
+ * 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.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - 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.
10
+ * - Use it when icons should be cached across re-renders or page navigations to avoid repeated network fetches.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - 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.
15
+ *
26
16
  * @tagname mdc-iconprovider
27
- *
17
+ *
28
18
  * @slot - children
29
19
  */
30
20
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,29 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/iconprovider';
4
4
  import { TAG_NAME } from '../../components/iconprovider/iconprovider.constants';
5
5
  /**
6
- * IconProvider component, which allows to be consumed from sub components
7
- * (see `providerUtils.consume` for how to consume)
8
- *
9
- * Attribute `iconSet` can be set to either `momentum-icons` or `custom-icons`.
10
- * If `momentum-icons` is selected, the icons will be fetched from the
11
- * Momentum Design System icon set per a dynamic JS Import (no need to provide a URL).
12
- * This requires the consumer to have the `@momentum-design/icons` package installed and the
13
- * build tooling needs to support dynamic imports.
14
- *
15
- * If `custom-icons` is selected, the icons will be fetched from the provided URL.
16
- * This requires the consumer to provide a URL from which the icons will be fetched and
17
- * the consumer needs to make sure to bundle the icons in the application.
18
- *
19
- * If `cacheStrategy` is provided (only works with iconSet = `custom-icons`), the
20
- * IconProvider will cache the icons in the selected cache (either web-api-cache or in-memory-cache),
21
- * to avoid fetching the same icon multiple times over the network.
22
- * This is useful when the same icon is used multiple times in the application.
23
- * To consider:
24
- * - The `in-memory-cache` is not persisted and will be lost when the
25
- * IconProvider is removed from the DOM.
26
- * - The `web-api-cache` is persisted, but only works in https environments
27
- * (https://developer.mozilla.org/en-US/docs/Web/API/Cache).
28
- *
29
6
  * @tagname mdc-iconprovider
30
7
  *
31
8
  * @slot - children
@@ -1,39 +1,23 @@
1
1
  import Component from '../../components/illustration';
2
2
  /**
3
- * Illustration component that dynamically displays SVG illustrations based on a valid name.
4
- *
5
- * This component must be mounted within an `IllustrationProvider` component.
6
- *
7
- * The `IllustrationProvider` defines the source URL from which illustrations are consumed.
8
- * The `Illustration` component accepts a `name` attribute, which corresponds to
9
- * the file name of the illustration to be loaded from the specified URL.
10
- *
11
- * Once fetched, the illustration will be rendered. If the fetching process is unsuccessful,
12
- * no illustration will be displayed.
13
- *
14
- * Default sizing of the illustration is controlled by choosing a different illustration name, can be overridden with the `--mdc-illustration-size` CSS property.
15
- * Coloring of the illustration is currently baked into the svg, meaning that the illustration name determines
16
- * the coloring.
17
- *
18
- * Regarding accessibility, there are two types of illustrations: decorative and informative.
19
- *
20
- * ### Decorative Illustrations
21
- * - Decorative illustrations do not convey any essential information to the content of a page.
22
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
23
- * - For decorative illustrations, an `aria-label` is not required, and the `role` will be set to null.
24
- *
25
- * ### Informative Illustrations
26
- * - Informative illustrations convey important information that is not adequately represented
27
- * by surrounding text or components.
28
- * - They provide valuable context and must be announced by assistive technologies.
29
- * - For informative illustrations, an `aria-label` is required, and the `role` will be set to "img" automatically.
30
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
31
- * the role will be unset.
32
- *
3
+ * The illustration renders an SVG illustration by name. It must be mounted inside an `mdc-illustrationprovider`, which supplies the source URL (or selects the `momentum-illustrations` package), file extension, and optional cache strategy. Setting `name` triggers a fetch (or dynamic import); on success the SVG is inlined into the component, and on failure the component renders nothing.
4
+ *
5
+ * Default sizing is baked into each illustration name. Override the rendered size with the `--mdc-illustration-size` CSS property. Colouring is also baked into the SVG, so the choice of `name` determines the palette.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-illustration` for larger illustrative graphics in empty states, onboarding screens, success/error confirmations, and feature highlights.
10
+ * - Use it when the asset should be loaded from the shared illustration source rather than bundled inline.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-icon` for small, single-colour interface icons rather than full illustrations.
15
+ * - Use an inline `<svg>` for one-off illustrations that do not need to be loaded through the illustration provider system.
16
+ *
33
17
  * @tagname mdc-illustration
34
- *
18
+ *
35
19
  * @cssproperty --mdc-illustration-size - Allows customization of the illustration size.
36
- *
20
+ *
37
21
  * @csspart illustration - The svg inside the illustration element.
38
22
  */
39
23
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,36 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/illustration';
4
4
  import { TAG_NAME } from '../../components/illustration/illustration.constants';
5
5
  /**
6
- * Illustration component that dynamically displays SVG illustrations based on a valid name.
7
- *
8
- * This component must be mounted within an `IllustrationProvider` component.
9
- *
10
- * The `IllustrationProvider` defines the source URL from which illustrations are consumed.
11
- * The `Illustration` component accepts a `name` attribute, which corresponds to
12
- * the file name of the illustration to be loaded from the specified URL.
13
- *
14
- * Once fetched, the illustration will be rendered. If the fetching process is unsuccessful,
15
- * no illustration will be displayed.
16
- *
17
- * Default sizing of the illustration is controlled by choosing a different illustration name, can be overridden with the `--mdc-illustration-size` CSS property.
18
- * Coloring of the illustration is currently baked into the svg, meaning that the illustration name determines
19
- * the coloring.
20
- *
21
- * Regarding accessibility, there are two types of illustrations: decorative and informative.
22
- *
23
- * ### Decorative Illustrations
24
- * - Decorative illustrations do not convey any essential information to the content of a page.
25
- * - They should be hidden from screen readers (SR) to prevent confusion for users.
26
- * - For decorative illustrations, an `aria-label` is not required, and the `role` will be set to null.
27
- *
28
- * ### Informative Illustrations
29
- * - Informative illustrations convey important information that is not adequately represented
30
- * by surrounding text or components.
31
- * - They provide valuable context and must be announced by assistive technologies.
32
- * - For informative illustrations, an `aria-label` is required, and the `role` will be set to "img" automatically.
33
- * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,
34
- * the role will be unset.
35
- *
36
6
  * @tagname mdc-illustration
37
7
  *
38
8
  * @cssproperty --mdc-illustration-size - Allows customization of the illustration size.