@splunk/react-ui 5.1.0 → 5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/Accordion.js +60 -39
  2. package/Anchor.js +9 -9
  3. package/Animation.js +2 -2
  4. package/Avatar.js +10 -10
  5. package/Box.js +2 -2
  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 +23 -0
  11. package/Calendar.js +61 -61
  12. package/Card.js +286 -255
  13. package/CardLayout.js +10 -10
  14. package/Chip.js +31 -31
  15. package/Clickable.js +29 -29
  16. package/Code.js +15 -15
  17. package/CollapsiblePanel.js +93 -91
  18. package/Color.js +10 -10
  19. package/ColumnLayout.js +16 -16
  20. package/ComboBox.js +110 -110
  21. package/ControlGroup.js +99 -99
  22. package/Date.js +62 -62
  23. package/DefinitionList.js +124 -104
  24. package/Divider.js +2 -2
  25. package/DualListbox.js +178 -173
  26. package/File.js +22 -22
  27. package/FormRows.js +15 -15
  28. package/Heading.js +15 -15
  29. package/Image.js +31 -31
  30. package/JSONTree.js +492 -476
  31. package/Layer.js +4 -1
  32. package/Layout.js +10 -10
  33. package/Link.js +2 -2
  34. package/List.js +24 -24
  35. package/Markdown.js +102 -102
  36. package/Menu.js +21 -20
  37. package/Message.js +20 -20
  38. package/MessageBar.js +13 -13
  39. package/Modal.js +33 -33
  40. package/Monogram.js +94 -68
  41. package/Multiselect.js +822 -719
  42. package/Number.js +18 -18
  43. package/Paginator.js +39 -39
  44. package/Paragraph.js +10 -10
  45. package/Popover.js +243 -208
  46. package/Progress.js +6 -6
  47. package/Prose.js +16 -16
  48. package/RadioBar.js +118 -118
  49. package/RadioList.js +137 -113
  50. package/Resize.js +20 -20
  51. package/ResultsMenu.js +48 -48
  52. package/ScreenReaderContent.js +13 -13
  53. package/Scroll.js +24 -24
  54. package/Search.js +25 -25
  55. package/Select.js +941 -838
  56. package/SidePanel.js +29 -29
  57. package/Slider.js +30 -30
  58. package/SlidingPanels.js +28 -28
  59. package/SplitButton.js +100 -72
  60. package/StaticContent.js +6 -6
  61. package/StepBar.js +8 -8
  62. package/Switch.js +2 -2
  63. package/TabBar.js +293 -270
  64. package/TabLayout.js +68 -68
  65. package/Table.js +807 -790
  66. package/Text.js +2 -2
  67. package/TextArea.js +16 -16
  68. package/Tooltip.js +22 -22
  69. package/TransitionOpen.js +11 -11
  70. package/Tree.js +194 -189
  71. package/Typography.js +15 -15
  72. package/WaitSpinner.js +6 -6
  73. package/package.json +15 -18
  74. package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
  75. package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
  76. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
  77. package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
  78. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
  79. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
  80. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
  81. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
  82. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
  83. package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
  84. package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
  85. package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
  86. package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
  87. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
  88. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
  89. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
  90. package/types/src/Button/docs/examples/Basic.d.ts +3 -0
  91. package/types/src/Button/docs/examples/Block.d.ts +4 -0
  92. package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
  93. package/types/src/Button/docs/examples/Icons.d.ts +4 -0
  94. package/types/src/Button/docs/examples/Menus.d.ts +4 -0
  95. package/types/src/Button/docs/examples/To.d.ts +4 -0
  96. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
  97. package/types/src/Card/docs/examples/Basic.d.ts +4 -0
  98. package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
  99. package/types/src/Card/docs/examples/Full.d.ts +4 -0
  100. package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
  101. package/types/src/Card/docs/examples/Images.d.ts +4 -0
  102. package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
  103. package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
  104. package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
  105. package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
  106. package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
  107. package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
  108. package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
  109. package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
  110. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
  111. package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
  112. package/types/src/Code/docs/examples/Default.d.ts +3 -0
  113. package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
  114. package/types/src/Code/docs/examples/Language.d.ts +4 -0
  115. package/types/src/Code/docs/examples/LineHighlights.d.ts +4 -0
  116. package/types/src/Code/docs/examples/LineNumbers.d.ts +4 -0
  117. package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +4 -0
  118. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
  119. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
  120. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
  121. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
  122. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
  123. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
  124. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
  125. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
  126. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
  127. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
  128. package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
  129. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
  130. package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
  131. package/types/src/Color/docs/examples/Null.d.ts +4 -0
  132. package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
  133. package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
  134. package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
  135. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
  136. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
  137. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
  138. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
  139. package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
  140. package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
  141. package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
  142. package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
  143. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
  144. package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
  145. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +4 -0
  146. package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
  147. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
  148. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
  149. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
  150. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
  151. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
  152. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
  153. package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
  154. package/types/src/Date/docs/examples/Basic.d.ts +3 -0
  155. package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
  156. package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
  157. package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
  158. package/types/src/Date/docs/examples/Error.d.ts +3 -0
  159. package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
  160. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
  161. package/types/src/DefinitionList/DefinitionList.d.ts +22 -4
  162. package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
  163. package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
  164. package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
  165. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
  166. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
  167. package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
  168. package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
  169. package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
  170. package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
  171. package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
  172. package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
  173. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
  174. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
  175. package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
  176. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
  177. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
  178. package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
  179. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
  180. package/types/src/DualListbox/Option.d.ts +1 -1
  181. package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
  182. package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
  183. package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
  184. package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
  185. package/types/src/File/docs/examples/Disabled.d.ts +3 -0
  186. package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
  187. package/types/src/File/docs/examples/Error.d.ts +4 -0
  188. package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
  189. package/types/src/File/docs/examples/Multi.d.ts +4 -0
  190. package/types/src/File/docs/examples/Progress.d.ts +4 -0
  191. package/types/src/File/docs/examples/Single.d.ts +4 -0
  192. package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
  193. package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
  194. package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
  195. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
  196. package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
  197. package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
  198. package/types/src/Image/docs/examples/Basic.d.ts +3 -0
  199. package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
  200. package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
  201. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
  202. package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
  203. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  204. package/types/src/Link/docs/examples/Basic.d.ts +4 -0
  205. package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
  206. package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
  207. package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
  208. package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
  209. package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
  210. package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
  211. package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
  212. package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
  213. package/types/src/Menu/Item.d.ts +27 -10
  214. package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
  215. package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
  216. package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
  217. package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
  218. package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
  219. package/types/src/Menu/docs/examples/Disabled.d.ts +3 -0
  220. package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
  221. package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
  222. package/types/src/Menu/docs/examples/Links.d.ts +4 -0
  223. package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
  224. package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
  225. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
  226. package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
  227. package/types/src/Message/docs/examples/Basic.d.ts +3 -0
  228. package/types/src/Message/docs/examples/Content.d.ts +4 -0
  229. package/types/src/Message/docs/examples/Fill.d.ts +3 -0
  230. package/types/src/Message/docs/examples/Removable.d.ts +3 -0
  231. package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
  232. package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
  233. package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
  234. package/types/src/Modal/Modal.d.ts +10 -3
  235. package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
  236. package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
  237. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
  238. package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
  239. package/types/src/Monogram/Monogram.d.ts +4 -0
  240. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
  241. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
  242. package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
  243. package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
  244. package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
  245. package/types/src/Multiselect/Compact.d.ts +1 -1
  246. package/types/src/Multiselect/Multiselect.d.ts +1 -1
  247. package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
  248. package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
  249. package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
  250. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
  251. package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
  252. package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
  253. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
  254. package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
  255. package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
  256. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  257. package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
  258. package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
  259. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
  260. package/types/src/Number/docs/examples/Basic.d.ts +4 -0
  261. package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
  262. package/types/src/Number/docs/examples/Error.d.ts +3 -0
  263. package/types/src/Number/docs/examples/Limits.d.ts +4 -0
  264. package/types/src/Number/docs/examples/Locale.d.ts +4 -0
  265. package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
  266. package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
  267. package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
  268. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
  269. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
  270. package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
  271. package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
  272. package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
  273. package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
  274. package/types/src/Popover/PopoverProvider.d.ts +9 -1
  275. package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
  276. package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
  277. package/types/src/Progress/docs/examples/Type.d.ts +3 -0
  278. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  279. package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
  280. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
  281. package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
  282. package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
  283. package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
  284. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
  285. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
  286. package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
  287. package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
  288. package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
  289. package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
  290. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
  291. package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
  292. package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
  293. package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
  294. package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
  295. package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
  296. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
  297. package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +4 -0
  298. package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
  299. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
  300. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
  301. package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
  302. package/types/src/Search/docs/examples/Loading.d.ts +4 -0
  303. package/types/src/Search/docs/examples/Options.d.ts +4 -0
  304. package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
  305. package/types/src/Select/SelectAllOption.d.ts +5 -10
  306. package/types/src/Select/SelectBase.d.ts +1 -1
  307. package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
  308. package/types/src/Select/docs/examples/Basic.d.ts +4 -0
  309. package/types/src/Select/docs/examples/Children.d.ts +4 -0
  310. package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
  311. package/types/src/Select/docs/examples/Error.d.ts +3 -0
  312. package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
  313. package/types/src/Select/docs/examples/Filter.d.ts +4 -0
  314. package/types/src/Select/docs/examples/Headings.d.ts +3 -0
  315. package/types/src/Select/docs/examples/Icons.d.ts +3 -0
  316. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
  317. package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
  318. package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
  319. package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
  320. package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
  321. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
  322. package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
  323. package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
  324. package/types/src/Slider/docs/examples/Controlled.d.ts +4 -0
  325. package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
  326. package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
  327. package/types/src/Slider/docs/examples/Error.d.ts +3 -0
  328. package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
  329. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
  330. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
  331. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
  332. package/types/src/SplitButton/SplitButton.d.ts +6 -1
  333. package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
  334. package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
  335. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
  336. package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
  337. package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
  338. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
  339. package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
  340. package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
  341. package/types/src/Switch/docs/examples/Basic.d.ts +4 -0
  342. package/types/src/Switch/docs/examples/Disabled.d.ts +3 -0
  343. package/types/src/Switch/docs/examples/Error.d.ts +3 -0
  344. package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
  345. package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
  346. package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
  347. package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
  348. package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
  349. package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
  350. package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
  351. package/types/src/TabBar/tabBarUtils.d.ts +4 -0
  352. package/types/src/TabBar/types.d.ts +5 -0
  353. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
  354. package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
  355. package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
  356. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
  357. package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
  358. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
  359. package/types/src/Table/docs/examples/Basic.d.ts +3 -0
  360. package/types/src/Table/docs/examples/Click.d.ts +4 -0
  361. package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
  362. package/types/src/Table/docs/examples/Complex.d.ts +4 -0
  363. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
  364. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
  365. package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
  366. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
  367. package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
  368. package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
  369. package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
  370. package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
  371. package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
  372. package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
  373. package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
  374. package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
  375. package/types/src/Text/docs/examples/Basic.d.ts +4 -0
  376. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
  377. package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
  378. package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
  379. package/types/src/Text/docs/examples/Error.d.ts +4 -0
  380. package/types/src/Text/docs/examples/Inline.d.ts +4 -0
  381. package/types/src/Text/docs/examples/Password.d.ts +4 -0
  382. package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
  383. package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
  384. package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
  385. package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
  386. package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
  387. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
  388. package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
  389. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
  390. package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
  391. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
  392. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
  393. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
  394. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
  395. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
  396. package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
  397. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
  398. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
  399. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
  400. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
  401. package/types/src/Tree/Item.d.ts +4 -4
  402. package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
  403. package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
  404. package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
  405. package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
  406. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
  407. package/useResizeObserver.js +2 -2
  408. package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
package/SidePanel.js CHANGED
@@ -102,16 +102,16 @@
102
102
  componentId: "mtbcuz-3"
103
103
  })([ "", ";left:0;bottom:0;width:100vw;" ], m);
104
104
  // CONCATENATED MODULE: ./src/SidePanel/SidePanel.tsx
105
- function S(e) {
105
+ function O(e) {
106
106
  "@babel/helpers - typeof";
107
- return S = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
107
+ return O = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
108
108
  return typeof e;
109
109
  } : function(e) {
110
110
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
111
- }, S(e);
111
+ }, O(e);
112
112
  }
113
- function O() {
114
- return O = Object.assign ? Object.assign.bind() : function(e) {
113
+ function S() {
114
+ return S = Object.assign ? Object.assign.bind() : function(e) {
115
115
  for (var t = 1; t < arguments.length; t++) {
116
116
  var r = arguments[t];
117
117
  for (var n in r) {
@@ -119,7 +119,7 @@
119
119
  }
120
120
  }
121
121
  return e;
122
- }, O.apply(null, arguments);
122
+ }, S.apply(null, arguments);
123
123
  }
124
124
  function w(e, t) {
125
125
  var r = Object.keys(e);
@@ -152,39 +152,39 @@
152
152
  }
153
153
  function C(e) {
154
154
  var t = k(e, "string");
155
- return "symbol" == S(t) ? t : t + "";
155
+ return "symbol" == O(t) ? t : t + "";
156
156
  }
157
157
  function k(e, t) {
158
- if ("object" != S(e) || !e) return e;
158
+ if ("object" != O(e) || !e) return e;
159
159
  var r = e[Symbol.toPrimitive];
160
160
  if (void 0 !== r) {
161
161
  var n = r.call(e, t || "default");
162
- if ("object" != S(n)) return n;
162
+ if ("object" != O(n)) return n;
163
163
  throw new TypeError("@@toPrimitive must return a primitive value.");
164
164
  }
165
165
  return ("string" === t ? String : Number)(e);
166
166
  }
167
167
  function A(e, t) {
168
- return _(e) || M(e, t) || T(e, t) || N();
168
+ return M(e) || E(e, t) || T(e, t) || N();
169
169
  }
170
170
  function N() {
171
171
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
172
172
  }
173
173
  function T(e, t) {
174
174
  if (e) {
175
- if ("string" == typeof e) return E(e, t);
175
+ if ("string" == typeof e) return x(e, t);
176
176
  var r = {}.toString.call(e).slice(8, -1);
177
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? E(e, t) : void 0;
177
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? x(e, t) : void 0;
178
178
  }
179
179
  }
180
- function E(e, t) {
180
+ function x(e, t) {
181
181
  (null == t || t > e.length) && (t = e.length);
182
182
  for (var r = 0, n = Array(t); r < t; r++) {
183
183
  n[r] = e[r];
184
184
  }
185
185
  return n;
186
186
  }
187
- function M(e, t) {
187
+ function E(e, t) {
188
188
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
189
189
  if (null != r) {
190
190
  var n, o, i, a, l = [], u = !0, s = !1;
@@ -206,26 +206,26 @@
206
206
  return l;
207
207
  }
208
208
  }
209
- function _(e) {
209
+ function M(e) {
210
210
  if (Array.isArray(e)) return e;
211
211
  }
212
- function q(e, t) {
212
+ function _(e, t) {
213
213
  if (null == e) return {};
214
- var r, n, o = x(e, t);
214
+ var r, n, o = q(e, t);
215
215
  if (Object.getOwnPropertySymbols) {
216
216
  var i = Object.getOwnPropertySymbols(e);
217
217
  for (n = 0; n < i.length; n++) {
218
- r = i[n], t.includes(r) || {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
218
+ r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
219
219
  }
220
220
  }
221
221
  return o;
222
222
  }
223
- function x(e, t) {
223
+ function q(e, t) {
224
224
  if (null == e) return {};
225
225
  var r = {};
226
226
  for (var n in e) {
227
227
  if ({}.hasOwnProperty.call(e, n)) {
228
- if (t.includes(n)) continue;
228
+ if (-1 !== t.indexOf(n)) continue;
229
229
  r[n] = e[n];
230
230
  }
231
231
  }
@@ -257,9 +257,9 @@
257
257
  bottom: g
258
258
  };
259
259
  function z(e) {
260
- var t = e.children, o = e.dockPosition, i = o === void 0 ? "right" : o, a = e.elementRef, u = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, y = e.onRequestClose, d = e.open, p = e.outerClassName, m = e.outerStyle, b = e.useLayerForClickAway, v = b === void 0 ? true : b, h = q(e, [ "children", "dockPosition", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "onRequestClose", "open", "outerClassName", "outerStyle", "useLayerForClickAway" ]);
260
+ var t = e.children, o = e.dockPosition, i = o === void 0 ? "right" : o, a = e.elementRef, u = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, y = e.onRequestClose, d = e.open, p = e.outerClassName, m = e.outerStyle, b = e.useLayerForClickAway, v = b === void 0 ? true : b, h = _(e, [ "children", "dockPosition", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "onRequestClose", "open", "outerClassName", "outerStyle", "useLayerForClickAway" ]);
261
261
  // @docs-props-type SidePanelPropsBase
262
- var g = (0, r.useState)(false), S = A(g, 2), w = S[0], j = S[1];
262
+ var g = (0, r.useState)(false), O = A(g, 2), w = O[0], j = O[1];
263
263
  var C = s()(d);
264
264
  (0, r.useEffect)((function() {
265
265
  // prevOpen starts undefined, and we don't want to make the comparison in that situation
@@ -286,23 +286,23 @@
286
286
  var T = (0, r.useMemo)((function() {
287
287
  return P(P({}, N), c);
288
288
  }), [ N, c ]);
289
- var E = (0, r.useCallback)((function() {
289
+ var x = (0, r.useCallback)((function() {
290
290
  j(false);
291
291
  f === null || f === void 0 ? void 0 : f();
292
292
  }), [ f ]);
293
- var M = (0, r.useMemo)((function() {
293
+ var E = (0, r.useMemo)((function() {
294
294
  return F[i];
295
295
  }), [ i ]);
296
- var _ = (0, r.useCallback)((function() {
296
+ var M = (0, r.useCallback)((function() {
297
297
 
298
- return n().createElement(M, O({
298
+ return n().createElement(E, S({
299
299
  animateOnMount: true,
300
300
  animation: R[i],
301
301
  "data-test": "side-panel",
302
302
  elementRef: a,
303
303
  innerClassName: u,
304
304
  innerStyle: T,
305
- onAnimationEnd: E,
305
+ onAnimationEnd: x,
306
306
  open: d,
307
307
  outerClassName: p,
308
308
  outerStyle: m,
@@ -311,13 +311,13 @@
311
311
  tabIndex: -1,
312
312
  takeFocus: true
313
313
  }, h), t);
314
- }), [ t, i, a, T, E, u, d, p, m, M, h ]);
314
+ }), [ t, i, a, T, x, u, d, p, m, E, h ]);
315
315
 
316
316
  return n().createElement(l(), {
317
317
  childrenInAnimation: w,
318
318
  onRequestClose: y,
319
319
  open: d,
320
- renderModal: _,
320
+ renderModal: M,
321
321
  scrim: k
322
322
  });
323
323
  }
package/Slider.js CHANGED
@@ -189,7 +189,7 @@
189
189
  * to avoid further issues with variable interpolation given the
190
190
  * complexity of the multiple radial gradient backgrounds. This also
191
191
  * allows us not to pass in StyledSliderTypes to StyledInput */ var A = (0, m.css)([ "", "{&::after{content:'';}}" ], /* sc-sel */ x);
192
- var T = b().div.withConfig({
192
+ var O = b().div.withConfig({
193
193
  displayName: "SliderStyles__StyledInput",
194
194
  componentId: "sc-16ooit4-5"
195
195
  })([ "width:100%;min-width:200px;display:flex;align-items:center;flex:1 0 0;position:relative;cursor:default;height:", ";max-width:100%;", " &:hover{", "{border-color:", ";}}", "" ], p.variables.inputHeight, (function(e) {
@@ -205,7 +205,7 @@
205
205
  }));
206
206
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
207
207
  /* eslint-disable @typescript-eslint/no-empty-function */
208
- var V = {
208
+ var T = {
209
209
  body: {
210
210
  appendChild: function e() {
211
211
  return [];
@@ -259,16 +259,16 @@
259
259
  search: ""
260
260
  }
261
261
  };
262
- function O() {
263
- var e = typeof document !== "undefined" ? document : V;
262
+ function V() {
263
+ var e = typeof document !== "undefined" ? document : T;
264
264
  return e;
265
265
  }
266
- var P = O();
266
+ var P = V();
267
267
  /* harmony default export */ const B = /* unused pure expression or super */ null && P;
268
268
  // CONCATENATED MODULE: ./src/utils/ssrWindow.ts
269
269
  /* eslint-disable @typescript-eslint/no-empty-function */
270
270
  var _ = {
271
- document: V,
271
+ document: T,
272
272
  navigator: {
273
273
  userAgent: ""
274
274
  },
@@ -410,7 +410,7 @@
410
410
  if (Object.getOwnPropertySymbols) {
411
411
  var i = Object.getOwnPropertySymbols(e);
412
412
  for (n = 0; n < i.length; n++) {
413
- t = i[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (a[t] = e[t]);
413
+ t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (a[t] = e[t]);
414
414
  }
415
415
  }
416
416
  return a;
@@ -420,7 +420,7 @@
420
420
  var t = {};
421
421
  for (var n in e) {
422
422
  if ({}.hasOwnProperty.call(e, n)) {
423
- if (r.includes(n)) continue;
423
+ if (-1 !== r.indexOf(n)) continue;
424
424
  t[n] = e[n];
425
425
  }
426
426
  }
@@ -521,7 +521,7 @@
521
521
  return (a - n) / i * 100;
522
522
  };
523
523
  function re(e) {
524
- var r = e.defaultValue, a = e.describedBy, i = e.disabled, o = e.displayValue, l = e.elementRef, u = e.error, c = e.inline, f = e.labelledBy, m = e.max, b = m === void 0 ? 5 : m, p = e.maxLabel, h = e.min, y = h === void 0 ? 1 : h, g = e.minLabel, w = e.name, S = e.onChange, A = e.required, V = e.step, O = V === void 0 ? 1 : V, P = e.stepMarks, B = P === void 0 ? "focus" : P, _ = e.thumbRef, j = e.value, q = U(e, [ "defaultValue", "describedBy", "disabled", "displayValue", "elementRef", "error", "inline", "labelledBy", "max", "maxLabel", "min", "minLabel", "name", "onChange", "required", "step", "stepMarks", "thumbRef", "value" ]);
524
+ var r = e.defaultValue, a = e.describedBy, i = e.disabled, o = e.displayValue, l = e.elementRef, u = e.error, c = e.inline, f = e.labelledBy, m = e.max, b = m === void 0 ? 5 : m, p = e.maxLabel, h = e.min, y = h === void 0 ? 1 : h, g = e.minLabel, w = e.name, S = e.onChange, A = e.required, T = e.step, V = T === void 0 ? 1 : T, P = e.stepMarks, B = P === void 0 ? "focus" : P, _ = e.thumbRef, j = e.value, q = U(e, [ "defaultValue", "describedBy", "disabled", "displayValue", "elementRef", "error", "inline", "labelledBy", "max", "maxLabel", "min", "minLabel", "name", "onChange", "required", "step", "stepMarks", "thumbRef", "value" ]);
525
525
  // @docs-props-type SliderPropsBase
526
526
  var D = v()({
527
527
  componentName: "Slider",
@@ -537,9 +537,9 @@
537
537
  value: (b - y) / 2,
538
538
  min: y,
539
539
  max: b,
540
- step: O
540
+ step: V
541
541
  }) : r;
542
- }), [ D, r, b, y, O ]);
542
+ }), [ D, r, b, y, V ]);
543
543
  var fe = (0, t.useState)(D ? j : de), ve = I(fe, 2), me = ve[0], be = ve[1];
544
544
  var pe = (0, t.useCallback)((function(e, r) {
545
545
  var t = r.newValue;
@@ -574,13 +574,13 @@
574
574
  position: r,
575
575
  max: b,
576
576
  min: y,
577
- step: O
577
+ step: V
578
578
  });
579
579
  pe(e, {
580
580
  newValue: t
581
581
  });
582
582
  }
583
- }), [ b, y, pe, ie, O ]);
583
+ }), [ b, y, pe, ie, V ]);
584
584
  var Ce = (0, t.useCallback)((function(e) {
585
585
  var r = me;
586
586
  if (r !== undefined) {
@@ -589,13 +589,13 @@
589
589
  var a = G({
590
590
  direction: "forward",
591
591
  min: y,
592
- step: O,
592
+ step: V,
593
593
  value: r
594
594
  });
595
595
  var i = G({
596
596
  direction: "backward",
597
597
  min: y,
598
- step: O,
598
+ step: V,
599
599
  value: r
600
600
  });
601
601
  if (t === "ArrowRight") {
@@ -619,14 +619,14 @@
619
619
  r = Q({
620
620
  max: b,
621
621
  min: y,
622
- step: O,
622
+ step: V,
623
623
  value: r
624
624
  });
625
625
  pe(e, {
626
626
  newValue: r
627
627
  });
628
628
  }
629
- }), [ b, y, pe, O, me ]);
629
+ }), [ b, y, pe, V, me ]);
630
630
  var xe = (0, t.useCallback)((function(e) {
631
631
  e.preventDefault();
632
632
  se === null || se === void 0 ? void 0 : se.focus();
@@ -649,14 +649,14 @@
649
649
  position: r,
650
650
  min: y,
651
651
  max: b,
652
- step: O
652
+ step: V
653
653
  });
654
654
  pe(e, {
655
655
  newValue: t
656
656
  });
657
657
  }
658
658
  }
659
- }), [ F, b, y, pe, ie, O ]);
659
+ }), [ F, b, y, pe, ie, V ]);
660
660
  var Ae = (0, t.useCallback)((function() {
661
661
  H(false);
662
662
  te(false);
@@ -670,17 +670,17 @@
670
670
  be(j);
671
671
  }
672
672
  }), [ D, j ]);
673
- var Te = i && "disabled" || u && "error" || "default";
674
- var Ve = ee({
673
+ var Oe = i && "disabled" || u && "error" || "default";
674
+ var Te = ee({
675
675
  value: me,
676
676
  min: y,
677
677
  max: b
678
678
  });
679
- var Oe = O ? Z({
679
+ var Ve = V ? Z({
680
680
  max: b,
681
681
  min: y,
682
682
  sliderBar: ie,
683
- step: O
683
+ step: V
684
684
  }) : undefined;
685
685
  /* eslint-disable jsx-a11y/no-static-element-interactions */
686
686
  return n().createElement(C, N({
@@ -700,17 +700,17 @@
700
700
  })), g !== null && n().createElement($, {
701
701
  "data-test": "min-label",
702
702
  $disabled: i
703
- }, g || y), n().createElement(T, {
703
+ }, g || y), n().createElement(O, {
704
704
  onClick: i ? undefined : Se,
705
- $state: Te,
705
+ $state: Oe,
706
706
  $stepAppearance: B
707
707
  }, n().createElement(x, {
708
708
  "aria-required": A,
709
709
  "data-test": "bar",
710
710
  ref: ge,
711
- $thumbPosition: Ve,
712
- $stepWidth: Oe,
713
- $state: Te
711
+ $thumbPosition: Te,
712
+ $stepWidth: Ve,
713
+ $state: Oe
714
714
  }), n().createElement(k, {
715
715
  "aria-describedby": a,
716
716
  "aria-labelledby": f,
@@ -728,8 +728,8 @@
728
728
  ref: we,
729
729
  role: "slider",
730
730
  disabled: i,
731
- $thumbPosition: Ve,
732
- $state: Te
731
+ $thumbPosition: Te,
732
+ $state: Oe
733
733
  }), n().createElement(d(), {
734
734
  open: re,
735
735
  anchor: se,
package/SlidingPanels.js CHANGED
@@ -61,7 +61,7 @@
61
61
  e.r(n);
62
62
  // EXPORTS
63
63
  e.d(n, {
64
- Panel: () => /* reexport */ I,
64
+ Panel: () => /* reexport */ A,
65
65
  default: () => /* reexport */ L
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
@@ -123,12 +123,12 @@
123
123
  }, m.apply(null, arguments);
124
124
  }
125
125
  function b(e, n) {
126
- return j(e) || S(e, n) || O(e, n) || g();
126
+ return j(e) || S(e, n) || g(e, n) || O();
127
127
  }
128
- function g() {
128
+ function O() {
129
129
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
130
130
  }
131
- function O(e, n) {
131
+ function g(e, n) {
132
132
  if (e) {
133
133
  if ("string" == typeof e) return h(e, n);
134
134
  var r = {}.toString.call(e).slice(8, -1);
@@ -173,7 +173,7 @@
173
173
  if (Object.getOwnPropertySymbols) {
174
174
  var i = Object.getOwnPropertySymbols(e);
175
175
  for (t = 0; t < i.length; t++) {
176
- r = i[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
176
+ r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
177
177
  }
178
178
  }
179
179
  return o;
@@ -183,13 +183,13 @@
183
183
  var r = {};
184
184
  for (var t in e) {
185
185
  if ({}.hasOwnProperty.call(e, t)) {
186
- if (n.includes(t)) continue;
186
+ if (-1 !== n.indexOf(t)) continue;
187
187
  r[t] = e[t];
188
188
  }
189
189
  }
190
190
  return r;
191
191
  }
192
- var E = {
192
+ var x = {
193
193
  children: a().node,
194
194
  elementRef: a().oneOfType([ a().func, a().object ]),
195
195
  /** @private */
@@ -200,7 +200,7 @@
200
200
  };
201
201
  /**
202
202
  * Container for arbitrary content.
203
- */ function A(e) {
203
+ */ function E(e) {
204
204
  var n = e.children, o = e.elementRef, i = e.onMount, a = e.onUnmount, u = e.panelId, l = w(e, [ "children", "elementRef", "onMount", "onUnmount", "panelId" ]);
205
205
  // @docs-props-type PanelPropsBase
206
206
  var c = (0, r.useState)(null), f = b(c, 2), s = f[0], y = f[1];
@@ -222,16 +222,16 @@
222
222
  ref: d
223
223
  }), n);
224
224
  }
225
- A.propTypes = E;
226
- /* harmony default export */ const I = A;
225
+ E.propTypes = x;
226
+ /* harmony default export */ const A = E;
227
227
  // CONCATENATED MODULE: ./src/SlidingPanels/SlidingPanels.tsx
228
- function x(e) {
228
+ function I(e) {
229
229
  "@babel/helpers - typeof";
230
- return x = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
230
+ return I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
231
231
  return typeof e;
232
232
  } : function(e) {
233
233
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
234
- }, x(e);
234
+ }, I(e);
235
235
  }
236
236
  function C() {
237
237
  return C = Object.assign ? Object.assign.bind() : function(e) {
@@ -295,7 +295,7 @@
295
295
  if (Object.getOwnPropertySymbols) {
296
296
  var i = Object.getOwnPropertySymbols(e);
297
297
  for (t = 0; t < i.length; t++) {
298
- r = i[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
298
+ r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
299
299
  }
300
300
  }
301
301
  return o;
@@ -305,7 +305,7 @@
305
305
  var r = {};
306
306
  for (var t in e) {
307
307
  if ({}.hasOwnProperty.call(e, t)) {
308
- if (n.includes(t)) continue;
308
+ if (-1 !== n.indexOf(t)) continue;
309
309
  r[t] = e[t];
310
310
  }
311
311
  }
@@ -342,14 +342,14 @@
342
342
  }
343
343
  function $(e) {
344
344
  var n = W(e, "string");
345
- return "symbol" == x(n) ? n : n + "";
345
+ return "symbol" == I(n) ? n : n + "";
346
346
  }
347
347
  function W(e, n) {
348
- if ("object" != x(e) || !e) return e;
348
+ if ("object" != I(e) || !e) return e;
349
349
  var r = e[Symbol.toPrimitive];
350
350
  if (void 0 !== r) {
351
351
  var t = r.call(e, n || "default");
352
- if ("object" != x(t)) return t;
352
+ if ("object" != I(t)) return t;
353
353
  throw new TypeError("@@toPrimitive must return a primitive value.");
354
354
  }
355
355
  return ("string" === n ? String : Number)(e);
@@ -430,9 +430,9 @@
430
430
  function K(e) {
431
431
  var n = e.activePanelId, i = e.children, a = e.elementRef, l = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, s = e.outerClassName, y = e.outerStyle, v = e.transition, p = v === void 0 ? "forward" : v, m = U(e, [ "activePanelId", "children", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "outerClassName", "outerStyle", "transition" ]);
432
432
  // @docs-props-type SlidingPanelsPropsBase
433
- var b = (0, r.useState)(0), g = M(b, 2), O = g[0], h = g[1];
433
+ var b = (0, r.useState)(0), O = M(b, 2), g = O[0], h = O[1];
434
434
  var S = (0, r.useState)([]), j = M(S, 2), w = j[0], P = j[1];
435
- var E = (0, r.useState)({}), A = M(E, 2), I = A[0], x = A[1];
435
+ var x = (0, r.useState)({}), E = M(x, 2), A = E[0], I = E[1];
436
436
  var N = (0, o.useSpringRef)();
437
437
  var T = (0, r.useMemo)((function() {
438
438
  return r.Children.toArray(i).filter(r.isValidElement);
@@ -443,13 +443,13 @@
443
443
  * In this case, useAnimationTransition will only know to shift the leaving panel by the width of the arriving panel,
444
444
  * which would result in seeing part of the leaving panel's content on screen at the same time as the arriving panel's content.
445
445
  */ var q = (0, r.useMemo)((function() {
446
- return H(I);
447
- }), [ I ]);
446
+ return H(A);
447
+ }), [ A ]);
448
448
  /* determines what our transform translateX will look like based on is it transitioning forward or backward */ var R = (0,
449
449
  r.useMemo)((function() {
450
450
  return G(q, p);
451
451
  }), [ q, p ]);
452
- var k = (0, u.useAnimationTransition)(O, B(B(B({
452
+ var k = (0, u.useAnimationTransition)(g, B(B(B({
453
453
  ref: N
454
454
  }, F), R), {}, {
455
455
  onRest: function e() {
@@ -459,11 +459,11 @@
459
459
  (0, r.useEffect)((function() {
460
460
  /* if it can't find activePanelId it will set currentPanelIndex to -1 */
461
461
  if (false) {}
462
- }), [ O ]);
462
+ }), [ g ]);
463
463
  (0, r.useEffect)((function() {
464
464
  /* starts animation */
465
465
  N.start();
466
- }), [ N, O ]);
466
+ }), [ N, g ]);
467
467
  (0, r.useEffect)((function() {
468
468
  /* sets the currentPanelIndex in state whenever activePanelId or children changes */
469
469
  var e = T.findIndex((function(e) {
@@ -474,13 +474,13 @@
474
474
  }), [ n, T ]);
475
475
  var _ = (0, r.useCallback)((function(e, n) {
476
476
  if (e != null && n != null) {
477
- x((function(r) {
477
+ I((function(r) {
478
478
  return B(B({}, r), {}, V({}, n, e));
479
479
  }));
480
480
  }
481
481
  }), []);
482
482
  var D = (0, r.useCallback)((function(e) {
483
- x((function(n) {
483
+ I((function(n) {
484
484
  var r = B({}, n);
485
485
  delete r[e];
486
486
  return r;
@@ -515,7 +515,7 @@
515
515
  })));
516
516
  }
517
517
  K.propTypes = z;
518
- K.Panel = I;
518
+ K.Panel = A;
519
519
  /* harmony default export */ const L = K;
520
520
  // CONCATENATED MODULE: ./src/SlidingPanels/index.ts
521
521
  module.exports = n;