@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
package/Typography.js CHANGED
@@ -77,8 +77,8 @@
77
77
  const s = require("@splunk/themes/mixins");
78
78
  var u = e.n(s);
79
79
  // CONCATENATED MODULE: ./src/Typography/Typography.tsx
80
- function p() {
81
- return p = Object.assign ? Object.assign.bind() : function(e) {
80
+ function f() {
81
+ return f = Object.assign ? Object.assign.bind() : function(e) {
82
82
  for (var r = 1; r < arguments.length; r++) {
83
83
  var t = arguments[r];
84
84
  for (var n in t) {
@@ -86,31 +86,31 @@
86
86
  }
87
87
  }
88
88
  return e;
89
- }, p.apply(null, arguments);
89
+ }, f.apply(null, arguments);
90
90
  }
91
- function c(e, r) {
91
+ function p(e, r) {
92
92
  if (null == e) return {};
93
- var t, n, o = f(e, r);
93
+ var t, n, o = y(e, r);
94
94
  if (Object.getOwnPropertySymbols) {
95
95
  var a = Object.getOwnPropertySymbols(e);
96
96
  for (n = 0; n < a.length; n++) {
97
- t = a[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
97
+ t = a[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
98
98
  }
99
99
  }
100
100
  return o;
101
101
  }
102
- function f(e, r) {
102
+ function y(e, r) {
103
103
  if (null == e) return {};
104
104
  var t = {};
105
105
  for (var n in e) {
106
106
  if ({}.hasOwnProperty.call(e, n)) {
107
- if (r.includes(n)) continue;
107
+ if (-1 !== r.indexOf(n)) continue;
108
108
  t[n] = e[n];
109
109
  }
110
110
  }
111
111
  return t;
112
112
  }
113
- var y = {
113
+ var c = {
114
114
  as: a().string.isRequired,
115
115
  children: a().node.isRequired,
116
116
  color: a().oneOf([ "active", "default", "disabled", "inverted", "muted", "inherit" ]),
@@ -132,7 +132,7 @@
132
132
  /**
133
133
  * Typography renders text content with styling based on the Splunk Design System.
134
134
  */ function g(e) {
135
- var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size, f = e.variant, y = e.weight, g = e.withReset, h = g === void 0 ? true : g, v = c(e, [ "as", "children", "color", "elementRef", "family", "lineHeight", "size", "variant", "weight", "withReset" ]);
135
+ var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size, y = e.variant, c = e.weight, g = e.withReset, h = g === void 0 ? true : g, v = p(e, [ "as", "children", "color", "elementRef", "family", "lineHeight", "size", "variant", "weight", "withReset" ]);
136
136
  // @docs-props-type TypographyPropsBase
137
137
  var m = (0, t.useMemo)((function() {
138
138
  return {
@@ -140,20 +140,20 @@
140
140
  family: l,
141
141
  lineHeight: s,
142
142
  size: u,
143
- weight: y,
143
+ weight: c,
144
144
  withReset: h
145
145
  };
146
- }), [ a, l, s, u, y, h ]);
146
+ }), [ a, l, s, u, c, h ]);
147
147
 
148
- return n().createElement(d, p({
148
+ return n().createElement(d, f({
149
149
  as: r,
150
150
  "data-test": "typography",
151
151
  ref: i,
152
152
  $typographyParams: m,
153
- $variant: f
153
+ $variant: y
154
154
  }, v), o);
155
155
  }
156
- g.propTypes = y;
156
+ g.propTypes = c;
157
157
  /* harmony default export */ const h = g;
158
158
  // CONCATENATED MODULE: ./src/Typography/index.ts
159
159
  module.exports = r;
package/WaitSpinner.js CHANGED
@@ -79,11 +79,11 @@
79
79
  // CONCATENATED MODULE: external "@splunk/themes"
80
80
  const f = require("@splunk/themes");
81
81
  // CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
82
- var u = c().div.withConfig({
82
+ var d = c().div.withConfig({
83
83
  displayName: "WaitSpinnerStyles__Styled",
84
84
  componentId: "sc-1nu971z-0"
85
85
  })([ "", ";align-items:center;" ], f.mixins.reset("inline-flex"));
86
- var d = (0, l.keyframes)([ "100%{transform:rotate(360deg);}" ]);
86
+ var u = (0, l.keyframes)([ "100%{transform:rotate(360deg);}" ]);
87
87
  var m = (0, l.keyframes)([ "0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}" ]);
88
88
  var p = "2.07s";
89
89
  var y = c().svg.withConfig({
@@ -95,7 +95,7 @@
95
95
  large: (0, l.css)([ "width:40px;height:40px;" ])
96
96
  }), (function(e) {
97
97
  var t = e.$animated;
98
- return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], d, p, m);
98
+ return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], u, p, m);
99
99
  }));
100
100
  var v = (0, l.keyframes)([ "0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
101
101
  var h = (0, l.keyframes)([ "0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
@@ -131,7 +131,7 @@
131
131
  if (Object.getOwnPropertySymbols) {
132
132
  var i = Object.getOwnPropertySymbols(e);
133
133
  for (n = 0; n < i.length; n++) {
134
- r = i[n], t.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
134
+ r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
135
135
  }
136
136
  }
137
137
  return a;
@@ -141,7 +141,7 @@
141
141
  var r = {};
142
142
  for (var n in e) {
143
143
  if ({}.hasOwnProperty.call(e, n)) {
144
- if (t.includes(n)) continue;
144
+ if (-1 !== t.indexOf(n)) continue;
145
145
  r[n] = e[n];
146
146
  }
147
147
  }
@@ -157,7 +157,7 @@
157
157
  // @docs-props-type WaitSpinnerPropsBase
158
158
  var f = (0, s.useAnimationToggle)() === "on";
159
159
 
160
- return n().createElement(u, k({
160
+ return n().createElement(d, k({
161
161
  "data-test": "wait-spinner",
162
162
  ref: t
163
163
  }, c), n().createElement(y, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "Library of React components that implement the Splunk design language",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Splunk Inc.",
@@ -11,7 +11,7 @@
11
11
  "docs:publish:external": "eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
12
12
  "docs:start": "INTERNAL=true webpack serve --config docs.gen.webpack.config.js",
13
13
  "docs:start:external": "webpack serve --config docs.gen.webpack.config.js",
14
- "eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
14
+ "eslint": "eslint --rulesdir ../../infra/eslint/rules src .storybook --ext \".ts,.tsx,.js,.jsx\"",
15
15
  "eslint:fix": "yarn run eslint --fix",
16
16
  "eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
17
17
  "lint": "yarn run eslint && yarn run stylelint",
@@ -29,8 +29,8 @@
29
29
  "test:watch": "jest --watch",
30
30
  "test:cypress": "yarn cypress open --component",
31
31
  "test:cypress:ci": "yarn cypress run --component",
32
- "types:build": "yarn types:build:cypress && tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
33
- "types:build:cypress": "tsc --p cypress/tsconfig.cypress.json",
32
+ "types:build": "yarn types:noemit && yarn tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
33
+ "types:noemit": "tsc --p cypress/tsconfig.check-cypress.json && tsc --p tsconfig.check-docs.json",
34
34
  "types:start": "yarn types:build --watch"
35
35
  },
36
36
  "peerDependencies": {
@@ -44,8 +44,8 @@
44
44
  "@dnd-kit/sortable": "^8.0.0",
45
45
  "@dnd-kit/utilities": "^3.2.2",
46
46
  "@react-spring/web": "^9.7.5",
47
- "@splunk/react-icons": "^5.1.0",
48
- "@splunk/themes": "^1.1.0",
47
+ "@splunk/react-icons": "^5.3.0",
48
+ "@splunk/themes": "^1.2.1",
49
49
  "@splunk/ui-utils": "^1.10.0",
50
50
  "decimal.js-light": "^2.2.3",
51
51
  "lodash": "^4.17.14",
@@ -57,21 +57,21 @@
57
57
  "use-typed-event-listener": "^3.0.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@babel/core": "^7.2.0",
61
- "@babel/plugin-transform-runtime": "^7.18.6",
60
+ "@babel/core": "^7.28.0",
61
+ "@babel/plugin-transform-runtime": "^7.28.0",
62
62
  "@splunk/babel-preset": "^4.0.0",
63
- "@splunk/docs-gen": "^1.0.0",
63
+ "@splunk/docs-gen": "^1.1.1",
64
64
  "@splunk/eslint-config": "^5.0.0",
65
- "@splunk/react-docs": "^1.1.0",
65
+ "@splunk/react-docs": "^1.3.0",
66
66
  "@splunk/stylelint-config": "^5.0.0",
67
67
  "@splunk/test-runner-utils": "^0.4.1",
68
68
  "@splunk/webpack-configs": "^7.0.2",
69
- "@storybook/addon-a11y": "^7.6.17",
70
- "@storybook/addon-essentials": "^7.6.17",
71
- "@storybook/addon-interactions": "^7.6.17",
69
+ "@storybook/addon-a11y": "^7.6.20",
70
+ "@storybook/addon-essentials": "^7.6.20",
71
+ "@storybook/addon-interactions": "^7.6.20",
72
72
  "@storybook/csf": "^0.0.1",
73
- "@storybook/manager-api": "^7.6.17",
74
- "@storybook/react-webpack5": "^7.6.17",
73
+ "@storybook/manager-api": "^7.6.20",
74
+ "@storybook/react-webpack5": "^7.6.20",
75
75
  "@storybook/test-runner": "0.16.0",
76
76
  "@testing-library/cypress": "^9.0.0",
77
77
  "@testing-library/dom": "^10.4.0",
@@ -85,17 +85,15 @@
85
85
  "@types/prismjs": "^1.26.3",
86
86
  "@types/react": "^18.2.0",
87
87
  "@types/react-dom": "^18.2.0",
88
- "@types/sinon": "^4.3.3",
89
88
  "@types/styled-components": "^5.1.0",
90
89
  "@types/tinycolor2": "^1.4.2",
91
- "@types/webdriverio": "^5.0.0",
92
90
  "@types/webpack-env": "^1.15.2",
93
91
  "@typescript-eslint/eslint-plugin": "^8.29.1",
94
92
  "@typescript-eslint/parser": "^8.29.1",
95
- "axe-html-reporter": "^2.2.3",
93
+ "axe-html-reporter": "^2.2.11",
96
94
  "axe-playwright": "^1.1.11",
97
95
  "babel-loader": "^8.3.0",
98
- "babel-plugin-istanbul": "^5.1.0",
96
+ "babel-plugin-istanbul": "^5.2.0",
99
97
  "babel-plugin-styled-components": "^1.10.7",
100
98
  "babel-plugin-transform-imports": "^2.0.0",
101
99
  "babel-plugin-transform-require-context": "^0.1.1",
@@ -128,20 +126,18 @@
128
126
  "mkdirp": "^0.5.1",
129
127
  "playwright": "^1.45.0",
130
128
  "prismjs": "^1.29.0",
131
- "prompt": "^1.0.0",
132
129
  "raw-loader": "^4.0.2",
133
130
  "react": "^18.2.0",
134
131
  "react-docgen": "^5.4.0",
135
132
  "react-dom": "^18.2.0",
136
133
  "react-test-renderer": "^16.13.1",
137
- "sinon": "^2.1.0",
138
- "storybook": "^7.6.17",
134
+ "storybook": "^7.6.20",
139
135
  "styled-components": "^5.3.10",
140
136
  "stylelint": "^15.11.0",
141
137
  "typescript": "^5.8.3",
142
138
  "webpack": "^5.88.2",
143
139
  "webpack-cli": "^5.1.4",
144
- "webpack-dev-server": "^4.15.1",
140
+ "webpack-dev-server": "^5.2.2",
145
141
  "webpack-merge": "^5.9.0"
146
142
  },
147
143
  "engines": {
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "noEmit": true
5
+ },
6
+ "include": ["stubs-*.d.ts", "src/docs/**/*"],
7
+ "exclude": []
8
+ }
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ */
2
5
  declare function Controlled(): React.JSX.Element;
3
6
  export default Controlled;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Inset
4
+ * @description inset adds padding to the Accordion Panel. This can be set on the Accordion, or individual Panels. Individual Panels can override inset from their parent Accordion.
5
+ */
2
6
  declare const Inset: () => React.JSX.Element;
3
7
  export default Inset;
@@ -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,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ * @description `Anchor` can be added to any `Heading` level.
5
+ */
2
6
  declare function Basic(): React.JSX.Element;
3
7
  export default Basic;
@@ -1,4 +1,8 @@
1
1
  import React, { Component } from 'react';
2
+ /**
3
+ * @name Controlling animation via a provider
4
+ * @description Shows how to control animation using an AnimationToggleProvider. This can be used to disable animation for most components included in this library.
5
+ */
2
6
  declare class Provider extends Component<object, {
3
7
  animatedTransitions: boolean;
4
8
  open: boolean;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Support reduced motion with a component
4
+ * @description Shows how to use the Animation Toggle component to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled or no reduced motion alternative is set, Animation Toggle considers animations to be disabled.
5
+ */
2
6
  declare const ReducedMotionComponent: () => React.JSX.Element;
3
7
  export default ReducedMotionComponent;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Support reduced motion with a hook
4
+ * @description Shows how to use the useAnimationToggle hook to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled useAnimationToggle returns 'off'.
5
+ */
2
6
  declare const ReducedMotionHook: () => React.JSX.Element;
3
7
  export default ReducedMotionHook;
@@ -1,4 +1,8 @@
1
1
  import React, { Component } from 'react';
2
+ /**
3
+ * @name Offering animation control with a component
4
+ * @description Shows how to use the Animation Toggle component to render different content based on current animation settings.
5
+ */
2
6
  declare class ToggleComponent extends Component<object, {
3
7
  animatedTransitions: boolean;
4
8
  }> {
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Background color
4
+ * @description An Avatar can render a provided background color and will automatically change the text color to satisfy accessibility contrast requirements. For the automatic text color change, backgroundColor must be provided as a string without a represented alpha value.
5
+ */
2
6
  export default function BackgroundColor(): React.JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ * @description An Avatar can show one to three characters. You can use the `getInitials` helper to shorten a name.
5
+ */
2
6
  export default function Basic(): React.JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Image
4
+ * @description An Avatar can show an image provided as an icon, <img>, or asset.
5
+ */
2
6
  export default function Image(): React.JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Interactive
4
+ * @description Avatars can be interactive by including the appropriate props to make them buttons or links.
5
+ */
2
6
  export default function Interactive(): React.JSX.Element;
@@ -1,2 +1,6 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Size
4
+ * @description Avatars can be one of three standard sizes: small, medium (default), or large. The size prop can also be a string if the standard size doesn't fit your use case. Note: using a non-standard size may have unexpected layouts when combined with other components.
5
+ */
2
6
  export default function Size(): React.JSX.Element;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Adornments
4
+ * @description A startAdornment and/or endAdornment can be added to a Breadcrumbs.Item. Icons should be decorative.
5
+ */
2
6
  declare function Adornments(): React.JSX.Element;
3
7
  export default Adornments;
@@ -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 Customized click
4
+ * @description A custom onClick handler can be set on the root Breadcrumbs component or individual Breadcrumbs.Item components. If both components have onClick handlers, both handlers will be called when the Breadcrumbs.Item is clicked.
5
+ */
2
6
  declare function CustomizedClick(): React.JSX.Element;
3
7
  export default CustomizedClick;
@@ -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 Block sized
4
+ * @description By default, Buttons exist in inline blocks. Set inline to false to make the Button the full width of the parent container.
5
+ */
2
6
  declare function Block(): React.JSX.Element;
3
7
  export default Block;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Disabled
4
+ * @description Consider keeping Buttons enabled and inform the user why the action may have failed or can't be completed. Disabling buttons creates barriers for all users and can exclude people with disabilities. If a Button is passed disabled the default behavior is to render a 'dimmed' button. This ensures the button is still discoverable and can receive focus, but the button cannot not be activated by the user. If necessary, a Button can be completely disabled by setting disabled='disabled'. In these cases, consider contacting us to collaborate on alternatives for a more inclusive experience.
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 With icons
4
+ * @description By default, icons appear to the left of Button text. If you want an icon to appear the right of Button text, add it as a child and correct margins or other positioning as necessary.
5
+ */
2
6
  declare function Icons(): React.JSX.Element;
3
7
  export default Icons;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name With menu indicator
4
+ * @description Add the isMenu prop to display the menu indicator to the right of Button text. See [Dropdown](Dropdown) to learn how to create a dropdown menu.
5
+ */
2
6
  declare function Menus(): React.JSX.Element;
3
7
  export default Menus;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name As a link
4
+ * @description Add the to prop to indicate that the Button behaves as a link. The openInNewContext prop will open the link in a new window or tab and display the external link indicator
5
+ */
2
6
  declare function To(): React.JSX.Element;
3
7
  export default To;
@@ -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,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Basic
4
+ * @description A Card with a title and body. In this example, the content determines the width of the Card. Otherwise, pass in a width to fix the Card width.
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 Clickable card
4
+ * @description A Card that goes to a URL or performs an action when clicked.
5
+ */
2
6
  declare function Clickable(): React.JSX.Element;
3
7
  export default Clickable;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Full card
4
+ * @description A Card with a header, body, and footer. In this example, the height and width of the Card are set. Card.Footer must always be last in a Card.
5
+ */
2
6
  declare function FullCard(): React.JSX.Element;
3
7
  export default FullCard;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Card with heading
4
+ * @description Pass the Heading component into the title prop when there is content underneath to satisfy accessibility requirements.
5
+ */
2
6
  declare function HeadingTitle(): React.JSX.Element;
3
7
  export default HeadingTitle;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Card with images
4
+ * @description A Card with Images. You can switch the order of Card.Header and Card.Body.
5
+ */
2
6
  declare function Images(): React.JSX.Element;
3
7
  export default Images;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
+ /**
3
+ * @name Selectable card
4
+ * @description A Card that is selected when clicked. The card must be provided an onClick in order to use the selected prop.
5
+ */
2
6
  declare function Selectable(): React.JSX.Element;
3
7
  export default Selectable;
@@ -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;
@@ -11,6 +11,10 @@ interface InteractiveState {
11
11
  setAsWidth: boolean;
12
12
  hasMaxWidth: boolean;
13
13
  }
14
+ /**
15
+ * @name Interactive card layout
16
+ * @description The default layout scales cards equally and wraps them. As a best practice, pass in a minWidth style to each Card to prevent an overly narrow width when the screen is resized. You can pass in a maxWidth style so the Card doesn't get too wide. In this example, the minWidth is initially set to 200.
17
+ */
14
18
  declare class Interactive extends Component<object, InteractiveState> {
15
19
  constructor(props: object);
16
20
  handleChangeAmount: NumberChangeHandler;
@@ -0,0 +1,90 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import { ComponentProps } from '../utils/types';
4
+ /** @public */
5
+ type CheckboxChangeHandler = (event: React.ChangeEvent<HTMLInputElement>, data: {
6
+ checked: boolean;
7
+ name?: string;
8
+ value?: string;
9
+ }) => void;
10
+ interface CheckboxPropsBase {
11
+ /**
12
+ * Setting this value makes the component controlled. If set, the onChange callback is required.
13
+ * A setting of "indeterminate" is considered unchecked for the purposes of form submission.
14
+ */
15
+ checked?: boolean | 'indeterminate';
16
+ /** The content to display inside the checkbox label. */
17
+ children?: React.ReactNode;
18
+ /** Set this property instead of checked to make the component uncontrolled. */
19
+ defaultChecked?: boolean;
20
+ /**
21
+ * The id of the description.
22
+ * When placed in a ControlGroup, this is automatically set to the ControlGroup's help component.
23
+ */
24
+ describedBy?: string;
25
+ disabled?: boolean;
26
+ /**
27
+ * A React ref which is set to the DOM element when the component mounts, and null when it unmounts.
28
+ */
29
+ elementRef?: React.Ref<HTMLDivElement>;
30
+ /**
31
+ * Mark the component as having an error.
32
+ */
33
+ error?: boolean;
34
+ inert?: boolean;
35
+ /**
36
+ * A React ref which is set to the input element when the component mounts and null when it unmounts.
37
+ */
38
+ inputRef?: React.Ref<HTMLInputElement>;
39
+ /**
40
+ * The id of the label.
41
+ * When placed in a ControlGroup, this is automatically set to the ControlGroup's label.
42
+ */
43
+ labelledBy?: string;
44
+ /**
45
+ * The name is returned with onChange events, which can be used to identify the
46
+ * control when multiple controls share an onChange callback.
47
+ */
48
+ name?: string;
49
+ /**
50
+ * Fires when the checked state changes.
51
+ */
52
+ onChange?: CheckboxChangeHandler;
53
+ /** @private. */
54
+ required?: boolean;
55
+ /**
56
+ * Returned by the onChange handler and submitted during form submission if the checkbox is checked.
57
+ * This defaults to "on" if the input is checked.
58
+ */
59
+ value?: string;
60
+ }
61
+ interface CheckboxPropsBaseControlled extends CheckboxPropsBase {
62
+ defaultChecked?: never;
63
+ onChange: CheckboxChangeHandler;
64
+ }
65
+ interface CheckboxPropsBaseUncontrolled extends CheckboxPropsBase {
66
+ defaultChecked?: boolean;
67
+ checked?: never;
68
+ }
69
+ type CheckboxProps = ComponentProps<CheckboxPropsBaseControlled | CheckboxPropsBaseUncontrolled, 'input'>;
70
+ declare const Checkbox: {
71
+ ({ checked, children, defaultChecked, describedBy, disabled, elementRef, error, id, inert, inputRef, labelledBy, name, onChange, required, role, tabIndex, value, ...otherProps }: CheckboxProps): React.JSX.Element;
72
+ propTypes: {
73
+ checked: PropTypes.Requireable<string | boolean>;
74
+ children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
75
+ defaultChecked: PropTypes.Requireable<boolean>;
76
+ describedBy: PropTypes.Requireable<string>;
77
+ disabled: PropTypes.Requireable<boolean>;
78
+ elementRef: PropTypes.Requireable<object>;
79
+ error: PropTypes.Requireable<boolean>;
80
+ inert: PropTypes.Requireable<boolean>;
81
+ inputRef: PropTypes.Requireable<object>;
82
+ labelledBy: PropTypes.Requireable<string>;
83
+ name: PropTypes.Requireable<string>;
84
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
85
+ /** @private. */
86
+ required: PropTypes.Requireable<boolean>;
87
+ };
88
+ };
89
+ export default Checkbox;
90
+ export { CheckboxChangeHandler, CheckboxPropsBase, CheckboxPropsBaseControlled, CheckboxPropsBaseUncontrolled, };
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ /**
3
+ * @name Controlled
4
+ * @description Checkbox can be controlled using the checked prop and an onChange callback.
5
+ */
6
+ declare const Basic: () => React.JSX.Element;
7
+ export default Basic;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * @name Disabled
4
+ */
5
+ declare const Disabled: () => React.JSX.Element;
6
+ export default Disabled;