@splunk/react-ui 4.42.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 (639) 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 +29 -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 +528 -372
  17. package/CollapsiblePanel.js +439 -601
  18. package/Color.js +727 -967
  19. package/ColumnLayout.js +190 -234
  20. package/ComboBox.js +166 -161
  21. package/ControlGroup.js +502 -531
  22. package/Date.js +314 -420
  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 +135 -131
  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.mdx +48 -53
  36. package/MIGRATION.v5.mdx +428 -0
  37. package/Markdown.js +439 -385
  38. package/Menu.js +387 -741
  39. package/Message.js +150 -322
  40. package/MessageBar.js +15 -15
  41. package/Modal.js +444 -587
  42. package/Monogram.js +1 -1
  43. package/Multiselect.js +1207 -1256
  44. package/NonInteractiveCheckbox.js +189 -0
  45. package/Number.js +538 -621
  46. package/Paginator.js +354 -448
  47. package/Paragraph.js +12 -15
  48. package/Popover.js +588 -683
  49. package/Progress.js +141 -244
  50. package/Prose.d.ts +2 -0
  51. package/Prose.js +213 -0
  52. package/RadioBar.js +328 -450
  53. package/RadioList.js +129 -212
  54. package/Resize.js +351 -402
  55. package/ResultsMenu.d.ts +2 -0
  56. package/ResultsMenu.js +255 -358
  57. package/Scroll.js +159 -238
  58. package/Search.js +365 -453
  59. package/Select.js +1097 -1380
  60. package/SidePanel.js +179 -223
  61. package/Slider.js +440 -542
  62. package/SlidingPanels.js +377 -504
  63. package/SplitButton.js +114 -102
  64. package/StaticContent.js +58 -74
  65. package/StepBar.js +193 -258
  66. package/Switch.js +246 -552
  67. package/TabBar.js +442 -622
  68. package/TabLayout.js +197 -251
  69. package/Table.js +2373 -3691
  70. package/Text.js +422 -909
  71. package/TextArea.js +537 -959
  72. package/Tooltip.js +35 -41
  73. package/TransitionOpen.js +296 -334
  74. package/Tree.js +20 -14
  75. package/Typography.js +35 -50
  76. package/WaitSpinner.js +93 -124
  77. package/package.json +16 -17
  78. package/stubs-dependencies.d.ts +0 -7
  79. package/stubs-splunkui.d.ts +6 -1
  80. package/types/src/Accordion/Accordion.d.ts +5 -1
  81. package/types/src/Accordion/Panel.d.ts +1 -2
  82. package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
  83. package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
  84. package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
  85. package/types/src/Anchor/Anchor.d.ts +1 -1
  86. package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
  87. package/types/src/Animation/Animation.d.ts +12 -2
  88. package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
  89. package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
  90. package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
  91. package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
  92. package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
  93. package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
  94. package/types/src/Avatar/Avatar.d.ts +65 -0
  95. package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
  96. package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
  97. package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
  98. package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
  99. package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
  100. package/types/src/Avatar/getInitials.d.ts +9 -0
  101. package/types/src/Avatar/index.d.ts +2 -0
  102. package/types/src/Box/Box.d.ts +1 -1
  103. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  104. package/types/src/Breadcrumbs/Item.d.ts +1 -1
  105. package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
  106. package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
  107. package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
  108. package/types/src/Button/Button.d.ts +20 -34
  109. package/types/src/Button/docs/examples/Basic.d.ts +2 -1
  110. package/types/src/Button/docs/examples/Block.d.ts +2 -1
  111. package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
  112. package/types/src/Button/docs/examples/Icons.d.ts +2 -1
  113. package/types/src/Button/docs/examples/Menus.d.ts +2 -1
  114. package/types/src/Button/docs/examples/To.d.ts +2 -1
  115. package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
  116. package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  117. package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
  118. package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
  119. package/types/src/ButtonSimple/mixin.d.ts +6 -2
  120. package/types/src/Calendar/Calendar.d.ts +2 -2
  121. package/types/src/Calendar/DateTable.d.ts +1 -1
  122. package/types/src/Calendar/Day.d.ts +1 -1
  123. package/types/src/Calendar/MonthHeader.d.ts +1 -1
  124. package/types/src/Card/Body.d.ts +1 -1
  125. package/types/src/Card/Card.d.ts +4 -9
  126. package/types/src/Card/Footer.d.ts +1 -8
  127. package/types/src/Card/Header.d.ts +2 -2
  128. package/types/src/Card/docs/examples/Actions.d.ts +2 -1
  129. package/types/src/Card/docs/examples/Basic.d.ts +2 -1
  130. package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
  131. package/types/src/Card/docs/examples/Full.d.ts +2 -1
  132. package/types/src/Card/docs/examples/Images.d.ts +2 -1
  133. package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
  134. package/types/src/CardLayout/CardLayout.d.ts +1 -1
  135. package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
  136. package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
  137. package/types/src/Chip/Chip.d.ts +1 -1
  138. package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
  139. package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
  140. package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
  141. package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
  142. package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
  143. package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
  144. package/types/src/Clickable/Clickable.d.ts +13 -37
  145. package/types/src/Clickable/NavigationProvider.d.ts +2 -19
  146. package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
  147. package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
  148. package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
  149. package/types/src/Code/Code.d.ts +3 -3
  150. package/types/src/Code/docs/examples/Default.d.ts +2 -1
  151. package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
  152. package/types/src/Code/docs/examples/Language.d.ts +2 -1
  153. package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
  154. package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
  155. package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
  156. package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
  157. package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
  158. package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
  159. package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
  160. package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
  161. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
  162. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
  163. package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
  164. package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
  165. package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
  166. package/types/src/Color/Color.d.ts +24 -59
  167. package/types/src/Color/Palette.d.ts +3 -18
  168. package/types/src/Color/Swatch.d.ts +1 -4
  169. package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
  170. package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
  171. package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
  172. package/types/src/Color/docs/examples/Null.d.ts +2 -1
  173. package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
  174. package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
  175. package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
  176. package/types/src/ColumnLayout/Column.d.ts +1 -11
  177. package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
  178. package/types/src/ColumnLayout/Row.d.ts +1 -11
  179. package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
  180. package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
  181. package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
  182. package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
  183. package/types/src/ComboBox/ComboBox.d.ts +10 -14
  184. package/types/src/ComboBox/Option.d.ts +2 -2
  185. package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
  186. package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
  187. package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
  188. package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
  189. package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
  190. package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
  191. package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
  192. package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
  193. package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
  194. package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
  195. package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
  196. package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
  197. package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
  198. package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
  199. package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
  200. package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
  201. package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
  202. package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
  203. package/types/src/Date/Date.d.ts +30 -65
  204. package/types/src/Date/Icon.d.ts +2 -1
  205. package/types/src/Date/docs/examples/Basic.d.ts +2 -1
  206. package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
  207. package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
  208. package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
  209. package/types/src/Date/docs/examples/Error.d.ts +2 -1
  210. package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
  211. package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
  212. package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
  213. package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
  214. package/types/src/DefinitionList/Description.d.ts +3 -3
  215. package/types/src/DefinitionList/Term.d.ts +3 -3
  216. package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
  217. package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
  218. package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
  219. package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
  220. package/types/src/Divider/Divider.d.ts +1 -1
  221. package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
  222. package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
  223. package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
  224. package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
  225. package/types/src/Dropdown/Dropdown.d.ts +29 -44
  226. package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
  227. package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
  228. package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
  229. package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
  230. package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
  231. package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
  232. package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
  233. package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +3 -0
  234. package/types/src/DualListbox/DualListbox.d.ts +1 -1
  235. package/types/src/DualListbox/Label.d.ts +1 -1
  236. package/types/src/DualListbox/Listbox.d.ts +1 -1
  237. package/types/src/DualListbox/Option.d.ts +1 -1
  238. package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
  239. package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
  240. package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
  241. package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
  242. package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
  243. package/types/src/EventListener/EventListener.d.ts +1 -1
  244. package/types/src/File/File.d.ts +26 -33
  245. package/types/src/File/Icon.d.ts +2 -1
  246. package/types/src/File/IconCloud.d.ts +2 -1
  247. package/types/src/File/Item.d.ts +1 -1
  248. package/types/src/File/PaperClip.d.ts +2 -1
  249. package/types/src/File/Retry.d.ts +2 -1
  250. package/types/src/File/Trash.d.ts +2 -1
  251. package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
  252. package/types/src/File/docs/examples/Disabled.d.ts +2 -2
  253. package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
  254. package/types/src/File/docs/examples/Error.d.ts +2 -1
  255. package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
  256. package/types/src/File/docs/examples/Multi.d.ts +2 -2
  257. package/types/src/File/docs/examples/Progress.d.ts +2 -1
  258. package/types/src/File/docs/examples/Single.d.ts +2 -2
  259. package/types/src/FormRows/FormRows.d.ts +20 -14
  260. package/types/src/FormRows/Row.d.ts +11 -7
  261. package/types/src/FormRows/SortableList.d.ts +1 -1
  262. package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
  263. package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
  264. package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
  265. package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
  266. package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
  267. package/types/src/Heading/Heading.d.ts +8 -20
  268. package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
  269. package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
  270. package/types/src/Heading/index.d.ts +1 -0
  271. package/types/src/Image/Image.d.ts +8 -19
  272. package/types/src/Image/docs/examples/Basic.d.ts +2 -1
  273. package/types/src/Image/icons/Cross.d.ts +2 -1
  274. package/types/src/JSONTree/JSONTree.d.ts +6 -10
  275. package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
  276. package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
  277. package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
  278. package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
  279. package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
  280. package/types/src/Layer/Layer.d.ts +8 -25
  281. package/types/src/Layer/LayerStack.d.ts +2 -3
  282. package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
  283. package/types/src/Layout/Layout.d.ts +22 -0
  284. package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
  285. package/types/src/Layout/index.d.ts +2 -0
  286. package/types/src/Layout/test/Layout.unit.d.ts +1 -0
  287. package/types/src/Link/Link.d.ts +9 -22
  288. package/types/src/Link/docs/examples/Basic.d.ts +2 -1
  289. package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
  290. package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
  291. package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
  292. package/types/src/Link/icons/External.d.ts +2 -1
  293. package/types/src/List/Item.d.ts +1 -1
  294. package/types/src/List/List.d.ts +5 -17
  295. package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
  296. package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
  297. package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
  298. package/types/src/Markdown/Markdown.d.ts +50 -59
  299. package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
  300. package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
  301. package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
  302. package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
  303. package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
  304. package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
  305. package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
  306. package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
  307. package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
  308. package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
  309. package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
  310. package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
  311. package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
  312. package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
  313. package/types/src/Markdown/renderers/index.d.ts +5 -4
  314. package/types/src/Menu/Divider.d.ts +2 -1
  315. package/types/src/Menu/Heading.d.ts +3 -3
  316. package/types/src/Menu/Item.d.ts +14 -47
  317. package/types/src/Menu/Menu.d.ts +4 -19
  318. package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
  319. package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
  320. package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
  321. package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
  322. package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
  323. package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
  324. package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
  325. package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
  326. package/types/src/Menu/docs/examples/Links.d.ts +2 -1
  327. package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
  328. package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
  329. package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
  330. package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
  331. package/types/src/Menu/icons/External.d.ts +2 -1
  332. package/types/src/Message/Message.d.ts +4 -11
  333. package/types/src/Message/Title.d.ts +1 -1
  334. package/types/src/Message/docs/examples/Basic.d.ts +2 -1
  335. package/types/src/Message/docs/examples/Content.d.ts +2 -1
  336. package/types/src/Message/docs/examples/Fill.d.ts +2 -1
  337. package/types/src/Message/docs/examples/Removable.d.ts +2 -1
  338. package/types/src/MessageBar/MessageBar.d.ts +1 -1
  339. package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
  340. package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
  341. package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
  342. package/types/src/Modal/Body.d.ts +1 -1
  343. package/types/src/Modal/Footer.d.ts +9 -1
  344. package/types/src/Modal/Header.d.ts +7 -11
  345. package/types/src/Modal/Modal.d.ts +26 -32
  346. package/types/src/Modal/ModalContext.d.ts +2 -0
  347. package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
  348. package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
  349. package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
  350. package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
  351. package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
  352. package/types/src/Monogram/Monogram.d.ts +3 -7
  353. package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
  354. package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
  355. package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
  356. package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
  357. package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
  358. package/types/src/Multiselect/Compact.d.ts +1 -1
  359. package/types/src/Multiselect/Multiselect.d.ts +4 -2
  360. package/types/src/Multiselect/Normal.d.ts +1 -1
  361. package/types/src/Multiselect/Option.d.ts +1 -1
  362. package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
  363. package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
  364. package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
  365. package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
  366. package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
  367. package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
  368. package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
  369. package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
  370. package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
  371. package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
  372. package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
  373. package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
  374. package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
  375. package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
  376. package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
  377. package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
  378. package/types/src/Number/Number.d.ts +46 -68
  379. package/types/src/Number/docs/examples/Basic.d.ts +2 -2
  380. package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
  381. package/types/src/Number/docs/examples/Error.d.ts +2 -1
  382. package/types/src/Number/docs/examples/Limits.d.ts +2 -2
  383. package/types/src/Number/docs/examples/Locale.d.ts +2 -2
  384. package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
  385. package/types/src/Number/utils.d.ts +28 -0
  386. package/types/src/Paginator/Button.d.ts +4 -8
  387. package/types/src/Paginator/Compact.d.ts +1 -1
  388. package/types/src/Paginator/PageControl.d.ts +1 -1
  389. package/types/src/Paginator/PageSelect.d.ts +1 -1
  390. package/types/src/Paginator/PageSeparator.d.ts +2 -1
  391. package/types/src/Paginator/Paginator.d.ts +15 -2
  392. package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
  393. package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
  394. package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
  395. package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
  396. package/types/src/Paginator/docs/examples/CustomPages.d.ts +3 -0
  397. package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
  398. package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
  399. package/types/src/Paragraph/Paragraph.d.ts +3 -1
  400. package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
  401. package/types/src/Paragraph/index.d.ts +1 -0
  402. package/types/src/Popover/Popover.d.ts +50 -72
  403. package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
  404. package/types/src/Popover/PopoverProvider.d.ts +23 -0
  405. package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
  406. package/types/src/Popover/getPlacement.d.ts +1 -1
  407. package/types/src/Popover/index.d.ts +2 -1
  408. package/types/src/Progress/Progress.d.ts +3 -4
  409. package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
  410. package/types/src/Progress/docs/examples/Type.d.ts +2 -1
  411. package/types/src/Prose/Prose.d.ts +29 -0
  412. package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
  413. package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
  414. package/types/src/Prose/index.d.ts +2 -0
  415. package/types/src/Prose/test/Prose.unit.d.ts +1 -0
  416. package/types/src/RadioBar/Option.d.ts +2 -18
  417. package/types/src/RadioBar/RadioBar.d.ts +22 -39
  418. package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
  419. package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
  420. package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
  421. package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
  422. package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
  423. package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
  424. package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
  425. package/types/src/RadioList/Option.d.ts +1 -1
  426. package/types/src/RadioList/RadioList.d.ts +5 -2
  427. package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
  428. package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
  429. package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
  430. package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
  431. package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
  432. package/types/src/Resize/Resize.d.ts +15 -23
  433. package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
  434. package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
  435. package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
  436. package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
  437. package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
  438. package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
  439. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
  440. package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
  441. package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
  442. package/types/src/Scroll/Inner.d.ts +1 -1
  443. package/types/src/Scroll/Scroll.d.ts +37 -27
  444. package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
  445. package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
  446. package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
  447. package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
  448. package/types/src/Search/Option.d.ts +32 -32
  449. package/types/src/Search/Search.d.ts +4 -4
  450. package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
  451. package/types/src/Search/docs/examples/Loading.d.ts +2 -1
  452. package/types/src/Search/docs/examples/Options.d.ts +2 -1
  453. package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
  454. package/types/src/Search/docs/examples/Results.d.ts +2 -1
  455. package/types/src/Select/Option.d.ts +8 -21
  456. package/types/src/Select/OptionBase.d.ts +3 -8
  457. package/types/src/Select/Select.d.ts +62 -22
  458. package/types/src/Select/SelectAllOption.d.ts +1 -1
  459. package/types/src/Select/SelectBase.d.ts +5 -8
  460. package/types/src/Select/docs/examples/Appearance.d.ts +2 -11
  461. package/types/src/Select/docs/examples/Basic.d.ts +2 -9
  462. package/types/src/Select/docs/examples/Children.d.ts +2 -9
  463. package/types/src/Select/docs/examples/Descriptions.d.ts +2 -9
  464. package/types/src/Select/docs/examples/Error.d.ts +2 -1
  465. package/types/src/Select/docs/examples/Fetching.d.ts +2 -22
  466. package/types/src/Select/docs/examples/Filter.d.ts +2 -9
  467. package/types/src/Select/docs/examples/Headings.d.ts +2 -9
  468. package/types/src/Select/docs/examples/Icons.d.ts +2 -1
  469. package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -24
  470. package/types/src/Select/docs/examples/Prefix.d.ts +2 -9
  471. package/types/src/Select/docs/examples/Truncate.d.ts +2 -9
  472. package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
  473. package/types/src/SidePanel/SidePanel.d.ts +18 -16
  474. package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
  475. package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
  476. package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
  477. package/types/src/Slider/Slider.d.ts +32 -46
  478. package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
  479. package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
  480. package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
  481. package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
  482. package/types/src/Slider/docs/examples/Error.d.ts +2 -1
  483. package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
  484. package/types/src/SlidingPanels/Panel.d.ts +23 -20
  485. package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
  486. package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
  487. package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
  488. package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
  489. package/types/src/SplitButton/Item.d.ts +2 -2
  490. package/types/src/SplitButton/SplitButton.d.ts +1 -1
  491. package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
  492. package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
  493. package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
  494. package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
  495. package/types/src/StaticContent/StaticContent.d.ts +1 -8
  496. package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
  497. package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
  498. package/types/src/StepBar/Step.d.ts +1 -1
  499. package/types/src/StepBar/StepBar.d.ts +2 -3
  500. package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
  501. package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
  502. package/types/src/StepBar/types.d.ts +2 -0
  503. package/types/src/Switch/Switch.d.ts +37 -23
  504. package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
  505. package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
  506. package/types/src/Switch/docs/examples/Error.d.ts +2 -1
  507. package/types/src/TabBar/Tab.d.ts +37 -44
  508. package/types/src/TabBar/TabBar.d.ts +21 -22
  509. package/types/src/TabBar/TabBarContext.d.ts +3 -5
  510. package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
  511. package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
  512. package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
  513. package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
  514. package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
  515. package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
  516. package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
  517. package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
  518. package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
  519. package/types/src/TabLayout/Panel.d.ts +6 -1
  520. package/types/src/TabLayout/TabLayout.d.ts +18 -31
  521. package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
  522. package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
  523. package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
  524. package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
  525. package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
  526. package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
  527. package/types/src/Table/Body.d.ts +6 -13
  528. package/types/src/Table/Caption.d.ts +1 -1
  529. package/types/src/Table/Cell.d.ts +40 -18
  530. package/types/src/Table/ExpandButton.d.ts +9 -3
  531. package/types/src/Table/Head.d.ts +40 -40
  532. package/types/src/Table/HeadCell.d.ts +49 -23
  533. package/types/src/Table/HeadDropdownCell.d.ts +58 -51
  534. package/types/src/Table/HeadInner.d.ts +1 -3
  535. package/types/src/Table/HeadTable.d.ts +23 -12
  536. package/types/src/Table/Row.d.ts +7 -14
  537. package/types/src/Table/RowDragCell.d.ts +2 -1
  538. package/types/src/Table/Table.d.ts +13 -19
  539. package/types/src/Table/Toggle.d.ts +1 -3
  540. package/types/src/Table/docs/examples/Basic.d.ts +2 -1
  541. package/types/src/Table/docs/examples/Click.d.ts +3 -16
  542. package/types/src/Table/docs/examples/ClickRows.d.ts +3 -16
  543. package/types/src/Table/docs/examples/Complex.d.ts +3 -50
  544. package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
  545. package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
  546. package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
  547. package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -13
  548. package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
  549. package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -17
  550. package/types/src/Table/docs/examples/ReorderColumns.d.ts +3 -21
  551. package/types/src/Table/docs/examples/ReorderRows.d.ts +3 -21
  552. package/types/src/Table/docs/examples/Resizable.d.ts +3 -23
  553. package/types/src/Table/docs/examples/ResizableFill.d.ts +3 -23
  554. package/types/src/Table/docs/examples/RowActions.d.ts +3 -39
  555. package/types/src/Table/docs/examples/Selectable.d.ts +3 -18
  556. package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -11
  557. package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
  558. package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
  559. package/types/src/Text/IconOutlinedHide.d.ts +2 -1
  560. package/types/src/Text/IconOutlinedView.d.ts +2 -1
  561. package/types/src/Text/Text.d.ts +62 -112
  562. package/types/src/Text/docs/examples/Basic.d.ts +2 -1
  563. package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
  564. package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
  565. package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
  566. package/types/src/Text/docs/examples/Error.d.ts +2 -1
  567. package/types/src/Text/docs/examples/Inline.d.ts +2 -1
  568. package/types/src/Text/docs/examples/Password.d.ts +2 -1
  569. package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
  570. package/types/src/TextArea/TextArea.d.ts +49 -87
  571. package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
  572. package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
  573. package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
  574. package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
  575. package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
  576. package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
  577. package/types/src/Tooltip/InfoIcon.d.ts +2 -1
  578. package/types/src/Tooltip/Tooltip.d.ts +9 -3
  579. package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
  580. package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
  581. package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
  582. package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
  583. package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
  584. package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
  585. package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
  586. package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
  587. package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
  588. package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
  589. package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
  590. package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
  591. package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
  592. package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
  593. package/types/src/Tree/Tree.d.ts +1 -1
  594. package/types/src/Tree/TreeItem.d.ts +1 -1
  595. package/types/src/Typography/Typography.d.ts +10 -19
  596. package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
  597. package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
  598. package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
  599. package/types/src/utils/types.d.ts +1 -0
  600. package/useResizeObserver.js +122 -90
  601. package/Concertina.d.ts +0 -2
  602. package/Concertina.js +0 -963
  603. package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
  604. package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
  605. package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
  606. package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
  607. package/types/src/Button/icons/External.d.ts +0 -2
  608. package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
  609. package/types/src/CloseButton/CloseButton.d.ts +0 -21
  610. package/types/src/CloseButton/index.d.ts +0 -1
  611. package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
  612. package/types/src/Concertina/Concertina.d.ts +0 -46
  613. package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
  614. package/types/src/Concertina/Heading.d.ts +0 -35
  615. package/types/src/Concertina/Panel.d.ts +0 -59
  616. package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
  617. package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
  618. package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
  619. package/types/src/Concertina/index.d.ts +0 -2
  620. package/types/src/Concertina/types.d.ts +0 -1
  621. package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
  622. package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
  623. package/types/src/Link/docs/examples/Inline.d.ts +0 -2
  624. package/types/src/Message/Link.d.ts +0 -37
  625. package/types/src/Number/IncrementIcon.d.ts +0 -2
  626. package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
  627. package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
  628. package/types/src/Popover/PopoverContext.d.ts +0 -6
  629. package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
  630. package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
  631. package/types/src/Select/icons/Search.d.ts +0 -2
  632. package/types/src/Switch/CheckIcon.d.ts +0 -1
  633. package/types/src/Table/DragHandle.d.ts +0 -12
  634. package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
  635. package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
  636. package/types/src/Text/docs/examples/Search.d.ts +0 -2
  637. package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
  638. package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
  639. package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
@@ -8,27 +8,27 @@
8
8
  /******/ /* webpack/runtime/compat get default export */
9
9
  /******/ (() => {
10
10
  /******/ // getDefaultExport function for compatibility with non-harmony modules
11
- /******/ e.n = t => {
12
- /******/ var n = t && t.__esModule ?
13
- /******/ () => t["default"]
14
- /******/ : () => t
11
+ /******/ e.n = n => {
12
+ /******/ var r = n && n.__esModule ?
13
+ /******/ () => n["default"]
14
+ /******/ : () => n
15
15
  /******/;
16
- e.d(n, {
17
- a: n
16
+ e.d(r, {
17
+ a: r
18
18
  });
19
- /******/ return n;
19
+ /******/ return r;
20
20
  /******/ };
21
21
  /******/ })();
22
22
  /******/
23
23
  /******/ /* webpack/runtime/define property getters */
24
24
  /******/ (() => {
25
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, {
26
+ /******/ e.d = (n, r) => {
27
+ /******/ for (var t in r) {
28
+ /******/ if (e.o(r, t) && !e.o(n, t)) {
29
+ /******/ Object.defineProperty(n, t, {
30
30
  enumerable: true,
31
- get: n[r]
31
+ get: r[t]
32
32
  });
33
33
  /******/ }
34
34
  /******/ }
@@ -37,7 +37,7 @@
37
37
  /******/
38
38
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
39
39
  /******/ (() => {
40
- /******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
40
+ /******/ e.o = (e, n) => Object.prototype.hasOwnProperty.call(e, n)
41
41
  /******/;
42
42
  })();
43
43
  /******/
@@ -56,739 +56,577 @@
56
56
  /******/ };
57
57
  /******/ })();
58
58
  /******/
59
- /************************************************************************/ var t = {};
59
+ /************************************************************************/ var n = {};
60
60
  // ESM COMPAT FLAG
61
- e.r(t);
61
+ e.r(n);
62
62
  // EXPORTS
63
- e.d(t, {
64
- SingleOpenPanelGroup: () => /* reexport */ ce,
65
- default: () => /* reexport */ _e
63
+ e.d(n, {
64
+ SingleOpenPanelGroup: () => /* reexport */ oe,
65
+ default: () => /* reexport */ we
66
66
  });
67
67
  // CONCATENATED MODULE: external "react"
68
- const n = require("react");
69
- var r = e.n(n);
70
- // CONCATENATED MODULE: external "lodash/has"
71
- const a = require("lodash/has");
72
- var o = e.n(a);
73
- // CONCATENATED MODULE: external "lodash/keys"
74
- const i = require("lodash/keys");
75
- var l = e.n(i);
76
- // CONCATENATED MODULE: external "lodash/omit"
77
- const s = require("lodash/omit");
78
- var c = e.n(s);
68
+ const r = require("react");
69
+ var t = e.n(r);
79
70
  // CONCATENATED MODULE: external "prop-types"
80
- const p = require("prop-types");
81
- var u = e.n(p);
71
+ const a = require("prop-types");
72
+ var l = e.n(a);
82
73
  // CONCATENATED MODULE: external "@splunk/react-ui/TransitionOpen"
83
- const d = require("@splunk/react-ui/TransitionOpen");
84
- var f = e.n(d);
74
+ const o = require("@splunk/react-ui/TransitionOpen");
75
+ var i = e.n(o);
85
76
  // CONCATENATED MODULE: external "@splunk/ui-utils/id"
86
- const b = require("@splunk/ui-utils/id");
87
- // CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
88
- const v = require("@splunk/ui-utils/i18n");
77
+ const s = require("@splunk/ui-utils/id");
78
+ // CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
79
+ const c = require("@splunk/react-ui/useControlled");
80
+ var u = e.n(c);
89
81
  // CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
90
- const m = require("@splunk/react-ui/usePrevious");
91
- var y = e.n(m);
82
+ const p = require("@splunk/react-ui/usePrevious");
83
+ var d = e.n(p);
84
+ // CONCATENATED MODULE: external "lodash/omit"
85
+ const f = require("lodash/omit");
86
+ var b = e.n(f);
92
87
  // CONCATENATED MODULE: external "styled-components"
93
- const g = require("styled-components");
94
- var h = e.n(g);
88
+ const v = require("styled-components");
89
+ var y = e.n(v);
95
90
  // CONCATENATED MODULE: external "@splunk/react-ui/Box"
96
- const k = require("@splunk/react-ui/Box");
97
- var C = e.n(k);
91
+ const m = require("@splunk/react-ui/Box");
92
+ var g = e.n(m);
98
93
  // CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
99
- const x = require("@splunk/react-ui/ButtonSimple");
100
- var O = e.n(x);
94
+ const h = require("@splunk/react-ui/ButtonSimple");
95
+ var S = e.n(h);
101
96
  // CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
102
- const S = require("@splunk/react-ui/Clickable");
103
- var w = e.n(S);
97
+ const C = require("@splunk/react-ui/Clickable");
98
+ var O = e.n(C);
104
99
  // CONCATENATED MODULE: external "@splunk/themes"
105
100
  const P = require("@splunk/themes");
106
101
  // CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
107
- const I = require("@splunk/react-icons/ChevronRight");
108
- var j = e.n(I);
102
+ const w = require("@splunk/react-icons/ChevronRight");
103
+ var k = e.n(w);
109
104
  // CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
110
- const E = require("@splunk/react-icons/enterprise/ChevronRight");
111
- var _ = e.n(E);
105
+ const I = require("@splunk/react-icons/enterprise/ChevronRight");
106
+ var j = e.n(I);
112
107
  // CONCATENATED MODULE: ./src/CollapsiblePanel/icons/ExpandPanel.tsx
113
- var q = {
114
- className: u().string
108
+ var x = {
109
+ className: l().string
115
110
  };
116
- var A = function e(t) {
117
- var n = t.className;
118
- var a = (0, P.useSplunkTheme)(), o = a.isEnterprise;
119
- return o ? r().createElement(_(), {
120
- className: n,
111
+ var E = function e(n) {
112
+ var r = n.className;
113
+ var a = (0, P.useSplunkTheme)(), l = a.isEnterprise;
114
+ return l ? t().createElement(j(), {
115
+ className: r,
121
116
  hideDefaultTooltip: true,
122
117
  screenReaderText: null
123
- }) : r().createElement(j(), {
124
- className: n
118
+ }) : t().createElement(k(), {
119
+ className: r
125
120
  });
126
121
  };
127
- A.propTypes = q;
128
- /* harmony default export */ const R = A;
122
+ E.propTypes = x;
123
+ /* harmony default export */ const _ = E;
129
124
  // CONCATENATED MODULE: ./src/CollapsiblePanel/CollapsiblePanelStyles.ts
130
- var T = h()(C()).withConfig({
125
+ var N = y()(g()).withConfig({
131
126
  displayName: "CollapsiblePanelStyles__StyledBox",
132
127
  componentId: "sc-1phikbp-0"
133
- })([ "display:flex;flex-direction:column;flex-shrink:1;", ";", ";& + &{margin-top:", ";}" ], (0,
134
- P.pick)({
135
- enterprise: (0, g.css)([ "min-height:calc(", " + 12px);" ], P.variables.lineHeight),
136
- prisma: {
137
- comfortable: (0, g.css)([ "min-height:56px;" ]),
138
- compact: (0, g.css)([ "min-height:48px;" ])
139
- }
140
- }), (0, P.pick)({
141
- prisma: (0, g.css)([ "background-color:", ";" ], P.variables.backgroundColorSection)
142
- }), (0, P.pick)({
143
- enterprise: "2px",
144
- prisma: "1px"
128
+ })([ "display:flex;flex-direction:column;flex-shrink:1;min-height:28px;background-color:", ";& + &{margin-top:1px;}" ], (0,
129
+ P.pickVariant)("$appearance", {
130
+ default: {
131
+ prisma: P.variables.backgroundColorSection,
132
+ enterprise: {
133
+ dark: P.variables.gray22,
134
+ light: P.variables.white
135
+ }
136
+ },
137
+ subtle: P.variables.transparent
145
138
  }));
146
- var D = h()(C()).withConfig({
139
+ var A = y()(g()).withConfig({
147
140
  displayName: "CollapsiblePanelStyles__StyledSingleOpenPanelGroupBox",
148
141
  componentId: "sc-1phikbp-1"
149
- })([ "", ";flex-direction:column;margin-bottom:0;", "" ], P.mixins.reset("flex"), (0,
150
- P.pick)({
151
- enterprise: (0, g.css)([ "background:", ";" ], P.variables.backgroundColor)
152
- }));
142
+ })([ "", ";flex-direction:column;margin-bottom:0;" ], P.mixins.reset("flex"));
153
143
  /*
154
- these styles are consistent for both regular and titleWithActions, but applied to different elements
144
+ these styles are consistent for both regular and actions, but applied to different elements
155
145
  * in regular mode, they're on the SVG's span wrapper
156
- * in titleWithActionsMode, they're on the button
146
+ * in actionsMode, they're on the button
157
147
  applying them directly to the icon wrapper doesn't work because Enterprise has 1px border around the button
158
- */ var N = (0, g.css)([ "min-width:", ";" ], (0, P.pick)({
159
- enterprise: "20px",
160
- prisma: "35px"
161
- }));
162
- var X = h().span.withConfig({
148
+ */ var T = (0, v.css)([ "min-width:16px;" ]);
149
+ var $ = y().span.withConfig({
163
150
  displayName: "CollapsiblePanelStyles__StyledIconWrapper",
164
151
  componentId: "sc-1phikbp-2"
165
- })([ "display:inline-block;flex:0 auto;", "" ], N);
166
- var B = h().div.withConfig({
167
- displayName: "CollapsiblePanelStyles__StyledTitleWithActions",
152
+ })([ "display:inline-block;flex:0 auto;", "" ], T);
153
+ var q = y().div.withConfig({
154
+ displayName: "CollapsiblePanelStyles__StyledActions",
168
155
  componentId: "sc-1phikbp-3"
169
- })([ "display:flex;flex-shrink:0;border-bottom:0;position:relative;padding:", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:", ";", " ", "" ], (0,
170
- P.pick)({
171
- enterprise: (0, g.css)([ "", " ", " ", " ", "" ], P.variables.spacingXSmall, P.variables.spacingSmall, P.variables.spacingXSmall, P.variables.spacingXSmall),
172
- prisma: {
173
- comfortable: "8px 10px 8px 11px",
174
- compact: "8px 10px 8px 11px"
175
- }
176
- }), (0, P.pick)({
177
- enterprise: P.variables.textColor,
178
- prisma: P.variables.contentColorActive
179
- }), (0, P.pick)({
180
- prisma: (0, g.css)([ "background-color:", ";" ], P.variables.interactiveColorBackground),
181
- enterprise: {
182
- dark: (0, g.css)([ "background-color:", ";" ], P.variables.gray45),
183
- light: (0, g.css)([ "background-color:", ";" ], P.variables.gray96)
184
- }
156
+ })([ "display:flex;flex-shrink:0;border-bottom:0;gap:", ";position:relative;padding:", " ", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:", ";background-color:", ";", "" ], P.variables.spacingSmall, P.variables.spacingXSmall, P.variables.spacingLarge, P.variables.contentColorActive, (0,
157
+ P.pickVariant)("$appearance", {
158
+ default: P.variables.neutral100,
159
+ subtle: P.variables.transparent
185
160
  }), (function(e) {
186
- var t = e.$disabled;
187
- return t && (0, g.css)([ "cursor:default;color:", ";" ], (0, P.pick)({
188
- enterprise: P.variables.contentColorDefault,
189
- prisma: P.variables.contentColorDisabled
190
- }));
161
+ var n = e.$disabled;
162
+ return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
191
163
  }));
192
- var W = h()(O()).withConfig({
164
+ var D = y()(S()).withConfig({
193
165
  displayName: "CollapsiblePanelStyles__StyledToggleButton",
194
166
  componentId: "sc-1phikbp-4"
195
- })([ "flex:0 auto;padding:0;", "" ], N);
196
- var L = h()(w()).withConfig({
167
+ })([ "flex:0 auto;padding:0;min-width:28px;line-height:", ";" ], P.variables.lineHeight);
168
+ var R = y()(O()).withConfig({
197
169
  displayName: "CollapsiblePanelStyles__StyledTitleClickable",
198
170
  componentId: "sc-1phikbp-5"
199
- })([ "width:100%;flex-shrink:0;border-bottom:0;cursor:pointer;position:relative;display:flex;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:", ";color:", ";", " ", " &[disabled]{cursor:default;color:", ";}&:focus:not([disabled]),&:active:not([disabled]){color:", ";box-shadow:", ";z-index:1;}&:hover:not([disabled]){color:", ";background-color:", ";}" ], (0,
200
- P.pick)({
201
- enterprise: "6px 30px 6px 5px",
202
- prisma: {
203
- comfortable: "18px 20px 18px 11px",
204
- compact: "14px 20px 14px 11px"
205
- }
206
- }), (0, P.pick)({
207
- enterprise: P.variables.textColor,
208
- prisma: P.variables.contentColorActive
209
- }), (0, P.pick)({
210
- prisma: (0, g.css)([ "background-color:", ";" ], P.variables.interactiveColorBackground)
211
- }), (0, P.pickVariant)("$open", {
212
- false: {
213
- enterprise: {
214
- dark: (0, g.css)([ "background-color:", ";" ], P.variables.gray45),
215
- light: (0, g.css)([ "background-color:", ";" ], P.variables.gray96)
216
- }
217
- }
218
- }), (0, P.pick)({
219
- enterprise: P.variables.contentColorDefault,
220
- prisma: P.variables.contentColorDisabled
221
- }), (0, P.pick)({
222
- enterprise: P.variables.textColor,
223
- prisma: P.variables.contentColorActive
224
- }), P.variables.focusShadowInset, (0, P.pick)({
225
- enterprise: P.variables.textColor,
226
- prisma: P.variables.contentColorActive
227
- }), (0, P.pick)({
228
- enterprise: {
229
- light: P.variables.gray92,
230
- dark: P.variables.gray30
231
- },
232
- prisma: P.mixins.overlayColors(P.variables.interactiveColorBackground, P.variables.interactiveColorOverlayHover)
233
- }));
234
- var $ = h().span.withConfig({
171
+ })([ "width:100%;flex-shrink:0;border-bottom:0;gap:", ";cursor:pointer;position:relative;display:flex;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:", " ", ";color:", ";background-color:", ";&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";}&:focus:not([disabled]),&:active:not([disabled],[aria-disabled='true']){box-shadow:", ";z-index:1;}&:hover:not([disabled],[aria-disabled='true']){background-color:", ";}" ], P.variables.spacingSmall, P.variables.spacingXSmall, P.variables.spacingLarge, P.variables.contentColorActive, (0,
172
+ P.pickVariant)("$appearance", {
173
+ default: P.variables.neutral100,
174
+ subtle: P.variables.transparent
175
+ }), P.variables.contentColorDisabled, P.variables.focusShadowInset, P.mixins.overlayColors(P.variables.neutral100, P.variables.interactiveColorOverlayHover));
176
+ var B = y().span.withConfig({
235
177
  displayName: "CollapsiblePanelStyles__StyledHeadingContent",
236
178
  componentId: "sc-1phikbp-6"
237
- })([ "display:flex;justify-content:space-between;margin-left:", ";flex:1 1 auto;", " ", "" ], (0,
238
- P.pick)({
239
- enterprise: "5px",
240
- prisma: "6px"
241
- }), (0, P.pick)({
242
- prisma: (0, g.css)([ "font-weight:", ";" ], P.variables.fontWeightSemiBold)
243
- }), (function(e) {
244
- var t = e.$titleWithActions;
245
- return t && (0, g.css)([ "min-height:", ";" ], (0, P.pick)({
246
- prisma: {
247
- comfortable: P.variables.spacingXXXLarge,
248
- compact: P.variables.spacingXXLarge
249
- }
250
- }));
179
+ })([ "display:flex;justify-content:space-between;flex:1 1 auto;font-weight:", ";line-height:", ";", "" ], P.variables.fontWeightSemiBold, P.variables.lineHeight, (function(e) {
180
+ var n = e.$disabled;
181
+ return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
251
182
  }));
252
- var M = h().span.withConfig({
183
+ var L = y().span.withConfig({
253
184
  displayName: "CollapsiblePanelStyles__StyledHeadingActions",
254
185
  componentId: "sc-1phikbp-7"
255
- })([ "min-height:", ";flex:1 0 auto;" ], (0, P.pick)({
256
- prisma: {
257
- comfortable: P.variables.spacingXXXLarge,
258
- compact: P.variables.spacingXXLarge
259
- }
260
- }));
261
- var G = h().span.withConfig({
186
+ })([ "min-height:", ";flex:1 0 auto;" ], P.variables.inputHeight);
187
+ var M = y().span.withConfig({
262
188
  displayName: "CollapsiblePanelStyles__StyledDescription",
263
189
  componentId: "sc-1phikbp-8"
264
- })([ "font-size:", ";margin-left:", ";" ], P.variables.fontSizeSmall, (0, P.pick)({
265
- enterprise: P.variables.spacingSmall,
266
- prisma: P.variables.spacingLarge
190
+ })([ "color:", ";font-size:", ";margin-left:", ";line-height:1.8;", "" ], P.variables.contentColorDefault, P.variables.fontSizeSmall, P.variables.spacingSmall, (function(e) {
191
+ var n = e.$disabled;
192
+ return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
267
193
  }));
268
- var H = h().div.withConfig({
194
+ var W = y().div.withConfig({
269
195
  displayName: "CollapsiblePanelStyles__StyledInsetWrapper",
270
196
  componentId: "sc-1phikbp-9"
271
- })([ "", ";padding:", ";" ], P.mixins.reset("block"), (0, P.pickVariant)("$inset", {
272
- true: (0, P.pick)({
273
- enterprise: {
274
- compact: P.variables.spacingXSmall,
275
- comfortable: P.variables.spacingSmall
276
- },
277
- prisma: {
278
- compact: P.variables.spacingMedium,
279
- comfortable: P.variables.spacingXLarge
280
- }
281
- }),
282
- false: 0
197
+ })([ "", ";gap:", ";", "" ], P.mixins.reset("block"), P.variables.spacingSmall, (function(e) {
198
+ var n = e.$inset;
199
+ return n && (0, v.css)([ "padding:", ";" ], P.variables.spacingLarge);
283
200
  }));
284
- var U = h()(R).withConfig({
201
+ var H = y()(_).withConfig({
285
202
  displayName: "CollapsiblePanelStyles__StyledExpandPanelIcon",
286
203
  componentId: "sc-1phikbp-10"
287
- })([ "transition:transform ", ";", ";", " width:100%;vertical-align:", ";" ], (0,
288
- P.pick)({
204
+ })([ "transition:transform ", ";", " width:100%;vertical-align:", ";" ], (0, P.pick)({
289
205
  enterprise: "300ms",
290
206
  prisma: "200ms"
291
- }), (0, P.pick)({
292
- enterprise: (0, g.css)([ "[disabled] &{color:", ";}" ], (0, P.pick)({
293
- dark: P.variables.contentColorDefault,
294
- light: P.variables.contentColorDisabled
295
- })),
296
- prisma: (0, g.css)([ "color:", ";[disabled] &{color:inherit;}" ], P.variables.contentColorDefault)
297
207
  }), (function(e) {
298
- var t = e.open;
299
- return t && (0, g.css)([ "transform:rotate(90deg);" ]);
208
+ var n = e.open;
209
+ return n && (0, v.css)([ "transform:rotate(90deg);" ]);
300
210
  }), (0, P.pick)({
301
211
  enterprise: "baseline",
302
212
  prisma: "text-bottom"
303
213
  }));
304
214
  // CONCATENATED MODULE: ./src/CollapsiblePanel/SingleOpenPanelGroupContext.tsx
305
- var z = (0, n.createContext)({});
306
- /* harmony default export */ const V = z;
215
+ var V = (0, r.createContext)({});
216
+ /* harmony default export */ const G = V;
307
217
  // CONCATENATED MODULE: ./src/CollapsiblePanel/SingleOpenPanelGroup.tsx
308
- function F() {
309
- return F = Object.assign ? Object.assign.bind() : function(e) {
310
- for (var t = 1; t < arguments.length; t++) {
311
- var n = arguments[t];
312
- for (var r in n) {
313
- ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
218
+ function U() {
219
+ return U = Object.assign ? Object.assign.bind() : function(e) {
220
+ for (var n = 1; n < arguments.length; n++) {
221
+ var r = arguments[n];
222
+ for (var t in r) {
223
+ ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
314
224
  }
315
225
  }
316
226
  return e;
317
- }, F.apply(null, arguments);
227
+ }, U.apply(null, arguments);
318
228
  }
319
- function J(e) {
320
- return Y(e) || Q(e) || te(e) || K();
229
+ function z(e) {
230
+ return J(e) || F(e) || Y(e) || X();
321
231
  }
322
- function K() {
232
+ function X() {
323
233
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
324
234
  }
325
- function Q(e) {
235
+ function F(e) {
326
236
  if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
327
237
  }
328
- function Y(e) {
329
- if (Array.isArray(e)) return ne(e);
238
+ function J(e) {
239
+ if (Array.isArray(e)) return Z(e);
330
240
  }
331
- function Z(e, t) {
332
- return ae(e) || re(e, t) || te(e, t) || ee();
241
+ function K(e, n) {
242
+ return ne(e) || ee(e, n) || Y(e, n) || Q();
333
243
  }
334
- function ee() {
244
+ function Q() {
335
245
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
336
246
  }
337
- function te(e, t) {
247
+ function Y(e, n) {
338
248
  if (e) {
339
- if ("string" == typeof e) return ne(e, t);
340
- var n = {}.toString.call(e).slice(8, -1);
341
- 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) ? ne(e, t) : void 0;
249
+ if ("string" == typeof e) return Z(e, n);
250
+ var r = {}.toString.call(e).slice(8, -1);
251
+ 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) ? Z(e, n) : void 0;
342
252
  }
343
253
  }
344
- function ne(e, t) {
345
- (null == t || t > e.length) && (t = e.length);
346
- for (var n = 0, r = Array(t); n < t; n++) {
347
- r[n] = e[n];
254
+ function Z(e, n) {
255
+ (null == n || n > e.length) && (n = e.length);
256
+ for (var r = 0, t = Array(n); r < n; r++) {
257
+ t[r] = e[r];
348
258
  }
349
- return r;
259
+ return t;
350
260
  }
351
- function re(e, t) {
352
- var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
353
- if (null != n) {
354
- var r, a, o, i, l = [], s = !0, c = !1;
261
+ function ee(e, n) {
262
+ var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
263
+ if (null != r) {
264
+ var t, a, l, o, i = [], s = !0, c = !1;
355
265
  try {
356
- if (o = (n = n.call(e)).next, 0 === t) {
357
- if (Object(n) !== n) return;
266
+ if (l = (r = r.call(e)).next, 0 === n) {
267
+ if (Object(r) !== r) return;
358
268
  s = !1;
359
- } else for (;!(s = (r = o.call(n)).done) && (l.push(r.value), l.length !== t); s = !0) {
269
+ } else for (;!(s = (t = l.call(r)).done) && (i.push(t.value), i.length !== n); s = !0) {
360
270
  }
361
271
  } catch (e) {
362
272
  c = !0, a = e;
363
273
  } finally {
364
274
  try {
365
- if (!s && null != n["return"] && (i = n["return"](), Object(i) !== i)) return;
275
+ if (!s && null != r["return"] && (o = r["return"](), Object(o) !== o)) return;
366
276
  } finally {
367
277
  if (c) throw a;
368
278
  }
369
279
  }
370
- return l;
280
+ return i;
371
281
  }
372
282
  }
373
- function ae(e) {
283
+ function ne(e) {
374
284
  if (Array.isArray(e)) return e;
375
285
  }
376
- function oe(e, t) {
286
+ function re(e, n) {
377
287
  if (null == e) return {};
378
- var n, r, a = ie(e, t);
288
+ var r, t, a = te(e, n);
379
289
  if (Object.getOwnPropertySymbols) {
380
- var o = Object.getOwnPropertySymbols(e);
381
- for (r = 0; r < o.length; r++) {
382
- n = o[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
290
+ var l = Object.getOwnPropertySymbols(e);
291
+ for (t = 0; t < l.length; t++) {
292
+ r = l[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
383
293
  }
384
294
  }
385
295
  return a;
386
296
  }
387
- function ie(e, t) {
297
+ function te(e, n) {
388
298
  if (null == e) return {};
389
- var n = {};
390
- for (var r in e) {
391
- if ({}.hasOwnProperty.call(e, r)) {
392
- if (t.includes(r)) continue;
393
- n[r] = e[r];
299
+ var r = {};
300
+ for (var t in e) {
301
+ if ({}.hasOwnProperty.call(e, t)) {
302
+ if (n.includes(t)) continue;
303
+ r[t] = e[t];
394
304
  }
395
305
  }
396
- return n;
306
+ return r;
397
307
  }
398
- /** @public */ var le = {
399
- children: u().node,
400
- defaultOpenPanelId: u().any,
401
- elementRef: u().oneOfType([ u().func, u().object ]),
402
- inset: u().bool,
403
- onChange: u().func,
404
- openPanelId: u().any
308
+ /** @public */ var ae = {
309
+ children: l().node,
310
+ defaultOpenPanelId: l().any,
311
+ elementRef: l().oneOfType([ l().func, l().object ]),
312
+ inset: l().bool,
313
+ onChange: l().func,
314
+ openPanelId: l().any
405
315
  };
406
- function se(e) {
316
+ function le(e) {
317
+ var n = e.children, a = e.defaultOpenPanelId, l = e.elementRef, o = e.inset, i = o === void 0 ? true : o, s = e.onChange, c = e.openPanelId, p = re(e, [ "children", "defaultOpenPanelId", "elementRef", "inset", "onChange", "openPanelId" ]);
407
318
  // @docs-props-type SingleOpenPanelGroupPropsBase
408
- var t = e.children, a = e.defaultOpenPanelId, i = e.elementRef, l = e.inset, s = l === void 0 ? false : l, p = e.onChange, u = e.openPanelId, d = oe(e, [ "children", "defaultOpenPanelId", "elementRef", "inset", "onChange", "openPanelId" ]);
409
- var f = o()(e, "openPanelId");
410
- var b = y()(a);
411
- var v = !f ? a : undefined;
412
- var m = (0, n.useState)(v), g = Z(m, 2), h = g[0], k = g[1];
413
- var C = function e() {
414
- var t = f ? u : h;
415
- return t;
416
- };
417
- var x = (0, n.useCallback)((function(e, t) {
418
- var n = t.panelId;
419
- var r = C();
420
- var a = r === n ? null : n;
421
- if (!f) {
422
- k(a);
319
+ var d = u()({
320
+ componentName: "SingleOpenPanelGroup",
321
+ /* eslint-disable-next-line prefer-rest-params */
322
+ componentProps: arguments[0],
323
+ // see SUI-7028
324
+ defaultValuePropName: "defaultOpenPanelId",
325
+ valuePropName: "openPanelId"
326
+ });
327
+ var f = !d ? a : undefined;
328
+ var v = (0, r.useState)(f), y = K(v, 2), m = y[0], g = y[1];
329
+ var h = (0, r.useCallback)((function(e, n) {
330
+ var r = n.panelId;
331
+ var t = d ? c : m;
332
+ var a = t === r ? null : r;
333
+ if (!d) {
334
+ g(a);
423
335
  }
424
- p === null || p === void 0 ? void 0 : p(e, t);
425
- }), [ u, f, h, C, p ]);
426
- (0, n.useEffect)((function() {
427
- if (false) {}
428
- // In this functional component, we want the dependencies to be [], but when we do that
429
- // we get a linting error.
430
- // eslint-disable-next-line react-hooks/exhaustive-deps
431
- }), []);
432
- (0, n.useEffect)((function() {
433
- if (false) {}
434
- }), [ b, f ]);
435
- (0, n.useEffect)((function() {
436
- if (false) {}
437
- }), [ b, a ]);
438
- var O = n.Children.toArray(t).filter(n.isValidElement);
336
+ s === null || s === void 0 ? void 0 : s(e, n);
337
+ }), [ d, c, m, s ]);
338
+ var S = r.Children.toArray(n).filter(r.isValidElement);
439
339
  // remove false, null, 0, etc
440
- var S = (0, n.useMemo)((function() {
340
+ var C = (0, r.useMemo)((function() {
441
341
  return {
442
- onChange: x,
443
- openPanelId: f ? u : h,
444
- inset: s
342
+ onChange: h,
343
+ openPanelId: d ? c : m,
344
+ inset: i
445
345
  };
446
- }), [ x, f, s, u, h ]);
346
+ }), [ h, i, d, c, m ]);
447
347
 
448
- return r().createElement(D, F({
348
+ return t().createElement(A, U({
449
349
  "data-test": "single-open-panel-group",
450
- "data-test-open-panel-id": u,
451
- elementRef: i
452
- }, c().apply(void 0, [ d ].concat(J(Object.keys(le))))), r().createElement(V.Provider, {
453
- value: S
454
- }, O));
350
+ "data-test-open-panel-id": c,
351
+ elementRef: l
352
+ }, b().apply(void 0, [ p ].concat(z(Object.keys(ae))))), t().createElement(G.Provider, {
353
+ value: C
354
+ }, S));
455
355
  }
456
- se.propTypes = le;
457
- /* harmony default export */ const ce = se;
356
+ le.propTypes = ae;
357
+ /* harmony default export */ const oe = le;
458
358
  // CONCATENATED MODULE: ./src/CollapsiblePanel/CollapsiblePanel.tsx
459
- function pe(e) {
359
+ function ie(e) {
460
360
  "@babel/helpers - typeof";
461
- return pe = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
361
+ return ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
462
362
  return typeof e;
463
363
  } : function(e) {
464
364
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
465
- }, pe(e);
365
+ }, ie(e);
466
366
  }
467
- function ue() {
468
- return ue = Object.assign ? Object.assign.bind() : function(e) {
469
- for (var t = 1; t < arguments.length; t++) {
470
- var n = arguments[t];
471
- for (var r in n) {
472
- ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
473
- }
474
- }
475
- return e;
476
- }, ue.apply(null, arguments);
477
- }
478
- function de(e, t) {
479
- var n = Object.keys(e);
367
+ function se(e, n) {
368
+ var r = Object.keys(e);
480
369
  if (Object.getOwnPropertySymbols) {
481
- var r = Object.getOwnPropertySymbols(e);
482
- t && (r = r.filter((function(t) {
483
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
484
- }))), n.push.apply(n, r);
370
+ var t = Object.getOwnPropertySymbols(e);
371
+ n && (t = t.filter((function(n) {
372
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
373
+ }))), r.push.apply(r, t);
485
374
  }
486
- return n;
375
+ return r;
487
376
  }
488
- function fe(e) {
489
- for (var t = 1; t < arguments.length; t++) {
490
- var n = null != arguments[t] ? arguments[t] : {};
491
- t % 2 ? de(Object(n), !0).forEach((function(t) {
492
- Se(e, t, n[t]);
493
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : de(Object(n)).forEach((function(t) {
494
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
377
+ function ce(e) {
378
+ for (var n = 1; n < arguments.length; n++) {
379
+ var r = null != arguments[n] ? arguments[n] : {};
380
+ n % 2 ? se(Object(r), !0).forEach((function(n) {
381
+ ue(e, n, r[n]);
382
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : se(Object(r)).forEach((function(n) {
383
+ Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
495
384
  }));
496
385
  }
497
386
  return e;
498
387
  }
499
- function be(e, t) {
500
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
388
+ function ue(e, n, r) {
389
+ return (n = pe(n)) in e ? Object.defineProperty(e, n, {
390
+ value: r,
391
+ enumerable: !0,
392
+ configurable: !0,
393
+ writable: !0
394
+ }) : e[n] = r, e;
501
395
  }
502
- function ve(e, t) {
503
- for (var n = 0; n < t.length; n++) {
504
- var r = t[n];
505
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
506
- Object.defineProperty(e, we(r.key), r);
507
- }
396
+ function pe(e) {
397
+ var n = de(e, "string");
398
+ return "symbol" == ie(n) ? n : n + "";
508
399
  }
509
- function me(e, t, n) {
510
- return t && ve(e.prototype, t), n && ve(e, n), Object.defineProperty(e, "prototype", {
511
- writable: !1
512
- }), e;
400
+ function de(e, n) {
401
+ if ("object" != ie(e) || !e) return e;
402
+ var r = e[Symbol.toPrimitive];
403
+ if (void 0 !== r) {
404
+ var t = r.call(e, n || "default");
405
+ if ("object" != ie(t)) return t;
406
+ throw new TypeError("@@toPrimitive must return a primitive value.");
407
+ }
408
+ return ("string" === n ? String : Number)(e);
513
409
  }
514
- function ye(e, t) {
515
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
516
- e.prototype = Object.create(t && t.prototype, {
517
- constructor: {
518
- value: e,
519
- writable: !0,
520
- configurable: !0
410
+ function fe() {
411
+ return fe = Object.assign ? Object.assign.bind() : function(e) {
412
+ for (var n = 1; n < arguments.length; n++) {
413
+ var r = arguments[n];
414
+ for (var t in r) {
415
+ ({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
416
+ }
521
417
  }
522
- }), Object.defineProperty(e, "prototype", {
523
- writable: !1
524
- }), t && ge(e, t);
525
- }
526
- function ge(e, t) {
527
- return ge = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
528
- return e.__proto__ = t, e;
529
- }, ge(e, t);
418
+ return e;
419
+ }, fe.apply(null, arguments);
530
420
  }
531
- function he(e) {
532
- var t = xe();
533
- return function() {
534
- var n, r = Oe(e);
535
- if (t) {
536
- var a = Oe(this).constructor;
537
- n = Reflect.construct(r, arguments, a);
538
- } else n = r.apply(this, arguments);
539
- return ke(this, n);
540
- };
421
+ function be(e, n) {
422
+ return he(e) || ge(e, n) || ye(e, n) || ve();
541
423
  }
542
- function ke(e, t) {
543
- if (t && ("object" == pe(t) || "function" == typeof t)) return t;
544
- if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
545
- return Ce(e);
424
+ function ve() {
425
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
546
426
  }
547
- function Ce(e) {
548
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
549
- return e;
427
+ function ye(e, n) {
428
+ if (e) {
429
+ if ("string" == typeof e) return me(e, n);
430
+ var r = {}.toString.call(e).slice(8, -1);
431
+ 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) ? me(e, n) : void 0;
432
+ }
550
433
  }
551
- function xe() {
552
- try {
553
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
554
- } catch (e) {}
555
- return (xe = function t() {
556
- return !!e;
557
- })();
434
+ function me(e, n) {
435
+ (null == n || n > e.length) && (n = e.length);
436
+ for (var r = 0, t = Array(n); r < n; r++) {
437
+ t[r] = e[r];
438
+ }
439
+ return t;
558
440
  }
559
- function Oe(e) {
560
- return Oe = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
561
- return e.__proto__ || Object.getPrototypeOf(e);
562
- }, Oe(e);
441
+ function ge(e, n) {
442
+ var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
443
+ if (null != r) {
444
+ var t, a, l, o, i = [], s = !0, c = !1;
445
+ try {
446
+ if (l = (r = r.call(e)).next, 0 === n) {
447
+ if (Object(r) !== r) return;
448
+ s = !1;
449
+ } else for (;!(s = (t = l.call(r)).done) && (i.push(t.value), i.length !== n); s = !0) {
450
+ }
451
+ } catch (e) {
452
+ c = !0, a = e;
453
+ } finally {
454
+ try {
455
+ if (!s && null != r["return"] && (o = r["return"](), Object(o) !== o)) return;
456
+ } finally {
457
+ if (c) throw a;
458
+ }
459
+ }
460
+ return i;
461
+ }
563
462
  }
564
- function Se(e, t, n) {
565
- return (t = we(t)) in e ? Object.defineProperty(e, t, {
566
- value: n,
567
- enumerable: !0,
568
- configurable: !0,
569
- writable: !0
570
- }) : e[t] = n, e;
463
+ function he(e) {
464
+ if (Array.isArray(e)) return e;
571
465
  }
572
- function we(e) {
573
- var t = Pe(e, "string");
574
- return "symbol" == pe(t) ? t : t + "";
466
+ function Se(e, n) {
467
+ if (null == e) return {};
468
+ var r, t, a = Ce(e, n);
469
+ if (Object.getOwnPropertySymbols) {
470
+ var l = Object.getOwnPropertySymbols(e);
471
+ for (t = 0; t < l.length; t++) {
472
+ r = l[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
473
+ }
474
+ }
475
+ return a;
575
476
  }
576
- function Pe(e, t) {
577
- if ("object" != pe(e) || !e) return e;
578
- var n = e[Symbol.toPrimitive];
579
- if (void 0 !== n) {
580
- var r = n.call(e, t || "default");
581
- if ("object" != pe(r)) return r;
582
- throw new TypeError("@@toPrimitive must return a primitive value.");
477
+ function Ce(e, n) {
478
+ if (null == e) return {};
479
+ var r = {};
480
+ for (var t in e) {
481
+ if ({}.hasOwnProperty.call(e, t)) {
482
+ if (n.includes(t)) continue;
483
+ r[t] = e[t];
484
+ }
583
485
  }
584
- return ("string" === t ? String : Number)(e);
486
+ return r;
585
487
  }
586
- /** @public @deprecated Use `CollapsiblePanelChangeHandler` */
587
- /** @public @deprecated Use `CollapsiblePanelChangeHandler` */
588
- /** @public */ var Ie = {
589
- innerBodyStyles: u().object,
590
- actions: u().node,
591
- children: u().node,
592
- defaultOpen: u().bool,
593
- description: u().string,
594
- disabled: u().bool,
595
- elementRef: u().oneOfType([ u().func, u().object ]),
596
- headingLevel: u().number,
597
- inset: u().bool,
598
- onRequestClose: u().func,
599
- onRequestOpen: u().func,
600
- onChange: u().func,
601
- open: u().bool,
602
- overflow: u().string,
603
- panelId: u().any,
604
- renderChildrenWhenCollapsed: u().bool,
605
- title: u().node.isRequired,
606
- titleWithActions: u().bool
607
- };
608
- var je = {
609
- disabled: false,
610
- overflow: "auto",
611
- renderChildrenWhenCollapsed: false,
612
- titleWithActions: false,
613
- inset: false
488
+ /** @public */ var Oe = {
489
+ innerBodyStyles: l().object,
490
+ actions: l().node,
491
+ appearance: l().oneOf([ "default", "subtle" ]),
492
+ children: l().node,
493
+ defaultOpen: l().bool,
494
+ description: l().string,
495
+ disabled: l().oneOfType([ l().bool, l().oneOf([ "dimmed", "disabled" ]) ]),
496
+ elementRef: l().oneOfType([ l().func, l().object ]),
497
+ headingLevel: l().number,
498
+ inset: l().bool,
499
+ onChange: l().func,
500
+ open: l().bool,
501
+ overflow: l().string,
502
+ panelId: l().any,
503
+ renderChildrenWhenCollapsed: l().bool,
504
+ title: l().node.isRequired
614
505
  };
615
- var Ee = function(e) {
616
- ye(n, e);
617
- var t = he(n);
506
+ function Pe(e) {
507
+ var n = e.innerBodyStyles, a = e.actions, l = e.appearance, o = l === void 0 ? "default" : l, c = e.children, p = e.defaultOpen, f = p === void 0 ? undefined : p, b = e.description, v = e.disabled, y = e.elementRef, m = e.headingLevel, g = e.onChange, h = e.open, S = e.overflow, C = S === void 0 ? "auto" : S, O = e.panelId, P = e.renderChildrenWhenCollapsed, w = e.title, k = e.inset, I = k === void 0 ? true : k, j = Se(e, [ "innerBodyStyles", "actions", "appearance", "children", "defaultOpen", "description", "disabled", "elementRef", "headingLevel", "onChange", "open", "overflow", "panelId", "renderChildrenWhenCollapsed", "title", "inset" ]);
618
508
  // @docs-props-type CollapsiblePanelPropsBase
619
- function n(e) {
620
- var r;
621
- be(this, n);
622
- r = t.call(this, e);
623
- Se(Ce(r), "controlledExternally", void 0);
624
- Se(Ce(r), "containerId", void 0);
625
- Se(Ce(r), "toggleId", void 0);
626
- Se(Ce(r), "handleRequestClose", (function(e) {
627
- var t = r.props, n = t.panelId, a = t.onRequestClose;
628
- a === null || a === void 0 ? void 0 : a({
629
- event: e,
630
- panelId: n,
631
- reason: "toggleClick"
632
- });
633
- }));
634
- Se(Ce(r), "handleRequestOpen", (function(e) {
635
- var t = r.props, n = t.panelId, a = t.onRequestOpen;
636
- a === null || a === void 0 ? void 0 : a({
637
- event: e,
638
- panelId: n,
639
- reason: "toggleClick"
640
- });
641
- }));
642
- Se(Ce(r), "handleChange", (function(e) {
643
- var t, n;
644
- var a = r.props, o = a.panelId, i = a.onChange;
645
- var l = r.isOpen();
646
- if (!r.isControlled()) {
647
- r.setState({
648
- animating: true,
649
- open: !l
650
- });
651
- }
652
- var s = l ? "close" : "open";
653
- i === null || i === void 0 ? void 0 : i(e, {
654
- panelId: o,
655
- reason: "toggleClick",
656
- action: s
657
- });
658
- (t = (n = r.context).onChange) === null || t === void 0 ? void 0 : t.call(n, e, {
659
- panelId: o,
660
- reason: "toggleClick",
661
- action: s
662
- });
663
- // Maintains backwards compatibility until the `handleRequestClose` and `handleRequestOpen` handlers are removed in SUI-5
664
- if (l) {
665
- r.handleRequestClose(e);
666
- } else {
667
- r.handleRequestOpen(e);
668
- }
669
- }));
670
- Se(Ce(r), "handleAnimationEnd", (function() {
671
- r.setState({
672
- animating: false
673
- });
674
- }));
675
- r.controlledExternally = o()(e, "open");
676
- r.state = fe(fe({}, !r.isControlled() ? {
677
- open: e.defaultOpen || false
678
- } : undefined), {}, {
679
- animating: false
680
- });
681
- if (false) {}
682
- if (false) {}
683
- if (false) {}
684
- r.containerId = "container-".concat((0, b.createGUID)());
685
- r.toggleId = "toggle-".concat((0, b.createGUID)());
686
- return r;
687
- }
688
- // Only testing this in the scenario of a SingleOpenPanelGroup.
689
- me(n, [ {
690
- key: "componentDidMount",
691
- value: function e() {
692
- if (false) {}
693
- }
694
- }, {
695
- key: "componentDidUpdate",
696
- value: function e(t) {
697
- if (this.props.open !== t.open) {
698
- this.setState({
699
- animating: true
700
- });
701
- // eslint-disable-line react/no-did-update-set-state
702
- }
703
- if (false) {}
704
- if (false) {}
705
- }
706
- /**
707
- * SingleOpenPanelGroup already takes into account if it is controlled or not in determining openPanelId
708
- * so this.context.openPanelId is used for both the controlled and uncontrolled case.
709
- */ }, {
710
- key: "isOpen",
711
- value: function e() {
712
- var e = this.isControlled() ? this.props.open : this.state.open;
713
- var t = this.context.openPanelId !== undefined ? this.context.openPanelId === this.props.panelId : e;
714
- return t;
509
+ var x = (0, r.useContext)(G);
510
+ var E = Object.keys(x).length !== 0;
511
+ var _ = u()({
512
+ componentName: "CollapsiblePanel",
513
+ /* eslint-disable-next-line prefer-rest-params */
514
+ componentProps: arguments[0],
515
+ // see SUI-7028
516
+ defaultValuePropName: "defaultOpen",
517
+ valuePropName: "open"
518
+ });
519
+ var A = (0, r.useState)("container-".concat((0, s.createGUID)())), T = be(A, 1), V = T[0];
520
+ var U = (0, r.useState)("toggle-".concat((0, s.createGUID)())), z = be(U, 1), X = z[0];
521
+ var F = !_ ? f || false : undefined;
522
+ var J = (0, r.useState)(F), K = be(J, 2), Q = K[0], Y = K[1];
523
+ var Z = (0, r.useState)(false), ee = be(Z, 2), ne = ee[0], re = ee[1];
524
+ /**
525
+ * SingleOpenPanelGroup already takes into account if it is controlled or not in determining openPanelId
526
+ * so context.openPanelId is used for both the controlled and uncontrolled case.
527
+ */ var te = (0, r.useCallback)((function() {
528
+ if (E) {
529
+ return x.openPanelId === O;
715
530
  }
716
- // Using all three handlers: `handleRequestClose` and `handleRequestOpen` and `handleChange` to test interoperability and maintain backwards compatibility until the open/close handlers are removed in SUI-5
717
- }, {
718
- key: "isControlled",
719
- value: function e() {
720
- return this.controlledExternally;
531
+ return _ ? h : Q;
532
+ }), [ x.openPanelId, E, _, h, Q, O ]);
533
+ var ae = d()(h);
534
+ // Only testing this in the scenario of a SingleOpenPanelGroup.
535
+ (0, r.useEffect)((function() {
536
+ if (false) {}
537
+ }), [ f, E, h ]);
538
+ (0, r.useEffect)((function() {
539
+ if (ae != null && h !== ae) {
540
+ re(true);
721
541
  }
722
- }, {
723
- key: "render",
724
- value: function e() {
725
- var t = this.props, a = t.innerBodyStyles, o = t.actions, i = t.children, s = t.description, p = t.disabled, u = t.elementRef, d = t.headingLevel, m = t.overflow, y = t.renderChildrenWhenCollapsed, g = t.title, h = t.titleWithActions, k = t.inset;
726
- var C = this.state.animating;
727
- var x = (0, b.createDOMID)("panel-toggle");
728
- var O = this.isOpen();
729
- var S = {
730
- disabled: p,
731
- onClick: this.handleChange,
732
- id: this.toggleId,
733
- "aria-controls": this.containerId,
734
- "aria-expanded": O,
735
- $open: !!O,
736
- "data-test": "toggle"
737
- };
738
-
739
- return r().createElement(T, ue({
740
- "data-test": "collapsible-panel",
741
- elementRef: u
742
- }, c()(this.props, l()(n.propTypes))), h || o != null ? r().createElement(B, {
743
- $disabled: p
744
- }, r().createElement(W, ue({
745
- appearance: "subtle",
746
- "aria-label": (0, v._)("Panel"),
747
- "aria-labelledby": x
748
- }, S), r().createElement(U, {
749
- open: !!O
750
- })), r().createElement($, {
751
- $titleWithActions: h,
752
- "data-test": "title",
753
- id: o != null ? x : undefined
754
- }, g), o != null && r().createElement(M, null, o)) :
755
-
756
- /* Clickable component is not allowed to have role="heading" so it is wrapped with a span */
757
- r().createElement("span", {
758
- "data-test": "heading",
759
- role: d ? "heading" : undefined,
760
- "aria-level": d
761
- }, r().createElement(L, S, r().createElement(X, null, r().createElement(U, {
762
- open: !!O
763
- })), r().createElement($, null, r().createElement("span", {
764
- "data-test": "title"
765
- }, g), s && r().createElement(G, {
766
- "data-test": "description"
767
- }, s)))), r().createElement(f(), {
768
- outerId: this.containerId,
769
- "aria-labelledby": this.toggleId,
770
- "data-test": "body",
771
- outerStyle: {
772
- overflow: C ? "hidden" : m
773
- },
774
- innerStyle: fe({
775
- tableLayout: "fixed"
776
- }, a),
777
- open: O,
778
- onAnimationEnd: this.handleAnimationEnd,
779
- role: o != null ? "region" : undefined,
780
- renderChildrenWhenCollapsed: y
781
- }, r().createElement(H, {
782
- $inset: k
783
- }, i)));
542
+ }), [ h, ae ]);
543
+ var le = (0, r.useCallback)((function(e) {
544
+ var n;
545
+ var r = te();
546
+ if (!_) {
547
+ re(true);
548
+ Y(!r);
784
549
  }
785
- } ]);
786
- return n;
787
- }(n.Component);
788
- Se(Ee, "propTypes", Ie);
789
- Se(Ee, "defaultProps", je);
790
- Se(Ee, "contextType", V);
791
- /* harmony default export */ const _e = Ee;
550
+ var t = r ? "close" : "open";
551
+ g === null || g === void 0 ? void 0 : g(e, {
552
+ panelId: O,
553
+ reason: "toggleClick",
554
+ action: t
555
+ });
556
+ (n = x.onChange) === null || n === void 0 ? void 0 : n.call(x, e, {
557
+ panelId: O,
558
+ reason: "toggleClick",
559
+ action: t
560
+ });
561
+ }), [ x, _, te, g, O ]);
562
+ var oe = (0, r.useCallback)((function() {
563
+ re(false);
564
+ }), []);
565
+ var ie = (0, s.createDOMID)("panel-toggle");
566
+ var se = te();
567
+ var ue = {
568
+ disabled: v,
569
+ onClick: le,
570
+ id: X,
571
+ "aria-controls": V,
572
+ "aria-expanded": se,
573
+ "data-test": "toggle"
574
+ };
575
+
576
+ return t().createElement(N, fe({
577
+ "data-test": "collapsible-panel",
578
+ elementRef: y,
579
+ $appearance: o
580
+ }, j), a != null ? t().createElement(q, {
581
+ $appearance: o,
582
+ $disabled: !!v
583
+ }, t().createElement(D, fe({
584
+ appearance: "secondary",
585
+ "aria-labelledby": ie
586
+ }, ue), t().createElement(H, {
587
+ open: !!se
588
+ })), t().createElement(B, {
589
+ $disabled: !!v,
590
+ "data-test": "title",
591
+ id: ie
592
+ }, w), t().createElement(L, null, a)) :
593
+
594
+ /* Clickable component is not allowed to have role="heading" so it is wrapped with a span */
595
+ t().createElement("span", {
596
+ "data-test": "heading",
597
+ role: m ? "heading" : undefined,
598
+ "aria-level": m
599
+ }, t().createElement(R, fe({
600
+ $appearance: o
601
+ }, ue), t().createElement($, null, t().createElement(H, {
602
+ open: !!se
603
+ })), t().createElement(B, {
604
+ $disabled: !!v
605
+ }, t().createElement("span", {
606
+ "data-test": "title"
607
+ }, w), b && t().createElement(M, {
608
+ $disabled: !!v,
609
+ "data-test": "description"
610
+ }, b)))), t().createElement(i(), {
611
+ outerId: V,
612
+ "aria-labelledby": X,
613
+ "data-test": "body",
614
+ outerStyle: {
615
+ overflow: ne ? "hidden" : C
616
+ },
617
+ innerStyle: ce({
618
+ tableLayout: "fixed"
619
+ }, n),
620
+ open: se,
621
+ onAnimationEnd: oe,
622
+ role: a != null ? "region" : undefined,
623
+ renderChildrenWhenCollapsed: P
624
+ }, t().createElement(W, {
625
+ $inset: I
626
+ }, c)));
627
+ }
628
+ Pe.propTypes = Oe;
629
+ /* harmony default export */ const we = Pe;
792
630
  // CONCATENATED MODULE: ./src/CollapsiblePanel/index.ts
793
- module.exports = t;
631
+ module.exports = n;
794
632
  /******/})();