@carbon/ibm-products 2.1.3 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/css/index-full-carbon.css +246 -777
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +3 -3
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +11 -210
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +2 -2
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +48 -412
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +3 -3
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +121 -344
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +3 -3
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/AboutModal/AboutModal.js +4 -2
  18. package/es/components/ActionBar/ActionBar.js +6 -2
  19. package/es/components/AddSelect/AddSelectFormControl.js +6 -6
  20. package/es/components/AddSelect/AddSelectRow.js +5 -15
  21. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -5
  22. package/es/components/ButtonMenu/ButtonMenu.js +4 -4
  23. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +9 -3
  24. package/es/components/Cascade/Cascade.js +1 -11
  25. package/es/components/CreateFullPage/CreateFullPage.js +0 -13
  26. package/es/components/CreateModal/CreateModal.js +0 -7
  27. package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
  28. package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  29. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  30. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -3
  31. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +2 -3
  32. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
  33. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  34. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +47 -39
  35. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +24 -20
  36. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +1 -0
  37. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +15 -44
  38. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +21 -0
  39. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +10 -12
  40. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -2
  41. package/es/components/Datagrid/useActionsColumn.js +7 -10
  42. package/es/components/Datagrid/useCustomizeColumns.js +7 -9
  43. package/es/components/Datagrid/useExpandedRow.js +7 -11
  44. package/es/components/Datagrid/useFiltering.js +8 -12
  45. package/es/components/Datagrid/useInlineEdit.js +0 -3
  46. package/es/components/Datagrid/useNestedRows.js +6 -10
  47. package/es/components/Datagrid/useStickyColumn.js +3 -10
  48. package/es/components/Datagrid/utils/DatagridActions.js +14 -6
  49. package/es/components/EditFullPage/EditFullPage.js +1 -2
  50. package/es/components/EditSidePanel/EditSidePanel.js +1 -1
  51. package/es/components/EditTearsheet/EditTearsheet.js +0 -4
  52. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  53. package/es/components/EditUpdateCards/EditUpdateCards.js +2 -3
  54. package/es/components/EmptyStates/EmptyState.js +0 -4
  55. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +0 -4
  56. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +0 -4
  57. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +0 -4
  58. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +0 -4
  59. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +0 -4
  60. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +0 -4
  61. package/es/components/ExportModal/ExportModal.js +0 -4
  62. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +0 -6
  63. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +0 -6
  64. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +0 -6
  65. package/es/components/ImportModal/ImportModal.js +6 -13
  66. package/es/components/MultiAddSelect/MultiAddSelect.js +0 -4
  67. package/es/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +17 -2
  68. package/es/components/PageHeader/PageHeader.js +6 -2
  69. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  70. package/es/components/RemoveModal/RemoveModal.js +0 -6
  71. package/es/components/SidePanel/SidePanel.js +3 -1
  72. package/es/components/SingleAddSelect/SingleAddSelect.js +0 -4
  73. package/es/components/StatusIcon/StatusIcon.js +0 -10
  74. package/es/components/TagSet/TagSet.js +7 -4
  75. package/es/components/Tearsheet/TearsheetShell.js +6 -11
  76. package/es/components/UserProfileImage/UserProfileImage.js +3 -14
  77. package/es/components/WebTerminal/WebTerminal.js +0 -4
  78. package/es/global/js/hooks/useCreateComponentStepChange.js +15 -16
  79. package/es/global/js/hooks/useResizeObserver.js +28 -14
  80. package/es/global/js/package-settings.js +1 -14
  81. package/es/global/js/utils/story-helper.js +6 -108
  82. package/lib/components/AboutModal/AboutModal.js +4 -2
  83. package/lib/components/ActionBar/ActionBar.js +6 -2
  84. package/lib/components/AddSelect/AddSelectFormControl.js +6 -6
  85. package/lib/components/AddSelect/AddSelectRow.js +5 -15
  86. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -5
  87. package/lib/components/ButtonMenu/ButtonMenu.js +4 -4
  88. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +9 -3
  89. package/lib/components/Cascade/Cascade.js +1 -11
  90. package/lib/components/CreateFullPage/CreateFullPage.js +0 -13
  91. package/lib/components/CreateModal/CreateModal.js +0 -7
  92. package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
  93. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  94. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  95. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -3
  96. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +2 -3
  97. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -1
  98. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  99. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +45 -37
  100. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +24 -20
  101. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +7 -0
  102. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +13 -42
  103. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useInitialStateFromFilters.js +30 -0
  104. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +10 -12
  105. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -2
  106. package/lib/components/Datagrid/useActionsColumn.js +7 -12
  107. package/lib/components/Datagrid/useCustomizeColumns.js +8 -10
  108. package/lib/components/Datagrid/useExpandedRow.js +6 -9
  109. package/lib/components/Datagrid/useFiltering.js +7 -10
  110. package/lib/components/Datagrid/useInlineEdit.js +0 -3
  111. package/lib/components/Datagrid/useNestedRows.js +6 -9
  112. package/lib/components/Datagrid/useStickyColumn.js +3 -10
  113. package/lib/components/Datagrid/utils/DatagridActions.js +13 -5
  114. package/lib/components/EditFullPage/EditFullPage.js +1 -2
  115. package/lib/components/EditSidePanel/EditSidePanel.js +1 -1
  116. package/lib/components/EditTearsheet/EditTearsheet.js +0 -4
  117. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -1
  118. package/lib/components/EditUpdateCards/EditUpdateCards.js +2 -3
  119. package/lib/components/EmptyStates/EmptyState.js +0 -4
  120. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +0 -4
  121. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +0 -4
  122. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +0 -4
  123. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +0 -4
  124. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +0 -4
  125. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +0 -4
  126. package/lib/components/ExportModal/ExportModal.js +0 -4
  127. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +0 -6
  128. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +0 -6
  129. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +0 -6
  130. package/lib/components/ImportModal/ImportModal.js +6 -13
  131. package/lib/components/MultiAddSelect/MultiAddSelect.js +0 -4
  132. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +17 -2
  133. package/lib/components/PageHeader/PageHeader.js +6 -2
  134. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  135. package/lib/components/RemoveModal/RemoveModal.js +0 -6
  136. package/lib/components/SidePanel/SidePanel.js +3 -1
  137. package/lib/components/SingleAddSelect/SingleAddSelect.js +0 -4
  138. package/lib/components/StatusIcon/StatusIcon.js +0 -10
  139. package/lib/components/TagSet/TagSet.js +7 -4
  140. package/lib/components/Tearsheet/TearsheetShell.js +6 -11
  141. package/lib/components/UserProfileImage/UserProfileImage.js +3 -14
  142. package/lib/components/WebTerminal/WebTerminal.js +0 -4
  143. package/lib/global/js/hooks/useCreateComponentStepChange.js +15 -16
  144. package/lib/global/js/hooks/useResizeObserver.js +27 -13
  145. package/lib/global/js/package-settings.js +1 -14
  146. package/lib/global/js/utils/story-helper.js +7 -115
  147. package/package.json +4 -4
  148. package/scss/components/AddSelect/_add-select.scss +0 -4
  149. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +1 -0
  150. package/scss/components/ButtonMenu/_button-menu.scss +1 -32
  151. package/scss/components/Cascade/_storybook-styles.scss +2 -3
  152. package/scss/components/DataSpreadsheet/_storybook-styles.scss +0 -6
  153. package/scss/components/Datagrid/_datagrid.scss +2 -4
  154. package/scss/components/Datagrid/_storybook-styles.scss +2 -16
  155. package/scss/components/Datagrid/styles/_datagrid.scss +13 -26
  156. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +0 -7
  157. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +0 -4
  158. package/scss/components/HTTPErrors/_storybook-styles.scss +6 -0
  159. package/scss/components/NotificationsPanel/_notifications-panel.scss +1 -1
  160. package/scss/components/NotificationsPanel/_storybook-styles.scss +2 -10
  161. package/scss/components/PageHeader/_page-header.scss +1 -0
  162. package/scss/components/PageHeader/_storybook-styles.scss +14 -24
  163. package/scss/components/SidePanel/_side-panel.scss +2 -0
  164. package/scss/components/Tearsheet/_tearsheet.scss +6 -7
  165. package/scss/components/WebTerminal/_storybook-styles.scss +1 -11
  166. package/scss/global/styles/_display-box.scss +0 -1
  167. package/es/components/APIKeyModal/APIKeyModal.docs-page.js +0 -26
  168. package/es/components/AboutModal/AboutModal.docs-page.js +0 -21
  169. package/es/components/Cascade/Cascade.docs-page.js +0 -22
  170. package/es/components/CreateFullPage/CreateFullPage.docs-page.js +0 -39
  171. package/es/components/CreateModal/CreateModal.docs-page.js +0 -24
  172. package/es/components/CreateSidePanel/CreateSidePanel.docs-page.js +0 -18
  173. package/es/components/CreateTearsheet/CreateTearsheet.docs-page.js +0 -29
  174. package/es/components/EditFullPage/EditFullPage.docs-page.js +0 -39
  175. package/es/components/EditTearsheet/EditTearsheet.docs-page.js +0 -25
  176. package/es/components/ExampleComponent/ExampleComponent.docs-page.js +0 -22
  177. package/es/components/ImportModal/ImportModal.docs-page.js +0 -18
  178. package/es/components/MultiAddSelect/MultiAddSelect.docs-page.js +0 -17
  179. package/es/components/RemoveModal/RemoveModal.docs-page.js +0 -18
  180. package/es/components/SingleAddSelect/SingleAddSelect.docs-page.js +0 -15
  181. package/es/components/StatusIcon/StatusIcon.docs-page.js +0 -17
  182. package/es/components/Toolbar/Toolbar.docs-page.js +0 -14
  183. package/es/components/UserProfileImage/UserProfileImage.docs-page.js +0 -17
  184. package/es/components/WebTerminal/WebTerminal.docs-page.js +0 -52
  185. package/es/global/js/utils/StoryDocsPage.js +0 -218
  186. package/lib/components/APIKeyModal/APIKeyModal.docs-page.js +0 -37
  187. package/lib/components/AboutModal/AboutModal.docs-page.js +0 -32
  188. package/lib/components/Cascade/Cascade.docs-page.js +0 -33
  189. package/lib/components/CreateFullPage/CreateFullPage.docs-page.js +0 -50
  190. package/lib/components/CreateModal/CreateModal.docs-page.js +0 -35
  191. package/lib/components/CreateSidePanel/CreateSidePanel.docs-page.js +0 -29
  192. package/lib/components/CreateTearsheet/CreateTearsheet.docs-page.js +0 -40
  193. package/lib/components/EditFullPage/EditFullPage.docs-page.js +0 -50
  194. package/lib/components/EditTearsheet/EditTearsheet.docs-page.js +0 -36
  195. package/lib/components/ExampleComponent/ExampleComponent.docs-page.js +0 -33
  196. package/lib/components/ImportModal/ImportModal.docs-page.js +0 -26
  197. package/lib/components/MultiAddSelect/MultiAddSelect.docs-page.js +0 -25
  198. package/lib/components/RemoveModal/RemoveModal.docs-page.js +0 -26
  199. package/lib/components/SingleAddSelect/SingleAddSelect.docs-page.js +0 -23
  200. package/lib/components/StatusIcon/StatusIcon.docs-page.js +0 -28
  201. package/lib/components/Toolbar/Toolbar.docs-page.js +0 -25
  202. package/lib/components/UserProfileImage/UserProfileImage.docs-page.js +0 -28
  203. package/lib/components/WebTerminal/WebTerminal.docs-page.js +0 -63
  204. package/lib/global/js/utils/StoryDocsPage.js +0 -225
@@ -5,22 +5,19 @@ var _excluded = ["id", "itemText", "onClick", "icon", "shouldHideMenuItem"],
5
5
  _excluded2 = ["id", "onClick", "shouldHideMenuItem", "shouldDisableMenuItem", "disabled"];
6
6
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7
7
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
- /**
9
- * Copyright IBM Corp. 2021, 2023
10
- *
11
- * This source code is licensed under the Apache-2.0 license found in the
12
- * LICENSE file in the root directory of this source tree.
8
+ /*
9
+ * Licensed Materials - Property of IBM
10
+ * 5724-Q36
11
+ * (c) Copyright IBM Corp. 2021
12
+ * US Government Users Restricted Rights - Use, duplication or disclosure
13
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
13
14
  */
14
-
15
- import React, { useEffect } from 'react';
15
+ import React from 'react';
16
16
  import cx from 'classnames';
17
17
  import { IconSkeleton, OverflowMenu, OverflowMenuItem } from '@carbon/react';
18
18
  import { pkg } from '../../settings';
19
19
  var blockClass = "".concat(pkg.prefix, "--datagrid");
20
20
  var useActionsColumn = function useActionsColumn(hooks) {
21
- useEffect(function () {
22
- pkg.checkReportFeatureEnabled('Datagrid.useActionsColumn');
23
- }, []);
24
21
  var useAttachActionsOnInstance = function useAttachActionsOnInstance(instance) {
25
22
  var rowActions = instance.rowActions,
26
23
  isFetching = instance.isFetching,
@@ -3,20 +3,18 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
4
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5
5
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
6
- /**
7
- * Copyright IBM Corp. 2021, 2023
8
- *
9
- * This source code is licensed under the Apache-2.0 license found in the
10
- * LICENSE file in the root directory of this source tree.
6
+ // @flow
7
+ /*
8
+ * Licensed Materials - Property of IBM
9
+ * 5724-Q36
10
+ * (c) Copyright IBM Corp. 2021
11
+ * US Government Users Restricted Rights - Use, duplication or disclosure
12
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
11
13
  */
12
14
 
13
15
  import * as React from 'react';
14
- import { pkg } from '../../settings';
15
16
  import { CustomizeColumnsTearsheetWrapper, ToggleButtonWrapper } from './Datagrid/addons/CustomizeColumns';
16
17
  var useCustomizeColumns = function useCustomizeColumns(hooks) {
17
- React.useEffect(function () {
18
- pkg.checkReportFeatureEnabled('Datagrid.useCustomizeColumns');
19
- }, []);
20
18
  var _React$useState = React.useState(false),
21
19
  _React$useState2 = _slicedToArray(_React$useState, 2),
22
20
  isTearsheetOpen = _React$useState2[0],
@@ -2,21 +2,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- /**
6
- * Copyright IBM Corp. 2020, 2023
7
- *
8
- * This source code is licensed under the Apache-2.0 license found in the
9
- * LICENSE file in the root directory of this source tree.
5
+ /*
6
+ * Licensed Materials - Property of IBM
7
+ * 5724-Q36
8
+ * (c) Copyright IBM Corp. 2020
9
+ * US Government Users Restricted Rights - Use, duplication or disclosure
10
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
10
11
  */
11
-
12
- import { useEffect, useState } from 'react';
13
- import { pkg } from '../../settings';
12
+ import { useState } from 'react';
14
13
  import DatagridExpandedRow from './Datagrid/DatagridExpandedRow';
15
14
  import useRowExpander from './useRowExpander';
16
15
  var useExpandedRow = function useExpandedRow(hooks) {
17
- useEffect(function () {
18
- pkg.checkReportFeatureEnabled('Datagrid.useExpandedRow');
19
- }, []);
20
16
  useRowExpander(hooks);
21
17
  var useInstance = function useInstance(instance) {
22
18
  var rows = instance.rows,
@@ -2,21 +2,17 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
4
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- /**
6
- * Copyright IBM Corp. 2022, 2023
7
- *
8
- * This source code is licensed under the Apache-2.0 license found in the
9
- * LICENSE file in the root directory of this source tree.
5
+ /*
6
+ * Licensed Materials - Property of IBM
7
+ * 5724-Q36
8
+ * (c) Copyright IBM Corp. 2023
9
+ * US Government Users Restricted Rights - Use, duplication or disclosure
10
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
10
11
  */
11
-
12
- import { useMemo, useEffect } from 'react';
13
- import { pkg } from '../../settings';
12
+ import { useMemo } from 'react';
14
13
  import { FilterFlyout } from './Datagrid/addons/Filtering';
15
14
  import { BATCH } from './Datagrid/addons/Filtering/constants';
16
15
  var useFiltering = function useFiltering(hooks) {
17
- useEffect(function () {
18
- pkg.checkReportFeatureEnabled('Datagrid.useFiltering');
19
- }, []);
20
16
  var filterTypes = useMemo(function () {
21
17
  return {
22
18
  date: function date(rows, id, _ref) {
@@ -74,7 +70,7 @@ var useFiltering = function useFiltering(hooks) {
74
70
  variation: 'flyout',
75
71
  updateMethod: BATCH,
76
72
  panelIconDescription: 'Open filter panel',
77
- reactTableFiltersState: state.filters
73
+ initialFilters: state.filters
78
74
  };
79
75
  var getFilterFlyoutProps = function getFilterFlyoutProps() {
80
76
  return _objectSpread(_objectSpread(_objectSpread({}, defaultProps), filterProps), {}, {
@@ -16,9 +16,6 @@ var useInlineEdit = function useInlineEdit(hooks, usingEditableCell) {
16
16
  if (!usingEditableCell) {
17
17
  pkg.checkReportFeatureEnabled('Datagrid.useInlineEdit');
18
18
  }
19
- if (usingEditableCell) {
20
- pkg.checkReportFeatureEnabled('Datagrid.useEditableCell');
21
- }
22
19
  }, [usingEditableCell]);
23
20
  var addInlineEdit = function addInlineEdit(props, _ref) {
24
21
  var _cell$column, _cell$column$inlineEd, _instance$columns$fil;
@@ -1,20 +1,16 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /**
3
- * Copyright IBM Corp. 2020, 2023
4
- *
5
- * This source code is licensed under the Apache-2.0 license found in the
6
- * LICENSE file in the root directory of this source tree.
2
+ /*
3
+ * Licensed Materials - Property of IBM
4
+ * 5724-Q36
5
+ * (c) Copyright IBM Corp. 2020
6
+ * US Government Users Restricted Rights - Use, duplication or disclosure
7
+ * restricted by GSA ADP Schedule Contract with IBM Corp.
7
8
  */
8
-
9
- import { useEffect } from 'react';
10
9
  import { pkg } from '../../settings';
11
10
  import cx from 'classnames';
12
11
  import useNestedRowExpander from './useNestedRowExpander';
13
12
  var blockClass = "".concat(pkg.prefix, "--datagrid");
14
13
  var useNestedRows = function useNestedRows(hooks) {
15
- useEffect(function () {
16
- pkg.checkReportFeatureEnabled('Datagrid.useNestedRows');
17
- }, []);
18
14
  useNestedRowExpander(hooks);
19
15
  var marginLeft = 24;
20
16
  var getRowProps = function getRowProps(props, _ref) {
@@ -21,13 +21,10 @@ var OFFSET_SCROLL_CLASS = "".concat(styleClassPrefix, "-offset-scroll");
21
21
  var useStickyColumn = function useStickyColumn(hooks) {
22
22
  var tableBodyRef = useRef();
23
23
  var stickyHeaderCellRef = useRef();
24
- var _useState = useState(null),
24
+ var _useState = useState(window.innerWidth),
25
25
  _useState2 = _slicedToArray(_useState, 2),
26
26
  windowSize = _useState2[0],
27
27
  setWindowSize = _useState2[1];
28
- useEffect(function () {
29
- setWindowSize(window.innerWidth);
30
- }, []);
31
28
  useLayoutEffect(function () {
32
29
  function updateSize() {
33
30
  setWindowSize(window.innerWidth);
@@ -56,13 +53,9 @@ var useStickyColumn = function useStickyColumn(hooks) {
56
53
  headerCellElement.classList.add(OFFSET_SCROLL_CLASS);
57
54
  }
58
55
  var boundListener = debounce(onBodyResize.bind(null, tableBodyElement, headerCellElement), 250);
59
- if (typeof window !== 'undefined') {
60
- window.addEventListener('resize', boundListener);
61
- }
56
+ window.addEventListener('resize', boundListener);
62
57
  return function () {
63
- if (typeof window !== 'undefined') {
64
- window.removeEventListener('resize', boundListener);
65
- }
58
+ window.removeEventListener('resize', boundListener);
66
59
  };
67
60
  }, [instance.rows, instance.isFetching]);
68
61
  useEffect(function () {
@@ -1,4 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  /**
3
4
  * Copyright IBM Corp. 2020, 2022
4
5
  *
@@ -7,7 +8,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
7
8
  */
8
9
 
9
10
  import React, { useLayoutEffect, useState, useContext } from 'react';
10
- import { TableToolbarContent, TableToolbarSearch, Button, IconButton, OverflowMenu, OverflowMenuItem, ComposedModal, ModalBody, ModalHeader, ModalFooter, Dropdown } from '@carbon/react';
11
+ import { TableToolbarContent, TableToolbarSearch, Button, OverflowMenu, OverflowMenuItem, ComposedModal, ModalBody, ModalHeader, ModalFooter, Dropdown } from '@carbon/react';
11
12
  import { Download, Add, Restart, ChevronDown, Filter } from '@carbon/react/icons';
12
13
  import { action } from '@storybook/addon-actions';
13
14
  import { pkg } from '../../../settings';
@@ -44,18 +45,25 @@ export var DatagridActions = function DatagridActions(datagridState) {
44
45
  return (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'flyout' && /*#__PURE__*/React.createElement(FilterFlyout, getFilterFlyoutProps());
45
46
  };
46
47
  var renderFilterPanelButton = function renderFilterPanelButton() {
47
- return (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' && /*#__PURE__*/React.createElement(IconButton, {
48
+ return (filterProps === null || filterProps === void 0 ? void 0 : filterProps.variation) === 'panel' && /*#__PURE__*/React.createElement(Button, {
48
49
  kind: "ghost",
49
- align: "bottom",
50
- label: filterProps.panelIconDescription,
50
+ hasIconOnly: true,
51
+ tooltipPosition: "bottom",
52
+ renderIcon: function renderIcon(props) {
53
+ return /*#__PURE__*/React.createElement(Filter, _extends({
54
+ size: 16
55
+ }, props));
56
+ },
57
+ iconDescription: filterProps.panelIconDescription,
51
58
  className: "".concat(blockClass, "-filter-panel-open-button"),
52
59
  onClick: function onClick() {
53
60
  return setPanelOpen(function (open) {
54
61
  return !open;
55
62
  });
56
63
  },
57
- disabled: data.length === 0
58
- }, /*#__PURE__*/React.createElement(Filter, null));
64
+ disabled: data.length === 0,
65
+ tooltipAlignment: "start"
66
+ });
59
67
  };
60
68
  var _useState = useState(false),
61
69
  _useState2 = _slicedToArray(_useState, 2),
@@ -41,8 +41,7 @@ var componentName = 'EditFullPage';
41
41
  // };
42
42
 
43
43
  /**
44
- * Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
45
- * See usage guidance for further details.
44
+ * TODO: A description of the component.
46
45
  */
47
46
  export var EditFullPage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
48
47
  var children = _ref.children,
@@ -38,7 +38,7 @@ var defaults = {
38
38
  };
39
39
 
40
40
  /**
41
- * Use with medium complexity edits if the user needs page context.
41
+ * TODO: A description of the component.
42
42
  */
43
43
  export var EditSidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
44
44
  var children = _ref.children,
@@ -33,10 +33,6 @@ var defaults = {
33
33
  verticalPosition: 'normal',
34
34
  influencerWidth: 'narrow'
35
35
  };
36
-
37
- /**
38
- * Use Tearsheet with medium to complex edits. See usage guidance for further information.
39
- */
40
36
  export var EditTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
41
37
  var cancelButtonText = _ref.cancelButtonText,
42
38
  children = _ref.children,
@@ -41,7 +41,7 @@ var componentName = 'EditTearsheetNarrow';
41
41
  // };
42
42
 
43
43
  /**
44
- * Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
44
+ * TODO: A description of the component.
45
45
  */
46
46
  export var EditTearsheetNarrow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
47
47
  var children = _ref.children,
@@ -44,10 +44,9 @@ var componentName = 'EditUpdateCards';
44
44
  // };
45
45
 
46
46
  /**
47
- Editable cards allow a user to view, modify, and save the content contained within the card.
48
- These cards are generally used in instances where a user needs to make changes to a resource instances
49
- (ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
47
+ * TODO: A description of the component.
50
48
  */
49
+
51
50
  export var EditUpdateCards = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52
51
  var actionIcons = _ref.actionIcons,
53
52
  actionsPlacement = _ref.actionsPlacement,
@@ -32,10 +32,6 @@ export var defaults = {
32
32
  position: 'top',
33
33
  size: 'lg'
34
34
  };
35
-
36
- /**
37
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
38
- */
39
35
  export var EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
40
36
  var action = _ref.action,
41
37
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'ErrorEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'NoDataEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'NoTagsEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'NotFoundEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'NotificationsEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -27,10 +27,6 @@ import { defaults } from '../EmptyState';
27
27
  // The block part of our conventional BEM class names (blockClass__E--M).
28
28
  var blockClass = "".concat(pkg.prefix, "--empty-state");
29
29
  var componentName = 'UnauthorizedEmptyState';
30
-
31
- /**
32
- * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
33
- */
34
30
  export var UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
31
  var action = _ref.action,
36
32
  className = _ref.className,
@@ -28,10 +28,6 @@ var defaults = {
28
28
  preformattedExtensions: Object.freeze([]),
29
29
  validExtensions: Object.freeze([])
30
30
  };
31
-
32
- /**
33
- * Modal dialog version of the export pattern
34
- */
35
31
  export var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
36
32
  var body = _ref.body,
37
33
  className = _ref.className,
@@ -22,12 +22,6 @@ import { pkg } from '../../../settings';
22
22
  // The block part of our conventional BEM class names (blockClass__E--M).
23
23
  var blockClass = "".concat(pkg.prefix, "--http-errors");
24
24
  var componentName = 'HTTPError403';
25
-
26
- /**
27
- * HTTP errors are used in an attempt to access something that isn’t available or
28
- the user doesn’t have permission for. This HTTPError component is generic so you
29
- can use it when you receive an error code that isn't provided.
30
- */
31
25
  export var HTTPError403 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
32
26
  var className = _ref.className,
33
27
  description = _ref.description,
@@ -22,12 +22,6 @@ import { pkg } from '../../../settings';
22
22
  // The block part of our conventional BEM class names (blockClass__E--M).
23
23
  var blockClass = "".concat(pkg.prefix, "--http-errors");
24
24
  var componentName = 'HTTPError404';
25
-
26
- /**
27
- * HTTP errors are used in an attempt to access something that isn’t available or
28
- the user doesn’t have permission for. This HTTPError component is generic so you
29
- can use it when you receive an error code that isn't provided.
30
- */
31
25
  export var HTTPError404 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
32
26
  var className = _ref.className,
33
27
  description = _ref.description,
@@ -22,12 +22,6 @@ import { pkg } from '../../../settings';
22
22
  // The block part of our conventional BEM class names (blockClass__E--M).
23
23
  var blockClass = "".concat(pkg.prefix, "--http-errors");
24
24
  var componentName = 'HTTPErrorOther';
25
-
26
- /**
27
- * HTTP errors are used in an attempt to access something that isn’t available or
28
- the user doesn’t have permission for. This HTTPError component is generic so you
29
- can use it when you receive an error code that isn't provided.
30
- */
31
25
  export var HTTPErrorOther = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
32
26
  var className = _ref.className,
33
27
  description = _ref.description,
@@ -179,13 +179,6 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
179
179
  var inputHandler = function inputHandler(evt) {
180
180
  setImportUrl(evt.target.value);
181
181
  };
182
- var onCloseHandler = function onCloseHandler() {
183
- setFiles([]);
184
- setImportUrl('');
185
- if (onClose) {
186
- onClose();
187
- }
188
- };
189
182
  var numberOfFiles = files.length;
190
183
  var numberOfValidFiles = files.filter(function (f) {
191
184
  return !f.invalid;
@@ -197,13 +190,13 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
197
190
  var blockClass = "".concat(pkg.prefix, "--import-modal");
198
191
  return /*#__PURE__*/React.createElement(ComposedModal, _extends({}, rest, _objectSpread({
199
192
  open: open,
200
- ref: ref
193
+ ref: ref,
194
+ onClose: onClose
201
195
  }, getDevtoolsProps(componentName)), {
202
196
  "aria-label": title,
203
197
  className: cx(blockClass, className),
204
198
  size: "sm",
205
- preventCloseOnClickOutside: true,
206
- onClose: onCloseHandler
199
+ preventCloseOnClickOutside: true
207
200
  }), /*#__PURE__*/React.createElement(ModalHeader, {
208
201
  className: "".concat(blockClass, "__header"),
209
202
  title: title
@@ -266,7 +259,7 @@ export var ImportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
266
259
  }, /*#__PURE__*/React.createElement(Button, {
267
260
  type: "button",
268
261
  kind: "secondary",
269
- onClick: onCloseHandler
262
+ onClick: onClose
270
263
  }, secondaryButtonText), /*#__PURE__*/React.createElement(Button, {
271
264
  type: "submit",
272
265
  kind: "primary",
@@ -369,11 +362,11 @@ ImportModal.propTypes = {
369
362
  /**
370
363
  * Specify a handler for "submitting" modal. Access the imported file via `file => {}`
371
364
  */
372
- onRequestSubmit: PropTypes.func.isRequired,
365
+ onRequestSubmit: PropTypes.func,
373
366
  /**
374
367
  * Specify whether the Modal is currently open
375
368
  */
376
- open: PropTypes.bool.isRequired,
369
+ open: PropTypes.bool,
377
370
  /**
378
371
  * Specify the text for the primary button
379
372
  */
@@ -12,10 +12,6 @@ import { AddSelect } from '../AddSelect';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools';
13
13
  import { pkg } from '../../settings';
14
14
  var componentName = 'MultiAddSelect';
15
-
16
- /**
17
- * Used to add or select multiple or more items from larger lists or hierarchies.
18
- */
19
15
  export var MultiAddSelect = /*#__PURE__*/forwardRef(function (props, ref) {
20
16
  return /*#__PURE__*/React.createElement(AddSelect, _extends({}, props, {
21
17
  multi: true,
@@ -15,19 +15,34 @@ var UnreadNotificationBell = function UnreadNotificationBell() {
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  xmlnsXlink: "http://www.w3.org/1999/xlink"
17
17
  }, /*#__PURE__*/React.createElement("title", null, "Unread notification bell"), /*#__PURE__*/React.createElement("g", {
18
+ id: "Page-1",
19
+ stroke: "none",
20
+ strokeWidth: "1",
21
+ fill: "none",
22
+ fillRule: "evenodd"
23
+ }, /*#__PURE__*/React.createElement("g", {
18
24
  id: "Group",
19
25
  transform: "translate(-1.000000, 0.000000)"
26
+ }, /*#__PURE__*/React.createElement("g", {
27
+ id: "notification"
20
28
  }, /*#__PURE__*/React.createElement("path", {
21
29
  d: "M17.9419375,12.058125 L16.25,10.3661875 L16.25,8.125 C16.245845,4.91692673 13.816599,2.23147626 10.625,1.90675 L10.625,0.625 L9.375,0.625 L9.375,1.90675 C6.183401,2.23147626 3.754155,4.91692673 3.75,8.125 L3.75,10.3661875 L2.0580625,12.058125 C1.94086706,12.1753182 1.875,12.3342622 1.875,12.5 L1.875,14.375 C1.875,14.720178 2.15482203,15 2.5,15 L6.875,15 L6.875,15.4855 C6.84694527,17.1272367 8.05869477,18.5271305 9.6875,18.7346875 C10.5660567,18.8218694 11.4405518,18.5337871 12.0952737,17.9415019 C12.7499955,17.3492167 13.1239886,16.5078712 13.125,15.625 L13.125,15 L17.5,15 C17.845178,15 18.125,14.720178 18.125,14.375 L18.125,12.5 C18.125,12.3342622 18.0591329,12.1753182 17.9419375,12.058125 Z M11.875,15.625 C11.875,16.6605339 11.0355339,17.5 10,17.5 C8.96446609,17.5 8.125,16.6605339 8.125,15.625 L8.125,15 L11.875,15 L11.875,15.625 Z M16.875,13.75 L3.125,13.75 L3.125,12.7588125 L4.816875,11.066875 C4.93409336,10.949692 4.9999646,10.7907468 5,10.625 L5,8.125 C5,5.36357625 7.23857625,3.125 10,3.125 C12.7614237,3.125 15,5.36357625 15,8.125 L15,10.625 C15.0000354,10.7907468 15.0659066,10.949692 15.183125,11.066875 L16.875,12.7588125 L16.875,13.75 Z",
22
30
  id: "Shape",
31
+ fill: "#FFFFFF",
23
32
  fillRule: "nonzero"
24
- }), /*#__PURE__*/React.createElement("circle", {
33
+ }), /*#__PURE__*/React.createElement("rect", {
34
+ id: "_Transparent_Rectangle_",
35
+ x: "0",
36
+ y: "0",
37
+ width: "20",
38
+ height: "20"
39
+ })), /*#__PURE__*/React.createElement("circle", {
25
40
  id: "Oval",
26
41
  stroke: "#161616",
27
42
  fill: "#DA1E28",
28
43
  cx: "15",
29
44
  cy: "4.375",
30
45
  r: "2.5"
31
- })));
46
+ }))));
32
47
  };
33
48
  export { UnreadNotificationBell };
@@ -314,8 +314,12 @@ export var PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
314
314
  utilSetCollapsed(collapseHeader, metrics.headerOffset, metrics.headerTopValue);
315
315
  }
316
316
  }, [collapseHeader, metrics.headerOffset, metrics.headerTopValue]);
317
- useResizeObserver(sizingContainerRef, handleResizeActionBarColumn);
318
- useResizeObserver(headerRef, handleResize);
317
+ useResizeObserver(sizingContainerRef, {
318
+ callback: handleResizeActionBarColumn
319
+ });
320
+ useResizeObserver(headerRef, {
321
+ callback: handleResize
322
+ });
319
323
 
320
324
  // Determine what form of title to display in the breadcrumb
321
325
  var breadcrumbItemForTitle = utilGetBreadcrumbItemForTitle(blockClass, collapseTitle, title);
@@ -65,11 +65,11 @@ export var utilCheckUpdateVerticalSpace = function utilCheckUpdateVerticalSpace(
65
65
  var scrollableContainer = scrollableAncestor(headerRef.current);
66
66
 
67
67
  /* istanbul ignore next */
68
- var scrollableContainerTop = scrollableContainer ? scrollableContainer.scrollTop - scrollableContainer.getBoundingClientRect().top : 0;
68
+ var scrollableContainerTop = scrollableContainer ? scrollableContainer.scrollTop - scrollableContainer.offsetTop : 0;
69
69
 
70
70
  // The header offset calculation is either going to work out at 0 if we have no gap between scrolling container
71
71
  // top and the measuring ref top, or the difference between. It does not change on scroll or resize.
72
- update.headerOffset = (offsetTopMeasuringRef.current ? offsetTopMeasuringRef.current.getBoundingClientRect().top : 0) + scrollableContainerTop;
72
+ update.headerOffset = scrollableContainerTop + offsetTopMeasuringRef.current.getBoundingClientRect().top;
73
73
 
74
74
  /* istanbul ignore next */
75
75
  update.breadcrumbRowHeight = breadcrumbRowEl ? breadcrumbRowEl.clientHeight : 0;
@@ -21,12 +21,6 @@ import uuidv4 from '../../global/js/utils/uuidv4';
21
21
  import { pkg } from '../../settings';
22
22
  import { usePreviousValue } from '../../global/js/hooks';
23
23
  var componentName = 'RemoveModal';
24
-
25
- /**
26
- The `RemoveModal` covers what is known as high impact and medium impact deleting.
27
- Enabling `textConfirmation` enables what would be considered the high impact state of the modal.
28
- For additional information on differentiating between delete / remove and low / medium / high impact please refer to the usage guidelines.
29
- */
30
24
  export var RemoveModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
25
  var body = _ref.body,
32
26
  className = _ref.className,
@@ -444,7 +444,9 @@ export var SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
444
444
  }, title));
445
445
  };
446
446
  var contentRef = ref || sidePanelRef;
447
- useResizeObserver(contentRef, handleResize);
447
+ useResizeObserver(contentRef, {
448
+ callback: handleResize
449
+ });
448
450
  return /*#__PURE__*/React.createElement(AnimatePresence, null, open && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(motion.div, _extends({}, getDevtoolsProps(componentName), rest, {
449
451
  id: "".concat(blockClass, "-outer"),
450
452
  className: mainPanelClassNames,
@@ -13,10 +13,6 @@ import { getDevtoolsProps } from '../../global/js/utils/devtools';
13
13
  import { pkg } from '../../settings';
14
14
  import { prepareProps } from '../../global/js/utils/props-helper';
15
15
  var componentName = 'SingleAddSelect';
16
-
17
- /**
18
- * Used to add or select one or more items from larger lists or hierarchies.
19
- */
20
16
  export var SingleAddSelect = /*#__PURE__*/forwardRef(function (props, ref) {
21
17
  // remove multi add select specific props
22
18
  var validProps = prepareProps(props, ['columnInputPlaceholder', 'globalFilters', 'globalFiltersIconDescription', 'globalFiltersPlaceholderText', 'globalFiltersPrimaryButtonText', 'globalFiltersSecondaryButtonText', 'influencerTitle', 'multi', 'noSelectionDescription', 'noSelectionTitle', 'removeIconDescription']);