@splunk/react-ui 4.42.0 → 5.0.0-beta.2

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 (639) hide show
  1. package/Accordion.js +87 -109
  2. package/Animation.js +48 -31
  3. package/Avatar.d.ts +2 -0
  4. package/Avatar.js +478 -0
  5. package/Box.js +8 -8
  6. package/Breadcrumbs.js +45 -49
  7. package/Button.js +144 -399
  8. package/ButtonGroup.js +22 -26
  9. package/ButtonSimple.js +239 -605
  10. package/CHANGELOG.md +29 -0
  11. package/CHANGELOG.v5.mdx +195 -0
  12. package/Calendar.js +55 -68
  13. package/Card.js +162 -200
  14. package/Chip.js +108 -96
  15. package/Clickable.js +174 -310
  16. package/Code.js +528 -372
  17. package/CollapsiblePanel.js +439 -601
  18. package/Color.js +727 -967
  19. package/ColumnLayout.js +190 -234
  20. package/ComboBox.js +166 -161
  21. package/ControlGroup.js +502 -531
  22. package/Date.js +314 -420
  23. package/DefinitionList.js +128 -140
  24. package/Dropdown.js +201 -358
  25. package/DualListbox.js +26 -26
  26. package/File.js +479 -558
  27. package/FormRows.js +339 -569
  28. package/Heading.js +53 -99
  29. package/Image.js +254 -305
  30. package/JSONTree.js +135 -131
  31. package/Layer.js +187 -269
  32. package/{CloseButton.js → Layout.js} +39 -61
  33. package/Link.js +91 -244
  34. package/List.js +68 -74
  35. package/MIGRATION.mdx +48 -53
  36. package/MIGRATION.v5.mdx +428 -0
  37. package/Markdown.js +439 -385
  38. package/Menu.js +387 -741
  39. package/Message.js +150 -322
  40. package/MessageBar.js +15 -15
  41. package/Modal.js +444 -587
  42. package/Monogram.js +1 -1
  43. package/Multiselect.js +1207 -1256
  44. package/NonInteractiveCheckbox.js +189 -0
  45. package/Number.js +538 -621
  46. package/Paginator.js +354 -448
  47. package/Paragraph.js +12 -15
  48. package/Popover.js +588 -683
  49. package/Progress.js +141 -244
  50. package/Prose.d.ts +2 -0
  51. package/Prose.js +213 -0
  52. package/RadioBar.js +328 -450
  53. package/RadioList.js +129 -212
  54. package/Resize.js +351 -402
  55. package/ResultsMenu.d.ts +2 -0
  56. package/ResultsMenu.js +255 -358
  57. package/Scroll.js +159 -238
  58. package/Search.js +365 -453
  59. package/Select.js +1097 -1380
  60. package/SidePanel.js +179 -223
  61. package/Slider.js +440 -542
  62. package/SlidingPanels.js +377 -504
  63. package/SplitButton.js +114 -102
  64. package/StaticContent.js +58 -74
  65. package/StepBar.js +193 -258
  66. package/Switch.js +246 -552
  67. package/TabBar.js +442 -622
  68. package/TabLayout.js +197 -251
  69. package/Table.js +2373 -3691
  70. package/Text.js +422 -909
  71. package/TextArea.js +537 -959
  72. package/Tooltip.js +35 -41
  73. package/TransitionOpen.js +296 -334
  74. package/Tree.js +20 -14
  75. package/Typography.js +35 -50
  76. package/WaitSpinner.js +93 -124
  77. package/package.json +16 -17
  78. package/stubs-dependencies.d.ts +0 -7
  79. package/stubs-splunkui.d.ts +6 -1
  80. package/types/src/Accordion/Accordion.d.ts +5 -1
  81. package/types/src/Accordion/Panel.d.ts +1 -2
  82. package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
  83. package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
  84. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
  85. package/types/src/Anchor/Anchor.d.ts +1 -1
  86. package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
  87. package/types/src/Animation/Animation.d.ts +12 -2
  88. package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
  89. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
  90. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
  91. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
  92. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
  93. package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
  94. package/types/src/Avatar/Avatar.d.ts +65 -0
  95. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
  96. package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
  97. package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
  98. package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
  99. package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
  100. package/types/src/Avatar/getInitials.d.ts +9 -0
  101. package/types/src/Avatar/index.d.ts +2 -0
  102. package/types/src/Box/Box.d.ts +1 -1
  103. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  104. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  105. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
  106. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
  107. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
  108. package/types/src/Button/Button.d.ts +20 -34
  109. package/types/src/Button/docs/examples/Basic.d.ts +2 -1
  110. package/types/src/Button/docs/examples/Block.d.ts +2 -1
  111. package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
  112. package/types/src/Button/docs/examples/Icons.d.ts +2 -1
  113. package/types/src/Button/docs/examples/Menus.d.ts +2 -1
  114. package/types/src/Button/docs/examples/To.d.ts +2 -1
  115. package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
  116. package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  117. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
  118. package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
  119. package/types/src/ButtonSimple/mixin.d.ts +6 -2
  120. package/types/src/Calendar/Calendar.d.ts +2 -2
  121. package/types/src/Calendar/DateTable.d.ts +1 -1
  122. package/types/src/Calendar/Day.d.ts +1 -1
  123. package/types/src/Calendar/MonthHeader.d.ts +1 -1
  124. package/types/src/Card/Body.d.ts +1 -1
  125. package/types/src/Card/Card.d.ts +4 -9
  126. package/types/src/Card/Footer.d.ts +1 -8
  127. package/types/src/Card/Header.d.ts +2 -2
  128. package/types/src/Card/docs/examples/Actions.d.ts +2 -1
  129. package/types/src/Card/docs/examples/Basic.d.ts +2 -1
  130. package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
  131. package/types/src/Card/docs/examples/Full.d.ts +2 -1
  132. package/types/src/Card/docs/examples/Images.d.ts +2 -1
  133. package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
  134. package/types/src/CardLayout/CardLayout.d.ts +1 -1
  135. package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
  136. package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
  137. package/types/src/Chip/Chip.d.ts +1 -1
  138. package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
  139. package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
  140. package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
  141. package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
  142. package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
  143. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
  144. package/types/src/Clickable/Clickable.d.ts +13 -37
  145. package/types/src/Clickable/NavigationProvider.d.ts +2 -19
  146. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
  147. package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
  148. package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
  149. package/types/src/Code/Code.d.ts +3 -3
  150. package/types/src/Code/docs/examples/Default.d.ts +2 -1
  151. package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
  152. package/types/src/Code/docs/examples/Language.d.ts +2 -1
  153. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
  154. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
  155. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
  156. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
  157. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
  158. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
  159. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
  160. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
  161. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
  162. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
  163. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
  164. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
  165. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
  166. package/types/src/Color/Color.d.ts +24 -59
  167. package/types/src/Color/Palette.d.ts +3 -18
  168. package/types/src/Color/Swatch.d.ts +1 -4
  169. package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
  170. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
  171. package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
  172. package/types/src/Color/docs/examples/Null.d.ts +2 -1
  173. package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
  174. package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
  175. package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
  176. package/types/src/ColumnLayout/Column.d.ts +1 -11
  177. package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
  178. package/types/src/ColumnLayout/Row.d.ts +1 -11
  179. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
  180. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
  181. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
  182. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
  183. package/types/src/ComboBox/ComboBox.d.ts +10 -14
  184. package/types/src/ComboBox/Option.d.ts +2 -2
  185. package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
  186. package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
  187. package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
  188. package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
  189. package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  190. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
  191. package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
  192. package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
  193. package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
  194. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
  195. package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
  196. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
  197. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
  198. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
  199. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
  200. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
  201. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
  202. package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
  203. package/types/src/Date/Date.d.ts +30 -65
  204. package/types/src/Date/Icon.d.ts +2 -1
  205. package/types/src/Date/docs/examples/Basic.d.ts +2 -1
  206. package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
  207. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
  208. package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
  209. package/types/src/Date/docs/examples/Error.d.ts +2 -1
  210. package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
  211. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
  212. package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
  213. package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
  214. package/types/src/DefinitionList/Description.d.ts +3 -3
  215. package/types/src/DefinitionList/Term.d.ts +3 -3
  216. package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
  217. package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
  218. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
  219. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
  220. package/types/src/Divider/Divider.d.ts +1 -1
  221. package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
  222. package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
  223. package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
  224. package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
  225. package/types/src/Dropdown/Dropdown.d.ts +29 -44
  226. package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
  227. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
  228. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
  229. package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
  230. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
  231. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
  232. package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
  233. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +3 -0
  234. package/types/src/DualListbox/DualListbox.d.ts +1 -1
  235. package/types/src/DualListbox/Label.d.ts +1 -1
  236. package/types/src/DualListbox/Listbox.d.ts +1 -1
  237. package/types/src/DualListbox/Option.d.ts +1 -1
  238. package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
  239. package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
  240. package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
  241. package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
  242. package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
  243. package/types/src/EventListener/EventListener.d.ts +1 -1
  244. package/types/src/File/File.d.ts +26 -33
  245. package/types/src/File/Icon.d.ts +2 -1
  246. package/types/src/File/IconCloud.d.ts +2 -1
  247. package/types/src/File/Item.d.ts +1 -1
  248. package/types/src/File/PaperClip.d.ts +2 -1
  249. package/types/src/File/Retry.d.ts +2 -1
  250. package/types/src/File/Trash.d.ts +2 -1
  251. package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
  252. package/types/src/File/docs/examples/Disabled.d.ts +2 -2
  253. package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
  254. package/types/src/File/docs/examples/Error.d.ts +2 -1
  255. package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
  256. package/types/src/File/docs/examples/Multi.d.ts +2 -2
  257. package/types/src/File/docs/examples/Progress.d.ts +2 -1
  258. package/types/src/File/docs/examples/Single.d.ts +2 -2
  259. package/types/src/FormRows/FormRows.d.ts +20 -14
  260. package/types/src/FormRows/Row.d.ts +11 -7
  261. package/types/src/FormRows/SortableList.d.ts +1 -1
  262. package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
  263. package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
  264. package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
  265. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
  266. package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
  267. package/types/src/Heading/Heading.d.ts +8 -20
  268. package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
  269. package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
  270. package/types/src/Heading/index.d.ts +1 -0
  271. package/types/src/Image/Image.d.ts +8 -19
  272. package/types/src/Image/docs/examples/Basic.d.ts +2 -1
  273. package/types/src/Image/icons/Cross.d.ts +2 -1
  274. package/types/src/JSONTree/JSONTree.d.ts +6 -10
  275. package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
  276. package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
  277. package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
  278. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
  279. package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
  280. package/types/src/Layer/Layer.d.ts +8 -25
  281. package/types/src/Layer/LayerStack.d.ts +2 -3
  282. package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
  283. package/types/src/Layout/Layout.d.ts +22 -0
  284. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  285. package/types/src/Layout/index.d.ts +2 -0
  286. package/types/src/Layout/test/Layout.unit.d.ts +1 -0
  287. package/types/src/Link/Link.d.ts +9 -22
  288. package/types/src/Link/docs/examples/Basic.d.ts +2 -1
  289. package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
  290. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
  291. package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
  292. package/types/src/Link/icons/External.d.ts +2 -1
  293. package/types/src/List/Item.d.ts +1 -1
  294. package/types/src/List/List.d.ts +5 -17
  295. package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
  296. package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
  297. package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
  298. package/types/src/Markdown/Markdown.d.ts +50 -59
  299. package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
  300. package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
  301. package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
  302. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
  303. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
  304. package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
  305. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
  306. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
  307. package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
  308. package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
  309. package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
  310. package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
  311. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
  312. package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
  313. package/types/src/Markdown/renderers/index.d.ts +5 -4
  314. package/types/src/Menu/Divider.d.ts +2 -1
  315. package/types/src/Menu/Heading.d.ts +3 -3
  316. package/types/src/Menu/Item.d.ts +14 -47
  317. package/types/src/Menu/Menu.d.ts +4 -19
  318. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
  319. package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
  320. package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
  321. package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
  322. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
  323. package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
  324. package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
  325. package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
  326. package/types/src/Menu/docs/examples/Links.d.ts +2 -1
  327. package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
  328. package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
  329. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
  330. package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
  331. package/types/src/Menu/icons/External.d.ts +2 -1
  332. package/types/src/Message/Message.d.ts +4 -11
  333. package/types/src/Message/Title.d.ts +1 -1
  334. package/types/src/Message/docs/examples/Basic.d.ts +2 -1
  335. package/types/src/Message/docs/examples/Content.d.ts +2 -1
  336. package/types/src/Message/docs/examples/Fill.d.ts +2 -1
  337. package/types/src/Message/docs/examples/Removable.d.ts +2 -1
  338. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  339. package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
  340. package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
  341. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
  342. package/types/src/Modal/Body.d.ts +1 -1
  343. package/types/src/Modal/Footer.d.ts +9 -1
  344. package/types/src/Modal/Header.d.ts +7 -11
  345. package/types/src/Modal/Modal.d.ts +26 -32
  346. package/types/src/Modal/ModalContext.d.ts +2 -0
  347. package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
  348. package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
  349. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
  350. package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
  351. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  352. package/types/src/Monogram/Monogram.d.ts +3 -7
  353. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
  354. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
  355. package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
  356. package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
  357. package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
  358. package/types/src/Multiselect/Compact.d.ts +1 -1
  359. package/types/src/Multiselect/Multiselect.d.ts +4 -2
  360. package/types/src/Multiselect/Normal.d.ts +1 -1
  361. package/types/src/Multiselect/Option.d.ts +1 -1
  362. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
  363. package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
  364. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
  365. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
  366. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
  367. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
  368. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
  369. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
  370. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  371. package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
  372. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
  373. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
  374. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
  375. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
  376. package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
  377. package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
  378. package/types/src/Number/Number.d.ts +46 -68
  379. package/types/src/Number/docs/examples/Basic.d.ts +2 -2
  380. package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
  381. package/types/src/Number/docs/examples/Error.d.ts +2 -1
  382. package/types/src/Number/docs/examples/Limits.d.ts +2 -2
  383. package/types/src/Number/docs/examples/Locale.d.ts +2 -2
  384. package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
  385. package/types/src/Number/utils.d.ts +28 -0
  386. package/types/src/Paginator/Button.d.ts +4 -8
  387. package/types/src/Paginator/Compact.d.ts +1 -1
  388. package/types/src/Paginator/PageControl.d.ts +1 -1
  389. package/types/src/Paginator/PageSelect.d.ts +1 -1
  390. package/types/src/Paginator/PageSeparator.d.ts +2 -1
  391. package/types/src/Paginator/Paginator.d.ts +15 -2
  392. package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
  393. package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
  394. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
  395. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
  396. package/types/src/Paginator/docs/examples/CustomPages.d.ts +3 -0
  397. package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
  398. package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
  399. package/types/src/Paragraph/Paragraph.d.ts +3 -1
  400. package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
  401. package/types/src/Paragraph/index.d.ts +1 -0
  402. package/types/src/Popover/Popover.d.ts +50 -72
  403. package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
  404. package/types/src/Popover/PopoverProvider.d.ts +23 -0
  405. package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
  406. package/types/src/Popover/getPlacement.d.ts +1 -1
  407. package/types/src/Popover/index.d.ts +2 -1
  408. package/types/src/Progress/Progress.d.ts +3 -4
  409. package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
  410. package/types/src/Progress/docs/examples/Type.d.ts +2 -1
  411. package/types/src/Prose/Prose.d.ts +29 -0
  412. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  413. package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
  414. package/types/src/Prose/index.d.ts +2 -0
  415. package/types/src/Prose/test/Prose.unit.d.ts +1 -0
  416. package/types/src/RadioBar/Option.d.ts +2 -18
  417. package/types/src/RadioBar/RadioBar.d.ts +22 -39
  418. package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
  419. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
  420. package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
  421. package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
  422. package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
  423. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
  424. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
  425. package/types/src/RadioList/Option.d.ts +1 -1
  426. package/types/src/RadioList/RadioList.d.ts +5 -2
  427. package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
  428. package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
  429. package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
  430. package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
  431. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
  432. package/types/src/Resize/Resize.d.ts +15 -23
  433. package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
  434. package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
  435. package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
  436. package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
  437. package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
  438. package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
  439. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  440. package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
  441. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
  442. package/types/src/Scroll/Inner.d.ts +1 -1
  443. package/types/src/Scroll/Scroll.d.ts +37 -27
  444. package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
  445. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
  446. package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
  447. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
  448. package/types/src/Search/Option.d.ts +32 -32
  449. package/types/src/Search/Search.d.ts +4 -4
  450. package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
  451. package/types/src/Search/docs/examples/Loading.d.ts +2 -1
  452. package/types/src/Search/docs/examples/Options.d.ts +2 -1
  453. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
  454. package/types/src/Search/docs/examples/Results.d.ts +2 -1
  455. package/types/src/Select/Option.d.ts +8 -21
  456. package/types/src/Select/OptionBase.d.ts +3 -8
  457. package/types/src/Select/Select.d.ts +62 -22
  458. package/types/src/Select/SelectAllOption.d.ts +1 -1
  459. package/types/src/Select/SelectBase.d.ts +5 -8
  460. package/types/src/Select/docs/examples/Appearance.d.ts +2 -11
  461. package/types/src/Select/docs/examples/Basic.d.ts +2 -9
  462. package/types/src/Select/docs/examples/Children.d.ts +2 -9
  463. package/types/src/Select/docs/examples/Descriptions.d.ts +2 -9
  464. package/types/src/Select/docs/examples/Error.d.ts +2 -1
  465. package/types/src/Select/docs/examples/Fetching.d.ts +2 -22
  466. package/types/src/Select/docs/examples/Filter.d.ts +2 -9
  467. package/types/src/Select/docs/examples/Headings.d.ts +2 -9
  468. package/types/src/Select/docs/examples/Icons.d.ts +2 -1
  469. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -24
  470. package/types/src/Select/docs/examples/Prefix.d.ts +2 -9
  471. package/types/src/Select/docs/examples/Truncate.d.ts +2 -9
  472. package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
  473. package/types/src/SidePanel/SidePanel.d.ts +18 -16
  474. package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
  475. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
  476. package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
  477. package/types/src/Slider/Slider.d.ts +32 -46
  478. package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
  479. package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
  480. package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
  481. package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
  482. package/types/src/Slider/docs/examples/Error.d.ts +2 -1
  483. package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
  484. package/types/src/SlidingPanels/Panel.d.ts +23 -20
  485. package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
  486. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
  487. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
  488. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
  489. package/types/src/SplitButton/Item.d.ts +2 -2
  490. package/types/src/SplitButton/SplitButton.d.ts +1 -1
  491. package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
  492. package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
  493. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
  494. package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
  495. package/types/src/StaticContent/StaticContent.d.ts +1 -8
  496. package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
  497. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
  498. package/types/src/StepBar/Step.d.ts +1 -1
  499. package/types/src/StepBar/StepBar.d.ts +2 -3
  500. package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
  501. package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
  502. package/types/src/StepBar/types.d.ts +2 -0
  503. package/types/src/Switch/Switch.d.ts +37 -23
  504. package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
  505. package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
  506. package/types/src/Switch/docs/examples/Error.d.ts +2 -1
  507. package/types/src/TabBar/Tab.d.ts +37 -44
  508. package/types/src/TabBar/TabBar.d.ts +21 -22
  509. package/types/src/TabBar/TabBarContext.d.ts +3 -5
  510. package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
  511. package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
  512. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
  513. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
  514. package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
  515. package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
  516. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
  517. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
  518. package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
  519. package/types/src/TabLayout/Panel.d.ts +6 -1
  520. package/types/src/TabLayout/TabLayout.d.ts +18 -31
  521. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
  522. package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
  523. package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
  524. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
  525. package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
  526. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
  527. package/types/src/Table/Body.d.ts +6 -13
  528. package/types/src/Table/Caption.d.ts +1 -1
  529. package/types/src/Table/Cell.d.ts +40 -18
  530. package/types/src/Table/ExpandButton.d.ts +9 -3
  531. package/types/src/Table/Head.d.ts +40 -40
  532. package/types/src/Table/HeadCell.d.ts +49 -23
  533. package/types/src/Table/HeadDropdownCell.d.ts +58 -51
  534. package/types/src/Table/HeadInner.d.ts +1 -3
  535. package/types/src/Table/HeadTable.d.ts +23 -12
  536. package/types/src/Table/Row.d.ts +7 -14
  537. package/types/src/Table/RowDragCell.d.ts +2 -1
  538. package/types/src/Table/Table.d.ts +13 -19
  539. package/types/src/Table/Toggle.d.ts +1 -3
  540. package/types/src/Table/docs/examples/Basic.d.ts +2 -1
  541. package/types/src/Table/docs/examples/Click.d.ts +3 -16
  542. package/types/src/Table/docs/examples/ClickRows.d.ts +3 -16
  543. package/types/src/Table/docs/examples/Complex.d.ts +3 -50
  544. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
  545. package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
  546. package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
  547. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -13
  548. package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
  549. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -17
  550. package/types/src/Table/docs/examples/ReorderColumns.d.ts +3 -21
  551. package/types/src/Table/docs/examples/ReorderRows.d.ts +3 -21
  552. package/types/src/Table/docs/examples/Resizable.d.ts +3 -23
  553. package/types/src/Table/docs/examples/ResizableFill.d.ts +3 -23
  554. package/types/src/Table/docs/examples/RowActions.d.ts +3 -39
  555. package/types/src/Table/docs/examples/Selectable.d.ts +3 -18
  556. package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -11
  557. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
  558. package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
  559. package/types/src/Text/IconOutlinedHide.d.ts +2 -1
  560. package/types/src/Text/IconOutlinedView.d.ts +2 -1
  561. package/types/src/Text/Text.d.ts +62 -112
  562. package/types/src/Text/docs/examples/Basic.d.ts +2 -1
  563. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
  564. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
  565. package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
  566. package/types/src/Text/docs/examples/Error.d.ts +2 -1
  567. package/types/src/Text/docs/examples/Inline.d.ts +2 -1
  568. package/types/src/Text/docs/examples/Password.d.ts +2 -1
  569. package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
  570. package/types/src/TextArea/TextArea.d.ts +49 -87
  571. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
  572. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
  573. package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
  574. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
  575. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
  576. package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
  577. package/types/src/Tooltip/InfoIcon.d.ts +2 -1
  578. package/types/src/Tooltip/Tooltip.d.ts +9 -3
  579. package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
  580. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
  581. package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
  582. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
  583. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
  584. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
  585. package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
  586. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
  587. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
  588. package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
  589. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
  590. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
  591. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
  592. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
  593. package/types/src/Tree/Tree.d.ts +1 -1
  594. package/types/src/Tree/TreeItem.d.ts +1 -1
  595. package/types/src/Typography/Typography.d.ts +10 -19
  596. package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
  597. package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
  598. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
  599. package/types/src/utils/types.d.ts +1 -0
  600. package/useResizeObserver.js +122 -90
  601. package/Concertina.d.ts +0 -2
  602. package/Concertina.js +0 -963
  603. package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
  604. package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
  605. package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
  606. package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
  607. package/types/src/Button/icons/External.d.ts +0 -2
  608. package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
  609. package/types/src/CloseButton/CloseButton.d.ts +0 -21
  610. package/types/src/CloseButton/index.d.ts +0 -1
  611. package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
  612. package/types/src/Concertina/Concertina.d.ts +0 -46
  613. package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
  614. package/types/src/Concertina/Heading.d.ts +0 -35
  615. package/types/src/Concertina/Panel.d.ts +0 -59
  616. package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
  617. package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
  618. package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
  619. package/types/src/Concertina/index.d.ts +0 -2
  620. package/types/src/Concertina/types.d.ts +0 -1
  621. package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
  622. package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
  623. package/types/src/Link/docs/examples/Inline.d.ts +0 -2
  624. package/types/src/Message/Link.d.ts +0 -37
  625. package/types/src/Number/IncrementIcon.d.ts +0 -2
  626. package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
  627. package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
  628. package/types/src/Popover/PopoverContext.d.ts +0 -6
  629. package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
  630. package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
  631. package/types/src/Select/icons/Search.d.ts +0 -2
  632. package/types/src/Switch/CheckIcon.d.ts +0 -1
  633. package/types/src/Table/DragHandle.d.ts +0 -12
  634. package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
  635. package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
  636. package/types/src/Text/docs/examples/Search.d.ts +0 -2
  637. package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
  638. package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
  639. package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import Divider from './Divider';
4
3
  import Heading from './Heading';
5
- import Item, { ItemWithoutTheme } from './Item';
4
+ import Item from './Item';
6
5
  import MenuContext from './MenuContext';
7
6
  import { ComponentProps } from '../utils/types';
8
7
  interface MenuPropsBase {
@@ -23,14 +22,6 @@ interface MenuPropsBase {
23
22
  * - `roving`: Single tab stop. Use up/down arrow keys to navigate and loop through Menu.Items.
24
23
  */
25
24
  focusMode?: 'never' | 'normal' | 'roving';
26
- /**
27
- * @deprecated This prop is deprecated and will be removed in a future major version. Use the `focusMode` instead.
28
- *
29
- * Keeps focus within the `Menu` while navigating by keyboard. Tabbing from the last item
30
- * returns the user to the first item. If not set, this defaults to `true` unless it's inside a
31
- * `Dropdown` or `Popover`, in which case it will default to inheriting its value from that component.
32
- */
33
- retainFocus?: boolean;
34
25
  /**
35
26
  * Prevents scrolling from propagating to the parent containers when the top or bottom of
36
27
  * the `Menu` is reached.
@@ -38,19 +29,13 @@ interface MenuPropsBase {
38
29
  stopScrollPropagation?: boolean;
39
30
  }
40
31
  type MenuProps = ComponentProps<MenuPropsBase, 'div'>;
41
- declare function Menu({ children, elementRef, focusMode, retainFocus: retainFocusProp, stopScrollPropagation, ...otherProps }: MenuProps): JSX.Element;
32
+ declare function Menu({ children, elementRef, focusMode, stopScrollPropagation, ...otherProps }: MenuProps): React.JSX.Element;
42
33
  declare namespace Menu {
43
34
  var propTypes: React.WeakValidationMap<MenuProps>;
44
- var Item: React.ForwardRefExoticComponent<Omit<Pick<Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>, "form" | "slot" | "style" | "title" | "name" | "value" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof import("./Item").ItemPropsBase> & Pick<PropTypes.InferProps<React.WeakValidationMap<(import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>) | (import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>)>>, "inlist"> & Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>, "form" | "name" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">, "form" | "slot" | "style" | "title" | "children" | "name" | "elementRef" | "value" | "to" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "icon" | "splunkTheme" | "description" | "endAdornment" | "startAdornment" | "itemKey" | "matchRanges"> & Partial<Pick<Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>, "form" | "slot" | "style" | "title" | "name" | "value" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof import("./Item").ItemPropsBase> & Pick<PropTypes.InferProps<React.WeakValidationMap<(import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>) | (import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>)>>, "inlist"> & Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>, "form" | "name" | "value" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Partial<Pick<Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">>, never>> & {
45
- ref?: React.Ref<ItemWithoutTheme> | undefined;
46
- }, "splunkTheme"> | Omit<Pick<Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>, "slot" | "style" | "title" | "target" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "media" | "type" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "ping" | "referrerPolicy" | keyof import("./Item").ItemPropsBase> & Pick<PropTypes.InferProps<React.WeakValidationMap<(import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>) | (import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>)>>, "inlist"> & Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>, "target" | "media" | "hrefLang" | "rel" | "download" | "ping" | "referrerPolicy">, "slot" | "style" | "title" | "children" | "target" | "elementRef" | "to" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "media" | "type" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "download" | "ping" | "referrerPolicy" | "disabled" | "icon" | "splunkTheme" | "description" | "endAdornment" | "startAdornment" | "itemKey" | "matchRanges"> & Partial<Pick<Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>, "slot" | "style" | "title" | "target" | "onChange" | "onPause" | "className" | "color" | "id" | "lang" | "media" | "type" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "hrefLang" | "rel" | "ping" | "referrerPolicy" | keyof import("./Item").ItemPropsBase> & Pick<PropTypes.InferProps<React.WeakValidationMap<(import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref" | "css" | keyof import("./Item").ItemPropsBase>) | (import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>)>>, "inlist"> & Pick<import("./Item").ItemPropsBase & Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref" | "href" | "css" | keyof import("./Item").ItemPropsBase>, "target" | "media" | "hrefLang" | "rel" | "download" | "ping" | "referrerPolicy">, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">> & Partial<Pick<Required<Pick<import("./Item").ItemPropsBase, "active" | "selected" | "openInNewContext" | "descriptionPosition" | "hasSubmenu" | "preventFocus" | "selectable" | "selectableAppearance" | "truncate">>, never>> & {
47
- ref?: React.Ref<ItemWithoutTheme> | undefined;
48
- }, "splunkTheme">> & {
49
- as: string;
50
- };
35
+ var Item: typeof import("./Item").default;
51
36
  var Divider: typeof import("./Divider").default;
52
37
  var Heading: typeof import("./Heading").default;
53
38
  }
54
39
  export default Menu;
55
40
  export { Item, Heading, Divider, MenuContext };
56
- export type { ItemWithoutTheme, MenuPropsBase };
41
+ export type { MenuPropsBase };
@@ -1,2 +1,3 @@
1
- declare function Adornments(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Adornments(): React.JSX.Element;
2
3
  export default Adornments;
@@ -1,2 +1,3 @@
1
- declare function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
2
3
  export default Basic;
@@ -1,2 +1,3 @@
1
- declare function Complex(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Complex(): React.JSX.Element;
2
3
  export default Complex;
@@ -1,2 +1,3 @@
1
- declare function Descriptions(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Descriptions(): React.JSX.Element;
2
3
  export default Descriptions;
@@ -1,2 +1,3 @@
1
- declare function Dimmed(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Dimmed(): React.JSX.Element;
2
3
  export default Dimmed;
@@ -1,2 +1,3 @@
1
- declare function Disabled(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Disabled(): React.JSX.Element;
2
3
  export default Disabled;
@@ -1,2 +1,3 @@
1
- declare function Dividers(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Dividers(): React.JSX.Element;
2
3
  export default Dividers;
@@ -1,2 +1,3 @@
1
- declare function Headings(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Headings(): React.JSX.Element;
2
3
  export default Headings;
@@ -1,2 +1,3 @@
1
- declare function Links(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Links(): React.JSX.Element;
2
3
  export default Links;
@@ -1,2 +1,3 @@
1
- declare function MatchRanges(): JSX.Element;
1
+ import React from 'react';
2
+ declare function MatchRanges(): React.JSX.Element;
2
3
  export default MatchRanges;
@@ -1,2 +1,3 @@
1
- declare function Selectable(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Selectable(): React.JSX.Element;
2
3
  export default Selectable;
@@ -1,2 +1,3 @@
1
- declare function SelectableWithAdornments(): JSX.Element;
1
+ import React from 'react';
2
+ declare function SelectableWithAdornments(): React.JSX.Element;
2
3
  export default SelectableWithAdornments;
@@ -1,2 +1,3 @@
1
- declare function Truncate(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Truncate(): React.JSX.Element;
2
3
  export default Truncate;
@@ -1,2 +1,3 @@
1
- declare function External(): JSX.Element;
1
+ import React from 'react';
2
+ declare function External(): React.JSX.Element;
2
3
  export default External;
@@ -1,32 +1,27 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Link from './Link';
4
3
  import { ComponentProps } from '../utils/types';
5
4
  interface MessagePropsBase {
6
5
  /**
7
6
  *
8
7
  * Changes the style of the Message.
9
8
  *
10
- * @deprecatedValue 'banner'
11
- * The `banner` value is deprecated and will be removed in a future major version. Use `MessageBar` instead.
12
- *
13
9
  */
14
- appearance?: 'default' | 'fill' | 'banner';
10
+ appearance?: 'default' | 'fill';
15
11
  children?: React.ReactNode;
16
12
  /**
17
13
  * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
18
14
  */
19
15
  elementRef?: React.Ref<HTMLDivElement>;
20
16
  /**
21
- * Includes a remove button if set. Always set this prop when using the `banner`
22
- * appearance, never set it when using the `default` appearance.
17
+ * Includes a remove button if set. Only set this prop when using the `fill` appearance.
23
18
  */
24
- onRequestRemove?: React.MouseEventHandler<HTMLButtonElement>;
19
+ onRequestRemove?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;
25
20
  /** Sets the severity or type of this `Message`. */
26
21
  type?: 'info' | 'warning' | 'error' | 'success';
27
22
  }
28
23
  type MessageProps = ComponentProps<MessagePropsBase, 'div'>;
29
- declare function Message({ appearance, children, type, onRequestRemove, ...otherProps }: MessageProps): JSX.Element;
24
+ declare function Message({ appearance, children, type, onRequestRemove, ...otherProps }: MessageProps): React.JSX.Element;
30
25
  declare namespace Message {
31
26
  var propTypes: {
32
27
  appearance: PropTypes.Requireable<string>;
@@ -36,7 +31,5 @@ declare namespace Message {
36
31
  type: PropTypes.Requireable<string>;
37
32
  };
38
33
  var Title: typeof import("./Title").default;
39
- var Link: typeof import("./Link").default;
40
34
  }
41
35
  export default Message;
42
- export { Link };
@@ -6,7 +6,7 @@ interface TitleProps {
6
6
  /**
7
7
  * A title component for use in `Message`.
8
8
  */
9
- declare function Title({ children, ...otherProps }: TitleProps): JSX.Element;
9
+ declare function Title({ children, ...otherProps }: TitleProps): React.JSX.Element;
10
10
  declare namespace Title {
11
11
  var propTypes: {
12
12
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -1,2 +1,3 @@
1
- declare function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
2
3
  export default Basic;
@@ -1,2 +1,3 @@
1
- declare function Content(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Content(): React.JSX.Element;
2
3
  export default Content;
@@ -1,2 +1,3 @@
1
- declare function Fill(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Fill(): React.JSX.Element;
2
3
  export default Fill;
@@ -1,2 +1,3 @@
1
- declare function Removable(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Removable(): React.JSX.Element;
2
3
  export default Removable;
@@ -16,7 +16,7 @@ interface MessageBarPropsBase {
16
16
  type: 'info' | 'warning' | 'error' | 'success';
17
17
  }
18
18
  type MessageBarProps = ComponentProps<MessageBarPropsBase, 'div'>;
19
- declare function MessageBar({ children, type, onRequestClose, ...otherProps }: MessageBarProps): JSX.Element;
19
+ declare function MessageBar({ children, type, onRequestClose, ...otherProps }: MessageBarProps): React.JSX.Element;
20
20
  declare namespace MessageBar {
21
21
  var propTypes: {
22
22
  children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
@@ -1,2 +1,3 @@
1
- declare function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
2
3
  export default Basic;
@@ -1,2 +1,3 @@
1
- declare function Types(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Types(): React.JSX.Element;
2
3
  export default Types;
@@ -1,2 +1,3 @@
1
- declare function WithActions(): JSX.Element;
1
+ import React from 'react';
2
+ declare function WithActions(): React.JSX.Element;
2
3
  export default WithActions;
@@ -8,7 +8,7 @@ type BodyProps = ComponentProps<BodyPropsBase, 'div'>;
8
8
  /**
9
9
  * A styled container for `Modal` body content.
10
10
  */
11
- declare function Body({ children, ...otherProps }: BodyProps): JSX.Element;
11
+ declare function Body({ children, ...otherProps }: BodyProps): React.JSX.Element;
12
12
  declare namespace Body {
13
13
  var propTypes: {
14
14
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -3,15 +3,23 @@ import PropTypes from 'prop-types';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  interface FooterPropsBase {
5
5
  children?: React.ReactNode;
6
+ /**
7
+ * Controls the layout and styling for children.
8
+ *
9
+ * `auto` will style children for common use cases, such as: buttons; controls; documentation links; or a combination.
10
+ * Set `none` when custom styling is needed.
11
+ */
12
+ layout?: 'auto' | 'none';
6
13
  }
7
14
  type FooterProps = ComponentProps<FooterPropsBase, 'div'>;
8
15
  /**
9
16
  * A styled container for `Modal` footer content.
10
17
  */
11
- declare function Footer({ children, ...otherProps }: FooterProps): JSX.Element;
18
+ declare function Footer({ children, layout, ...otherProps }: FooterProps): React.JSX.Element;
12
19
  declare namespace Footer {
13
20
  var propTypes: {
14
21
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
22
+ layout: PropTypes.Requireable<string>;
15
23
  };
16
24
  }
17
25
  export default Footer;
@@ -8,17 +8,13 @@ interface HeaderPropsBase {
8
8
  */
9
9
  children?: React.ReactNode;
10
10
  /**
11
- * The icon to show before the title.
11
+ * Hide the closeButton in the Header if `onRequestClose` is provided to `Modal`.
12
12
  */
13
- icon?: React.ReactNode;
13
+ hideCloseButton?: boolean;
14
14
  /**
15
- * If an `onRequestClose` function is provided, the header includes a close
16
- * button, which invokes the `onRequestClose` callback when clicked.
17
- *
18
- * If `Modal`'s `returnFocus` prop isn't used, this callback *must* return focus to the invoking element
19
- * or other element that follows the logical flow of the application.
15
+ * The icon to show before the title.
20
16
  */
21
- onRequestClose?: React.MouseEventHandler<HTMLButtonElement>;
17
+ icon?: React.ReactNode;
22
18
  /**
23
19
  * Used as the main heading.
24
20
  */
@@ -32,14 +28,14 @@ type HeaderProps = ComponentProps<HeaderPropsBase, 'div'>;
32
28
  /**
33
29
  * A styled container for `Modal` header content.
34
30
  */
35
- declare function Header({ children, icon, onRequestClose, subtitle, title, ...otherProps }: HeaderProps): JSX.Element;
31
+ declare function Header({ children, icon, hideCloseButton, title, subtitle, ...otherProps }: HeaderProps): React.JSX.Element;
36
32
  declare namespace Header {
37
33
  var propTypes: {
38
34
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
39
35
  icon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
40
- onRequestClose: PropTypes.Requireable<(...args: any[]) => any>;
41
- subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
36
+ hideCloseButton: PropTypes.Requireable<boolean>;
42
37
  title: PropTypes.Requireable<string>;
38
+ subtitle: PropTypes.Requireable<PropTypes.ReactNodeLike>;
43
39
  };
44
40
  }
45
41
  export default Header;
@@ -1,12 +1,13 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import Body from './Body';
3
4
  import Footer from './Footer';
4
5
  import Header from './Header';
5
- import { ClassComponentProps } from '../utils/types';
6
+ import { ComponentProps } from '../utils/types';
6
7
  /** @public */
7
8
  type ModalRequestCloseHandler = (data: {
8
- event: React.MouseEvent<HTMLDivElement> | MouseEvent | KeyboardEvent | TouchEvent;
9
- reason: 'clickAway' | 'escapeKey';
9
+ event: React.MouseEvent<HTMLDivElement | HTMLAnchorElement | HTMLButtonElement> | MouseEvent | KeyboardEvent | TouchEvent;
10
+ reason: 'clickAway' | 'escapeKey' | 'clickCloseButton';
10
11
  }) => void;
11
12
  type ModalInitialFocus = 'first' | 'container' | (React.Component & {
12
13
  focus: () => void;
@@ -39,7 +40,10 @@ interface ModalPropsBase {
39
40
  initialFocus?: ModalInitialFocus;
40
41
  /**
41
42
  * Called when a close event occurs. The callback is passed the event
42
- * and a reason, which is either 'escapeKey' or 'clickAway'.
43
+ * and a reason, which is 'escapeKey', 'clickAway', or 'clickCloseButton'.
44
+ *
45
+ * When `Modal` includes this prop, a close button is displayed by default in the `Modal.Header`.
46
+ * To hide the close button, pass the `hideCloseButton` prop to `Modal.Header`.
43
47
  *
44
48
  * Generally, use this callback to toggle the `open` prop.
45
49
  */
@@ -53,36 +57,26 @@ interface ModalPropsBase {
53
57
  * to the invoking element on `Modal` close. If using a ref is not possible, you *must* pass a function that sets focus to the appropriate element.
54
58
  * This function will be called after `onRequestClose`.
55
59
  */
56
- returnFocus?: React.MutableRefObject<(React.Component & {
60
+ returnFocus: React.MutableRefObject<(React.Component & {
57
61
  focus: () => void;
58
62
  }) | HTMLElement | null> | (() => void);
59
63
  }
60
- declare const defaultProps: Required<Pick<ModalPropsBase, 'closeOnClickAway' | 'divider' | 'initialFocus' | 'open'>>;
61
- type ModalProps = ClassComponentProps<ModalPropsBase, typeof defaultProps, 'div'>;
62
- declare class Modal extends Component<ModalProps> {
63
- private el;
64
- private initialFocusTimeoutId;
65
- private initialFocus;
66
- private headerTitleId;
67
- private headerSubtitleId;
68
- static propTypes: React.WeakValidationMap<ModalProps>;
69
- static defaultProps: Required<Pick<ModalPropsBase, "open" | "divider" | "closeOnClickAway" | "initialFocus">>;
70
- static Header: typeof Header;
71
- static Body: typeof Body;
72
- static Footer: typeof Footer;
73
- constructor(props: Readonly<ModalProps>);
74
- componentDidMount(): void;
75
- componentDidUpdate(prevProps: ModalProps): void;
76
- private getDefaultMotionStyle;
77
- private getMotionStyle;
78
- private handleFocus;
79
- private handleModalMount;
80
- private handleModalKeyDown;
81
- private handleRequestClose;
82
- private getProviderValue;
83
- private getModalStyles;
84
- private renderModal;
85
- render(): JSX.Element;
64
+ type ModalProps = ComponentProps<ModalPropsBase, 'div'>;
65
+ declare function Modal({ children, closeOnClickAway, elementRef, divider, initialFocus, onRequestClose, open, returnFocus, style, ...otherProps }: ModalProps): React.JSX.Element;
66
+ declare namespace Modal {
67
+ var propTypes: {
68
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
69
+ closeOnClickAway: PropTypes.Requireable<boolean>;
70
+ divider: PropTypes.Requireable<string>;
71
+ elementRef: PropTypes.Requireable<object>;
72
+ initialFocus: PropTypes.Requireable<NonNullable<string | object | null | undefined>>;
73
+ onRequestClose: PropTypes.Requireable<(...args: any[]) => any>;
74
+ open: PropTypes.Requireable<boolean>;
75
+ returnFocus: PropTypes.Validator<object>;
76
+ };
77
+ var Header: typeof import("./Header").default;
78
+ var Footer: typeof import("./Footer").default;
79
+ var Body: typeof import("./Body").default;
86
80
  }
87
81
  export default Modal;
88
82
  export { Body, Header, Footer, ModalRequestCloseHandler };
@@ -1,8 +1,10 @@
1
1
  /// <reference types="react" />
2
+ import { ModalRequestCloseHandler } from './Modal';
2
3
  export interface ModalContext {
3
4
  divider?: 'header' | 'footer' | 'both' | 'none';
4
5
  titleId?: string;
5
6
  subtitleId?: string;
7
+ onRequestClose?: ModalRequestCloseHandler;
6
8
  }
7
9
  export declare const ModalContext: import("react").Context<ModalContext>;
8
10
  export default ModalContext;
@@ -1,2 +1,3 @@
1
- declare function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
2
3
  export default Basic;
@@ -1,2 +1,3 @@
1
- declare function InitialFocus(): JSX.Element;
1
+ import React from 'react';
2
+ declare function InitialFocus(): React.JSX.Element;
2
3
  export default InitialFocus;
@@ -1,2 +1,3 @@
1
- declare function TypicalUsage(): JSX.Element;
1
+ import React from 'react';
2
+ declare function TypicalUsage(): React.JSX.Element;
2
3
  export default TypicalUsage;
@@ -1,2 +1,3 @@
1
- declare function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
2
3
  export default Basic;
@@ -61,7 +61,7 @@ declare class ModalLayer extends Component<ModalLayerProps, ModalLayerState> {
61
61
  private handleClickAway;
62
62
  private handleAnimationEnd;
63
63
  private renderLayer;
64
- render(): JSX.Element;
64
+ render(): React.JSX.Element;
65
65
  }
66
66
  export default ModalLayer;
67
67
  export { ModalLayerRequestCloseHandler, ModalLayerRenderModalHandler };
@@ -5,7 +5,7 @@ import { ComponentProps } from '../utils/types';
5
5
  type MonogramClickHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
6
6
  name?: string;
7
7
  }) => void;
8
- type MonogramSize = 'small' | 'medium' | 'large' | 'xlarge' | number;
8
+ type MonogramSize = 'small' | 'medium' | 'large' | number;
9
9
  interface MonogramPropsBase {
10
10
  /**
11
11
  * All CSS color definitions are supported, such as `#223344` or `red`.
@@ -24,11 +24,7 @@ interface MonogramPropsBase {
24
24
  name?: string;
25
25
  /** Enables interactive mode. */
26
26
  onClick?: MonogramClickHandler;
27
- /**
28
- * @deprecated The `xlarge` option has been marked for deprecation and will be removed in a future major version.
29
- *
30
- * Adjusts the size of the `Monogram`.
31
- */
27
+ /** Adjusts the size of the `Monogram`. */
32
28
  size?: MonogramSize;
33
29
  }
34
30
  type MonogramInteractiveProps = ComponentProps<MonogramPropsBase, 'button'> & {
@@ -48,7 +44,7 @@ type MonogramProps = MonogramInteractiveProps | MonogramNonInteractiveProps;
48
44
  * @public
49
45
  */
50
46
  declare function getInitials(name: string): string;
51
- declare function Monogram({ backgroundColor, initials, size, ...otherProps }: MonogramProps): JSX.Element;
47
+ declare function Monogram({ backgroundColor, initials, size, ...otherProps }: MonogramProps): React.JSX.Element;
52
48
  declare namespace Monogram {
53
49
  var propTypes: {
54
50
  backgroundColor: PropTypes.Requireable<string>;
@@ -1 +1,2 @@
1
- export default function BackgroundAuto(): JSX.Element;
1
+ import React from 'react';
2
+ export default function BackgroundAuto(): React.JSX.Element;