@momentum-design/components 0.134.19 → 0.134.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (379) hide show
  1. package/dist/browser/index.js +1 -1
  2. package/dist/browser/index.js.map +2 -2
  3. package/dist/components/accordion/accordion.component.d.ts +15 -5
  4. package/dist/components/accordionbutton/accordionbutton.component.d.ts +14 -26
  5. package/dist/components/accordionbutton/accordionbutton.component.js +0 -22
  6. package/dist/components/accordiongroup/accordiongroup.component.d.ts +12 -16
  7. package/dist/components/accordiongroup/accordiongroup.component.js +0 -14
  8. package/dist/components/alertchip/alertchip.component.d.ts +15 -11
  9. package/dist/components/alertchip/alertchip.component.js +0 -7
  10. package/dist/components/animation/animation.component.d.ts +14 -6
  11. package/dist/components/animation/animation.component.js +0 -5
  12. package/dist/components/announcementdialog/announcementdialog.component.d.ts +18 -25
  13. package/dist/components/announcementdialog/announcementdialog.component.js +1 -20
  14. package/dist/components/appheader/appheader.component.d.ts +13 -12
  15. package/dist/components/appheader/appheader.component.js +0 -9
  16. package/dist/components/avatar/avatar.component.d.ts +14 -34
  17. package/dist/components/avatar/avatar.component.js +1 -31
  18. package/dist/components/avatarbutton/avatarbutton.component.d.ts +15 -14
  19. package/dist/components/avatarbutton/avatarbutton.component.js +1 -10
  20. package/dist/components/badge/badge.component.d.ts +16 -20
  21. package/dist/components/badge/badge.component.js +1 -17
  22. package/dist/components/banner/banner.component.d.ts +17 -17
  23. package/dist/components/banner/banner.component.js +1 -13
  24. package/dist/components/brandvisual/brandvisual.component.d.ts +15 -12
  25. package/dist/components/brandvisual/brandvisual.component.js +0 -10
  26. package/dist/components/bullet/bullet.component.d.ts +15 -16
  27. package/dist/components/bullet/bullet.component.js +0 -15
  28. package/dist/components/button/button.component.d.ts +21 -52
  29. package/dist/components/button/button.component.js +1 -47
  30. package/dist/components/buttongroup/buttongroup.component.d.ts +17 -20
  31. package/dist/components/buttongroup/buttongroup.component.js +0 -17
  32. package/dist/components/buttonlink/buttonlink.component.d.ts +19 -16
  33. package/dist/components/buttonlink/buttonlink.component.js +1 -11
  34. package/dist/components/buttonsimple/buttonsimple.component.d.ts +16 -25
  35. package/dist/components/buttonsimple/buttonsimple.component.js +0 -22
  36. package/dist/components/calendar/calendar.component.d.ts +17 -11
  37. package/dist/components/calendar/calendar.component.js +0 -8
  38. package/dist/components/card/card.component.d.ts +18 -17
  39. package/dist/components/card/card.component.js +0 -13
  40. package/dist/components/cardbutton/cardbutton.component.d.ts +20 -14
  41. package/dist/components/cardbutton/cardbutton.component.js +0 -9
  42. package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +20 -19
  43. package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -14
  44. package/dist/components/cardradio/cardradio.component.d.ts +20 -20
  45. package/dist/components/cardradio/cardradio.component.js +0 -15
  46. package/dist/components/checkbox/checkbox.component.d.ts +22 -26
  47. package/dist/components/checkbox/checkbox.component.js +1 -22
  48. package/dist/components/chip/chip.component.d.ts +20 -13
  49. package/dist/components/chip/chip.component.js +0 -9
  50. package/dist/components/coachmark/coachmark.component.d.ts +22 -22
  51. package/dist/components/coachmark/coachmark.component.js +1 -18
  52. package/dist/components/combobox/combobox.component.d.ts +27 -37
  53. package/dist/components/combobox/combobox.component.js +1 -32
  54. package/dist/components/controltypeprovider/controltypeprovider.component.d.ts +19 -11
  55. package/dist/components/controltypeprovider/controltypeprovider.component.js +0 -10
  56. package/dist/components/datepicker/datepicker.component.d.ts +20 -14
  57. package/dist/components/datepicker/datepicker.component.js +0 -9
  58. package/dist/components/dialog/dialog.component.d.ts +25 -40
  59. package/dist/components/dialog/dialog.component.js +1 -35
  60. package/dist/components/divider/divider.component.d.ts +23 -25
  61. package/dist/components/divider/divider.component.js +0 -23
  62. package/dist/components/filterchip/filterchip.component.d.ts +20 -9
  63. package/dist/components/filterchip/filterchip.component.js +0 -5
  64. package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +18 -19
  65. package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -15
  66. package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +16 -8
  67. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +0 -4
  68. package/dist/components/icon/icon.component.d.ts +16 -41
  69. package/dist/components/icon/icon.component.js +0 -39
  70. package/dist/components/iconprovider/iconprovider.component.d.ts +14 -24
  71. package/dist/components/iconprovider/iconprovider.component.js +0 -23
  72. package/dist/components/illustration/illustration.component.d.ts +16 -32
  73. package/dist/components/illustration/illustration.component.js +0 -30
  74. package/dist/components/illustrationprovider/illustrationprovider.component.d.ts +14 -24
  75. package/dist/components/illustrationprovider/illustrationprovider.component.js +0 -23
  76. package/dist/components/input/input.component.d.ts +21 -16
  77. package/dist/components/input/input.component.js +0 -11
  78. package/dist/components/inputchip/inputchip.component.d.ts +19 -13
  79. package/dist/components/inputchip/inputchip.component.js +0 -7
  80. package/dist/components/link/link.component.d.ts +18 -12
  81. package/dist/components/link/link.component.js +1 -9
  82. package/dist/components/linkbutton/linkbutton.component.d.ts +19 -12
  83. package/dist/components/linkbutton/linkbutton.component.js +1 -8
  84. package/dist/components/linksimple/linksimple.component.d.ts +17 -10
  85. package/dist/components/linksimple/linksimple.component.js +0 -7
  86. package/dist/components/list/list.component.d.ts +17 -7
  87. package/dist/components/list/list.component.js +0 -5
  88. package/dist/components/listbox/listbox.component.d.ts +21 -16
  89. package/dist/components/listbox/listbox.component.js +1 -11
  90. package/dist/components/listheader/listheader.component.d.ts +14 -6
  91. package/dist/components/listheader/listheader.component.js +0 -3
  92. package/dist/components/listitem/listitem.component.d.ts +20 -18
  93. package/dist/components/listitem/listitem.component.js +0 -13
  94. package/dist/components/marker/marker.component.d.ts +15 -16
  95. package/dist/components/marker/marker.component.js +0 -15
  96. package/dist/components/menubar/menubar.component.d.ts +12 -19
  97. package/dist/components/menubar/menubar.component.js +0 -19
  98. package/dist/components/menuitem/menuitem.component.d.ts +18 -19
  99. package/dist/components/menuitem/menuitem.component.js +1 -15
  100. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +19 -30
  101. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +1 -25
  102. package/dist/components/menuitemradio/menuitemradio.component.d.ts +18 -31
  103. package/dist/components/menuitemradio/menuitemradio.component.js +1 -26
  104. package/dist/components/menupopover/menupopover.component.d.ts +16 -38
  105. package/dist/components/menupopover/menupopover.component.js +0 -34
  106. package/dist/components/menusection/menusection.component.d.ts +16 -12
  107. package/dist/components/menusection/menusection.component.js +0 -8
  108. package/dist/components/navmenuitem/navmenuitem.component.d.ts +16 -15
  109. package/dist/components/navmenuitem/navmenuitem.component.js +0 -11
  110. package/dist/components/optgroup/optgroup.component.d.ts +17 -7
  111. package/dist/components/optgroup/optgroup.component.js +1 -3
  112. package/dist/components/option/option.component.d.ts +17 -19
  113. package/dist/components/option/option.component.js +1 -15
  114. package/dist/components/password/password.component.d.ts +18 -17
  115. package/dist/components/password/password.component.js +0 -11
  116. package/dist/components/popover/popover.component.d.ts +20 -52
  117. package/dist/components/popover/popover.component.js +1 -47
  118. package/dist/components/presence/presence.component.d.ts +17 -10
  119. package/dist/components/presence/presence.component.js +1 -7
  120. package/dist/components/progressbar/progressbar.component.d.ts +17 -13
  121. package/dist/components/progressbar/progressbar.component.js +0 -9
  122. package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
  123. package/dist/components/progressspinner/progressspinner.component.js +0 -17
  124. package/dist/components/radio/radio.component.d.ts +19 -41
  125. package/dist/components/radio/radio.component.js +1 -37
  126. package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
  127. package/dist/components/radiogroup/radiogroup.component.js +0 -4
  128. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
  129. package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
  130. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
  131. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
  132. package/dist/components/searchfield/searchfield.component.d.ts +16 -24
  133. package/dist/components/searchfield/searchfield.component.js +0 -20
  134. package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
  135. package/dist/components/searchpopover/searchpopover.component.js +0 -16
  136. package/dist/components/select/select.component.d.ts +23 -19
  137. package/dist/components/select/select.component.js +1 -14
  138. package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
  139. package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
  140. package/dist/components/sidenavigation/sidenavigation.component.d.ts +21 -41
  141. package/dist/components/sidenavigation/sidenavigation.component.js +1 -35
  142. package/dist/components/skeleton/skeleton.component.d.ts +14 -15
  143. package/dist/components/skeleton/skeleton.component.js +0 -13
  144. package/dist/components/slider/slider.component.d.ts +17 -15
  145. package/dist/components/slider/slider.component.js +0 -11
  146. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
  147. package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
  148. package/dist/components/spinner/spinner.component.d.ts +15 -27
  149. package/dist/components/spinner/spinner.component.js +0 -25
  150. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
  151. package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
  152. package/dist/components/staticchip/staticchip.component.d.ts +17 -8
  153. package/dist/components/staticchip/staticchip.component.js +0 -5
  154. package/dist/components/staticradio/staticradio.component.d.ts +15 -19
  155. package/dist/components/staticradio/staticradio.component.js +0 -16
  156. package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
  157. package/dist/components/statictoggle/statictoggle.component.js +0 -17
  158. package/dist/components/stepper/stepper.component.d.ts +13 -5
  159. package/dist/components/stepper/stepper.component.js +0 -3
  160. package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
  161. package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
  162. package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
  163. package/dist/components/stepperitem/stepperitem.component.js +1 -10
  164. package/dist/components/tab/tab.component.d.ts +20 -23
  165. package/dist/components/tab/tab.component.js +1 -16
  166. package/dist/components/tablist/tablist.component.d.ts +18 -30
  167. package/dist/components/tablist/tablist.component.js +0 -24
  168. package/dist/components/text/text.component.d.ts +12 -13
  169. package/dist/components/text/text.component.js +0 -12
  170. package/dist/components/textarea/textarea.component.d.ts +17 -39
  171. package/dist/components/textarea/textarea.component.js +0 -34
  172. package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
  173. package/dist/components/themeprovider/themeprovider.component.js +0 -25
  174. package/dist/components/timepicker/timepicker.component.d.ts +17 -19
  175. package/dist/components/timepicker/timepicker.component.js +0 -14
  176. package/dist/components/toast/toast.component.d.ts +20 -12
  177. package/dist/components/toast/toast.component.js +1 -7
  178. package/dist/components/toggle/toggle.component.d.ts +18 -24
  179. package/dist/components/toggle/toggle.component.js +1 -21
  180. package/dist/components/toggletip/toggletip.component.d.ts +18 -28
  181. package/dist/components/toggletip/toggletip.component.js +1 -24
  182. package/dist/components/tooltip/tooltip.component.d.ts +16 -16
  183. package/dist/components/tooltip/tooltip.component.js +0 -13
  184. package/dist/components/typewriter/typewriter.component.d.ts +18 -34
  185. package/dist/components/typewriter/typewriter.component.js +1 -31
  186. package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
  187. package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
  188. package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
  189. package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
  190. package/dist/custom-elements.json +190 -190
  191. package/dist/react/accordion/index.d.ts +15 -5
  192. package/dist/react/accordionbutton/index.d.ts +14 -26
  193. package/dist/react/accordionbutton/index.js +0 -22
  194. package/dist/react/accordiongroup/index.d.ts +12 -16
  195. package/dist/react/accordiongroup/index.js +0 -14
  196. package/dist/react/alertchip/index.d.ts +15 -11
  197. package/dist/react/alertchip/index.js +0 -7
  198. package/dist/react/animation/index.d.ts +14 -6
  199. package/dist/react/animation/index.js +0 -5
  200. package/dist/react/announcementdialog/index.d.ts +18 -25
  201. package/dist/react/announcementdialog/index.js +1 -20
  202. package/dist/react/appheader/index.d.ts +13 -12
  203. package/dist/react/appheader/index.js +0 -9
  204. package/dist/react/avatar/index.d.ts +14 -34
  205. package/dist/react/avatar/index.js +1 -31
  206. package/dist/react/avatarbutton/index.d.ts +15 -14
  207. package/dist/react/avatarbutton/index.js +1 -10
  208. package/dist/react/badge/index.d.ts +16 -20
  209. package/dist/react/badge/index.js +1 -17
  210. package/dist/react/banner/index.d.ts +17 -17
  211. package/dist/react/banner/index.js +1 -13
  212. package/dist/react/brandvisual/index.d.ts +15 -12
  213. package/dist/react/brandvisual/index.js +0 -10
  214. package/dist/react/bullet/index.d.ts +15 -16
  215. package/dist/react/bullet/index.js +0 -15
  216. package/dist/react/button/index.d.ts +21 -52
  217. package/dist/react/button/index.js +1 -47
  218. package/dist/react/buttongroup/index.d.ts +17 -20
  219. package/dist/react/buttongroup/index.js +0 -17
  220. package/dist/react/buttonlink/index.d.ts +19 -16
  221. package/dist/react/buttonlink/index.js +1 -11
  222. package/dist/react/buttonsimple/index.d.ts +16 -25
  223. package/dist/react/buttonsimple/index.js +0 -22
  224. package/dist/react/calendar/index.d.ts +17 -11
  225. package/dist/react/calendar/index.js +0 -8
  226. package/dist/react/card/index.d.ts +18 -17
  227. package/dist/react/card/index.js +0 -13
  228. package/dist/react/cardbutton/index.d.ts +20 -14
  229. package/dist/react/cardbutton/index.js +0 -9
  230. package/dist/react/cardcheckbox/index.d.ts +20 -19
  231. package/dist/react/cardcheckbox/index.js +0 -14
  232. package/dist/react/cardradio/index.d.ts +20 -20
  233. package/dist/react/cardradio/index.js +0 -15
  234. package/dist/react/checkbox/index.d.ts +22 -26
  235. package/dist/react/checkbox/index.js +1 -22
  236. package/dist/react/chip/index.d.ts +20 -13
  237. package/dist/react/chip/index.js +0 -9
  238. package/dist/react/coachmark/index.d.ts +22 -22
  239. package/dist/react/coachmark/index.js +1 -18
  240. package/dist/react/combobox/index.d.ts +27 -37
  241. package/dist/react/combobox/index.js +1 -32
  242. package/dist/react/controltypeprovider/index.d.ts +19 -11
  243. package/dist/react/controltypeprovider/index.js +0 -10
  244. package/dist/react/datepicker/index.d.ts +20 -14
  245. package/dist/react/datepicker/index.js +0 -9
  246. package/dist/react/dialog/index.d.ts +25 -40
  247. package/dist/react/dialog/index.js +1 -35
  248. package/dist/react/divider/index.d.ts +23 -25
  249. package/dist/react/divider/index.js +0 -23
  250. package/dist/react/filterchip/index.d.ts +20 -9
  251. package/dist/react/filterchip/index.js +0 -5
  252. package/dist/react/formfieldgroup/index.d.ts +18 -19
  253. package/dist/react/formfieldgroup/index.js +0 -15
  254. package/dist/react/formfieldwrapper/index.d.ts +16 -8
  255. package/dist/react/formfieldwrapper/index.js +0 -4
  256. package/dist/react/icon/index.d.ts +16 -41
  257. package/dist/react/icon/index.js +0 -39
  258. package/dist/react/iconprovider/index.d.ts +14 -24
  259. package/dist/react/iconprovider/index.js +0 -23
  260. package/dist/react/illustration/index.d.ts +16 -32
  261. package/dist/react/illustration/index.js +0 -30
  262. package/dist/react/illustrationprovider/index.d.ts +14 -24
  263. package/dist/react/illustrationprovider/index.js +0 -23
  264. package/dist/react/input/index.d.ts +21 -16
  265. package/dist/react/input/index.js +0 -11
  266. package/dist/react/inputchip/index.d.ts +19 -13
  267. package/dist/react/inputchip/index.js +0 -7
  268. package/dist/react/link/index.d.ts +18 -12
  269. package/dist/react/link/index.js +1 -9
  270. package/dist/react/linkbutton/index.d.ts +19 -12
  271. package/dist/react/linkbutton/index.js +1 -8
  272. package/dist/react/linksimple/index.d.ts +17 -10
  273. package/dist/react/linksimple/index.js +0 -7
  274. package/dist/react/list/index.d.ts +17 -7
  275. package/dist/react/list/index.js +0 -5
  276. package/dist/react/listbox/index.d.ts +21 -16
  277. package/dist/react/listbox/index.js +1 -11
  278. package/dist/react/listheader/index.d.ts +14 -6
  279. package/dist/react/listheader/index.js +0 -3
  280. package/dist/react/listitem/index.d.ts +20 -18
  281. package/dist/react/listitem/index.js +0 -13
  282. package/dist/react/marker/index.d.ts +15 -16
  283. package/dist/react/marker/index.js +0 -15
  284. package/dist/react/menubar/index.d.ts +12 -19
  285. package/dist/react/menubar/index.js +0 -19
  286. package/dist/react/menuitem/index.d.ts +18 -19
  287. package/dist/react/menuitem/index.js +1 -15
  288. package/dist/react/menuitemcheckbox/index.d.ts +19 -30
  289. package/dist/react/menuitemcheckbox/index.js +1 -25
  290. package/dist/react/menuitemradio/index.d.ts +18 -31
  291. package/dist/react/menuitemradio/index.js +1 -26
  292. package/dist/react/menupopover/index.d.ts +16 -38
  293. package/dist/react/menupopover/index.js +0 -34
  294. package/dist/react/menusection/index.d.ts +16 -12
  295. package/dist/react/menusection/index.js +0 -8
  296. package/dist/react/navmenuitem/index.d.ts +16 -15
  297. package/dist/react/navmenuitem/index.js +0 -11
  298. package/dist/react/optgroup/index.d.ts +17 -7
  299. package/dist/react/optgroup/index.js +1 -3
  300. package/dist/react/option/index.d.ts +17 -19
  301. package/dist/react/option/index.js +1 -15
  302. package/dist/react/password/index.d.ts +18 -17
  303. package/dist/react/password/index.js +0 -11
  304. package/dist/react/popover/index.d.ts +20 -52
  305. package/dist/react/popover/index.js +1 -47
  306. package/dist/react/presence/index.d.ts +17 -10
  307. package/dist/react/presence/index.js +1 -7
  308. package/dist/react/progressbar/index.d.ts +17 -13
  309. package/dist/react/progressbar/index.js +0 -9
  310. package/dist/react/progressspinner/index.d.ts +14 -19
  311. package/dist/react/progressspinner/index.js +0 -17
  312. package/dist/react/radio/index.d.ts +19 -41
  313. package/dist/react/radio/index.js +1 -37
  314. package/dist/react/radiogroup/index.d.ts +12 -5
  315. package/dist/react/radiogroup/index.js +0 -4
  316. package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
  317. package/dist/react/responsivesettingsprovider/index.js +0 -29
  318. package/dist/react/screenreaderannouncer/index.d.ts +12 -51
  319. package/dist/react/screenreaderannouncer/index.js +0 -51
  320. package/dist/react/searchfield/index.d.ts +16 -24
  321. package/dist/react/searchfield/index.js +0 -20
  322. package/dist/react/searchpopover/index.d.ts +16 -20
  323. package/dist/react/searchpopover/index.js +0 -16
  324. package/dist/react/select/index.d.ts +23 -19
  325. package/dist/react/select/index.js +1 -14
  326. package/dist/react/selectlistbox/index.d.ts +12 -8
  327. package/dist/react/selectlistbox/index.js +0 -7
  328. package/dist/react/sidenavigation/index.d.ts +21 -41
  329. package/dist/react/sidenavigation/index.js +1 -35
  330. package/dist/react/skeleton/index.d.ts +14 -15
  331. package/dist/react/skeleton/index.js +0 -13
  332. package/dist/react/slider/index.d.ts +17 -15
  333. package/dist/react/slider/index.js +0 -11
  334. package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
  335. package/dist/react/spatialnavigationprovider/index.js +1 -214
  336. package/dist/react/spinner/index.d.ts +15 -27
  337. package/dist/react/spinner/index.js +0 -25
  338. package/dist/react/staticcheckbox/index.d.ts +16 -21
  339. package/dist/react/staticcheckbox/index.js +0 -17
  340. package/dist/react/staticchip/index.d.ts +17 -8
  341. package/dist/react/staticchip/index.js +0 -5
  342. package/dist/react/staticradio/index.d.ts +15 -19
  343. package/dist/react/staticradio/index.js +0 -16
  344. package/dist/react/statictoggle/index.d.ts +16 -21
  345. package/dist/react/statictoggle/index.js +0 -17
  346. package/dist/react/stepper/index.d.ts +13 -5
  347. package/dist/react/stepper/index.js +0 -3
  348. package/dist/react/stepperconnector/index.d.ts +13 -6
  349. package/dist/react/stepperconnector/index.js +0 -4
  350. package/dist/react/stepperitem/index.d.ts +16 -14
  351. package/dist/react/stepperitem/index.js +1 -10
  352. package/dist/react/tab/index.d.ts +20 -23
  353. package/dist/react/tab/index.js +1 -16
  354. package/dist/react/tablist/index.d.ts +18 -30
  355. package/dist/react/tablist/index.js +0 -24
  356. package/dist/react/text/index.d.ts +12 -13
  357. package/dist/react/text/index.js +0 -12
  358. package/dist/react/textarea/index.d.ts +17 -39
  359. package/dist/react/textarea/index.js +0 -34
  360. package/dist/react/themeprovider/index.d.ts +13 -27
  361. package/dist/react/themeprovider/index.js +0 -25
  362. package/dist/react/timepicker/index.d.ts +17 -19
  363. package/dist/react/timepicker/index.js +0 -14
  364. package/dist/react/toast/index.d.ts +20 -12
  365. package/dist/react/toast/index.js +1 -7
  366. package/dist/react/toggle/index.d.ts +18 -24
  367. package/dist/react/toggle/index.js +1 -21
  368. package/dist/react/toggletip/index.d.ts +18 -28
  369. package/dist/react/toggletip/index.js +1 -24
  370. package/dist/react/tooltip/index.d.ts +16 -16
  371. package/dist/react/tooltip/index.js +0 -13
  372. package/dist/react/typewriter/index.d.ts +18 -34
  373. package/dist/react/typewriter/index.js +1 -31
  374. package/dist/react/verticaltablist/index.d.ts +17 -30
  375. package/dist/react/verticaltablist/index.js +0 -26
  376. package/dist/react/virtualizedlist/index.d.ts +16 -58
  377. package/dist/react/virtualizedlist/index.js +0 -55
  378. package/dist/utils/dom.js +1 -1
  379. package/package.json +1 -1
@@ -1,27 +1,31 @@
1
1
  import Component from '../../components/progressbar';
2
2
  /**
3
- * mdc-progressbar component visually represents a progress indicator, typically used to show
4
- * the completion state of an ongoing process (e.g., loading, file upload, etc.).
5
- * It contains an optional label and an optional helper text.
6
- *
7
- * - It supports mainly two types: Default and Inline
8
- * - It supports three validation variants: Default, Success and Error.
9
- *
10
- * This component is created by extending FormfieldWrapper.
11
- *
3
+ * The progressbar is a determinate, linear progress indicator that visually represents the completion state of an ongoing process (loading, uploading, syncing, etc.). It renders an optional label, an optional helper/validation text, and a coloured bar that fills from 0 to 100 percent.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-progressbar` for a determinate task whose completion percentage is known.
8
+ * - Use the `default` variant when the progressbar should stand on its own with a label above it and a percentage readout.
9
+ * - Use the `inline` variant when the progressbar must sit on a single line next to its label (e.g. inside a list row).
10
+ *
11
+ * **When not to use**
12
+ *
13
+ * - Use `mdc-progressspinner` for a circular determinate indicator (for example to indicate progress in a compact area or to surface a completion/error glyph at 100%).
14
+ * - Use `mdc-spinner` for an indeterminate "work in progress" state where no percentage is known.
15
+ *
12
16
  * @tagname mdc-progressbar
13
- *
17
+ *
14
18
  * @dependency mdc-icon
15
19
  * @dependency mdc-text
16
- *
20
+ *
17
21
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
18
22
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
19
- *
23
+ *
20
24
  * @csspart label - The label element.
21
25
  * @csspart label-text - The container for the label and required indicator elements.
22
26
  * @csspart help-text - The helper/validation text element.
23
27
  * @csspart help-text-container - The container for the helper/validation icon and text elements.
24
- *
28
+ *
25
29
  * @cssproperty --mdc-label-font-size - Font size for the label text.
26
30
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
27
31
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -3,15 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/progressbar';
4
4
  import { TAG_NAME } from '../../components/progressbar/progressbar.constants';
5
5
  /**
6
- * mdc-progressbar component visually represents a progress indicator, typically used to show
7
- * the completion state of an ongoing process (e.g., loading, file upload, etc.).
8
- * It contains an optional label and an optional helper text.
9
- *
10
- * - It supports mainly two types: Default and Inline
11
- * - It supports three validation variants: Default, Success and Error.
12
- *
13
- * This component is created by extending FormfieldWrapper.
14
- *
15
6
  * @tagname mdc-progressbar
16
7
  *
17
8
  * @dependency mdc-icon
@@ -1,30 +1,25 @@
1
1
  import Component from '../../components/progressspinner';
2
2
  /**
3
- * `mdc-progressspinner` is a customizable, circular progress indicator component.
4
- * It visually represents the current completion state of a process, such as loading,
5
- * syncing, uploading, or any ongoing task that has a measurable percentage.
6
- *
7
- * The spinner is built using SVG with two concentric `<circle>` elements:
8
- * - The `progress` arc represents the portion of work completed.
9
- * - The `track` arc represents the remaining part.
10
- *
11
- * A visual gap is maintained between the progress and track arcs to clearly
12
- * distinguish the two segments. The component smoothly animates arc length
13
- * and respects accessibility best practices with ARIA attributes.
14
- *
15
- * The component supports different states:
16
- * - **Default**: Circular spinner shows the progress.
17
- * - **Success**: Displays a checkmark icon when progress reaches 100%.
18
- * - **Error**: Displays an error icon when in an error state.
19
- *
3
+ * The progressspinner is a determinate, circular progress indicator built from two concentric SVG arcs — one representing completed work and one representing remaining work. When the value reaches 100 the spinner is replaced by a check-circle success icon; when the component is in an error state it is replaced by an error icon.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-progressspinner` for a determinate task whose completion percentage is known and where a compact, circular indicator fits better than a linear bar.
8
+ * - Use it when the final state should be communicated with a clear success or error glyph rather than a filled bar.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Use `mdc-progressbar` when a linear bar with an explicit percentage readout and label is more appropriate.
13
+ * - Use `mdc-spinner` for an indeterminate spinner where no percentage is known.
14
+ *
20
15
  * @tagname mdc-progressspinner
21
- *
16
+ *
22
17
  * @cssproperty --mdc-spinner-size - The size of the spinner.
23
18
  * @cssproperty --mdc-track-color - The color of the spinner track.
24
19
  * @cssproperty --mdc-progress-color - The color of the spinner progress.
25
20
  * @cssproperty --mdc-progress-success-color - The color of the spinner when in success state.
26
21
  * @cssproperty --mdc-progress-error-color - The color of the spinner when in error state.
27
- *
22
+ *
28
23
  * @csspart error-icon - The error icon of the progressspinner.
29
24
  * @csspart spinner-base - The base of the progressspinner.
30
25
  * @csspart spinner-container - The container of the progressspinner.
@@ -3,23 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/progressspinner';
4
4
  import { TAG_NAME } from '../../components/progressspinner/progressspinner.constants';
5
5
  /**
6
- * `mdc-progressspinner` is a customizable, circular progress indicator component.
7
- * It visually represents the current completion state of a process, such as loading,
8
- * syncing, uploading, or any ongoing task that has a measurable percentage.
9
- *
10
- * The spinner is built using SVG with two concentric `<circle>` elements:
11
- * - The `progress` arc represents the portion of work completed.
12
- * - The `track` arc represents the remaining part.
13
- *
14
- * A visual gap is maintained between the progress and track arcs to clearly
15
- * distinguish the two segments. The component smoothly animates arc length
16
- * and respects accessibility best practices with ARIA attributes.
17
- *
18
- * The component supports different states:
19
- * - **Default**: Circular spinner shows the progress.
20
- * - **Success**: Displays a checkmark icon when progress reaches 100%.
21
- * - **Error**: Displays an error icon when in an error state.
22
- *
23
6
  * @tagname mdc-progressspinner
24
7
  *
25
8
  * @cssproperty --mdc-spinner-size - The size of the spinner.
@@ -2,58 +2,36 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/radio';
3
3
  import type { Events } from '../../components/radio/radio.types';
4
4
  /**
5
- * The Radio component allows users to select a single option from a group of mutually exclusive choices.
6
- * Unlike checkboxes which allow multiple selections, radio buttons ensure only one option can be selected
7
- * at a time within the same group. These are commonly used in forms, surveys, and settings where users
8
- * need to make a single selection from multiple options.
9
- *
10
- * To create a group of radio buttons, use the `mdc-radiogroup` component or ensure all radio buttons
11
- * share the same `name` attribute.
12
- *
13
- * ## Validation
14
- *
15
- * Radio component support native form validation. But it does not have default validation message.
16
- * Also, `required` attribute does not render indicator (red asterisk) for the radio component.
17
- *
18
- * The recommended way to show validation message for radio groups is to wrap the `mdc-radio` with `mdc-radiogroup`
19
- * and set the `help-text` of the `mdc-radiogroup` based on its validation state.
20
- *
21
- * Alternatively you can also set the `validation-message` attribute of the `mdc-radio`. This message will appear
22
- * in a native tooltip when the radio is checked and invalid.
23
- *
24
- * ## Accessibility
25
- *
26
- * - Provide clear labels that describe each option
27
- * - Use `data-aria-label` when a visual label is not present
28
- * - Keyboard navigation: Arrow keys to move between options, Space to select, Tab to navigate groups, Enter to submit form
29
- * - Group related radio buttons using the same `name` attribute or `mdc-radiogroup` component
30
- *
31
- * ## Styling
32
- *
33
- * Use the `radio-indicator` part to apply custom styles to the radio visual element.
34
- * This part exposes the underlying [StaticRadio](?path=/docs/components-decorator-staticradio--docs) component for advanced styling.
35
- *
36
- * The `indicator` slot allows replacing the default radio circle with a custom element.
37
- * When a custom indicator is slotted, the component automatically adds the `mdc-focus-ring`
38
- * class to the host element. This shifts the focus ring from the default static radio to the
39
- * entire host element, ensuring keyboard focus remains visible.
40
- *
5
+ * The radio is a single, form-associated radio button that lets the user pick exactly one option from a set of mutually exclusive choices. Radios that share a `name` attribute are grouped together — selecting one unchecks the others — and arrow-key navigation moves focus and selection between members of the group.
6
+ *
7
+ * **When to use**
8
+ *
9
+ * - Use `mdc-radio` (typically inside `mdc-radiogroup`) when the user must pick exactly one option from a short, mutually exclusive list.
10
+ * - Use it in forms, surveys, and settings where every option needs to be visible at once.
11
+ *
12
+ * **When not to use**
13
+ *
14
+ * - Use `mdc-checkbox` when the user can pick zero, one, or more options.
15
+ * - Use `mdc-select` or `mdc-combobox` when the list of options is long or should be revealed on demand.
16
+ * - Use `mdc-cardradio` when each option should render as a larger, card-shaped surface.
17
+ * - Use `mdc-toggle` for an on/off binary control.
18
+ *
19
+ * @tagname mdc-radio
20
+ *
41
21
  * @dependency mdc-button
42
22
  * @dependency mdc-icon
43
23
  * @dependency mdc-text
44
24
  * @dependency mdc-staticradio
45
25
  * @dependency mdc-toggletip
46
- *
47
- * @tagname mdc-radio
48
- *
26
+ *
49
27
  * @event input - (React: onInput) Event that gets dispatched when the radio state changes (before the change event).
50
28
  * @event change - (React: onChange) Event that gets dispatched when the radio state changes (after the input event).
51
29
  * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
52
- *
30
+ *
53
31
  * @csspart label - The label element.
54
32
  * @csspart label-text - The container for the label and required indicator elements.
55
33
  * @csspart radio-indicator - The staticradio that provides the visual radio appearance.
56
- *
34
+ *
57
35
  * @slot indicator - Slot for the radio indicator element. If not provided, a default styled radio will be rendered.
58
36
  * @slot label - Slot for the label of the radio.
59
37
  */
@@ -3,41 +3,7 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/radio';
4
4
  import { TAG_NAME } from '../../components/radio/radio.constants';
5
5
  /**
6
- * The Radio component allows users to select a single option from a group of mutually exclusive choices.
7
- * Unlike checkboxes which allow multiple selections, radio buttons ensure only one option can be selected
8
- * at a time within the same group. These are commonly used in forms, surveys, and settings where users
9
- * need to make a single selection from multiple options.
10
- *
11
- * To create a group of radio buttons, use the `mdc-radiogroup` component or ensure all radio buttons
12
- * share the same `name` attribute.
13
- *
14
- * ## Validation
15
- *
16
- * Radio component support native form validation. But it does not have default validation message.
17
- * Also, `required` attribute does not render indicator (red asterisk) for the radio component.
18
- *
19
- * The recommended way to show validation message for radio groups is to wrap the `mdc-radio` with `mdc-radiogroup`
20
- * and set the `help-text` of the `mdc-radiogroup` based on its validation state.
21
- *
22
- * Alternatively you can also set the `validation-message` attribute of the `mdc-radio`. This message will appear
23
- * in a native tooltip when the radio is checked and invalid.
24
- *
25
- * ## Accessibility
26
- *
27
- * - Provide clear labels that describe each option
28
- * - Use `data-aria-label` when a visual label is not present
29
- * - Keyboard navigation: Arrow keys to move between options, Space to select, Tab to navigate groups, Enter to submit form
30
- * - Group related radio buttons using the same `name` attribute or `mdc-radiogroup` component
31
- *
32
- * ## Styling
33
- *
34
- * Use the `radio-indicator` part to apply custom styles to the radio visual element.
35
- * This part exposes the underlying [StaticRadio](?path=/docs/components-decorator-staticradio--docs) component for advanced styling.
36
- *
37
- * The `indicator` slot allows replacing the default radio circle with a custom element.
38
- * When a custom indicator is slotted, the component automatically adds the `mdc-focus-ring`
39
- * class to the host element. This shifts the focus ring from the default static radio to the
40
- * entire host element, ensuring keyboard focus remains visible.
6
+ * @tagname mdc-radio
41
7
  *
42
8
  * @dependency mdc-button
43
9
  * @dependency mdc-icon
@@ -45,8 +11,6 @@ import { TAG_NAME } from '../../components/radio/radio.constants';
45
11
  * @dependency mdc-staticradio
46
12
  * @dependency mdc-toggletip
47
13
  *
48
- * @tagname mdc-radio
49
- *
50
14
  * @event input - (React: onInput) Event that gets dispatched when the radio state changes (before the change event).
51
15
  * @event change - (React: onChange) Event that gets dispatched when the radio state changes (after the input event).
52
16
  * @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
@@ -1,11 +1,18 @@
1
1
  import Component from '../../components/radiogroup';
2
2
  /**
3
- * `mdc-radiogroup` - This is the wrapper component for radio buttons which are grouped together.
4
- * It can have a header text and a description. It enables users to select a single option from a set of options.
5
- * It is often used in forms, settings, and selection in lists. It automatically group the radio buttons inside it.
6
- *
3
+ * The radiogroup is a labelled wrapper that bundles related `mdc-radio` (or `mdc-cardradio`) elements together. It renders an optional header label and helper text, propagates a shared `name` and `required` state to its radio children, and exposes the wrapped controls as a `radiogroup` to assistive technologies.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use `mdc-radiogroup` whenever you render a set of `mdc-radio` (or `mdc-cardradio`) options that belong to the same question.
8
+ * - Use it to surface a single label and a single helper/validation message for the whole group.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Use `mdc-formfieldgroup` directly when grouping checkbox or toggle controls instead of radios.
13
+ * - Use `mdc-select` or `mdc-combobox` when the user should pick one option from a long or dynamic list that does not need to be visible at once.
14
+ *
7
15
  * @tagname mdc-radiogroup
8
- *
9
16
  */
10
17
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
11
18
  export default reactWrapper;
@@ -3,10 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/radiogroup';
4
4
  import { TAG_NAME } from '../../components/radiogroup/radiogroup.constants';
5
5
  /**
6
- * `mdc-radiogroup` - This is the wrapper component for radio buttons which are grouped together.
7
- * It can have a header text and a description. It enables users to select a single option from a set of options.
8
- * It is often used in forms, settings, and selection in lists. It automatically group the radio buttons inside it.
9
- *
10
6
  * @tagname mdc-radiogroup
11
7
  *
12
8
  */
@@ -1,34 +1,16 @@
1
1
  import Component from '../../components/responsivesettingsprovider';
2
2
  /**
3
- * `mdc-responsivesettingsprovider` is a provider component that supplies responsive settings
4
- * context to its child components.
5
- *
6
- * This component does not make any assumptions about how the values are determined. Values can be set
7
- * based on media queries or other device detection mechanisms.This way consumer can mix and match
8
- * different settings depending on their target devices and use cases.
9
- *
10
- * For example, when the device has table screen size/resolution, but because it is fixed dialog like
11
- * popovers provide better user experience.
12
- *
13
- * ## Responsive settings
14
- *
15
- * ### Media
16
- *
17
- * Generic media type to enforce responsive behavior in child components.
18
- * Consumer component can use the media type from the context or
19
- * just use CSS selector like [media="mobile"] to apply responsive styles.
20
- *
21
- * It is "unknown" by default so components can fall back to there default behavior.
22
- *
23
- * ### Popover Positioning
24
- *
25
- * By default, popovers are positioned close to the trigger element. But on small screens (e.g.: mobile devices),
26
- * it is often better to show popovers/menus at the center of the screen like dialogs.
27
- *
28
- * ### Force Fullscreen Dialog
29
- *
30
- * Some components like dialogs can be shown in fullscreen mode on small screens for better user experience.
31
- *
3
+ * The responsivesettingsprovider is a provider component that supplies a shared responsive-settings context to every descendant component that consumes it. The provider does not detect screen size itself — the consumer chooses when and how to update its attributes (via media queries, device-detection scripts, or any other strategy) so the same descendant components can adapt their layout without each one re-implementing breakpoint logic.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Wrap a subtree (typically near the application root) with `mdc-responsivesettingsprovider` when descendant components should adapt their layout based on a shared responsive signal for example, rendering popovers centred on small screens or forcing dialogs to fullscreen on mobile.
8
+ *
9
+ * **When not to use**
10
+ *
11
+ * - Do not use it as a generic media-query helper for arbitrary CSS — components that don't read this context will not be affected.
12
+ * - Do not use it for theme tokens (use `mdc-themeprovider`) or icon set configuration (use `mdc-iconprovider`).
13
+ *
32
14
  * @tagname mdc-responsivesettingsprovider
33
15
  */
34
16
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,35 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/responsivesettingsprovider';
4
4
  import { TAG_NAME } from '../../components/responsivesettingsprovider/responsivesettingsprovider.constants';
5
5
  /**
6
- * `mdc-responsivesettingsprovider` is a provider component that supplies responsive settings
7
- * context to its child components.
8
- *
9
- * This component does not make any assumptions about how the values are determined. Values can be set
10
- * based on media queries or other device detection mechanisms.This way consumer can mix and match
11
- * different settings depending on their target devices and use cases.
12
- *
13
- * For example, when the device has table screen size/resolution, but because it is fixed dialog like
14
- * popovers provide better user experience.
15
- *
16
- * ## Responsive settings
17
- *
18
- * ### Media
19
- *
20
- * Generic media type to enforce responsive behavior in child components.
21
- * Consumer component can use the media type from the context or
22
- * just use CSS selector like [media="mobile"] to apply responsive styles.
23
- *
24
- * It is "unknown" by default so components can fall back to there default behavior.
25
- *
26
- * ### Popover Positioning
27
- *
28
- * By default, popovers are positioned close to the trigger element. But on small screens (e.g.: mobile devices),
29
- * it is often better to show popovers/menus at the center of the screen like dialogs.
30
- *
31
- * ### Force Fullscreen Dialog
32
- *
33
- * Some components like dialogs can be shown in fullscreen mode on small screens for better user experience.
34
- *
35
6
  * @tagname mdc-responsivesettingsprovider
36
7
  */
37
8
  const reactWrapper = createComponent({
@@ -1,56 +1,17 @@
1
1
  import Component from '../../components/screenreaderannouncer';
2
2
  /**
3
- * `mdc-screenreaderannouncer` can be used to announce messages with the screen reader.
4
- *
5
- * To make an announcement set `announcement` attribute on the `mdc-screenreaderannouncer` element.
6
- *
7
- * Consumers can also use the public `announce` function to trigger announcements programmatically
8
- * by passing an options object where `announcement` is required and all other fields are optional.
9
- *
10
- * **Internal logic**
11
- *
12
- * When the screenreader announcer is connected to the DOM, if the `identity` attribute is not
13
- * provided, it is set to `mdc-screenreaderannouncer-identity` and a `<div>` element with this id is created
14
- * in the DOM. If the `identity` attribute is provided, the identity element is used and no new element
15
- * is created in the DOM.
16
- *
17
- * If you provide a custom `identity`, you must ensure that the element exists and is visually hidden.
18
- *
19
- * Example CSS:
20
- *
21
- * ```css
22
- * #your-custom-announcer-id {
23
- * clip: rect(0 0 0 0);
24
- * clip-path: inset(50%);
25
- * height: 1px;
26
- * overflow: hidden;
27
- * position: absolute;
28
- * white-space: nowrap;
29
- * width: 1px;
30
- * }
31
- * ```
32
- *
33
- * When the `announcement` attribute is set, the screenreader announcer will create a `<div>` element with
34
- * `aria-live` attribute set to the value of `data-aria-live` attribute and append it to the `identity` element.
35
- * After delay of `delay` milliseconds, a `<p>` element with the announcement text is appended to the `<div>` element.
36
- *
37
- * The announcement `<div>` element is removed from the DOM after `timeout` milliseconds.
38
- *
39
- * When the screen announcer component is disconnected from the DOM, all the timeouts are cleared and
40
- * all the announcement elements added are removed from the DOM and timeouts cleared.
41
- *
42
- * **Note**
43
- * 1. The default delay of 150 miliseconds is used as we dynamically generate the
44
- * aria-live region in the DOM and add the announcement text to it.
45
- * 2. If multiple `mdc-screenreaderannouncer` instances use the same `identity`, `data-aria-live`
46
- * for that identity is effectively determined by the first instance that creates announcements for it.
47
- * Changing `data-aria-live` in later instances for the same identity will not update already-created
48
- * live-region containers.
49
- * 3. If no `identity` is provided, all the screen reader components will create and use only one
50
- * `<div>` element with id `mdc-screenreaderannouncer-identity` in the DOM.
51
- *
52
- * Reference: https://patrickhlauke.github.io/aria/tests/live-regions/
53
- *
3
+ * The screenreaderannouncer is a non-visual helper component that pushes text into a shared aria-live region in the light DOM so that screen readers announce it. It manages the live-region container, debouncing, and clean-up so consumers only need to set an `announcement` (or call the public `announce()` method) when they want a message read out.
4
+ *
5
+ * **When to use**
6
+ *
7
+ * - Use it to surface a status update that has no visible UI counterpart — for example, "5 new messages", "Saved", or "Failed to load" so screen-reader users hear the change.
8
+ * - Use it when a visible status message exists but is rendered outside the natural reading order or only briefly, and you want to guarantee assistive-technology announcement.
9
+ *
10
+ * **When not to use**
11
+ *
12
+ * - Do not use it for content that is already in a visible, ARIA-live container, or for content that the screen reader will naturally announce because of focus changes.
13
+ * - Do not use it as a logging or toast surface — it is not a UI component and renders nothing visible.
14
+ *
54
15
  * @tagname mdc-screenreaderannouncer
55
16
  */
56
17
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -3,57 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/screenreaderannouncer';
4
4
  import { TAG_NAME } from '../../components/screenreaderannouncer/screenreaderannouncer.constants';
5
5
  /**
6
- * `mdc-screenreaderannouncer` can be used to announce messages with the screen reader.
7
- *
8
- * To make an announcement set `announcement` attribute on the `mdc-screenreaderannouncer` element.
9
- *
10
- * Consumers can also use the public `announce` function to trigger announcements programmatically
11
- * by passing an options object where `announcement` is required and all other fields are optional.
12
- *
13
- * **Internal logic**
14
- *
15
- * When the screenreader announcer is connected to the DOM, if the `identity` attribute is not
16
- * provided, it is set to `mdc-screenreaderannouncer-identity` and a `<div>` element with this id is created
17
- * in the DOM. If the `identity` attribute is provided, the identity element is used and no new element
18
- * is created in the DOM.
19
- *
20
- * If you provide a custom `identity`, you must ensure that the element exists and is visually hidden.
21
- *
22
- * Example CSS:
23
- *
24
- * ```css
25
- * #your-custom-announcer-id {
26
- * clip: rect(0 0 0 0);
27
- * clip-path: inset(50%);
28
- * height: 1px;
29
- * overflow: hidden;
30
- * position: absolute;
31
- * white-space: nowrap;
32
- * width: 1px;
33
- * }
34
- * ```
35
- *
36
- * When the `announcement` attribute is set, the screenreader announcer will create a `<div>` element with
37
- * `aria-live` attribute set to the value of `data-aria-live` attribute and append it to the `identity` element.
38
- * After delay of `delay` milliseconds, a `<p>` element with the announcement text is appended to the `<div>` element.
39
- *
40
- * The announcement `<div>` element is removed from the DOM after `timeout` milliseconds.
41
- *
42
- * When the screen announcer component is disconnected from the DOM, all the timeouts are cleared and
43
- * all the announcement elements added are removed from the DOM and timeouts cleared.
44
- *
45
- * **Note**
46
- * 1. The default delay of 150 miliseconds is used as we dynamically generate the
47
- * aria-live region in the DOM and add the announcement text to it.
48
- * 2. If multiple `mdc-screenreaderannouncer` instances use the same `identity`, `data-aria-live`
49
- * for that identity is effectively determined by the first instance that creates announcements for it.
50
- * Changing `data-aria-live` in later instances for the same identity will not update already-created
51
- * live-region containers.
52
- * 3. If no `identity` is provided, all the screen reader components will create and use only one
53
- * `<div>` element with id `mdc-screenreaderannouncer-identity` in the DOM.
54
- *
55
- * Reference: https://patrickhlauke.github.io/aria/tests/live-regions/
56
- *
57
6
  * @tagname mdc-screenreaderannouncer
58
7
  */
59
8
  const reactWrapper = createComponent({
@@ -4,35 +4,27 @@ import type { Events } from '../../components/searchfield/searchfield.types';
4
4
  import type { Events as EventsInherited0 } from '../../components/input/input.types';
5
5
  import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLimitMixin.ts';
6
6
  /**
7
- * `mdc-searchfield` component is used as an input field for search functionality.
8
- *
9
- * It supports any interactable Chip component as filters. (`mdc-inputchip`, `mdc-alertchip`, `mdc-chip`)
10
- * Chips are rendered inline with the search input text, behaving like single characters.
11
- * Users can traverse the cursor between chips and text using arrow keys,
12
- * and remove a chip by pressing Backspace when the cursor is adjacent to it.
13
- *
14
- * This component is built by extending the `mdc-input` component.
15
- *
16
- * Searchfield supports controlled vs uncontrolled behavior for chip filters, which can be set via the `control-type` attribute:
17
- * - In **uncontrolled** mode (default), when a chip is removed via the UI, it is automatically removed from the DOM and a `chipRemove` event is dispatched with the removed chip in the event detail. The consumer can listen to the `chipRemove` event but does not need to do anything to remove the chip from the DOM.
18
- * - In **controlled** mode (`control-type="controlled"`), when a chip is removed via the UI, it is NOT removed from the DOM, but a `chipRemove` event is still dispatched with the "removed" chip in the event detail. The consumer must listen to the `chipRemove` event and handle removing the chip from the DOM themselves (e.g., by updating their state that controls which chips are rendered).
19
- *
20
- * **Accessibility:**
21
- *
22
- * NOTE: this component should not be used in combination with a Popover or Listbox component.
23
- * Search results should be shown permanently on the page if using this component.
24
- *
25
- * For a search field that opens a Popover, use the `mdc-searchpopover` widget instead.
26
- *
7
+ * The searchfield is a single-line text input tailored for search. It renders a leading search icon, a trailing clear button, and an inline area in front of the text caret where chip filters can be slotted. Chips behave like single characters in the input flow: they share the cursor with the text and can be focused, navigated, and removed with the keyboard.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use it whenever the user types a query to search a list, table, or other content rendered on the same page.
12
+ * - Use it with slotted chip filters (`mdc-inputchip`, `mdc-chip`, `mdc-alertchip`) when the search query is refined by removable filter tokens that should appear inline with the input text.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Do not use it for a search that opens a popover / listbox of suggestions or results. Use `mdc-searchpopover` instead — pairing this component with a Popover or Listbox is not supported.
17
+ * - Do not use it for free-form text entry that is not a search query use `mdc-input` (or `mdc-textarea`) directly.
18
+ *
27
19
  * @tagname mdc-searchfield
28
- *
20
+ *
29
21
  * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).
30
22
  * @event change - (React: onChange) This event is dispatched when the value of the input field changes (on blur).
31
23
  * @event focus - (React: onFocus) This event is dispatched when the input receives focus.
32
24
  * @event blur - (React: onBlur) This event is dispatched when the input loses focus.
33
25
  * @event clear - (React: onClear) This event is dispatched when the input text is cleared.
34
26
  * @event chipRemove - (React: onChipRemove) This event is dispatched when a chip filter is removed. The removed chip element is available in event.detail.chip. In `uncontrolled` mode (default) the chip is removed from the DOM automatically; in `controlled` mode only the event is fired and the consumer is responsible for removing the chip.
35
- *
27
+ *
36
28
  * @slot filters - Slot for chip filters rendered inline with the input text
37
29
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
38
30
  * @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.
@@ -42,7 +34,7 @@ import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLim
42
34
  * @slot input-leading-icon - Slot for the leading icon before the input field. If not provided, the `leadingIcon` property will be used to render the leading icon.
43
35
  * @slot input-prefix-text - Slot for the prefix text before the input field. If not provided, the `prefixText` property will be used to render the prefix text.
44
36
  * @slot trailing-button - Slot for the trailing button to clear the input field. If not provided, the clear button will be rendered when `trailingButton` property is set to true.
45
- *
37
+ *
46
38
  * @cssproperty --mdc-label-font-size - Font size for the label text.
47
39
  * @cssproperty --mdc-label-font-weight - Font weight for the label text.
48
40
  * @cssproperty --mdc-label-line-height - Line height for the label text.
@@ -58,7 +50,7 @@ import type { Events as EventsInherited1 } from '../../utils/mixins/CharacterLim
58
50
  * @cssproperty --mdc-input-support-text-color - Text color for the help text
59
51
  * @cssproperty --mdc-input-selection-text-color - Text color for the selected text
60
52
  * @cssproperty --mdc-input-selection-background-color - Background color for the selected text
61
- *
53
+ *
62
54
  * @csspart label - The label element.
63
55
  * @csspart label-text - The container for the label and required indicator elements.
64
56
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -3,26 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/searchfield';
4
4
  import { TAG_NAME } from '../../components/searchfield/searchfield.constants';
5
5
  /**
6
- * `mdc-searchfield` component is used as an input field for search functionality.
7
- *
8
- * It supports any interactable Chip component as filters. (`mdc-inputchip`, `mdc-alertchip`, `mdc-chip`)
9
- * Chips are rendered inline with the search input text, behaving like single characters.
10
- * Users can traverse the cursor between chips and text using arrow keys,
11
- * and remove a chip by pressing Backspace when the cursor is adjacent to it.
12
- *
13
- * This component is built by extending the `mdc-input` component.
14
- *
15
- * Searchfield supports controlled vs uncontrolled behavior for chip filters, which can be set via the `control-type` attribute:
16
- * - In **uncontrolled** mode (default), when a chip is removed via the UI, it is automatically removed from the DOM and a `chipRemove` event is dispatched with the removed chip in the event detail. The consumer can listen to the `chipRemove` event but does not need to do anything to remove the chip from the DOM.
17
- * - In **controlled** mode (`control-type="controlled"`), when a chip is removed via the UI, it is NOT removed from the DOM, but a `chipRemove` event is still dispatched with the "removed" chip in the event detail. The consumer must listen to the `chipRemove` event and handle removing the chip from the DOM themselves (e.g., by updating their state that controls which chips are rendered).
18
- *
19
- * **Accessibility:**
20
- *
21
- * NOTE: this component should not be used in combination with a Popover or Listbox component.
22
- * Search results should be shown permanently on the page if using this component.
23
- *
24
- * For a search field that opens a Popover, use the `mdc-searchpopover` widget instead.
25
- *
26
6
  * @tagname mdc-searchfield
27
7
  *
28
8
  * @event input - (React: onInput) This event is dispatched when the value of the input field changes (every press).