@carbon/ibm-products 2.54.0-canary.4 → 2.54.0-canary.40

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 (235) hide show
  1. package/css/index-full-carbon.css +96 -23
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +20 -10
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +20 -10
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +33 -13
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
  18. package/es/components/APIKeyModal/APIKeyModal.js +17 -14
  19. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +5 -1
  20. package/es/components/AboutModal/AboutModal.js +3 -6
  21. package/es/components/AddSelect/hooks/useFocus.js +1 -2
  22. package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
  23. package/es/components/AddSelect/hooks/usePath.js +1 -2
  24. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
  25. package/es/components/Card/Card.js +13 -9
  26. package/es/components/Checklist/Checklist.js +1 -1
  27. package/es/components/Checklist/ChecklistIcon.js +1 -1
  28. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  29. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  30. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  31. package/es/components/ConditionBuilder/utils/util.js +0 -4
  32. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  33. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
  34. package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
  35. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
  36. package/es/components/Datagrid/Datagrid/Datagrid.js +7 -0
  37. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  38. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  39. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  40. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  41. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  42. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  43. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
  44. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
  45. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  46. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  47. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  48. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  49. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  50. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  51. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  52. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  53. package/es/components/Datagrid/useCustomizeColumns.js +4 -4
  54. package/es/components/Datagrid/useDatagrid.js +2 -2
  55. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  56. package/es/components/Datagrid/useEditableCell.js +1 -2
  57. package/es/components/Datagrid/useFlexResize.js +1 -2
  58. package/es/components/Datagrid/useFloatingScroll.js +1 -2
  59. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  60. package/es/components/Datagrid/useParentDimensions.js +1 -2
  61. package/es/components/Datagrid/useResizeTable.js +1 -2
  62. package/es/components/Datagrid/useRowExpander.js +1 -2
  63. package/es/components/Datagrid/useRowRenderer.js +1 -2
  64. package/es/components/Datagrid/useRowSize.js +1 -2
  65. package/es/components/Datagrid/useSkeletonRows.js +1 -2
  66. package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  67. package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  68. package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  69. package/es/components/DecoratorLink/DecoratorLink.js +5 -0
  70. package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  71. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  72. package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
  73. package/es/components/DescriptionList/DescriptionList.js +5 -0
  74. package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
  75. package/es/components/EditFullPage/EditFullPage.js +8 -0
  76. package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  77. package/es/components/EditSidePanel/EditSidePanel.js +8 -0
  78. package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  79. package/es/components/EditTearsheet/EditTearsheet.js +8 -0
  80. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  81. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  82. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  83. package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
  84. package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
  85. package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  86. package/es/components/EmptyStates/EmptyStateV2.js +7 -0
  87. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  88. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  89. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  90. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  91. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  92. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  93. package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  94. package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  95. package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  96. package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  97. package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  98. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  99. package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
  100. package/es/components/FilterPanel/FilterPanel.js +6 -0
  101. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  102. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  103. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  104. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  105. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  106. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  107. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  108. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  109. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  110. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  111. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  112. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  113. package/es/components/Nav/Nav.d.ts +3 -0
  114. package/es/components/Nav/Nav.js +8 -0
  115. package/es/components/Nav/NavItemLink.js +1 -2
  116. package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  117. package/es/components/StatusIndicator/StatusIndicator.js +5 -0
  118. package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  119. package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  120. package/es/components/Tearsheet/TearsheetShell.js +3 -24
  121. package/es/global/js/hooks/useFocus.d.ts +1 -0
  122. package/es/global/js/hooks/useFocus.js +21 -1
  123. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
  124. package/es/index.js +1 -1
  125. package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
  126. package/lib/components/APIKeyModal/APIKeyModal.js +16 -13
  127. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +5 -1
  128. package/lib/components/AboutModal/AboutModal.js +2 -5
  129. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  130. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  131. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  132. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
  133. package/lib/components/Card/Card.js +12 -8
  134. package/lib/components/Checklist/ChecklistChart.js +7 -7
  135. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  136. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  137. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  138. package/lib/components/ConditionBuilder/utils/util.js +0 -4
  139. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  140. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
  141. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
  142. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
  143. package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -0
  144. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  145. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  146. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  147. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  148. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  149. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  150. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
  151. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
  152. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  153. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  154. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  155. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  156. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  157. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  158. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  159. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  160. package/lib/components/Datagrid/useColumnOrder.js +1 -1
  161. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  162. package/lib/components/Datagrid/useEditableCell.js +1 -2
  163. package/lib/components/Datagrid/useFlexResize.js +1 -2
  164. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  165. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  166. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  167. package/lib/components/Datagrid/useResizeTable.js +1 -2
  168. package/lib/components/Datagrid/useRowExpander.js +1 -2
  169. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  170. package/lib/components/Datagrid/useRowSize.js +1 -2
  171. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  172. package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  173. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  174. package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  175. package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
  176. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  177. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  178. package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
  179. package/lib/components/DescriptionList/DescriptionList.js +5 -0
  180. package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
  181. package/lib/components/EditFullPage/EditFullPage.js +8 -0
  182. package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  183. package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
  184. package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  185. package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
  186. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  187. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  188. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  189. package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
  190. package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
  191. package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  192. package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
  193. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  194. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  195. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  196. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  197. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  198. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  199. package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  200. package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  201. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  202. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  203. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  204. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  205. package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
  206. package/lib/components/FilterPanel/FilterPanel.js +6 -0
  207. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  208. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  209. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  210. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  211. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  212. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  213. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  214. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  215. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  216. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  217. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  218. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  219. package/lib/components/Nav/Nav.d.ts +3 -0
  220. package/lib/components/Nav/Nav.js +8 -0
  221. package/lib/components/Nav/NavItemLink.js +1 -2
  222. package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  223. package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
  224. package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  225. package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  226. package/lib/components/Tearsheet/TearsheetShell.js +2 -23
  227. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  228. package/lib/global/js/hooks/useFocus.js +21 -0
  229. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
  230. package/lib/index.js +109 -109
  231. package/package.json +11 -11
  232. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +2 -3
  233. package/scss/components/Datagrid/styles/_datagrid.scss +16 -6
  234. package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
  235. package/scss/components/PageHeader/_page-header.scss +5 -0
@@ -17,10 +17,11 @@ import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
17
17
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
18
18
  import { isRequiredIf } from '../../global/js/utils/props-helper.js';
19
19
  import uuidv4 from '../../global/js/utils/uuidv4.js';
20
- import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js';
20
+ import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
21
+ import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
21
22
 
22
23
  var _ErrorFilled, _InformationFilled;
23
- var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
24
+ var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "launcherButtonRef", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
24
25
  var componentName = 'APIKeyModal';
25
26
 
26
27
  // Default values for props
@@ -61,6 +62,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
61
62
  hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
62
63
  hasDownloadLink = _ref.hasDownloadLink,
63
64
  hideAPIKeyLabel = _ref.hideAPIKeyLabel,
65
+ launcherButtonRef = _ref.launcherButtonRef,
64
66
  loading = _ref.loading,
65
67
  loadingText = _ref.loadingText,
66
68
  modalLabel = _ref.modalLabel,
@@ -118,6 +120,7 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
118
120
  var _useFocus = useFocus(modalRef, selectorPrimaryFocus),
119
121
  firstElement = _useFocus.firstElement,
120
122
  keyDownListener = _useFocus.keyDownListener;
123
+ var prevOpen = usePreviousValue(open);
121
124
  useEffect(function () {
122
125
  if (copyRef.current && open && apiKeyLoaded) {
123
126
  copyRef.current.focus();
@@ -126,21 +129,16 @@ var APIKeyModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
126
129
  useEffect(function () {
127
130
  if (open) {
128
131
  // Focusing the first element or selectorPrimaryFocus element
129
- if (selectorPrimaryFocus && getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
130
- var _window;
131
- var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
132
- if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
133
- setTimeout(function () {
134
- return specifiedEl.focus();
135
- }, 0);
136
- return;
137
- }
138
- }
132
+ claimFocus(firstElement, modalRef, selectorPrimaryFocus);
133
+ }
134
+ }, [firstElement, modalRef, open, selectorPrimaryFocus]);
135
+ useEffect(function () {
136
+ if (prevOpen && !open && launcherButtonRef) {
139
137
  setTimeout(function () {
140
- firstElement === null || firstElement === void 0 || firstElement.focus();
138
+ launcherButtonRef.current.focus();
141
139
  }, 0);
142
140
  }
143
- }, [firstElement, modalRef, open, selectorPrimaryFocus]);
141
+ }, [launcherButtonRef, open, prevOpen]);
144
142
  var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
145
143
  if (loading) {
146
144
  return true;
@@ -486,6 +484,11 @@ APIKeyModal.propTypes = {
486
484
  * label text that's displayed when hovering over visibility toggler to hide key
487
485
  */
488
486
  hideAPIKeyLabel: PropTypes.string,
487
+ /**
488
+ * Provide a ref to return focus to once the tearsheet is closed.
489
+ */
490
+ /**@ts-ignore */
491
+ launcherButtonRef: PropTypes.any,
489
492
  /**
490
493
  * designates if the modal is in a loading state via a request or some other in progress operation
491
494
  */
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import { ReactNode } from 'react';
7
+ import { ReactNode, RefObject } from 'react';
8
8
  interface APIKeyModalCommonProps {
9
9
  /**
10
10
  * the api key that's displayed to the user when a request to create is fulfilled.
@@ -92,6 +92,10 @@ interface APIKeyModalCommonProps {
92
92
  * label text that's displayed when hovering over visibility toggler to hide key
93
93
  */
94
94
  hideAPIKeyLabel?: string;
95
+ /**
96
+ * Provide a ref to return focus to once the tearsheet is closed.
97
+ */
98
+ launcherButtonRef?: RefObject<any>;
95
99
  /**
96
100
  * designates if the modal is in a loading state via a request or some other in progress operation
97
101
  */
@@ -11,7 +11,7 @@ import React__default, { useRef, useEffect } from 'react';
11
11
  import PropTypes from '../../_virtual/index.js';
12
12
  import cx from 'classnames';
13
13
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
14
- import { useFocus } from '../../global/js/hooks/useFocus.js';
14
+ import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
15
15
  import { pkg } from '../../settings.js';
16
16
  import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
17
17
  import uuidv4 from '../../global/js/utils/uuidv4.js';
@@ -62,12 +62,9 @@ var AboutModal = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
62
62
  }, [bodyRef]);
63
63
  useEffect(function () {
64
64
  if (open) {
65
- setTimeout(function () {
66
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
67
- }, 0);
65
+ claimFocus(firstElement, modalRef);
68
66
  }
69
- // eslint-disable-next-line react-hooks/exhaustive-deps
70
- }, [open]);
67
+ }, [firstElement, modalRef, open]);
71
68
  return renderPortalUse( /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
72
69
  enableExperimentalFocusWrapWithoutSentinels: true
73
70
  }, /*#__PURE__*/React__default.createElement(ComposedModal, _extends({}, rest, {
@@ -36,6 +36,5 @@ var useFocus = function useFocus(size) {
36
36
  }, [handleKeyDown]);
37
37
  return [currentFocus, setCurrentFocus];
38
38
  };
39
- var useFocus$1 = useFocus;
40
39
 
41
- export { useFocus$1 as default };
40
+ export { useFocus as default };
@@ -18,6 +18,5 @@ var useParentSelect = function useParentSelect() {
18
18
  setParentSelected: setParentSelected
19
19
  };
20
20
  };
21
- var useParentSelect$1 = useParentSelect;
22
21
 
23
- export { useParentSelect$1 as default };
22
+ export { useParentSelect as default };
@@ -66,6 +66,5 @@ var usePath = function usePath() {
66
66
  resetPath: resetPath
67
67
  };
68
68
  };
69
- var usePath$1 = usePath;
70
69
 
71
- export { usePath$1 as default };
70
+ export { usePath as default };
@@ -10,7 +10,7 @@ import React__default, { useState, useRef, useEffect } from 'react';
10
10
  import PropTypes from '../../_virtual/index.js';
11
11
  import cx from 'classnames';
12
12
  import { useResizeObserver } from '../../global/js/hooks/useResizeObserver.js';
13
- import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip, OverflowMenuItem } from '@carbon/react';
13
+ import { usePrefix, Breadcrumb, BreadcrumbItem, OverflowMenu, Link, Tooltip, unstable_FeatureFlags, MenuItem } from '@carbon/react';
14
14
  import { pkg } from '../../settings.js';
15
15
  import { OverflowMenuHorizontal, ArrowLeft } from '@carbon/react/icons';
16
16
  import uuidv4 from '../../global/js/utils/uuidv4.js';
@@ -61,12 +61,20 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
61
61
  // eslint-disable-next-line react/prop-types
62
62
  var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
63
63
  var overflowItems = _ref2.overflowItems;
64
+ var handleClick = function handleClick(evt, item) {
65
+ var _item$props, _item$props2, _item$props2$onClick;
66
+ if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
67
+ window.location.href = item.props.href;
68
+ }
69
+ item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 || (_item$props2$onClick = _item$props2.onClick) === null || _item$props2$onClick === void 0 || _item$props2$onClick.call(_item$props2, evt);
70
+ };
64
71
  return /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
65
72
  key: "breadcrumb-overflow-".concat(internalId.current)
73
+ }, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
74
+ enableV12Overflowmenu: true
66
75
  }, /*#__PURE__*/React__default.createElement(OverflowMenu, {
67
- align: overflowTooltipAlign,
68
76
  "aria-label": overflowAriaLabel,
69
- iconDescription: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
77
+ label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
70
78
  ,
71
79
  renderIcon: function renderIcon(props) {
72
80
  return /*#__PURE__*/React__default.createElement(OverflowMenuHorizontal, _extends({
@@ -74,17 +82,18 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
74
82
  }, props));
75
83
  },
76
84
  className: "".concat(blockClass, "__overflow-menu"),
77
- menuOptionsClass: "".concat(blockClass, "__overflow-menu-options")
85
+ tooltipAlignment: overflowTooltipAlign
78
86
  },
79
87
  // eslint-disable-next-line react/prop-types
80
88
  overflowItems.map(function (item, index) {
81
- return /*#__PURE__*/React__default.createElement(OverflowMenuItem, {
89
+ return /*#__PURE__*/React__default.createElement(MenuItem, {
82
90
  key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
83
- href: item.props.href,
84
- onClick: item.props.onClick,
85
- itemText: item.props.children
91
+ onClick: function onClick(evt) {
92
+ return handleClick(evt, item);
93
+ },
94
+ label: item.props.children
86
95
  });
87
- })));
96
+ }))));
88
97
  };
89
98
 
90
99
  // create hidden sizing items
@@ -8,7 +8,7 @@
8
8
  import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef } from 'react';
10
10
  import cx from 'classnames';
11
- import { Layer, OverflowMenu, OverflowMenuItem, Button, IconButton } from '@carbon/react';
11
+ import { Layer, unstable_FeatureFlags, OverflowMenu, MenuItem, Button, IconButton } from '@carbon/react';
12
12
  import { Incomplete, CheckmarkOutline } from '@carbon/react/icons';
13
13
  import PropTypes from '../../_virtual/index.js';
14
14
  import { CardHeader } from './CardHeader.js';
@@ -17,7 +17,7 @@ import { pkg } from '../../settings.js';
17
17
 
18
18
  var _Incomplete, _CheckmarkOutline;
19
19
  var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
20
- _excluded2 = ["id"],
20
+ _excluded2 = ["id", "itemText"],
21
21
  _excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
22
22
  var componentName = 'Card';
23
23
  var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
@@ -95,23 +95,27 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
95
95
  // actions can either be an overflow menu or series of icons
96
96
  var getActions = function getActions() {
97
97
  if (overflowActions.length > 0) {
98
- var pos = actionsPlacement === 'top' ? 'bottom' : 'top';
98
+ var pos = actionsPlacement === 'top' ? 'bottom-end' : 'top-end';
99
99
  var size = actionsPlacement === 'top' ? 'sm' : 'md';
100
100
  return /*#__PURE__*/React__default.createElement(Layer, {
101
101
  level: 2
102
+ }, /*#__PURE__*/React__default.createElement(unstable_FeatureFlags, {
103
+ enableV12Overflowmenu: true
102
104
  }, /*#__PURE__*/React__default.createElement(OverflowMenu, {
105
+ autoAlign: true,
106
+ menuAlignment: pos,
103
107
  size: size,
104
- direction: pos,
105
- flipped: true,
106
108
  "aria-label": overflowAriaLabel,
107
- iconDescription: iconDescription
109
+ label: iconDescription
108
110
  }, overflowActions.map(function (_ref2) {
109
111
  var id = _ref2.id,
112
+ itemText = _ref2.itemText,
110
113
  rest = _objectWithoutProperties(_ref2, _excluded2);
111
- return /*#__PURE__*/React__default.createElement(OverflowMenuItem, _extends({
112
- key: id
114
+ return /*#__PURE__*/React__default.createElement(MenuItem, _extends({
115
+ key: id,
116
+ label: itemText
113
117
  }, rest));
114
- })));
118
+ }))));
115
119
  }
116
120
  var icons = getIcons().map(function (_ref3) {
117
121
  var id = _ref3.id,
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { IconButton, Button } from '@carbon/react';
10
- import { Themes, Kinds } from './Checklist.types.js';
10
+ import { Kinds, Themes } from './Checklist.types.js';
11
11
  import React__default, { useState, useRef, useEffect } from 'react';
12
12
  import { ChecklistChart } from './ChecklistChart.js';
13
13
  import { ChecklistIcon } from './ChecklistIcon.js';
@@ -12,7 +12,7 @@ import cx from 'classnames';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
13
  import { pkg } from '../../settings.js';
14
14
  import { CircleDash, CheckmarkOutline, Incomplete, Warning } from '@carbon/react/icons';
15
- import { Themes, Kinds } from './Checklist.types.js';
15
+ import { Kinds, Themes } from './Checklist.types.js';
16
16
 
17
17
  var _excluded = ["className", "kind", "theme"];
18
18
 
@@ -50,6 +50,5 @@ var GroupConnector = function GroupConnector() {
50
50
  }
51
51
  })));
52
52
  };
53
- var GroupConnector$1 = GroupConnector;
54
53
 
55
- export { GroupConnector$1 as default };
54
+ export { GroupConnector as default };
@@ -63,9 +63,6 @@ var ItemOption = function ItemOption(_ref) {
63
63
  className: "".concat(blockClass, "__statement_wrapper")
64
64
  }, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
65
65
  };
66
- var preventDefault = function preventDefault(evt) {
67
- return evt.preventDefault();
68
- };
69
66
  if (!allOptions) {
70
67
  return;
71
68
  }
@@ -78,8 +75,7 @@ var ItemOption = function ItemOption(_ref) {
78
75
  size: "sm",
79
76
  labelText: clearSearchText,
80
77
  closeButtonLabelText: clearSearchText,
81
- onChange: onSearchChangeHandler,
82
- onKeyDown: preventDefault
78
+ onChange: onSearchChangeHandler
83
79
  })), /*#__PURE__*/React__default.createElement("ul", {
84
80
  "aria-label": getAriaLabel(),
85
81
  role: "listbox"
@@ -129,13 +129,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
129
129
  } else {
130
130
  onChange(option, evt);
131
131
  }
132
+ if (evt.target instanceof SVGElement) {
133
+ evt.stopPropagation();
134
+ //stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
135
+ }
132
136
  };
133
137
  var getAriaLabel = function getAriaLabel() {
134
138
  return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
135
139
  };
136
- var preventDefault = function preventDefault(evt) {
137
- return evt.preventDefault();
138
- };
139
140
  if (!allOptions) {
140
141
  return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
141
142
  }
@@ -148,8 +149,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
148
149
  size: "sm",
149
150
  labelText: clearSearchText,
150
151
  closeButtonLabelText: clearSearchText,
151
- onChange: onSearchChangeHandler,
152
- onKeyDown: preventDefault
152
+ onChange: onSearchChangeHandler
153
153
  })), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
154
154
  className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
155
155
  }, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
@@ -48,10 +48,6 @@ var traverseReverse = function traverseReverse(eachElem, index, allElements, rot
48
48
  }
49
49
  };
50
50
  var checkForHoldingKey = function checkForHoldingKey(evt, key) {
51
- // possible key inputs: altKey,ctrlKey,metaKey,shiftKey
52
- if (key === 'cmd') {
53
- return evt.metaKey || evt.ctrlKey;
54
- }
55
51
  return evt[key];
56
52
  };
57
53
  var checkIsValid = function checkIsValid(item) {
@@ -8,7 +8,7 @@ import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'r
8
8
  import { ExperimentalSecondarySubmit } from './CreateTearsheetStep';
9
9
  export interface StepsContextType {
10
10
  currentStep: number;
11
- setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit>>;
11
+ setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit | undefined>>;
12
12
  setIsDisabled: Dispatch<SetStateAction<boolean>>;
13
13
  setOnPrevious: (fn: any) => void;
14
14
  setOnNext: (fn: any) => void;
@@ -105,7 +105,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
105
105
  _useState24 = _slicedToArray(_useState23, 2),
106
106
  lastIncludedStep = _useState24[0],
107
107
  setLastIncludedStep = _useState24[1];
108
- var _useState25 = useState({}),
108
+ var _useState25 = useState(),
109
109
  _useState26 = _slicedToArray(_useState25, 2),
110
110
  experimentalSecondarySubmit = _useState26[0],
111
111
  setExperimentalSecondarySubmit = _useState26[1];
@@ -176,7 +176,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
176
176
  isSubmitting: isSubmitting,
177
177
  componentBlockClass: blockClass,
178
178
  experimentalSecondarySubmit: experimentalSecondarySubmit,
179
- experimentalSecondarySubmitText: experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
179
+ experimentalSecondarySubmitText: experimentalSecondarySubmit !== null && experimentalSecondarySubmit !== void 0 && experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
180
180
  setCreateComponentActions: setCreateTearsheetActions
181
181
  });
182
182
  return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, getDevtoolsProps(componentName), rest, {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useRef, useContext, useState, useEffect, isValidElement } from 'react';
10
10
  import PropTypes from '../../_virtual/index.js';
11
11
  import cx from 'classnames';
@@ -82,7 +82,7 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
82
82
  useEffect(function () {
83
83
  if (stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep) && (previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)) {
84
84
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnMount(onMount);
85
- stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(_objectSpread2({}, experimentalSecondarySubmit));
85
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
86
86
  }
87
87
  }, [onMount, experimentalSecondarySubmit, stepsContext, stepNumber, previousState === null || previousState === void 0 ? void 0 : previousState.currentStep]);
88
88
 
@@ -118,8 +118,11 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
118
118
  stepsContext.setIsDisabled(!!disableSubmit);
119
119
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnNext(onNext); // needs to be updated here otherwise there could be stale state values from only initially setting onNext
120
120
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
121
+
122
+ //Handle props for experimentalSecondarySubmit button, depending on state change
123
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
121
124
  }
122
- }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue]);
125
+ }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue, experimentalSecondarySubmit]);
123
126
  var renderDescription = function renderDescription() {
124
127
  if (description) {
125
128
  if (typeof description === 'string') {
@@ -19,5 +19,6 @@ export interface DatagridProps {
19
19
  }
20
20
  /**
21
21
  * The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
22
+ * @deprecated
22
23
  */
23
24
  export declare let Datagrid: React.ForwardRefExoticComponent<DatagridProps & React.RefAttributes<HTMLDivElement>>;
@@ -21,6 +21,7 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
21
21
  var componentName = 'Datagrid';
22
22
  /**
23
23
  * The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
24
+ * @deprecated
24
25
  */
25
26
  var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
26
27
  var datagridState = _ref.datagridState,
@@ -55,6 +56,12 @@ var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
55
56
  }, /*#__PURE__*/React__default.createElement(DatagridContent, props)) : /*#__PURE__*/React__default.createElement(DatagridContent, props))));
56
57
  });
57
58
 
59
+ /**@ts-ignore*/
60
+ Datagrid.deprecated = {
61
+ level: 'warn',
62
+ details: "For more information, please refer to the migration docs https://github.com/carbon-design-system/tanstack-carbon"
63
+ };
64
+
58
65
  // Return a placeholder if not released and not enabled by feature flag
59
66
  Datagrid = pkg.checkComponentEnabled(Datagrid, componentName);
60
67
 
@@ -57,12 +57,12 @@ var ResizeHeader = function ResizeHeader(_ref) {
57
57
  if (key === 'ArrowLeft') {
58
58
  if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
59
59
  var newWidth = currentColumnWidth - incrementAmount;
60
- handleColumnResizingEvent(dispatch, header, newWidth, true);
60
+ handleColumnResizingEvent(dispatch, header, newWidth);
61
61
  }
62
62
  }
63
63
  if (key === 'ArrowRight') {
64
64
  var _newWidth = currentColumnWidth + incrementAmount;
65
- handleColumnResizingEvent(dispatch, header, _newWidth, true);
65
+ handleColumnResizingEvent(dispatch, header, _newWidth);
66
66
  }
67
67
  }
68
68
  };
@@ -37,6 +37,5 @@ Actions.propTypes = {
37
37
  setColumnsObject: PropTypes.func.isRequired,
38
38
  setSearchText: PropTypes.func.isRequired
39
39
  };
40
- var Actions$1 = Actions;
41
40
 
42
- export { Actions$1 as default };
41
+ export { Actions as default };
@@ -49,6 +49,5 @@ ButtonWrapper.propTypes = {
49
49
  onClick: PropTypes.func.isRequired,
50
50
  setIsTearsheetOpen: PropTypes.func.isRequired
51
51
  };
52
- var ToggleButtonWrapper = ButtonWrapper;
53
52
 
54
- export { ToggleButtonWrapper as default };
53
+ export { ButtonWrapper as default };
@@ -93,6 +93,5 @@ Columns.propTypes = {
93
93
  setColumnStatus: PropTypes.func,
94
94
  setColumnsObject: PropTypes.func.isRequired
95
95
  };
96
- var Columns$1 = Columns;
97
96
 
98
- export { Columns$1 as default };
97
+ export { Columns as default };
@@ -187,6 +187,5 @@ CustomizeColumnsTearsheet.propTypes = {
187
187
  selectAllLabel: PropTypes.string,
188
188
  setIsTearsheetOpen: PropTypes.func.isRequired
189
189
  };
190
- var CustomizeColumnsTearsheet$1 = CustomizeColumnsTearsheet;
191
190
 
192
- export { CustomizeColumnsTearsheet$1 as default };
191
+ export { CustomizeColumnsTearsheet as default };
@@ -61,6 +61,5 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
61
61
  TearsheetWrapper.propTypes = {
62
62
  instance: PropTypes.object.isRequired
63
63
  };
64
- var CustomizeColumnsTearsheetWrapper = TearsheetWrapper;
65
64
 
66
- export { CustomizeColumnsTearsheetWrapper as default };
65
+ export { TearsheetWrapper as default };
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS, SAVED_FILTERS } from './constants.js';
9
+ import { BATCH, INSTANT, CLEAR_FILTERS, FLYOUT, SAVED_FILTERS } from './constants.js';
10
10
  import { usePrefix, IconButton } from '@carbon/react';
11
11
  import React__default, { useState, useRef, useContext, useEffect } from 'react';
12
12
  import { breakpoints, px } from '@carbon/layout';
@@ -327,6 +327,5 @@ FilterFlyout.propTypes = {
327
327
  */
328
328
  updateMethod: PropTypes.oneOf([BATCH, INSTANT]).isRequired
329
329
  };
330
- var FilterFlyout$1 = FilterFlyout;
331
330
 
332
- export { FilterFlyout$1 as default };
331
+ export { FilterFlyout as default };
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
10
- import { PANEL, BATCH, CLEAR_FILTERS, INSTANT, SAVED_FILTERS } from './constants.js';
10
+ import { BATCH, CLEAR_FILTERS, INSTANT, PANEL, SAVED_FILTERS } from './constants.js';
11
11
  import React__default, { useState, useContext, useRef, useMemo, useEffect, useCallback } from 'react';
12
12
  import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
13
13
  import { motion, useReducedMotion } from 'framer-motion';
@@ -312,6 +312,5 @@ FilterPanel.propTypes = {
312
312
  title: PropTypes.string,
313
313
  updateMethod: PropTypes.oneOf([BATCH, INSTANT])
314
314
  };
315
- var FilterPanel$1 = FilterPanel;
316
315
 
317
- export { componentClass, FilterPanel$1 as default };
316
+ export { componentClass, FilterPanel as default };
@@ -74,6 +74,5 @@ OverflowCheckboxes.propTypes = {
74
74
  viewAllLabel: PropTypes.string,
75
75
  viewLessLabel: PropTypes.string
76
76
  };
77
- var OverflowCheckboxes$1 = OverflowCheckboxes;
78
77
 
79
- export { OverflowCheckboxes$1 as default };
78
+ export { OverflowCheckboxes as default };
@@ -18,6 +18,5 @@ var useFilterContext = function useFilterContext() {
18
18
  }
19
19
  return context;
20
20
  };
21
- var useFilterContext$1 = useFilterContext;
22
21
 
23
- export { useFilterContext$1 as default };
22
+ export { useFilterContext as default };
@@ -473,6 +473,5 @@ var useFilters = function useFilters(_ref) {
473
473
  cancel: cancel
474
474
  };
475
475
  };
476
- var useFilters$1 = useFilters;
477
476
 
478
- export { useFilters$1 as default };
477
+ export { useFilters as default };
@@ -29,6 +29,5 @@ var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
29
29
  }, [filtersState, prevFiltersRef]);
30
30
  return [shouldDisableButtons, setShouldDisableButtons];
31
31
  };
32
- var useShouldDisableButtons$1 = useShouldDisableButtons;
33
32
 
34
- export { useShouldDisableButtons$1 as default };
33
+ export { useShouldDisableButtons as default };
@@ -21,6 +21,5 @@ var useSubscribeToEventEmitter = function useSubscribeToEventEmitter(type, callb
21
21
  EventEmitter.subscribe(type, callback);
22
22
  });
23
23
  };
24
- var useSubscribeToEventEmitter$1 = useSubscribeToEventEmitter;
25
24
 
26
- export { useSubscribeToEventEmitter$1 as default };
25
+ export { useSubscribeToEventEmitter as default };
@@ -87,6 +87,5 @@ RowSizeDropdown.propTypes = {
87
87
  onChange: PropTypes.func.isRequired,
88
88
  selectedOption: PropTypes.string
89
89
  };
90
- var RowSizeDropdown$1 = RowSizeDropdown;
91
90
 
92
- export { RowSizeDropdown$1 as default };
91
+ export { RowSizeDropdown as default };
@@ -85,6 +85,5 @@ RowSizeRadioGroup.propTypes = {
85
85
  selectedOption: PropTypes.string.isRequired,
86
86
  tableId: PropTypes.string.isRequired
87
87
  };
88
- var RowSizeRadioGroup$1 = RowSizeRadioGroup;
89
88
 
90
- export { RowSizeRadioGroup$1 as default };
89
+ export { RowSizeRadioGroup as default };
@@ -28,7 +28,7 @@ var handleColumnResizeEndEvent = function handleColumnResizeEndEvent(dispatch, o
28
28
  });
29
29
  };
30
30
  var handleColumnResizingEvent = function handleColumnResizingEvent(dispatch, header, newWidth, isKeyEvent) {
31
- if (isKeyEvent) {
31
+ {
32
32
  dispatch({
33
33
  type: COLUMN_RESIZE_START,
34
34
  payload: {