@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
@@ -20,9 +20,10 @@ var devtools = require('../../global/js/utils/devtools.js');
20
20
  var propsHelper = require('../../global/js/utils/props-helper.js');
21
21
  var uuidv4 = require('../../global/js/utils/uuidv4.js');
22
22
  var useFocus = require('../../global/js/hooks/useFocus.js');
23
+ var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
23
24
 
24
25
  var _ErrorFilled, _InformationFilled;
25
- var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel"];
26
+ var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "closeButtonText", "copyButtonText", "copyErrorText", "copyIconDescription", "customSteps", "downloadBodyText", "downloadFileName", "downloadFileType", "downloadLinkText", "downloadLinkLabel", "editButtonText", "editSuccess", "editSuccessTitle", "editSuccessMessage", "editing", "error", "errorText", "generateButtonText", "generateSuccessBody", "generateSuccessTitle", "generateSuccessMessage", "generateTitle", "hasAPIKeyVisibilityToggle", "hasDownloadLink", "hideAPIKeyLabel", "launcherButtonRef", "loading", "loadingText", "modalLabel", "nameHelperText", "nameLabel", "namePlaceholder", "nameRequired", "nextStepButtonText", "onClose", "onCopy", "onRequestEdit", "onRequestGenerate", "open", "portalTarget", "previousStepButtonText", "selectorPrimaryFocus", "showAPIKeyLabel", "helperText"];
26
27
  var componentName = 'APIKeyModal';
27
28
 
28
29
  // Default values for props
@@ -53,16 +54,19 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
53
54
  editButtonText = _ref.editButtonText,
54
55
  editSuccess = _ref.editSuccess,
55
56
  editSuccessTitle = _ref.editSuccessTitle,
57
+ editSuccessMessage = _ref.editSuccessMessage,
56
58
  editing = _ref.editing,
57
59
  error = _ref.error,
58
60
  errorText = _ref.errorText,
59
61
  generateButtonText = _ref.generateButtonText,
60
62
  generateSuccessBody = _ref.generateSuccessBody,
61
63
  generateSuccessTitle = _ref.generateSuccessTitle,
64
+ generateSuccessMessage = _ref.generateSuccessMessage,
62
65
  generateTitle = _ref.generateTitle,
63
66
  hasAPIKeyVisibilityToggle = _ref.hasAPIKeyVisibilityToggle,
64
67
  hasDownloadLink = _ref.hasDownloadLink,
65
68
  hideAPIKeyLabel = _ref.hideAPIKeyLabel,
69
+ launcherButtonRef = _ref.launcherButtonRef,
66
70
  loading = _ref.loading,
67
71
  loadingText = _ref.loadingText,
68
72
  modalLabel = _ref.modalLabel,
@@ -80,23 +84,28 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
80
84
  previousStepButtonText = _ref.previousStepButtonText,
81
85
  selectorPrimaryFocus = _ref.selectorPrimaryFocus,
82
86
  showAPIKeyLabel = _ref.showAPIKeyLabel,
87
+ helperText = _ref.helperText,
83
88
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
84
89
  var _useState = React.useState(null),
85
90
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
86
91
  title = _useState2[0],
87
92
  setTitle = _useState2[1];
88
- var _useState3 = React.useState(false),
93
+ var _useState3 = React.useState(null),
89
94
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
90
- copyError = _useState4[0],
91
- setCopyError = _useState4[1];
92
- var _useState5 = React.useState(apiKeyName),
95
+ successMessage = _useState4[0],
96
+ setSuccessMessage = _useState4[1];
97
+ var _useState5 = React.useState(false),
93
98
  _useState6 = _rollupPluginBabelHelpers.slicedToArray(_useState5, 2),
94
- name = _useState6[0],
95
- setName = _useState6[1];
96
- var _useState7 = React.useState(0),
99
+ copyError = _useState6[0],
100
+ setCopyError = _useState6[1];
101
+ var _useState7 = React.useState(apiKeyName),
97
102
  _useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
98
- currentStep = _useState8[0],
99
- setCurrentStep = _useState8[1];
103
+ name = _useState8[0],
104
+ setName = _useState8[1];
105
+ var _useState9 = React.useState(0),
106
+ _useState10 = _rollupPluginBabelHelpers.slicedToArray(_useState9, 2),
107
+ currentStep = _useState10[0],
108
+ setCurrentStep = _useState10[1];
100
109
  var copyRef = React.useRef(undefined);
101
110
  var apiKeyInputId = React.useRef(uuidv4.default());
102
111
  var nameInputId = React.useRef(uuidv4.default());
@@ -116,33 +125,33 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
116
125
  };
117
126
  var blockClass = "".concat(settings.pkg.prefix, "--apikey-modal");
118
127
  var localRef = React.useRef(undefined);
128
+ var PasswordInputRef = React.useRef(null);
119
129
  var modalRef = ref || localRef;
120
130
  var _useFocus = useFocus.useFocus(modalRef, selectorPrimaryFocus),
121
131
  firstElement = _useFocus.firstElement,
122
132
  keyDownListener = _useFocus.keyDownListener;
133
+ var prevOpen = usePreviousValue.usePreviousValue(open);
123
134
  React.useEffect(function () {
124
135
  if (copyRef.current && open && apiKeyLoaded) {
125
136
  copyRef.current.focus();
126
137
  }
138
+ if (PasswordInputRef !== null && PasswordInputRef !== void 0 && PasswordInputRef.current) {
139
+ PasswordInputRef === null || PasswordInputRef === void 0 || PasswordInputRef.current.setAttribute('readOnly', 'true');
140
+ }
127
141
  }, [open, apiKeyLoaded]);
128
142
  React.useEffect(function () {
129
143
  if (open) {
130
144
  // Focusing the first element or selectorPrimaryFocus element
131
- if (selectorPrimaryFocus && useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus)) {
132
- var _window;
133
- var specifiedEl = useFocus.getSpecificElement(modalRef === null || modalRef === void 0 ? void 0 : modalRef.current, selectorPrimaryFocus);
134
- if (specifiedEl && ((_window = window) === null || _window === void 0 || (_window = _window.getComputedStyle(specifiedEl)) === null || _window === void 0 ? void 0 : _window.display) !== 'none') {
135
- setTimeout(function () {
136
- return specifiedEl.focus();
137
- }, 0);
138
- return;
139
- }
140
- }
145
+ useFocus.claimFocus(firstElement, modalRef, selectorPrimaryFocus);
146
+ }
147
+ }, [firstElement, modalRef, open, selectorPrimaryFocus]);
148
+ React.useEffect(function () {
149
+ if (prevOpen && !open && launcherButtonRef) {
141
150
  setTimeout(function () {
142
- firstElement === null || firstElement === void 0 || firstElement.focus();
151
+ launcherButtonRef.current.focus();
143
152
  }, 0);
144
153
  }
145
- }, [firstElement, modalRef, open, selectorPrimaryFocus]);
154
+ }, [launcherButtonRef, open, prevOpen]);
146
155
  var isPrimaryButtonDisabled = function isPrimaryButtonDisabled() {
147
156
  if (loading) {
148
157
  return true;
@@ -176,16 +185,18 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
176
185
  };
177
186
  React.useEffect(function () {
178
187
  if (editing && editSuccess) {
179
- setTitle(editSuccessTitle);
188
+ setTitle(generateTitle);
189
+ setSuccessMessage(editSuccessMessage !== null && editSuccessMessage !== void 0 ? editSuccessMessage : editSuccessTitle);
180
190
  } else if (apiKeyLoaded) {
181
- setTitle(generateSuccessTitle);
191
+ setTitle(generateTitle);
192
+ setSuccessMessage(generateSuccessMessage !== null && generateSuccessMessage !== void 0 ? generateSuccessMessage : generateSuccessTitle);
182
193
  } else if (hasSteps) {
183
194
  var _customSteps$currentS2;
184
195
  setTitle((_customSteps$currentS2 = customSteps[currentStep]) === null || _customSteps$currentS2 === void 0 ? void 0 : _customSteps$currentS2.title);
185
196
  } else {
186
197
  setTitle(generateTitle);
187
198
  }
188
- }, [apiKeyLoaded, editing, editSuccess, editSuccessTitle, hasSteps, generateSuccessTitle, generateTitle, currentStep, customSteps]);
199
+ }, [apiKeyLoaded, loading, editing, editSuccess, editSuccessTitle, editSuccessMessage, hasSteps, generateSuccessTitle, generateSuccessMessage, generateTitle, currentStep, customSteps]);
189
200
  var setNameHandler = function setNameHandler(evt) {
190
201
  setName(evt.target.value);
191
202
  };
@@ -283,7 +294,9 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
283
294
  id: apiKeyInputId.current,
284
295
  showPasswordLabel: showAPIKeyLabel,
285
296
  hidePasswordLabel: hideAPIKeyLabel,
286
- tooltipPosition: "left"
297
+ tooltipPosition: "left",
298
+ helperText: helperText,
299
+ ref: PasswordInputRef
287
300
  }), !editing && apiKey && !hasAPIKeyVisibilityToggle && /*#__PURE__*/React.createElement(react.TextInput, {
288
301
  value: apiKey,
289
302
  labelText: apiKeyLabel,
@@ -311,7 +324,9 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
311
324
  }, _ErrorFilled || (_ErrorFilled = /*#__PURE__*/React.createElement(icons.ErrorFilled, {
312
325
  size: 16
313
326
  }))), /*#__PURE__*/React.createElement("p", {
314
- className: "".concat(blockClass, "__messaging-text")
327
+ className: "".concat(blockClass, "__messaging-text"),
328
+ role: "alert",
329
+ "aria-live": "assertive"
315
330
  }, copyError ? copyErrorText : errorText)), apiKeyLoaded && /*#__PURE__*/React.createElement("div", {
316
331
  className: "".concat(blockClass, "__messaging")
317
332
  }, _InformationFilled || (_InformationFilled = /*#__PURE__*/React.createElement(icons.InformationFilled, {
@@ -324,8 +339,19 @@ exports.APIKeyModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
324
339
  fileType: downloadFileType,
325
340
  downloadLinkLabel: downloadLinkLabel
326
341
  }) : /*#__PURE__*/React.createElement("div", {
327
- className: "".concat(blockClass, "__messaging-text")
328
- }, generateSuccessBody)))), /*#__PURE__*/React.createElement(react.ModalFooter, {
342
+ className: "".concat(blockClass, "__messaging-text"),
343
+ role: "alert",
344
+ "aria-live": "assertive"
345
+ }, generateSuccessBody)), (editSuccess || apiKeyLoaded && successMessage) && /*#__PURE__*/React.createElement("div", {
346
+ className: "".concat(blockClass, "__messaging")
347
+ }, /*#__PURE__*/React.createElement(icons.CheckmarkFilled, {
348
+ size: 16,
349
+ className: "".concat(blockClass, "__checkmark-icon")
350
+ }), /*#__PURE__*/React.createElement("p", {
351
+ className: "".concat(blockClass, "__messaging-text"),
352
+ role: "alert",
353
+ "aria-live": "assertive"
354
+ }, successMessage)))), /*#__PURE__*/React.createElement(react.ModalFooter, {
329
355
  className: "".concat(blockClass, "__footer")
330
356
  }, /*#__PURE__*/React.createElement(react.Button, {
331
357
  type: "button",
@@ -359,7 +385,19 @@ var downloadRequiredProps = function downloadRequiredProps(type) {
359
385
 
360
386
  // Return a placeholder if not released and not enabled by feature flag
361
387
  exports.APIKeyModal = settings.pkg.checkComponentEnabled(exports.APIKeyModal, componentName);
362
- exports.APIKeyModal.propTypes = {
388
+ var deprecatedProps = {
389
+ /**
390
+ * deprecated
391
+ * title for a successful edit
392
+ */
393
+ editSuccessTitle: index.default.string,
394
+ /**
395
+ * deprecated
396
+ * title for a successful key generation
397
+ */
398
+ generateSuccessTitle: index.default.string
399
+ };
400
+ exports.APIKeyModal.propTypes = _rollupPluginBabelHelpers.objectSpread2({
363
401
  /**
364
402
  * the api key that's displayed to the user when a request to create is fulfilled.
365
403
  */
@@ -417,7 +455,7 @@ exports.APIKeyModal.propTypes = {
417
455
  /**
418
456
  * the content that appears that indicates the key is downloadable
419
457
  */
420
- downloadBodyText: downloadRequiredProps(index.default.string),
458
+ downloadBodyText: index.default.string,
421
459
  /**
422
460
  * designates the name of downloadable json file with the key. if not specified will default to 'apikey'
423
461
  */
@@ -445,7 +483,7 @@ exports.APIKeyModal.propTypes = {
445
483
  /**
446
484
  * title for a successful edit
447
485
  */
448
- editSuccessTitle: editRequiredProps(index.default.string),
486
+ editSuccessMessage: editRequiredProps(index.default.string),
449
487
  /**
450
488
  * designates if the modal is in the edit mode
451
489
  */
@@ -471,7 +509,7 @@ exports.APIKeyModal.propTypes = {
471
509
  /**
472
510
  * title for a successful key generation
473
511
  */
474
- generateSuccessTitle: index.default.string,
512
+ generateSuccessMessage: index.default.string,
475
513
  /**
476
514
  * default title for the modal in generate key mode
477
515
  */
@@ -484,10 +522,19 @@ exports.APIKeyModal.propTypes = {
484
522
  * designates if user is able to download the api key
485
523
  */
486
524
  hasDownloadLink: index.default.bool,
525
+ /**
526
+ * helper text for password input
527
+ */
528
+ helperText: index.default.string,
487
529
  /**
488
530
  * label text that's displayed when hovering over visibility toggler to hide key
489
531
  */
490
532
  hideAPIKeyLabel: index.default.string,
533
+ /**
534
+ * Provide a ref to return focus to once the tearsheet is closed.
535
+ */
536
+ /**@ts-ignore */
537
+ launcherButtonRef: index.default.any,
491
538
  /**
492
539
  * designates if the modal is in a loading state via a request or some other in progress operation
493
540
  */
@@ -558,5 +605,7 @@ exports.APIKeyModal.propTypes = {
558
605
  * label text that's displayed when hovering over visibility toggler to show key
559
606
  */
560
607
  showAPIKeyLabel: index.default.string
561
- };
608
+ }, deprecatedProps);
562
609
  exports.APIKeyModal.displayName = componentName;
610
+
611
+ exports.deprecatedProps = deprecatedProps;
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- import { ReactNode } from 'react';
7
+ import { ReactNode, RefObject } from 'react';
8
8
  interface APIKeyModalCommonProps {
9
9
  /**
10
10
  * the api key that's displayed to the user when a request to create is fulfilled.
@@ -73,9 +73,14 @@ interface APIKeyModalCommonProps {
73
73
  */
74
74
  generateSuccessBody?: ReactNode;
75
75
  /**
76
+ * * @deprecated use `generateSuccessMessage` instead
76
77
  * title for a successful key generation
77
78
  */
78
79
  generateSuccessTitle?: string;
80
+ /**
81
+ * success message for a successful key generation
82
+ */
83
+ generateSuccessMessage?: string;
79
84
  /**
80
85
  * default title for the modal in generate key mode
81
86
  */
@@ -92,6 +97,10 @@ interface APIKeyModalCommonProps {
92
97
  * label text that's displayed when hovering over visibility toggler to hide key
93
98
  */
94
99
  hideAPIKeyLabel?: string;
100
+ /**
101
+ * Provide a ref to return focus to once the tearsheet is closed.
102
+ */
103
+ launcherButtonRef?: RefObject<any>;
95
104
  /**
96
105
  * designates if the modal is in a loading state via a request or some other in progress operation
97
106
  */
@@ -154,6 +163,10 @@ interface APIKeyModalCommonProps {
154
163
  * label text that's displayed when hovering over visibility toggler to show key
155
164
  */
156
165
  showAPIKeyLabel?: string;
166
+ /**
167
+ * helper text for password input
168
+ */
169
+ helperText?: string;
157
170
  }
158
171
  type CustomStepConditionalProps = {
159
172
  /**
@@ -187,9 +200,14 @@ type EditingConditionalProps = {
187
200
  */
188
201
  editSuccess: boolean;
189
202
  /**
203
+ * * @deprecated use `editSuccessMessage` instead
190
204
  * title for a successful edit
191
205
  */
192
- editSuccessTitle: string;
206
+ editSuccessTitle?: string;
207
+ /**
208
+ * success message for edit
209
+ */
210
+ editSuccessMessage: string;
193
211
  };
194
212
  type HasDownloadLinkProps = {
195
213
  /**
@@ -199,7 +217,7 @@ type HasDownloadLinkProps = {
199
217
  /**
200
218
  * the content that appears that indicates the key is downloadable
201
219
  */
202
- downloadBodyText: string;
220
+ downloadBodyText?: string;
203
221
  /**
204
222
  * designates the name of downloadable json file with the key. if not specified will default to 'apikey'
205
223
  */
@@ -64,12 +64,9 @@ exports.AboutModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
64
64
  }, [bodyRef]);
65
65
  React.useEffect(function () {
66
66
  if (open) {
67
- setTimeout(function () {
68
- return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
69
- }, 0);
67
+ useFocus.claimFocus(firstElement, modalRef);
70
68
  }
71
- // eslint-disable-next-line react-hooks/exhaustive-deps
72
- }, [open]);
69
+ }, [firstElement, modalRef, open]);
73
70
  return renderPortalUse( /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
74
71
  enableExperimentalFocusWrapWithoutSentinels: true
75
72
  }, /*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
@@ -40,6 +40,5 @@ var useFocus = function useFocus(size) {
40
40
  }, [handleKeyDown]);
41
41
  return [currentFocus, setCurrentFocus];
42
42
  };
43
- var useFocus$1 = useFocus;
44
43
 
45
- exports.default = useFocus$1;
44
+ exports.default = useFocus;
@@ -22,6 +22,5 @@ var useParentSelect = function useParentSelect() {
22
22
  setParentSelected: setParentSelected
23
23
  };
24
24
  };
25
- var useParentSelect$1 = useParentSelect;
26
25
 
27
- exports.default = useParentSelect$1;
26
+ exports.default = useParentSelect;
@@ -70,6 +70,5 @@ var usePath = function usePath() {
70
70
  resetPath: resetPath
71
71
  };
72
72
  };
73
- var usePath$1 = usePath;
74
73
 
75
- exports.default = usePath$1;
74
+ exports.default = usePath;
@@ -63,12 +63,20 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
63
63
  // eslint-disable-next-line react/prop-types
64
64
  var BreadcrumbOverflowMenu = function BreadcrumbOverflowMenu(_ref2) {
65
65
  var overflowItems = _ref2.overflowItems;
66
+ var handleClick = function handleClick(evt, item) {
67
+ var _item$props, _item$props2, _item$props2$onClick;
68
+ if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
69
+ window.location.href = item.props.href;
70
+ }
71
+ item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 || (_item$props2$onClick = _item$props2.onClick) === null || _item$props2$onClick === void 0 || _item$props2$onClick.call(_item$props2, evt);
72
+ };
66
73
  return /*#__PURE__*/React.createElement(react.BreadcrumbItem, {
67
74
  key: "breadcrumb-overflow-".concat(internalId.current)
75
+ }, /*#__PURE__*/React.createElement(react.unstable_FeatureFlags, {
76
+ enableV12Overflowmenu: true
68
77
  }, /*#__PURE__*/React.createElement(react.OverflowMenu, {
69
- align: overflowTooltipAlign,
70
78
  "aria-label": overflowAriaLabel,
71
- iconDescription: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
79
+ label: overflowAriaLabel // also needs setting to avoid a11y "Accessible name does not match or contain the visible label text"
72
80
  ,
73
81
  renderIcon: function renderIcon(props) {
74
82
  return /*#__PURE__*/React.createElement(icons.OverflowMenuHorizontal, _rollupPluginBabelHelpers.extends({
@@ -76,17 +84,18 @@ exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
76
84
  }, props));
77
85
  },
78
86
  className: "".concat(blockClass, "__overflow-menu"),
79
- menuOptionsClass: "".concat(blockClass, "__overflow-menu-options")
87
+ tooltipAlignment: overflowTooltipAlign
80
88
  },
81
89
  // eslint-disable-next-line react/prop-types
82
90
  overflowItems.map(function (item, index) {
83
- return /*#__PURE__*/React.createElement(react.OverflowMenuItem, {
91
+ return /*#__PURE__*/React.createElement(react.MenuItem, {
84
92
  key: "breadcrumb-overflow-menu-item-".concat(internalId.current, "-").concat(index),
85
- href: item.props.href,
86
- onClick: item.props.onClick,
87
- itemText: item.props.children
93
+ onClick: function onClick(evt) {
94
+ return handleClick(evt, item);
95
+ },
96
+ label: item.props.children
88
97
  });
89
- })));
98
+ }))));
90
99
  };
91
100
 
92
101
  // create hidden sizing items
@@ -58,13 +58,13 @@ interface CardProp extends PropsWithChildren {
58
58
  iconDescription?: string;
59
59
  /**
60
60
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
61
- * @deprecated please use the `aiLabel` prop
61
+ * @deprecated please use the `decorator` prop
62
62
  */
63
63
  slug?: ReactNode | boolean;
64
64
  /**
65
- * 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.
65
+ * Optional prop that allows you to pass any component.
66
66
  */
67
- aiLabel?: ReactNode | boolean;
67
+ decorator?: ReactNode | boolean;
68
68
  status?: 'complete' | 'incomplete';
69
69
  title?: ReactNode;
70
70
  titleSize?: 'default' | 'large';
@@ -18,7 +18,7 @@ var CardFooter = require('./CardFooter.js');
18
18
  var settings = require('../../settings.js');
19
19
 
20
20
  var _Incomplete, _CheckmarkOutline;
21
- var _excluded = ["actionIcons", "actionsPlacement", "aiLabel", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "overflowAriaLabel", "onSecondaryButtonClick", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
21
+ var _excluded = ["actionIcons", "actionsPlacement", "decorator", "metadata", "children", "className", "clickZone", "description", "disabled", "footerActionIcon", "getStarted", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "onSecondaryButtonClick", "overflowActions", "overflowAriaLabel", "pictogram", "primaryButtonDisabled", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonDisabled", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonPlacement", "secondaryButtonText", "slug", "status", "sequence", "title", "titleSize", "iconDescription"],
22
22
  _excluded2 = ["id", "itemText"],
23
23
  _excluded3 = ["id", "icon", "onClick", "iconDescription", "href"];
24
24
  var componentName = 'Card';
@@ -27,7 +27,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
27
27
  actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
28
28
  _ref$actionsPlacement = _ref.actionsPlacement,
29
29
  actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
30
- aiLabel = _ref.aiLabel,
30
+ decorator = _ref.decorator,
31
31
  _ref$metadata = _ref.metadata,
32
32
  metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
33
33
  children = _ref.children,
@@ -45,10 +45,10 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
45
45
  onClick = _ref.onClick,
46
46
  onKeyDown = _ref.onKeyDown,
47
47
  onPrimaryButtonClick = _ref.onPrimaryButtonClick,
48
+ onSecondaryButtonClick = _ref.onSecondaryButtonClick,
48
49
  _ref$overflowActions = _ref.overflowActions,
49
50
  overflowActions = _ref$overflowActions === void 0 ? Object.freeze([]) : _ref$overflowActions,
50
51
  overflowAriaLabel = _ref.overflowAriaLabel,
51
- onSecondaryButtonClick = _ref.onSecondaryButtonClick,
52
52
  Pictogram = _ref.pictogram,
53
53
  primaryButtonDisabled = _ref.primaryButtonDisabled,
54
54
  primaryButtonHref = _ref.primaryButtonHref,
@@ -107,8 +107,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
107
107
  autoAlign: true,
108
108
  menuAlignment: pos,
109
109
  size: size,
110
- "aria-label": overflowAriaLabel,
111
- label: iconDescription
110
+ label: overflowAriaLabel || iconDescription
112
111
  }, overflowActions.map(function (_ref2) {
113
112
  var id = _ref2.id,
114
113
  itemText = _ref2.itemText,
@@ -170,10 +169,11 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
170
169
  return icons;
171
170
  };
172
171
  var getCardProps = function getCardProps() {
172
+ var _decorator$type, _decorator$type2;
173
173
  var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
174
174
  var cardProps = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
175
175
  ref: ref,
176
- className: cx(blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-ai-label"), !!aiLabel), className)
176
+ className: cx(blockClass, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-decorator"), !!decorator && ((_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) !== 'AILabel'), "".concat(blockClass, "--has-ai-label"), !!decorator && ((_decorator$type2 = decorator['type']) === null || _decorator$type2 === void 0 ? void 0 : _decorator$type2.displayName) === 'AILabel'), className)
177
177
  }, clickable && clickableProps);
178
178
  return cardProps;
179
179
  };
@@ -189,7 +189,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
189
189
  var getHeaderProps = function getHeaderProps() {
190
190
  return {
191
191
  actions: actionsPlacement === 'top' ? getActions() : '',
192
- aiLabel: aiLabel,
192
+ decorator: decorator,
193
193
  noActionIcons: getIcons().length > 0 && actionsPlacement === 'top' ? false : true,
194
194
  actionsPlacement: actionsPlacement,
195
195
  onPrimaryButtonClick: onPrimaryButtonClick,
@@ -273,13 +273,13 @@ Card.propTypes = {
273
273
  href: index.default.string
274
274
  })),
275
275
  actionsPlacement: index.default.oneOf(['top', 'bottom']),
276
- /**
277
- * 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.
278
- */
279
- aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
280
276
  children: index.default.node,
281
277
  className: index.default.string,
282
278
  clickZone: index.default.oneOf(['one', 'two', 'three']),
279
+ /**
280
+ * Optional prop that allows you to pass any component.
281
+ */
282
+ decorator: index.default.oneOfType([index.default.node, index.default.bool]),
283
283
  /**@ts-ignore */
284
284
  description: index.default.oneOfType([index.default.string, index.default.node]),
285
285
  disabled: index.default.bool,
@@ -328,7 +328,7 @@ Card.propTypes = {
328
328
  /**
329
329
  * **Experimental:** For all cases a `Slug` component can be provided.
330
330
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
331
- * @deprecated please use the `aiLabel` prop
331
+ * @deprecated please use the `decorator` prop
332
332
  */
333
333
  slug: index.default.oneOfType([index.default.node, index.default.bool]),
334
334
  status: index.default.oneOf(['complete', 'incomplete']),
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
3
3
  interface CardHeaderProps {
4
4
  actions?: ReactNode;
5
5
  /**
6
- * 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.
6
+ * Optional prop that allows you to pass any component.
7
7
  */
8
- aiLabel?: ReactNode | boolean;
8
+ decorator?: ReactNode | boolean;
9
9
  description?: ReactNode;
10
10
  hasActions?: boolean;
11
11
  /**
@@ -29,21 +29,21 @@ interface CardHeaderProps {
29
29
  /**
30
30
  * **Experimental:** For all cases a `Slug` component can be provided.
31
31
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
32
- * @deprecated please use the `aiLabel` prop
32
+ * @deprecated please use the `decorator` prop
33
33
  */
34
34
  slug?: ReactNode;
35
35
  title?: ReactNode;
36
36
  titleSize?: 'default' | 'large';
37
37
  }
38
38
  export declare const CardHeader: {
39
- ({ actions, aiLabel, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
39
+ ({ actions, decorator, noActionIcons, onPrimaryButtonClick, onSecondaryButtonClick, primaryButtonIcon, primaryButtonPlacement, primaryButtonText, primaryButtonDisabled, description, hasActions, inClickableCard, label, secondaryButtonDisabled, secondaryButtonHref, secondaryButtonIcon, secondaryButtonPlacement, secondaryButtonText, slug, title, titleSize, }: CardHeaderProps): React.JSX.Element;
40
40
  /**@ts-ignore */
41
41
  propTypes: {
42
42
  actions: PropTypes.Requireable<NonNullable<any[] | PropTypes.ReactNodeLike>>;
43
43
  /**
44
- * 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.
44
+ * Optional prop that allows you to pass any component.
45
45
  */
46
- aiLabel: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
46
+ decorator: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
47
47
  description: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
48
48
  hasActions: PropTypes.Requireable<boolean>;
49
49
  /**
@@ -67,7 +67,7 @@ export declare const CardHeader: {
67
67
  /**
68
68
  * **Experimental:** For all cases a `Slug` component can be provided.
69
69
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
70
- * @deprecated please use the `aiLabel` prop
70
+ * @deprecated please use the `decorator` prop
71
71
  */
72
72
  slug: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
73
73
  title: PropTypes.Requireable<NonNullable<object | PropTypes.ReactNodeLike>>;
@@ -22,7 +22,7 @@ var defaults = {
22
22
  };
23
23
  var CardHeader = function CardHeader(_ref) {
24
24
  var actions = _ref.actions,
25
- aiLabel = _ref.aiLabel,
25
+ decorator = _ref.decorator,
26
26
  noActionIcons = _ref.noActionIcons,
27
27
  onPrimaryButtonClick = _ref.onPrimaryButtonClick,
28
28
  onSecondaryButtonClick = _ref.onSecondaryButtonClick,
@@ -67,13 +67,13 @@ var CardHeader = function CardHeader(_ref) {
67
67
  d: "M13.2436 16H11.5996L10.9276 13.864H7.95164L7.29164 16H5.68364L8.49164 7.624H10.4596L13.2436 16ZM10.5436 12.508L9.46364 9.064H9.40364L8.33564 12.508H10.5436ZM17.9341 16H14.1301V14.728H15.2341V8.896H14.1301V7.624H17.9341V8.896H16.8181V14.728H17.9341V16Z",
68
68
  fill: "#161616"
69
69
  })));
70
- var normalizedAiLabel = null;
71
- if (aiLabel || slug) {
72
- if (inClickableCard || typeof aiLabel === 'boolean' || typeof slug === 'boolean') {
73
- normalizedAiLabel = hollowAiIcon;
70
+ var normalizedDecorator = null;
71
+ if (decorator || slug) {
72
+ if (inClickableCard || typeof decorator === 'boolean' || typeof slug === 'boolean') {
73
+ normalizedDecorator = hollowAiIcon;
74
74
  } else {
75
- var element = aiLabel || slug;
76
- normalizedAiLabel = /*#__PURE__*/React.cloneElement(element, {
75
+ var element = decorator || slug;
76
+ normalizedDecorator = /*#__PURE__*/React.cloneElement(element, {
77
77
  size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
78
78
  });
79
79
  }
@@ -81,7 +81,7 @@ var CardHeader = function CardHeader(_ref) {
81
81
  return /*#__PURE__*/React.createElement("div", {
82
82
  className: headerClasses
83
83
  }, /*#__PURE__*/React.createElement("div", {
84
- className: cx(["".concat(headerClass, "-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-ai-label"), !!aiLabel), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
84
+ className: cx(["".concat(headerClass, "-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-decorator"), !!decorator), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _rollupPluginBabelHelpers.defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
85
85
  }, /*#__PURE__*/React.createElement("div", {
86
86
  className: "".concat(blockClass, "__title-container")
87
87
  }, label && /*#__PURE__*/React.createElement("p", {
@@ -107,15 +107,17 @@ var CardHeader = function CardHeader(_ref) {
107
107
  onClick: onPrimaryButtonClick,
108
108
  className: actionGhostButtonClass,
109
109
  disabled: primaryButtonDisabled
110
- }, primaryButtonText)), normalizedAiLabel));
110
+ }, primaryButtonText)), slug ? normalizedDecorator : decorator ? /*#__PURE__*/React.createElement("div", {
111
+ className: "".concat(blockClass, "__header__inner-wrapper--decorator")
112
+ }, normalizedDecorator) : ''));
111
113
  };
112
114
  /**@ts-ignore */
113
115
  CardHeader.propTypes = {
114
116
  actions: index.default.oneOfType([index.default.array, index.default.node]),
115
117
  /**
116
- * 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.
118
+ * Optional prop that allows you to pass any component.
117
119
  */
118
- aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
120
+ decorator: index.default.oneOfType([index.default.node, index.default.bool]),
119
121
  description: index.default.oneOfType([index.default.string, index.default.object, index.default.node]),
120
122
  hasActions: index.default.bool,
121
123
  /**
@@ -139,7 +141,7 @@ CardHeader.propTypes = {
139
141
  /**
140
142
  * **Experimental:** For all cases a `Slug` component can be provided.
141
143
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
142
- * @deprecated please use the `aiLabel` prop
144
+ * @deprecated please use the `decorator` prop
143
145
  */
144
146
  slug: index.default.oneOfType([index.default.node, index.default.bool]),
145
147
  title: index.default.oneOfType([index.default.string, index.default.object, index.default.node]),