@carbon/ibm-products 2.54.0-canary.8 → 2.54.0-canary.80

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 (365) hide show
  1. package/css/index-full-carbon.css +1399 -690
  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 +987 -64
  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 +610 -562
  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 +692 -567
  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.d.ts +1 -1
  19. package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
  20. package/es/components/APIKeyModal/APIKeyModal.d.ts +13 -0
  21. package/es/components/APIKeyModal/APIKeyModal.js +85 -38
  22. package/es/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
  23. package/es/components/AboutModal/AboutModal.js +3 -6
  24. package/es/components/AddSelect/hooks/useFocus.js +1 -2
  25. package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
  26. package/es/components/AddSelect/hooks/usePath.js +1 -2
  27. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
  28. package/es/components/Card/Card.d.ts +3 -3
  29. package/es/components/Card/Card.js +12 -12
  30. package/es/components/Card/CardHeader.d.ts +7 -7
  31. package/es/components/Card/CardHeader.js +14 -12
  32. package/es/components/Checklist/Checklist.js +1 -1
  33. package/es/components/Checklist/ChecklistIcon.js +1 -1
  34. package/es/components/Coachmark/Coachmark.d.ts +5 -0
  35. package/es/components/Coachmark/Coachmark.js +11 -3
  36. package/es/components/Coachmark/CoachmarkOverlay.js +4 -0
  37. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +17 -0
  38. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +57 -12
  39. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  40. package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  41. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  42. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +9 -5
  43. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  44. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  45. package/es/components/ConditionBuilder/utils/util.js +0 -4
  46. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  47. package/es/components/CreateTearsheet/CreateTearsheet.js +4 -3
  48. package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
  49. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  50. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +31 -2
  51. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  52. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  53. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  54. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  55. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  56. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
  57. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
  58. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  59. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  60. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  61. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  62. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  63. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  64. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  65. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  66. package/es/components/Datagrid/useCustomizeColumns.js +4 -4
  67. package/es/components/Datagrid/useDatagrid.js +2 -2
  68. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  69. package/es/components/Datagrid/useEditableCell.js +1 -2
  70. package/es/components/Datagrid/useFlexResize.js +1 -2
  71. package/es/components/Datagrid/useFloatingScroll.js +1 -2
  72. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  73. package/es/components/Datagrid/useParentDimensions.js +1 -2
  74. package/es/components/Datagrid/useResizeTable.js +1 -2
  75. package/es/components/Datagrid/useRowExpander.js +1 -2
  76. package/es/components/Datagrid/useRowRenderer.js +1 -2
  77. package/es/components/Datagrid/useRowSize.js +1 -2
  78. package/es/components/Datagrid/useSkeletonRows.js +1 -2
  79. package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  80. package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  81. package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  82. package/es/components/DecoratorLink/DecoratorLink.js +5 -0
  83. package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  84. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  85. package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
  86. package/es/components/DescriptionList/DescriptionList.js +5 -0
  87. package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
  88. package/es/components/EditFullPage/EditFullPage.js +8 -0
  89. package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  90. package/es/components/EditSidePanel/EditSidePanel.js +8 -0
  91. package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  92. package/es/components/EditTearsheet/EditTearsheet.js +8 -0
  93. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  94. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  95. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  96. package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
  97. package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
  98. package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  99. package/es/components/EmptyStates/EmptyStateV2.js +7 -0
  100. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  101. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  102. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  103. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  104. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  105. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  106. package/es/components/EmptyStates/assets/ErrorIllustration.js +3 -5
  107. package/es/components/EmptyStates/assets/NoDataIllustration.js +3 -5
  108. package/es/components/EmptyStates/assets/NoTagsIllustration.js +3 -5
  109. package/es/components/EmptyStates/assets/NotFoundIllustration.js +3 -5
  110. package/es/components/EmptyStates/assets/NotificationsIllustration.js +3 -5
  111. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +3 -5
  112. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  113. package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
  114. package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
  115. package/es/components/FilterPanel/FilterPanel.js +6 -0
  116. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  117. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  118. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  119. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  120. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  121. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  122. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  123. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  124. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  125. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  126. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  127. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  128. package/es/components/FilterSummary/FilterSummary.js +1 -1
  129. package/es/components/FullPageError/FullPageError.js +7 -7
  130. package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  131. package/es/components/FullPageError/assets/Error403SVG.js +4 -6
  132. package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  133. package/es/components/FullPageError/assets/Error404SVG.js +4 -6
  134. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  135. package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  136. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  137. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  138. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  139. package/es/components/InlineTip/InlineTip.d.ts +5 -0
  140. package/es/components/InlineTip/InlineTip.js +17 -8
  141. package/es/components/InterstitialScreen/InterstitialScreen.js +2 -3
  142. package/es/components/Nav/Nav.d.ts +3 -0
  143. package/es/components/Nav/Nav.js +8 -0
  144. package/es/components/Nav/NavItemLink.js +1 -2
  145. package/es/components/PageHeader/PageHeader.js +13 -3
  146. package/es/components/PageHeader/PageHeaderTitle.js +10 -29
  147. package/es/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  148. package/es/components/ProductiveCard/ProductiveCard.js +11 -9
  149. package/es/components/SidePanel/SidePanel.d.ts +6 -1
  150. package/es/components/SidePanel/SidePanel.js +27 -14
  151. package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  152. package/es/components/StatusIndicator/StatusIndicator.js +5 -0
  153. package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  154. package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  155. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  156. package/es/components/TagOverflow/TagOverflow.js +2 -5
  157. package/es/components/Tearsheet/TearsheetShell.d.ts +4 -0
  158. package/es/components/Tearsheet/TearsheetShell.js +7 -60
  159. package/es/global/js/hooks/useFocus.d.ts +1 -0
  160. package/es/global/js/hooks/useFocus.js +24 -1
  161. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
  162. package/es/global/js/package-settings.d.ts +1 -1
  163. package/es/global/js/package-settings.js +1 -1
  164. package/es/global/js/utils/checkForOverflow.d.ts +5 -0
  165. package/es/global/js/utils/checkForOverflow.js +31 -0
  166. package/es/index.js +1 -1
  167. package/es/settings.d.ts +1 -1
  168. package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
  169. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +1 -1
  170. package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
  171. package/lib/components/APIKeyModal/APIKeyModal.d.ts +13 -0
  172. package/lib/components/APIKeyModal/APIKeyModal.js +83 -34
  173. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
  174. package/lib/components/AboutModal/AboutModal.js +2 -5
  175. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  176. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  177. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  178. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
  179. package/lib/components/Card/Card.d.ts +3 -3
  180. package/lib/components/Card/Card.js +12 -12
  181. package/lib/components/Card/CardHeader.d.ts +7 -7
  182. package/lib/components/Card/CardHeader.js +14 -12
  183. package/lib/components/Checklist/ChecklistChart.js +7 -7
  184. package/lib/components/Coachmark/Coachmark.d.ts +5 -0
  185. package/lib/components/Coachmark/Coachmark.js +11 -3
  186. package/lib/components/Coachmark/CoachmarkOverlay.js +4 -0
  187. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +17 -0
  188. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +56 -11
  189. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  190. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  191. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  192. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +9 -5
  193. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  194. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  195. package/lib/components/ConditionBuilder/utils/util.js +0 -4
  196. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  197. package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -3
  198. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
  199. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  200. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +30 -1
  201. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  202. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  203. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  204. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  205. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  206. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
  207. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
  208. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  209. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  210. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  211. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  212. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  213. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  214. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  215. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  216. package/lib/components/Datagrid/useColumnOrder.js +1 -1
  217. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  218. package/lib/components/Datagrid/useEditableCell.js +1 -2
  219. package/lib/components/Datagrid/useFlexResize.js +1 -2
  220. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  221. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  222. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  223. package/lib/components/Datagrid/useResizeTable.js +1 -2
  224. package/lib/components/Datagrid/useRowExpander.js +1 -2
  225. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  226. package/lib/components/Datagrid/useRowSize.js +1 -2
  227. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  228. package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  229. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  230. package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  231. package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
  232. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  233. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  234. package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
  235. package/lib/components/DescriptionList/DescriptionList.js +5 -0
  236. package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
  237. package/lib/components/EditFullPage/EditFullPage.js +8 -0
  238. package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  239. package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
  240. package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  241. package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
  242. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  243. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  244. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  245. package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
  246. package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
  247. package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  248. package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
  249. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  250. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  251. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  252. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  253. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  254. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  255. package/lib/components/EmptyStates/assets/ErrorIllustration.js +2 -4
  256. package/lib/components/EmptyStates/assets/NoDataIllustration.js +2 -4
  257. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +2 -4
  258. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +2 -4
  259. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +2 -4
  260. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -4
  261. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  262. package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
  263. package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
  264. package/lib/components/FilterPanel/FilterPanel.js +6 -0
  265. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  266. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  267. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  268. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  269. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  270. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  271. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  272. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  273. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  274. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  275. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  276. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  277. package/lib/components/FilterSummary/FilterSummary.js +1 -1
  278. package/lib/components/FullPageError/FullPageError.js +7 -7
  279. package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  280. package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
  281. package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  282. package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
  283. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  284. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  285. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  286. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  287. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  288. package/lib/components/InlineTip/InlineTip.d.ts +5 -0
  289. package/lib/components/InlineTip/InlineTip.js +17 -8
  290. package/lib/components/InterstitialScreen/InterstitialScreen.js +2 -3
  291. package/lib/components/Nav/Nav.d.ts +3 -0
  292. package/lib/components/Nav/Nav.js +8 -0
  293. package/lib/components/Nav/NavItemLink.js +1 -2
  294. package/lib/components/PageHeader/PageHeader.js +12 -2
  295. package/lib/components/PageHeader/PageHeaderTitle.js +8 -27
  296. package/lib/components/ProductiveCard/ProductiveCard.d.ts +9 -5
  297. package/lib/components/ProductiveCard/ProductiveCard.js +11 -9
  298. package/lib/components/SidePanel/SidePanel.d.ts +6 -1
  299. package/lib/components/SidePanel/SidePanel.js +27 -14
  300. package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  301. package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
  302. package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  303. package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  304. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  305. package/lib/components/TagOverflow/TagOverflow.js +1 -4
  306. package/lib/components/Tearsheet/TearsheetShell.d.ts +4 -0
  307. package/lib/components/Tearsheet/TearsheetShell.js +6 -59
  308. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  309. package/lib/global/js/hooks/useFocus.js +24 -0
  310. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
  311. package/lib/global/js/package-settings.d.ts +1 -1
  312. package/lib/global/js/package-settings.js +1 -1
  313. package/lib/global/js/utils/checkForOverflow.d.ts +5 -0
  314. package/lib/global/js/utils/checkForOverflow.js +34 -0
  315. package/lib/index.js +109 -109
  316. package/lib/settings.d.ts +1 -1
  317. package/package.json +11 -11
  318. package/scss/components/APIKeyModal/_api-key-modal.scss +4 -0
  319. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
  320. package/scss/components/Card/_card.scss +19 -5
  321. package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
  322. package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
  323. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
  324. package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
  325. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
  326. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
  327. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
  328. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
  329. package/scss/components/Datagrid/styles/_datagrid.scss +21 -14
  330. package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
  331. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
  332. package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
  333. package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
  334. package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
  335. package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
  336. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
  337. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
  338. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
  339. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
  340. package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
  341. package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
  342. package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
  343. package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
  344. package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
  345. package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
  346. package/scss/components/FullPageError/_full-page-error.scss +1 -1
  347. package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
  348. package/scss/components/Guidebanner/_guidebanner.scss +4 -4
  349. package/scss/components/HTTPErrors/_http-errors.scss +1 -1
  350. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  351. package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
  352. package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
  353. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  354. package/scss/components/OptionsTile/_options-tile.scss +6 -8
  355. package/scss/components/PageHeader/_page-header.scss +38 -19
  356. package/scss/components/ProductiveCard/_productive-card.scss +2 -2
  357. package/scss/components/SidePanel/_side-panel.scss +24 -17
  358. package/scss/components/StatusIcon/_status-icon.scss +9 -7
  359. package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
  360. package/scss/components/Tearsheet/_tearsheet.scss +5 -5
  361. package/scss/components/UserAvatar/_user-avatar.scss +5 -3
  362. package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
  363. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
  364. package/scss/components/_index-released-only.scss +1 -0
  365. package/telemetry.yml +3 -0
@@ -24,7 +24,7 @@ import usePrefersReducedMotion from '../../global/js/hooks/usePrefersReducedMoti
24
24
  import { useFocus, getSpecificElement } from '../../global/js/hooks/useFocus.js';
25
25
  import { usePreviousValue } from '../../global/js/hooks/usePreviousValue.js';
26
26
 
27
- var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
27
+ var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "decorator", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
28
28
  _excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
29
29
  var blockClass = "".concat(pkg.prefix, "--side-panel");
30
30
  var componentName = 'SidePanel';
@@ -57,6 +57,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
57
57
  condensedActions = _ref.condensedActions,
58
58
  _ref$currentStep = _ref.currentStep,
59
59
  currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
60
+ decorator = _ref.decorator,
60
61
  _ref$id = _ref.id,
61
62
  id = _ref$id === void 0 ? blockClass : _ref$id,
62
63
  includeOverlay = _ref.includeOverlay,
@@ -335,7 +336,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
335
336
  }
336
337
  }, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
337
338
  var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
338
- var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-ai-label"), !!aiLabel || !!slug), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
339
+ var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-decorator"), decorator), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--has-ai-label"), aiLabel), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
339
340
  var renderTitle = function renderTitle() {
340
341
  return /*#__PURE__*/React__default.createElement("div", {
341
342
  className: cx("".concat(blockClass, "__title"), _defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
@@ -351,23 +352,29 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
351
352
  }, title));
352
353
  };
353
354
  var renderHeader = function renderHeader() {
354
- var _slug$type, _aiLabel$type;
355
- var aiLabelCloseSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
356
- var normalizedAILabel;
355
+ var _slug$type, _aiLabel$type, _decorator$type;
356
+ var closeSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
357
+ var normalizedDecorator;
357
358
  /**
358
359
  * slug is deprecated
359
360
  * can remove this condition in future release
360
361
  */
361
- if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'Slug') {
362
- normalizedAILabel = /*#__PURE__*/React__default.cloneElement(slug, {
362
+ if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'AILabel') {
363
+ normalizedDecorator = /*#__PURE__*/React__default.cloneElement(slug, {
363
364
  // slug size is sm unless actions and size > md
364
- size: aiLabelCloseSize
365
+ size: closeSize
365
366
  });
366
367
  }
367
368
  if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
368
- normalizedAILabel = /*#__PURE__*/React__default.cloneElement(aiLabel, {
369
+ normalizedDecorator = /*#__PURE__*/React__default.cloneElement(aiLabel, {
369
370
  // aiLabel size is sm unless actions and size > md
370
- size: aiLabelCloseSize
371
+ size: closeSize
372
+ });
373
+ }
374
+ if ((decorator === null || decorator === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) === 'AILabel') {
375
+ normalizedDecorator = /*#__PURE__*/React__default.cloneElement(decorator, {
376
+ // decorator size is sm unless actions and size > md
377
+ size: closeSize
371
378
  });
372
379
  }
373
380
  return /*#__PURE__*/React__default.createElement("div", {
@@ -375,7 +382,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
375
382
  ref: headerRef
376
383
  }, currentStep > 0 && /*#__PURE__*/React__default.createElement(Button, {
377
384
  kind: "ghost",
378
- size: aiLabelCloseSize,
385
+ size: closeSize,
379
386
  disabled: false,
380
387
  renderIcon: function renderIcon(props) {
381
388
  return /*#__PURE__*/React__default.createElement(ArrowLeft, _extends({
@@ -389,8 +396,8 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
389
396
  className: "".concat(blockClass, "__label-text"),
390
397
  ref: labelTextRef
391
398
  }, labelText), title && title.length && renderTitle(), /*#__PURE__*/React__default.createElement("div", {
392
- className: "".concat(blockClass, "__ai-label-and-close")
393
- }, normalizedAILabel, /*#__PURE__*/React__default.createElement(IconButton, {
399
+ className: "".concat(blockClass, "__decorator-and-close")
400
+ }, normalizedDecorator, /*#__PURE__*/React__default.createElement(IconButton, {
394
401
  className: "".concat(blockClass, "__close-button"),
395
402
  label: closeIconDescription,
396
403
  onClick: onRequestClose,
@@ -493,7 +500,13 @@ var deprecatedProps = {
493
500
  * **deprecated**
494
501
  * **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
495
502
  */
496
- slug: PropTypes.node
503
+ slug: PropTypes.node,
504
+ /**
505
+ * **deprecated**
506
+ * Please use the `decorator` instead
507
+ * Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
508
+ */
509
+ aiLabel: PropTypes.node
497
510
  };
498
511
  SidePanel.propTypes = _objectSpread2({
499
512
  /**
@@ -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);
@@ -43,6 +43,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref
43
43
  var backupRef = useRef(null);
44
44
  var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
45
45
  var localRefValue = localRef.current;
46
+ var filePathStr = filePaths === null || filePaths === void 0 ? void 0 : filePaths.join(); //converting the array to string will avoid unwanted useEffect trigger.
46
47
  // load animation source
47
48
  useEffect(function () {
48
49
  var isJsonFile = function isJsonFile(filePath) {
@@ -85,7 +86,8 @@ var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref
85
86
  return _loadArtifact.apply(this, arguments);
86
87
  }
87
88
  loadArtifact();
88
- }, [filePaths]);
89
+ // eslint-disable-next-line
90
+ }, [filePathStr]);
89
91
  useEffect(function () {
90
92
  var _window;
91
93
  var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useRef, useState, useCallback, useEffect, createElement } from 'react';
10
- import { Tooltip, DismissibleTag, Tag } from '@carbon/react';
10
+ import { DismissibleTag, Tag } from '@carbon/react';
11
11
  import PropTypes from '../../_virtual/index.js';
12
12
  import { TYPES } from './constants.js';
13
13
  import { TagOverflowModal } from './TagOverflowModal.js';
@@ -189,9 +189,6 @@ var TagOverflow = /*#__PURE__*/forwardRef(function (props, ref) {
189
189
  return itemRefHandler(id, node);
190
190
  },
191
191
  key: id
192
- }, /*#__PURE__*/React__default.createElement(Tooltip, {
193
- align: overflowAlign,
194
- label: label
195
192
  }, typeof _onClose === 'function' || filter ? /*#__PURE__*/React__default.createElement(DismissibleTag, _extends({}, other, {
196
193
  className: "".concat(blockClass, "__item--tag"),
197
194
  type: tagType,
@@ -202,7 +199,7 @@ var TagOverflow = /*#__PURE__*/forwardRef(function (props, ref) {
202
199
  })) : /*#__PURE__*/React__default.createElement(Tag, _extends({}, other, {
203
200
  className: "".concat(blockClass, "__item--tag"),
204
201
  type: tagType
205
- }), label)));
202
+ }), label));
206
203
  }
207
204
  }), /*#__PURE__*/React__default.createElement("span", {
208
205
  className: "".concat(blockClass, "__indicator"),
@@ -19,6 +19,10 @@ interface TearsheetShellProps extends PropsWithChildren {
19
19
  * An optional class or classes to be added to the outermost element.
20
20
  */
21
21
  className?: string;
22
+ /**
23
+ * Used to track the current step on components which use `StepsContext` and `TearsheetShell`
24
+ */
25
+ currentStep?: number;
22
26
  /**
23
27
  * A description of the flow, displayed in the header area of the tearsheet.
24
28
  */
@@ -18,10 +18,10 @@ 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
- 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"];
24
+ var _excluded = ["actions", "aiLabel", "ariaLabel", "children", "className", "closeIconDescription", "currentStep", "description", "hasCloseIcon", "headerActions", "influencer", "influencerPosition", "influencerWidth", "label", "navigation", "onClose", "open", "portalTarget", "selectorPrimaryFocus", "selectorsFloatingMenus", "size", "slug", "title", "verticalPosition", "launcherButtonRef"];
25
25
  // The block part of our conventional BEM class names (bc__E--M).
26
26
  var bc = "".concat(pkg.prefix, "--tearsheet");
27
27
  var componentName = 'TearsheetShell';
@@ -68,6 +68,7 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
68
68
  children = _ref.children,
69
69
  className = _ref.className,
70
70
  closeIconDescription = _ref.closeIconDescription,
71
+ currentStep = _ref.currentStep,
71
72
  description = _ref.description,
72
73
  hasCloseIcon = _ref.hasCloseIcon,
73
74
  headerActions = _ref.headerActions,
@@ -100,8 +101,7 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
100
101
  var prevOpen = usePreviousValue(open);
101
102
  var _useFocus = useFocus(modalRef, selectorPrimaryFocus),
102
103
  firstElement = _useFocus.firstElement,
103
- keyDownListener = _useFocus.keyDownListener,
104
- specifiedElement = _useFocus.specifiedElement;
104
+ keyDownListener = _useFocus.keyDownListener;
105
105
  var modalRefValue = modalRef.current;
106
106
 
107
107
  // Function to strip html tags out of a string.
@@ -137,44 +137,12 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
137
137
  setDepth(newDepth);
138
138
  setPosition(newPosition);
139
139
  }
140
- handleStackChange.checkFocus = function () {
141
- // if we are now the topmost tearsheet, ensure we have focus
142
- if (open && position === depth && modalRefValue && !modalRefValue.contains(document.activeElement)) {
143
- handleStackChange.claimFocus();
144
- }
145
- };
146
-
147
- // Callback to give the tearsheet the opportunity to claim focus
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);
159
- };
160
140
  useEffect(function () {
161
- if (open) {
141
+ if (open && position === depth) {
162
142
  // 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);
143
+ claimFocus(firstElement, modalRef, selectorPrimaryFocus);
176
144
  }
177
- }, [firstElement, modalRef, open, selectorPrimaryFocus]);
145
+ }, [currentStep, depth, firstElement, modalRef, modalRefValue, open, position, selectorPrimaryFocus]);
178
146
  useEffect(function () {
179
147
  if (prevOpen && !open && launcherButtonRef) {
180
148
  setTimeout(function () {
@@ -182,22 +150,10 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
182
150
  }, 0);
183
151
  }
184
152
  }, [launcherButtonRef, open, prevOpen]);
185
- useEffect(function () {
186
- if (open && position !== depth) {
187
- setTimeout(function () {
188
- if (selectorPrimaryFocus) {
189
- return specifiedElement === null || specifiedElement === void 0 ? void 0 : specifiedElement.focus();
190
- }
191
- firstElement === null || firstElement === void 0 || firstElement.focus();
192
- }, 0);
193
- }
194
- }, [position, depth, firstElement, open, specifiedElement, selectorPrimaryFocus]);
195
153
  useEffect(function () {
196
154
  var notify = function notify() {
197
155
  return stack.all.forEach(function (handler) {
198
- var _handler$checkFocus;
199
156
  handler(Math.min(stack.open.length, maxDepth), stack.open.indexOf(handler) + 1);
200
- (_handler$checkFocus = handler.checkFocus) === null || _handler$checkFocus === void 0 || _handler$checkFocus.call(handler);
201
157
  });
202
158
  };
203
159
 
@@ -232,14 +188,6 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
232
188
  }
233
189
  };
234
190
  }, [open, size]);
235
- function handleFocus() {
236
- // If something within us is receiving focus but we are not the topmost
237
- // stacked tearsheet, transfer focus to the topmost tearsheet instead
238
- if (position < depth) {
239
- var _stack$open$claimFocu, _stack$open;
240
- (_stack$open$claimFocu = (_stack$open = stack.open[stack.open.length - 1]).claimFocus) === null || _stack$open$claimFocu === void 0 || _stack$open$claimFocu.call(_stack$open);
241
- }
242
- }
243
191
  if (position <= depth) {
244
192
  var _prevDepth$current;
245
193
  // Include a modal header if and only if one or more of these is given.
@@ -271,7 +219,6 @@ var TearsheetShell = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
271
219
  onClose: onClose,
272
220
  open: open,
273
221
  selectorPrimaryFocus: selectorPrimaryFocus,
274
- onFocus: handleFocus,
275
222
  onKeyDown: keyDownListener,
276
223
  preventCloseOnClickOutside: !isPassive,
277
224
  ref: modalRef,
@@ -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): void;
@@ -104,4 +104,27 @@ 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
+ setTimeout(function () {
120
+ return specifiedEl.focus();
121
+ }, 0);
122
+ }
123
+ } else {
124
+ setTimeout(function () {
125
+ return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
126
+ }, 0);
127
+ }
128
+ };
129
+
130
+ 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 };
@@ -66,6 +66,7 @@ declare namespace defaults {
66
66
  let WebTerminal: boolean;
67
67
  let WebTerminalContentWrapper: boolean;
68
68
  let WebTerminalProvider: boolean;
69
+ let UserAvatar: boolean;
69
70
  let Toolbar: boolean;
70
71
  let ToolbarButton: boolean;
71
72
  let ToolbarGroup: boolean;
@@ -115,7 +116,6 @@ declare namespace defaults {
115
116
  let DescriptionListCell: boolean;
116
117
  let DescriptionListRow: boolean;
117
118
  let SearchBar: boolean;
118
- let UserAvatar: boolean;
119
119
  let EmptyStateV2: boolean;
120
120
  let Guidebanner: boolean;
121
121
  let GuidebannerElement: boolean;
@@ -64,6 +64,7 @@ var defaults = {
64
64
  WebTerminal: true,
65
65
  WebTerminalContentWrapper: true,
66
66
  WebTerminalProvider: true,
67
+ UserAvatar: true,
67
68
  // other public components not yet reviewed and released:
68
69
  Toolbar: false,
69
70
  ToolbarButton: false,
@@ -117,7 +118,6 @@ var defaults = {
117
118
  DescriptionListCell: false,
118
119
  DescriptionListRow: false,
119
120
  SearchBar: false,
120
- UserAvatar: false,
121
121
  /* new component flags here - comment used by generate CLI */
122
122
 
123
123
  // Onboarding components not yet reviewed and released:
@@ -0,0 +1,5 @@
1
+ /**
2
+ * used to calculate if a element is overflowing the width or height of an area
3
+ */
4
+ export declare const checkWidthOverflow: (el: HTMLElement | null) => boolean;
5
+ export declare const checkHeightOverflow: (el: HTMLElement | null) => boolean;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ // Copyright IBM Corp. 2024, 2024
9
+ //
10
+ // This source code is licensed under the Apache-2.0 license found in the
11
+ // LICENSE file in the root directory of this source tree.
12
+ //
13
+
14
+ /**
15
+ * used to calculate if a element is overflowing the width or height of an area
16
+ */
17
+
18
+ var checkWidthOverflow = function checkWidthOverflow(el) {
19
+ if (el) {
20
+ return (el === null || el === void 0 ? void 0 : el.offsetWidth) < (el === null || el === void 0 ? void 0 : el.scrollWidth);
21
+ }
22
+ return false;
23
+ };
24
+ var checkHeightOverflow = function checkHeightOverflow(el) {
25
+ if (el) {
26
+ return (el === null || el === void 0 ? void 0 : el.offsetHeight) < (el === null || el === void 0 ? void 0 : el.scrollHeight);
27
+ }
28
+ return false;
29
+ };
30
+
31
+ export { checkHeightOverflow, checkWidthOverflow };
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';
package/es/settings.d.ts CHANGED
@@ -52,6 +52,7 @@ export const pkg: {
52
52
  WebTerminal: boolean;
53
53
  WebTerminalContentWrapper: boolean;
54
54
  WebTerminalProvider: boolean;
55
+ UserAvatar: boolean;
55
56
  Toolbar: boolean;
56
57
  ToolbarButton: boolean;
57
58
  ToolbarGroup: boolean;
@@ -101,7 +102,6 @@ export const pkg: {
101
102
  DescriptionListCell: boolean;
102
103
  DescriptionListRow: boolean;
103
104
  SearchBar: boolean;
104
- UserAvatar: boolean;
105
105
  EmptyStateV2: boolean;
106
106
  Guidebanner: boolean;
107
107
  GuidebannerElement: boolean;
@@ -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 () {};
@@ -10,7 +10,7 @@ export namespace APIKeyDownloader {
10
10
  export { componentName as displayName };
11
11
  export namespace propTypes {
12
12
  let apiKey: PropTypes.Validator<string>;
13
- let body: PropTypes.Validator<string>;
13
+ let body: PropTypes.Requireable<string>;
14
14
  let downloadLinkLabel: PropTypes.Requireable<string>;
15
15
  let fileName: PropTypes.Validator<string>;
16
16
  let fileType: PropTypes.Validator<string>;
@@ -78,7 +78,7 @@ APIKeyDownloader.propTypes = {
78
78
  /**
79
79
  * body content for the downloader
80
80
  */
81
- body: index.default.string.isRequired,
81
+ body: index.default.string,
82
82
  /**
83
83
  * aria-label for the download link
84
84
  */
@@ -1,3 +1,16 @@
1
1
  import React from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import { APIKeyModalProps } from './APIKeyModal.types';
3
4
  export declare let APIKeyModal: React.FC<APIKeyModalProps>;
5
+ export declare const deprecatedProps: {
6
+ /**
7
+ * deprecated
8
+ * title for a successful edit
9
+ */
10
+ editSuccessTitle: PropTypes.Requireable<string>;
11
+ /**
12
+ * deprecated
13
+ * title for a successful key generation
14
+ */
15
+ generateSuccessTitle: PropTypes.Requireable<string>;
16
+ };