@splunk/react-ui 4.43.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 (631) 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 +4 -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 +393 -422
  17. package/CollapsiblePanel.js +439 -601
  18. package/Color.js +727 -967
  19. package/ColumnLayout.js +190 -234
  20. package/ComboBox.js +147 -135
  21. package/ControlGroup.js +502 -531
  22. package/Date.js +315 -416
  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 +105 -107
  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.v5.mdx +428 -0
  36. package/Markdown.js +439 -385
  37. package/Menu.js +383 -741
  38. package/Message.js +150 -322
  39. package/MessageBar.js +15 -15
  40. package/Modal.js +444 -587
  41. package/Monogram.js +1 -1
  42. package/Multiselect.js +1207 -1256
  43. package/NonInteractiveCheckbox.js +189 -0
  44. package/Number.js +495 -604
  45. package/Paginator.js +294 -406
  46. package/Paragraph.js +12 -15
  47. package/Popover.js +582 -744
  48. package/Progress.js +141 -244
  49. package/Prose.d.ts +2 -0
  50. package/Prose.js +213 -0
  51. package/RadioBar.js +328 -450
  52. package/RadioList.js +132 -216
  53. package/Resize.js +351 -402
  54. package/ResultsMenu.js +255 -358
  55. package/Scroll.js +159 -238
  56. package/Search.js +358 -437
  57. package/Select.js +1097 -1380
  58. package/SidePanel.js +179 -223
  59. package/Slider.js +440 -542
  60. package/SlidingPanels.js +377 -504
  61. package/SplitButton.js +114 -102
  62. package/StaticContent.js +58 -74
  63. package/StepBar.js +193 -258
  64. package/Switch.js +246 -552
  65. package/TabBar.js +438 -622
  66. package/TabLayout.js +197 -251
  67. package/Table.js +2355 -3673
  68. package/Text.js +422 -909
  69. package/TextArea.js +537 -959
  70. package/Tooltip.js +35 -41
  71. package/TransitionOpen.js +296 -336
  72. package/Typography.js +35 -50
  73. package/WaitSpinner.js +93 -124
  74. package/package.json +14 -15
  75. package/stubs-dependencies.d.ts +0 -7
  76. package/stubs-splunkui.d.ts +6 -1
  77. package/types/src/Accordion/Accordion.d.ts +5 -1
  78. package/types/src/Accordion/Panel.d.ts +1 -2
  79. package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
  80. package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
  81. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
  82. package/types/src/Anchor/Anchor.d.ts +1 -1
  83. package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
  84. package/types/src/Animation/Animation.d.ts +12 -2
  85. package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
  86. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
  87. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
  88. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
  89. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
  90. package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
  91. package/types/src/Avatar/Avatar.d.ts +65 -0
  92. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
  93. package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
  94. package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
  95. package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
  96. package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
  97. package/types/src/Avatar/getInitials.d.ts +9 -0
  98. package/types/src/Avatar/index.d.ts +2 -0
  99. package/types/src/Box/Box.d.ts +1 -1
  100. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  101. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  102. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
  103. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
  104. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
  105. package/types/src/Button/Button.d.ts +19 -34
  106. package/types/src/Button/docs/examples/Basic.d.ts +2 -1
  107. package/types/src/Button/docs/examples/Block.d.ts +2 -1
  108. package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
  109. package/types/src/Button/docs/examples/Icons.d.ts +2 -1
  110. package/types/src/Button/docs/examples/Menus.d.ts +2 -1
  111. package/types/src/Button/docs/examples/To.d.ts +2 -1
  112. package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
  113. package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  114. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
  115. package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
  116. package/types/src/ButtonSimple/mixin.d.ts +6 -2
  117. package/types/src/Calendar/Calendar.d.ts +2 -2
  118. package/types/src/Calendar/DateTable.d.ts +1 -1
  119. package/types/src/Calendar/Day.d.ts +1 -1
  120. package/types/src/Calendar/MonthHeader.d.ts +1 -1
  121. package/types/src/Card/Body.d.ts +1 -1
  122. package/types/src/Card/Card.d.ts +4 -9
  123. package/types/src/Card/Footer.d.ts +1 -8
  124. package/types/src/Card/Header.d.ts +2 -2
  125. package/types/src/Card/docs/examples/Actions.d.ts +2 -1
  126. package/types/src/Card/docs/examples/Basic.d.ts +2 -1
  127. package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
  128. package/types/src/Card/docs/examples/Full.d.ts +2 -1
  129. package/types/src/Card/docs/examples/Images.d.ts +2 -1
  130. package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
  131. package/types/src/CardLayout/CardLayout.d.ts +1 -1
  132. package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
  133. package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
  134. package/types/src/Chip/Chip.d.ts +1 -1
  135. package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
  136. package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
  137. package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
  138. package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
  139. package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
  140. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
  141. package/types/src/Clickable/Clickable.d.ts +13 -37
  142. package/types/src/Clickable/NavigationProvider.d.ts +2 -19
  143. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
  144. package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
  145. package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
  146. package/types/src/Code/Code.d.ts +2 -2
  147. package/types/src/Code/docs/examples/Default.d.ts +2 -1
  148. package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
  149. package/types/src/Code/docs/examples/Language.d.ts +2 -1
  150. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
  151. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
  152. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
  153. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
  154. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
  155. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
  156. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
  157. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
  158. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
  159. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
  160. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
  161. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
  162. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
  163. package/types/src/Color/Color.d.ts +24 -59
  164. package/types/src/Color/Palette.d.ts +3 -18
  165. package/types/src/Color/Swatch.d.ts +1 -4
  166. package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
  167. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
  168. package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
  169. package/types/src/Color/docs/examples/Null.d.ts +2 -1
  170. package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
  171. package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
  172. package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
  173. package/types/src/ColumnLayout/Column.d.ts +1 -11
  174. package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
  175. package/types/src/ColumnLayout/Row.d.ts +1 -11
  176. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
  177. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
  178. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
  179. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
  180. package/types/src/ComboBox/ComboBox.d.ts +4 -11
  181. package/types/src/ComboBox/Option.d.ts +2 -2
  182. package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
  183. package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
  184. package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
  185. package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
  186. package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  187. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
  188. package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
  189. package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
  190. package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
  191. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
  192. package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
  193. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
  194. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
  195. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
  196. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
  197. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
  198. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
  199. package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
  200. package/types/src/Date/Date.d.ts +30 -64
  201. package/types/src/Date/Icon.d.ts +2 -1
  202. package/types/src/Date/docs/examples/Basic.d.ts +2 -1
  203. package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
  204. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
  205. package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
  206. package/types/src/Date/docs/examples/Error.d.ts +2 -1
  207. package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
  208. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
  209. package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
  210. package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
  211. package/types/src/DefinitionList/Description.d.ts +3 -3
  212. package/types/src/DefinitionList/Term.d.ts +3 -3
  213. package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
  214. package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
  215. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
  216. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
  217. package/types/src/Divider/Divider.d.ts +1 -1
  218. package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
  219. package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
  220. package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
  221. package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
  222. package/types/src/Dropdown/Dropdown.d.ts +29 -44
  223. package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
  224. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
  225. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
  226. package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
  227. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
  228. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
  229. package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
  230. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -1
  231. package/types/src/DualListbox/DualListbox.d.ts +1 -1
  232. package/types/src/DualListbox/Label.d.ts +1 -1
  233. package/types/src/DualListbox/Listbox.d.ts +1 -1
  234. package/types/src/DualListbox/Option.d.ts +1 -1
  235. package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
  236. package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
  237. package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
  238. package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
  239. package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
  240. package/types/src/EventListener/EventListener.d.ts +1 -1
  241. package/types/src/File/File.d.ts +26 -33
  242. package/types/src/File/Icon.d.ts +2 -1
  243. package/types/src/File/IconCloud.d.ts +2 -1
  244. package/types/src/File/Item.d.ts +1 -1
  245. package/types/src/File/PaperClip.d.ts +2 -1
  246. package/types/src/File/Retry.d.ts +2 -1
  247. package/types/src/File/Trash.d.ts +2 -1
  248. package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
  249. package/types/src/File/docs/examples/Disabled.d.ts +2 -2
  250. package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
  251. package/types/src/File/docs/examples/Error.d.ts +2 -1
  252. package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
  253. package/types/src/File/docs/examples/Multi.d.ts +2 -2
  254. package/types/src/File/docs/examples/Progress.d.ts +2 -1
  255. package/types/src/File/docs/examples/Single.d.ts +2 -2
  256. package/types/src/FormRows/FormRows.d.ts +20 -14
  257. package/types/src/FormRows/Row.d.ts +11 -7
  258. package/types/src/FormRows/SortableList.d.ts +1 -1
  259. package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
  260. package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
  261. package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
  262. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
  263. package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
  264. package/types/src/Heading/Heading.d.ts +8 -20
  265. package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
  266. package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
  267. package/types/src/Heading/index.d.ts +1 -0
  268. package/types/src/Image/Image.d.ts +8 -19
  269. package/types/src/Image/docs/examples/Basic.d.ts +2 -1
  270. package/types/src/Image/icons/Cross.d.ts +2 -1
  271. package/types/src/JSONTree/JSONTree.d.ts +6 -10
  272. package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
  273. package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
  274. package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
  275. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
  276. package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
  277. package/types/src/Layer/Layer.d.ts +8 -25
  278. package/types/src/Layer/LayerStack.d.ts +2 -3
  279. package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
  280. package/types/src/Layout/Layout.d.ts +22 -0
  281. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  282. package/types/src/Layout/index.d.ts +2 -0
  283. package/types/src/Layout/test/Layout.unit.d.ts +1 -0
  284. package/types/src/Link/Link.d.ts +9 -22
  285. package/types/src/Link/docs/examples/Basic.d.ts +2 -1
  286. package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
  287. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
  288. package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
  289. package/types/src/Link/icons/External.d.ts +2 -1
  290. package/types/src/List/Item.d.ts +1 -1
  291. package/types/src/List/List.d.ts +5 -17
  292. package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
  293. package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
  294. package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
  295. package/types/src/Markdown/Markdown.d.ts +50 -59
  296. package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
  297. package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
  298. package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
  299. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
  300. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
  301. package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
  302. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
  303. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
  304. package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
  305. package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
  306. package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
  307. package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
  308. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
  309. package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
  310. package/types/src/Markdown/renderers/index.d.ts +5 -4
  311. package/types/src/Menu/Divider.d.ts +2 -1
  312. package/types/src/Menu/Heading.d.ts +3 -3
  313. package/types/src/Menu/Item.d.ts +14 -47
  314. package/types/src/Menu/Menu.d.ts +4 -19
  315. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
  316. package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
  317. package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
  318. package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
  319. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
  320. package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
  321. package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
  322. package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
  323. package/types/src/Menu/docs/examples/Links.d.ts +2 -1
  324. package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
  325. package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
  326. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
  327. package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
  328. package/types/src/Menu/icons/External.d.ts +2 -1
  329. package/types/src/Message/Message.d.ts +4 -11
  330. package/types/src/Message/Title.d.ts +1 -1
  331. package/types/src/Message/docs/examples/Basic.d.ts +2 -1
  332. package/types/src/Message/docs/examples/Content.d.ts +2 -1
  333. package/types/src/Message/docs/examples/Fill.d.ts +2 -1
  334. package/types/src/Message/docs/examples/Removable.d.ts +2 -1
  335. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  336. package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
  337. package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
  338. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
  339. package/types/src/Modal/Body.d.ts +1 -1
  340. package/types/src/Modal/Footer.d.ts +9 -1
  341. package/types/src/Modal/Header.d.ts +7 -11
  342. package/types/src/Modal/Modal.d.ts +26 -32
  343. package/types/src/Modal/ModalContext.d.ts +2 -0
  344. package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
  345. package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
  346. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
  347. package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
  348. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  349. package/types/src/Monogram/Monogram.d.ts +3 -7
  350. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
  351. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
  352. package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
  353. package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
  354. package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
  355. package/types/src/Multiselect/Compact.d.ts +1 -1
  356. package/types/src/Multiselect/Multiselect.d.ts +2 -2
  357. package/types/src/Multiselect/Normal.d.ts +1 -1
  358. package/types/src/Multiselect/Option.d.ts +1 -1
  359. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
  360. package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
  361. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
  362. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
  363. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
  364. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
  365. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
  366. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
  367. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  368. package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
  369. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
  370. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
  371. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
  372. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
  373. package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
  374. package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
  375. package/types/src/Number/Number.d.ts +46 -61
  376. package/types/src/Number/docs/examples/Basic.d.ts +2 -2
  377. package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
  378. package/types/src/Number/docs/examples/Error.d.ts +2 -1
  379. package/types/src/Number/docs/examples/Limits.d.ts +2 -2
  380. package/types/src/Number/docs/examples/Locale.d.ts +2 -2
  381. package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
  382. package/types/src/Number/utils.d.ts +1 -2
  383. package/types/src/Paginator/Button.d.ts +4 -8
  384. package/types/src/Paginator/Compact.d.ts +1 -1
  385. package/types/src/Paginator/PageControl.d.ts +1 -1
  386. package/types/src/Paginator/PageSelect.d.ts +1 -1
  387. package/types/src/Paginator/PageSeparator.d.ts +2 -1
  388. package/types/src/Paginator/Paginator.d.ts +1 -1
  389. package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
  390. package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
  391. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
  392. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
  393. package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -1
  394. package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
  395. package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
  396. package/types/src/Paragraph/Paragraph.d.ts +3 -1
  397. package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
  398. package/types/src/Paragraph/index.d.ts +1 -0
  399. package/types/src/Popover/Popover.d.ts +38 -69
  400. package/types/src/Popover/PopoverProvider.d.ts +1 -1
  401. package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
  402. package/types/src/Popover/getPlacement.d.ts +1 -1
  403. package/types/src/Progress/Progress.d.ts +3 -4
  404. package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
  405. package/types/src/Progress/docs/examples/Type.d.ts +2 -1
  406. package/types/src/Prose/Prose.d.ts +29 -0
  407. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  408. package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
  409. package/types/src/Prose/index.d.ts +2 -0
  410. package/types/src/Prose/test/Prose.unit.d.ts +1 -0
  411. package/types/src/RadioBar/Option.d.ts +2 -18
  412. package/types/src/RadioBar/RadioBar.d.ts +22 -39
  413. package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
  414. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
  415. package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
  416. package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
  417. package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
  418. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
  419. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
  420. package/types/src/RadioList/Option.d.ts +1 -1
  421. package/types/src/RadioList/RadioList.d.ts +5 -2
  422. package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
  423. package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
  424. package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
  425. package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
  426. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
  427. package/types/src/Resize/Resize.d.ts +15 -23
  428. package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
  429. package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
  430. package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
  431. package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
  432. package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
  433. package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
  434. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  435. package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
  436. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
  437. package/types/src/Scroll/Inner.d.ts +1 -1
  438. package/types/src/Scroll/Scroll.d.ts +37 -27
  439. package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
  440. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
  441. package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
  442. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
  443. package/types/src/Search/Option.d.ts +32 -32
  444. package/types/src/Search/Search.d.ts +4 -4
  445. package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
  446. package/types/src/Search/docs/examples/Loading.d.ts +2 -1
  447. package/types/src/Search/docs/examples/Options.d.ts +2 -1
  448. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
  449. package/types/src/Search/docs/examples/Results.d.ts +2 -1
  450. package/types/src/Select/Option.d.ts +8 -21
  451. package/types/src/Select/OptionBase.d.ts +3 -8
  452. package/types/src/Select/Select.d.ts +62 -22
  453. package/types/src/Select/SelectAllOption.d.ts +1 -1
  454. package/types/src/Select/SelectBase.d.ts +4 -7
  455. package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
  456. package/types/src/Select/docs/examples/Basic.d.ts +2 -1
  457. package/types/src/Select/docs/examples/Children.d.ts +2 -1
  458. package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
  459. package/types/src/Select/docs/examples/Error.d.ts +2 -1
  460. package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
  461. package/types/src/Select/docs/examples/Filter.d.ts +2 -1
  462. package/types/src/Select/docs/examples/Headings.d.ts +2 -1
  463. package/types/src/Select/docs/examples/Icons.d.ts +2 -1
  464. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  465. package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
  466. package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
  467. package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
  468. package/types/src/SidePanel/SidePanel.d.ts +18 -16
  469. package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
  470. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
  471. package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
  472. package/types/src/Slider/Slider.d.ts +32 -46
  473. package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
  474. package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
  475. package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
  476. package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
  477. package/types/src/Slider/docs/examples/Error.d.ts +2 -1
  478. package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
  479. package/types/src/SlidingPanels/Panel.d.ts +23 -20
  480. package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
  481. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
  482. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
  483. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
  484. package/types/src/SplitButton/Item.d.ts +2 -2
  485. package/types/src/SplitButton/SplitButton.d.ts +1 -1
  486. package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
  487. package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
  488. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
  489. package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
  490. package/types/src/StaticContent/StaticContent.d.ts +1 -8
  491. package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
  492. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
  493. package/types/src/StepBar/Step.d.ts +1 -1
  494. package/types/src/StepBar/StepBar.d.ts +2 -3
  495. package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
  496. package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
  497. package/types/src/StepBar/types.d.ts +2 -0
  498. package/types/src/Switch/Switch.d.ts +37 -23
  499. package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
  500. package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
  501. package/types/src/Switch/docs/examples/Error.d.ts +2 -1
  502. package/types/src/TabBar/Tab.d.ts +37 -44
  503. package/types/src/TabBar/TabBar.d.ts +21 -22
  504. package/types/src/TabBar/TabBarContext.d.ts +3 -5
  505. package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
  506. package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
  507. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
  508. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
  509. package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
  510. package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
  511. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
  512. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
  513. package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
  514. package/types/src/TabLayout/Panel.d.ts +6 -1
  515. package/types/src/TabLayout/TabLayout.d.ts +18 -31
  516. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
  517. package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
  518. package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
  519. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
  520. package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
  521. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
  522. package/types/src/Table/Body.d.ts +6 -13
  523. package/types/src/Table/Caption.d.ts +1 -1
  524. package/types/src/Table/Cell.d.ts +40 -18
  525. package/types/src/Table/ExpandButton.d.ts +9 -3
  526. package/types/src/Table/Head.d.ts +40 -40
  527. package/types/src/Table/HeadCell.d.ts +49 -23
  528. package/types/src/Table/HeadDropdownCell.d.ts +58 -51
  529. package/types/src/Table/HeadInner.d.ts +1 -3
  530. package/types/src/Table/HeadTable.d.ts +23 -12
  531. package/types/src/Table/Row.d.ts +7 -14
  532. package/types/src/Table/RowDragCell.d.ts +2 -1
  533. package/types/src/Table/Table.d.ts +13 -19
  534. package/types/src/Table/Toggle.d.ts +1 -3
  535. package/types/src/Table/docs/examples/Basic.d.ts +2 -1
  536. package/types/src/Table/docs/examples/Click.d.ts +2 -1
  537. package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
  538. package/types/src/Table/docs/examples/Complex.d.ts +2 -1
  539. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
  540. package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
  541. package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
  542. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -1
  543. package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
  544. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
  545. package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
  546. package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
  547. package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
  548. package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
  549. package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
  550. package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
  551. package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
  552. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
  553. package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
  554. package/types/src/Text/IconOutlinedHide.d.ts +2 -1
  555. package/types/src/Text/IconOutlinedView.d.ts +2 -1
  556. package/types/src/Text/Text.d.ts +62 -112
  557. package/types/src/Text/docs/examples/Basic.d.ts +2 -1
  558. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
  559. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
  560. package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
  561. package/types/src/Text/docs/examples/Error.d.ts +2 -1
  562. package/types/src/Text/docs/examples/Inline.d.ts +2 -1
  563. package/types/src/Text/docs/examples/Password.d.ts +2 -1
  564. package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
  565. package/types/src/TextArea/TextArea.d.ts +49 -87
  566. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
  567. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
  568. package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
  569. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
  570. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
  571. package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
  572. package/types/src/Tooltip/InfoIcon.d.ts +2 -1
  573. package/types/src/Tooltip/Tooltip.d.ts +9 -3
  574. package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
  575. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
  576. package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
  577. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
  578. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
  579. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
  580. package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
  581. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
  582. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
  583. package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
  584. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
  585. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
  586. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
  587. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
  588. package/types/src/Tree/Tree.d.ts +1 -1
  589. package/types/src/Tree/TreeItem.d.ts +1 -1
  590. package/types/src/Typography/Typography.d.ts +10 -19
  591. package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
  592. package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
  593. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
  594. package/types/src/utils/types.d.ts +1 -0
  595. package/Concertina.d.ts +0 -2
  596. package/Concertina.js +0 -963
  597. package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
  598. package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
  599. package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
  600. package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
  601. package/types/src/Button/icons/External.d.ts +0 -2
  602. package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
  603. package/types/src/CloseButton/CloseButton.d.ts +0 -21
  604. package/types/src/CloseButton/index.d.ts +0 -1
  605. package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
  606. package/types/src/Concertina/Concertina.d.ts +0 -46
  607. package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
  608. package/types/src/Concertina/Heading.d.ts +0 -35
  609. package/types/src/Concertina/Panel.d.ts +0 -59
  610. package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
  611. package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
  612. package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
  613. package/types/src/Concertina/index.d.ts +0 -2
  614. package/types/src/Concertina/types.d.ts +0 -1
  615. package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
  616. package/types/src/Link/docs/examples/Inline.d.ts +0 -2
  617. package/types/src/Message/Link.d.ts +0 -37
  618. package/types/src/Number/IncrementIcon.d.ts +0 -2
  619. package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
  620. package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
  621. package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
  622. package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
  623. package/types/src/Select/icons/Search.d.ts +0 -2
  624. package/types/src/Switch/CheckIcon.d.ts +0 -1
  625. package/types/src/Table/DragHandle.d.ts +0 -12
  626. package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
  627. package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
  628. package/types/src/Text/docs/examples/Search.d.ts +0 -2
  629. package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
  630. package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
  631. package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
@@ -1,5 +1,5 @@
1
- import React, { Component } from 'react';
2
- import FormRowsContext from './FormRowsContext';
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
3
  type RowKeyDownHandler = (event: React.KeyboardEvent<HTMLDivElement>, data: {
4
4
  index: number;
5
5
  }) => void;
@@ -20,11 +20,15 @@ interface RowPropsBase {
20
20
  /** The contents of Row */
21
21
  value?: React.ReactNode;
22
22
  }
23
- declare class Row extends Component<RowPropsBase, {}> {
24
- static propTypes: React.WeakValidationMap<RowPropsBase>;
25
- context: React.ContextType<typeof FormRowsContext>;
26
- static contextType: React.Context<FormRowsContext>;
27
- render(): JSX.Element;
23
+ declare function Row({ children, elementRef, ...otherProps }: RowPropsBase): React.JSX.Element;
24
+ declare namespace Row {
25
+ var propTypes: {
26
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
27
+ elementRef: PropTypes.Requireable<object>;
28
+ index: PropTypes.Requireable<number>;
29
+ onRequestRemove: PropTypes.Requireable<(...args: any[]) => any>;
30
+ value: PropTypes.Requireable<PropTypes.ReactNodeLike>;
31
+ };
28
32
  }
29
33
  export default Row;
30
34
  export type { RowKeyDownHandler, RowPropsBase, RowRequestRemoveHandler };
@@ -6,6 +6,6 @@ type SortEndHandler = ({ oldIndex, newIndex }: {
6
6
  declare const SortableList: ({ children, onSortEnd, }: {
7
7
  children?: React.ReactNode;
8
8
  onSortEnd: SortEndHandler;
9
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
10
10
  export default SortableList;
11
11
  export { SortEndHandler };
@@ -7,6 +7,6 @@ declare class Basic extends Component<{}, {
7
7
  handleRequestAdd: () => void;
8
8
  handleRequestMove: FormRowsRequestMoveHandler;
9
9
  handleRequestRemove: RowRequestRemoveHandler;
10
- render(): JSX.Element;
10
+ render(): React.JSX.Element;
11
11
  }
12
12
  export default Basic;
@@ -7,6 +7,6 @@ declare class Header extends Component<{}, {
7
7
  handleRequestAdd: () => void;
8
8
  handleRequestMove: FormRowsRequestMoveHandler;
9
9
  handleRequestRemove: RowRequestRemoveHandler;
10
- render(): JSX.Element;
10
+ render(): React.JSX.Element;
11
11
  }
12
12
  export default Header;
@@ -8,6 +8,6 @@ declare class Menu extends Component<{}, {
8
8
  handleRequestAdd: SelectChangeHandler;
9
9
  handleRequestMove: FormRowsRequestMoveHandler;
10
10
  handleRequestRemove: RowRequestRemoveHandler;
11
- render(): JSX.Element;
11
+ render(): React.JSX.Element;
12
12
  }
13
13
  export default Menu;
@@ -5,6 +5,6 @@ declare class ReorderOnly extends Component<{}, {
5
5
  }> {
6
6
  constructor(props: {});
7
7
  handleRequestMove: FormRowsRequestMoveHandler;
8
- render(): JSX.Element;
8
+ render(): React.JSX.Element;
9
9
  }
10
10
  export default ReorderOnly;
@@ -1,2 +1,3 @@
1
- declare const FormRowsPlusIcon: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const FormRowsPlusIcon: () => React.JSX.Element;
2
3
  export default FormRowsPlusIcon;
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { TypographyTitleVariant } from '@splunk/themes/mixins';
4
+ import { StyledTypography } from './HeadingStyles';
4
5
  import { ComponentProps } from '../utils/types';
5
6
  interface HeadingPropsBase {
6
- children?: React.ReactNode;
7
+ children: React.ReactNode;
7
8
  /**
8
9
  * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
9
10
  */
@@ -11,12 +12,8 @@ interface HeadingPropsBase {
11
12
  /**
12
13
  * Corresponds to the respective `<hX>` HTML tags and `typography(titleX)` `@splunk/themes` typography variant.
13
14
  * Styles will be set corresponding to level if variant is not provided: e.g. `level=3` will default to using `title3` from `mixins`.
14
- *
15
- * @deprecatedValue 's' and 'ss'
16
- * The `s` and `ss` values are deprecated and will be removed in a future major version.
17
- * See the migration guide for how to maintain the same styling as `level="s"` and `level="ss"`.
18
15
  */
19
- level?: 1 | 2 | 3 | 4 | 's' | 'ss' | 5 | 6;
16
+ level: 1 | 2 | 3 | 4 | 5 | 6;
20
17
  /**
21
18
  * Styles the component based on typography mixin title preset styles.
22
19
  * If a variant is not provided, styles will be set corresponding to level: e.g. `level=3` will default to using `title3` from `mixins`.
@@ -24,24 +21,15 @@ interface HeadingPropsBase {
24
21
  variant?: TypographyTitleVariant;
25
22
  }
26
23
  type HeadingProps = ComponentProps<HeadingPropsBase, 'h1'>;
27
- declare const levelToElement: {
28
- readonly '1': "h1";
29
- readonly '2': "h2";
30
- readonly '3': "h3";
31
- readonly '4': "h4";
32
- readonly s: "h4";
33
- readonly ss: "h5";
34
- readonly '5': "h5";
35
- readonly '6': "h6";
36
- };
37
- declare function Heading({ children, elementRef, level, variant, ...otherProps }: HeadingProps): JSX.Element;
24
+ declare const levelToElement: Record<number, React.ElementType>;
25
+ declare function Heading({ level, elementRef, children, variant, ...otherProps }: HeadingProps): React.JSX.Element;
38
26
  declare namespace Heading {
39
27
  var propTypes: {
40
- children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
28
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
41
29
  elementRef: PropTypes.Requireable<object>;
42
- level: PropTypes.Requireable<string | number>;
30
+ level: PropTypes.Validator<number>;
43
31
  variant: PropTypes.Requireable<string>;
44
32
  };
45
33
  }
46
34
  export default Heading;
47
- export { levelToElement };
35
+ export { levelToElement, StyledTypography as StyledHeading };
@@ -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 Variant(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Variant(): React.JSX.Element;
2
3
  export default Variant;
@@ -1 +1,2 @@
1
1
  export { default } from './Heading';
2
+ export * from './Heading';
@@ -1,6 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ClassComponentProps } from '../utils/types';
3
+ import { ComponentProps } from '../utils/types';
4
4
  /** @public */
5
5
  type ImageImageChangeHandler = (data: {
6
6
  filename: string | null;
@@ -33,18 +33,14 @@ interface ImagePropsBase {
33
33
  * `null` if the image was removed. */
34
34
  onImageChange?: ImageImageChangeHandler;
35
35
  }
36
- declare const defaultProps: Required<Pick<ImagePropsBase, 'allowExtensions' | 'disabled' | 'dropAnywhere' | 'error' | 'maxHeight'>>;
37
- type ImageProps = ClassComponentProps<ImagePropsBase, typeof defaultProps, 'div'>;
38
- interface ImageState {
39
- filename?: string | null;
40
- imageDataURI?: string | null;
41
- }
36
+ type ImageProps = ComponentProps<ImagePropsBase, 'div'>;
37
+ declare const isAllowedFilename: (filename: string, allowExtensions: string[]) => boolean;
42
38
  /**
43
39
  * Image provides the ability to accept image files and present a preview of the image.
44
40
  */
45
- declare class Image extends Component<ImageProps, ImageState> {
46
- private fileReader;
47
- static propTypes: {
41
+ declare function Image({ allowExtensions, defaultFilename: defaultFilenameProp, defaultImageDataURI, disabled, error, maxHeight, onImageChange, ...otherProps }: ImageProps): React.JSX.Element;
42
+ declare namespace Image {
43
+ var propTypes: {
48
44
  allowExtensions: PropTypes.Requireable<(string | null | undefined)[]>;
49
45
  defaultFilename: PropTypes.Requireable<string>;
50
46
  defaultImageDataURI: PropTypes.Requireable<string>;
@@ -55,14 +51,7 @@ declare class Image extends Component<ImageProps, ImageState> {
55
51
  maxHeight: PropTypes.Requireable<number>;
56
52
  onImageChange: PropTypes.Requireable<(...args: any[]) => any>;
57
53
  };
58
- static defaultProps: Required<Pick<ImagePropsBase, "disabled" | "maxHeight" | "error" | "dropAnywhere" | "allowExtensions">>;
59
- static isAllowedFilename(filename: string, allowExtensions: string[]): boolean;
60
- constructor(props: Readonly<ImageProps>);
61
- componentDidUpdate(prevProps: Readonly<ImageProps>): void;
62
- private handleAddFiles;
63
- private handleRemoveFile;
64
- render(): JSX.Element;
65
54
  }
66
55
  export default Image;
67
- export { ImageImageChangeHandler };
56
+ export { ImageImageChangeHandler, isAllowedFilename };
68
57
  export type { ImagePropsBase };
@@ -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 const CrossIcon: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const CrossIcon: () => React.JSX.Element;
2
3
  export default CrossIcon;
@@ -22,14 +22,10 @@ interface JSONTreePropsBase {
22
22
  */
23
23
  elementRef?: React.Ref<HTMLElement>;
24
24
  /**
25
- * @deprecated The `expandChildren="withShiftModifier"` value is deprecated and will be removed in a future major version. Use the `expandChildrenOnShiftKey` prop instead.
26
- *
27
- * If set to `true`, `expandChildren` will expand all nodes on initial render
28
- * and expand all descendant nodes of any expanded node. The default is `false`, which expands only the first
29
- * level of properties. If set to `withShiftModifier`, using `shift + click` or `shift + enter` will
30
- * expand or collapse all descendant nodes of the tree at once.
25
+ * If set to `true`, `defaultExpanded` will expand all nodes on initial render.
26
+ * The default is `false`, which expands only the first level of properties.
31
27
  */
32
- expandChildren?: boolean | 'withShiftModifier';
28
+ defaultExpanded?: boolean;
33
29
  /**
34
30
  * Number of space characters per level of indentation.
35
31
  */
@@ -60,7 +56,7 @@ interface JSONTreePropsBase {
60
56
  /**
61
57
  * If set to `true`, using `shift + click` or `shift + enter` will expand all descendant nodes
62
58
  * of the tree at once. A tooltip is added to the expand all / collapse all button to indicate that this feature
63
- * is enabled.
59
+ * is enabled. Defaults to `true`.
64
60
  */
65
61
  expandChildrenOnShiftKey?: boolean;
66
62
  }
@@ -68,11 +64,11 @@ type JSONTreeProps = ComponentProps<JSONTreePropsBase, 'code'>;
68
64
  /**
69
65
  * Used to visualize a JSON string.
70
66
  */
71
- declare function JSONTree({ elementRef, expandChildren, indent, json, onClickKey, onClickValue, overflow, expandChildrenOnShiftKey, ...otherProps }: JSONTreeProps): JSX.Element;
67
+ declare function JSONTree({ elementRef, defaultExpanded, indent, json, onClickKey, onClickValue, overflow, expandChildrenOnShiftKey, ...otherProps }: JSONTreeProps): React.JSX.Element;
72
68
  declare namespace JSONTree {
73
69
  var propTypes: {
74
70
  elementRef: PropTypes.Requireable<object>;
75
- expandChildren: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
71
+ defaultExpanded: PropTypes.Requireable<boolean>;
76
72
  indent: PropTypes.Requireable<number>;
77
73
  json: PropTypes.Validator<NonNullable<NonNullable<string | number | boolean | object | null | undefined>>>;
78
74
  onClickKey: PropTypes.Requireable<(...args: any[]) => any>;
@@ -25,7 +25,7 @@ interface JSONTreeItemPropsBase extends TreeItemPropsBase {
25
25
  value?: JSONElement;
26
26
  }
27
27
  type JSONTreeItemProps = ComponentProps<JSONTreeItemPropsBase, 'li'>;
28
- export declare function JSONTreeItem({ clickableKeyRef, clickableValRef, hasChildren, indentArray, index, initialOpenState, onFocus, properties, propertyDataPath, propertyElement, renderExpandLink, representation, value, ...otherProps }: JSONTreeItemProps): JSX.Element;
28
+ export declare function JSONTreeItem({ clickableKeyRef, clickableValRef, hasChildren, indentArray, index, initialOpenState, onFocus, properties, propertyDataPath, propertyElement, renderExpandLink, representation, value, ...otherProps }: JSONTreeItemProps): React.JSX.Element;
29
29
  export declare namespace JSONTreeItem {
30
30
  var propTypes: {
31
31
  clickableKeyRef: PropTypes.Requireable<object>;
@@ -1 +1,2 @@
1
- export default function Basic(): JSX.Element;
1
+ import React from 'react';
2
+ export default function Basic(): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import { JSONTreeClickValueHandler, JSONTreeClickKeyHandler } from '@splunk/react-ui/JSONTree';
3
3
  declare class Events extends Component<{}, {
4
4
  key: string;
@@ -8,6 +8,6 @@ declare class Events extends Component<{}, {
8
8
  constructor(props: {});
9
9
  onClickJSONValue: JSONTreeClickValueHandler;
10
10
  onClickJSONKey: JSONTreeClickKeyHandler;
11
- render(): JSX.Element;
11
+ render(): React.JSX.Element;
12
12
  }
13
13
  export default Events;
@@ -1 +1,2 @@
1
- export default function ExpandChildrenOnShiftKey(): JSX.Element;
1
+ import React from 'react';
2
+ export default function ExpandChildrenOnShiftKey(): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { JSONElement, JSONTreeClickKeyHandler, JSONTreeClickValueHandler } from './JSONTree';
2
3
  type RenderTreeItemsProps = {
3
4
  defaultOpen?: boolean;
4
- expandChildren?: boolean | 'withShiftModifier';
5
+ defaultExpanded?: boolean;
5
6
  expandChildrenOnShiftKey?: boolean;
6
7
  indent?: number;
7
8
  indentLevel?: number;
@@ -13,5 +14,5 @@ type RenderTreeItemsProps = {
13
14
  shift?: boolean;
14
15
  updateShift: ((newShift: boolean) => void) | undefined;
15
16
  };
16
- export declare function renderTreeItems({ defaultOpen, expandChildren, expandChildrenOnShiftKey, indent, indentLevel, obj, onClickKey, onClickValue, overflow, path, shift, updateShift, }: RenderTreeItemsProps): JSX.Element | JSX.Element[];
17
+ export declare function renderTreeItems({ defaultOpen, defaultExpanded, expandChildrenOnShiftKey, indent, indentLevel, obj, onClickKey, onClickValue, overflow, path, shift, updateShift, }: RenderTreeItemsProps): React.JSX.Element | React.JSX.Element[];
17
18
  export {};
@@ -1,5 +1,4 @@
1
- import React, { Component } from 'react';
2
- import { LayerStackContext } from './LayerStack';
1
+ import React, { JSXElementConstructor } from 'react';
3
2
  /** @public */
4
3
  type LayerPossibleCloseReason = 'clickAway' | 'escapeKey';
5
4
  /** @public */
@@ -7,7 +6,7 @@ type LayerRequestCloseHandler = (data: {
7
6
  event: MouseEvent | KeyboardEvent | TouchEvent;
8
7
  reason: LayerPossibleCloseReason;
9
8
  }) => void;
10
- interface LayerPropsBase {
9
+ interface LayerProps {
11
10
  children?: React.ReactNode;
12
11
  /**
13
12
  * An array of reasons (`clickAway`, `escapeKey`) for which this `Layer` should close.
@@ -23,26 +22,10 @@ interface LayerPropsBase {
23
22
  */
24
23
  open?: boolean;
25
24
  }
26
- declare const defaultProps: Required<Pick<LayerPropsBase, 'closeReasons' | 'open'>>;
27
- type LayerProps = LayerPropsBase & typeof defaultProps;
28
- declare class Layer extends Component<LayerProps, {}> {
29
- private layerClickEvent;
30
- private static layerContainer;
31
- static possibleCloseReasons: LayerPossibleCloseReason[];
32
- static propTypes: React.WeakValidationMap<LayerProps>;
33
- static defaultProps: Required<Pick<LayerPropsBase, "open" | "closeReasons">>;
34
- context: React.ContextType<typeof LayerStackContext>;
35
- static contextType: React.Context<Layer[]>;
36
- constructor(props: Readonly<LayerProps>);
37
- componentDidMount(): void;
38
- componentDidUpdate(prevProps: Readonly<LayerProps>): void;
39
- componentWillUnmount(): void;
40
- private getLayerStack;
41
- private static handleFullScreenChange;
42
- private handleClickOnLayer;
43
- private handleClickOnWindow;
44
- private handleKeyDownOnWindow;
45
- render(): JSX.Element;
46
- }
25
+ declare const Layer: JSXElementConstructor<LayerProps> & {
26
+ layerContainer: HTMLDivElement | null;
27
+ possibleCloseReasons: LayerPossibleCloseReason[];
28
+ propTypes: React.WeakValidationMap<LayerProps>;
29
+ };
47
30
  export default Layer;
48
- export { LayerPossibleCloseReason, LayerRequestCloseHandler };
31
+ export { LayerProps, LayerPossibleCloseReason, LayerRequestCloseHandler };
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Layer from './Layer';
4
3
  /**
5
4
  * `LayerStackContext` is used to manage the array that `Layer` (and components that
6
5
  * depend on it, such as `Modal`) uses to determine the order of open layers.
7
6
  * @public
8
7
  */
9
- export declare const LayerStackContext: React.Context<Layer[]>;
8
+ export declare const LayerStackContext: React.Context<string[]>;
10
9
  interface LayerContextProps {
11
10
  /** Whether or not to have each layer create its own CSS stacking context. */
12
11
  separateStackingContexts?: boolean;
@@ -26,7 +25,7 @@ interface LayerStackGlobalProviderProps extends LayerContextProps {
26
25
  * Applications should only use this provider if there's a known need to support multiple
27
26
  * instances of this library on the same page.
28
27
  */
29
- declare function LayerStackGlobalProvider({ children, name, scope, separateStackingContexts, }: LayerStackGlobalProviderProps): JSX.Element;
28
+ declare function LayerStackGlobalProvider({ children, name, scope, separateStackingContexts, }: LayerStackGlobalProviderProps): React.JSX.Element;
30
29
  declare namespace LayerStackGlobalProvider {
31
30
  var propTypes: {
32
31
  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;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { ComponentProps } from '../utils/types';
4
+ interface LayoutPropsBase {
5
+ children?: React.ReactNode;
6
+ /**
7
+ * A React ref which is set to the DOM element when the component mounts, and null when it unmounts.
8
+ */
9
+ elementRef?: React.Ref<HTMLDivElement>;
10
+ }
11
+ type LayoutProps = ComponentProps<LayoutPropsBase, 'div'>;
12
+ /**
13
+ * Renders a container to layout children using standard spacing values.
14
+ */
15
+ export declare function Layout({ children, elementRef, ...otherProps }: LayoutProps): React.JSX.Element;
16
+ export declare namespace Layout {
17
+ var propTypes: {
18
+ children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
19
+ elementRef: PropTypes.Requireable<object>;
20
+ };
21
+ }
22
+ export default Layout;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare function Basic(): React.JSX.Element;
3
+ export default Basic;
@@ -0,0 +1,2 @@
1
+ export { default } from './Layout';
2
+ export * from './Layout';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,15 +1,13 @@
1
- import React, { Component } from 'react';
2
- import { legacyRefMode } from '@splunk/react-ui/Dropdown';
3
- import { ClassComponentProps } from '../utils/types';
1
+ import React from 'react';
2
+ import { ComponentProps } from '../utils/types';
4
3
  interface LinkPropsBase {
5
4
  /**
6
- * Links may need to be rendered as "disabled": e.g. last link in a breadcrumb. Disabled links, must have the `to` (ideally to '') and `disabled` props set.
7
- * @private
5
+ * Changes the style of the link.
8
6
  */
9
- allowDisabledLink?: boolean;
7
+ appearance?: 'inline' | 'standalone';
10
8
  children?: React.ReactNode;
11
9
  /**
12
- * Adds a disabled attribute and prevent clicking.
10
+ * Adds an aria-disabled attribute and prevents clicking.
13
11
  */
14
12
  disabled?: boolean;
15
13
  /**
@@ -34,24 +32,13 @@ interface LinkPropsBase {
34
32
  */
35
33
  to?: string;
36
34
  }
37
- declare const defaultProps: Required<Pick<LinkPropsBase, 'disabled' | 'openInNewContext'>>;
38
- type LinkLinkProps = ClassComponentProps<LinkPropsBase, typeof defaultProps, 'a', 'href'>;
39
- type LinkButtonProps = ClassComponentProps<LinkPropsBase, typeof defaultProps, 'button'>;
35
+ type LinkLinkProps = ComponentProps<LinkPropsBase, 'a', 'href'>;
36
+ type LinkButtonProps = ComponentProps<LinkPropsBase, 'button'>;
40
37
  type LinkProps = LinkLinkProps | LinkButtonProps;
41
38
  /**
42
39
  * `Link` is a simple method for configuring `Button` for inline links. For more complex behaviors,
43
40
  * see the `Button` documentation.
44
41
  */
45
- declare class Link extends Component<LinkProps> {
46
- private component;
47
- static propTypes: React.WeakValidationMap<LinkProps>;
48
- static defaultProps: Required<Pick<LinkPropsBase, "disabled" | "openInNewContext">>;
49
- static [legacyRefMode]: boolean;
50
- private handleMount;
51
- /**
52
- * Place focus on the link.
53
- */
54
- focus(): void;
55
- render(): JSX.Element;
56
- }
42
+ declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
57
43
  export default Link;
44
+ export { LinkProps };
@@ -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 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 NewWindow(): JSX.Element;
1
+ import React from 'react';
2
+ declare function NewWindow(): React.JSX.Element;
2
3
  export default NewWindow;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare function Standalone(): React.JSX.Element;
3
+ export default Standalone;
@@ -1,2 +1,3 @@
1
- declare function External(): JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const External: import("styled-components").StyledComponent<({ children, variant, ...otherprops }: import("@splunk/react-icons/ArrowSquareTopRightInset").IconBaseProps) => import("react").JSX.Element | null, any, {}, never>;
2
3
  export default External;
@@ -12,7 +12,7 @@ type ItemProps = ComponentProps<ItemPropsBase, 'li'>;
12
12
  /**
13
13
  * A container for items of a `List`.
14
14
  */
15
- declare function Item({ children, elementRef, ...otherProps }: ItemProps): JSX.Element;
15
+ declare function Item({ children, elementRef, ...otherProps }: ItemProps): React.JSX.Element;
16
16
  declare namespace Item {
17
17
  var propTypes: {
18
18
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import Item from './Item';
4
+ import { Styled } from './ListStyles';
4
5
  import { ComponentProps } from '../utils/types';
5
6
  interface ListPropsBase {
6
7
  children?: React.ReactNode;
@@ -12,38 +13,25 @@ interface ListPropsBase {
12
13
  elementRef?: React.Ref<HTMLOListElement | HTMLUListElement>;
13
14
  /** Sets the element as an `HTMLOListElement` otherwise it defaults to `HTMLUListElement`. */
14
15
  ordered?: boolean;
15
- /**
16
- * @deprecated
17
- * This prop is deprecated and will be removed in a future major version. List will default to `HTMLUListElement`. Use `ordered` prop to set list to `HTMLOListElement`. Use CSS to style the `list-style-type` property.
18
- */
19
- type?: 'disc' | 'decimal' | 'lower-alpha' | 'upper-alpha';
20
16
  }
21
17
  interface ListOrderedPropsBase extends ListPropsBase {
22
18
  elementRef?: React.Ref<HTMLOListElement>;
23
19
  ordered: true;
24
- type?: never;
25
- }
26
- interface ListOrderedTypePropsBase extends ListPropsBase {
27
- elementRef?: React.Ref<HTMLOListElement>;
28
- ordered?: never;
29
- type?: 'decimal' | 'lower-alpha' | 'upper-alpha';
30
20
  }
31
21
  interface ListUnorderedPropsBase extends ListPropsBase {
32
22
  elementRef?: React.Ref<HTMLUListElement>;
33
- type?: 'disc';
34
23
  }
35
- type ListOrderedProps = ComponentProps<ListOrderedPropsBase | ListOrderedTypePropsBase, 'ol'>;
36
24
  type ListUnorderedProps = ComponentProps<ListUnorderedPropsBase, 'ul'>;
37
- type ListProps = ListOrderedProps | ListUnorderedProps;
38
- declare function List({ children, elementRef, type, ordered, ...otherProps }: ListProps): JSX.Element;
25
+ type ListOrderedProps = ComponentProps<ListOrderedPropsBase, 'ol'>;
26
+ type ListProps = ListUnorderedProps | ListOrderedProps;
27
+ declare function List({ children, elementRef, ordered, ...otherProps }: ListProps): React.JSX.Element;
39
28
  declare namespace List {
40
29
  var propTypes: {
41
30
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
42
31
  elementRef: PropTypes.Requireable<object>;
43
32
  ordered: PropTypes.Requireable<boolean>;
44
- type: PropTypes.Requireable<string>;
45
33
  };
46
34
  var Item: typeof import("./Item").default;
47
35
  }
48
36
  export default List;
49
- export { Item };
37
+ export { Item, Styled as StyledList };
@@ -1,2 +1,3 @@
1
- declare function CustomizedList(): JSX.Element;
1
+ import React from 'react';
2
+ declare function CustomizedList(): React.JSX.Element;
2
3
  export default CustomizedList;
@@ -1,2 +1,3 @@
1
- declare function Ordered(): JSX.Element;
1
+ import React from 'react';
2
+ declare function Ordered(): React.JSX.Element;
2
3
  export default Ordered;
@@ -1,2 +1,3 @@
1
- declare function UnorderedList(): JSX.Element;
1
+ import React from 'react';
2
+ declare function UnorderedList(): React.JSX.Element;
2
3
  export default UnorderedList;