@splunk/react-ui 5.0.0 → 5.2.0

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 (443) hide show
  1. package/Accordion.js +105 -84
  2. package/Anchor.js +9 -9
  3. package/Animation.js +2 -2
  4. package/Avatar.js +30 -30
  5. package/Box.js +2 -2
  6. package/Breadcrumbs.js +54 -54
  7. package/Button.js +36 -36
  8. package/ButtonGroup.js +9 -9
  9. package/ButtonSimple.js +2 -2
  10. package/CHANGELOG.md +44 -2
  11. package/Calendar.js +130 -130
  12. package/Card.js +308 -277
  13. package/CardLayout.js +10 -10
  14. package/Chip.js +44 -44
  15. package/Clickable.js +51 -51
  16. package/Code.js +654 -519
  17. package/CollapsiblePanel.js +158 -156
  18. package/Color.js +117 -117
  19. package/ColumnLayout.js +41 -41
  20. package/ComboBox.js +183 -199
  21. package/ControlGroup.js +186 -178
  22. package/Date.js +152 -150
  23. package/DefinitionList.js +124 -104
  24. package/Divider.js +2 -2
  25. package/DualListbox.js +706 -717
  26. package/File.js +407 -407
  27. package/FormRows.js +74 -71
  28. package/Heading.js +15 -15
  29. package/Image.js +38 -38
  30. package/JSONTree.js +695 -578
  31. package/Layer.js +64 -73
  32. package/Layout.js +10 -10
  33. package/Link.js +2 -2
  34. package/List.js +24 -24
  35. package/Markdown.js +150 -150
  36. package/Menu.js +64 -63
  37. package/Message.js +20 -20
  38. package/MessageBar.js +13 -13
  39. package/Modal.js +76 -76
  40. package/ModalLayer.js +6 -6
  41. package/Monogram.js +104 -78
  42. package/Multiselect.js +1181 -1080
  43. package/Number.js +115 -115
  44. package/Paginator.js +46 -46
  45. package/Paragraph.js +10 -10
  46. package/Popover.js +527 -446
  47. package/Progress.js +17 -17
  48. package/Prose.js +19 -19
  49. package/RadioBar.js +242 -228
  50. package/RadioList.js +175 -150
  51. package/Resize.js +20 -20
  52. package/ResultsMenu.js +63 -63
  53. package/ScreenReaderContent.js +13 -13
  54. package/Scroll.js +70 -70
  55. package/Search.js +155 -171
  56. package/Select.js +1150 -1049
  57. package/SidePanel.js +29 -29
  58. package/Slider.js +60 -60
  59. package/SlidingPanels.js +52 -52
  60. package/SplitButton.js +121 -93
  61. package/StaticContent.js +6 -6
  62. package/StepBar.js +104 -104
  63. package/Switch.js +47 -47
  64. package/TabBar.js +346 -323
  65. package/TabLayout.js +78 -78
  66. package/Table.js +1408 -1377
  67. package/Text.js +67 -67
  68. package/TextArea.js +100 -85
  69. package/Tooltip.js +209 -203
  70. package/TransitionOpen.js +11 -11
  71. package/Tree.js +452 -349
  72. package/Typography.js +15 -15
  73. package/WaitSpinner.js +6 -6
  74. package/package.json +17 -20
  75. package/stubs-dependencies.d.ts +0 -70
  76. package/stubs-splunkui.d.ts +4 -0
  77. package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
  78. package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
  79. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
  80. package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
  81. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
  82. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
  83. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
  84. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
  85. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
  86. package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
  87. package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
  88. package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
  89. package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
  90. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
  91. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
  92. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
  93. package/types/src/Button/docs/examples/Basic.d.ts +3 -0
  94. package/types/src/Button/docs/examples/Block.d.ts +4 -0
  95. package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
  96. package/types/src/Button/docs/examples/Icons.d.ts +4 -0
  97. package/types/src/Button/docs/examples/Menus.d.ts +4 -0
  98. package/types/src/Button/docs/examples/To.d.ts +4 -0
  99. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
  100. package/types/src/Card/docs/examples/Basic.d.ts +4 -0
  101. package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
  102. package/types/src/Card/docs/examples/Full.d.ts +4 -0
  103. package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
  104. package/types/src/Card/docs/examples/Images.d.ts +4 -0
  105. package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
  106. package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
  107. package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
  108. package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
  109. package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
  110. package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
  111. package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
  112. package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
  113. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
  114. package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
  115. package/types/src/Code/Code.d.ts +17 -1
  116. package/types/src/Code/LineHighlights.d.ts +11 -0
  117. package/types/src/Code/LineNumbers.d.ts +6 -0
  118. package/types/src/Code/docs/examples/Default.d.ts +3 -0
  119. package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
  120. package/types/src/Code/docs/examples/Language.d.ts +4 -0
  121. package/types/src/Code/docs/examples/LineHighlights.d.ts +7 -0
  122. package/types/src/Code/docs/examples/LineNumbers.d.ts +7 -0
  123. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +7 -0
  124. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
  125. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
  126. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
  127. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
  128. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
  129. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
  130. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
  131. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
  132. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
  133. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
  134. package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
  135. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
  136. package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
  137. package/types/src/Color/docs/examples/Null.d.ts +4 -0
  138. package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
  139. package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
  140. package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
  141. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
  142. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
  143. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
  144. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
  145. package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
  146. package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
  147. package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
  148. package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
  149. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
  150. package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
  151. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +4 -0
  152. package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
  153. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
  154. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
  155. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
  156. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
  157. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
  158. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
  159. package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
  160. package/types/src/Date/Date.d.ts +6 -1
  161. package/types/src/Date/docs/examples/Basic.d.ts +3 -0
  162. package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
  163. package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
  164. package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
  165. package/types/src/Date/docs/examples/Error.d.ts +3 -0
  166. package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
  167. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
  168. package/types/src/DefinitionList/DefinitionList.d.ts +23 -5
  169. package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
  170. package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
  171. package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
  172. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
  173. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
  174. package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
  175. package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
  176. package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
  177. package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
  178. package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
  179. package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
  180. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
  181. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
  182. package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
  183. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
  184. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
  185. package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
  186. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
  187. package/types/src/DualListbox/Option.d.ts +1 -1
  188. package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
  189. package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
  190. package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
  191. package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
  192. package/types/src/File/docs/examples/Disabled.d.ts +3 -0
  193. package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
  194. package/types/src/File/docs/examples/Error.d.ts +4 -0
  195. package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
  196. package/types/src/File/docs/examples/Multi.d.ts +4 -0
  197. package/types/src/File/docs/examples/Progress.d.ts +4 -0
  198. package/types/src/File/docs/examples/Single.d.ts +4 -0
  199. package/types/src/FormRows/FormRows.d.ts +1 -1
  200. package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
  201. package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
  202. package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
  203. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
  204. package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
  205. package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
  206. package/types/src/Image/docs/examples/Basic.d.ts +3 -0
  207. package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
  208. package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
  209. package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
  210. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
  211. package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
  212. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  213. package/types/src/Link/docs/examples/Basic.d.ts +4 -0
  214. package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
  215. package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
  216. package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
  217. package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
  218. package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
  219. package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
  220. package/types/src/Markdown/Markdown.d.ts +1 -1
  221. package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
  222. package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
  223. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
  224. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
  225. package/types/src/Markdown/renderers/index.d.ts +1 -1
  226. package/types/src/Menu/Item.d.ts +27 -10
  227. package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
  228. package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
  229. package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
  230. package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
  231. package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
  232. package/types/src/Menu/docs/examples/Disabled.d.ts +3 -0
  233. package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
  234. package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
  235. package/types/src/Menu/docs/examples/Links.d.ts +4 -0
  236. package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
  237. package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
  238. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
  239. package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
  240. package/types/src/Message/docs/examples/Basic.d.ts +3 -0
  241. package/types/src/Message/docs/examples/Content.d.ts +4 -0
  242. package/types/src/Message/docs/examples/Fill.d.ts +3 -0
  243. package/types/src/Message/docs/examples/Removable.d.ts +3 -0
  244. package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
  245. package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
  246. package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
  247. package/types/src/Modal/Modal.d.ts +10 -3
  248. package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
  249. package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
  250. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
  251. package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
  252. package/types/src/Monogram/Monogram.d.ts +4 -0
  253. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
  254. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
  255. package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
  256. package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
  257. package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
  258. package/types/src/Multiselect/Compact.d.ts +1 -1
  259. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  260. package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
  261. package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
  262. package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
  263. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
  264. package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
  265. package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
  266. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
  267. package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
  268. package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
  269. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  270. package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
  271. package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
  272. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
  273. package/types/src/Number/docs/examples/Basic.d.ts +4 -0
  274. package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
  275. package/types/src/Number/docs/examples/Error.d.ts +3 -0
  276. package/types/src/Number/docs/examples/Limits.d.ts +4 -0
  277. package/types/src/Number/docs/examples/Locale.d.ts +4 -0
  278. package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
  279. package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
  280. package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
  281. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
  282. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
  283. package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
  284. package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
  285. package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
  286. package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
  287. package/types/src/Popover/Popover.d.ts +1 -1
  288. package/types/src/Popover/PopoverProvider.d.ts +9 -1
  289. package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
  290. package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
  291. package/types/src/Progress/docs/examples/Type.d.ts +3 -0
  292. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  293. package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
  294. package/types/src/RadioBar/Option.d.ts +1 -1
  295. package/types/src/RadioBar/RadioBar.d.ts +13 -6
  296. package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
  297. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
  298. package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
  299. package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
  300. package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
  301. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
  302. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
  303. package/types/src/RadioList/RadioList.d.ts +2 -1
  304. package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
  305. package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
  306. package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
  307. package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
  308. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
  309. package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
  310. package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
  311. package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
  312. package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
  313. package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
  314. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
  315. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +7 -0
  316. package/types/src/Scroll/Inner.d.ts +1 -1
  317. package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
  318. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
  319. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
  320. package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
  321. package/types/src/Search/docs/examples/Loading.d.ts +4 -0
  322. package/types/src/Search/docs/examples/Options.d.ts +4 -0
  323. package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
  324. package/types/src/Select/Option.d.ts +1 -1
  325. package/types/src/Select/Select.d.ts +1 -1
  326. package/types/src/Select/SelectAllOption.d.ts +5 -10
  327. package/types/src/Select/SelectBase.d.ts +1 -1
  328. package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
  329. package/types/src/Select/docs/examples/Basic.d.ts +4 -0
  330. package/types/src/Select/docs/examples/Children.d.ts +4 -0
  331. package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
  332. package/types/src/Select/docs/examples/Error.d.ts +3 -0
  333. package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
  334. package/types/src/Select/docs/examples/Filter.d.ts +4 -0
  335. package/types/src/Select/docs/examples/Headings.d.ts +3 -0
  336. package/types/src/Select/docs/examples/Icons.d.ts +3 -0
  337. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  338. package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
  339. package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
  340. package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
  341. package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
  342. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
  343. package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
  344. package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
  345. package/types/src/Slider/docs/examples/Controlled.d.ts +5 -1
  346. package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
  347. package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
  348. package/types/src/Slider/docs/examples/Error.d.ts +3 -0
  349. package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
  350. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
  351. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
  352. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
  353. package/types/src/SplitButton/SplitButton.d.ts +6 -1
  354. package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
  355. package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
  356. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
  357. package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
  358. package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
  359. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
  360. package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
  361. package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
  362. package/types/src/Switch/docs/examples/Basic.d.ts +4 -0
  363. package/types/src/Switch/docs/examples/Disabled.d.ts +3 -0
  364. package/types/src/Switch/docs/examples/Error.d.ts +3 -0
  365. package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
  366. package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
  367. package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
  368. package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
  369. package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
  370. package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
  371. package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
  372. package/types/src/TabBar/tabBarUtils.d.ts +4 -0
  373. package/types/src/TabBar/types.d.ts +5 -0
  374. package/types/src/TabLayout/Panel.d.ts +0 -1
  375. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
  376. package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
  377. package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
  378. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
  379. package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
  380. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
  381. package/types/src/Table/Head.d.ts +1 -0
  382. package/types/src/Table/HeadCell.d.ts +2 -3
  383. package/types/src/Table/HeadDropdownCell.d.ts +2 -2
  384. package/types/src/Table/HeadInner.d.ts +4 -4
  385. package/types/src/Table/KeyboardSensor.d.ts +1 -1
  386. package/types/src/Table/RowDragCell.d.ts +1 -1
  387. package/types/src/Table/docs/examples/Basic.d.ts +3 -0
  388. package/types/src/Table/docs/examples/Click.d.ts +4 -0
  389. package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
  390. package/types/src/Table/docs/examples/Complex.d.ts +4 -0
  391. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
  392. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
  393. package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
  394. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
  395. package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
  396. package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
  397. package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
  398. package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
  399. package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
  400. package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
  401. package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
  402. package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
  403. package/types/src/Text/docs/examples/Basic.d.ts +4 -0
  404. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
  405. package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
  406. package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
  407. package/types/src/Text/docs/examples/Error.d.ts +4 -0
  408. package/types/src/Text/docs/examples/Inline.d.ts +4 -0
  409. package/types/src/Text/docs/examples/Password.d.ts +4 -0
  410. package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
  411. package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
  412. package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
  413. package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
  414. package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
  415. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
  416. package/types/src/Tooltip/Tooltip.d.ts +10 -5
  417. package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
  418. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
  419. package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
  420. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
  421. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
  422. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
  423. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
  424. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
  425. package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
  426. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
  427. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
  428. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
  429. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
  430. package/types/src/Tree/Item.d.ts +63 -0
  431. package/types/src/Tree/Tree.d.ts +13 -6
  432. package/types/src/Tree/TreeContext.d.ts +1 -1
  433. package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
  434. package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
  435. package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
  436. package/types/src/Tree/index.d.ts +1 -1
  437. package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
  438. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
  439. package/types/src/useControlled/useControlled.d.ts +3 -1
  440. package/useControlled.js +29 -13
  441. package/useResizeObserver.js +2 -2
  442. package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
  443. package/types/src/Tree/TreeItem.d.ts +0 -44
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { SwitchClickHandler } from '@splunk/react-ui/Switch';
3
+ /**
4
+ * @name Basic
5
+ * @description Some checkbox and toggle controls.
6
+ */
3
7
  declare class Basic extends Component<object, {
4
8
  values: number[];
5
9
  }> {
@@ -1,5 +1,8 @@
1
1
  import React, { Component } from 'react';
2
2
  import { SwitchClickHandler } from '@splunk/react-ui/Switch';
3
+ /**
4
+ * @name Disabled
5
+ */
3
6
  declare class Disabled extends Component<object, {
4
7
  values: number[];
5
8
  }> {
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Error
4
+ */
2
5
  declare function SwitchError(): React.JSX.Element;
3
6
  export default SwitchError;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ */
2
5
  declare function Basic(): React.JSX.Element;
3
6
  export default Basic;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Disabled
4
+ */
2
5
  declare function Disabled(): React.JSX.Element;
3
6
  export default Disabled;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Icons
4
+ */
2
5
  declare function IconsLeft(): React.JSX.Element;
3
6
  export default IconsLeft;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Tooltips
4
+ */
2
5
  declare function Tooltips(): React.JSX.Element;
3
6
  export default Tooltips;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Vertical
4
+ */
2
5
  declare function Vertical(): React.JSX.Element;
3
6
  export default Vertical;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Vertical icons
4
+ */
2
5
  declare function VerticalIconsLeft(): React.JSX.Element;
3
6
  export default VerticalIconsLeft;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name With count
4
+ */
2
5
  declare function WithCount(): React.JSX.Element;
3
6
  export default WithCount;
@@ -0,0 +1,4 @@
1
+ import { TabElementType } from './types';
2
+ declare function getNextTabItem(tabItems: TabElementType[], currentIndex: number, nextIndex: number): TabElementType;
3
+ declare function getPrevTabItem(tabItems: TabElementType[], currentIndex: number, prevIndex: number): TabElementType;
4
+ export { getNextTabItem, getPrevTabItem };
@@ -0,0 +1,5 @@
1
+ export interface TabElementType {
2
+ element: HTMLButtonElement | HTMLAnchorElement;
3
+ index: number;
4
+ tabId?: string;
5
+ }
@@ -10,7 +10,6 @@ interface PanelPropsBase {
10
10
  */
11
11
  elementRef?: React.Ref<HTMLDivElement>;
12
12
  /** See Icon documentation for more information.
13
- * @excludeTheme prisma
14
13
  */
15
14
  icon?: React.ReactNode;
16
15
  /**
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Auto activate
4
+ * @description In this example, switching to a tab with the keyboard automatically activates it.
5
+ */
2
6
  declare function AutoActivate(): React.JSX.Element;
3
7
  export default AutoActivate;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ * @description In this example, the open Panel is controlled by the parent component.
5
+ */
2
6
  declare function Controlled(): React.JSX.Element;
3
7
  export default Controlled;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Icons
4
+ */
2
5
  declare function Icons(): React.JSX.Element;
3
6
  export default Icons;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Uncontrolled
4
+ */
2
5
  declare function Uncontrolled(): React.JSX.Element;
3
6
  export default Uncontrolled;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Vertical
4
+ */
2
5
  declare function Vertical(): React.JSX.Element;
3
6
  export default Vertical;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Vertical icons
4
+ */
2
5
  declare function VerticalIcons(): React.JSX.Element;
3
6
  export default VerticalIcons;
@@ -4,6 +4,7 @@ import { TableRequestMoveColumnHandler } from './Table';
4
4
  import { ComponentProps } from '../utils/types';
5
5
  type HeadAutosizeColumnHandler = (event: React.MouseEvent<HTMLHRElement>, data: {
6
6
  columnId?: string;
7
+ id?: string;
7
8
  index: number;
8
9
  }) => void;
9
10
  type HeadRequestMoveColumnHandler = TableRequestMoveColumnHandler;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { UniqueIdentifier } from '@dnd-kit/core';
3
+ import PropTypes from 'prop-types';
4
4
  import { HeadAutosizeColumnHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler } from './Head';
5
5
  import { ComponentProps } from '../utils/types';
6
6
  type HeadCellAutosizeColumnHandler = HeadAutosizeColumnHandler;
@@ -80,8 +80,7 @@ interface HeadCellPropsBase {
80
80
  */
81
81
  tooltip?: React.ReactNode;
82
82
  /**
83
- * Truncate the text in the label. `truncate=false` is not compatible with `Table`'s
84
- * `onRequestResize`.
83
+ * Truncate the text in the label.
85
84
  */
86
85
  truncate?: boolean;
87
86
  /**
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from 'prop-types';
3
2
  import { UniqueIdentifier } from '@dnd-kit/core';
3
+ import PropTypes from 'prop-types';
4
4
  import { HeadAutosizeColumnHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler } from './Head';
5
5
  import { HeadCellKeyDownHandler } from './HeadCell';
6
6
  import { ComponentProps } from '../utils/types';
@@ -40,7 +40,7 @@ interface HeadDropdownCellPropsBase {
40
40
  */
41
41
  closeReasons?: HeadDropdownCellPossibleCloseReason[];
42
42
  /**
43
- * An id that is passed to the `onSort` callback and as `Table`'s `onRequestResizeColumn` callback.
43
+ * An id that is passed to the `onRequestOpen`, `onRequestClose` callback and as `Table`'s `onRequestResizeColumn` callback.
44
44
  */
45
45
  columnId?: string;
46
46
  /** @private. */
@@ -1,17 +1,17 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { ComponentProps } from '../utils/types';
4
3
  import { HeadAutosizeColumnHandler, HeadRequestResizeColumnHandler } from './Head';
4
+ import { ComponentProps } from '../utils/types';
5
5
  type HeadInnerAutosizeColumnHandler = HeadAutosizeColumnHandler;
6
6
  type HeadInnerRequestResizeHandler = HeadRequestResizeColumnHandler;
7
7
  interface HeadInnerPropsBase {
8
8
  align?: 'left' | 'center' | 'right';
9
+ cellId?: string;
9
10
  clickable?: boolean;
10
11
  columnId?: string;
11
12
  elementRef?: React.Ref<HTMLButtonElement | HTMLDivElement>;
12
13
  focusWithin?: boolean;
13
14
  hasTooltip?: boolean;
14
- id?: string;
15
15
  index?: number;
16
16
  isMenu?: boolean;
17
17
  label?: React.ReactNode;
@@ -24,16 +24,16 @@ interface HeadInnerPropsBase {
24
24
  variant?: 'toggleAll' | 'info' | 'actions';
25
25
  }
26
26
  type HeadInnerProps = ComponentProps<HeadInnerPropsBase, 'div'>;
27
- declare function HeadInner({ align, clickable, columnId, elementRef, focusWithin, hasTooltip, id, index, isMenu, label, onAutosizeColumn, onRequestResize, resizable, sortDir, truncate, variant, width: widthProp, ...otherProps }: HeadInnerProps): React.JSX.Element;
27
+ declare function HeadInner({ align, clickable, cellId, columnId, elementRef, focusWithin, hasTooltip, index, isMenu, label, onAutosizeColumn, onRequestResize, resizable, sortDir, truncate, variant, width: widthProp, ...otherProps }: HeadInnerProps): React.JSX.Element;
28
28
  declare namespace HeadInner {
29
29
  var propTypes: {
30
30
  align: PropTypes.Requireable<string>;
31
+ cellId: PropTypes.Requireable<string>;
31
32
  clickable: PropTypes.Requireable<boolean>;
32
33
  columnId: PropTypes.Requireable<string>;
33
34
  elementRef: PropTypes.Requireable<object>;
34
35
  focusWithin: PropTypes.Requireable<boolean>;
35
36
  hasTooltip: PropTypes.Requireable<boolean>;
36
- id: PropTypes.Requireable<string>;
37
37
  index: PropTypes.Requireable<number>;
38
38
  isMenu: PropTypes.Requireable<boolean>;
39
39
  label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -1,6 +1,6 @@
1
- import { Transform } from '@dnd-kit/utilities';
2
1
  import { Activators, SensorInstance, SensorProps, SensorOptions, KeyboardCodes, KeyboardCoordinateGetter } from '@dnd-kit/core';
3
2
  import { Coordinates } from '@dnd-kit/core/dist/types/';
3
+ import { Transform } from '@dnd-kit/utilities';
4
4
  export declare class Listeners {
5
5
  private target;
6
6
  private listeners;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import type { DraggableSyntheticListeners } from '@dnd-kit/core';
4
3
  import { ComponentProps } from '../utils/types';
4
+ import type { DraggableSyntheticListeners } from '@dnd-kit/core';
5
5
  interface RowDragCellPropsBase {
6
6
  setActivatorNodeRef: (element: HTMLElement | null) => void;
7
7
  listeners?: DraggableSyntheticListeners;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ */
2
5
  declare function Basic(): React.JSX.Element;
3
6
  export default Basic;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Clickable cells
4
+ * @description Adding an onClick handler to a Cell adds a link style. The value of the data prop is passed to the handler.
5
+ */
2
6
  declare function Click(): React.JSX.Element;
3
7
  export default Click;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Clickable rows
4
+ * @description Adding an onClick handler to a Row adds hover and active styling. The primary cell is additionally styled with an underline on row hover. The value of the data prop is passed to the handler.
5
+ */
2
6
  declare function ClickRows(): React.JSX.Element;
3
7
  export default ClickRows;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Complex
4
+ * @description All capabilities can be used together except where noted.
5
+ */
2
6
  declare function Complex(): React.JSX.Element;
3
7
  export default Complex;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Docked header and scroll bar
4
+ * @description When scrolling the page, the header can dock against the top of the window, and the scroll bar can dock against the bottom of the window. This allows the user to read the column headings and scroll even when the top and bottom of the Table is off screen.
5
+ */
2
6
  declare function DockedHeaderScrollbar(): React.JSX.Element;
3
7
  export default DockedHeaderScrollbar;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Filter column values
4
+ * @description HeadDropdownCell can also be used to filter column values.
5
+ */
2
6
  declare function FilterableTable(): React.JSX.Element;
3
7
  export default FilterableTable;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Fixed header
4
+ * @description Fix the header relative to the table.
5
+ */
2
6
  declare function FixedHeader(): React.JSX.Element;
3
7
  export default FixedHeader;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdowns in header
4
+ * @description A column heading can act as a Dropdown. HeadDropdownCell does not support the sort interface from HeadCell. Sort features can be recreated in the Dropdown. This supports the same interface as [Dropdown](./Dropdown). See that component for more examples.
5
+ */
2
6
  declare function HeadDropdownCell(): React.JSX.Element;
3
7
  export default HeadDropdownCell;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Reorder columns
4
+ * @description Drag a column heading to reorder. To pick up a draggable column using the keyboard, press Space or Enter when focused on the column heading drag handle. Use the Left and Right arrow keys to update the position of the column heading. Press Space or Enter again to drop the column heading in its new position, or press Escape to cancel.
5
+ */
2
6
  declare function ReorderColumns(): React.JSX.Element;
3
7
  export default ReorderColumns;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Reorder rows
4
+ * @description Drag a Row to reorder. To pick up a draggable Row using the keyboard, press Space or Enter when focused on the Row drag handle. Use the Up and Down arrow keys to update the position of the row. Press Space or Enter again to drop the Row in its new position, or press Escape to cancel. Reordering Rows is not compatible with sorting columns and doesn't take effect if any sort attributes or props are added.
5
+ */
2
6
  declare function ReorderRows(): React.JSX.Element;
3
7
  export default ReorderRows;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Resizable columns
4
+ * @description The area between the column headings can be used to resize the columns one of the following ways: click and drag, press arrow keys when focused, or double-click to auto-size.
5
+ */
2
6
  declare function Resizable(): React.JSX.Element;
3
7
  export default Resizable;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Fill layout with resizable columns
4
+ * @description The resizableFillLayout sets the Table to fill its container's space and allows column's width property to be auto. Table will enforce a minimum cell width when auto is used. To use a custom minimum cell width, it must be controlled using the onRequestResizeColumn callback and larger than the base minimum width of 60px. However, onRequestResizeColumn is only called for the current column being resized. So the custom minimum cell widths will not be respected for the other columns while the current column is being resized.
5
+ */
2
6
  declare function ResizableFill(): React.JSX.Element;
3
7
  export default ResizableFill;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Row actions
4
+ * @description Adds Table-level and Row-level actions.
5
+ */
2
6
  declare function RowAction(): React.JSX.Element;
3
7
  export default RowAction;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Selectable rows
4
+ * @description Rows can be selectable. The selection state of the Table overall and each Row are managed separately.
5
+ */
2
6
  declare function Selectable(): React.JSX.Element;
3
7
  export default Selectable;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Sortable columns
4
+ * @description If a column is provided a sortKey, it is rendered as sortable. When a sortable HeadCell is clicked, it triggers an onSort callback. It is the consumer's responsibility to implement the sorting logic.
5
+ */
2
6
  declare function SortableColumns(): React.JSX.Element;
3
7
  export default SortableColumns;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Stripe rows
4
+ */
2
5
  declare function StripeRows(): React.JSX.Element;
3
6
  export default StripeRows;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ * @description Text requires a value prop and an onChange callback to update the value prop for most use cases.
5
+ */
2
6
  declare const Basic: () => React.JSX.Element;
3
7
  export default Basic;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Customized icons
4
+ * @description The Text control also supports customized icons.
5
+ */
2
6
  declare const CustomizedIcon: () => React.JSX.Element;
3
7
  export default CustomizedIcon;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dimmed
4
+ * @description If you absolutely need to disable a Text use a dimmed Text. When the disabled prop is set to "dimmed", the Text does not respond to events but can still receive focus to ensure users can navigate to the Text when using assistive technologies. This also sets aria-disabled to true.
5
+ */
2
6
  declare const Dimmed: () => React.JSX.Element;
3
7
  export default Dimmed;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Disabled
4
+ * @description Disabled cannot accept an input or become focused.
5
+ */
2
6
  declare const Disabled: () => React.JSX.Element;
3
7
  export default Disabled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Error
4
+ * @description Setting error will highlight the field.
5
+ */
2
6
  declare const Error: () => React.JSX.Element;
3
7
  export default Error;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Inline
4
+ * @description Passing inline will create an inline element and the input will be its default size.
5
+ */
2
6
  declare const Inline: () => React.JSX.Element;
3
7
  export default Inline;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Password
4
+ * @description The Text control also supports a password input type and visibility toggle independently of each other.
5
+ */
2
6
  declare const Password: () => React.JSX.Element;
3
7
  export default Password;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Uncontrolled
4
+ * @description Alternatively, Text can be uncontrolled and optionally provided a defaultValue. The onChange callback still fires. The value prop cannot be set or updated externally.
5
+ */
2
6
  declare function Uncontrolled(): React.JSX.Element;
3
7
  export default Uncontrolled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ * @description Text Area requires a value prop and an onChange callback to update the value prop for most use cases.
5
+ */
2
6
  declare const Basic: () => React.JSX.Element;
3
7
  export default Basic;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Disabled
4
+ */
2
5
  declare const Disabled: () => React.JSX.Element;
3
6
  export default Disabled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Error
4
+ * @description Setting error will highlight the field.
5
+ */
2
6
  declare const Error: () => React.JSX.Element;
3
7
  export default Error;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Inline
4
+ * @description Passing inline will create an inline element and the input will be its default size.
5
+ */
2
6
  declare const Inline: () => React.JSX.Element;
3
7
  export default Inline;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Uncontrolled
4
+ * @description Alternatively, Text Area can be uncontrolled and optionally provided a defaultValue. The onChange callback still fires. The value prop cannot be set or updated externally.
5
+ */
2
6
  declare function Uncontrolled(): React.JSX.Element;
3
7
  export default Uncontrolled;
@@ -27,6 +27,8 @@ interface AnchorProps {
27
27
  interface TooltipPropsBase {
28
28
  /** @private */
29
29
  appearance?: 'normal' | 'inverted' | 'none';
30
+ /** @private Generally passed by parent component rather than added directly. */
31
+ append?: boolean;
30
32
  /**
31
33
  * Provide a node to replace the default question mark.
32
34
  * For accessibility, ensure that the child can take focus, and that it
@@ -34,10 +36,7 @@ interface TooltipPropsBase {
34
36
  * on the appropriate internal element.
35
37
  */
36
38
  children?: React.ReactNode;
37
- /**
38
- * @private
39
- *
40
- */
39
+ /** @private */
41
40
  closeWhen?: 'default' | 'notOnClick';
42
41
  /**
43
42
  * The content of the tooltip. If the content is falsy and the `open` prop
@@ -95,6 +94,8 @@ interface TooltipPropsBase {
95
94
  * The onRequestClose and onRequestOpen callbacks are usually used.
96
95
  */
97
96
  open?: boolean;
97
+ /** @private Generally passed by parent component rather than added directly. */
98
+ prepend?: boolean;
98
99
  /**
99
100
  * A function for rendering the element that the tooltip is bound to. If both `renderAnchor` and
100
101
  * `children` are passed, `children` will be ignored. The function gets as input props object
@@ -121,11 +122,13 @@ type TooltipProps = ComponentProps<TooltipPropsBase, 'span'>;
121
122
  * The Tooltip component wraps arbitrary content to be displayed when the target element is hovered
122
123
  * or focused.
123
124
  */
124
- declare function Tooltip({ appearance, children, closeDelay, closeWhen, content, contentRelationship, defaultPlacement, elementRef, inline, onRequestClose, onRequestOpen, open: openProp, openDelay, renderAnchor, ...otherProps }: TooltipProps): React.JSX.Element;
125
+ declare function Tooltip({ appearance, append, children, closeDelay, closeWhen, content, contentRelationship, defaultPlacement, elementRef, inline, onRequestClose, onRequestOpen, open: openProp, openDelay, renderAnchor, prepend, ...otherProps }: TooltipProps): React.JSX.Element;
125
126
  declare namespace Tooltip {
126
127
  var propTypes: {
127
128
  /** @private */
128
129
  appearance: PropTypes.Requireable<string>;
130
+ /** @private */
131
+ append: PropTypes.Requireable<boolean>;
129
132
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
130
133
  closeDelay: PropTypes.Requireable<number>;
131
134
  /** @private */
@@ -139,6 +142,8 @@ declare namespace Tooltip {
139
142
  onRequestOpen: PropTypes.Requireable<(...args: any[]) => any>;
140
143
  open: PropTypes.Requireable<boolean>;
141
144
  openDelay: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
145
+ /** @private */
146
+ prepend: PropTypes.Requireable<boolean>;
142
147
  renderAnchor: PropTypes.Requireable<(...args: any[]) => any>;
143
148
  };
144
149
  var possibleOpenReasons: TooltipPossibleOpenReason[];
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ * @description Add additional description to a form control.
5
+ */
2
6
  declare function Basic(): React.JSX.Element;
3
7
  export default Basic;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Content relationship
4
+ * @description Set contentRelationship="label" for icon-only buttons.
5
+ */
2
6
  declare function ContentRelationship(): React.JSX.Element;
3
7
  export default ContentRelationship;
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { TooltipRequestCloseHandler, TooltipRequestOpenHandler } from '@splunk/react-ui/Tooltip';
3
+ /**
4
+ * @name Controlled
5
+ * @description Tooltips can also be controlled for more complex use cases.
6
+ */
3
7
  declare class Controlled extends Component<object, {
4
8
  open: boolean;
5
9
  reason: string;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Custom delay
4
+ * @description Open and close delays can be configured separately. Default delay values differ across themes.
5
+ */
2
6
  declare function CustomDelay(): React.JSX.Element;
3
7
  export default CustomDelay;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Custom props
4
+ * @description Use the renderAnchor prop to customize rendering of the anchor element. Make sure that anchor element get assigned the onBlur, onFocus, onClick listeners, the describedBy or labelledBy string props and the elementRef.
5
+ */
2
6
  declare function CustomProps(): React.JSX.Element;
3
7
  export default CustomProps;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Toggletip
4
+ * @description Tooltip defaults to showing an info button as an anchor to explain the surrounding context. For accessibility, please consider other ways of conveying this information before you decide to use the toggletip.
5
+ */
2
6
  declare function Toggletip(): React.JSX.Element;
3
7
  export default Toggletip;