@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
@@ -26,6 +26,7 @@ var defaults = {
26
26
 
27
27
  /**
28
28
  * A container with a label and optional count.
29
+ * @deprecated This component is deprecated
29
30
  */
30
31
  var FilterPanelAccordion = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
31
32
  var _ref$accordionProps = _ref.accordionProps,
@@ -49,6 +50,10 @@ var FilterPanelAccordion = /*#__PURE__*/React__default.forwardRef(function (_ref
49
50
  className: "".concat(blockClass, "__list")
50
51
  }), children));
51
52
  });
53
+ FilterPanelAccordion.deprecated = {
54
+ level: 'warn',
55
+ details: "This component is deprecated"
56
+ };
52
57
 
53
58
  // Return a placeholder if not released and not enabled by feature flag
54
59
  FilterPanelAccordion = pkg.checkComponentEnabled(FilterPanelAccordion, componentName);
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * A container with a label and optional count.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let FilterPanelAccordionItem: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -27,6 +27,7 @@ var defaults = {
27
27
 
28
28
  /**
29
29
  * A container with a label and optional count.
30
+ * @deprecated This component is deprecated
30
31
  */
31
32
  var FilterPanelAccordionItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
32
33
  var _ref$accordionItemPro = _ref.accordionItemProps,
@@ -56,7 +57,10 @@ var FilterPanelAccordionItem = /*#__PURE__*/React__default.forwardRef(function (
56
57
  }, child);
57
58
  })));
58
59
  });
59
-
60
+ FilterPanelAccordionItem.deprecated = {
61
+ level: 'warn',
62
+ details: "This component is deprecated"
63
+ };
60
64
  // Return a placeholder if not released and not enabled by feature flag
61
65
  FilterPanelAccordionItem = pkg.checkComponentEnabled(FilterPanelAccordionItem, componentName);
62
66
  FilterPanelAccordionItem.displayName = componentName;
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * All of Carbon Checkbox's props are directly available
7
7
  * through "...rest", including id, onClick, etc.
8
+ * @deprecated This component is deprecated
8
9
  */
9
10
  export let FilterPanelCheckbox: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
10
11
  import React from 'react';
@@ -27,6 +27,7 @@ var componentName = 'FilterPanelCheckbox';
27
27
  *
28
28
  * All of Carbon Checkbox's props are directly available
29
29
  * through "...rest", including id, onClick, etc.
30
+ * @deprecated This component is deprecated
30
31
  */
31
32
  var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
32
33
  var className = _ref.className,
@@ -46,6 +47,10 @@ var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref,
46
47
  ref: ref
47
48
  }, getDevtoolsProps(componentName)));
48
49
  });
50
+ FilterPanelCheckbox.deprecated = {
51
+ level: 'warn',
52
+ details: "This component is deprecated"
53
+ };
49
54
 
50
55
  // Return a placeholder if not released and not enabled by feature flag
51
56
  FilterPanelCheckbox = pkg.checkComponentEnabled(FilterPanelCheckbox, componentName);
@@ -5,6 +5,7 @@
5
5
  * just like FilterPanelCheckbox.
6
6
  *
7
7
  * Use `overflowMenuProps` for properties specific to the OverflowMenu.
8
+ * @deprecated This component is deprecated
8
9
  */
9
10
  export let FilterPanelCheckboxWithOverflow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
10
11
  import React from 'react';
@@ -30,6 +30,7 @@ var defaults = {
30
30
  * just like FilterPanelCheckbox.
31
31
  *
32
32
  * Use `overflowMenuProps` for properties specific to the OverflowMenu.
33
+ * @deprecated This component is deprecated
33
34
  */
34
35
  var FilterPanelCheckboxWithOverflow = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
35
36
  var children = _ref.children,
@@ -115,6 +116,10 @@ var FilterPanelCheckboxWithOverflow = /*#__PURE__*/React__default.forwardRef(fun
115
116
  }, other), children))
116
117
  );
117
118
  });
119
+ FilterPanelCheckboxWithOverflow.deprecated = {
120
+ level: 'warn',
121
+ details: "This component is deprecated"
122
+ };
118
123
 
119
124
  // Return a placeholder if not released and not enabled by feature flag
120
125
  FilterPanelCheckboxWithOverflow = pkg.checkComponentEnabled(FilterPanelCheckboxWithOverflow, componentName);
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * A container with a label and optional count.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let FilterPanelGroup: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -21,6 +21,7 @@ var componentName = 'FilterPanelGroup';
21
21
 
22
22
  /**
23
23
  * A container with a label and optional count.
24
+ * @deprecated This component is deprecated
24
25
  */
25
26
  var FilterPanelGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
26
27
  var children = _ref.children,
@@ -42,6 +43,10 @@ var FilterPanelGroup = /*#__PURE__*/React__default.forwardRef(function (_ref, re
42
43
  className: "".concat(blockClass, "__content")
43
44
  }, children));
44
45
  });
46
+ FilterPanelGroup.deprecated = {
47
+ level: 'warn',
48
+ details: "This component is deprecated"
49
+ };
45
50
 
46
51
  // Return a placeholder if not released and not enabled by feature flag
47
52
  FilterPanelGroup = pkg.checkComponentEnabled(FilterPanelGroup, componentName);
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * An input field and container to show search results.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let FilterPanelSearch: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -24,6 +24,7 @@ var defaults = {
24
24
 
25
25
  /**
26
26
  * An input field and container to show search results.
27
+ * @deprecated This component is deprecated
27
28
  */
28
29
  var FilterPanelSearch = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
29
30
  var children = _ref.children,
@@ -67,7 +68,10 @@ var FilterPanelSearch = /*#__PURE__*/React__default.forwardRef(function (_ref, r
67
68
  className: "".concat(blockClass, "__results")
68
69
  }, children));
69
70
  });
70
-
71
+ FilterPanelSearch.deprecated = {
72
+ level: 'warn',
73
+ details: "This component is deprecated"
74
+ };
71
75
  // Return a placeholder if not released and not enabled by feature flag
72
76
  FilterPanelSearch = pkg.checkComponentEnabled(FilterPanelSearch, componentName);
73
77
  FilterPanelSearch.displayName = componentName;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated This component is deprecated
3
+ */
1
4
  export let Nav: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
2
5
  export default Nav;
3
6
  import React from 'react';
@@ -17,6 +17,10 @@ import { pkg } from '../../settings.js';
17
17
  var _excluded = ["activeHref", "className", "children", "heading", "label"];
18
18
  var componentName = 'Nav';
19
19
  var blockClass = "".concat(pkg.prefix, "--nav");
20
+
21
+ /**
22
+ * @deprecated This component is deprecated
23
+ */
20
24
  var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
21
25
  var activeHref = _ref.activeHref,
22
26
  className = _ref.className,
@@ -121,6 +125,10 @@ var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
121
125
  return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
122
126
  })));
123
127
  });
128
+ Nav.deprecated = {
129
+ level: 'warn',
130
+ details: "This component is deprecated"
131
+ };
124
132
  Nav.propTypes = {
125
133
  /**
126
134
  * Hypertext reference for active page.
@@ -25,6 +25,5 @@ NavItemLink.propTypes = {
25
25
  NavItemLink.defaultProps = {
26
26
  element: 'a'
27
27
  };
28
- var NavItemLink$1 = NavItemLink;
29
28
 
30
- export { NavItemLink$1 as default };
29
+ export { NavItemLink as default };
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * A list of icon/description pairs used to show multiple states of progress.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let StatusIndicator: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -27,6 +27,7 @@ var defaults = {
27
27
 
28
28
  /**
29
29
  * A list of icon/description pairs used to show multiple states of progress.
30
+ * @deprecated This component is deprecated
30
31
  */
31
32
  var StatusIndicator = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
32
33
  var children = _ref.children,
@@ -57,6 +58,10 @@ var StatusIndicator = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
57
58
  }
58
59
  }, retryLabel));
59
60
  });
61
+ StatusIndicator.deprecated = {
62
+ level: 'warn',
63
+ details: "This component is deprecated"
64
+ };
60
65
 
61
66
  // Return a placeholder if not released and not enabled by feature flag
62
67
  StatusIndicator = pkg.checkComponentEnabled(StatusIndicator, componentName);
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * An icon/description pair that describes one step of the `StatusIndicator`.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let StatusIndicatorStep: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -26,6 +26,7 @@ var defaults = {
26
26
 
27
27
  /**
28
28
  * An icon/description pair that describes one step of the `StatusIndicator`.
29
+ * @deprecated This component is deprecated
29
30
  */
30
31
  var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
31
32
  var className = _ref.className,
@@ -54,6 +55,10 @@ var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref,
54
55
  className: "".concat(blockClass, "__error-message")
55
56
  }, errorMessage));
56
57
  });
58
+ StatusIndicatorStep.deprecated = {
59
+ level: 'warn',
60
+ details: "This component is deprecated"
61
+ };
57
62
 
58
63
  // Return a placeholder if not released and not enabled by feature flag
59
64
  StatusIndicatorStep = pkg.checkComponentEnabled(StatusIndicatorStep, componentName);
@@ -18,7 +18,7 @@ import { Button, usePrefix, unstable_FeatureFlags, ComposedModal, ModalHeader, L
18
18
  import { ActionSet } from '../ActionSet/ActionSet.js';
19
19
  import { Wrap } from '../../global/js/utils/Wrap.js';
20
20
  import { usePortalTarget } from '../../global/js/hooks/usePortalTarget.js';
21
- import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js';
21
+ import { useFocus, claimFocus } from '../../global/js/hooks/useFocus.js';
22
22
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
23
23
 
24
24
  var _excluded = ["actions", "aiLabel", "ariaLabel", "children", "className", "closeIconDescription", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
@@ -146,33 +146,12 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
146
146
 
147
147
  // Callback to give the tearsheet the opportunity to claim focus
148
148
  handleStackChange.claimFocus = function () {
149
- if (selectorPrimaryFocus && getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
150
- var _window;
151
- var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
152
- if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
153
- return specifiedEl.focus();
154
- }
155
- }
156
- setTimeout(function () {
157
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
158
- }, 0);
149
+ claimFocus(firstElement, modalRef, selectorPrimaryFocus);
159
150
  };
160
151
  useEffect(function () {
161
152
  if (open) {
162
153
  // Focusing the first element or selectorPrimaryFocus element
163
- if (selectorPrimaryFocus && getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
164
- var _window2;
165
- var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
166
- if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
167
- setTimeout(function () {
168
- return specifiedEl.focus();
169
- }, 0);
170
- return;
171
- }
172
- }
173
- setTimeout(function () {
174
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
175
- }, 0);
154
+ claimFocus(firstElement, modalRef, selectorPrimaryFocus);
176
155
  }
177
156
  }, [firstElement, modalRef, open, selectorPrimaryFocus]);
178
157
  useEffect(function () {
@@ -12,3 +12,4 @@ export function useFocus(modalRef: any, selectorPrimaryFocus: any): {
12
12
  specified: any;
13
13
  };
14
14
  };
15
+ export function claimFocus(firstElement: any, modalRef: any, selectorPrimaryFocus?: string | undefined): any;
@@ -104,4 +104,24 @@ var useFocus = function useFocus(modalRef, selectorPrimaryFocus) {
104
104
  };
105
105
  };
106
106
 
107
- export { getSpecificElement, useFocus };
107
+ /**
108
+ *
109
+ * @param {*} firstElement
110
+ * @param {*} modalRef
111
+ * @param {string | undefined} selectorPrimaryFocus
112
+ */
113
+ var claimFocus = function claimFocus(firstElement, modalRef) {
114
+ var selectorPrimaryFocus = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
115
+ if (selectorPrimaryFocus && getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
116
+ var _window2;
117
+ var specifiedEl = getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
118
+ if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
119
+ return specifiedEl.focus();
120
+ }
121
+ }
122
+ setTimeout(function () {
123
+ return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
124
+ }, 0);
125
+ };
126
+
127
+ export { claimFocus, getSpecificElement, useFocus };
@@ -29,6 +29,5 @@ var usePrefersReducedMotion = function usePrefersReducedMotion() {
29
29
  }, []);
30
30
  return prefersReducedMotion;
31
31
  };
32
- var usePrefersReducedMotion$1 = usePrefersReducedMotion;
33
32
 
34
- export { usePrefersReducedMotion$1 as default };
33
+ export { usePrefersReducedMotion as default };
package/es/index.js CHANGED
@@ -103,12 +103,12 @@ export { SearchBar } from './components/SearchBar/SearchBar.js';
103
103
  export { TagOverflow } from './components/TagOverflow/TagOverflow.js';
104
104
  export { GetStartedCard } from './components/GetStartedCard/GetStartedCard.js';
105
105
  export { FeatureFlags as unstable_FeatureFlags, useFeatureFlag as unstable_useFeatureFlag, useFeatureFlags as unstable_useFeatureFlags } from './components/FeatureFlags/index.js';
106
+ export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
106
107
  export { usePrefix } from './global/js/hooks/usePrefix.js';
107
108
  export { ActionBar } from './components/ActionBar/ActionBar.js';
108
109
  export { HTTPError403 } from './components/HTTPErrors/HTTPError403/HTTPError403.js';
109
110
  export { HTTPError404 } from './components/HTTPErrors/HTTPError404/HTTPError404.js';
110
111
  export { HTTPErrorOther } from './components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js';
111
- export { default as useFilterContext } from './components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js';
112
112
  export { EditTearsheet } from './components/EditTearsheet/EditTearsheet.js';
113
113
  export { EditTearsheetForm } from './components/EditTearsheet/EditTearsheetForm.js';
114
114
  export { CoachmarkStack } from './components/CoachmarkStack/CoachmarkStack.js';
@@ -506,7 +506,7 @@ function _nonIterableRest() {
506
506
  function _createForOfIteratorHelper(o, allowArrayLike) {
507
507
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
508
508
  if (!it) {
509
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
509
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) {
510
510
  if (it) o = it;
511
511
  var i = 0;
512
512
  var F = function () {};
@@ -20,9 +20,10 @@ var devtools = require('../../global/js/utils/devtools.js');
20
20
  var propsHelper = require('../../global/js/utils/props-helper.js');
21
21
  var uuidv4 = require('../../global/js/utils/uuidv4.js');
22
22
  var useFocus = require('../../global/js/hooks/useFocus.js');
23
+ var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
23
24
 
24
25
  var _ErrorFilled, _InformationFilled;
25
- 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"];
26
+ 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"];
26
27
  var componentName = 'APIKeyModal';
27
28
 
28
29
  // Default values for props
@@ -63,6 +64,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
63
64
  hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
64
65
  hasDownloadLink = _ref.hasDownloadLink,
65
66
  hideAPIKeyLabel = _ref.hideAPIKeyLabel,
67
+ launcherButtonRef = _ref.launcherButtonRef,
66
68
  loading = _ref.loading,
67
69
  loadingText = _ref.loadingText,
68
70
  modalLabel = _ref.modalLabel,
@@ -120,6 +122,7 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
120
122
  var _useFocus = useFocus.useFocus(modalRef, selectorPrimaryFocus),
121
123
  firstElement = _useFocus.firstElement,
122
124
  keyDownListener = _useFocus.keyDownListener;
125
+ var prevOpen = usePreviousValue.usePreviousValue(open);
123
126
  React.useEffect(function () {
124
127
  if (copyRef.current && open && apiKeyLoaded) {
125
128
  copyRef.current.focus();
@@ -128,21 +131,16 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
128
131
  React.useEffect(function () {
129
132
  if (open) {
130
133
  // Focusing the first element or selectorPrimaryFocus element
131
- if (selectorPrimaryFocus && useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
132
- var _window;
133
- var specifiedEl = useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
134
- if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
135
- setTimeout(function () {
136
- return specifiedEl.focus();
137
- }, 0);
138
- return;
139
- }
140
- }
134
+ useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
135
+ }
136
+ }, [firstElement, modalRef, open, selectorPrimaryFocus]);
137
+ React.useEffect(function () {
138
+ if (prevOpen && !open && launcherButtonRef) {
141
139
  setTimeout(function () {
142
- firstElement === null || firstElement === void 0 || firstElement.focus();
140
+ launcherButtonRef.current.focus();
143
141
  }, 0);
144
142
  }
145
- }, [firstElement, modalRef, open, selectorPrimaryFocus]);
143
+ }, [launcherButtonRef, open, prevOpen]);
146
144
  var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
147
145
  if (loading) {
148
146
  return true;
@@ -488,6 +486,11 @@ exports.APIKeyModal.propTypes = {
488
486
  * label text that's displayed when hovering over visibility toggler to hide key
489
487
  */
490
488
  hideAPIKeyLabel: index.default.string,
489
+ /**
490
+ * Provide a ref to return focus to once the tearsheet is closed.
491
+ */
492
+ /**@ts-ignore */
493
+ launcherButtonRef: index.default.any,
491
494
  /**
492
495
  * designates if the modal is in a loading state via a request or some other in progress operation
493
496
  */
@@ -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
  */
@@ -64,12 +64,9 @@ exports.AboutModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
64
64
  }, [bodyRef]);
65
65
  React.useEffect(function () {
66
66
  if (open) {
67
- setTimeout(function () {
68
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
69
- }, 0);
67
+ useFocus.claimFocus(firstElement, modalRef);
70
68
  }
71
- // eslint-disable-next-line react-hooks/exhaustive-deps
72
- }, [open]);
69
+ }, [firstElement, modalRef, open]);
73
70
  return renderPortalUse( /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
74
71
  enableExperimentalFocusWrapWithoutSentinels: true
75
72
  }, /*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
@@ -40,6 +40,5 @@ var useFocus = function useFocus(size) {
40
40
  }, [handleKeyDown]);
41
41
  return [currentFocus, setCurrentFocus];
42
42
  };
43
- var useFocus$1 = useFocus;
44
43
 
45
- exports.default = useFocus$1;
44
+ exports.default = useFocus;
@@ -22,6 +22,5 @@ var useParentSelect = function useParentSelect() {
22
22
  setParentSelected: setParentSelected
23
23
  };
24
24
  };
25
- var useParentSelect$1 = useParentSelect;
26
25
 
27
- exports.default = useParentSelect$1;
26
+ exports.default = useParentSelect;
@@ -70,6 +70,5 @@ var usePath = function usePath() {
70
70
  resetPath: resetPath
71
71
  };
72
72
  };
73
- var usePath$1 = usePath;
74
73
 
75
- exports.default = usePath$1;
74
+ exports.default = usePath;
@@ -63,12 +63,20 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
63
63
  // eslint-disable-next-line react/prop-types
64
64
  var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
65
65
  var overflowItems = _ref2.overflowItems;
66
+ var handleClick = function handleClick(evt, item) {
67
+ var _item$props, _item$props2, _item$props2$onClick;
68
+ if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
69
+ window.location.href = item.props.href;
70
+ }
71
+ 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);
72
+ };
66
73
  return /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
67
74
  key: "breadcrumb-overflow-".concat(internalId.current)
75
+ }, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
76
+ enableV12Overflowmenu: true
68
77
  }, /*#__PURE__*/React.createElement(react.OverflowMenu, {
69
- align: overflowTooltipAlign,
70
78
  "aria-label": overflowAriaLabel,
71
- iconDescription: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
79
+ label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
72
80
  ,
73
81
  renderIcon: function renderIcon(props) {
74
82
  return /*#__PURE__*/React.createElement(icons.OverflowMenuHorizontal, _rollupPluginBabelHelpers.extends({
@@ -76,17 +84,18 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
76
84
  }, props));
77
85
  },
78
86
  className: "".concat(blockClass, "__overflow-menu"),
79
- menuOptionsClass: "".concat(blockClass, "__overflow-menu-options")
87
+ tooltipAlignment: overflowTooltipAlign
80
88
  },
81
89
  // eslint-disable-next-line react/prop-types
82
90
  overflowItems.map(function (item, index) {
83
- return /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
91
+ return /*#__PURE__*/React.createElement(react.MenuItem, {
84
92
  key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
85
- href: item.props.href,
86
- onClick: item.props.onClick,
87
- itemText: item.props.children
93
+ onClick: function onClick(evt) {
94
+ return handleClick(evt, item);
95
+ },
96
+ label: item.props.children
88
97
  });
89
- })));
98
+ }))));
90
99
  };
91
100
 
92
101
  // create hidden sizing items
@@ -19,7 +19,7 @@ var settings = require('../../settings.js');
19
19
 
20
20
  var _Incomplete, _CheckmarkOutline;
21
21
  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"],
22
- _excluded2 = ["id"],
22
+ _excluded2 = ["id", "itemText"],
23
23
  _excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
24
24
  var componentName = 'Card';
25
25
  var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
@@ -97,23 +97,27 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
97
97
  // actions can either be an overflow menu or series of icons
98
98
  var getActions = function getActions() {
99
99
  if (overflowActions.length > 0) {
100
- var pos = actionsPlacement === 'top' ? 'bottom' : 'top';
100
+ var pos = actionsPlacement === 'top' ? 'bottom-end' : 'top-end';
101
101
  var size = actionsPlacement === 'top' ? 'sm' : 'md';
102
102
  return /*#__PURE__*/React.createElement(react.Layer, {
103
103
  level: 2
104
+ }, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
105
+ enableV12Overflowmenu: true
104
106
  }, /*#__PURE__*/React.createElement(react.OverflowMenu, {
107
+ autoAlign: true,
108
+ menuAlignment: pos,
105
109
  size: size,
106
- direction: pos,
107
- flipped: true,
108
110
  "aria-label": overflowAriaLabel,
109
- iconDescription: iconDescription
111
+ label: iconDescription
110
112
  }, overflowActions.map(function (_ref2) {
111
113
  var id = _ref2.id,
114
+ itemText = _ref2.itemText,
112
115
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
113
- return /*#__PURE__*/React.createElement(react.OverflowMenuItem, _rollupPluginBabelHelpers.extends({
114
- key: id
116
+ return /*#__PURE__*/React.createElement(react.MenuItem, _rollupPluginBabelHelpers.extends({
117
+ key: id,
118
+ label: itemText
115
119
  }, rest));
116
- })));
120
+ }))));
117
121
  }
118
122
  var icons = getIcons().map(function (_ref3) {
119
123
  var id = _ref3.id,