@carbon/ibm-products 2.54.0 → 2.55.0-rc.0

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 (243) hide show
  1. package/css/index-full-carbon.css +90 -21
  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 +14 -8
  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 +14 -8
  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 +27 -11
  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/APIKeyDownloader.js +1 -1
  19. package/es/components/APIKeyModal/APIKeyModal.js +42 -6
  20. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +10 -1
  21. package/es/components/AboutModal/AboutModal.js +3 -6
  22. package/es/components/AddSelect/AddSelect.d.ts +2 -2
  23. package/es/components/AddSelect/AddSelect.js +1 -0
  24. package/es/components/AddSelect/AddSelectBody.d.ts +2 -2
  25. package/es/components/AddSelect/AddSelectBody.js +1 -0
  26. package/es/components/AddSelect/hooks/useFocus.js +1 -2
  27. package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
  28. package/es/components/AddSelect/hooks/usePath.js +1 -2
  29. package/es/components/Card/Card.js +13 -9
  30. package/es/components/Checklist/Checklist.js +1 -1
  31. package/es/components/Checklist/ChecklistIcon.js +1 -1
  32. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  33. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  34. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  35. package/es/components/ConditionBuilder/utils/util.js +0 -4
  36. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  37. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  38. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  39. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  40. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  41. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  42. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
  43. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
  44. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  45. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  46. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  47. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  48. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  49. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  50. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  51. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  52. package/es/components/Datagrid/useCustomizeColumns.js +4 -4
  53. package/es/components/Datagrid/useDatagrid.js +2 -2
  54. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  55. package/es/components/Datagrid/useEditableCell.js +1 -2
  56. package/es/components/Datagrid/useFlexResize.js +1 -2
  57. package/es/components/Datagrid/useFloatingScroll.js +1 -2
  58. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  59. package/es/components/Datagrid/useParentDimensions.js +1 -2
  60. package/es/components/Datagrid/useResizeTable.js +1 -2
  61. package/es/components/Datagrid/useRowExpander.js +1 -2
  62. package/es/components/Datagrid/useRowRenderer.js +1 -2
  63. package/es/components/Datagrid/useRowSize.js +1 -2
  64. package/es/components/Datagrid/useSkeletonRows.js +1 -2
  65. package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  66. package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  67. package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  68. package/es/components/DecoratorLink/DecoratorLink.js +5 -0
  69. package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  70. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  71. package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
  72. package/es/components/DescriptionList/DescriptionList.js +5 -0
  73. package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
  74. package/es/components/EditFullPage/EditFullPage.js +8 -0
  75. package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  76. package/es/components/EditSidePanel/EditSidePanel.js +8 -0
  77. package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  78. package/es/components/EditTearsheet/EditTearsheet.js +8 -0
  79. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  80. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  81. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  82. package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
  83. package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
  84. package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  85. package/es/components/EmptyStates/EmptyStateV2.js +7 -0
  86. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  87. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  88. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  89. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  90. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  91. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  92. package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  93. package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  94. package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  95. package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  96. package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  97. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  98. package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
  99. package/es/components/FilterPanel/FilterPanel.js +6 -0
  100. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  101. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  102. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  103. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  104. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  105. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  106. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  107. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  108. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  109. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  110. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  111. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  112. package/es/components/Nav/Nav.d.ts +3 -0
  113. package/es/components/Nav/Nav.js +8 -0
  114. package/es/components/Nav/NavItemLink.js +1 -2
  115. package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  116. package/es/components/StatusIndicator/StatusIndicator.js +5 -0
  117. package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  118. package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  119. package/es/components/Tearsheet/Tearsheet.d.ts +1 -1
  120. package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  121. package/es/components/Tearsheet/TearsheetShell.d.ts +1 -1
  122. package/es/components/Tearsheet/TearsheetShell.js +3 -24
  123. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  124. package/es/components/TooltipTrigger/TooltipTrigger.js +3 -2
  125. package/es/components/UserAvatar/UserAvatar.js +1 -3
  126. package/es/global/js/hooks/useFocus.d.ts +1 -0
  127. package/es/global/js/hooks/useFocus.js +21 -1
  128. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
  129. package/es/index.js +1 -1
  130. package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
  131. package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
  132. package/lib/components/APIKeyModal/APIKeyModal.js +41 -5
  133. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +10 -1
  134. package/lib/components/AboutModal/AboutModal.js +2 -5
  135. package/lib/components/AddSelect/AddSelect.d.ts +2 -2
  136. package/lib/components/AddSelect/AddSelect.js +1 -0
  137. package/lib/components/AddSelect/AddSelectBody.d.ts +2 -2
  138. package/lib/components/AddSelect/AddSelectBody.js +1 -0
  139. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  140. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  141. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  142. package/lib/components/Card/Card.js +12 -8
  143. package/lib/components/Checklist/ChecklistChart.js +7 -7
  144. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  145. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  146. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  147. package/lib/components/ConditionBuilder/utils/util.js +0 -4
  148. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  149. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  150. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  151. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  152. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  153. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  154. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
  155. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
  156. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  157. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  158. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  159. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  160. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  161. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  162. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  163. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  164. package/lib/components/Datagrid/useColumnOrder.js +1 -1
  165. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  166. package/lib/components/Datagrid/useEditableCell.js +1 -2
  167. package/lib/components/Datagrid/useFlexResize.js +1 -2
  168. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  169. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  170. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  171. package/lib/components/Datagrid/useResizeTable.js +1 -2
  172. package/lib/components/Datagrid/useRowExpander.js +1 -2
  173. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  174. package/lib/components/Datagrid/useRowSize.js +1 -2
  175. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  176. package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  177. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  178. package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  179. package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
  180. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  181. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  182. package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
  183. package/lib/components/DescriptionList/DescriptionList.js +5 -0
  184. package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
  185. package/lib/components/EditFullPage/EditFullPage.js +8 -0
  186. package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  187. package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
  188. package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  189. package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
  190. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  191. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  192. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  193. package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
  194. package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
  195. package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  196. package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
  197. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  198. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  199. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  200. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  201. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  202. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  203. package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
  204. package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
  205. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
  206. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
  207. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
  208. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
  209. package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
  210. package/lib/components/FilterPanel/FilterPanel.js +6 -0
  211. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  212. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  213. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  214. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  215. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  216. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  217. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  218. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  219. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  220. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  221. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  222. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  223. package/lib/components/Nav/Nav.d.ts +3 -0
  224. package/lib/components/Nav/Nav.js +8 -0
  225. package/lib/components/Nav/NavItemLink.js +1 -2
  226. package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  227. package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
  228. package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  229. package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  230. package/lib/components/Tearsheet/Tearsheet.d.ts +1 -1
  231. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -1
  232. package/lib/components/Tearsheet/TearsheetShell.d.ts +1 -1
  233. package/lib/components/Tearsheet/TearsheetShell.js +2 -23
  234. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  235. package/lib/components/TooltipTrigger/TooltipTrigger.js +3 -2
  236. package/lib/components/UserAvatar/UserAvatar.js +1 -3
  237. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  238. package/lib/global/js/hooks/useFocus.js +21 -0
  239. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
  240. package/lib/index.js +109 -109
  241. package/package.json +11 -11
  242. package/scss/components/Datagrid/styles/_datagrid.scss +16 -6
  243. package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
@@ -40,7 +40,9 @@ var defaults = {
40
40
  // corresponding props for TearsheetNarrow and TearsheetShell components.
41
41
 
42
42
  /**
43
+ * **This component is deprecated.** <br>
43
44
  * Use Tearsheet with medium to complex edits. See usage guidance for further information.
45
+ * @deprecated
44
46
  */
45
47
  exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
46
48
  var cancelButtonText = _ref.cancelButtonText,
@@ -173,6 +175,12 @@ exports.EditTearsheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
173
175
  })))));
174
176
  });
175
177
 
178
+ /**@ts-ignore*/
179
+ exports.EditTearsheet.deprecated = {
180
+ level: 'warn',
181
+ details: "This component is deprecated and will be removed in the next major version."
182
+ };
183
+
176
184
  // Return a placeholder if not released and not enabled by feature flag
177
185
  exports.EditTearsheet = settings.pkg.checkComponentEnabled(exports.EditTearsheet, componentName);
178
186
 
@@ -16,6 +16,8 @@ export interface EditTearsheetNarrowProps {
16
16
  className?: string;
17
17
  }
18
18
  /**
19
+ * **This component is deprecated.** <br>
19
20
  * Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
21
+ * @deprecated
20
22
  */
21
23
  export declare let EditTearsheetNarrow: React.ForwardRefExoticComponent<EditTearsheetNarrowProps & React.RefAttributes<HTMLDivElement>>;
@@ -40,7 +40,9 @@ var componentName = 'EditTearsheetNarrow';
40
40
  // };
41
41
 
42
42
  /**
43
+ * **This component is deprecated.** <br>
43
44
  * Use a narrow tearsheet as an alternative to a modal when there is scrolling. See usage guidance for further information.
45
+ * @deprecated
44
46
  */
45
47
  exports.EditTearsheetNarrow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
46
48
  var children = _ref.children,
@@ -61,6 +63,12 @@ exports.EditTearsheetNarrow = /*#__PURE__*/React.forwardRef(function (_ref, ref)
61
63
  }, devtools.getDevtoolsProps(componentName)), children);
62
64
  });
63
65
 
66
+ /**@ts-ignore*/
67
+ exports.EditTearsheetNarrow.deprecated = {
68
+ level: 'warn',
69
+ details: "This component is deprecated and will be removed in the next major version."
70
+ };
71
+
64
72
  // Return a placeholder if not released and not enabled by feature flag
65
73
  exports.EditTearsheetNarrow = settings.pkg.checkComponentEnabled(exports.EditTearsheetNarrow, componentName);
66
74
 
@@ -102,9 +102,11 @@ export interface EditUpdateCardsProps {
102
102
  titleSize?: 'default' | 'large';
103
103
  }
104
104
  /**
105
+ * **This component is deprecated.** <br>
105
106
  Editable cards allow a user to view, modify, and save the content contained within the card.
106
107
  These cards are generally used in instances where a user needs to make changes to a resource instances
107
108
  (ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
109
+ @deprecated
108
110
  */
109
111
  export declare let EditUpdateCards: React.ForwardRefExoticComponent<EditUpdateCardsProps & React.RefAttributes<HTMLDivElement>>;
110
112
  export {};
@@ -43,9 +43,11 @@ var componentName = 'EditUpdateCards';
43
43
  // };
44
44
 
45
45
  /**
46
+ * **This component is deprecated.** <br>
46
47
  Editable cards allow a user to view, modify, and save the content contained within the card.
47
48
  These cards are generally used in instances where a user needs to make changes to a resource instances
48
49
  (ex. configuration details), account plan, etc. Editable cards allow a user to edit something within context.
50
+ @deprecated
49
51
  */
50
52
  exports.EditUpdateCards = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
51
53
  var actionIcons = _ref.actionIcons,
@@ -97,6 +99,12 @@ exports.EditUpdateCards = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
97
99
  }, editMode && conditionalProps), editMode === false && /*#__PURE__*/React.createElement("div", null, previewChildren), editMode && /*#__PURE__*/React.createElement("div", null, editChildren)));
98
100
  });
99
101
 
102
+ /**@ts-ignore*/
103
+ exports.EditUpdateCards.deprecated = {
104
+ level: 'warn',
105
+ details: "This component is deprecated and will be removed in the next major version."
106
+ };
107
+
100
108
  // Return a placeholder if not released and not enabled by feature flag
101
109
  exports.EditUpdateCards = settings.pkg.checkComponentEnabled(exports.EditUpdateCards, componentName);
102
110
 
@@ -61,6 +61,5 @@ var EmptyStateIllustration = function EmptyStateIllustration(_ref) {
61
61
  EmptyStateIllustration.propTypes = {
62
62
  kind: index.default.string
63
63
  };
64
- var EmptyStateIllustration$1 = EmptyStateIllustration;
65
64
 
66
- exports.default = EmptyStateIllustration$1;
65
+ exports.default = EmptyStateIllustration;
@@ -62,5 +62,6 @@ export interface EmptyStateV2Props {
62
62
  /**
63
63
  * This is the V2 version of the `EmptyState` component. To use you must pass the `v2` prop to the V1 version of the component `EmptyState` and use the props below.
64
64
  * In order to avoid breaking changes in the future `EmptyStateV2` is not actually directly importable.
65
+ * @deprecated
65
66
  */
66
67
  export declare let EmptyStateV2: React.ForwardRefExoticComponent<EmptyStateV2Props & React.RefAttributes<HTMLDivElement>>;
@@ -23,6 +23,7 @@ var componentName = 'EmptyStateV2';
23
23
  /**
24
24
  * This is the V2 version of the `EmptyState` component. To use you must pass the `v2` prop to the V1 version of the component `EmptyState` and use the props below.
25
25
  * In order to avoid breaking changes in the future `EmptyStateV2` is not actually directly importable.
26
+ * @deprecated
26
27
  */
27
28
 
28
29
  exports.EmptyStateV2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -67,6 +68,12 @@ exports.EmptyStateV2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
67
68
  }), link.text)));
68
69
  });
69
70
 
71
+ /**@ts-ignore*/
72
+ exports.EmptyStateV2.deprecated = {
73
+ level: 'warn',
74
+ details: 'For more information, please refer to the Carbon docs https://carbondesignsystem.com/patterns/empty-states-pattern/'
75
+ };
76
+
70
77
  // Return a placeholder if not released and not enabled by feature flag
71
78
  exports.EmptyStateV2 = settings.pkg.checkComponentEnabled(exports.EmptyStateV2, componentName);
72
79
  exports.EmptyStateV2.propTypes = {
@@ -41,7 +41,7 @@ exports.ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41
41
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
42
42
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--error")),
43
43
  ref: ref
44
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(ErrorIllustration.default, {
44
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(ErrorIllustration.ErrorIllustration, {
45
45
  theme: illustrationTheme,
46
46
  size: size,
47
47
  alt: illustrationDescription || title
@@ -42,7 +42,7 @@ exports.NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
42
42
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
43
43
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noData")),
44
44
  ref: ref
45
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoDataIllustration.default, {
45
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoDataIllustration.NoDataIllustration, {
46
46
  theme: illustrationTheme,
47
47
  size: size,
48
48
  alt: illustrationDescription || title
@@ -41,7 +41,7 @@ exports.NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41
41
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
42
42
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--noTags")),
43
43
  ref: ref
44
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoTagsIllustration.default, {
44
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NoTagsIllustration.NoTagsIllustration, {
45
45
  theme: illustrationTheme,
46
46
  size: size,
47
47
  alt: illustrationDescription || title
@@ -41,7 +41,7 @@ exports.NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
41
41
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
42
42
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notFound")),
43
43
  ref: ref
44
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotFoundIllustration.default, {
44
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotFoundIllustration.NotFoundIllustration, {
45
45
  theme: illustrationTheme,
46
46
  size: size,
47
47
  alt: illustrationDescription || title
@@ -41,7 +41,7 @@ exports.NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref,
41
41
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
42
42
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--notifications")),
43
43
  ref: ref
44
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotificationsIllustration.default, {
44
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(NotificationsIllustration.NotificationsIllustration, {
45
45
  size: size,
46
46
  theme: illustrationTheme,
47
47
  alt: illustrationDescription || title
@@ -42,7 +42,7 @@ exports.UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, r
42
42
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
43
43
  className: cx(blockClass, className, "".concat(blockClass, "-position--").concat(illustrationPosition), "".concat(blockClass, "-type--unauthorized")),
44
44
  ref: ref
45
- }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(UnauthorizedIllustration.default, {
45
+ }, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(UnauthorizedIllustration.UnauthorizedIllustration, {
46
46
  size: size,
47
47
  theme: illustrationTheme,
48
48
  alt: illustrationDescription || title
@@ -215,7 +215,6 @@ ErrorIllustration.propTypes = {
215
215
  size: index.default.oneOf(['lg', 'sm']),
216
216
  theme: index.default.oneOf(['light', 'dark'])
217
217
  };
218
- var ErrorIllustration$1 = ErrorIllustration;
219
218
 
220
219
  exports.ErrorIllustration = ErrorIllustration;
221
- exports.default = ErrorIllustration$1;
220
+ exports.default = ErrorIllustration;
@@ -178,7 +178,6 @@ NoDataIllustration.propTypes = {
178
178
  size: index.default.oneOf(['lg', 'sm']),
179
179
  theme: index.default.oneOf(['light', 'dark'])
180
180
  };
181
- var NoDataIllustration$1 = NoDataIllustration;
182
181
 
183
182
  exports.NoDataIllustration = NoDataIllustration;
184
- exports.default = NoDataIllustration$1;
183
+ exports.default = NoDataIllustration;
@@ -485,7 +485,6 @@ NoTagsIllustration.propTypes = {
485
485
  size: index.default.oneOf(['lg', 'sm']),
486
486
  theme: index.default.oneOf(['light', 'dark'])
487
487
  };
488
- var NoTagsIllustration$1 = NoTagsIllustration;
489
488
 
490
489
  exports.NoTagsIllustration = NoTagsIllustration;
491
- exports.default = NoTagsIllustration$1;
490
+ exports.default = NoTagsIllustration;
@@ -362,7 +362,6 @@ NotFoundIllustration.propTypes = {
362
362
  size: index.default.oneOf(['lg', 'sm']),
363
363
  theme: index.default.oneOf(['light', 'dark'])
364
364
  };
365
- var NotFoundIllustration$1 = NotFoundIllustration;
366
365
 
367
366
  exports.NotFoundIllustration = NotFoundIllustration;
368
- exports.default = NotFoundIllustration$1;
367
+ exports.default = NotFoundIllustration;
@@ -332,7 +332,6 @@ NotificationsIllustration.propTypes = {
332
332
  size: index.default.oneOf(['lg', 'sm']),
333
333
  theme: index.default.oneOf(['light', 'dark'])
334
334
  };
335
- var NotificationsIllustration$1 = NotificationsIllustration;
336
335
 
337
336
  exports.NotificationsIllustration = NotificationsIllustration;
338
- exports.default = NotificationsIllustration$1;
337
+ exports.default = NotificationsIllustration;
@@ -306,7 +306,6 @@ UnauthorizedIllustration.propTypes = {
306
306
  size: index.default.oneOf(['lg', 'sm']),
307
307
  theme: index.default.oneOf(['light', 'dark'])
308
308
  };
309
- var UnauthorizedIllustration$1 = UnauthorizedIllustration;
310
309
 
311
310
  exports.UnauthorizedIllustration = UnauthorizedIllustration;
312
- exports.default = UnauthorizedIllustration$1;
311
+ exports.default = UnauthorizedIllustration;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * The container for filter panel subcomponents.
3
+ * @deprecated This component is deprecated
3
4
  */
4
5
  export let FilterPanel: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -22,7 +22,9 @@ var componentName = 'FilterPanel';
22
22
 
23
23
  /**
24
24
  * The container for filter panel subcomponents.
25
+ * @deprecated This component is deprecated
25
26
  */
27
+
26
28
  exports.FilterPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
27
29
  var children = _ref.children,
28
30
  className = _ref.className,
@@ -35,6 +37,10 @@ exports.FilterPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
37
  className: "".concat(blockClass, "__title")
36
38
  }, title), children);
37
39
  });
40
+ exports.FilterPanel.deprecated = {
41
+ level: 'warn',
42
+ details: "This component is deprecated"
43
+ };
38
44
 
39
45
  // Return a placeholder if not released and not enabled by feature flag
40
46
  exports.FilterPanel = settings.pkg.checkComponentEnabled(exports.FilterPanel, 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 FilterPanelAccordion: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -28,6 +28,7 @@ var defaults = {
28
28
 
29
29
  /**
30
30
  * A container with a label and optional count.
31
+ * @deprecated This component is deprecated
31
32
  */
32
33
  exports.FilterPanelAccordion = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
33
34
  var _ref$accordionProps = _ref.accordionProps,
@@ -51,6 +52,10 @@ exports.FilterPanelAccordion = /*#__PURE__*/React.forwardRef(function (_ref, ref
51
52
  className: "".concat(blockClass, "__list")
52
53
  }), children));
53
54
  });
55
+ exports.FilterPanelAccordion.deprecated = {
56
+ level: 'warn',
57
+ details: "This component is deprecated"
58
+ };
54
59
 
55
60
  // Return a placeholder if not released and not enabled by feature flag
56
61
  exports.FilterPanelAccordion = settings.pkg.checkComponentEnabled(exports.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';
@@ -29,6 +29,7 @@ var defaults = {
29
29
 
30
30
  /**
31
31
  * A container with a label and optional count.
32
+ * @deprecated This component is deprecated
32
33
  */
33
34
  exports.FilterPanelAccordionItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
34
35
  var _ref$accordionItemPro = _ref.accordionItemProps,
@@ -58,7 +59,10 @@ exports.FilterPanelAccordionItem = /*#__PURE__*/React.forwardRef(function (_ref,
58
59
  }, child);
59
60
  })));
60
61
  });
61
-
62
+ exports.FilterPanelAccordionItem.deprecated = {
63
+ level: 'warn',
64
+ details: "This component is deprecated"
65
+ };
62
66
  // Return a placeholder if not released and not enabled by feature flag
63
67
  exports.FilterPanelAccordionItem = settings.pkg.checkComponentEnabled(exports.FilterPanelAccordionItem, componentName);
64
68
  exports.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';
@@ -29,6 +29,7 @@ var componentName = 'FilterPanelCheckbox';
29
29
  *
30
30
  * All of Carbon Checkbox's props are directly available
31
31
  * through "...rest", including id, onClick, etc.
32
+ * @deprecated This component is deprecated
32
33
  */
33
34
  exports.FilterPanelCheckbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
34
35
  var className = _ref.className,
@@ -48,6 +49,10 @@ exports.FilterPanelCheckbox = /*#__PURE__*/React.forwardRef(function (_ref, ref)
48
49
  ref: ref
49
50
  }, devtools.getDevtoolsProps(componentName)));
50
51
  });
52
+ exports.FilterPanelCheckbox.deprecated = {
53
+ level: 'warn',
54
+ details: "This component is deprecated"
55
+ };
51
56
 
52
57
  // Return a placeholder if not released and not enabled by feature flag
53
58
  exports.FilterPanelCheckbox = settings.pkg.checkComponentEnabled(exports.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';
@@ -32,6 +32,7 @@ var defaults = {
32
32
  * just like FilterPanelCheckbox.
33
33
  *
34
34
  * Use `overflowMenuProps` for properties specific to the OverflowMenu.
35
+ * @deprecated This component is deprecated
35
36
  */
36
37
  exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
37
38
  var children = _ref.children,
@@ -117,6 +118,10 @@ exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function
117
118
  }, other), children))
118
119
  );
119
120
  });
121
+ exports.FilterPanelCheckboxWithOverflow.deprecated = {
122
+ level: 'warn',
123
+ details: "This component is deprecated"
124
+ };
120
125
 
121
126
  // Return a placeholder if not released and not enabled by feature flag
122
127
  exports.FilterPanelCheckboxWithOverflow = settings.pkg.checkComponentEnabled(exports.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';
@@ -23,6 +23,7 @@ var componentName = 'FilterPanelGroup';
23
23
 
24
24
  /**
25
25
  * A container with a label and optional count.
26
+ * @deprecated This component is deprecated
26
27
  */
27
28
  exports.FilterPanelGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
28
29
  var children = _ref.children,
@@ -44,6 +45,10 @@ exports.FilterPanelGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
44
45
  className: "".concat(blockClass, "__content")
45
46
  }, children));
46
47
  });
48
+ exports.FilterPanelGroup.deprecated = {
49
+ level: 'warn',
50
+ details: "This component is deprecated"
51
+ };
47
52
 
48
53
  // Return a placeholder if not released and not enabled by feature flag
49
54
  exports.FilterPanelGroup = settings.pkg.checkComponentEnabled(exports.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';
@@ -26,6 +26,7 @@ var defaults = {
26
26
 
27
27
  /**
28
28
  * An input field and container to show search results.
29
+ * @deprecated This component is deprecated
29
30
  */
30
31
  exports.FilterPanelSearch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
31
32
  var children = _ref.children,
@@ -69,7 +70,10 @@ exports.FilterPanelSearch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
69
70
  className: "".concat(blockClass, "__results")
70
71
  }, children));
71
72
  });
72
-
73
+ exports.FilterPanelSearch.deprecated = {
74
+ level: 'warn',
75
+ details: "This component is deprecated"
76
+ };
73
77
  // Return a placeholder if not released and not enabled by feature flag
74
78
  exports.FilterPanelSearch = settings.pkg.checkComponentEnabled(exports.FilterPanelSearch, componentName);
75
79
  exports.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';
@@ -19,6 +19,10 @@ var settings = require('../../settings.js');
19
19
  var _excluded = ["activeHref", "className", "children", "heading", "label"];
20
20
  var componentName = 'Nav';
21
21
  var blockClass = "".concat(settings.pkg.prefix, "--nav");
22
+
23
+ /**
24
+ * @deprecated This component is deprecated
25
+ */
22
26
  exports.Nav = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
23
27
  var activeHref = _ref.activeHref,
24
28
  className = _ref.className,
@@ -123,6 +127,10 @@ exports.Nav = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
123
127
  return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.default.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
124
128
  })));
125
129
  });
130
+ exports.Nav.deprecated = {
131
+ level: 'warn',
132
+ details: "This component is deprecated"
133
+ };
126
134
  exports.Nav.propTypes = {
127
135
  /**
128
136
  * Hypertext reference for active page.
@@ -29,6 +29,5 @@ NavItemLink.propTypes = {
29
29
  NavItemLink.defaultProps = {
30
30
  element: 'a'
31
31
  };
32
- var NavItemLink$1 = NavItemLink;
33
32
 
34
- exports.default = NavItemLink$1;
33
+ exports.default = NavItemLink;
@@ -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';
@@ -29,6 +29,7 @@ var defaults = {
29
29
 
30
30
  /**
31
31
  * A list of icon/description pairs used to show multiple states of progress.
32
+ * @deprecated This component is deprecated
32
33
  */
33
34
  exports.StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
34
35
  var children = _ref.children,
@@ -59,6 +60,10 @@ exports.StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
59
60
  }
60
61
  }, retryLabel));
61
62
  });
63
+ exports.StatusIndicator.deprecated = {
64
+ level: 'warn',
65
+ details: "This component is deprecated"
66
+ };
62
67
 
63
68
  // Return a placeholder if not released and not enabled by feature flag
64
69
  exports.StatusIndicator = settings.pkg.checkComponentEnabled(exports.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';
@@ -28,6 +28,7 @@ var defaults = {
28
28
 
29
29
  /**
30
30
  * An icon/description pair that describes one step of the `StatusIndicator`.
31
+ * @deprecated This component is deprecated
31
32
  */
32
33
  exports.StatusIndicatorStep = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
33
34
  var className = _ref.className,
@@ -56,6 +57,10 @@ exports.StatusIndicatorStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
56
57
  className: "".concat(blockClass, "__error-message")
57
58
  }, errorMessage));
58
59
  });
60
+ exports.StatusIndicatorStep.deprecated = {
61
+ level: 'warn',
62
+ details: "This component is deprecated"
63
+ };
59
64
 
60
65
  // Return a placeholder if not released and not enabled by feature flag
61
66
  exports.StatusIndicatorStep = settings.pkg.checkComponentEnabled(exports.StatusIndicatorStep, componentName);
@@ -107,7 +107,7 @@ export interface TearsheetProps extends PropsWithChildren {
107
107
  /**
108
108
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
109
109
  */
110
- portalTarget?: ReactNode;
110
+ portalTarget?: HTMLElement;
111
111
  /**
112
112
  * Specify a CSS selector that matches the DOM element that should be
113
113
  * focused when the Modal opens.
@@ -63,7 +63,7 @@ interface TearsheetNarrowBaseProps extends PropsWithChildren {
63
63
  /**
64
64
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
65
65
  */
66
- portalTarget?: ReactNode;
66
+ portalTarget?: HTMLElement;
67
67
  /**
68
68
  * Specify a CSS selector that matches the DOM element that should be
69
69
  * focused when the Modal opens.
@@ -84,7 +84,7 @@ interface TearsheetShellProps extends PropsWithChildren {
84
84
  /**
85
85
  * The DOM element that the tearsheet should be rendered within. Defaults to document.body.
86
86
  */
87
- portalTarget?: ReactNode;
87
+ portalTarget?: HTMLElement;
88
88
  /**
89
89
  * Specify a CSS selector that matches the DOM element that should be
90
90
  * focused when the Modal opens.
@@ -148,33 +148,12 @@ var TearsheetShell = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
148
148
 
149
149
  // Callback to give the tearsheet the opportunity to claim focus
150
150
  handleStackChange.claimFocus = function () {
151
- if (selectorPrimaryFocus && useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
152
- var _window;
153
- var specifiedEl = useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
154
- if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
155
- return specifiedEl.focus();
156
- }
157
- }
158
- setTimeout(function () {
159
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
160
- }, 0);
151
+ useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
161
152
  };
162
153
  React.useEffect(function () {
163
154
  if (open) {
164
155
  // Focusing the first element or selectorPrimaryFocus element
165
- if (selectorPrimaryFocus && useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
166
- var _window2;
167
- var specifiedEl = useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
168
- if (specifiedEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(specifiedEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
169
- setTimeout(function () {
170
- return specifiedEl.focus();
171
- }, 0);
172
- return;
173
- }
174
- }
175
- setTimeout(function () {
176
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
177
- }, 0);
156
+ useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
178
157
  }
179
158
  }, [firstElement, modalRef, open, selectorPrimaryFocus]);
180
159
  React.useEffect(function () {
@@ -15,4 +15,4 @@ export interface TooltipTriggerProps extends PropsWithChildren {
15
15
  * This is an tooltip trigger as Carbon Tooltip requires an active element to work but provides
16
16
  * no blanked button.
17
17
  */
18
- export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLDivElement>>;
18
+ export declare let TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;