@splunk/react-ui 4.5.3 → 4.8.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 (460) hide show
  1. package/Accordion.js +7 -7
  2. package/Anchor.js +2 -2
  3. package/Animation.js +2 -2
  4. package/AnimationToggle.js +2 -2
  5. package/Box.js +2 -2
  6. package/Button.js +13 -13
  7. package/ButtonGroup.js +4 -4
  8. package/ButtonSimple.js +6 -6
  9. package/CHANGELOG.md +47 -1
  10. package/Calendar.js +16 -16
  11. package/Card.js +48 -53
  12. package/CardLayout.js +4 -4
  13. package/Chip.js +10 -10
  14. package/Clickable.js +42 -15
  15. package/CloseButton.js +8 -8
  16. package/Code.js +8 -7
  17. package/CollapsiblePanel.js +11 -14
  18. package/Color.js +48 -48
  19. package/ColumnLayout.js +4 -4
  20. package/ComboBox.js +8 -8
  21. package/Concertina.js +15 -15
  22. package/ControlGroup.js +30 -37
  23. package/Date.js +10 -10
  24. package/DefinitionList.js +2 -2
  25. package/Dropdown.js +4 -4
  26. package/EventListener.js +4 -4
  27. package/FetchOptions.js +8 -8
  28. package/File.js +27 -27
  29. package/FormRows.js +21 -23
  30. package/Heading.js +2 -2
  31. package/Image.js +14 -14
  32. package/JSONTree.js +4 -4
  33. package/Layer.js +10 -10
  34. package/Link.js +6 -6
  35. package/List.js +2 -2
  36. package/Markdown.js +28 -16
  37. package/Menu.js +135 -70
  38. package/Message.js +246 -305
  39. package/MessageBar.d.ts +2 -0
  40. package/MessageBar.js +789 -0
  41. package/Modal.js +95 -61
  42. package/ModalLayer.js +5 -4
  43. package/Monogram.js +4 -4
  44. package/Multiselect.js +293 -42
  45. package/Number.js +8 -8
  46. package/Paginator.js +24 -24
  47. package/Paragraph.js +2 -2
  48. package/Popover.js +12 -12
  49. package/Progress.js +6 -6
  50. package/RadioBar.js +25 -12
  51. package/RadioList.js +2 -2
  52. package/Resize.js +8 -8
  53. package/ResultsMenu.js +25 -23
  54. package/ScreenReaderContent.js +2 -2
  55. package/Scroll.js +6 -6
  56. package/ScrollContainerContext.js +2 -2
  57. package/Search.js +14 -14
  58. package/Select.js +286 -36
  59. package/SidePanel.js +6 -6
  60. package/Slider.js +20 -14
  61. package/SlidingPanels.js +4 -4
  62. package/StaticContent.js +2 -2
  63. package/StepBar.js +18 -18
  64. package/Switch.js +17 -31
  65. package/TabBar.js +60 -46
  66. package/TabLayout.js +4 -4
  67. package/Table.js +63 -55
  68. package/Text.js +163 -146
  69. package/Tooltip.js +14 -14
  70. package/TransitionOpen.js +69 -44
  71. package/WaitSpinner.js +2 -2
  72. package/cypress/plugins/index.ts +15 -0
  73. package/cypress/support/commands.ts +1 -0
  74. package/cypress/support/index.ts +10 -0
  75. package/cypress.json +12 -0
  76. package/package.json +27 -8
  77. package/stubs-splunkui.d.ts +1 -0
  78. package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -0
  79. package/types/src/Accordion/docs/examples/FixedHeight.d.ts +2 -0
  80. package/types/src/Accordion/docs/examples/InDropdown.d.ts +2 -0
  81. package/types/src/Accordion/docs/examples/Inset.d.ts +2 -0
  82. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -0
  83. package/types/src/Anchor/docs/examples/Basic.d.ts +2 -0
  84. package/types/src/Animation/Animation.d.ts +0 -1
  85. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +11 -0
  86. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -0
  87. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -0
  88. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +9 -0
  89. package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -0
  90. package/types/src/Button/docs/examples/Basic.d.ts +2 -0
  91. package/types/src/Button/docs/examples/Block.d.ts +2 -0
  92. package/types/src/Button/docs/examples/Disabled.d.ts +2 -0
  93. package/types/src/Button/docs/examples/Icons.d.ts +2 -0
  94. package/types/src/Button/docs/examples/Menus.d.ts +2 -0
  95. package/types/src/Button/docs/examples/Selected.d.ts +2 -0
  96. package/types/src/Button/docs/examples/To.d.ts +2 -0
  97. package/types/src/Button/docs/examples/Truncated.d.ts +2 -0
  98. package/types/src/Button/docs/examples/prisma/Basic.d.ts +2 -0
  99. package/types/src/Button/docs/examples/prisma/Block.d.ts +2 -0
  100. package/types/src/Button/docs/examples/prisma/Disabled.d.ts +2 -0
  101. package/types/src/Button/docs/examples/prisma/Icons.d.ts +2 -0
  102. package/types/src/Button/docs/examples/prisma/Menus.d.ts +2 -0
  103. package/types/src/Button/docs/examples/prisma/To.d.ts +2 -0
  104. package/types/src/Button/docs/examples/prisma/Truncated.d.ts +2 -0
  105. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +1 -0
  106. package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +1 -0
  107. package/types/src/Calendar/DateTable.d.ts +0 -1
  108. package/types/src/Card/docs/examples/Basic.d.ts +2 -0
  109. package/types/src/Card/docs/examples/Clickable.d.ts +2 -0
  110. package/types/src/Card/docs/examples/Full.d.ts +2 -0
  111. package/types/src/Card/docs/examples/Images.d.ts +2 -0
  112. package/types/src/Card/docs/examples/Selectable.d.ts +2 -0
  113. package/types/src/Card/docs/examples/prisma/Actions.d.ts +2 -0
  114. package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -0
  115. package/types/src/CardLayout/docs/examples/Interactive.d.ts +28 -0
  116. package/types/src/Chip/docs/examples/Appearance.d.ts +2 -0
  117. package/types/src/Chip/docs/examples/Basic.d.ts +2 -0
  118. package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -0
  119. package/types/src/Chip/docs/examples/Disabled.d.ts +2 -0
  120. package/types/src/Chip/docs/examples/Icon.d.ts +2 -0
  121. package/types/src/Chip/docs/examples/Removable.d.ts +2 -0
  122. package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +2 -0
  123. package/types/src/Clickable/Clickable.d.ts +12 -2
  124. package/types/src/Clickable/NavigationProvider.d.ts +13 -2
  125. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -0
  126. package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -0
  127. package/types/src/Code/docs/examples/Default.d.ts +2 -0
  128. package/types/src/Code/docs/examples/HideIndent.d.ts +2 -0
  129. package/types/src/Code/docs/examples/Language.d.ts +2 -0
  130. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -0
  131. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -0
  132. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -0
  133. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -0
  134. package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +2 -0
  135. package/types/src/CollapsiblePanel/docs/examples/prisma/BasicControlled.d.ts +2 -0
  136. package/types/src/CollapsiblePanel/docs/examples/prisma/BasicUncontrolled.d.ts +2 -0
  137. package/types/src/CollapsiblePanel/docs/examples/prisma/Content.d.ts +1 -0
  138. package/types/src/CollapsiblePanel/docs/examples/prisma/MultiControlled.d.ts +2 -0
  139. package/types/src/CollapsiblePanel/docs/examples/prisma/MultiUncontrolled.d.ts +2 -0
  140. package/types/src/Color/Color.d.ts +3 -3
  141. package/types/src/Color/docs/examples/Controlled.d.ts +2 -0
  142. package/types/src/Color/docs/examples/Null.d.ts +2 -0
  143. package/types/src/Color/docs/examples/ThemeVariables.d.ts +1 -0
  144. package/types/src/Color/docs/examples/Transparent.d.ts +2 -0
  145. package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -0
  146. package/types/src/Color/docs/examples/prisma/Controlled.d.ts +2 -0
  147. package/types/src/Color/docs/examples/prisma/CustomizedPalette.d.ts +1 -0
  148. package/types/src/Color/docs/examples/prisma/HideInput.d.ts +2 -0
  149. package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +1 -0
  150. package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +2 -0
  151. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -0
  152. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -0
  153. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -0
  154. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -0
  155. package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -0
  156. package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -0
  157. package/types/src/ComboBox/docs/examples/Headings.d.ts +1 -0
  158. package/types/src/ComboBox/docs/examples/Label.d.ts +2 -0
  159. package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -0
  160. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -0
  161. package/types/src/Concertina/docs/examples/Basic.d.ts +2 -0
  162. package/types/src/Concertina/docs/examples/Disabled.d.ts +9 -0
  163. package/types/src/Concertina/docs/examples/Status.d.ts +2 -0
  164. package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -0
  165. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +10 -0
  166. package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -0
  167. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -0
  168. package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +2 -0
  169. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -0
  170. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -0
  171. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -0
  172. package/types/src/Date/Date.d.ts +3 -3
  173. package/types/src/Date/Icon.d.ts +0 -1
  174. package/types/src/Date/docs/examples/Basic.d.ts +2 -0
  175. package/types/src/Date/docs/examples/Controlled.d.ts +10 -0
  176. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -0
  177. package/types/src/Date/docs/examples/Disabled.d.ts +2 -0
  178. package/types/src/Date/docs/examples/HighlightToday.d.ts +10 -0
  179. package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -0
  180. package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -0
  181. package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -0
  182. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -0
  183. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -0
  184. package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -0
  185. package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +2 -0
  186. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -0
  187. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -0
  188. package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +2 -0
  189. package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +2 -0
  190. package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +2 -0
  191. package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +2 -0
  192. package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +2 -0
  193. package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +2 -0
  194. package/types/src/File/Icon.d.ts +0 -1
  195. package/types/src/File/IconCloud.d.ts +0 -1
  196. package/types/src/File/PaperClip.d.ts +0 -1
  197. package/types/src/File/Retry.d.ts +0 -1
  198. package/types/src/File/Trash.d.ts +0 -1
  199. package/types/src/File/docs/examples/CustomChildren.d.ts +12 -0
  200. package/types/src/File/docs/examples/CustomizedMessages.d.ts +1 -0
  201. package/types/src/File/docs/examples/Disabled.d.ts +12 -0
  202. package/types/src/File/docs/examples/DropAnywhere.d.ts +15 -0
  203. package/types/src/File/docs/examples/Error.d.ts +1 -0
  204. package/types/src/File/docs/examples/FullScreen.d.ts +15 -0
  205. package/types/src/File/docs/examples/Multi.d.ts +16 -0
  206. package/types/src/File/docs/examples/Progress.d.ts +15 -0
  207. package/types/src/File/docs/examples/Single.d.ts +12 -0
  208. package/types/src/File/docs/examples/prisma/Disabled.d.ts +12 -0
  209. package/types/src/File/docs/examples/prisma/Error.d.ts +1 -0
  210. package/types/src/File/docs/examples/prisma/Progress.d.ts +1 -0
  211. package/types/src/FormRows/docs/examples/Basic.d.ts +12 -0
  212. package/types/src/FormRows/docs/examples/Header.d.ts +12 -0
  213. package/types/src/FormRows/docs/examples/Menu.d.ts +13 -0
  214. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +10 -0
  215. package/types/src/Heading/docs/examples/Basic.d.ts +2 -0
  216. package/types/src/Image/docs/examples/Basic.d.ts +2 -0
  217. package/types/src/JSONTree/docs/examples/Basic.d.ts +1 -0
  218. package/types/src/JSONTree/docs/examples/Events.d.ts +13 -0
  219. package/types/src/Layer/docs/examples/Basic.d.ts +2 -0
  220. package/types/src/Link/docs/examples/Basic.d.ts +2 -0
  221. package/types/src/Link/docs/examples/Disabled.d.ts +2 -0
  222. package/types/src/Link/docs/examples/Inline.d.ts +2 -0
  223. package/types/src/Link/docs/examples/NewTab.d.ts +2 -0
  224. package/types/src/List/docs/examples/Decimal.d.ts +2 -0
  225. package/types/src/List/docs/examples/Disc.d.ts +2 -0
  226. package/types/src/List/docs/examples/LowerAlpha.d.ts +2 -0
  227. package/types/src/List/docs/examples/UpperAlpha.d.ts +2 -0
  228. package/types/src/Markdown/docs/examples/Basic.d.ts +2 -0
  229. package/types/src/Markdown/docs/examples/I18n.d.ts +2 -0
  230. package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -0
  231. package/types/src/Markdown/renderers/MarkdownCode.d.ts +0 -1
  232. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +0 -1
  233. package/types/src/Markdown/renderers/MarkdownImage.d.ts +0 -1
  234. package/types/src/Menu/Divider.d.ts +0 -1
  235. package/types/src/Menu/docs/examples/Basic.d.ts +2 -0
  236. package/types/src/Menu/docs/examples/Complex.d.ts +2 -0
  237. package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -0
  238. package/types/src/Menu/docs/examples/Disabled.d.ts +2 -0
  239. package/types/src/Menu/docs/examples/Dividers.d.ts +2 -0
  240. package/types/src/Menu/docs/examples/Headings.d.ts +2 -0
  241. package/types/src/Menu/docs/examples/Icons.d.ts +2 -0
  242. package/types/src/Menu/docs/examples/Links.d.ts +2 -0
  243. package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -0
  244. package/types/src/Menu/docs/examples/Selectable.d.ts +2 -0
  245. package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +2 -0
  246. package/types/src/Menu/docs/examples/Truncate.d.ts +2 -0
  247. package/types/src/Message/Link.d.ts +2 -0
  248. package/types/src/Message/Message.d.ts +6 -1
  249. package/types/src/Message/docs/examples/Basic.d.ts +2 -0
  250. package/types/src/Message/docs/examples/Content.d.ts +2 -0
  251. package/types/src/Message/docs/examples/Fill.d.ts +2 -0
  252. package/types/src/Message/docs/examples/Removable.d.ts +2 -0
  253. package/types/src/Message/docs/examples/prisma/Title.d.ts +2 -0
  254. package/types/src/MessageBar/MessageBar.d.ts +28 -0
  255. package/types/src/MessageBar/docs/examples/Types.d.ts +2 -0
  256. package/types/src/MessageBar/index.d.ts +2 -0
  257. package/types/src/Modal/Modal.d.ts +3 -0
  258. package/types/src/Modal/ModalContext.d.ts +6 -0
  259. package/types/src/Modal/docs/examples/Basic.d.ts +2 -0
  260. package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -0
  261. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -0
  262. package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -0
  263. package/types/src/Modal/docs/examples/prisma/TypicalUsage.d.ts +2 -0
  264. package/types/src/Monogram/Monogram.d.ts +2 -2
  265. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +1 -0
  266. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +1 -0
  267. package/types/src/Monogram/docs/examples/Basic.d.ts +1 -0
  268. package/types/src/Monogram/docs/examples/Interactive.d.ts +1 -0
  269. package/types/src/Monogram/docs/examples/Size.d.ts +1 -0
  270. package/types/src/Multiselect/Multiselect.d.ts +1 -0
  271. package/types/src/Multiselect/docs/examples/Children.d.ts +10 -0
  272. package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -0
  273. package/types/src/Multiselect/docs/examples/Controlled.d.ts +10 -0
  274. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +10 -0
  275. package/types/src/Multiselect/docs/examples/Disabled.d.ts +10 -0
  276. package/types/src/Multiselect/docs/examples/Error.d.ts +10 -0
  277. package/types/src/Multiselect/docs/examples/Fetching.d.ts +23 -0
  278. package/types/src/Multiselect/docs/examples/Headings.d.ts +1 -0
  279. package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -0
  280. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +26 -0
  281. package/types/src/Multiselect/docs/examples/NewValues.d.ts +10 -0
  282. package/types/src/Multiselect/docs/examples/TabInput.d.ts +10 -0
  283. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -0
  284. package/types/src/Number/IncrementIcon.d.ts +0 -1
  285. package/types/src/Number/Number.d.ts +3 -3
  286. package/types/src/Number/docs/examples/Basic.d.ts +10 -0
  287. package/types/src/Number/docs/examples/Disabled.d.ts +2 -0
  288. package/types/src/Number/docs/examples/Error.d.ts +2 -0
  289. package/types/src/Number/docs/examples/Limits.d.ts +10 -0
  290. package/types/src/Number/docs/examples/Locale.d.ts +10 -0
  291. package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -0
  292. package/types/src/Paginator/PageSeparator.d.ts +0 -1
  293. package/types/src/Paginator/docs/examples/Basic.d.ts +2 -0
  294. package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -0
  295. package/types/src/Popover/Popover.d.ts +1 -2
  296. package/types/src/Popover/docs/examples/Basic.d.ts +2 -0
  297. package/types/src/Progress/docs/examples/Basic.d.ts +2 -0
  298. package/types/src/Progress/docs/examples/prisma/Type.d.ts +2 -0
  299. package/types/src/RadioBar/Option.d.ts +13 -3
  300. package/types/src/RadioBar/RadioBar.d.ts +5 -3
  301. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -0
  302. package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -0
  303. package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -0
  304. package/types/src/RadioBar/docs/examples/Error.d.ts +2 -0
  305. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -0
  306. package/types/src/RadioList/docs/examples/Basic.d.ts +2 -0
  307. package/types/src/RadioList/docs/examples/Composing.d.ts +2 -0
  308. package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -0
  309. package/types/src/RadioList/docs/examples/Error.d.ts +2 -0
  310. package/types/src/RadioList/docs/examples/Row.d.ts +2 -0
  311. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -0
  312. package/types/src/Resize/docs/examples/Appearance.d.ts +2 -0
  313. package/types/src/Resize/docs/examples/Percentage.d.ts +2 -0
  314. package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -0
  315. package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -0
  316. package/types/src/Resize/docs/examples/Typical.d.ts +2 -0
  317. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -0
  318. package/types/src/Scroll/docs/examples/Controlled.d.ts +13 -0
  319. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -0
  320. package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -0
  321. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -0
  322. package/types/src/Search/docs/examples/Controlled.d.ts +2 -0
  323. package/types/src/Search/docs/examples/Loading.d.ts +2 -0
  324. package/types/src/Search/docs/examples/Options.d.ts +2 -0
  325. package/types/src/Search/docs/examples/Results.d.ts +2 -0
  326. package/types/src/Select/Select.d.ts +8 -3
  327. package/types/src/Select/SelectBase.d.ts +17 -5
  328. package/types/src/Select/docs/examples/Appearance.d.ts +14 -0
  329. package/types/src/Select/docs/examples/Basic.d.ts +10 -0
  330. package/types/src/Select/docs/examples/Children.d.ts +10 -0
  331. package/types/src/Select/docs/examples/Descriptions.d.ts +10 -0
  332. package/types/src/Select/docs/examples/Error.d.ts +2 -0
  333. package/types/src/Select/docs/examples/Fetching.d.ts +23 -0
  334. package/types/src/Select/docs/examples/Filter.d.ts +10 -0
  335. package/types/src/Select/docs/examples/Headings.d.ts +10 -0
  336. package/types/src/Select/docs/examples/Icons.d.ts +10 -0
  337. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +25 -0
  338. package/types/src/Select/docs/examples/Prefix.d.ts +10 -0
  339. package/types/src/Select/docs/examples/Truncate.d.ts +10 -0
  340. package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -0
  341. package/types/src/Select/docs/examples/prisma/Appearance.d.ts +14 -0
  342. package/types/src/Select/matchUtils.d.ts +12 -0
  343. package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -0
  344. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -0
  345. package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -0
  346. package/types/src/Slider/Slider.d.ts +3 -3
  347. package/types/src/Slider/docs/examples/Basic.d.ts +2 -0
  348. package/types/src/Slider/docs/examples/Controlled.d.ts +12 -0
  349. package/types/src/Slider/docs/examples/CustomLabels.d.ts +12 -0
  350. package/types/src/Slider/docs/examples/Disabled.d.ts +2 -0
  351. package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -0
  352. package/types/src/Slider/docs/examples/prisma/Error.d.ts +2 -0
  353. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +11 -0
  354. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +11 -0
  355. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +14 -0
  356. package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -0
  357. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -0
  358. package/types/src/StepBar/docs/examples/Basic.d.ts +2 -0
  359. package/types/src/StepBar/docs/examples/prisma/Error.d.ts +2 -0
  360. package/types/src/Switch/CheckIcon.d.ts +0 -1
  361. package/types/src/Switch/Switch.d.ts +7 -7
  362. package/types/src/Switch/docs/examples/Basic.d.ts +10 -0
  363. package/types/src/Switch/docs/examples/Disabled.d.ts +10 -0
  364. package/types/src/Switch/docs/examples/Error.d.ts +2 -0
  365. package/types/src/TabBar/docs/examples/Basic.d.ts +2 -0
  366. package/types/src/TabBar/docs/examples/IconsInline.d.ts +2 -0
  367. package/types/src/TabBar/docs/examples/IconsSmall.d.ts +2 -0
  368. package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -0
  369. package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -0
  370. package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +2 -0
  371. package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -0
  372. package/types/src/TabBar/docs/examples/prisma/Context.d.ts +2 -0
  373. package/types/src/TabBar/docs/examples/prisma/Disabled.d.ts +2 -0
  374. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -0
  375. package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -0
  376. package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -0
  377. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -0
  378. package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -0
  379. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -0
  380. package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +2 -0
  381. package/types/src/Table/DragHandle.d.ts +0 -1
  382. package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
  383. package/types/src/Table/Toggle.d.ts +0 -1
  384. package/types/src/Table/docs/examples/Basic.d.ts +2 -0
  385. package/types/src/Table/docs/examples/Click.d.ts +16 -0
  386. package/types/src/Table/docs/examples/ClickRows.d.ts +16 -0
  387. package/types/src/Table/docs/examples/Complex.d.ts +39 -0
  388. package/types/src/Table/docs/examples/DockedHeader.d.ts +2 -0
  389. package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -0
  390. package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -0
  391. package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -0
  392. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +18 -0
  393. package/types/src/Table/docs/examples/ReorderColumns.d.ts +21 -0
  394. package/types/src/Table/docs/examples/ReorderRows.d.ts +21 -0
  395. package/types/src/Table/docs/examples/Resizable.d.ts +23 -0
  396. package/types/src/Table/docs/examples/ResizableFill.d.ts +23 -0
  397. package/types/src/Table/docs/examples/Selectable.d.ts +18 -0
  398. package/types/src/Table/docs/examples/SortableColumns.d.ts +12 -0
  399. package/types/src/Table/docs/examples/prisma/Basic.d.ts +2 -0
  400. package/types/src/Table/docs/examples/prisma/Complex.d.ts +48 -0
  401. package/types/src/Table/docs/examples/prisma/DockedHeader.d.ts +2 -0
  402. package/types/src/Table/docs/examples/prisma/RowActions.d.ts +39 -0
  403. package/types/src/Text/IconOutlinedHide.d.ts +0 -1
  404. package/types/src/Text/IconOutlinedView.d.ts +0 -1
  405. package/types/src/Text/Text.d.ts +10 -3
  406. package/types/src/Text/docs/examples/Basic.d.ts +10 -0
  407. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -0
  408. package/types/src/Text/docs/examples/Disabled.d.ts +2 -0
  409. package/types/src/Text/docs/examples/Error.d.ts +10 -0
  410. package/types/src/Text/docs/examples/Inline.d.ts +10 -0
  411. package/types/src/Text/docs/examples/Multiline.d.ts +10 -0
  412. package/types/src/Text/docs/examples/Password.d.ts +10 -0
  413. package/types/src/Text/docs/examples/Search.d.ts +10 -0
  414. package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -0
  415. package/types/src/Text/docs/examples/prisma/Multiline.d.ts +10 -0
  416. package/types/src/Text/docs/examples/prisma/Search.d.ts +10 -0
  417. package/types/src/Tooltip/InfoIcon.d.ts +0 -1
  418. package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -0
  419. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -0
  420. package/types/src/Tooltip/docs/examples/Controlled.d.ts +12 -0
  421. package/types/src/Tooltip/docs/examples/CustomContent.d.ts +2 -0
  422. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -0
  423. package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -0
  424. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -0
  425. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -0
  426. package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -0
  427. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -0
  428. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -0
  429. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -0
  430. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -0
  431. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -0
  432. package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +2 -0
  433. package/types/src/fixtures/FetchOptions.d.ts +2 -0
  434. package/types/src/fixtures/text.d.ts +1 -0
  435. package/types/src/icons/Alert.d.ts +0 -1
  436. package/types/src/icons/AlertFilled.d.ts +0 -1
  437. package/types/src/icons/CaretDown.d.ts +0 -1
  438. package/types/src/icons/CaretRight.d.ts +0 -1
  439. package/types/src/icons/Check.d.ts +0 -1
  440. package/types/src/icons/ChevronDown.d.ts +0 -1
  441. package/types/src/icons/ChevronLeft.d.ts +0 -1
  442. package/types/src/icons/ChevronRight.d.ts +0 -1
  443. package/types/src/icons/CrossMark.d.ts +0 -1
  444. package/types/src/icons/External.d.ts +0 -1
  445. package/types/src/icons/InfoFilled.d.ts +0 -1
  446. package/types/src/icons/More.d.ts +0 -1
  447. package/types/src/icons/MoreVertical.d.ts +0 -1
  448. package/types/src/icons/Plus.d.ts +0 -1
  449. package/types/src/icons/SVG.d.ts +0 -1
  450. package/types/src/icons/Search.d.ts +0 -1
  451. package/types/src/icons/Sort.d.ts +0 -1
  452. package/types/src/icons/SortedDown.d.ts +0 -1
  453. package/types/src/icons/SortedUp.d.ts +0 -1
  454. package/types/src/icons/Success.d.ts +0 -1
  455. package/types/src/icons/SuccessFilled.d.ts +0 -1
  456. package/types/src/icons/WarningFilled.d.ts +0 -1
  457. package/types/src/utils/types.d.ts +0 -1
  458. package/unit-test-setup-testing-library.ts +9 -0
  459. package/usePrevious.js +2 -2
  460. package/types/src/Message/Banner.d.ts +0 -8
package/TransitionOpen.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 167);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 175);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 167:
104
+ /***/ 175:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -126,10 +126,10 @@ var external_lodash_ = __webpack_require__(4);
126
126
  var Animation_ = __webpack_require__(30);
127
127
 
128
128
  // EXTERNAL MODULE: external "@splunk/ui-utils/focus"
129
- var focus_ = __webpack_require__(25);
129
+ var focus_ = __webpack_require__(26);
130
130
 
131
131
  // EXTERNAL MODULE: external "@splunk/ui-utils/style"
132
- var style_ = __webpack_require__(39);
132
+ var style_ = __webpack_require__(40);
133
133
 
134
134
  // EXTERNAL MODULE: external "react-spring"
135
135
  var external_react_spring_ = __webpack_require__(18);
@@ -291,7 +291,8 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
291
291
  });
292
292
 
293
293
  _defineProperty(_assertThisInitialized(_this), "internalRender", function (_ref) {
294
- var value = _ref.value;
294
+ var value = _ref.value,
295
+ transform = _ref.transform;
295
296
  var _this$props2 = _this.props,
296
297
  animation = _this$props2.animation,
297
298
  className = _this$props2.className,
@@ -304,37 +305,19 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
304
305
  outerId = _this$props2.outerId,
305
306
  outerStyle = _this$props2.outerStyle;
306
307
  var animating = _this.state.animating;
307
- var offset = value.to(function (v) {
308
- return _this.state.value || 0 - v;
309
- });
310
- var transform;
311
308
  var dimension;
312
309
 
313
310
  if (animating) {
314
311
  switch (animation) {
315
312
  case 'slideFromTop':
316
- transform = "translateY(-".concat(offset, "px)");
317
- dimension = 'height';
318
- break;
319
-
320
313
  case 'slideFromBottom':
314
+ case 'expandHeight':
321
315
  case 'none':
322
316
  dimension = 'height';
323
317
  break;
324
318
 
325
319
  case 'slideFromLeft':
326
- transform = "translateX(".concat(-offset, "px)");
327
- dimension = 'width';
328
- break;
329
-
330
320
  case 'slideFromRight':
331
- dimension = 'width';
332
- break;
333
-
334
- case 'expandHeight':
335
- dimension = 'height';
336
- break;
337
-
338
321
  case 'expandWidth':
339
322
  dimension = 'width';
340
323
  break;
@@ -365,6 +348,58 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
365
348
  }), children));
366
349
  });
367
350
 
351
+ _defineProperty(_assertThisInitialized(_this), "getSpringTransition", function () {
352
+ var _this$props3 = _this.props,
353
+ open = _this$props3.open,
354
+ animation = _this$props3.animation;
355
+ var value = _this.state.value;
356
+ var toValue = {
357
+ value: open ? value : 0
358
+ };
359
+ var fromValue = {
360
+ value: open ? 0 : value
361
+ };
362
+ var config = {
363
+ precision: 1
364
+ }; // Only use precision when not using transform, otherwise transform animation will break
365
+ // Expansion doesn't require a valid value; the subsequent render animates it.
366
+
367
+ if (animation === 'expandWidth' || animation === 'expandHeight' || animation === 'none') {
368
+ return {
369
+ to: toValue,
370
+ config: config
371
+ };
372
+ } // Slide transitions require a valid value, render without transition first.
373
+
374
+
375
+ if (!value) {
376
+ return null;
377
+ }
378
+
379
+ if (animation !== 'slideFromTop' && animation !== 'slideFromLeft') {
380
+ // Return the standard transition if not using a transform.
381
+ return {
382
+ to: toValue,
383
+ from: fromValue,
384
+ config: config
385
+ };
386
+ } // The top and left directions require an additional transform of their inner content to match the outer dimension animation.
387
+ // This is needed to achieve a clipping effect from the outer div, rather than the consumer providing their own.
388
+
389
+
390
+ var orientation = animation === 'slideFromTop' ? 'Y' : 'X';
391
+ var toTransform = "translate".concat(orientation, "(").concat(open ? 0 : -value, "px)");
392
+ var fromTransform = "translate".concat(orientation, "(").concat(open ? -value : 0, "px)");
393
+ return {
394
+ to: _objectSpread({
395
+ transform: toTransform
396
+ }, toValue),
397
+ from: _objectSpread({
398
+ transform: fromTransform
399
+ }, fromValue)
400
+ };
401
+ });
402
+
368
403
  _this.state = {
369
404
  animating: props.animateOnMount ? props.open : false,
370
405
  innerEl: null,
@@ -379,7 +414,7 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
379
414
  value: function componentDidUpdate() {
380
415
  var value = this.getValue(this.state.innerEl);
381
416
 
382
- if (this.state.value !== value) {
417
+ if (this.state.value !== value && !this.state.animating) {
383
418
  this.setState({
384
419
  value: value
385
420
  }); // eslint-disable-line react/no-did-update-set-state
@@ -388,21 +423,11 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
388
423
  }, {
389
424
  key: "render",
390
425
  value: function render() {
391
- var _this$props3 = this.props,
392
- open = _this$props3.open,
393
- animation = _this$props3.animation;
394
- var value = this.state.value;
395
- var animateTo = open ? value : 0;
396
- return /*#__PURE__*/external_react_default.a.createElement(Animation_["Spring"], {
397
- to: {
398
- value: animateTo || 0
399
- },
426
+ var animation = this.props.animation;
427
+ return /*#__PURE__*/external_react_default.a.createElement(Animation_["Spring"], _extends({}, this.getSpringTransition(), {
400
428
  immediate: animation === 'none',
401
- onRest: this.handleRest,
402
- config: {
403
- precision: 1
404
- }
405
- }, // eslint-disable-next-line @typescript-eslint/no-explicit-any
429
+ onRest: this.handleRest
430
+ }), // eslint-disable-next-line @typescript-eslint/no-explicit-any
406
431
  this.internalRender);
407
432
  }
408
433
  }]);
@@ -445,7 +470,7 @@ module.exports = require("react");
445
470
 
446
471
  /***/ }),
447
472
 
448
- /***/ 25:
473
+ /***/ 26:
449
474
  /***/ (function(module, exports) {
450
475
 
451
476
  module.exports = require("@splunk/ui-utils/focus");
@@ -466,17 +491,17 @@ module.exports = require("@splunk/react-ui/Animation");
466
491
 
467
492
  /***/ }),
468
493
 
469
- /***/ 39:
494
+ /***/ 4:
470
495
  /***/ (function(module, exports) {
471
496
 
472
- module.exports = require("@splunk/ui-utils/style");
497
+ module.exports = require("lodash");
473
498
 
474
499
  /***/ }),
475
500
 
476
- /***/ 4:
501
+ /***/ 40:
477
502
  /***/ (function(module, exports) {
478
503
 
479
- module.exports = require("lodash");
504
+ module.exports = require("@splunk/ui-utils/style");
480
505
 
481
506
  /***/ })
482
507
 
package/WaitSpinner.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 168);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 176);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
101
101
 
102
102
  /***/ }),
103
103
 
104
- /***/ 168:
104
+ /***/ 176:
105
105
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
106
106
 
107
107
  "use strict";
@@ -0,0 +1,15 @@
1
+ /* eslint-env node */
2
+
3
+ import { startDevServer } from '@cypress/webpack-dev-server';
4
+ import webpackConfig from '../../webpack.test.config';
5
+
6
+ /**
7
+ * @type {Cypress.PluginConfig}
8
+ */
9
+ module.exports = (on, config) => {
10
+ if (config.testingType === 'component') {
11
+ on('dev-server:start', (options) => startDevServer({ options, webpackConfig }));
12
+ }
13
+
14
+ return config;
15
+ };
@@ -0,0 +1 @@
1
+ import '@testing-library/cypress/add-commands';
@@ -0,0 +1,10 @@
1
+ import { setGlobalConfig } from '@storybook/testing-react';
2
+ import { configure } from '@testing-library/cypress';
3
+ import 'cypress-real-events/support';
4
+
5
+ import './commands';
6
+ import * as sbPreview from '../../.storybook/preview';
7
+
8
+ configure({ testIdAttribute: 'data-test' });
9
+
10
+ setGlobalConfig(sbPreview);
package/cypress.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "baseUrl": "http://localhost:8080",
3
+ "env": {},
4
+ "defaultCommandTimeout": 1000,
5
+ "fixturesFolder": false,
6
+ "video": false,
7
+ "videoUploadOnPasses": false,
8
+ "component": {
9
+ "componentFolder": "src",
10
+ "testFiles": "**/**/tests/*.spec.tsx"
11
+ }
12
+ }
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@splunk/react-ui",
3
- "version": "4.5.3",
3
+ "version": "4.8.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.",
7
7
  "scripts": {
8
- "build": "cross-env NODE_ENV=production webpack --bail && yarn types:build && yarn build-storybook",
8
+ "build": "cross-env NODE_ENV=production webpack && yarn types:build && yarn build-storybook",
9
+ "docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
10
+ "docs:start": "webpack serve --config docs.gen.webpack.config.js",
9
11
  "eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
10
12
  "eslint:fix": "yarn run eslint --fix",
11
13
  "eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
@@ -22,18 +24,20 @@
22
24
  "test:functional:coverage": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.local.conf.js --coverage",
23
25
  "test:functional:ci": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.ci.conf.js --coverage-maps",
24
26
  "test:functional:cloud": "splunk-wdio-functional-test-runner functional.cloud.conf.js",
27
+ "test:cypress": "yarn cypress open-ct",
28
+ "test:cypress:ci": "yarn cypress run-ct",
25
29
  "test:visual:cloud": "splunk-wdio-functional-test-runner functional.visual.conf.js",
26
30
  "types:build": "tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
27
- "types:start": "tsc --emitDeclarationOnly --declaration --declarationDir ./types --watch"
31
+ "types:start": "yarn types:build --watch"
28
32
  },
29
33
  "peerDependencies": {
30
34
  "react": "^16.8",
31
35
  "react-dom": "^16.8",
32
- "styled-components": "^5.1"
36
+ "styled-components": "5.1.1"
33
37
  },
34
38
  "dependencies": {
35
- "@splunk/react-icons": "^3.1.0",
36
- "@splunk/themes": "^0.10.0",
39
+ "@splunk/react-icons": "^3.2.0",
40
+ "@splunk/themes": "^0.11.0",
37
41
  "@splunk/ui-utils": "^1.4.0",
38
42
  "@types/commonmark": "^0.27.0",
39
43
  "@types/lodash": "^4.14.156",
@@ -56,8 +60,12 @@
56
60
  },
57
61
  "devDependencies": {
58
62
  "@babel/core": "^7.2.0",
63
+ "@cypress/react": "^5.12.4",
64
+ "@cypress/webpack-dev-server": "^1.8.2",
59
65
  "@splunk/babel-preset": "^3.0.0",
66
+ "@splunk/docs-gen": "^0.11.1",
60
67
  "@splunk/eslint-config": "^4.0.0",
68
+ "@splunk/react-docs": "^0.11.0",
61
69
  "@splunk/stylelint-config": "^4.0.0",
62
70
  "@splunk/test-runner-utils": "^0.4.0",
63
71
  "@splunk/wdio-functional-test-runner": "^10.1.0",
@@ -66,6 +74,11 @@
66
74
  "@storybook/addon-essentials": "^6.3.0",
67
75
  "@storybook/csf": "^0.0.1",
68
76
  "@storybook/react": "^6.3.0",
77
+ "@storybook/testing-react": "^1.2.3",
78
+ "@testing-library/cypress": "^8.0.2",
79
+ "@testing-library/jest-dom": "^5.16.1",
80
+ "@testing-library/react": "^12.1.2",
81
+ "@testing-library/react-hooks": "^7.0.2",
69
82
  "@types/chai": "^3.5.2",
70
83
  "@types/enzyme": "^3.10.5",
71
84
  "@types/jest": "^25.2.1",
@@ -83,12 +96,16 @@
83
96
  "chai": "^3.5.0",
84
97
  "core-js": "^3.6.4",
85
98
  "cross-env": "^6.0.3",
99
+ "cypress": "^9.5.1",
100
+ "cypress-real-events": "^1.7.0",
101
+ "docgen-loader": "^1.3.4",
86
102
  "enzyme": "^3.11.0",
87
103
  "enzyme-adapter-react-16": "^1.15.2",
88
104
  "eslint": "^7.14.0",
89
105
  "eslint-config-airbnb": "^18.2.1",
90
106
  "eslint-config-prettier": "^6.15.0",
91
107
  "eslint-import-resolver-webpack": "^0.13.0",
108
+ "eslint-plugin-cypress": "^2.12.1",
92
109
  "eslint-plugin-import": "^2.22.1",
93
110
  "eslint-plugin-jsx-a11y": "^6.4.1",
94
111
  "eslint-plugin-react": "^7.21.5",
@@ -104,8 +121,9 @@
104
121
  "prompt": "^1.0.0",
105
122
  "raw-loader": "^0.5.1",
106
123
  "react": "^16.12.0",
124
+ "react-docgen": "^5.4.0",
107
125
  "react-dom": "^16.12.0",
108
- "react-test-renderer": "^16.12.0",
126
+ "react-test-renderer": "^16.13.1",
109
127
  "sinon": "^2.1.0",
110
128
  "styled-components": "5.1.1",
111
129
  "stylelint": "^13.0.0",
@@ -113,7 +131,8 @@
113
131
  "typescript": "^4.0.5",
114
132
  "wdio-image-comparison-service": "^1.9.0",
115
133
  "webpack": "^4.16.2",
116
- "webpack-cli": "^3.1.0",
134
+ "webpack-cli": "^4.9.2",
135
+ "webpack-dev-server": "^4.7.4",
117
136
  "webpack-merge": "^4.1.3"
118
137
  },
119
138
  "engines": {
@@ -1,6 +1,7 @@
1
1
  declare const __DEV__: boolean;
2
2
  declare const __EXAMPLES__: any;
3
3
  declare const __OPTIONS__: any;
4
+ declare const __EXAMPLES_OFFSET__: number;
4
5
 
5
6
  declare module '__FONTS_IMPORT__/*' {
6
7
  const component: string;
@@ -0,0 +1,2 @@
1
+ declare function Controlled(): JSX.Element;
2
+ export default Controlled;
@@ -0,0 +1,2 @@
1
+ declare function FixedHeight(): JSX.Element;
2
+ export default FixedHeight;
@@ -0,0 +1,2 @@
1
+ declare function InDropdown(): JSX.Element;
2
+ export default InDropdown;
@@ -0,0 +1,2 @@
1
+ declare const Inset: () => JSX.Element;
2
+ export default Inset;
@@ -0,0 +1,2 @@
1
+ declare function Uncontrolled(): JSX.Element;
2
+ export default Uncontrolled;
@@ -0,0 +1,2 @@
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SpringComponentProps as RSSpringComponentProps, TransitionComponentProps as RSTransitionComponentProps } from 'react-spring';
3
2
  /**
4
3
  * Wrappers to use in place of `Spring` and `Transition` from `react-spring`.
@@ -0,0 +1,11 @@
1
+ import { Component } from 'react';
2
+ declare class Provider extends Component<{}, {
3
+ animatedTransitions: boolean;
4
+ open: boolean;
5
+ }> {
6
+ constructor(props: {});
7
+ handleButtonClick: () => void;
8
+ handleSwitchClick: () => void;
9
+ render(): JSX.Element;
10
+ }
11
+ export default Provider;
@@ -0,0 +1,2 @@
1
+ declare const ReducedMotionComponent: () => JSX.Element;
2
+ export default ReducedMotionComponent;
@@ -0,0 +1,2 @@
1
+ declare const ReducedMotionHook: () => JSX.Element;
2
+ export default ReducedMotionHook;
@@ -0,0 +1,9 @@
1
+ import { Component } from 'react';
2
+ declare class ToggleComponent extends Component<{}, {
3
+ animatedTransitions: boolean;
4
+ }> {
5
+ constructor(props: {});
6
+ handleSwitchClick: () => void;
7
+ render(): JSX.Element;
8
+ }
9
+ export default ToggleComponent;
@@ -0,0 +1,2 @@
1
+ declare function ToggleHook(): JSX.Element;
2
+ export default ToggleHook;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Icons(): JSX.Element;
2
+ export default Icons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1,2 @@
1
+ declare function Buttons(): JSX.Element;
2
+ export default Buttons;
@@ -0,0 +1 @@
1
+ export default function Basic(): JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Basic(): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from 'prop-types';
3
2
  import { DayClickHandler } from './Day';
4
3
  import { ComponentProps } from '../utils/types';
@@ -0,0 +1,2 @@
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;
@@ -0,0 +1,2 @@
1
+ declare function Clickable(): JSX.Element;
2
+ export default Clickable;
@@ -0,0 +1,2 @@
1
+ declare function FullCard(): JSX.Element;
2
+ export default FullCard;
@@ -0,0 +1,2 @@
1
+ declare function Images(): JSX.Element;
2
+ export default Images;
@@ -0,0 +1,2 @@
1
+ declare function Selectable(): JSX.Element;
2
+ export default Selectable;
@@ -0,0 +1,2 @@
1
+ declare function Actions(): JSX.Element;
2
+ export default Actions;
@@ -0,0 +1,2 @@
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;
@@ -0,0 +1,28 @@
1
+ import { Component } from 'react';
2
+ import { NumberChangeHandler } from '@splunk/react-ui/Number';
3
+ import { SwitchClickHandler } from '@splunk/react-ui/Switch';
4
+ interface InteractiveState {
5
+ value?: number;
6
+ minWidth?: number;
7
+ maxWidth?: number;
8
+ gutterSize?: number;
9
+ wrapCards: boolean;
10
+ alignCards: 'left' | 'center' | 'right';
11
+ setAsWidth: boolean;
12
+ hasMaxWidth: boolean;
13
+ }
14
+ declare class Interactive extends Component<{}, InteractiveState> {
15
+ constructor(props: {});
16
+ handleChangeAmount: NumberChangeHandler;
17
+ handleChangeMinWidth: NumberChangeHandler;
18
+ handleChangeMaxWidth: NumberChangeHandler;
19
+ handleChangeGutter: NumberChangeHandler;
20
+ handleChangeWrap: SwitchClickHandler;
21
+ handleChangeAlign: (e: any, { value }: {
22
+ value: any;
23
+ }) => void;
24
+ handleSetAsWidth: SwitchClickHandler;
25
+ handleHasMaxWidth: SwitchClickHandler;
26
+ render(): JSX.Element;
27
+ }
28
+ export default Interactive;
@@ -0,0 +1,2 @@
1
+ declare function Appearance(): JSX.Element;
2
+ export default Appearance;
@@ -0,0 +1,2 @@
1
+ declare function Basic(): JSX.Element;
2
+ export default Basic;
@@ -0,0 +1,2 @@
1
+ declare function CustomColors(): JSX.Element;
2
+ export default CustomColors;
@@ -0,0 +1,2 @@
1
+ declare function Disabled(): JSX.Element;
2
+ export default Disabled;
@@ -0,0 +1,2 @@
1
+ declare function Icon(): JSX.Element;
2
+ export default Icon;
@@ -0,0 +1,2 @@
1
+ declare function Removable(): JSX.Element;
2
+ export default Removable;
@@ -0,0 +1,2 @@
1
+ declare function OutlineAppearance(): JSX.Element;
2
+ export default OutlineAppearance;
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
2
2
  import { legacyRefMode } from '@splunk/react-ui/Dropdown';
3
3
  import { NavigationProviderClickHandler } from './NavigationProvider';
4
4
  import { ClassComponentProps } from '../utils/types';
5
- export declare const isInternalLink: (to: string) => boolean;
5
+ export declare const isInternalLink: (to: string | undefined) => boolean;
6
6
  interface ClickablePropsBase {
7
7
  children?: React.ReactNode;
8
8
  /**
@@ -25,6 +25,13 @@ interface ClickablePropsBase {
25
25
  * Ignored if not in link mode.
26
26
  */
27
27
  openInNewContext?: boolean;
28
+ /**
29
+ * The text representation of the navigational link.
30
+ * This should be provided if child content is not a string.
31
+ *
32
+ * Ignored if not in link mode.
33
+ */
34
+ navigationLabel?: string;
28
35
  /**
29
36
  * A URL for a link. If set and not disabled, an `a` element is used instead
30
37
  * of a `button` element (link mode).
@@ -41,7 +48,10 @@ declare type ClickableProps = ClickableButtonProps | ClickableLinkProps;
41
48
  */
42
49
  declare class Clickable extends Component<ClickableProps> {
43
50
  private el;
44
- static contextType: React.Context<NavigationProviderClickHandler | undefined>;
51
+ static contextType: React.Context<{
52
+ onClick?: NavigationProviderClickHandler | undefined;
53
+ prefix?: string | undefined;
54
+ }>;
45
55
  static propTypes: React.WeakValidationMap<ClassComponentProps<ClickablePropsBase, Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ClickablePropsBase, Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>, "a", "href">>;
46
56
  static defaultProps: Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>;
47
57
  static [legacyRefMode]: boolean;