@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,38 +2,34 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/checkbox';
3
3
  import type { Events } from '../../components/checkbox/checkbox.types';
4
4
  /**
5
- * The Checkbox component allows users to select one or multiple options from a list, toggle features on/off,
6
- * or indicate agreement in forms and settings. These are commonly used in forms, lists, and settings panels
7
- * where users need to make selections or express preferences.
8
- *
9
- * To create a group of checkboxes, use the `mdc-formfieldgroup` component.
10
- *
11
- * **Note:** This component internally renders a native checkbox input element with custom styling.
12
- *
13
- * ## When to use
14
- *
15
- * Use checkboxes when users can select multiple options from a list, or when a single checkbox represents a binary choice (e.g., agreeing to terms).
16
- *
17
- * ## Accessibility
18
- * - Provide clear labels that describe what the checkbox controls
19
- * - Use `data-aria-label` when a visual label is not present
20
- * - Keyboard navigation: Space to toggle, Tab to navigate, Enter to submit form
21
- *
22
- * ## Styling
23
- * Use the `static-checkbox` part to apply custom styles to the checkbox visual element.
24
- * This part exposes the underlying [StaticCheckbox](?path=/docs/components-decorator-staticcheckbox--docs) component for advanced styling.
25
- *
5
+ * The checkbox is a form control that represents a binary choice ("checked"/"unchecked") or, when used in a group, allows multiple selections from a list. It wraps a native `<input type="checkbox">` and renders a custom visual through `mdc-staticcheckbox`, while preserving full form participation (value, name, validation, reset).
6
+ *
7
+ * A checkbox can also be in an `indeterminate` (mixed) state — typically used when a parent checkbox summarises a nested group whose children are not all in the same state.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-checkbox` when the user can select **any number** of options from a list (zero, one, or many).
12
+ * - Use a single `mdc-checkbox` for a binary choice that does not need to take effect immediately (e.g. agreeing to terms before submitting a form).
13
+ * - Use it inside `mdc-formfieldgroup` when several checkboxes belong to the same labelled group.
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Use `mdc-radio` (or `mdc-radiogroup`) when **only one** option in a set can be selected.
18
+ * - Use `mdc-toggle` for a binary on/off setting that takes effect immediately.
19
+ * - Use `mdc-cardcheckbox` when each option needs the visual weight of a card surface (image, title, supporting copy).
20
+ * - Use `mdc-staticcheckbox` when the visual is purely decorative and not user-interactive (e.g. inside a list item that owns the click target).
21
+ *
22
+ * @tagname mdc-checkbox
23
+ *
26
24
  * @dependency mdc-button
27
25
  * @dependency mdc-icon
28
26
  * @dependency mdc-staticcheckbox
29
27
  * @dependency mdc-text
30
28
  * @dependency mdc-toggletip
31
- *
32
- * @tagname mdc-checkbox
33
- *
29
+ *
34
30
  * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.
35
31
  * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
36
- *
32
+ *
37
33
  * @csspart label - The label element.
38
34
  * @csspart label-text - The container for the label and required indicator elements.
39
35
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -45,7 +41,7 @@ import type { Events } from '../../components/checkbox/checkbox.types';
45
41
  * @csspart checkbox-input - The native checkbox input element that provides the interactive functionality.
46
42
  * @csspart text-container - The container for the label and helper text elements.
47
43
  * @csspart static-checkbox - The staticcheckbox that provides the visual checkbox appearance.
48
- *
44
+ *
49
45
  * @cssstate checked - Active when the checkbox is checked.
50
46
  */
51
47
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
@@ -3,26 +3,7 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/checkbox';
4
4
  import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
5
5
  /**
6
- * The Checkbox component allows users to select one or multiple options from a list, toggle features on/off,
7
- * or indicate agreement in forms and settings. These are commonly used in forms, lists, and settings panels
8
- * where users need to make selections or express preferences.
9
- *
10
- * To create a group of checkboxes, use the `mdc-formfieldgroup` component.
11
- *
12
- * **Note:** This component internally renders a native checkbox input element with custom styling.
13
- *
14
- * ## When to use
15
- *
16
- * Use checkboxes when users can select multiple options from a list, or when a single checkbox represents a binary choice (e.g., agreeing to terms).
17
- *
18
- * ## Accessibility
19
- * - Provide clear labels that describe what the checkbox controls
20
- * - Use `data-aria-label` when a visual label is not present
21
- * - Keyboard navigation: Space to toggle, Tab to navigate, Enter to submit form
22
- *
23
- * ## Styling
24
- * Use the `static-checkbox` part to apply custom styles to the checkbox visual element.
25
- * This part exposes the underlying [StaticCheckbox](?path=/docs/components-decorator-staticcheckbox--docs) component for advanced styling.
6
+ * @tagname mdc-checkbox
26
7
  *
27
8
  * @dependency mdc-button
28
9
  * @dependency mdc-icon
@@ -30,8 +11,6 @@ import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
30
11
  * @dependency mdc-text
31
12
  * @dependency mdc-toggletip
32
13
  *
33
- * @tagname mdc-checkbox
34
- *
35
14
  * @event change - (React: onChange) Event that gets dispatched when the checkbox state changes.
36
15
  * @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
37
16
  *
@@ -2,27 +2,34 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/chip';
3
3
  import type { Events as EventsInherited } from '../../components/buttonsimple/buttonsimple.types';
4
4
  /**
5
- * mdc-chip is an interactive element that can be used to represent a chip. It supports a leading icon along with label.
6
- * Consumers can wrap this component around a tooltip to provide additional context.
7
- *
8
- * It is recommended to keep the label text for the chip component concise and compact.<br/>
9
- * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>,
10
- * including empty spaces to split words.
11
- *
12
- * This component is built by extending `Buttonsimple`.
13
- *
5
+ * The chip is a compact interactive surface that renders an optional leading icon and a short label. It behaves like a button (single tap or `Enter`/`Space` activation, focus, hover, and disabled states) and is commonly used to represent a tag, attribute, filter trigger, or quick action.
6
+ *
7
+ * Keep the label short — we recommend a maximum of **20 characters** (including spaces). Chips can be connected to an `mdc-tooltip` (via the tooltip's `triggerid` pointing at the chip's `id`) to surface additional context when the label is truncated or needs explanation.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-chip` to represent an attribute, tag, or quick action that fits in a single, short word or phrase.
12
+ * - Use it inside a horizontal row or wrap of chips when several short actions or attributes share the same visual weight.
13
+ *
14
+ * **When not to use**
15
+ *
16
+ * - Use `mdc-button` when the action needs more visual weight, more text, or icon-only treatment beyond a compact tag.
17
+ * - Use `mdc-filterchip` when the chip should reflect an applied filter that can be toggled and removed.
18
+ * - Use `mdc-alertchip` when the chip should communicate a status (information, warning, error) rather than trigger an action.
19
+ * - Use `mdc-staticchip` when the chip is purely decorative and should not be interactive (e.g. inside a list item that owns the click target).
20
+ *
14
21
  * @tagname mdc-chip
15
- *
22
+ *
16
23
  * @dependency mdc-icon
17
24
  * @dependency mdc-text
18
- *
25
+ *
19
26
  * @cssproperty --mdc-chip-color - The color of the chip.
20
27
  * @cssproperty --mdc-chip-border-color - The border color of the chip.
21
28
  * @cssproperty --mdc-chip-background-color - The background color of the chip.
22
- *
29
+ *
23
30
  * @csspart icon - The icon part of the chip.
24
31
  * @csspart label - The label part of the chip.
25
- *
32
+ *
26
33
  * @event click - (React: onClick) This event is dispatched when the chip is clicked.
27
34
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the chip.
28
35
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the chip.
@@ -3,15 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/chip';
4
4
  import { TAG_NAME } from '../../components/chip/chip.constants';
5
5
  /**
6
- * mdc-chip is an interactive element that can be used to represent a chip. It supports a leading icon along with label.
7
- * Consumers can wrap this component around a tooltip to provide additional context.
8
- *
9
- * It is recommended to keep the label text for the chip component concise and compact.<br/>
10
- * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>,
11
- * including empty spaces to split words.
12
- *
13
- * This component is built by extending `Buttonsimple`.
14
- *
15
6
  * @tagname mdc-chip
16
7
  *
17
8
  * @dependency mdc-icon
@@ -2,33 +2,33 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/coachmark';
3
3
  import type { Events as EventsInherited } from '../../components/popover/popover.types';
4
4
  /**
5
- * A Coachmark is a contextual guidance component used to highlight a specific UI element and explain its purpose or functionality.
6
- * It is typically shown as part of onboarding, feature discovery, or progressive education within the product.
7
- *
8
- * Coachmark component based on top of the popover component,
9
- * with the default value of certain properties changed.
10
- * Coachmark component will always have an arrow attached to it.
11
- * The color of the coachmark is contrast.
12
- *
13
- * ## When to use
14
- * - Introducing a new or complex feature to users.
15
- * - Drawing attention to a UI element that might otherwise be missed.
16
- * - Providing step-by-step guidance in an onboarding or walkthrough flow.
17
- *
18
- * ## Accessibility
19
- * - The default role of coachmark is `"dialog"`, which can be changed via the `role` attribute.
20
- * - aria-label or aria-labelledby can be provided to give the coachmark an accessible name.
21
- *
22
- * @dependency mdc-popover
23
- *
5
+ * A coachmark is a contextual guidance overlay used to highlight a specific UI element and explain its purpose. It is typically shown as part of onboarding, feature discovery, or step-by-step walkthroughs.
6
+ *
7
+ * It renders as a high-contrast bubble anchored to a trigger element with a visible arrow and a close button. Unlike a tooltip, the coachmark stays open until the user dismisses it (or the consumer toggles it programmatically), making it suitable for explanatory copy rather than a quick hover hint.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Introducing a new or complex feature when users land on a screen for the first time.
12
+ * - Drawing attention to a UI element that might otherwise be overlooked (a secondary action, a settings entry point).
13
+ * - Providing step-by-step guidance in an onboarding flow or guided tour.
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Use `mdc-tooltip` for a short, hover-triggered hint about a control that does not need a close affordance.
18
+ * - Use `mdc-toggletip` when a small piece of contextual help should appear on click and dismiss on outside interaction without a persistent step-flow.
19
+ * - Use `mdc-popover` directly when a generic dismissible overlay is needed and the onboarding-styled contrast bubble + arrow + close button defaults are not desired.
20
+ * - Use `mdc-dialog` (or `mdc-announcementdialog`) when the message is modal, must block the rest of the UI, or is not anchored to a specific element.
21
+ *
24
22
  * @tagname mdc-coachmark
25
- *
23
+ *
24
+ * @dependency mdc-popover
25
+ *
26
26
  * @event shown - (React: onShown) This event is dispatched when the coachmark is shown
27
27
  * @event hidden - (React: onHidden) This event is dispatched when the coachmark is hidden
28
28
  * @event created - (React: onCreated) This event is dispatched when the coachmark is created (added to the DOM)
29
29
  * @event destroyed - (React: onDestroyed) This event is dispatched when the coachmark is
30
30
  * destroyed (removed from the DOM)
31
- *
31
+ *
32
32
  * @cssproperty --mdc-popover-arrow-border-radius - radius of the arrow border
33
33
  * @cssproperty --mdc-popover-arrow-border - border of the arrow
34
34
  * @cssproperty --mdc-popover-primary-background-color - primary background color of the popover
@@ -37,7 +37,7 @@ import type { Events as EventsInherited } from '../../components/popover/popover
37
37
  * @cssproperty --mdc-popover-inverted-border-color - inverted border color of the popover
38
38
  * @cssproperty --mdc-popover-inverted-text-color - inverted text color of the popover
39
39
  * @cssproperty --mdc-popover-elevation-3 - elevation of the popover
40
- *
40
+ *
41
41
  * @slot - Default slot for modal container
42
42
  */
43
43
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
@@ -3,27 +3,10 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/coachmark';
4
4
  import { TAG_NAME } from '../../components/coachmark/coachmark.constants';
5
5
  /**
6
- * A Coachmark is a contextual guidance component used to highlight a specific UI element and explain its purpose or functionality.
7
- * It is typically shown as part of onboarding, feature discovery, or progressive education within the product.
8
- *
9
- * Coachmark component based on top of the popover component,
10
- * with the default value of certain properties changed.
11
- * Coachmark component will always have an arrow attached to it.
12
- * The color of the coachmark is contrast.
13
- *
14
- * ## When to use
15
- * - Introducing a new or complex feature to users.
16
- * - Drawing attention to a UI element that might otherwise be missed.
17
- * - Providing step-by-step guidance in an onboarding or walkthrough flow.
18
- *
19
- * ## Accessibility
20
- * - The default role of coachmark is `"dialog"`, which can be changed via the `role` attribute.
21
- * - aria-label or aria-labelledby can be provided to give the coachmark an accessible name.
6
+ * @tagname mdc-coachmark
22
7
  *
23
8
  * @dependency mdc-popover
24
9
  *
25
- * @tagname mdc-coachmark
26
- *
27
10
  * @event shown - (React: onShown) This event is dispatched when the coachmark is shown
28
11
  * @event hidden - (React: onHidden) This event is dispatched when the coachmark is hidden
29
12
  * @event created - (React: onCreated) This event is dispatched when the coachmark is created (added to the DOM)
@@ -2,57 +2,47 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/combobox';
3
3
  import type { Events } from '../../components/combobox/combobox.types';
4
4
  /**
5
- * The Combobox component is a text-based dropdown control that allows users to select an option from a predefined list.
6
- * Users can type text to filter the options and select their desired choice.
7
- *
8
- * When the user starts typing, the filter uses a "starts with" search and displays options based on the text entered by the user.
9
- * If the user entered text that doesn't match with any of the options, then the text in the `no-result-text` attribute will be displayed.
10
- *
11
- * The `filter` attribute controls how options are narrowed as the user types.
12
- * The default `'match-starts-with'` strategy shows options whose label starts with the typed text.
13
- * Setting `filter="none"` disables internal filtering, which is useful when the consumer manages
14
- * filtering externally (e.g., fetching results from an API) and dynamically updates the slotted options.
15
- * A custom function can also be provided via the `filter` property for full control over the logic.
16
- *
17
- * If there is no text in the `no-result-text` attribute then nothing will be shown.
18
- *
19
- * Combobox is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.
20
- * The component ensures accessibility and usability while handling various use cases, including long text truncation with tooltip support.
21
- *
22
- * Every mdc-option should have a `value` attribute set to ensure proper form submission.
23
- *
24
- * To set a default option, use the `selected` attribute on the `mdc-option` element.
25
- *
26
- * When the combobox `control-type` attribute is "controlled", then the value should be set by the parent only, and the combobox will emit `change` and `input` events
27
- * with the selected option details when the user makes a selection or types in the input, but it won't update the selected value internally.
28
- * The parent component is expected to listen to these events and update the `value` property of the combobox accordingly to reflect the changes in the UI.
29
- *
30
- * **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-combobox` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.
31
- *
32
- * If you need to use `mdc-tooltip` with any options, make sure to place the tooltip component outside the `mdc-selectlistbox` element. Read more about it in Options documentation.
33
- *
34
- * To understand more about combobox and its patterns, refer to this [WCAG example](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/).
35
- *
5
+ * The combobox is a text-based dropdown control that lets the user type to filter a predefined list of options, then pick one. Typing narrows the visible options based on the configured `filter` strategy; clicking the trigger button or pressing arrow keys opens the dropdown without filtering.
6
+ *
7
+ * The component is form-associated and participates in native form submission, validation, and reset.
8
+ *
9
+ * It is designed to be used with `mdc-option` (individual options) and `mdc-optgroup` (grouped options) placed inside an `mdc-selectlistbox` slotted child — `mdc-selectlistbox` owns the `role="listbox"` and is required for correct screen-reader behaviour.
10
+ *
11
+ * When the consumer needs to drive the value externally (e.g. server-side filtering), set `control-type="controlled"` on a wrapping `mdc-controltypeprovider` (or use `filter="none"`): the combobox will emit `input` and `change` events but will not mutate its own `value` — the parent component is expected to update `value` to reflect the selection.
12
+ *
13
+ * **When to use**
14
+ *
15
+ * - Use `mdc-combobox` when the user must pick a single value from a long list and typing to filter is faster than scanning.
16
+ * - Use it when a predictive "starts with" filter (or a custom filter function) genuinely helps the user — short lists rarely justify a combobox.
17
+ * - Use it when the option list is fetched dynamically (set `filter="none"` and update slotted options as data arrives).
18
+ *
19
+ * **When not to use**
20
+ *
21
+ * - Use `mdc-select` when the user should only pick from a fixed list without typing.
22
+ * - Use `mdc-searchfield` when the user is searching for content rather than picking a single value from a known set.
23
+ * - Use `mdc-input` when free-form text is the goal and no constrained option list applies.
24
+ * - Use `mdc-radiogroup` when there are only a handful of options and they should all be visible at once.
25
+ *
26
+ * @tagname mdc-combobox
27
+ *
36
28
  * @dependency mdc-buttonsimple
37
29
  * @dependency mdc-icon
38
30
  * @dependency mdc-input
39
31
  * @dependency mdc-listitem
40
32
  * @dependency mdc-popover
41
- *
42
- * @tagname mdc-combobox
43
- *
33
+ *
44
34
  * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.
45
35
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
46
36
  * @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.
47
37
  * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
48
38
  * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.
49
- *
39
+ *
50
40
  * @event click - (React: onClick) This event is dispatched when the combobox is clicked.
51
41
  * @event change - (React: onChange) This event is dispatched when the combobox is changed.
52
42
  * @event input - (React: onInput) This event is dispatched when the combobox is changed.
53
43
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the combobox.
54
44
  * @event focus - (React: onFocus) This event is dispatched when the combobox receives focus.
55
- *
45
+ *
56
46
  * @cssproperty --mdc-combobox-border-color - The border color of the combobox
57
47
  * @cssproperty --mdc-combobox-height - The height of the combobox trigger control
58
48
  * @cssproperty --mdc-combobox-icon-color - The icon color of the combobox
@@ -69,7 +59,7 @@ import type { Events } from '../../components/combobox/combobox.types';
69
59
  * @cssproperty --mdc-help-text-line-height - Line height for the help text.
70
60
  * @cssproperty --mdc-help-text-color - Color for the help text.
71
61
  * @cssproperty --mdc-required-indicator-color - Color for the required indicator text.
72
- *
62
+ *
73
63
  * @csspart label - The label element.
74
64
  * @csspart label-text - The container for the label and required indicator elements.
75
65
  * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.
@@ -3,36 +3,7 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/combobox';
4
4
  import { TAG_NAME } from '../../components/combobox/combobox.constants';
5
5
  /**
6
- * The Combobox component is a text-based dropdown control that allows users to select an option from a predefined list.
7
- * Users can type text to filter the options and select their desired choice.
8
- *
9
- * When the user starts typing, the filter uses a "starts with" search and displays options based on the text entered by the user.
10
- * If the user entered text that doesn't match with any of the options, then the text in the `no-result-text` attribute will be displayed.
11
- *
12
- * The `filter` attribute controls how options are narrowed as the user types.
13
- * The default `'match-starts-with'` strategy shows options whose label starts with the typed text.
14
- * Setting `filter="none"` disables internal filtering, which is useful when the consumer manages
15
- * filtering externally (e.g., fetching results from an API) and dynamically updates the slotted options.
16
- * A custom function can also be provided via the `filter` property for full control over the logic.
17
- *
18
- * If there is no text in the `no-result-text` attribute then nothing will be shown.
19
- *
20
- * Combobox is designed to work with `mdc-option` for individual options and `mdc-optgroup` for grouping related options.
21
- * The component ensures accessibility and usability while handling various use cases, including long text truncation with tooltip support.
22
- *
23
- * Every mdc-option should have a `value` attribute set to ensure proper form submission.
24
- *
25
- * To set a default option, use the `selected` attribute on the `mdc-option` element.
26
- *
27
- * When the combobox `control-type` attribute is "controlled", then the value should be set by the parent only, and the combobox will emit `change` and `input` events
28
- * with the selected option details when the user makes a selection or types in the input, but it won't update the selected value internally.
29
- * The parent component is expected to listen to these events and update the `value` property of the combobox accordingly to reflect the changes in the UI.
30
- *
31
- * **Note:** Make sure to add `mdc-selectlistbox` as a child of `mdc-combobox` and wrap options/optgroup in it to ensure proper accessibility functionality. Read more about it in SelectListBox documentation.
32
- *
33
- * If you need to use `mdc-tooltip` with any options, make sure to place the tooltip component outside the `mdc-selectlistbox` element. Read more about it in Options documentation.
34
- *
35
- * To understand more about combobox and its patterns, refer to this [WCAG example](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/).
6
+ * @tagname mdc-combobox
36
7
  *
37
8
  * @dependency mdc-buttonsimple
38
9
  * @dependency mdc-icon
@@ -40,8 +11,6 @@ import { TAG_NAME } from '../../components/combobox/combobox.constants';
40
11
  * @dependency mdc-listitem
41
12
  * @dependency mdc-popover
42
13
  *
43
- * @tagname mdc-combobox
44
- *
45
14
  * @slot default - This is a default/unnamed slot for Selectlistbox including options and/or option group.
46
15
  * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
47
16
  * @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.
@@ -1,17 +1,25 @@
1
1
  import Component from '../../components/controltypeprovider';
2
2
  /**
3
- * ContolTypeProvider component, which allows to be consumed from sub components
4
- * (see `providerUtils.consume` for how to consume)
5
- *
6
- * attribute 'control-type' sets the default control type for all consumers
7
- - 'controlled' the consumer component will not handle any interaction itself, e.g. toggling a checkbox.
8
- - 'uncontrolled' the consumer component will handle interactions
9
- *
10
- * ControlTypeMixin allows components to consume this context
11
- * note that this is intended to be set once, ControlTypeMixin will not update on changes to control-type
12
- *
3
+ * The control type provider is a context provider used to set whether descendant form controls operate as **controlled** or **uncontrolled** components.
4
+ *
5
+ * - `uncontrolled` (default) — each control manages its own state. Toggling a checkbox, picking a combobox option, or moving a slider updates the control's internal value and dispatches a `change` event.
6
+ * - `controlled` — each control delegates state to its parent. The control emits `input` and `change` with the requested new value but does not update its own value; the parent component is expected to update the control's `value` attribute in response.
7
+ *
8
+ * This mirrors the React controlled/uncontrolled pattern at the web-component level so the same component can be embedded in either consumer style without forking the API.
9
+ *
10
+ * It is rendered as a transparent wrapper — the provider does not produce any visible UI.
11
+ *
12
+ * **When to use**
13
+ *
14
+ * - Wrap a tree of form controls (combobox, select, checkbox, etc.) in `mdc-controltypeprovider control-type="controlled"` when the parent owns the canonical state and the controls must always reflect what the parent passes in.
15
+ * - Use it when integrating with state-management libraries (React, Redux, signals, etc.) that need every user interaction to flow through the consumer's update cycle.
16
+ *
17
+ * **When not to use**
18
+ *
19
+ * - Leave the provider out (or rely on the default `uncontrolled`) when each control should own its own state and the consumer just listens to `change`.
20
+ * - Do not nest providers to switch modes mid-tree unless absolutely necessary — descendant controls subscribe to the context once and do not re-subscribe when the value changes.
21
+ *
13
22
  * @tagname mdc-controltypeprovider
14
- *
15
23
  */
16
24
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
17
25
  export default reactWrapper;
@@ -3,16 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/controltypeprovider';
4
4
  import { TAG_NAME } from '../../components/controltypeprovider/controltypeprovider.constants';
5
5
  /**
6
- * ContolTypeProvider component, which allows to be consumed from sub components
7
- * (see `providerUtils.consume` for how to consume)
8
- *
9
- * attribute 'control-type' sets the default control type for all consumers
10
- - 'controlled' the consumer component will not handle any interaction itself, e.g. toggling a checkbox.
11
- - 'uncontrolled' the consumer component will handle interactions
12
- *
13
- * ControlTypeMixin allows components to consume this context
14
- * note that this is intended to be set once, ControlTypeMixin will not update on changes to control-type
15
- *
16
6
  * @tagname mdc-controltypeprovider
17
7
  *
18
8
  */
@@ -2,40 +2,46 @@ import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/datepicker';
3
3
  import type { Events } from '../../components/datepicker/datepicker.types';
4
4
  /**
5
- * mdc-datepicker is a component that allows users to select a date
6
- * or enter a date manually. It supports two variants:
7
- *
8
- * - `input`: Manual date entry with spinbutton inputs for month, day, and year
9
- * - `default`: A select-like trigger that opens a calendar for date range selection
10
- *
11
- * The component uses `mdc-calendar` inside a popover for date selection
12
- * and supports localization via a BCP 47 locale string.
13
- *
5
+ * The datepicker lets users pick a date either by typing it directly into month/day/year spinbutton fields or by opening an `mdc-calendar` inside a popover. It supports BCP 47 locale strings to drive field order, separators, placeholders, and localised accessible labels.
6
+ *
7
+ * The component is form-associated and participates in native form submission, validation, and reset. When a range or week is selected, both the start (`value`) and end (`end-value`) dates are submitted together using the configured `name`.
8
+ *
9
+ * **When to use**
10
+ *
11
+ * - Use `mdc-datepicker` with `variant="input"` when the user typically knows the date and entering it digit-by-digit is fastest.
12
+ * - Use `mdc-datepicker` with `variant="default"` when picking from a calendar (range or week) is the primary interaction.
13
+ * - Use it when the value needs to be locale-aware (field order, separator, formatting) and accessible to spinbutton-aware screen readers.
14
+ *
15
+ * **When not to use**
16
+ *
17
+ * - Use `mdc-input` when free-form text is the goal and date semantics are not required.
18
+ * - Use `mdc-calendar` directly when the calendar should always be visible (e.g. embedded in a sidebar) without a popover trigger.
19
+ *
14
20
  * @tagname mdc-datepicker
15
- *
21
+ *
16
22
  * @dependency mdc-button
17
23
  * @dependency mdc-calendar
18
24
  * @dependency mdc-icon
19
25
  * @dependency mdc-popover
20
26
  * @dependency mdc-text
21
27
  * @dependency mdc-toggletip
22
- *
28
+ *
23
29
  * @event input - (React: onInput) This event is dispatched when the date value changes.
24
30
  * @event change - (React: onChange) This event is dispatched when the date value is committed.
25
31
  * @event focus - (React: onFocus) This event is dispatched when the datepicker receives focus.
26
32
  * @event blur - (React: onBlur) This event is dispatched when the datepicker loses focus.
27
- *
33
+ *
28
34
  * @slot label - Slot for the label element.
29
35
  * @slot toggletip - Slot for the toggletip info icon button.
30
36
  * @slot help-icon - Slot for the helper/validation icon.
31
37
  * @slot help-text - Slot for the helper/validation text.
32
- *
38
+ *
33
39
  * @cssproperty --mdc-datepicker-background-color - Background color of the datepicker input.
34
40
  * @cssproperty --mdc-datepicker-border-color - Border color of the datepicker input.
35
41
  * @cssproperty --mdc-datepicker-text-color - Text color of the datepicker input.
36
42
  * @cssproperty --mdc-datepicker-height - The height of the datepicker trigger control.
37
43
  * @cssproperty --mdc-datepicker-width - Width of the datepicker component.
38
- *
44
+ *
39
45
  * @csspart label - The label element.
40
46
  * @csspart label-text - The container for the label and required indicator elements.
41
47
  * @csspart required-indicator - The required indicator element.
@@ -3,15 +3,6 @@ import { createComponent } from '@lit/react';
3
3
  import Component from '../../components/datepicker';
4
4
  import { TAG_NAME } from '../../components/datepicker/datepicker.constants';
5
5
  /**
6
- * mdc-datepicker is a component that allows users to select a date
7
- * or enter a date manually. It supports two variants:
8
- *
9
- * - `input`: Manual date entry with spinbutton inputs for month, day, and year
10
- * - `default`: A select-like trigger that opens a calendar for date range selection
11
- *
12
- * The component uses `mdc-calendar` inside a popover for date selection
13
- * and supports localization via a BCP 47 locale string.
14
- *
15
6
  * @tagname mdc-datepicker
16
7
  *
17
8
  * @dependency mdc-button