@canonical/react-components 3.12.1 → 3.12.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 (370) hide show
  1. package/dist/components/Accordion/Accordion.js +5 -6
  2. package/dist/components/Accordion/Accordion.stories.js +2 -3
  3. package/dist/components/Accordion/AccordionSection/AccordionSection.js +1 -2
  4. package/dist/components/Accordion/AccordionSection/index.js +1 -1
  5. package/dist/components/Accordion/index.js +1 -1
  6. package/dist/components/ActionButton/ActionButton.js +5 -6
  7. package/dist/components/ActionButton/ActionButton.stories.js +1 -1
  8. package/dist/components/ActionButton/index.js +1 -1
  9. package/dist/components/ApplicationLayout/AppAside/AppAside.js +4 -4
  10. package/dist/components/ApplicationLayout/AppAside/AppAside.stories.js +3 -4
  11. package/dist/components/ApplicationLayout/AppAside/index.js +1 -1
  12. package/dist/components/ApplicationLayout/AppMain/AppMain.js +4 -4
  13. package/dist/components/ApplicationLayout/AppMain/AppMain.stories.js +1 -1
  14. package/dist/components/ApplicationLayout/AppMain/index.js +1 -1
  15. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.js +4 -4
  16. package/dist/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +3 -4
  17. package/dist/components/ApplicationLayout/AppNavigation/index.js +1 -1
  18. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +4 -4
  19. package/dist/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.stories.js +2 -3
  20. package/dist/components/ApplicationLayout/AppNavigationBar/index.js +1 -1
  21. package/dist/components/ApplicationLayout/AppStatus/AppStatus.js +4 -4
  22. package/dist/components/ApplicationLayout/AppStatus/AppStatus.stories.js +1 -1
  23. package/dist/components/ApplicationLayout/AppStatus/index.js +1 -1
  24. package/dist/components/ApplicationLayout/Application/Application.js +4 -4
  25. package/dist/components/ApplicationLayout/Application/Application.stories.js +1 -1
  26. package/dist/components/ApplicationLayout/Application/index.js +1 -1
  27. package/dist/components/ApplicationLayout/ApplicationLayout.js +4 -5
  28. package/dist/components/ApplicationLayout/ApplicationLayout.stories.js +2 -3
  29. package/dist/components/ApplicationLayout/index.js +1 -1
  30. package/dist/components/ArticlePagination/ArticlePagination.js +4 -4
  31. package/dist/components/ArticlePagination/ArticlePagination.stories.js +1 -1
  32. package/dist/components/ArticlePagination/index.js +1 -1
  33. package/dist/components/Badge/Badge.js +4 -4
  34. package/dist/components/Badge/Badge.stories.js +2 -3
  35. package/dist/components/Badge/index.js +1 -1
  36. package/dist/components/Button/Button.js +4 -4
  37. package/dist/components/Button/Button.stories.js +2 -3
  38. package/dist/components/Button/index.js +1 -2
  39. package/dist/components/Card/Card.js +5 -6
  40. package/dist/components/Card/Card.stories.js +3 -3
  41. package/dist/components/Card/index.js +1 -1
  42. package/dist/components/CheckboxInput/CheckableInput/CheckableInput.js +5 -6
  43. package/dist/components/CheckboxInput/CheckableInput/index.js +1 -1
  44. package/dist/components/CheckboxInput/CheckboxInput.js +4 -4
  45. package/dist/components/CheckboxInput/CheckboxInput.stories.js +1 -1
  46. package/dist/components/CheckboxInput/index.js +1 -1
  47. package/dist/components/Chip/Chip.js +4 -4
  48. package/dist/components/Chip/Chip.stories.js +1 -1
  49. package/dist/components/Chip/index.js +1 -1
  50. package/dist/components/Code/Code.js +5 -6
  51. package/dist/components/Code/index.js +1 -1
  52. package/dist/components/CodeSnippet/CodeSnippet.js +4 -4
  53. package/dist/components/CodeSnippet/CodeSnippet.stories.js +2 -3
  54. package/dist/components/CodeSnippet/CodeSnippetBlock.js +2 -2
  55. package/dist/components/CodeSnippet/CodeSnippetDropdown.js +4 -4
  56. package/dist/components/CodeSnippet/index.js +1 -1
  57. package/dist/components/Col/Col.js +4 -4
  58. package/dist/components/Col/Col.stories.js +1 -1
  59. package/dist/components/Col/index.js +1 -2
  60. package/dist/components/ColumnSelector/ColumnSelector.js +2 -2
  61. package/dist/components/ColumnSelector/ColumnSelector.stories.js +2 -3
  62. package/dist/components/ColumnSelector/ColumnSelectorStoriesHelper.js +1 -1
  63. package/dist/components/ColumnSelector/columnSelectorHelper.js +2 -2
  64. package/dist/components/ColumnSelector/index.js +1 -1
  65. package/dist/components/ConfirmationButton/ConfirmationButton.js +4 -4
  66. package/dist/components/ConfirmationButton/ConfirmationButton.stories.js +2 -3
  67. package/dist/components/ConfirmationButton/index.js +1 -1
  68. package/dist/components/ConfirmationModal/ConfirmationModal.js +4 -4
  69. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +2 -3
  70. package/dist/components/ConfirmationModal/index.js +1 -1
  71. package/dist/components/ContextualMenu/ContextualMenu.d.ts +10 -5
  72. package/dist/components/ContextualMenu/ContextualMenu.js +109 -14
  73. package/dist/components/ContextualMenu/ContextualMenu.stories.js +2 -2
  74. package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +1 -1
  75. package/dist/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +10 -9
  76. package/dist/components/ContextualMenu/ContextualMenuDropdown/index.js +1 -1
  77. package/dist/components/ContextualMenu/index.js +1 -1
  78. package/dist/components/CustomLayout/CustomLayout.js +1 -1
  79. package/dist/components/CustomLayout/CustomLayout.stories.js +1 -1
  80. package/dist/components/CustomLayout/index.js +1 -1
  81. package/dist/components/CustomSelect/CustomSelect.js +6 -6
  82. package/dist/components/CustomSelect/CustomSelect.stories.d.ts +1 -1
  83. package/dist/components/CustomSelect/CustomSelect.stories.js +6 -7
  84. package/dist/components/CustomSelect/CustomSelectDropdown/CustomSelectDropdown.js +2 -3
  85. package/dist/components/CustomSelect/CustomSelectDropdown/index.js +1 -2
  86. package/dist/components/CustomSelect/index.js +1 -1
  87. package/dist/components/DoughnutChart/DoughnutChart.js +31 -14
  88. package/dist/components/DoughnutChart/DoughnutChart.stories.js +1 -1
  89. package/dist/components/DoughnutChart/index.js +1 -1
  90. package/dist/components/EmptyState/EmptyState.js +4 -4
  91. package/dist/components/EmptyState/EmptyState.stories.js +2 -3
  92. package/dist/components/EmptyState/index.js +1 -1
  93. package/dist/components/EventQueue/EventQueue.js +1 -2
  94. package/dist/components/EventQueue/EventQueue.stories.js +2 -3
  95. package/dist/components/Field/Field.js +4 -4
  96. package/dist/components/Field/index.js +1 -1
  97. package/dist/components/Form/Form.js +4 -4
  98. package/dist/components/Form/Form.stories.js +1 -1
  99. package/dist/components/Form/index.js +1 -1
  100. package/dist/components/FormikField/FormikField.js +4 -4
  101. package/dist/components/FormikField/FormikField.stories.js +1 -1
  102. package/dist/components/FormikField/index.js +1 -1
  103. package/dist/components/Icon/Icon.js +4 -4
  104. package/dist/components/Icon/Icon.stories.js +2 -3
  105. package/dist/components/Icon/index.js +1 -2
  106. package/dist/components/Input/Input.js +7 -8
  107. package/dist/components/Input/Input.stories.js +1 -1
  108. package/dist/components/Input/index.js +1 -1
  109. package/dist/components/Label/Label.js +4 -4
  110. package/dist/components/Label/index.js +1 -1
  111. package/dist/components/Link/Link.js +4 -4
  112. package/dist/components/Link/Link.stories.js +1 -1
  113. package/dist/components/Link/index.js +1 -1
  114. package/dist/components/List/List.js +5 -5
  115. package/dist/components/List/List.stories.js +1 -1
  116. package/dist/components/List/index.js +1 -1
  117. package/dist/components/Loader/Loader.js +1 -1
  118. package/dist/components/Loader/index.js +1 -1
  119. package/dist/components/LoginPageLayout/LoginPageLayout.js +1 -1
  120. package/dist/components/LoginPageLayout/LoginPageLayout.stories.js +1 -1
  121. package/dist/components/LoginPageLayout/index.js +1 -1
  122. package/dist/components/MainTable/MainTable.js +5 -6
  123. package/dist/components/MainTable/MainTable.stories.js +2 -3
  124. package/dist/components/MainTable/index.js +1 -1
  125. package/dist/components/Modal/Modal.js +5 -6
  126. package/dist/components/Modal/Modal.stories.js +2 -3
  127. package/dist/components/Modal/index.js +1 -1
  128. package/dist/components/ModularTable/ModularTable.js +9 -10
  129. package/dist/components/ModularTable/ModularTable.stories.js +8 -9
  130. package/dist/components/ModularTable/index.js +1 -1
  131. package/dist/components/MultiSelect/FadeInDown/FadeInDown.js +1 -1
  132. package/dist/components/MultiSelect/MultiSelect.js +5 -6
  133. package/dist/components/MultiSelect/MultiSelect.stories.js +4 -5
  134. package/dist/components/Navigation/Navigation.js +7 -8
  135. package/dist/components/Navigation/Navigation.stories.js +1 -1
  136. package/dist/components/Navigation/NavigationLink/NavigationLink.js +6 -6
  137. package/dist/components/Navigation/NavigationLink/index.js +1 -1
  138. package/dist/components/Navigation/NavigationMenu/NavigationMenu.js +7 -8
  139. package/dist/components/Navigation/NavigationMenu/index.js +1 -1
  140. package/dist/components/Navigation/index.js +1 -1
  141. package/dist/components/NotificationProvider/NotificationProvider.js +2 -3
  142. package/dist/components/NotificationProvider/messageBuilder.js +1 -1
  143. package/dist/components/Notifications/Notification/Notification.js +5 -6
  144. package/dist/components/Notifications/Notification/Notification.stories.js +1 -2
  145. package/dist/components/Notifications/Notification/index.js +1 -2
  146. package/dist/components/Notifications/ToastNotification/Animate.js +1 -2
  147. package/dist/components/Notifications/ToastNotification/ToastNotification.js +2 -2
  148. package/dist/components/Notifications/ToastNotification/ToastNotification.stories.js +2 -3
  149. package/dist/components/Notifications/ToastNotification/ToastNotificationList.js +3 -4
  150. package/dist/components/Notifications/ToastNotification/ToastNotificationProvider.js +4 -5
  151. package/dist/components/Notifications/ToastNotification/index.js +2 -3
  152. package/dist/components/Notifications/index.js +1 -2
  153. package/dist/components/Pagination/Pagination.js +8 -8
  154. package/dist/components/Pagination/Pagination.stories.js +1 -1
  155. package/dist/components/Pagination/PaginationButton/PaginationButton.js +1 -1
  156. package/dist/components/Pagination/PaginationButton/index.js +1 -1
  157. package/dist/components/Pagination/PaginationItem/PaginationItem.js +1 -1
  158. package/dist/components/Pagination/PaginationItem/index.js +1 -1
  159. package/dist/components/Pagination/index.js +1 -1
  160. package/dist/components/Panel/Panel.js +4 -4
  161. package/dist/components/Panel/Panel.stories.js +1 -1
  162. package/dist/components/Panel/index.js +1 -1
  163. package/dist/components/PasswordToggle/PasswordToggle.js +5 -6
  164. package/dist/components/PasswordToggle/PasswordToggle.stories.js +1 -1
  165. package/dist/components/PasswordToggle/index.js +1 -1
  166. package/dist/components/PrefixedInput/PrefixedInput.js +5 -6
  167. package/dist/components/PrefixedInput/PrefixedInput.stories.js +1 -1
  168. package/dist/components/PrefixedInput/index.js +1 -1
  169. package/dist/components/PrefixedIpInput/PrefixedIpInput.js +4 -4
  170. package/dist/components/PrefixedIpInput/PrefixedIpInput.stories.js +3 -4
  171. package/dist/components/PrefixedIpInput/index.js +1 -1
  172. package/dist/components/RadioInput/RadioInput.js +4 -4
  173. package/dist/components/RadioInput/RadioInput.stories.js +1 -1
  174. package/dist/components/RadioInput/index.js +1 -1
  175. package/dist/components/Row/Row.js +4 -4
  176. package/dist/components/Row/Row.stories.js +1 -1
  177. package/dist/components/Row/index.js +1 -1
  178. package/dist/components/ScrollableContainer/ScrollableContainer.js +2 -3
  179. package/dist/components/ScrollableContainer/ScrollableContainer.stories.js +1 -1
  180. package/dist/components/ScrollableContainer/index.js +1 -1
  181. package/dist/components/ScrollableTable/ScrollableTable.js +1 -2
  182. package/dist/components/ScrollableTable/ScrollableTable.stories.js +3 -3
  183. package/dist/components/ScrollableTable/index.js +1 -1
  184. package/dist/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +4 -5
  185. package/dist/components/SearchAndFilter/FilterPanelSection/index.js +1 -1
  186. package/dist/components/SearchAndFilter/SearchAndFilter.js +5 -6
  187. package/dist/components/SearchAndFilter/SearchAndFilter.stories.js +1 -1
  188. package/dist/components/SearchAndFilter/index.js +1 -1
  189. package/dist/components/SearchBox/SearchBox.js +5 -6
  190. package/dist/components/SearchBox/SearchBox.stories.js +1 -1
  191. package/dist/components/SearchBox/index.js +1 -1
  192. package/dist/components/Select/Select.js +5 -6
  193. package/dist/components/Select/Select.stories.js +1 -1
  194. package/dist/components/Select/index.js +1 -1
  195. package/dist/components/SideNavigation/SideNavigation.js +4 -4
  196. package/dist/components/SideNavigation/SideNavigation.stories.js +1 -1
  197. package/dist/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +4 -4
  198. package/dist/components/SideNavigation/SideNavigationBase/index.js +1 -1
  199. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +4 -4
  200. package/dist/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +2 -2
  201. package/dist/components/SideNavigation/SideNavigationItem/index.js +1 -1
  202. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +4 -4
  203. package/dist/components/SideNavigation/SideNavigationLink/SideNavigationLink.stories.js +1 -1
  204. package/dist/components/SideNavigation/SideNavigationLink/index.js +1 -1
  205. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.js +4 -4
  206. package/dist/components/SideNavigation/SideNavigationText/SideNavigationText.stories.js +1 -1
  207. package/dist/components/SideNavigation/SideNavigationText/index.js +1 -1
  208. package/dist/components/SideNavigation/index.js +1 -1
  209. package/dist/components/SidePanel/SidePanel.js +3 -4
  210. package/dist/components/SidePanel/SidePanel.stories.js +2 -3
  211. package/dist/components/SidePanel/common/Content.js +1 -1
  212. package/dist/components/SidePanel/common/Footer.js +1 -1
  213. package/dist/components/SidePanel/common/Header.js +1 -1
  214. package/dist/components/SidePanel/common/HeaderControls.js +1 -1
  215. package/dist/components/SidePanel/common/HeaderTitle.js +1 -1
  216. package/dist/components/SidePanel/common/Sticky.js +1 -1
  217. package/dist/components/SidePanel/index.js +1 -1
  218. package/dist/components/SkipLink/SkipLink.js +1 -1
  219. package/dist/components/SkipLink/SkipLink.stories.js +1 -1
  220. package/dist/components/SkipLink/index.js +1 -1
  221. package/dist/components/Slider/Slider.js +5 -6
  222. package/dist/components/Slider/Slider.stories.js +3 -4
  223. package/dist/components/Slider/index.js +1 -1
  224. package/dist/components/Spinner/Spinner.js +4 -4
  225. package/dist/components/Spinner/Spinner.stories.js +1 -1
  226. package/dist/components/Spinner/index.js +1 -1
  227. package/dist/components/StatusLabel/StatusLabel.js +4 -4
  228. package/dist/components/StatusLabel/StatusLabel.stories.js +2 -3
  229. package/dist/components/StatusLabel/index.js +1 -2
  230. package/dist/components/Stepper/Step/Step.js +4 -4
  231. package/dist/components/Stepper/Step/Step.stories.js +2 -2
  232. package/dist/components/Stepper/Step/index.js +1 -1
  233. package/dist/components/Stepper/Stepper.js +1 -1
  234. package/dist/components/Stepper/Stepper.stories.js +1 -1
  235. package/dist/components/Stepper/index.js +1 -1
  236. package/dist/components/Strip/Strip.js +4 -4
  237. package/dist/components/Strip/Strip.stories.js +1 -1
  238. package/dist/components/Strip/index.js +1 -1
  239. package/dist/components/SummaryButton/SummaryButton.js +1 -1
  240. package/dist/components/SummaryButton/SummaryButton.stories.js +1 -1
  241. package/dist/components/SummaryButton/index.js +1 -1
  242. package/dist/components/Switch/Switch.js +5 -6
  243. package/dist/components/Switch/Switch.stories.js +1 -1
  244. package/dist/components/Switch/index.js +1 -1
  245. package/dist/components/Table/Table.js +4 -4
  246. package/dist/components/Table/index.js +1 -1
  247. package/dist/components/TableCell/TableCell.js +4 -4
  248. package/dist/components/TableCell/index.js +1 -1
  249. package/dist/components/TableHeader/TableHeader.js +4 -4
  250. package/dist/components/TableHeader/index.js +1 -1
  251. package/dist/components/TablePagination/TablePagination.js +5 -6
  252. package/dist/components/TablePagination/TablePagination.stories.js +1 -1
  253. package/dist/components/TablePagination/TablePaginationControls/TablePaginationControls.js +4 -4
  254. package/dist/components/TablePagination/TablePaginationControls/index.js +1 -1
  255. package/dist/components/TablePagination/index.js +1 -1
  256. package/dist/components/TableRow/TableRow.js +4 -4
  257. package/dist/components/TableRow/index.js +1 -1
  258. package/dist/components/Tabs/Tabs.js +4 -4
  259. package/dist/components/Tabs/Tabs.stories.js +1 -1
  260. package/dist/components/Tabs/index.js +1 -1
  261. package/dist/components/Textarea/Textarea.js +7 -8
  262. package/dist/components/Textarea/Textarea.stories.js +1 -1
  263. package/dist/components/Textarea/index.js +1 -1
  264. package/dist/components/ThemeSwitcher/ThemeSwitcher.js +1 -2
  265. package/dist/components/ThemeSwitcher/ThemeSwitcher.stories.js +1 -1
  266. package/dist/components/ThemeSwitcher/index.js +1 -2
  267. package/dist/components/Tooltip/Tooltip.js +2 -3
  268. package/dist/components/Tooltip/Tooltip.stories.js +2 -3
  269. package/dist/components/Tooltip/index.js +1 -2
  270. package/dist/esm/components/Accordion/Accordion.js +3 -3
  271. package/dist/esm/components/ActionButton/ActionButton.js +3 -3
  272. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.js +3 -3
  273. package/dist/esm/components/ApplicationLayout/AppAside/AppAside.stories.js +1 -1
  274. package/dist/esm/components/ApplicationLayout/AppMain/AppMain.js +3 -3
  275. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.js +3 -3
  276. package/dist/esm/components/ApplicationLayout/AppNavigation/AppNavigation.stories.js +1 -1
  277. package/dist/esm/components/ApplicationLayout/AppNavigationBar/AppNavigationBar.js +3 -3
  278. package/dist/esm/components/ApplicationLayout/AppStatus/AppStatus.js +3 -3
  279. package/dist/esm/components/ApplicationLayout/Application/Application.js +3 -3
  280. package/dist/esm/components/ApplicationLayout/ApplicationLayout.js +2 -2
  281. package/dist/esm/components/ArticlePagination/ArticlePagination.js +3 -3
  282. package/dist/esm/components/Badge/Badge.js +3 -3
  283. package/dist/esm/components/Button/Button.js +3 -3
  284. package/dist/esm/components/Card/Card.js +3 -3
  285. package/dist/esm/components/Card/Card.stories.js +2 -2
  286. package/dist/esm/components/CheckboxInput/CheckableInput/CheckableInput.js +3 -3
  287. package/dist/esm/components/CheckboxInput/CheckboxInput.js +3 -3
  288. package/dist/esm/components/Chip/Chip.js +3 -3
  289. package/dist/esm/components/Code/Code.js +3 -3
  290. package/dist/esm/components/CodeSnippet/CodeSnippet.js +3 -3
  291. package/dist/esm/components/CodeSnippet/CodeSnippetBlock.js +1 -1
  292. package/dist/esm/components/CodeSnippet/CodeSnippetDropdown.js +3 -3
  293. package/dist/esm/components/Col/Col.js +3 -3
  294. package/dist/esm/components/ColumnSelector/ColumnSelector.js +1 -1
  295. package/dist/esm/components/ColumnSelector/columnSelectorHelper.js +2 -2
  296. package/dist/esm/components/ConfirmationButton/ConfirmationButton.js +3 -3
  297. package/dist/esm/components/ConfirmationModal/ConfirmationModal.js +3 -3
  298. package/dist/esm/components/ContextualMenu/ContextualMenu.d.ts +10 -5
  299. package/dist/esm/components/ContextualMenu/ContextualMenu.js +107 -11
  300. package/dist/esm/components/ContextualMenu/ContextualMenu.stories.js +1 -1
  301. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.d.ts +1 -1
  302. package/dist/esm/components/ContextualMenu/ContextualMenuDropdown/ContextualMenuDropdown.js +8 -6
  303. package/dist/esm/components/CustomSelect/CustomSelect.js +4 -3
  304. package/dist/esm/components/CustomSelect/CustomSelect.stories.d.ts +1 -1
  305. package/dist/esm/components/CustomSelect/CustomSelect.stories.js +4 -4
  306. package/dist/esm/components/DoughnutChart/DoughnutChart.js +29 -11
  307. package/dist/esm/components/EmptyState/EmptyState.js +3 -3
  308. package/dist/esm/components/Field/Field.js +3 -3
  309. package/dist/esm/components/Form/Form.js +3 -3
  310. package/dist/esm/components/FormikField/FormikField.js +3 -3
  311. package/dist/esm/components/Icon/Icon.js +3 -3
  312. package/dist/esm/components/Input/Input.js +5 -5
  313. package/dist/esm/components/Label/Label.js +3 -3
  314. package/dist/esm/components/Link/Link.js +3 -3
  315. package/dist/esm/components/List/List.js +4 -4
  316. package/dist/esm/components/MainTable/MainTable.js +3 -3
  317. package/dist/esm/components/Modal/Modal.js +3 -3
  318. package/dist/esm/components/ModularTable/ModularTable.js +7 -7
  319. package/dist/esm/components/ModularTable/ModularTable.stories.js +6 -6
  320. package/dist/esm/components/MultiSelect/MultiSelect.js +3 -3
  321. package/dist/esm/components/MultiSelect/MultiSelect.stories.js +3 -3
  322. package/dist/esm/components/Navigation/Navigation.js +5 -5
  323. package/dist/esm/components/Navigation/NavigationLink/NavigationLink.js +5 -5
  324. package/dist/esm/components/Navigation/NavigationMenu/NavigationMenu.js +5 -5
  325. package/dist/esm/components/Notifications/Notification/Notification.js +3 -3
  326. package/dist/esm/components/Notifications/ToastNotification/ToastNotification.js +1 -1
  327. package/dist/esm/components/Notifications/ToastNotification/ToastNotificationList.js +1 -1
  328. package/dist/esm/components/Notifications/ToastNotification/ToastNotificationProvider.js +2 -2
  329. package/dist/esm/components/Pagination/Pagination.js +7 -7
  330. package/dist/esm/components/Panel/Panel.js +3 -3
  331. package/dist/esm/components/PasswordToggle/PasswordToggle.js +3 -3
  332. package/dist/esm/components/PrefixedInput/PrefixedInput.js +3 -3
  333. package/dist/esm/components/PrefixedIpInput/PrefixedIpInput.js +3 -3
  334. package/dist/esm/components/PrefixedIpInput/PrefixedIpInput.stories.js +1 -1
  335. package/dist/esm/components/RadioInput/RadioInput.js +3 -3
  336. package/dist/esm/components/Row/Row.js +3 -3
  337. package/dist/esm/components/ScrollableTable/ScrollableTable.stories.js +2 -2
  338. package/dist/esm/components/SearchAndFilter/FilterPanelSection/FilterPanelSection.js +3 -3
  339. package/dist/esm/components/SearchAndFilter/SearchAndFilter.js +3 -3
  340. package/dist/esm/components/SearchBox/SearchBox.js +3 -3
  341. package/dist/esm/components/Select/Select.js +3 -3
  342. package/dist/esm/components/SideNavigation/SideNavigation.js +3 -3
  343. package/dist/esm/components/SideNavigation/SideNavigationBase/SideNavigationBase.js +3 -3
  344. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.js +3 -3
  345. package/dist/esm/components/SideNavigation/SideNavigationItem/SideNavigationItem.stories.js +1 -1
  346. package/dist/esm/components/SideNavigation/SideNavigationLink/SideNavigationLink.js +3 -3
  347. package/dist/esm/components/SideNavigation/SideNavigationText/SideNavigationText.js +3 -3
  348. package/dist/esm/components/SidePanel/SidePanel.js +1 -1
  349. package/dist/esm/components/Slider/Slider.js +3 -3
  350. package/dist/esm/components/Slider/Slider.stories.js +1 -1
  351. package/dist/esm/components/Spinner/Spinner.js +3 -3
  352. package/dist/esm/components/StatusLabel/StatusLabel.js +3 -3
  353. package/dist/esm/components/Stepper/Step/Step.js +3 -3
  354. package/dist/esm/components/Stepper/Step/Step.stories.js +1 -1
  355. package/dist/esm/components/Strip/Strip.js +3 -3
  356. package/dist/esm/components/Switch/Switch.js +3 -3
  357. package/dist/esm/components/Table/Table.js +3 -3
  358. package/dist/esm/components/TableCell/TableCell.js +3 -3
  359. package/dist/esm/components/TableHeader/TableHeader.js +3 -3
  360. package/dist/esm/components/TablePagination/TablePagination.js +3 -3
  361. package/dist/esm/components/TablePagination/TablePaginationControls/TablePaginationControls.js +3 -3
  362. package/dist/esm/components/TableRow/TableRow.js +3 -3
  363. package/dist/esm/components/Tabs/Tabs.js +3 -3
  364. package/dist/esm/components/Textarea/Textarea.js +5 -5
  365. package/dist/esm/external/useSSR.js +2 -2
  366. package/dist/esm/hooks/usePagination.js +9 -5
  367. package/dist/external/useSSR.js +2 -2
  368. package/dist/hooks/usePagination.js +8 -4
  369. package/dist/index.js +2 -3
  370. package/package.json +17 -17
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "className"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from "react";
6
6
  import classNames from "classnames";
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "className"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from "react";
6
6
  import classNames from "classnames";
7
7
  /**
@@ -1,6 +1,6 @@
1
1
  var _excluded = ["aside", "children", "dark", "logo", "mainClassName", "menuCollapsed", "menuPinned", "navigationBarClassName", "navigationClassName", "navItems", "navLinkComponent", "onCollapseMenu", "onPinMenu", "sideNavigation", "status", "statusClassName", "mainId"];
2
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
3
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
3
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from "react";
5
5
  import classNames from "classnames";
6
6
  import { useState } from "react";
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["className", "nextURL", "nextLabel", "previousURL", "previousLabel"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React from "react";
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["value", "badgeType", "className", "isNegative"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React from "react";
7
7
  export var BadgeType = {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["appearance", "children", "className", "dense", "disabled", "element", "hasIcon", "inline", "onClick", "small"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React from "react";
7
7
  export var ButtonAppearance = {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "className", "highlighted", "overlay", "thumbnail", "title"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React, { useId } from "react";
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
2
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  import React from "react";
7
7
  import Card from "./";
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["inputType", "label", "labelClassName", "indeterminate", "inline"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React, { useEffect, useRef, useId } from "react";
7
7
  var CheckableInput = _ref => {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["label", "indeterminate"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from "react";
6
6
  import CheckableInput from "./CheckableInput";
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["appearance", "lead", "onClick", "onDismiss", "quoteValue", "selected", "subString", "isReadOnly", "isDense", "isInline", "iconName", "badge", "value"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from "react";
6
6
  import { highlightSubString } from "../../utils";
7
7
  import classNames from "classnames";
@@ -1,8 +1,8 @@
1
1
  import _pt from "prop-types";
2
2
  var _excluded = ["children", "className", "inline", "copyable", "numbered"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6
6
  import React from "react";
7
7
  import CodeSnippet, { CodeSnippetBlockAppearance } from "../CodeSnippet";
8
8
  import { IS_DEV } from "../../utils";
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["className", "blocks"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React from "react";
7
7
  import CodeSnippetBlock from "./CodeSnippetBlock";
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
2
  import classNames from "classnames";
3
3
  import React from "react";
4
4
  import CodeSnippetDropdown from "./CodeSnippetDropdown";
@@ -1,8 +1,8 @@
1
1
  var _excluded = ["options", "onChange"],
2
2
  _excluded2 = ["label", "value"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6
6
  import React from "react";
7
7
  export default function CodeSnippetDropdown(_ref) {
8
8
  var {
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["children", "className", "element", "emptyLarge", "emptyMedium", "emptySmall", "large", "medium", "size", "small"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
6
  import React from "react";
7
7
  export var colSizes = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
@@ -63,7 +63,7 @@ var ColumnSelector = _ref => {
63
63
  }
64
64
  }), /*#__PURE__*/React.createElement("hr", null), columns.map(column => /*#__PURE__*/React.createElement("div", {
65
65
  key: column
66
- }, wrapTooltip( /*#__PURE__*/React.createElement(CheckboxInput, {
66
+ }, wrapTooltip(/*#__PURE__*/React.createElement(CheckboxInput, {
67
67
  "aria-label": column,
68
68
  labelClassName: classnames({
69
69
  "size-hidden": sizeHidden.includes(column)
@@ -1,7 +1,7 @@
1
1
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2
2
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
3
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
4
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5
5
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
6
6
  export var visibleRowColumns = (rows, hiddenCols) => {
7
7
  return rows.map(row => {
@@ -1,8 +1,8 @@
1
1
  var _excluded = ["confirmationModalProps", "onHoverText", "shiftClickEnabled", "showShiftClickHint", "preModalOpenHook"],
2
2
  _excluded2 = ["renderInPortal", "portalRenderer"];
3
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
5
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
3
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
4
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6
6
  import React from "react";
7
7
  import ActionButton from "../ActionButton";
8
8
  import ConfirmationModal from "../ConfirmationModal";
@@ -1,7 +1,7 @@
1
1
  var _excluded = ["cancelButtonLabel", "cancelButtonProps", "children", "confirmButtonAppearance", "confirmButtonLabel", "confirmExtra", "onConfirm", "confirmButtonLoading", "confirmButtonDisabled", "confirmButtonProps", "renderInPortal", "portalRenderer"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import React from "react";
6
6
  import Button from "../Button";
7
7
  import Modal from "../Modal";
@@ -1,9 +1,8 @@
1
- import React from "react";
2
1
  import type { HTMLProps, ReactNode } from "react";
3
- import type { ButtonProps } from "../Button";
4
- import type { ContextualMenuDropdownProps } from "./ContextualMenuDropdown";
5
- import type { MenuLink, Position } from "./ContextualMenuDropdown";
2
+ import React from "react";
6
3
  import { ClassName, ExclusiveProps, PropsWithSpread, SubComponentProps } from "../../types";
4
+ import type { ButtonProps } from "../Button";
5
+ import type { ContextualMenuDropdownProps, MenuLink, Position } from "./ContextualMenuDropdown";
7
6
  export declare enum Label {
8
7
  Toggle = "Toggle menu"
9
8
  }
@@ -60,6 +59,12 @@ export type BaseProps<L> = PropsWithSpread<{
60
59
  * Whether the dropdown should scroll if it is too long to fit on the screen.
61
60
  */
62
61
  scrollOverflow?: boolean;
62
+ /**
63
+ * Whether to focus the first interactive element within the menu when it opens.
64
+ * This defaults to true.
65
+ * In instances where the user needs to interact with some other element on opening the menu (like a text input), set this to false.
66
+ */
67
+ focusFirstItemOnOpen?: boolean;
63
68
  /**
64
69
  * Whether the menu should be visible.
65
70
  */
@@ -106,5 +111,5 @@ export type Props<L> = BaseProps<L> & ExclusiveProps<{
106
111
  *
107
112
  * A contextual menu can be used in conjunction with any page element to provide a contextual menu.
108
113
  */
109
- declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, ...wrapperProps }: Props<L>) => React.JSX.Element;
114
+ declare const ContextualMenu: <L>({ autoAdjust, children, className, closeOnEsc, closeOnOutsideClick, constrainPanelWidth, dropdownClassName, dropdownProps, hasToggleIcon, links, onToggleMenu, position, positionNode, scrollOverflow, toggle, toggleAppearance, toggleClassName, toggleDisabled, toggleLabel, toggleLabelFirst, toggleProps, visible, focusFirstItemOnOpen, ...wrapperProps }: Props<L>) => React.JSX.Element;
110
115
  export default ContextualMenu;
@@ -1,13 +1,14 @@
1
- var _excluded = ["autoAdjust", "children", "className", "closeOnEsc", "closeOnOutsideClick", "constrainPanelWidth", "dropdownClassName", "dropdownProps", "hasToggleIcon", "links", "onToggleMenu", "position", "positionNode", "scrollOverflow", "toggle", "toggleAppearance", "toggleClassName", "toggleDisabled", "toggleLabel", "toggleLabelFirst", "toggleProps", "visible"];
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
4
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1
+ var _excluded = ["autoAdjust", "children", "className", "closeOnEsc", "closeOnOutsideClick", "constrainPanelWidth", "dropdownClassName", "dropdownProps", "hasToggleIcon", "links", "onToggleMenu", "position", "positionNode", "scrollOverflow", "toggle", "toggleAppearance", "toggleClassName", "toggleDisabled", "toggleLabel", "toggleLabelFirst", "toggleProps", "visible", "focusFirstItemOnOpen"];
2
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
4
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5
5
  import classNames from "classnames";
6
- import React, { useCallback, useEffect, useId, useRef, useState } from "react";
6
+ import { usePortal } from "../../external";
7
7
  import { useListener, usePrevious } from "../../hooks";
8
+ import React, { useCallback, useEffect, useId, useRef, useState } from "react";
8
9
  import Button from "../Button";
9
10
  import ContextualMenuDropdown from "./ContextualMenuDropdown";
10
- import { usePortal } from "../../external";
11
+ var focusableElementSelectors = 'a[href]:not([tabindex="-1"]), button:not([disabled]):not([aria-disabled="true"]), textarea:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), input:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), select:not([disabled]):not([aria-disabled="true"]):not([tabindex="-1"]), area[href]:not([tabindex="-1"]), iframe:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"]), [contentEditable=true]:not([tabindex="-1"])';
11
12
  export var Label = /*#__PURE__*/function (Label) {
12
13
  Label["Toggle"] = "Toggle menu";
13
14
  return Label;
@@ -72,13 +73,15 @@ var ContextualMenu = _ref => {
72
73
  toggleLabel,
73
74
  toggleLabelFirst = true,
74
75
  toggleProps,
75
- visible = false
76
+ visible = false,
77
+ focusFirstItemOnOpen = true
76
78
  } = _ref,
77
79
  wrapperProps = _objectWithoutProperties(_ref, _excluded);
78
- var id = useId();
80
+ var dropdownId = useId();
79
81
  var wrapper = useRef(null);
80
82
  var [positionCoords, setPositionCoords] = useState();
81
83
  var [adjustedPosition, setAdjustedPosition] = useState(position);
84
+ var focusAnimationFrameId = useRef(null);
82
85
  useEffect(() => {
83
86
  setAdjustedPosition(position);
84
87
  }, [position, autoAdjust]);
@@ -91,6 +94,60 @@ var ContextualMenu = _ref => {
91
94
  }
92
95
  setPositionCoords(parent.getBoundingClientRect());
93
96
  }, [wrapper, positionNode]);
97
+
98
+ /**
99
+ * Gets the dropdopwn element (`ContextualMenuDropdown`).
100
+ * @returns The dropdown element or null if it does not exist.
101
+ */
102
+ var getDropdown = useCallback(() => {
103
+ if (typeof document === "undefined") return null;
104
+ /**
105
+ * This is Using `document` instead of refs because `dropdownProps` may include a ref,
106
+ * while `dropdownId` is unique and controlled by us.
107
+ */
108
+ return document.getElementById(dropdownId);
109
+ }, [dropdownId]);
110
+
111
+ /**
112
+ * Gets all focusable items in the dropdown element.
113
+ * @returns Array of focusable items in the dropdown element.
114
+ */
115
+ var getFocusableDropdownItems = useCallback(() => {
116
+ var _getDropdown;
117
+ return Array.from(((_getDropdown = getDropdown()) === null || _getDropdown === void 0 ? void 0 : _getDropdown.querySelectorAll(focusableElementSelectors)) || []);
118
+ }, [getDropdown]);
119
+
120
+ /**
121
+ * Focuses the first focusable item in the dropdown element.
122
+ * This is useful for keyboard users (who expect focus to move into the menu when it opens).
123
+ */
124
+ var focusFirstDropdownItem = useCallback(() => {
125
+ var _focusableElements$;
126
+ var focusableElements = getFocusableDropdownItems();
127
+ (_focusableElements$ = focusableElements[0]) === null || _focusableElements$ === void 0 || _focusableElements$.focus();
128
+ }, [getFocusableDropdownItems]);
129
+
130
+ /**
131
+ * Cleans up any pending dropdown focus animation frames.
132
+ */
133
+ var cleanupDropdownFocus = () => {
134
+ if (focusAnimationFrameId.current) {
135
+ cancelAnimationFrame(focusAnimationFrameId.current);
136
+ focusAnimationFrameId.current = null;
137
+ }
138
+ };
139
+ var returnFocusToTrigger = () => {
140
+ var _wrapper$current;
141
+ // Button element does not accept refs.
142
+ var trigger = (_wrapper$current = wrapper.current) === null || _wrapper$current === void 0 ? void 0 : _wrapper$current.querySelector(".p-contextual-menu__toggle");
143
+ // return focus to the trigger button when the menu closes
144
+ if (trigger) {
145
+ trigger.focus();
146
+ }
147
+ };
148
+ useEffect(() => {
149
+ return () => cleanupDropdownFocus();
150
+ }, []);
94
151
  var {
95
152
  openPortal,
96
153
  closePortal,
@@ -100,18 +157,57 @@ var ContextualMenu = _ref => {
100
157
  closeOnEsc,
101
158
  closeOnOutsideClick,
102
159
  isOpen: visible,
103
- onOpen: () => {
160
+ onOpen: event => {
104
161
  // Call the toggle callback, if supplied.
105
162
  onToggleMenu === null || onToggleMenu === void 0 || onToggleMenu(true);
106
163
  // When the menu opens then update the coordinates of the parent.
107
164
  updatePositionCoords();
165
+ if (focusFirstItemOnOpen && // Don't focus the item unless it was opened by a keyboard event
166
+ // This type silliness is because `detail` isn't on the type for `event.nativeEvent` passed from `usePortal`,
167
+ // as we are using `CustomEvent<HTMLElement>` which does not have `detail` defined.
168
+ event !== null && event !== void 0 && event.nativeEvent && "detail" in event.nativeEvent && event.nativeEvent.detail === 0) {
169
+ cleanupDropdownFocus();
170
+ // We need to wait a frame for any pending focus events to complete.
171
+ focusAnimationFrameId.current = requestAnimationFrame(() => focusFirstDropdownItem());
172
+ }
108
173
  },
109
174
  onClose: () => {
110
175
  // Call the toggle callback, if supplied.
111
176
  onToggleMenu === null || onToggleMenu === void 0 || onToggleMenu(false);
177
+ cleanupDropdownFocus();
178
+ returnFocusToTrigger();
112
179
  },
113
180
  programmaticallyOpen: true
114
181
  });
182
+
183
+ /**
184
+ * Trap focus within the dropdown
185
+ */
186
+ useEffect(() => {
187
+ var handleKeyDown = e => {
188
+ if (e.key !== "Tab" || !isOpen) return;
189
+ var items = getFocusableDropdownItems();
190
+ if (items.length === 0) return;
191
+ var active = document.activeElement;
192
+ var first = items[0];
193
+ var last = items[items.length - 1];
194
+ if (!e.shiftKey && active === last) {
195
+ // Tab on the last item: wrap back to the first focusable item
196
+ e.preventDefault();
197
+ first.focus();
198
+ } else if (e.shiftKey && active === first) {
199
+ // Shift+Tab on the first item: wrap back to the last focusable item
200
+ e.preventDefault();
201
+ last.focus();
202
+ }
203
+ };
204
+ var dropdown = getDropdown();
205
+ if (!dropdown) return undefined;
206
+ dropdown.addEventListener("keydown", handleKeyDown);
207
+ return () => {
208
+ dropdown.removeEventListener("keydown", handleKeyDown);
209
+ };
210
+ }, [getDropdown, getFocusableDropdownItems, isOpen]);
115
211
  var previousVisible = usePrevious(visible);
116
212
  var labelNode = toggleLabel && typeof toggleLabel === "string" ? /*#__PURE__*/React.createElement("span", null, toggleLabel) : /*#__PURE__*/React.isValidElement(toggleLabel) ? toggleLabel : null;
117
213
  var contextualMenuClassName = classNames(className, "p-contextual-menu", {
@@ -176,7 +272,7 @@ var ContextualMenu = _ref => {
176
272
  } else if (hasToggleIcon || toggleLabel) {
177
273
  toggleNode = /*#__PURE__*/React.createElement(Button, _extends({
178
274
  appearance: toggleAppearance,
179
- "aria-controls": id,
275
+ "aria-controls": dropdownId,
180
276
  "aria-expanded": isOpen ? "true" : "false",
181
277
  "aria-label": toggleLabel ? null : Label.Toggle,
182
278
  "aria-pressed": isOpen ? "true" : "false",
@@ -208,7 +304,7 @@ var ContextualMenu = _ref => {
208
304
  constrainPanelWidth: constrainPanelWidth,
209
305
  dropdownClassName: dropdownClassName,
210
306
  dropdownContent: children,
211
- id: id,
307
+ id: dropdownId,
212
308
  isOpen: isOpen,
213
309
  links: links,
214
310
  position: position,
@@ -9,7 +9,7 @@ var ScrollTemplate = args => /*#__PURE__*/React.createElement("div", {
9
9
  overflow: "auto",
10
10
  padding: "1rem"
11
11
  }
12
- }, /*#__PURE__*/React.createElement(ContextualMenu, args), Array(3).fill( /*#__PURE__*/React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequuntur cum dicta beatae nostrum eligendi similique earum, dolorem fuga quis, sequi voluptates architecto ipsa dolorum eaque rem expedita inventore voluptas odit aspernatur alias molestias facere.")), /*#__PURE__*/React.createElement(ContextualMenu, args));
12
+ }, /*#__PURE__*/React.createElement(ContextualMenu, args), Array(3).fill(/*#__PURE__*/React.createElement("p", null, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequuntur cum dicta beatae nostrum eligendi similique earum, dolorem fuga quis, sequi voluptates architecto ipsa dolorum eaque rem expedita inventore voluptas odit aspernatur alias molestias facere.")), /*#__PURE__*/React.createElement(ContextualMenu, args));
13
13
  var Template = args => /*#__PURE__*/React.createElement("div", {
14
14
  className: "u-align--center"
15
15
  }, /*#__PURE__*/React.createElement(ContextualMenu, args));
@@ -3,7 +3,7 @@ import type { HTMLProps, ReactNode } from "react";
3
3
  import type { ButtonProps } from "../../Button";
4
4
  import type { WindowFitment } from "../../../hooks";
5
5
  export declare enum Label {
6
- Dropdown = "submenu"
6
+ Dropdown = "sub"
7
7
  }
8
8
  /**
9
9
  * The type of the menu links.