@splunk/react-ui 5.1.0 → 5.3.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 (445) hide show
  1. package/Accordion.js +60 -39
  2. package/Anchor.js +9 -9
  3. package/Animation.js +2 -2
  4. package/Avatar.js +63 -58
  5. package/Box.js +4 -3
  6. package/Breadcrumbs.js +13 -13
  7. package/Button.js +12 -12
  8. package/ButtonGroup.js +9 -9
  9. package/ButtonSimple.js +2 -2
  10. package/CHANGELOG.md +54 -0
  11. package/Calendar.js +69 -65
  12. package/Card.js +286 -255
  13. package/CardLayout.js +10 -10
  14. package/Checkbox.d.ts +2 -0
  15. package/Checkbox.js +350 -0
  16. package/Chip.js +31 -31
  17. package/Clickable.js +29 -29
  18. package/Code.js +161 -142
  19. package/CollapsiblePanel.js +200 -224
  20. package/Color.js +14 -12
  21. package/ColumnLayout.js +16 -16
  22. package/ComboBox.js +110 -110
  23. package/ControlGroup.js +101 -100
  24. package/Date.js +144 -140
  25. package/DefinitionList.js +137 -94
  26. package/Divider.js +2 -2
  27. package/Dropdown.js +2 -2
  28. package/DualListbox.js +446 -385
  29. package/File.js +121 -118
  30. package/FormRows.js +15 -15
  31. package/Heading.js +15 -15
  32. package/Image.js +31 -31
  33. package/JSONTree.js +543 -513
  34. package/Layer.js +4 -1
  35. package/Layout.js +10 -10
  36. package/Link.js +13 -13
  37. package/List.js +24 -24
  38. package/MIGRATION.md +27 -0
  39. package/Markdown.js +237 -226
  40. package/Menu.js +63 -60
  41. package/Message.js +20 -20
  42. package/MessageBar.js +13 -13
  43. package/Modal.js +36 -36
  44. package/Monogram.js +94 -68
  45. package/Multiselect.js +1032 -910
  46. package/Number.js +18 -18
  47. package/Paginator.js +41 -40
  48. package/Paragraph.js +10 -10
  49. package/Popover.js +243 -208
  50. package/Progress.js +6 -6
  51. package/Prose.js +16 -16
  52. package/RadioBar.js +118 -118
  53. package/RadioList.js +137 -113
  54. package/Resize.js +20 -20
  55. package/ResultsMenu.js +50 -49
  56. package/ScreenReaderContent.js +13 -13
  57. package/Scroll.js +25 -24
  58. package/Search.js +143 -139
  59. package/Select.js +942 -838
  60. package/SidePanel.js +29 -29
  61. package/Slider.js +30 -30
  62. package/SlidingPanels.js +28 -28
  63. package/SplitButton.js +100 -72
  64. package/StaticContent.js +6 -6
  65. package/StepBar.js +8 -8
  66. package/Switch.js +197 -229
  67. package/TabBar.js +293 -270
  68. package/TabLayout.js +68 -68
  69. package/Table.js +825 -800
  70. package/Text.js +182 -208
  71. package/TextArea.js +235 -226
  72. package/Tooltip.js +149 -144
  73. package/TransitionOpen.js +11 -11
  74. package/Tree.js +194 -189
  75. package/Typography.js +15 -15
  76. package/WaitSpinner.js +6 -6
  77. package/package.json +19 -23
  78. package/tsconfig.check-docs.json +8 -0
  79. package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
  80. package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
  81. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
  82. package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
  83. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
  84. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
  85. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
  86. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
  87. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
  88. package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
  89. package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
  90. package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
  91. package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
  92. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
  93. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
  94. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
  95. package/types/src/Button/docs/examples/Basic.d.ts +3 -0
  96. package/types/src/Button/docs/examples/Block.d.ts +4 -0
  97. package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
  98. package/types/src/Button/docs/examples/Icons.d.ts +4 -0
  99. package/types/src/Button/docs/examples/Menus.d.ts +4 -0
  100. package/types/src/Button/docs/examples/To.d.ts +4 -0
  101. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
  102. package/types/src/Card/docs/examples/Basic.d.ts +4 -0
  103. package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
  104. package/types/src/Card/docs/examples/Full.d.ts +4 -0
  105. package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
  106. package/types/src/Card/docs/examples/Images.d.ts +4 -0
  107. package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
  108. package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
  109. package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
  110. package/types/src/Checkbox/Checkbox.d.ts +90 -0
  111. package/types/src/Checkbox/docs/examples/Basic.d.ts +7 -0
  112. package/types/src/Checkbox/docs/examples/Disabled.d.ts +6 -0
  113. package/types/src/Checkbox/docs/examples/Error.d.ts +6 -0
  114. package/types/src/Checkbox/docs/examples/Uncontrolled.d.ts +7 -0
  115. package/types/src/Checkbox/index.d.ts +2 -0
  116. package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
  117. package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
  118. package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
  119. package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
  120. package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
  121. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
  122. package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
  123. package/types/src/Code/Code.d.ts +4 -1
  124. package/types/src/Code/LineHighlights.d.ts +1 -0
  125. package/types/src/Code/LineNumbers.d.ts +2 -1
  126. package/types/src/Code/docs/examples/CustomizeContainer.d.ts +7 -0
  127. package/types/src/Code/docs/examples/Default.d.ts +3 -0
  128. package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
  129. package/types/src/Code/docs/examples/Language.d.ts +4 -0
  130. package/types/src/Code/docs/examples/LineHighlights.d.ts +4 -0
  131. package/types/src/Code/docs/examples/LineNumbers.d.ts +4 -0
  132. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +4 -0
  133. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
  134. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
  135. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
  136. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
  137. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
  138. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
  139. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
  140. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
  141. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
  142. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
  143. package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
  144. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
  145. package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
  146. package/types/src/Color/docs/examples/Null.d.ts +4 -0
  147. package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
  148. package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
  149. package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
  150. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
  151. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
  152. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
  153. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
  154. package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
  155. package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
  156. package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
  157. package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
  158. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
  159. package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
  160. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +7 -3
  161. package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
  162. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
  163. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
  164. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
  165. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
  166. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
  167. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
  168. package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
  169. package/types/src/Date/Date.d.ts +7 -1
  170. package/types/src/Date/docs/examples/Basic.d.ts +3 -0
  171. package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
  172. package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
  173. package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
  174. package/types/src/Date/docs/examples/Error.d.ts +3 -0
  175. package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
  176. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
  177. package/types/src/DefinitionList/DefinitionList.d.ts +27 -4
  178. package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
  179. package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
  180. package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
  181. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
  182. package/types/src/DefinitionList/docs/examples/StackedLayout.d.ts +6 -0
  183. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
  184. package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
  185. package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
  186. package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
  187. package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
  188. package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
  189. package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
  190. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
  191. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
  192. package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
  193. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
  194. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
  195. package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
  196. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
  197. package/types/src/DualListbox/DualListbox.d.ts +1 -1
  198. package/types/src/DualListbox/Label.d.ts +7 -7
  199. package/types/src/DualListbox/Listbox.d.ts +2 -2
  200. package/types/src/DualListbox/ListboxContext.d.ts +1 -1
  201. package/types/src/DualListbox/Option.d.ts +1 -1
  202. package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
  203. package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
  204. package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
  205. package/types/src/File/File.d.ts +7 -1
  206. package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
  207. package/types/src/File/docs/examples/Disabled.d.ts +3 -0
  208. package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
  209. package/types/src/File/docs/examples/Error.d.ts +4 -0
  210. package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
  211. package/types/src/File/docs/examples/Multi.d.ts +4 -0
  212. package/types/src/File/docs/examples/Progress.d.ts +4 -0
  213. package/types/src/File/docs/examples/Single.d.ts +4 -0
  214. package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
  215. package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
  216. package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
  217. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
  218. package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
  219. package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
  220. package/types/src/Image/docs/examples/Basic.d.ts +3 -0
  221. package/types/src/JSONTree/JSONTreeItem.d.ts +4 -2
  222. package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
  223. package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
  224. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
  225. package/types/src/JSONTree/renderTreeItems.d.ts +2 -1
  226. package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
  227. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  228. package/types/src/Link/docs/examples/Basic.d.ts +4 -0
  229. package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
  230. package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
  231. package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
  232. package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
  233. package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
  234. package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
  235. package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
  236. package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
  237. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +2 -1
  238. package/types/src/Menu/Item.d.ts +27 -10
  239. package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
  240. package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
  241. package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
  242. package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
  243. package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
  244. package/types/src/Menu/docs/examples/Disabled.d.ts +4 -0
  245. package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
  246. package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
  247. package/types/src/Menu/docs/examples/Links.d.ts +4 -0
  248. package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
  249. package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
  250. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
  251. package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
  252. package/types/src/Message/docs/examples/Basic.d.ts +3 -0
  253. package/types/src/Message/docs/examples/Content.d.ts +4 -0
  254. package/types/src/Message/docs/examples/Fill.d.ts +3 -0
  255. package/types/src/Message/docs/examples/Removable.d.ts +3 -0
  256. package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
  257. package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
  258. package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
  259. package/types/src/Modal/Modal.d.ts +10 -3
  260. package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
  261. package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
  262. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
  263. package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
  264. package/types/src/Monogram/Monogram.d.ts +4 -0
  265. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
  266. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
  267. package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
  268. package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
  269. package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
  270. package/types/src/Multiselect/Compact.d.ts +8 -2
  271. package/types/src/Multiselect/Multiselect.d.ts +8 -2
  272. package/types/src/Multiselect/Normal.d.ts +7 -1
  273. package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
  274. package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
  275. package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
  276. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
  277. package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
  278. package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
  279. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
  280. package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
  281. package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
  282. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  283. package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
  284. package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
  285. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
  286. package/types/src/Number/docs/examples/Basic.d.ts +4 -0
  287. package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
  288. package/types/src/Number/docs/examples/Error.d.ts +3 -0
  289. package/types/src/Number/docs/examples/Limits.d.ts +4 -0
  290. package/types/src/Number/docs/examples/Locale.d.ts +4 -0
  291. package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
  292. package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
  293. package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
  294. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
  295. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
  296. package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
  297. package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
  298. package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
  299. package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
  300. package/types/src/Popover/PopoverProvider.d.ts +9 -1
  301. package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
  302. package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
  303. package/types/src/Progress/docs/examples/Type.d.ts +3 -0
  304. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  305. package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
  306. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
  307. package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
  308. package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
  309. package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
  310. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
  311. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
  312. package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
  313. package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
  314. package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
  315. package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
  316. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
  317. package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
  318. package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
  319. package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
  320. package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
  321. package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
  322. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
  323. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +4 -0
  324. package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
  325. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
  326. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
  327. package/types/src/Search/Search.d.ts +5 -1
  328. package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
  329. package/types/src/Search/docs/examples/Loading.d.ts +4 -0
  330. package/types/src/Search/docs/examples/Options.d.ts +4 -0
  331. package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
  332. package/types/src/Select/SelectAllOption.d.ts +5 -10
  333. package/types/src/Select/SelectBase.d.ts +1 -1
  334. package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
  335. package/types/src/Select/docs/examples/Basic.d.ts +4 -0
  336. package/types/src/Select/docs/examples/Children.d.ts +4 -0
  337. package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
  338. package/types/src/Select/docs/examples/Error.d.ts +3 -0
  339. package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
  340. package/types/src/Select/docs/examples/Filter.d.ts +4 -0
  341. package/types/src/Select/docs/examples/Headings.d.ts +3 -0
  342. package/types/src/Select/docs/examples/Icons.d.ts +3 -0
  343. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  344. package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
  345. package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
  346. package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
  347. package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
  348. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
  349. package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
  350. package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
  351. package/types/src/Slider/docs/examples/Controlled.d.ts +4 -0
  352. package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
  353. package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
  354. package/types/src/Slider/docs/examples/Error.d.ts +3 -0
  355. package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
  356. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
  357. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
  358. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
  359. package/types/src/SplitButton/SplitButton.d.ts +6 -1
  360. package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
  361. package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
  362. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
  363. package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
  364. package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
  365. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
  366. package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
  367. package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
  368. package/types/src/Switch/Switch.d.ts +7 -1
  369. package/types/src/Switch/docs/examples/Basic.d.ts +5 -9
  370. package/types/src/Switch/docs/examples/Disabled.d.ts +5 -9
  371. package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
  372. package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
  373. package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
  374. package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
  375. package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
  376. package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
  377. package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
  378. package/types/src/TabBar/tabBarUtils.d.ts +4 -0
  379. package/types/src/TabBar/types.d.ts +5 -0
  380. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
  381. package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
  382. package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
  383. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
  384. package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
  385. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
  386. package/types/src/Table/ExpandButton.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 +14 -1
  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 +4 -4
  431. package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
  432. package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
  433. package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
  434. package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
  435. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
  436. package/useResizeObserver.js +2 -2
  437. package/NonInteractiveCheckbox.js +0 -101
  438. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +0 -12
  439. package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
  440. package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +0 -22
  441. package/types/src/NonInteractiveCheckbox/index.d.ts +0 -1
  442. package/types/src/Switch/docs/examples/Error.d.ts +0 -3
  443. package/types/src/Text/IconOutlinedHide.d.ts +0 -3
  444. package/types/src/Text/IconOutlinedView.d.ts +0 -3
  445. /package/cypress/{tsconfig.cypress.json → tsconfig.check-cypress.json} +0 -0
@@ -5,26 +5,49 @@ import Term from './Term';
5
5
  import { ComponentProps } from '../utils/types';
6
6
  interface DefinitionListPropsBase {
7
7
  children?: React.ReactNode;
8
+ /**
9
+ * Defines the width of the `Description`.
10
+ * Can be set to a specific pixel or string value. If not specified, will fill to take up available space.
11
+ * This prop is ignored when `layout="stacked"`.
12
+ */
13
+ descriptionWidth?: string;
8
14
  /**
9
15
  * A React ref which is set to the DOM element when the component mounts and null when it unmounts.
10
16
  */
11
17
  elementRef?: React.Ref<HTMLDListElement>;
18
+ /**
19
+ * Sets the layout style for the definition list.
20
+ *
21
+ * - `fixed`: The `Term` uses a fixed width. The `Description` fills remaining available space.
22
+ * - `auto`: Both `Term` and `Description` size proportionally based on their container, taking an equal portion of available space.
23
+ * - `stacked`: `Term` is displayed above the `Description`. Custom `termWidth` and `descriptionWidth` are ignored. Both `Term` and `Description` size proportionally.
24
+ *
25
+ * `fixed` layout is the current default. In the next major version, this prop will default to `auto`.
26
+ */
27
+ layout?: 'fixed' | 'auto' | 'stacked';
12
28
  /**
13
29
  * Sets the character used to separate key-value pair.
30
+ * Only supported in `layout="fixed"` and `layout="auto"`. Will not be rendered in `layout="stacked"`.
14
31
  */
15
- separatorCharacter?: '.' | string;
32
+ separatorCharacter?: string;
16
33
  /**
17
- * Defines the width of the key (term).
34
+ * Defines the width of the `Term`.
35
+ * Can be set to a specific pixel or string value.
36
+ * The default value is ignored when `layout="auto"`.
37
+ * This prop is ignored when `layout="stacked"`.
18
38
  */
19
39
  termWidth?: string;
20
40
  }
21
41
  type DefinitionListProps = ComponentProps<DefinitionListPropsBase, 'dl'>;
22
- declare function DefinitionList({ children, elementRef, separatorCharacter, termWidth, ...otherProps }: DefinitionListProps): React.JSX.Element;
42
+ declare function DefinitionList({ children, descriptionWidth, elementRef, layout, // TODO (SUI-8077): Change the default layout to `auto`.
43
+ separatorCharacter, termWidth, ...otherProps }: DefinitionListProps): React.JSX.Element;
23
44
  declare namespace DefinitionList {
24
45
  var propTypes: {
25
46
  children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
47
+ descriptionWidth: PropTypes.Requireable<string>;
26
48
  elementRef: PropTypes.Requireable<object>;
27
- separatorCharacter: PropTypes.Requireable<string | PropTypes.Requireable<string>>;
49
+ layout: PropTypes.Requireable<string>;
50
+ separatorCharacter: PropTypes.Requireable<string>;
28
51
  termWidth: PropTypes.Requireable<string>;
29
52
  };
30
53
  var Description: typeof import("./Description").default;
@@ -1,4 +1,6 @@
1
1
  interface DefinitionListContextValue {
2
+ descriptionWidth?: string;
3
+ layout: 'fixed' | 'auto' | 'stacked';
2
4
  separatorCharacter?: '.' | string;
3
5
  termWidth?: string;
4
6
  }
@@ -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;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * @name Customized widths
4
+ * @description The term widths and description widths can be set to a specific pixel or string value.
5
+ */
6
+ declare function CustomizedWidths(): React.JSX.Element;
7
+ export default CustomizedWidths;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Empty description
4
+ * @description Use a character and screen reader content to indicate when a description does not have a value. When there is not a better choice based on the context, use a hyphen to indicate the missing value with corresponding screen reader content.
5
+ */
2
6
  declare function EmptyDescription(): React.JSX.Element;
3
7
  export default EmptyDescription;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * @name Stacked layout
4
+ */
5
+ declare function StackedLayout(): React.JSX.Element;
6
+ export default StackedLayout;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name With separator
4
+ * @description Sets the character used to separate key-value pair
5
+ */
2
6
  declare function WithSeparator(): React.JSX.Element;
3
7
  export default WithSeparator;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Appearance
4
+ * @description Divider with preset border colors. Dividers with appearance="weak" will not meet accessibility requirements to be perceivable. If the component should be perceivable, consider the other contrast compliant appearance values. Otherwise, apply the decorative prop.
5
+ */
2
6
  declare function Appearance(): React.JSX.Element;
3
7
  export default Appearance;
@@ -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 CustomStyle
4
+ * @description Divider with custom color.
5
+ */
2
6
  declare function CustomStyle(): React.JSX.Element;
3
7
  export default CustomStyle;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Decorative
4
+ * @description When the Divider does not have semantics, add the decorative prop.
5
+ */
2
6
  declare function Decorative(): React.JSX.Element;
3
7
  export default Decorative;
@@ -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,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdown
4
+ * @description A Dropdown can contain any content. The content must constrain its own width.
5
+ */
2
6
  declare function Basic(): React.JSX.Element;
3
7
  export default Basic;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdown menu
4
+ */
2
5
  declare function BasicMenu(): React.JSX.Element;
3
6
  export default BasicMenu;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ * @description By default, Dropdown handles its own state. If you want more granular control of the events that open or close a Dropdown, use it as a [controlled component](https://reactjs.org/docs/forms.html#controlled-components). When you use Dropdown as a controlled component, the parent component manages the state of the Dropdown. Note that either the Dropdown or its parent handles its state, never both. See the onRequestClose and onRequestOpen callbacks for hooks you can use to manage state. This examples uses toggleClick and offScreen. It receives but ignores all other close actions.
5
+ */
2
6
  declare function ControlledDropdown(): React.JSX.Element;
3
7
  export default ControlledDropdown;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdown dialog
4
+ * @description By default, a Dropdown dialog box does not close on click. Set the closeReasons prop to ignore specific actions.
5
+ */
2
6
  declare function Dialog(): React.JSX.Element;
3
7
  export default Dialog;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Customized scroll container
4
+ * @description By default, a Dropdown moves with the window scroll. Use Scroll Container Provider when you want a Dropdown to move within a different scroll container.
5
+ */
2
6
  declare function ScrollContainer(): React.JSX.Element;
3
7
  export default ScrollContainer;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdown scrolling menu
4
+ * @description If a Menu contains many items, you can let the Menu scroll by setting the overflowY and maxHeight style prop.
5
+ */
2
6
  declare function ScrollingMenu(): React.JSX.Element;
3
7
  export default ScrollingMenu;
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Dropdown submenu
4
+ */
2
5
  declare function Submenu(): React.JSX.Element;
3
6
  export default Submenu;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Toggle with tooltip
4
+ * @description When using a toggle with a Tooltip, use a React.forwardRef to pass the elementRef to the toggle.
5
+ */
2
6
  declare function TooltipButtonToggle(): React.JSX.Element;
3
7
  export default TooltipButtonToggle;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Option from './Option';
3
3
  import { ComponentProps } from '../utils/types';
4
4
  /** @public */
5
- type DualListboxSelectHandler = (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLLIElement> | React.KeyboardEvent<HTMLUListElement>, data: {
5
+ type DualListboxSelectHandler = (event: React.MouseEvent<HTMLLIElement> | React.KeyboardEvent<HTMLUListElement> | React.ChangeEvent<HTMLInputElement>, data: {
6
6
  /**
7
7
  * The list `name` associated to the batch action.
8
8
  */
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { SwitchCheckboxWithSomeClickHandler } from '@splunk/react-ui/Switch';
2
+ import { CheckboxChangeHandler } from '@splunk/react-ui/Checkbox';
3
3
  import { ComponentProps } from '../utils/types';
4
- type ListboxLabelSwitchClickHandler = SwitchCheckboxWithSomeClickHandler;
4
+ type ListboxLabelCheckboxChangeHandler = CheckboxChangeHandler;
5
5
  interface ListboxLabelPropsBase {
6
6
  /**
7
- * ID for the label. Used to label the switch and associated listbox.
7
+ * ID for the label. Used to label the checkbox and associated listbox.
8
8
  */
9
9
  id: string;
10
10
  /**
@@ -20,18 +20,18 @@ interface ListboxLabelPropsBase {
20
20
  */
21
21
  name: string;
22
22
  /**
23
- * Toggle callback for the "select-all" switch.
23
+ * Toggle callback for the "select-all" checkbox.
24
24
  */
25
- onSwitchClick: ListboxLabelSwitchClickHandler;
25
+ onCheckboxChange: ListboxLabelCheckboxChangeHandler;
26
26
  /**
27
27
  * The value of this option and the label shown for it.
28
28
  */
29
29
  value: string;
30
30
  }
31
31
  type ListboxLabelProps = ComponentProps<ListboxLabelPropsBase, 'div'>;
32
- declare function ListboxLabel({ id, index, listId, name, onSwitchClick, value }: ListboxLabelProps): React.JSX.Element | null;
32
+ declare function ListboxLabel({ id, index, listId, name, onCheckboxChange, value }: ListboxLabelProps): React.JSX.Element | null;
33
33
  declare namespace ListboxLabel {
34
34
  var propTypes: React.WeakValidationMap<ListboxLabelPropsBase>;
35
35
  }
36
36
  export default ListboxLabel;
37
- export { ListboxLabelSwitchClickHandler };
37
+ export { ListboxLabelCheckboxChangeHandler };
@@ -7,9 +7,9 @@ type ListboxClickHandler = (event: React.MouseEvent<HTMLLIElement> | React.Keybo
7
7
  type ListboxKeyDownHandler = (event: React.KeyboardEvent<HTMLUListElement>, data: {
8
8
  name: string;
9
9
  }) => void;
10
- type ListboxSelectAllClickHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
10
+ type ListboxSelectAllClickHandler = (event: React.ChangeEvent<HTMLInputElement>, data: {
11
11
  name: string;
12
- selected: true | false | 'some';
12
+ selected: true | false | 'indeterminate';
13
13
  }) => void;
14
14
  interface ListboxPropsBase {
15
15
  /**
@@ -10,7 +10,7 @@ export type GetOptionStateHandler = (value: string) => {
10
10
  };
11
11
  export type GetLabelStateHandler = () => {
12
12
  disabled: boolean;
13
- selected: boolean | 'some';
13
+ selected: boolean | 'indeterminate';
14
14
  selectedValueCount: number;
15
15
  valueCount: number;
16
16
  };
@@ -14,7 +14,7 @@ interface OptionPropsBase {
14
14
  label: string;
15
15
  /**
16
16
  * Parent list `name` associated to option.
17
- * Used in intial state and controlled variants.
17
+ * Used in initial state and controlled variants.
18
18
  */
19
19
  listName?: string;
20
20
  /**
@@ -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 Controlled
4
+ */
2
5
  declare const Controlled: () => React.JSX.Element;
3
6
  export default Controlled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Fill
4
+ * @description Dynamic size example.
5
+ */
2
6
  declare function Fill(): React.JSX.Element;
3
7
  export default Fill;
@@ -49,6 +49,11 @@ interface FilePropsBase {
49
49
  fullscreen?: boolean;
50
50
  /** Show help text. */
51
51
  help?: React.ReactNode;
52
+ /**
53
+ * An id for the input, which may be necessary for accessibility, such as for aria
54
+ * attributes.
55
+ */
56
+ inputId?: string;
52
57
  /** The name is returned with onRequestAdd and onRequestRemove events,
53
58
  * which can be used to identify the
54
59
  * control when multiple controls share an onChange callback. */
@@ -74,7 +79,7 @@ type FileProps = ComponentProps<FilePropsBase, 'div'>;
74
79
  * file readers, only a reference to the file. This can be used to post binary content, or
75
80
  * upload using an array buffer.
76
81
  */
77
- declare function File({ accept, allowMultiple, children, disabled, dropAnywhere, elementRef, error, fullscreen, help, name, onRequestAdd, onRequestRemove, onRequestRetry, required, supportsMessage: supportsMessageProp, ...otherProps }: FileProps): React.JSX.Element;
82
+ declare function File({ accept, allowMultiple, children, disabled, dropAnywhere, elementRef, error, fullscreen, help, inputId: inputIdProp, name, onRequestAdd, onRequestRemove, onRequestRetry, required, supportsMessage: supportsMessageProp, ...otherProps }: FileProps): React.JSX.Element;
78
83
  declare namespace File {
79
84
  var propTypes: {
80
85
  accept: PropTypes.Requireable<string>;
@@ -86,6 +91,7 @@ declare namespace File {
86
91
  fullscreen: PropTypes.Requireable<boolean>;
87
92
  error: PropTypes.Requireable<boolean>;
88
93
  help: PropTypes.Requireable<PropTypes.ReactNodeLike>;
94
+ inputId: PropTypes.Requireable<string>;
89
95
  name: PropTypes.Requireable<string>;
90
96
  onRequestAdd: PropTypes.Requireable<(...args: any[]) => any>;
91
97
  onRequestRemove: PropTypes.Requireable<(...args: any[]) => any>;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Customized supports message and help
4
+ * @description The default supports message can be customized. A help message can also be added.
5
+ */
2
6
  export default function CustomizedMessages(): React.JSX.Element;
@@ -1,5 +1,8 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FileRequestAddHandler } from '@splunk/react-ui/File';
3
+ /**
4
+ * @name Disabled
5
+ */
3
6
  declare class Disabled extends Component<object, {
4
7
  filename?: string;
5
8
  }> {
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FileRequestAddHandler } from '@splunk/react-ui/File';
3
+ /**
4
+ * @name Drop anywhere
5
+ * @description The File.Item can be dropped anywhere on the page. This example must open in a modal since the drop zone is the entire page and affects the other Files on this page.
6
+ */
3
7
  declare class DropAnywhere extends Component<object, {
4
8
  filename?: string;
5
9
  open: boolean;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Error
4
+ * @description The File and File.Item have separate error states. Generally, they should not be used together. Either the File is in error (for example, required field), or an Item is in error (for example, incorrect file type).
5
+ */
2
6
  export default function FileErrors(): React.JSX.Element;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Full screen
4
+ * @description This example must open in a modal. There can only be one File component on the page. Dropping a file anywhere will upload the file.
5
+ */
2
6
  declare function Fullscreen(): React.JSX.Element;
3
7
  export default Fullscreen;
@@ -4,6 +4,10 @@ interface FileItem {
4
4
  name: string;
5
5
  value?: string | ArrayBuffer | null;
6
6
  }
7
+ /**
8
+ * @name Multifile
9
+ * @description By storing an array of items, multiple files can be supported.
10
+ */
7
11
  declare class Multi extends Component<object, {
8
12
  files: FileItem[];
9
13
  }> {
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Progress
4
+ * @description The File.Item can display its upload progress.
5
+ */
2
6
  export default function Progress(): React.JSX.Element;
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FileRequestAddHandler } from '@splunk/react-ui/File';
3
+ /**
4
+ * @name Single file
5
+ * @description Here, selecting a new file will replace the existing file.
6
+ */
3
7
  declare class Single extends Component<object, {
4
8
  filename?: string;
5
9
  }> {
@@ -1,5 +1,8 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FormRowsRequestMoveHandler, RowRequestRemoveHandler } from '@splunk/react-ui/FormRows';
3
+ /**
4
+ * @name Basic
5
+ */
3
6
  declare class Basic extends Component<object, {
4
7
  items: React.ReactElement[];
5
8
  }> {
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FormRowsRequestMoveHandler, RowRequestRemoveHandler } from '@splunk/react-ui/FormRows';
3
+ /**
4
+ * @name Header
5
+ * @description Form Rows does not provide a concept of columns, but this can be simulated by adding content to the header and setting fixed widths on the elements. For accessibility compliance, ensure each heading has a unique id and form controls have a matching describedBy prop.
6
+ */
3
7
  declare class Header extends Component<object, {
4
8
  items: React.ReactElement[];
5
9
  }> {
@@ -1,6 +1,10 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FormRowsRequestMoveHandler, RowRequestRemoveHandler } from '@splunk/react-ui/FormRows';
3
3
  import { SelectChangeHandler } from '@splunk/react-ui/Select';
4
+ /**
5
+ * @name Custom add menu
6
+ * @description The 'Add row' button can be replaced with a button, multiple buttons, or any other content you want to show below the Form Rows.
7
+ */
4
8
  declare class Menu extends Component<object, {
5
9
  items: React.ReactElement[];
6
10
  }> {
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { FormRowsRequestMoveHandler } from '@splunk/react-ui/FormRows';
3
+ /**
4
+ * @name Reorder only
5
+ * @description The add and delete functionality can be removed by not including the onRequestAdd handler on Form Rows and the onRequestRemove handler on Row. The functionality of reordering Rows will still remain intact. If users can add, they should be able to delete as well.
6
+ */
3
7
  declare class ReorderOnly extends Component<object, {
4
8
  items: React.ReactElement[];
5
9
  }> {
@@ -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 Variant
4
+ * @description The level prop determines the <hX> HTML tag and has an associated default typography mixin style. To override this default styling, the variant prop can be used to specify a typography mixin style. For instance, it is possible for a variant to have title1 styling and be a <h2> tag as in the below example.
5
+ */
2
6
  declare function Variant(): React.JSX.Element;
3
7
  export default Variant;
@@ -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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
+ import { TreeItemPropsBase } from '@splunk/react-ui/Tree';
3
4
  import { JSONElement } from './JSONTree';
4
- import { TreeItemPropsBase } from '../Tree';
5
5
  import { ComponentProps } from '../utils/types';
6
6
  export type ExpandLinkRenderer = (params: {
7
7
  onToggleExpansion: (event: React.KeyboardEvent<HTMLLIElement> | React.MouseEvent<HTMLSpanElement>, data?: {
@@ -20,6 +20,7 @@ interface JSONTreeItemPropsBase extends TreeItemPropsBase {
20
20
  indentArray?: string[];
21
21
  index: number;
22
22
  initialOpenState: boolean;
23
+ isRoot?: boolean;
23
24
  properties?: string[];
24
25
  propertyDataPath: string;
25
26
  propertyElement?: JSX.Element | undefined;
@@ -28,7 +29,7 @@ interface JSONTreeItemPropsBase extends TreeItemPropsBase {
28
29
  value?: JSONElement;
29
30
  }
30
31
  type JSONTreeItemProps = ComponentProps<JSONTreeItemPropsBase, 'li'>;
31
- export declare function JSONTreeItem({ clickableKeyRef, clickableValRef, hasChildren, indentArray, index, initialOpenState, onFocus, properties, propertyDataPath, propertyElement, renderExpandLink, representation, value, ...otherProps }: JSONTreeItemProps): React.JSX.Element;
32
+ export declare function JSONTreeItem({ clickableKeyRef, clickableValRef, hasChildren, indentArray, index, initialOpenState, isRoot, onFocus, properties, propertyDataPath, propertyElement, renderExpandLink, representation, value, ...otherProps }: JSONTreeItemProps): React.JSX.Element;
32
33
  export declare namespace JSONTreeItem {
33
34
  var propTypes: {
34
35
  clickableKeyRef: PropTypes.Requireable<object>;
@@ -37,6 +38,7 @@ export declare namespace JSONTreeItem {
37
38
  indentArray: PropTypes.Requireable<(string | null | undefined)[]>;
38
39
  index: PropTypes.Requireable<number>;
39
40
  initialOpenState: PropTypes.Requireable<boolean>;
41
+ isRoot: PropTypes.Requireable<boolean>;
40
42
  properties: PropTypes.Requireable<(string | null | undefined)[]>;
41
43
  propertyDataPath: PropTypes.Requireable<string>;
42
44
  propertyElement: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -1,2 +1,5 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ */
2
5
  export default function Basic(): React.JSX.Element;
@@ -1,5 +1,9 @@
1
1
  import React, { Component } from 'react';
2
2
  import { JSONTreeClickValueHandler, JSONTreeClickKeyHandler } from '@splunk/react-ui/JSONTree';
3
+ /**
4
+ * @name Click events
5
+ * @description Click the value to see the interaction.
6
+ */
3
7
  declare class Events extends Component<object, {
4
8
  key: string;
5
9
  keyPath?: (string | number)[];
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Expand children on shift key
4
+ * @description Shift + Click or Shift + Enter to expand all child nodes at once.
5
+ */
2
6
  export default function ExpandChildrenOnShiftKey(): React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { JSONElement, JSONTreeClickKeyHandler, JSONTreeClickValueHandler } from './JSONTree';
3
3
  type RenderTreeItemsProps = {
4
+ baseId: string;
4
5
  defaultOpen?: boolean;
5
6
  defaultExpanded?: boolean;
6
7
  expandChildrenOnShiftKey?: boolean;
@@ -14,5 +15,5 @@ type RenderTreeItemsProps = {
14
15
  shift?: boolean;
15
16
  updateShift: ((newShift: boolean) => void) | undefined;
16
17
  };
17
- export declare function renderTreeItems({ defaultOpen, defaultExpanded, expandChildrenOnShiftKey, indent, indentLevel, obj, onClickKey, onClickValue, overflow, path, shift, updateShift, }: RenderTreeItemsProps): React.JSX.Element | React.JSX.Element[];
18
+ export declare function renderTreeItems({ baseId, defaultOpen, defaultExpanded, expandChildrenOnShiftKey, indent, indentLevel, obj, onClickKey, onClickValue, overflow, path, shift, updateShift, }: RenderTreeItemsProps): React.JSX.Element | React.JSX.Element[];
18
19
  export {};
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ * @description This example shows a simple overlay that can be dismissed by pressing the Escape key.
5
+ */
2
6
  declare function Basic(): React.JSX.Element;
3
7
  export default Basic;
@@ -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 Basic
4
+ * @description Use the Link component instead of an <a> tag, by default it is displayed inline.
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 Disabled
4
+ * @description Links can be disabled. The href is then removed from the markup.
5
+ */
2
6
  declare function Disabled(): React.JSX.Element;
3
7
  export default Disabled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name New window
4
+ * @description openInNewContext=true adds an icon and sets target to _blank. A message indicates the behavior for screen reader users. The default message, '(Opens new window)', can be customized by by passing a string to openInNewContext.
5
+ */
2
6
  declare function NewWindow(): React.JSX.Element;
3
7
  export default NewWindow;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Standalone
4
+ * @description Use appearance="standalone" when using Link on its own without other text content.
5
+ */
2
6
  declare function Standalone(): React.JSX.Element;
3
7
  export default Standalone;