@splunk/react-ui 4.43.0 → 5.0.0-beta.2

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 (631) hide show
  1. package/Accordion.js +87 -109
  2. package/Animation.js +48 -31
  3. package/Avatar.d.ts +2 -0
  4. package/Avatar.js +478 -0
  5. package/Box.js +8 -8
  6. package/Breadcrumbs.js +45 -49
  7. package/Button.js +144 -399
  8. package/ButtonGroup.js +22 -26
  9. package/ButtonSimple.js +239 -605
  10. package/CHANGELOG.md +4 -0
  11. package/CHANGELOG.v5.mdx +195 -0
  12. package/Calendar.js +55 -68
  13. package/Card.js +162 -200
  14. package/Chip.js +108 -96
  15. package/Clickable.js +174 -310
  16. package/Code.js +393 -422
  17. package/CollapsiblePanel.js +439 -601
  18. package/Color.js +727 -967
  19. package/ColumnLayout.js +190 -234
  20. package/ComboBox.js +147 -135
  21. package/ControlGroup.js +502 -531
  22. package/Date.js +315 -416
  23. package/DefinitionList.js +128 -140
  24. package/Dropdown.js +201 -358
  25. package/DualListbox.js +26 -26
  26. package/File.js +479 -558
  27. package/FormRows.js +339 -569
  28. package/Heading.js +53 -99
  29. package/Image.js +254 -305
  30. package/JSONTree.js +105 -107
  31. package/Layer.js +187 -269
  32. package/{CloseButton.js → Layout.js} +39 -61
  33. package/Link.js +91 -244
  34. package/List.js +68 -74
  35. package/MIGRATION.v5.mdx +428 -0
  36. package/Markdown.js +439 -385
  37. package/Menu.js +383 -741
  38. package/Message.js +150 -322
  39. package/MessageBar.js +15 -15
  40. package/Modal.js +444 -587
  41. package/Monogram.js +1 -1
  42. package/Multiselect.js +1207 -1256
  43. package/NonInteractiveCheckbox.js +189 -0
  44. package/Number.js +495 -604
  45. package/Paginator.js +294 -406
  46. package/Paragraph.js +12 -15
  47. package/Popover.js +582 -744
  48. package/Progress.js +141 -244
  49. package/Prose.d.ts +2 -0
  50. package/Prose.js +213 -0
  51. package/RadioBar.js +328 -450
  52. package/RadioList.js +132 -216
  53. package/Resize.js +351 -402
  54. package/ResultsMenu.js +255 -358
  55. package/Scroll.js +159 -238
  56. package/Search.js +358 -437
  57. package/Select.js +1097 -1380
  58. package/SidePanel.js +179 -223
  59. package/Slider.js +440 -542
  60. package/SlidingPanels.js +377 -504
  61. package/SplitButton.js +114 -102
  62. package/StaticContent.js +58 -74
  63. package/StepBar.js +193 -258
  64. package/Switch.js +246 -552
  65. package/TabBar.js +438 -622
  66. package/TabLayout.js +197 -251
  67. package/Table.js +2355 -3673
  68. package/Text.js +422 -909
  69. package/TextArea.js +537 -959
  70. package/Tooltip.js +35 -41
  71. package/TransitionOpen.js +296 -336
  72. package/Typography.js +35 -50
  73. package/WaitSpinner.js +93 -124
  74. package/package.json +14 -15
  75. package/stubs-dependencies.d.ts +0 -7
  76. package/stubs-splunkui.d.ts +6 -1
  77. package/types/src/Accordion/Accordion.d.ts +5 -1
  78. package/types/src/Accordion/Panel.d.ts +1 -2
  79. package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
  80. package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
  81. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
  82. package/types/src/Anchor/Anchor.d.ts +1 -1
  83. package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
  84. package/types/src/Animation/Animation.d.ts +12 -2
  85. package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
  86. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
  87. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
  88. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
  89. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
  90. package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
  91. package/types/src/Avatar/Avatar.d.ts +65 -0
  92. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
  93. package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
  94. package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
  95. package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
  96. package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
  97. package/types/src/Avatar/getInitials.d.ts +9 -0
  98. package/types/src/Avatar/index.d.ts +2 -0
  99. package/types/src/Box/Box.d.ts +1 -1
  100. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  101. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  102. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
  103. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
  104. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
  105. package/types/src/Button/Button.d.ts +19 -34
  106. package/types/src/Button/docs/examples/Basic.d.ts +2 -1
  107. package/types/src/Button/docs/examples/Block.d.ts +2 -1
  108. package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
  109. package/types/src/Button/docs/examples/Icons.d.ts +2 -1
  110. package/types/src/Button/docs/examples/Menus.d.ts +2 -1
  111. package/types/src/Button/docs/examples/To.d.ts +2 -1
  112. package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
  113. package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  114. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
  115. package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
  116. package/types/src/ButtonSimple/mixin.d.ts +6 -2
  117. package/types/src/Calendar/Calendar.d.ts +2 -2
  118. package/types/src/Calendar/DateTable.d.ts +1 -1
  119. package/types/src/Calendar/Day.d.ts +1 -1
  120. package/types/src/Calendar/MonthHeader.d.ts +1 -1
  121. package/types/src/Card/Body.d.ts +1 -1
  122. package/types/src/Card/Card.d.ts +4 -9
  123. package/types/src/Card/Footer.d.ts +1 -8
  124. package/types/src/Card/Header.d.ts +2 -2
  125. package/types/src/Card/docs/examples/Actions.d.ts +2 -1
  126. package/types/src/Card/docs/examples/Basic.d.ts +2 -1
  127. package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
  128. package/types/src/Card/docs/examples/Full.d.ts +2 -1
  129. package/types/src/Card/docs/examples/Images.d.ts +2 -1
  130. package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
  131. package/types/src/CardLayout/CardLayout.d.ts +1 -1
  132. package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
  133. package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
  134. package/types/src/Chip/Chip.d.ts +1 -1
  135. package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
  136. package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
  137. package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
  138. package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
  139. package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
  140. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
  141. package/types/src/Clickable/Clickable.d.ts +13 -37
  142. package/types/src/Clickable/NavigationProvider.d.ts +2 -19
  143. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
  144. package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
  145. package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
  146. package/types/src/Code/Code.d.ts +2 -2
  147. package/types/src/Code/docs/examples/Default.d.ts +2 -1
  148. package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
  149. package/types/src/Code/docs/examples/Language.d.ts +2 -1
  150. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
  151. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
  152. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
  153. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
  154. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
  155. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
  156. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
  157. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
  158. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
  159. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
  160. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
  161. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
  162. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
  163. package/types/src/Color/Color.d.ts +24 -59
  164. package/types/src/Color/Palette.d.ts +3 -18
  165. package/types/src/Color/Swatch.d.ts +1 -4
  166. package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
  167. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
  168. package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
  169. package/types/src/Color/docs/examples/Null.d.ts +2 -1
  170. package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
  171. package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
  172. package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
  173. package/types/src/ColumnLayout/Column.d.ts +1 -11
  174. package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
  175. package/types/src/ColumnLayout/Row.d.ts +1 -11
  176. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
  177. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
  178. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
  179. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
  180. package/types/src/ComboBox/ComboBox.d.ts +4 -11
  181. package/types/src/ComboBox/Option.d.ts +2 -2
  182. package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
  183. package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
  184. package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
  185. package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
  186. package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  187. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
  188. package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
  189. package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
  190. package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
  191. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
  192. package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
  193. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
  194. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
  195. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
  196. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
  197. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
  198. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
  199. package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
  200. package/types/src/Date/Date.d.ts +30 -64
  201. package/types/src/Date/Icon.d.ts +2 -1
  202. package/types/src/Date/docs/examples/Basic.d.ts +2 -1
  203. package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
  204. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
  205. package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
  206. package/types/src/Date/docs/examples/Error.d.ts +2 -1
  207. package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
  208. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
  209. package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
  210. package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
  211. package/types/src/DefinitionList/Description.d.ts +3 -3
  212. package/types/src/DefinitionList/Term.d.ts +3 -3
  213. package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
  214. package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
  215. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
  216. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
  217. package/types/src/Divider/Divider.d.ts +1 -1
  218. package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
  219. package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
  220. package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
  221. package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
  222. package/types/src/Dropdown/Dropdown.d.ts +29 -44
  223. package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
  224. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
  225. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
  226. package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
  227. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
  228. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
  229. package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
  230. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -1
  231. package/types/src/DualListbox/DualListbox.d.ts +1 -1
  232. package/types/src/DualListbox/Label.d.ts +1 -1
  233. package/types/src/DualListbox/Listbox.d.ts +1 -1
  234. package/types/src/DualListbox/Option.d.ts +1 -1
  235. package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
  236. package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
  237. package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
  238. package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
  239. package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
  240. package/types/src/EventListener/EventListener.d.ts +1 -1
  241. package/types/src/File/File.d.ts +26 -33
  242. package/types/src/File/Icon.d.ts +2 -1
  243. package/types/src/File/IconCloud.d.ts +2 -1
  244. package/types/src/File/Item.d.ts +1 -1
  245. package/types/src/File/PaperClip.d.ts +2 -1
  246. package/types/src/File/Retry.d.ts +2 -1
  247. package/types/src/File/Trash.d.ts +2 -1
  248. package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
  249. package/types/src/File/docs/examples/Disabled.d.ts +2 -2
  250. package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
  251. package/types/src/File/docs/examples/Error.d.ts +2 -1
  252. package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
  253. package/types/src/File/docs/examples/Multi.d.ts +2 -2
  254. package/types/src/File/docs/examples/Progress.d.ts +2 -1
  255. package/types/src/File/docs/examples/Single.d.ts +2 -2
  256. package/types/src/FormRows/FormRows.d.ts +20 -14
  257. package/types/src/FormRows/Row.d.ts +11 -7
  258. package/types/src/FormRows/SortableList.d.ts +1 -1
  259. package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
  260. package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
  261. package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
  262. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
  263. package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
  264. package/types/src/Heading/Heading.d.ts +8 -20
  265. package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
  266. package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
  267. package/types/src/Heading/index.d.ts +1 -0
  268. package/types/src/Image/Image.d.ts +8 -19
  269. package/types/src/Image/docs/examples/Basic.d.ts +2 -1
  270. package/types/src/Image/icons/Cross.d.ts +2 -1
  271. package/types/src/JSONTree/JSONTree.d.ts +6 -10
  272. package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
  273. package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
  274. package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
  275. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
  276. package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
  277. package/types/src/Layer/Layer.d.ts +8 -25
  278. package/types/src/Layer/LayerStack.d.ts +2 -3
  279. package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
  280. package/types/src/Layout/Layout.d.ts +22 -0
  281. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  282. package/types/src/Layout/index.d.ts +2 -0
  283. package/types/src/Layout/test/Layout.unit.d.ts +1 -0
  284. package/types/src/Link/Link.d.ts +9 -22
  285. package/types/src/Link/docs/examples/Basic.d.ts +2 -1
  286. package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
  287. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
  288. package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
  289. package/types/src/Link/icons/External.d.ts +2 -1
  290. package/types/src/List/Item.d.ts +1 -1
  291. package/types/src/List/List.d.ts +5 -17
  292. package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
  293. package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
  294. package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
  295. package/types/src/Markdown/Markdown.d.ts +50 -59
  296. package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
  297. package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
  298. package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
  299. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
  300. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
  301. package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
  302. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
  303. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
  304. package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
  305. package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
  306. package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
  307. package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
  308. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
  309. package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
  310. package/types/src/Markdown/renderers/index.d.ts +5 -4
  311. package/types/src/Menu/Divider.d.ts +2 -1
  312. package/types/src/Menu/Heading.d.ts +3 -3
  313. package/types/src/Menu/Item.d.ts +14 -47
  314. package/types/src/Menu/Menu.d.ts +4 -19
  315. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
  316. package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
  317. package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
  318. package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
  319. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
  320. package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
  321. package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
  322. package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
  323. package/types/src/Menu/docs/examples/Links.d.ts +2 -1
  324. package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
  325. package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
  326. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
  327. package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
  328. package/types/src/Menu/icons/External.d.ts +2 -1
  329. package/types/src/Message/Message.d.ts +4 -11
  330. package/types/src/Message/Title.d.ts +1 -1
  331. package/types/src/Message/docs/examples/Basic.d.ts +2 -1
  332. package/types/src/Message/docs/examples/Content.d.ts +2 -1
  333. package/types/src/Message/docs/examples/Fill.d.ts +2 -1
  334. package/types/src/Message/docs/examples/Removable.d.ts +2 -1
  335. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  336. package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
  337. package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
  338. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
  339. package/types/src/Modal/Body.d.ts +1 -1
  340. package/types/src/Modal/Footer.d.ts +9 -1
  341. package/types/src/Modal/Header.d.ts +7 -11
  342. package/types/src/Modal/Modal.d.ts +26 -32
  343. package/types/src/Modal/ModalContext.d.ts +2 -0
  344. package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
  345. package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
  346. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
  347. package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
  348. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  349. package/types/src/Monogram/Monogram.d.ts +3 -7
  350. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
  351. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
  352. package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
  353. package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
  354. package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
  355. package/types/src/Multiselect/Compact.d.ts +1 -1
  356. package/types/src/Multiselect/Multiselect.d.ts +2 -2
  357. package/types/src/Multiselect/Normal.d.ts +1 -1
  358. package/types/src/Multiselect/Option.d.ts +1 -1
  359. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
  360. package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
  361. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
  362. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
  363. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
  364. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
  365. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
  366. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
  367. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  368. package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
  369. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
  370. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
  371. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
  372. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
  373. package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
  374. package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
  375. package/types/src/Number/Number.d.ts +46 -61
  376. package/types/src/Number/docs/examples/Basic.d.ts +2 -2
  377. package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
  378. package/types/src/Number/docs/examples/Error.d.ts +2 -1
  379. package/types/src/Number/docs/examples/Limits.d.ts +2 -2
  380. package/types/src/Number/docs/examples/Locale.d.ts +2 -2
  381. package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
  382. package/types/src/Number/utils.d.ts +1 -2
  383. package/types/src/Paginator/Button.d.ts +4 -8
  384. package/types/src/Paginator/Compact.d.ts +1 -1
  385. package/types/src/Paginator/PageControl.d.ts +1 -1
  386. package/types/src/Paginator/PageSelect.d.ts +1 -1
  387. package/types/src/Paginator/PageSeparator.d.ts +2 -1
  388. package/types/src/Paginator/Paginator.d.ts +1 -1
  389. package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
  390. package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
  391. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
  392. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
  393. package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -1
  394. package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
  395. package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
  396. package/types/src/Paragraph/Paragraph.d.ts +3 -1
  397. package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
  398. package/types/src/Paragraph/index.d.ts +1 -0
  399. package/types/src/Popover/Popover.d.ts +38 -69
  400. package/types/src/Popover/PopoverProvider.d.ts +1 -1
  401. package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
  402. package/types/src/Popover/getPlacement.d.ts +1 -1
  403. package/types/src/Progress/Progress.d.ts +3 -4
  404. package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
  405. package/types/src/Progress/docs/examples/Type.d.ts +2 -1
  406. package/types/src/Prose/Prose.d.ts +29 -0
  407. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  408. package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
  409. package/types/src/Prose/index.d.ts +2 -0
  410. package/types/src/Prose/test/Prose.unit.d.ts +1 -0
  411. package/types/src/RadioBar/Option.d.ts +2 -18
  412. package/types/src/RadioBar/RadioBar.d.ts +22 -39
  413. package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
  414. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
  415. package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
  416. package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
  417. package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
  418. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
  419. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
  420. package/types/src/RadioList/Option.d.ts +1 -1
  421. package/types/src/RadioList/RadioList.d.ts +5 -2
  422. package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
  423. package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
  424. package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
  425. package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
  426. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
  427. package/types/src/Resize/Resize.d.ts +15 -23
  428. package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
  429. package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
  430. package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
  431. package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
  432. package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
  433. package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
  434. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  435. package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
  436. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
  437. package/types/src/Scroll/Inner.d.ts +1 -1
  438. package/types/src/Scroll/Scroll.d.ts +37 -27
  439. package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
  440. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
  441. package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
  442. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
  443. package/types/src/Search/Option.d.ts +32 -32
  444. package/types/src/Search/Search.d.ts +4 -4
  445. package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
  446. package/types/src/Search/docs/examples/Loading.d.ts +2 -1
  447. package/types/src/Search/docs/examples/Options.d.ts +2 -1
  448. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
  449. package/types/src/Search/docs/examples/Results.d.ts +2 -1
  450. package/types/src/Select/Option.d.ts +8 -21
  451. package/types/src/Select/OptionBase.d.ts +3 -8
  452. package/types/src/Select/Select.d.ts +62 -22
  453. package/types/src/Select/SelectAllOption.d.ts +1 -1
  454. package/types/src/Select/SelectBase.d.ts +4 -7
  455. package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
  456. package/types/src/Select/docs/examples/Basic.d.ts +2 -1
  457. package/types/src/Select/docs/examples/Children.d.ts +2 -1
  458. package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
  459. package/types/src/Select/docs/examples/Error.d.ts +2 -1
  460. package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
  461. package/types/src/Select/docs/examples/Filter.d.ts +2 -1
  462. package/types/src/Select/docs/examples/Headings.d.ts +2 -1
  463. package/types/src/Select/docs/examples/Icons.d.ts +2 -1
  464. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  465. package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
  466. package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
  467. package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
  468. package/types/src/SidePanel/SidePanel.d.ts +18 -16
  469. package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
  470. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
  471. package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
  472. package/types/src/Slider/Slider.d.ts +32 -46
  473. package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
  474. package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
  475. package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
  476. package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
  477. package/types/src/Slider/docs/examples/Error.d.ts +2 -1
  478. package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
  479. package/types/src/SlidingPanels/Panel.d.ts +23 -20
  480. package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
  481. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
  482. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
  483. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
  484. package/types/src/SplitButton/Item.d.ts +2 -2
  485. package/types/src/SplitButton/SplitButton.d.ts +1 -1
  486. package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
  487. package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
  488. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
  489. package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
  490. package/types/src/StaticContent/StaticContent.d.ts +1 -8
  491. package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
  492. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
  493. package/types/src/StepBar/Step.d.ts +1 -1
  494. package/types/src/StepBar/StepBar.d.ts +2 -3
  495. package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
  496. package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
  497. package/types/src/StepBar/types.d.ts +2 -0
  498. package/types/src/Switch/Switch.d.ts +37 -23
  499. package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
  500. package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
  501. package/types/src/Switch/docs/examples/Error.d.ts +2 -1
  502. package/types/src/TabBar/Tab.d.ts +37 -44
  503. package/types/src/TabBar/TabBar.d.ts +21 -22
  504. package/types/src/TabBar/TabBarContext.d.ts +3 -5
  505. package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
  506. package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
  507. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
  508. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
  509. package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
  510. package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
  511. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
  512. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
  513. package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
  514. package/types/src/TabLayout/Panel.d.ts +6 -1
  515. package/types/src/TabLayout/TabLayout.d.ts +18 -31
  516. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
  517. package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
  518. package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
  519. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
  520. package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
  521. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
  522. package/types/src/Table/Body.d.ts +6 -13
  523. package/types/src/Table/Caption.d.ts +1 -1
  524. package/types/src/Table/Cell.d.ts +40 -18
  525. package/types/src/Table/ExpandButton.d.ts +9 -3
  526. package/types/src/Table/Head.d.ts +40 -40
  527. package/types/src/Table/HeadCell.d.ts +49 -23
  528. package/types/src/Table/HeadDropdownCell.d.ts +58 -51
  529. package/types/src/Table/HeadInner.d.ts +1 -3
  530. package/types/src/Table/HeadTable.d.ts +23 -12
  531. package/types/src/Table/Row.d.ts +7 -14
  532. package/types/src/Table/RowDragCell.d.ts +2 -1
  533. package/types/src/Table/Table.d.ts +13 -19
  534. package/types/src/Table/Toggle.d.ts +1 -3
  535. package/types/src/Table/docs/examples/Basic.d.ts +2 -1
  536. package/types/src/Table/docs/examples/Click.d.ts +2 -1
  537. package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
  538. package/types/src/Table/docs/examples/Complex.d.ts +2 -1
  539. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
  540. package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
  541. package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
  542. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -1
  543. package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
  544. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
  545. package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
  546. package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
  547. package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
  548. package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
  549. package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
  550. package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
  551. package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
  552. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
  553. package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
  554. package/types/src/Text/IconOutlinedHide.d.ts +2 -1
  555. package/types/src/Text/IconOutlinedView.d.ts +2 -1
  556. package/types/src/Text/Text.d.ts +62 -112
  557. package/types/src/Text/docs/examples/Basic.d.ts +2 -1
  558. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
  559. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
  560. package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
  561. package/types/src/Text/docs/examples/Error.d.ts +2 -1
  562. package/types/src/Text/docs/examples/Inline.d.ts +2 -1
  563. package/types/src/Text/docs/examples/Password.d.ts +2 -1
  564. package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
  565. package/types/src/TextArea/TextArea.d.ts +49 -87
  566. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
  567. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
  568. package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
  569. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
  570. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
  571. package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
  572. package/types/src/Tooltip/InfoIcon.d.ts +2 -1
  573. package/types/src/Tooltip/Tooltip.d.ts +9 -3
  574. package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
  575. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
  576. package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
  577. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
  578. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
  579. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
  580. package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
  581. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
  582. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
  583. package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
  584. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
  585. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
  586. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
  587. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
  588. package/types/src/Tree/Tree.d.ts +1 -1
  589. package/types/src/Tree/TreeItem.d.ts +1 -1
  590. package/types/src/Typography/Typography.d.ts +10 -19
  591. package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
  592. package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
  593. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
  594. package/types/src/utils/types.d.ts +1 -0
  595. package/Concertina.d.ts +0 -2
  596. package/Concertina.js +0 -963
  597. package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
  598. package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
  599. package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
  600. package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
  601. package/types/src/Button/icons/External.d.ts +0 -2
  602. package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
  603. package/types/src/CloseButton/CloseButton.d.ts +0 -21
  604. package/types/src/CloseButton/index.d.ts +0 -1
  605. package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
  606. package/types/src/Concertina/Concertina.d.ts +0 -46
  607. package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
  608. package/types/src/Concertina/Heading.d.ts +0 -35
  609. package/types/src/Concertina/Panel.d.ts +0 -59
  610. package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
  611. package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
  612. package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
  613. package/types/src/Concertina/index.d.ts +0 -2
  614. package/types/src/Concertina/types.d.ts +0 -1
  615. package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
  616. package/types/src/Link/docs/examples/Inline.d.ts +0 -2
  617. package/types/src/Message/Link.d.ts +0 -37
  618. package/types/src/Number/IncrementIcon.d.ts +0 -2
  619. package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
  620. package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
  621. package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
  622. package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
  623. package/types/src/Select/icons/Search.d.ts +0 -2
  624. package/types/src/Switch/CheckIcon.d.ts +0 -1
  625. package/types/src/Table/DragHandle.d.ts +0 -12
  626. package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
  627. package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
  628. package/types/src/Text/docs/examples/Search.d.ts +0 -2
  629. package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
  630. package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
  631. package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/Concertina.js DELETED
@@ -1,963 +0,0 @@
1
- /******/ (() => {
2
- // webpackBootstrap
3
- /******/ "use strict";
4
- /******/ // The require scope
5
- /******/ var e = {};
6
- /******/
7
- /************************************************************************/
8
- /******/ /* webpack/runtime/compat get default export */
9
- /******/ (() => {
10
- /******/ // getDefaultExport function for compatibility with non-harmony modules
11
- /******/ e.n = t => {
12
- /******/ var n = t && t.__esModule ?
13
- /******/ () => t["default"]
14
- /******/ : () => t
15
- /******/;
16
- e.d(n, {
17
- a: n
18
- });
19
- /******/ return n;
20
- /******/ };
21
- /******/ })();
22
- /******/
23
- /******/ /* webpack/runtime/define property getters */
24
- /******/ (() => {
25
- /******/ // define getter functions for harmony exports
26
- /******/ e.d = (t, n) => {
27
- /******/ for (var r in n) {
28
- /******/ if (e.o(n, r) && !e.o(t, r)) {
29
- /******/ Object.defineProperty(t, r, {
30
- enumerable: true,
31
- get: n[r]
32
- });
33
- /******/ }
34
- /******/ }
35
- /******/ };
36
- /******/ })();
37
- /******/
38
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
- /******/ (() => {
40
- /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
41
- /******/;
42
- })();
43
- /******/
44
- /******/ /* webpack/runtime/make namespace object */
45
- /******/ (() => {
46
- /******/ // define __esModule on exports
47
- /******/ e.r = e => {
48
- /******/ if (typeof Symbol !== "undefined" && Symbol.toStringTag) {
49
- /******/ Object.defineProperty(e, Symbol.toStringTag, {
50
- value: "Module"
51
- });
52
- /******/ }
53
- /******/ Object.defineProperty(e, "__esModule", {
54
- value: true
55
- });
56
- /******/ };
57
- /******/ })();
58
- /******/
59
- /************************************************************************/ var t = {};
60
- // ESM COMPAT FLAG
61
- e.r(t);
62
- // EXPORTS
63
- e.d(t, {
64
- Panel: () => /* reexport */ xe,
65
- default: () => /* reexport */ Xe
66
- });
67
- // CONCATENATED MODULE: external "react"
68
- const n = require("react");
69
- var r = e.n(n);
70
- // CONCATENATED MODULE: external "prop-types"
71
- const o = require("prop-types");
72
- var i = e.n(o);
73
- // CONCATENATED MODULE: external "lodash/debounce"
74
- const a = require("lodash/debounce");
75
- var l = e.n(a);
76
- // CONCATENATED MODULE: external "lodash/take"
77
- const c = require("lodash/take");
78
- var s = e.n(c);
79
- // CONCATENATED MODULE: external "lodash/takeRight"
80
- const u = require("lodash/takeRight");
81
- var p = e.n(u);
82
- // CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
83
- const f = require("@splunk/react-ui/EventListener");
84
- var d = e.n(f);
85
- // CONCATENATED MODULE: external "lodash/keys"
86
- const b = require("lodash/keys");
87
- var h = e.n(b);
88
- // CONCATENATED MODULE: external "lodash/omit"
89
- const y = require("lodash/omit");
90
- var v = e.n(y);
91
- // CONCATENATED MODULE: external "styled-components"
92
- const g = require("styled-components");
93
- var m = e.n(g);
94
- // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
95
- const w = require("@splunk/react-ui/Clickable");
96
- var O = e.n(w);
97
- // CONCATENATED MODULE: external "@splunk/themes"
98
- const S = require("@splunk/themes");
99
- // CONCATENATED MODULE: ./src/Concertina/HeadingStyles.ts
100
- var k = m()(O()).withConfig({
101
- displayName: "HeadingStyles__StyledClickable",
102
- componentId: "sc-1h92oaj-0"
103
- })([ "display:block;width:100%;cursor:pointer;position:relative;padding:6px ", ";line-height:", ";border-radius:0;color:", ";", " &:focus:not([disabled]){box-shadow:", ";}", "" ], S.variables.spacingLarge, S.variables.lineHeight, S.variables.textColor, (0,
104
- S.pickVariant)("$inner", {
105
- true: (0, g.css)([ "*:not(:first-child) > &&{border-top:2px solid ", ";}*:not(:last-child) > &&{border-bottom:2px solid ", ";}" ], S.variables.backgroundColor, S.variables.backgroundColor),
106
- false: (0, g.css)([ "& + &&{border-top:2px solid ", ";}" ], S.variables.backgroundColor)
107
- }), S.variables.focusShadowInset, (0, S.pickVariant)("$status", {
108
- normal: (0, g.css)([ "background-color:", ";&:hover:not([disabled]){background-color:", ";}" ], (0,
109
- S.pick)({
110
- dark: S.variables.gray45,
111
- light: S.variables.gray96
112
- }), (0, S.pick)({
113
- dark: S.variables.gray30,
114
- light: S.variables.gray92
115
- })),
116
- disabled: (0, g.css)([ "background-color:", ";" ], (0, S.pick)({
117
- dark: S.variables.gray80,
118
- light: S.variables.gray96
119
- })),
120
- error: (0, g.css)([ "background-color:", ";color:", ";&:hover:not([disabled]){background-color:", ";}" ], S.variables.errorColor, S.variables.white, S.variables.errorColorD10),
121
- warning: (0, g.css)([ "background-color:", ";color:", ";&:hover:not([disabled]){background-color:", ";box-shadow:none;}" ], S.variables.warningColor, S.variables.white, S.variables.warningColorD10)
122
- }));
123
- var C = m().span.withConfig({
124
- displayName: "HeadingStyles__StyledHeadingContent",
125
- componentId: "sc-1h92oaj-1"
126
- })([ "display:flex;justify-content:space-between;" ]);
127
- var j = m().span.withConfig({
128
- displayName: "HeadingStyles__StyledDescription",
129
- componentId: "sc-1h92oaj-2"
130
- })([ "font-size:", ";" ], S.variables.fontSizeSmall);
131
- // CONCATENATED MODULE: ./src/Concertina/Heading.tsx
132
- function P(e) {
133
- "@babel/helpers - typeof";
134
- return P = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
135
- return typeof e;
136
- } : function(e) {
137
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
138
- }, P(e);
139
- }
140
- function E() {
141
- return E = Object.assign ? Object.assign.bind() : function(e) {
142
- for (var t = 1; t < arguments.length; t++) {
143
- var n = arguments[t];
144
- for (var r in n) {
145
- ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
146
- }
147
- }
148
- return e;
149
- }, E.apply(null, arguments);
150
- }
151
- function _(e, t) {
152
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
153
- }
154
- function T(e, t) {
155
- for (var n = 0; n < t.length; n++) {
156
- var r = t[n];
157
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
158
- Object.defineProperty(e, A(r.key), r);
159
- }
160
- }
161
- function x(e, t, n) {
162
- return t && T(e.prototype, t), n && T(e, n), Object.defineProperty(e, "prototype", {
163
- writable: !1
164
- }), e;
165
- }
166
- function H(e, t) {
167
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
168
- e.prototype = Object.create(t && t.prototype, {
169
- constructor: {
170
- value: e,
171
- writable: !0,
172
- configurable: !0
173
- }
174
- }), Object.defineProperty(e, "prototype", {
175
- writable: !1
176
- }), t && I(e, t);
177
- }
178
- function I(e, t) {
179
- return I = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
180
- return e.__proto__ = t, e;
181
- }, I(e, t);
182
- }
183
- function R(e) {
184
- var t = z();
185
- return function() {
186
- var n, r = M(e);
187
- if (t) {
188
- var o = M(this).constructor;
189
- n = Reflect.construct(r, arguments, o);
190
- } else n = r.apply(this, arguments);
191
- return q(this, n);
192
- };
193
- }
194
- function q(e, t) {
195
- if (t && ("object" == P(t) || "function" == typeof t)) return t;
196
- if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
197
- return B(e);
198
- }
199
- function B(e) {
200
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
201
- return e;
202
- }
203
- function z() {
204
- try {
205
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
206
- } catch (e) {}
207
- return (z = function t() {
208
- return !!e;
209
- })();
210
- }
211
- function M(e) {
212
- return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
213
- return e.__proto__ || Object.getPrototypeOf(e);
214
- }, M(e);
215
- }
216
- function N(e, t, n) {
217
- return (t = A(t)) in e ? Object.defineProperty(e, t, {
218
- value: n,
219
- enumerable: !0,
220
- configurable: !0,
221
- writable: !0
222
- }) : e[t] = n, e;
223
- }
224
- function A(e) {
225
- var t = W(e, "string");
226
- return "symbol" == P(t) ? t : t + "";
227
- }
228
- function W(e, t) {
229
- if ("object" != P(e) || !e) return e;
230
- var n = e[Symbol.toPrimitive];
231
- if (void 0 !== n) {
232
- var r = n.call(e, t || "default");
233
- if ("object" != P(r)) return r;
234
- throw new TypeError("@@toPrimitive must return a primitive value.");
235
- }
236
- return ("string" === t ? String : Number)(e);
237
- }
238
- var D = {
239
- children: i().node.isRequired,
240
- description: i().node,
241
- /** @private */
242
- index: i().number.isRequired,
243
- /** @private */
244
- onClick: i().func,
245
- /** @private */
246
- panelId: i().string,
247
- /** @private */
248
- position: i().oneOf([ "top", "inner", "bottom" ]),
249
- status: i().oneOf([ "normal", "warning", "error", "disabled" ])
250
- };
251
- var $ = {
252
- position: "inner"
253
- };
254
- var U = function(e) {
255
- H(n, e);
256
- var t = R(n);
257
- function n() {
258
- var e;
259
- _(this, n);
260
- for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
261
- o[i] = arguments[i];
262
- }
263
- e = t.call.apply(t, [ this ].concat(o));
264
- N(B(e), "container", null);
265
- N(B(e), "handleClick", (function(t) {
266
- var n, r;
267
- (n = (r = e.props).onClick) === null || n === void 0 ? void 0 : n.call(r, t, {
268
- index: e.props.index,
269
- panelId: e.props.panelId,
270
- position: e.props.position
271
- });
272
- }));
273
- N(B(e), "handleMount", (function(t) {
274
- e.container = t;
275
- }));
276
- return e;
277
- }
278
- x(n, [ {
279
- key: "focus",
280
- // eslint-disable-next-line react/no-unused-class-component-methods
281
- value: function e() {
282
- var t;
283
- (t = this.container) === null || t === void 0 ? void 0 : t.focus();
284
- }
285
- }, {
286
- key: "render",
287
- value: function e() {
288
- var t = this.props, o = t.children, i = t.description, a = t.panelId, l = t.position, c = t.status;
289
-
290
- return r().createElement(k, E({
291
- disabled: c === "disabled",
292
- $inner: l === "inner",
293
- $status: c,
294
- onClick: this.handleClick,
295
- ref: this.handleMount,
296
- "data-test": "heading",
297
- "data-test-panel-id": a
298
- }, v()(this.props, h()(n.propTypes))), r().createElement(C, null, r().createElement("span", {
299
- "data-concertina-role": "title"
300
- }, o), i && r().createElement(j, {
301
- "data-concertina-role": "description"
302
- }, i)));
303
- }
304
- } ]);
305
- return n;
306
- }(n.Component);
307
- N(U, "propTypes", D);
308
- N(U, "defaultProps", $);
309
- /* harmony default export */ const L = U;
310
- // CONCATENATED MODULE: external "lodash/throttle"
311
- const V = require("lodash/throttle");
312
- var F = e.n(V);
313
- // CONCATENATED MODULE: external "@splunk/react-ui/Box"
314
- const G = require("@splunk/react-ui/Box");
315
- var J = e.n(G);
316
- // CONCATENATED MODULE: external "@splunk/react-ui/Scroll"
317
- const K = require("@splunk/react-ui/Scroll");
318
- var Q = e.n(K);
319
- // CONCATENATED MODULE: ./src/Concertina/ConcertinaStyles.ts
320
- var X = (0, g.css)([ "position:absolute;left:0;top:0;right:0;bottom:0;" ]);
321
- var Y = m()(Q()).withConfig({
322
- displayName: "ConcertinaStyles__StyledScroll",
323
- componentId: "sc-1fzuh39-0"
324
- })([ "", "" ], X);
325
- var Z = m()(J()).withConfig({
326
- displayName: "ConcertinaStyles__StyledBox",
327
- componentId: "sc-1fzuh39-1"
328
- })([ "", " overflow:hidden;" ], X);
329
- var ee = m().div.withConfig({
330
- displayName: "ConcertinaStyles__StyledTop",
331
- componentId: "sc-1fzuh39-2"
332
- })([ "position:absolute;left:0;top:0;right:0;z-index:1;background-color:", ";&::after{content:'';position:absolute;bottom:-10px;height:10px;left:0;right:0;background-image:linear-gradient(180deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}" ], S.variables.backgroundColor);
333
- var te = m().div.withConfig({
334
- displayName: "ConcertinaStyles__StyledBottom",
335
- componentId: "sc-1fzuh39-3"
336
- })([ "position:absolute;left:0;bottom:0;right:0;background-color:", ";&::before{content:'';position:absolute;top:-5px;height:5px;left:0;right:0;background-image:linear-gradient(0deg,rgba(0,0,0,0.15),rgba(0,0,0,0));}" ], S.variables.backgroundColor);
337
- var ne = m().div.withConfig({
338
- displayName: "ConcertinaStyles__StyledPanelBody",
339
- componentId: "sc-1fzuh39-4"
340
- })([ "", "" ], (0, S.pickVariant)("$status", {
341
- error: {
342
- dark: (0, g.css)([ "background-color:", ";" ], S.mixins.colorWithAlpha(S.variables.errorColor, .5)),
343
- light: (0, g.css)([ "background-color:", ";" ], S.variables.errorColorL50)
344
- },
345
- warning: {
346
- dark: (0, g.css)([ "background-color:", ";" ], S.mixins.colorWithAlpha(S.variables.warningColor, .5)),
347
- light: (0, g.css)([ "background-color:", ";" ], S.variables.warningColorL50)
348
- },
349
- disabled: (0, g.css)([ "display:none;" ])
350
- }));
351
- // CONCATENATED MODULE: ./src/utils/updateReactRef.ts
352
- /**
353
- * Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
354
- *
355
- * @param ref - The React callback or object ref. Can be `null` or `undefined`.
356
- * @param current - The new value of the ref.
357
- */
358
- function re(e, t) {
359
- if (e) {
360
- if (typeof e === "function") {
361
- e(t);
362
- } else {
363
- // the public signature of this util uses React.Ref<T> to mirror the way React types refs.
364
- // the intention here is to signal "we will take care of setting 'current', not you".
365
- e.current = t;
366
- // eslint-disable-line no-param-reassign
367
- }
368
- }
369
- }
370
- // CONCATENATED MODULE: ./src/Concertina/ConcertinaContext.tsx
371
- var oe = (0, n.createContext)({});
372
- oe.displayName = "Concertina";
373
- /* harmony default export */ const ie = oe;
374
- // CONCATENATED MODULE: ./src/Concertina/Panel.tsx
375
- function ae(e) {
376
- "@babel/helpers - typeof";
377
- return ae = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
378
- return typeof e;
379
- } : function(e) {
380
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
381
- }, ae(e);
382
- }
383
- function le() {
384
- return le = Object.assign ? Object.assign.bind() : function(e) {
385
- for (var t = 1; t < arguments.length; t++) {
386
- var n = arguments[t];
387
- for (var r in n) {
388
- ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
389
- }
390
- }
391
- return e;
392
- }, le.apply(null, arguments);
393
- }
394
- function ce(e) {
395
- return fe(e) || pe(e) || ue(e) || se();
396
- }
397
- function se() {
398
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
399
- }
400
- function ue(e, t) {
401
- if (e) {
402
- if ("string" == typeof e) return de(e, t);
403
- var n = {}.toString.call(e).slice(8, -1);
404
- return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? de(e, t) : void 0;
405
- }
406
- }
407
- function pe(e) {
408
- if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
409
- }
410
- function fe(e) {
411
- if (Array.isArray(e)) return de(e);
412
- }
413
- function de(e, t) {
414
- (null == t || t > e.length) && (t = e.length);
415
- for (var n = 0, r = Array(t); n < t; n++) {
416
- r[n] = e[n];
417
- }
418
- return r;
419
- }
420
- function be(e, t) {
421
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
422
- }
423
- function he(e, t) {
424
- for (var n = 0; n < t.length; n++) {
425
- var r = t[n];
426
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
427
- Object.defineProperty(e, je(r.key), r);
428
- }
429
- }
430
- function ye(e, t, n) {
431
- return t && he(e.prototype, t), n && he(e, n), Object.defineProperty(e, "prototype", {
432
- writable: !1
433
- }), e;
434
- }
435
- function ve(e, t) {
436
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
437
- e.prototype = Object.create(t && t.prototype, {
438
- constructor: {
439
- value: e,
440
- writable: !0,
441
- configurable: !0
442
- }
443
- }), Object.defineProperty(e, "prototype", {
444
- writable: !1
445
- }), t && ge(e, t);
446
- }
447
- function ge(e, t) {
448
- return ge = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
449
- return e.__proto__ = t, e;
450
- }, ge(e, t);
451
- }
452
- function me(e) {
453
- var t = Se();
454
- return function() {
455
- var n, r = ke(e);
456
- if (t) {
457
- var o = ke(this).constructor;
458
- n = Reflect.construct(r, arguments, o);
459
- } else n = r.apply(this, arguments);
460
- return we(this, n);
461
- };
462
- }
463
- function we(e, t) {
464
- if (t && ("object" == ae(t) || "function" == typeof t)) return t;
465
- if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
466
- return Oe(e);
467
- }
468
- function Oe(e) {
469
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
470
- return e;
471
- }
472
- function Se() {
473
- try {
474
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
475
- } catch (e) {}
476
- return (Se = function t() {
477
- return !!e;
478
- })();
479
- }
480
- function ke(e) {
481
- return ke = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
482
- return e.__proto__ || Object.getPrototypeOf(e);
483
- }, ke(e);
484
- }
485
- function Ce(e, t, n) {
486
- return (t = je(t)) in e ? Object.defineProperty(e, t, {
487
- value: n,
488
- enumerable: !0,
489
- configurable: !0,
490
- writable: !0
491
- }) : e[t] = n, e;
492
- }
493
- function je(e) {
494
- var t = Pe(e, "string");
495
- return "symbol" == ae(t) ? t : t + "";
496
- }
497
- function Pe(e, t) {
498
- if ("object" != ae(e) || !e) return e;
499
- var n = e[Symbol.toPrimitive];
500
- if (void 0 !== n) {
501
- var r = n.call(e, t || "default");
502
- if ("object" != ae(r)) return r;
503
- throw new TypeError("@@toPrimitive must return a primitive value.");
504
- }
505
- return ("string" === t ? String : Number)(e);
506
- }
507
- var Ee = {
508
- children: i().node,
509
- description: i().node,
510
- elementRef: i().oneOfType([ i().func, i().object ]),
511
- /** @private */
512
- index: i().number,
513
- panelId: i().string,
514
- status: i().oneOf([ "normal", "warning", "error", "disabled" ]),
515
- title: i().node.isRequired
516
- };
517
- var _e = {
518
- status: "normal"
519
- };
520
- var Te = function(e) {
521
- ve(n, e);
522
- var t = me(n);
523
- // @docs-props-type PanelPropsBase
524
- function n(e) {
525
- var r;
526
- be(this, n);
527
- r = t.call(this, e);
528
- Ce(Oe(r), "lastHeight", void 0);
529
- Ce(Oe(r), "measureHeight", (function(e) {
530
- var t, n, o;
531
- if (!r.state.containerEl || !r.state.bodyEl) {
532
- return;
533
- }
534
- var i = r.state.containerEl.clientHeight;
535
- if (i === r.lastHeight) {
536
- return;
537
- }
538
- var a = {
539
- headingHeight: r.state.containerEl.offsetHeight - r.state.bodyEl.offsetHeight,
540
- height: r.state.containerEl.offsetHeight,
541
- index: (t = r.props.index) !== null && t !== void 0 ? t : 0,
542
- panelId: r.props.panelId
543
- };
544
- r.lastHeight = i;
545
- (n = (o = r.context).onChange) === null || n === void 0 ? void 0 : n.call(o, e, a);
546
- }));
547
- Ce(Oe(r), "handleResize", F()(r.measureHeight, 300));
548
- Ce(Oe(r), "handleMount", (function(e) {
549
- r.setState({
550
- containerEl: e
551
- });
552
- re(r.props.elementRef, e);
553
- }));
554
- Ce(Oe(r), "handleHeadingMount", (function(e) {
555
- r.setState({
556
- heading: e
557
- });
558
- }));
559
- Ce(Oe(r), "handleBodyMount", (function(e) {
560
- r.setState({
561
- bodyEl: e
562
- });
563
- }));
564
- r.state = {
565
- bodyEl: null,
566
- containerEl: null,
567
- heading: null
568
- };
569
- return r;
570
- }
571
- ye(n, [ {
572
- key: "componentDidUpdate",
573
- value: function e(t, n) {
574
- if (this.props.children !== t.children || !n.containerEl) {
575
- this.measureHeight();
576
- }
577
- }
578
- }, {
579
- key: "componentWillUnmount",
580
- value: function e() {
581
- this.handleResize.cancel();
582
- }
583
- }, {
584
- key: "focus",
585
- // eslint-disable-next-line react/no-unused-class-component-methods
586
- value: function e() {
587
- var t;
588
- (t = this.state.heading) === null || t === void 0 ? void 0 : t.focus();
589
- }
590
- }, {
591
- key: "render",
592
- value: function e() {
593
- var t = this.props, o = t.children, i = t.description, a = t.index, l = t.panelId, c = t.status, s = t.style, u = t.title;
594
- var p = this.context.onHeadingClick;
595
-
596
- return r().createElement("div", le({
597
- ref: this.handleMount,
598
- "data-test": "panel",
599
- "data-test-panel-id": l || "".concat(a)
600
- }, v()(this.props, [].concat(ce(h()(n.propTypes)), [ "style" ]))), r().createElement(L, {
601
- onClick: p,
602
- ref: this.handleHeadingMount,
603
- description: i,
604
- index: a !== null && a !== void 0 ? a : 0,
605
- panelId: l || "".concat(a),
606
- position: "inner",
607
- status: c
608
- }, u), r().createElement(d(), {
609
- target: window,
610
- eventType: "resize",
611
- listener: this.handleResize
612
- }), r().createElement(ne, {
613
- $status: c,
614
- "data-test": "body",
615
- style: s,
616
- ref: this.handleBodyMount
617
- }, o));
618
- }
619
- } ]);
620
- return n;
621
- }(n.Component);
622
- Ce(Te, "propTypes", Ee);
623
- Ce(Te, "defaultProps", _e);
624
- Ce(Te, "contextType", ie);
625
- /* harmony default export */ const xe = Te;
626
- // CONCATENATED MODULE: ./src/Concertina/Concertina.tsx
627
- function He(e) {
628
- "@babel/helpers - typeof";
629
- return He = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
630
- return typeof e;
631
- } : function(e) {
632
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
633
- }, He(e);
634
- }
635
- function Ie() {
636
- return Ie = Object.assign ? Object.assign.bind() : function(e) {
637
- for (var t = 1; t < arguments.length; t++) {
638
- var n = arguments[t];
639
- for (var r in n) {
640
- ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
641
- }
642
- }
643
- return e;
644
- }, Ie.apply(null, arguments);
645
- }
646
- function Re(e, t) {
647
- if (null == e) return {};
648
- var n, r, o = qe(e, t);
649
- if (Object.getOwnPropertySymbols) {
650
- var i = Object.getOwnPropertySymbols(e);
651
- for (r = 0; r < i.length; r++) {
652
- n = i[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (o[n] = e[n]);
653
- }
654
- }
655
- return o;
656
- }
657
- function qe(e, t) {
658
- if (null == e) return {};
659
- var n = {};
660
- for (var r in e) {
661
- if ({}.hasOwnProperty.call(e, r)) {
662
- if (t.includes(r)) continue;
663
- n[r] = e[r];
664
- }
665
- }
666
- return n;
667
- }
668
- function Be(e, t) {
669
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
670
- }
671
- function ze(e, t) {
672
- for (var n = 0; n < t.length; n++) {
673
- var r = t[n];
674
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
675
- Object.defineProperty(e, Fe(r.key), r);
676
- }
677
- }
678
- function Me(e, t, n) {
679
- return t && ze(e.prototype, t), n && ze(e, n), Object.defineProperty(e, "prototype", {
680
- writable: !1
681
- }), e;
682
- }
683
- function Ne(e, t) {
684
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
685
- e.prototype = Object.create(t && t.prototype, {
686
- constructor: {
687
- value: e,
688
- writable: !0,
689
- configurable: !0
690
- }
691
- }), Object.defineProperty(e, "prototype", {
692
- writable: !1
693
- }), t && Ae(e, t);
694
- }
695
- function Ae(e, t) {
696
- return Ae = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
697
- return e.__proto__ = t, e;
698
- }, Ae(e, t);
699
- }
700
- function We(e) {
701
- var t = Ue();
702
- return function() {
703
- var n, r = Le(e);
704
- if (t) {
705
- var o = Le(this).constructor;
706
- n = Reflect.construct(r, arguments, o);
707
- } else n = r.apply(this, arguments);
708
- return De(this, n);
709
- };
710
- }
711
- function De(e, t) {
712
- if (t && ("object" == He(t) || "function" == typeof t)) return t;
713
- if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
714
- return $e(e);
715
- }
716
- function $e(e) {
717
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
718
- return e;
719
- }
720
- function Ue() {
721
- try {
722
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
723
- } catch (e) {}
724
- return (Ue = function t() {
725
- return !!e;
726
- })();
727
- }
728
- function Le(e) {
729
- return Le = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
730
- return e.__proto__ || Object.getPrototypeOf(e);
731
- }, Le(e);
732
- }
733
- function Ve(e, t, n) {
734
- return (t = Fe(t)) in e ? Object.defineProperty(e, t, {
735
- value: n,
736
- enumerable: !0,
737
- configurable: !0,
738
- writable: !0
739
- }) : e[t] = n, e;
740
- }
741
- function Fe(e) {
742
- var t = Ge(e, "string");
743
- return "symbol" == He(t) ? t : t + "";
744
- }
745
- function Ge(e, t) {
746
- if ("object" != He(e) || !e) return e;
747
- var n = e[Symbol.toPrimitive];
748
- if (void 0 !== n) {
749
- var r = n.call(e, t || "default");
750
- if ("object" != He(r)) return r;
751
- throw new TypeError("@@toPrimitive must return a primitive value.");
752
- }
753
- return ("string" === t ? String : Number)(e);
754
- }
755
- var Je = {
756
- children: i().node,
757
- elementRef: i().oneOfType([ i().func, i().object ])
758
- };
759
- var Ke = {};
760
- /**
761
- * @deprecated
762
- * Concertina has been deprecated and will be removed in a future major version.
763
- */ var Qe = function(e) {
764
- Ne(o, e);
765
- var t = We(o);
766
- // @docs-props-type ConcertinaPropsBase
767
- function o(e) {
768
- var n;
769
- Be(this, o);
770
- n = t.call(this, e);
771
- Ve($e(n), "panelPositions", void 0);
772
- Ve($e(n), "handleUpdate", (function(e, t) {
773
- n.panelPositions[t.index] = t;
774
- var r = 0;
775
- n.panelPositions.forEach((function(e) {
776
- // eslint-disable-next-line no-param-reassign
777
- e.offsetTop = r;
778
- r += e.height || 0;
779
- }));
780
- n.updateHeadings();
781
- }));
782
- Ve($e(n), "handleElementMount", (function(e) {
783
- n.setState({
784
- scrollEl: e
785
- });
786
- // The scrollEl gets unmounted during the animation, it's necessary to cache the
787
- // recorded height until it is remounted.
788
- if (e) {
789
- n.setState({
790
- innerWidth: e.clientWidth
791
- });
792
- }
793
- }));
794
- Ve($e(n), "handleResize", (function() {
795
- n.setState((function(e) {
796
- var t;
797
- return {
798
- innerWidth: (t = e.scrollEl) === null || t === void 0 ? void 0 : t.clientWidth
799
- };
800
- }));
801
- }));
802
- Ve($e(n), "handleScroll", (function() {
803
- n.updateHeadings();
804
- }));
805
- Ve($e(n), "handleScrollComplete", (function() {
806
- n.setState({
807
- targetTop: undefined
808
- });
809
- }));
810
- Ve($e(n), "handleClick", (function(e, t) {
811
- var r;
812
- var o = t.index, i = t.position;
813
- var a = n.state.scrollEl;
814
- if (!a) {
815
- return;
816
- }
817
- var l = s()(n.panelPositions, o).map((function(e) {
818
- return e.headingHeight;
819
- })).reduce((function(e, t) {
820
- return e + t;
821
- }), 0);
822
- // sum the heights
823
- var c = p()(n.panelPositions, n.panelPositions.length - o - 1).map((function(e) {
824
- return e.headingHeight;
825
- })).reduce((function(e, t) {
826
- return e + t;
827
- }), 0);
828
- // sum the heights
829
- var u = a.clientHeight - l - c;
830
- var f = n.panelPositions[o].height;
831
- var d = ((r = n.panelPositions[o].offsetTop) !== null && r !== void 0 ? r : 0) - l;
832
- var b = d - (u - f);
833
- var h = u > f && (i === "bottom" || i === "inner");
834
- // if the entire panel is in view, do nothing
835
- if (h && b < a.scrollTop) {
836
- return;
837
- }
838
- var y = h ? b : d;
839
- // handleRest will shift focus;
840
- if (i !== "inner") {
841
- e.currentTarget.blur();
842
- }
843
- n.setState({
844
- targetTop: y
845
- });
846
- }));
847
- Ve($e(n), "updateHeadingsImpl", (function() {
848
- var e = n.state.scrollEl;
849
- if (!e) {
850
- return;
851
- }
852
- var t = e.scrollTop;
853
- function r(e, n) {
854
- if (n.offsetTop !== undefined && n.offsetTop < t) {
855
- t += n.headingHeight;
856
- return e + 1;
857
- }
858
- return e;
859
- }
860
- var o = t + e.clientHeight;
861
- function i(e, t) {
862
- if (t.offsetTop !== undefined && t.offsetTop + t.headingHeight > o) {
863
- o -= t.headingHeight;
864
- return e + 1;
865
- }
866
- return e;
867
- }
868
- n.setState({
869
- panelsTopCount: n.panelPositions.reduce(r, 0),
870
- panelsBottomCount: n.panelPositions.reduceRight(i, 0)
871
- });
872
- }));
873
- Ve($e(n), "updateHeadings", l()(n.updateHeadingsImpl, 0));
874
- n.state = {
875
- innerWidth: "100%",
876
- panelsBottomCount: 0,
877
- panelsTopCount: 0,
878
- scrollEl: null
879
- };
880
- n.panelPositions = [];
881
- return n;
882
- }
883
- Me(o, [ {
884
- key: "componentWillUnmount",
885
- value: function e() {
886
- this.updateHeadings.cancel();
887
- }
888
- }, {
889
- key: "renderHeadings",
890
- value: function e(t, n) {
891
- var o = this;
892
- var i = t.map((function(e) {
893
- var t;
894
-
895
- return r().createElement(L, {
896
- onClick: o.handleClick,
897
- description: e.props.description,
898
- panelId: e.props.panelId,
899
- index: (t = e.props.index) !== null && t !== void 0 ? t : 0,
900
- position: n,
901
- status: e.props.status,
902
- key: e.props.panelId,
903
- tabIndex: -1
904
- }, e.props.title);
905
- }));
906
- return i;
907
- }
908
- }, {
909
- key: "render",
910
- value: function e() {
911
- if (false) {}
912
- var t = this.props, o = t.children, i = Re(t, [ "children" ]);
913
- var a = n.Children.toArray(o).filter(n.isValidElement).map((function(e, t) {
914
-
915
- return (0, n.cloneElement)(e, {
916
- index: t
917
- });
918
- }));
919
- var l = s()(a, this.state.panelsTopCount);
920
- var c = p()(a, this.state.panelsBottomCount);
921
-
922
- return r().createElement(Z, Ie({
923
- "data-test": "concertina"
924
- }, i), r().createElement(d(), {
925
- target: window,
926
- eventType: "resize",
927
- listener: this.handleResize
928
- }), this.state.panelsTopCount > 0 && r().createElement(ee, {
929
- style: {
930
- width: this.state.innerWidth
931
- },
932
- "data-test": "dock-top"
933
- }, this.renderHeadings(l, "top")), r().createElement(Y, {
934
- onScroll: this.handleScroll,
935
- stopScrollPropagation: true,
936
- key: "scroll-container",
937
- elementRef: this.handleElementMount,
938
- "data-test": "scroll",
939
- top: this.state.targetTop,
940
- onScrollComplete: this.handleScrollComplete
941
- }, r().createElement(ie.Provider, {
942
- // eslint-disable-next-line react/jsx-no-constructed-context-values
943
- value: {
944
- onHeadingClick: this.handleClick,
945
- onChange: this.handleUpdate
946
- }
947
- }, a)), this.state.panelsBottomCount > 0 && r().createElement(te, {
948
- style: {
949
- width: this.state.innerWidth
950
- },
951
- "data-test": "dock-bottom"
952
- }, this.renderHeadings(c, "bottom")));
953
- }
954
- } ]);
955
- return o;
956
- }(n.Component);
957
- Ve(Qe, "propTypes", Je);
958
- Ve(Qe, "defaultProps", Ke);
959
- Ve(Qe, "Panel", xe);
960
- /* harmony default export */ const Xe = Qe;
961
- // CONCATENATED MODULE: ./src/Concertina/index.ts
962
- module.exports = t;
963
- /******/})();