@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
@@ -2,52 +2,37 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/dialog';
3
3
  import type { Events } from '../../components/dialog/dialog.types';
4
4
  /**
5
- * Dialog component is a modal dialog that can be used to display information or prompt the user for input.
6
- * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.
7
- * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
8
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
9
- *
10
- * Dialog component have 2 variants: default and promotional.
11
- *
12
- * ## Visibility
13
- *
14
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
15
- * If a `triggerID` is provided, the dialog will manage focus with that element, otherwise it will
16
- * remember the previously focused element before the dialog was opened.
17
- *
18
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
19
- * Use the `visible` property to control the visibility of the dialog.
20
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
21
- * or Escape is pressed).
22
- *
23
- * ## Accessibility
24
- *
25
- * Some attributes have to be explicitly set by the consumer of the component:
26
- *
27
- * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
28
- * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
29
- *
30
- * ## Responsive design
31
- *
32
- * Dialog has few built in logic to prevent content clipping on small screens
33
- *
34
- * - maximum height limited to the viewport height
35
- * - dialog body has `overflow: auto` by default
36
- * - dialog itself also has `overflow: auto`, it activates only when the body can not shrink more
37
- *
38
- *
5
+ * 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.
6
+ *
7
+ * 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.
8
+ *
9
+ * 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`.
10
+ *
11
+ * **When to use**
12
+ *
13
+ * - Use `mdc-dialog` to confirm a destructive action (e.g. deleting an item) before it happens.
14
+ * - Use it to collect a short input that should block the underlying flow until completed.
15
+ * - Use it for messages that demand the user's attention and cannot be deferred to a banner or toast.
16
+ *
17
+ * **When not to use**
18
+ *
19
+ * - Use `mdc-announcementdialog` when the surface is a curated marketing/announcement layout with a fixed structure.
20
+ * - Use `mdc-popover` or `mdc-coachmark` for non-modal overlays anchored to a trigger.
21
+ * - Use `mdc-toast` for transient, dismissable notifications that should not block interaction.
22
+ * - Use `mdc-banner` for persistent in-page messages.
23
+ *
24
+ * @tagname mdc-dialog
25
+ *
39
26
  * @dependency mdc-button
40
27
  * @dependency mdc-text
41
- *
42
- * @tagname mdc-dialog
43
- *
28
+ *
44
29
  * @event shown - (React: onShown) Dispatched when the dialog is shown
45
30
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
46
31
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
47
32
  * @event destroyed - (React: onDestroyed) Dispatched when the dialog is destroyed (removed from the DOM)
48
33
  * @event close - (React: onClose) Dispatched when the Close Button is clicked or Escape key is pressed
49
34
  * (this does not hide the dialog)
50
- *
35
+ *
51
36
  * @cssproperty --mdc-dialog-primary-background-color - primary background color of the dialog
52
37
  * @cssproperty --mdc-dialog-border-color - border color of the dialog
53
38
  * @cssproperty --mdc-dialog-header-text-color - text color of the header/title of the dialog
@@ -56,14 +41,14 @@ import type { Events } from '../../components/dialog/dialog.types';
56
41
  * @cssproperty --mdc-dialog-width - width of the dialog
57
42
  * @cssproperty --mdc-dialog-height - height of the dialog
58
43
  * @cssproperty --mdc-dialog-backdrop-color - background color of the backdrop (if backdrop is enabled)
59
- *
44
+ *
60
45
  * @csspart body - The body section of the dialog.
61
46
  * @csspart description-text - The description text of the dialog.
62
47
  * @csspart dialog-close-btn - The close button of the dialog.
63
48
  * @csspart header - The header of the dialog.
64
49
  * @csspart header-section - The header section of the dialog.
65
50
  * @csspart header-text - The header text of the dialog.
66
- *
51
+ *
67
52
  * @slot header-prefix - Slot for the dialog header content. This can be used to pass custom header content.
68
53
  * @slot dialog-body - Slot for the dialog body content
69
54
  * @slot footer-link - This slot is for passing `mdc-link` component within the footer section.
@@ -3,45 +3,11 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/dialog';
4
4
  import { TAG_NAME } from '../../components/dialog/dialog.constants';
5
5
  /**
6
- * Dialog component is a modal dialog that can be used to display information or prompt the user for input.
7
- * It can be used to create custom dialogs where content for the body and footer actions is provided by the consumer.
8
- * The dialog is available in 5 sizes: small, medium, large, xlarge and fullscreen. It may also receive custom styling/sizing.
9
- * The dialog interrupts the user and will block interaction with the rest of the application until it is closed.
10
- *
11
- * Dialog component have 2 variants: default and promotional.
12
- *
13
- * ## Visibility
14
- *
15
- * The dialog can be controlled solely through the `visible` property, no trigger element is required.
16
- * If a `triggerID` is provided, the dialog will manage focus with that element, otherwise it will
17
- * remember the previously focused element before the dialog was opened.
18
- *
19
- * The dialog is a controlled component, meaning it does not have its own state management for visibility.
20
- * Use the `visible` property to control the visibility of the dialog.
21
- * Use the `onClose` event to handle the close action of the dialog (fired when Close button is clicked
22
- * or Escape is pressed).
23
- *
24
- * ## Accessibility
25
- *
26
- * Some attributes have to be explicitly set by the consumer of the component:
27
- *
28
- * - The dialog should have an aria-label or aria-labelledby attribute to provide a label for screen readers.
29
- * - Use aria-labelledby to reference the ID of the element that labels the dialog when there is no visible title.
30
- *
31
- * ## Responsive design
32
- *
33
- * Dialog has few built in logic to prevent content clipping on small screens
34
- *
35
- * - maximum height limited to the viewport height
36
- * - dialog body has `overflow: auto` by default
37
- * - dialog itself also has `overflow: auto`, it activates only when the body can not shrink more
38
- *
6
+ * @tagname mdc-dialog
39
7
  *
40
8
  * @dependency mdc-button
41
9
  * @dependency mdc-text
42
10
  *
43
- * @tagname mdc-dialog
44
- *
45
11
  * @event shown - (React: onShown) Dispatched when the dialog is shown
46
12
  * @event hidden - (React: onHidden) Dispatched when the dialog is hidden
47
13
  * @event created - (React: onCreated) Dispatched when the dialog is created (added to the DOM)
@@ -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