@carbon/ibm-products 2.54.0-canary.6 → 2.54.0-canary.64

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 (341) hide show
  1. package/css/index-full-carbon.css +1352 -681
  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 +974 -59
  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 +597 -557
  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 +678 -562
  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 +23 -18
  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/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
  37. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +19 -5
  38. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  39. package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  40. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  41. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  42. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  43. package/es/components/ConditionBuilder/utils/util.js +0 -4
  44. package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  45. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -2
  46. package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
  47. package/es/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
  48. package/es/components/Datagrid/Datagrid/Datagrid.js +7 -0
  49. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  50. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  51. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  52. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  53. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  54. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  55. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
  56. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
  57. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  58. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  59. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  60. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  61. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  62. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  63. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  64. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  65. package/es/components/Datagrid/useCustomizeColumns.js +4 -4
  66. package/es/components/Datagrid/useDatagrid.js +2 -2
  67. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
  68. package/es/components/Datagrid/useEditableCell.js +1 -2
  69. package/es/components/Datagrid/useFlexResize.js +1 -2
  70. package/es/components/Datagrid/useFloatingScroll.js +1 -2
  71. package/es/components/Datagrid/useNestedRowExpander.js +1 -2
  72. package/es/components/Datagrid/useParentDimensions.js +1 -2
  73. package/es/components/Datagrid/useResizeTable.js +1 -2
  74. package/es/components/Datagrid/useRowExpander.js +1 -2
  75. package/es/components/Datagrid/useRowRenderer.js +1 -2
  76. package/es/components/Datagrid/useRowSize.js +1 -2
  77. package/es/components/Datagrid/useSkeletonRows.js +1 -2
  78. package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  79. package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  80. package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  81. package/es/components/DecoratorLink/DecoratorLink.js +5 -0
  82. package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  83. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  84. package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
  85. package/es/components/DescriptionList/DescriptionList.js +5 -0
  86. package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
  87. package/es/components/EditFullPage/EditFullPage.js +8 -0
  88. package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  89. package/es/components/EditSidePanel/EditSidePanel.js +8 -0
  90. package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  91. package/es/components/EditTearsheet/EditTearsheet.js +8 -0
  92. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  93. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  94. package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  95. package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
  96. package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
  97. package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  98. package/es/components/EmptyStates/EmptyStateV2.js +7 -0
  99. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  100. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  101. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  102. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  103. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  104. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  105. package/es/components/EmptyStates/assets/ErrorIllustration.js +3 -5
  106. package/es/components/EmptyStates/assets/NoDataIllustration.js +3 -5
  107. package/es/components/EmptyStates/assets/NoTagsIllustration.js +3 -5
  108. package/es/components/EmptyStates/assets/NotFoundIllustration.js +3 -5
  109. package/es/components/EmptyStates/assets/NotificationsIllustration.js +3 -5
  110. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +3 -5
  111. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  112. package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
  113. package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
  114. package/es/components/FilterPanel/FilterPanel.js +6 -0
  115. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  116. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  117. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  118. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  119. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  120. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  121. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  122. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  123. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  124. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  125. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  126. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  127. package/es/components/FullPageError/FullPageError.js +7 -7
  128. package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  129. package/es/components/FullPageError/assets/Error403SVG.js +4 -6
  130. package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  131. package/es/components/FullPageError/assets/Error404SVG.js +4 -6
  132. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  133. package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  134. package/es/components/InlineTip/InlineTip.d.ts +5 -0
  135. package/es/components/InlineTip/InlineTip.js +17 -8
  136. package/es/components/Nav/Nav.d.ts +3 -0
  137. package/es/components/Nav/Nav.js +8 -0
  138. package/es/components/Nav/NavItemLink.js +1 -2
  139. package/es/components/ProductiveCard/ProductiveCard.d.ts +3 -3
  140. package/es/components/ProductiveCard/ProductiveCard.js +4 -4
  141. package/es/components/SidePanel/SidePanel.d.ts +6 -1
  142. package/es/components/SidePanel/SidePanel.js +27 -14
  143. package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  144. package/es/components/StatusIndicator/StatusIndicator.js +5 -0
  145. package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  146. package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  147. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  148. package/es/components/Tearsheet/TearsheetShell.js +3 -24
  149. package/es/global/js/hooks/useFocus.d.ts +1 -0
  150. package/es/global/js/hooks/useFocus.js +21 -1
  151. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
  152. package/es/global/js/package-settings.d.ts +1 -1
  153. package/es/global/js/package-settings.js +1 -1
  154. package/es/index.js +1 -1
  155. package/es/settings.d.ts +1 -1
  156. package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
  157. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +1 -1
  158. package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
  159. package/lib/components/APIKeyModal/APIKeyModal.d.ts +13 -0
  160. package/lib/components/APIKeyModal/APIKeyModal.js +83 -34
  161. package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
  162. package/lib/components/AboutModal/AboutModal.js +2 -5
  163. package/lib/components/AddSelect/hooks/useFocus.js +1 -2
  164. package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
  165. package/lib/components/AddSelect/hooks/usePath.js +1 -2
  166. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
  167. package/lib/components/Card/Card.d.ts +3 -3
  168. package/lib/components/Card/Card.js +22 -17
  169. package/lib/components/Card/CardHeader.d.ts +7 -7
  170. package/lib/components/Card/CardHeader.js +14 -12
  171. package/lib/components/Checklist/ChecklistChart.js +7 -7
  172. package/lib/components/Coachmark/Coachmark.d.ts +5 -0
  173. package/lib/components/Coachmark/Coachmark.js +11 -3
  174. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +5 -0
  175. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +18 -4
  176. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
  177. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
  178. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
  179. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
  180. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
  181. package/lib/components/ConditionBuilder/utils/util.js +0 -4
  182. package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
  183. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -2
  184. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
  185. package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +1 -0
  186. package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -0
  187. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
  188. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
  189. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
  190. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
  191. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
  192. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
  193. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
  194. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
  195. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
  196. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
  197. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
  198. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
  199. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
  200. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
  201. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
  202. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
  203. package/lib/components/Datagrid/useColumnOrder.js +1 -1
  204. package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
  205. package/lib/components/Datagrid/useEditableCell.js +1 -2
  206. package/lib/components/Datagrid/useFlexResize.js +1 -2
  207. package/lib/components/Datagrid/useFloatingScroll.js +1 -2
  208. package/lib/components/Datagrid/useNestedRowExpander.js +1 -2
  209. package/lib/components/Datagrid/useParentDimensions.js +1 -2
  210. package/lib/components/Datagrid/useResizeTable.js +1 -2
  211. package/lib/components/Datagrid/useRowExpander.js +1 -2
  212. package/lib/components/Datagrid/useRowRenderer.js +1 -2
  213. package/lib/components/Datagrid/useRowSize.js +1 -2
  214. package/lib/components/Datagrid/useSkeletonRows.js +1 -2
  215. package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
  216. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
  217. package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
  218. package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
  219. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
  220. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
  221. package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
  222. package/lib/components/DescriptionList/DescriptionList.js +5 -0
  223. package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
  224. package/lib/components/EditFullPage/EditFullPage.js +8 -0
  225. package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
  226. package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
  227. package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
  228. package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
  229. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
  230. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
  231. package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
  232. package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
  233. package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
  234. package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
  235. package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
  236. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  237. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  238. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  239. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  240. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  241. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  242. package/lib/components/EmptyStates/assets/ErrorIllustration.js +2 -4
  243. package/lib/components/EmptyStates/assets/NoDataIllustration.js +2 -4
  244. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +2 -4
  245. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +2 -4
  246. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +2 -4
  247. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -4
  248. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
  249. package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
  250. package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
  251. package/lib/components/FilterPanel/FilterPanel.js +6 -0
  252. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
  253. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
  254. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
  255. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
  256. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
  257. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
  258. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
  259. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
  260. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
  261. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
  262. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
  263. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
  264. package/lib/components/FullPageError/FullPageError.js +7 -7
  265. package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
  266. package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
  267. package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
  268. package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
  269. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
  270. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
  271. package/lib/components/InlineTip/InlineTip.d.ts +5 -0
  272. package/lib/components/InlineTip/InlineTip.js +17 -8
  273. package/lib/components/Nav/Nav.d.ts +3 -0
  274. package/lib/components/Nav/Nav.js +8 -0
  275. package/lib/components/Nav/NavItemLink.js +1 -2
  276. package/lib/components/ProductiveCard/ProductiveCard.d.ts +3 -3
  277. package/lib/components/ProductiveCard/ProductiveCard.js +4 -4
  278. package/lib/components/SidePanel/SidePanel.d.ts +6 -1
  279. package/lib/components/SidePanel/SidePanel.js +27 -14
  280. package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
  281. package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
  282. package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
  283. package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
  284. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
  285. package/lib/components/Tearsheet/TearsheetShell.js +2 -23
  286. package/lib/global/js/hooks/useFocus.d.ts +1 -0
  287. package/lib/global/js/hooks/useFocus.js +21 -0
  288. package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
  289. package/lib/global/js/package-settings.d.ts +1 -1
  290. package/lib/global/js/package-settings.js +1 -1
  291. package/lib/index.js +109 -109
  292. package/lib/settings.d.ts +1 -1
  293. package/package.json +10 -10
  294. package/scss/components/APIKeyModal/_api-key-modal.scss +4 -0
  295. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
  296. package/scss/components/Card/_card.scss +19 -5
  297. package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
  298. package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
  299. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
  300. package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
  301. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
  302. package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
  303. package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
  304. package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
  305. package/scss/components/Datagrid/styles/_datagrid.scss +21 -14
  306. package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
  307. package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
  308. package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
  309. package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
  310. package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
  311. package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
  312. package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
  313. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
  314. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
  315. package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
  316. package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
  317. package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
  318. package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
  319. package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
  320. package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
  321. package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
  322. package/scss/components/FullPageError/_full-page-error.scss +1 -1
  323. package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
  324. package/scss/components/Guidebanner/_guidebanner.scss +4 -4
  325. package/scss/components/HTTPErrors/_http-errors.scss +1 -1
  326. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  327. package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
  328. package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
  329. package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
  330. package/scss/components/OptionsTile/_options-tile.scss +6 -8
  331. package/scss/components/PageHeader/_page-header.scss +20 -13
  332. package/scss/components/ProductiveCard/_productive-card.scss +2 -2
  333. package/scss/components/SidePanel/_side-panel.scss +24 -17
  334. package/scss/components/StatusIcon/_status-icon.scss +9 -7
  335. package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
  336. package/scss/components/Tearsheet/_tearsheet.scss +5 -5
  337. package/scss/components/UserAvatar/_user-avatar.scss +5 -3
  338. package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
  339. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
  340. package/scss/components/_index-released-only.scss +1 -0
  341. package/telemetry.yml +3 -0
@@ -20,7 +20,7 @@ var defaults = {
20
20
  };
21
21
  var CardHeader = function CardHeader(_ref) {
22
22
  var actions = _ref.actions,
23
- aiLabel = _ref.aiLabel,
23
+ decorator = _ref.decorator,
24
24
  noActionIcons = _ref.noActionIcons,
25
25
  onPrimaryButtonClick = _ref.onPrimaryButtonClick,
26
26
  onSecondaryButtonClick = _ref.onSecondaryButtonClick,
@@ -65,13 +65,13 @@ var CardHeader = function CardHeader(_ref) {
65
65
  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",
66
66
  fill: "#161616"
67
67
  })));
68
- var normalizedAiLabel = null;
69
- if (aiLabel || slug) {
70
- if (inClickableCard || typeof aiLabel === 'boolean' || typeof slug === 'boolean') {
71
- normalizedAiLabel = hollowAiIcon;
68
+ var normalizedDecorator = null;
69
+ if (decorator || slug) {
70
+ if (inClickableCard || typeof decorator === 'boolean' || typeof slug === 'boolean') {
71
+ normalizedDecorator = hollowAiIcon;
72
72
  } else {
73
- var element = aiLabel || slug;
74
- normalizedAiLabel = /*#__PURE__*/React__default.cloneElement(element, {
73
+ var element = decorator || slug;
74
+ normalizedDecorator = /*#__PURE__*/React__default.cloneElement(element, {
75
75
  size: label && title || title && titleSize === 'large' ? 'sm' : 'xs'
76
76
  });
77
77
  }
@@ -79,7 +79,7 @@ var CardHeader = function CardHeader(_ref) {
79
79
  return /*#__PURE__*/React__default.createElement("div", {
80
80
  className: headerClasses
81
81
  }, /*#__PURE__*/React__default.createElement("div", {
82
- className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-ai-label"), !!aiLabel), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
82
+ className: cx(["".concat(headerClass, "-container"), _defineProperty({}, "".concat(headerClass, "-container--has-slug"), !!slug), _defineProperty({}, "".concat(headerClass, "-container--has-decorator"), !!decorator), _defineProperty({}, "".concat(headerClass, "-container--has-actions"), !!hasActions), _defineProperty({}, "".concat(headerClass, "-container--large-tile-or-label"), title && (label || titleSize === 'large'))])
83
83
  }, /*#__PURE__*/React__default.createElement("div", {
84
84
  className: "".concat(blockClass, "__title-container")
85
85
  }, label && /*#__PURE__*/React__default.createElement("p", {
@@ -105,15 +105,17 @@ var CardHeader = function CardHeader(_ref) {
105
105
  onClick: onPrimaryButtonClick,
106
106
  className: actionGhostButtonClass,
107
107
  disabled: primaryButtonDisabled
108
- }, primaryButtonText)), normalizedAiLabel));
108
+ }, primaryButtonText)), slug ? normalizedDecorator : decorator ? /*#__PURE__*/React__default.createElement("div", {
109
+ className: "".concat(blockClass, "__header__inner-wrapper--decorator")
110
+ }, normalizedDecorator) : ''));
109
111
  };
110
112
  /**@ts-ignore */
111
113
  CardHeader.propTypes = {
112
114
  actions: PropTypes.oneOfType([PropTypes.array, PropTypes.node]),
113
115
  /**
114
- * 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.
116
+ * Optional prop that allows you to pass any component.
115
117
  */
116
- aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
118
+ decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
117
119
  description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
118
120
  hasActions: PropTypes.bool,
119
121
  /**
@@ -137,7 +139,7 @@ CardHeader.propTypes = {
137
139
  /**
138
140
  * **Experimental:** For all cases a `Slug` component can be provided.
139
141
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
140
- * @deprecated please use the `aiLabel` prop
142
+ * @deprecated please use the `decorator` prop
141
143
  */
142
144
  slug: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
143
145
  title: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { IconButton, Button } from '@carbon/react';
10
- import { Themes, Kinds } from './Checklist.types.js';
10
+ import { Kinds, Themes } from './Checklist.types.js';
11
11
  import React__default, { useState, useRef, useEffect } from 'react';
12
12
  import { ChecklistChart } from './ChecklistChart.js';
13
13
  import { ChecklistIcon } from './ChecklistIcon.js';
@@ -12,7 +12,7 @@ import cx from 'classnames';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
13
  import { pkg } from '../../settings.js';
14
14
  import { CircleDash, CheckmarkOutline, Incomplete, Warning } from '@carbon/react/icons';
15
- import { Themes, Kinds } from './Checklist.types.js';
15
+ import { Kinds, Themes } from './Checklist.types.js';
16
16
 
17
17
  var _excluded = ["className", "kind", "theme"];
18
18
 
@@ -65,6 +65,11 @@ export interface CoachmarkProps {
65
65
  * Determines the theme of the component.
66
66
  */
67
67
  theme?: 'light' | 'dark';
68
+ /**
69
+ * Determines if the coachmark is open by default.
70
+ * Does nothing if `overlayKind=stacked`.
71
+ */
72
+ isOpenByDefault?: boolean;
68
73
  }
69
74
  /**
70
75
  * Coachmarks are used to call out specific functionality or concepts
@@ -20,7 +20,7 @@ import { throttle } from 'lodash';
20
20
  import { Popover, PopoverContent } from '@carbon/react';
21
21
  import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
22
22
 
23
- var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme"];
23
+ var _excluded = ["align", "autoAlign", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "positionTune", "portalTarget", "target", "theme", "isOpenByDefault"];
24
24
 
25
25
  // The block part of our conventional BEM class names (blockClass__E--M).
26
26
  var blockClass = "".concat(pkg.prefix, "--coachmark");
@@ -30,7 +30,8 @@ var defaults = {
30
30
  align: 'bottom',
31
31
  onClose: function onClose() {},
32
32
  overlayKind: 'tooltip',
33
- theme: 'light'
33
+ theme: 'light',
34
+ isOpenByDefault: false
34
35
  };
35
36
  /**
36
37
  * Coachmarks are used to call out specific functionality or concepts
@@ -55,10 +56,12 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
55
56
  target = _ref.target,
56
57
  _ref$theme = _ref.theme,
57
58
  theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
59
+ _ref$isOpenByDefault = _ref.isOpenByDefault,
60
+ isOpenByDefault = _ref$isOpenByDefault === void 0 ? defaults.isOpenByDefault : _ref$isOpenByDefault,
58
61
  rest = _objectWithoutProperties(_ref, _excluded);
59
62
  var isBeacon = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
60
63
  var isStacked = overlayKind === COACHMARK_OVERLAY_KIND.STACKED;
61
- var _useState = useState(isStacked),
64
+ var _useState = useState(isStacked || isOpenByDefault),
62
65
  _useState2 = _slicedToArray(_useState, 2),
63
66
  isOpen = _useState2[0],
64
67
  setIsOpen = _useState2[1];
@@ -250,6 +253,11 @@ Coachmark.propTypes = {
250
253
  * Optional class name for this component.
251
254
  */
252
255
  className: PropTypes.string,
256
+ /**
257
+ * Determines if the coachmark is open by default.
258
+ * Does nothing if `overlayKind=stacked`.
259
+ */
260
+ isOpenByDefault: PropTypes.bool,
253
261
  /**
254
262
  * Function to call when the Coachmark closes.
255
263
  */
@@ -24,11 +24,16 @@ export interface CoachmarkOverlayElementsProps {
24
24
  * The object describing an image in one of two shapes.
25
25
  * If a single media element is required, use `{render}`.
26
26
  * If a stepped animation is required, use `{filePaths}`.
27
+ * * @deprecated please use the `renderMedia` prop
27
28
  */
28
29
  media?: {
29
30
  render?: () => ReactNode;
30
31
  filePaths?: string[];
31
32
  };
33
+ /**
34
+ * Optional prop to render any media like images or any animated media.
35
+ */
36
+ renderMedia?: (params: any) => ReactNode;
32
37
  /**
33
38
  * The label for the Next button.
34
39
  */
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { Button } from '@carbon/react';
10
- import React__default, { useRef, useState, Children, useEffect } from 'react';
10
+ import React__default, { useRef, useState, Children, useMemo, useEffect } from 'react';
11
11
  import { Carousel } from '../Carousel/Carousel.js';
12
12
  import '../Carousel/CarouselItem.js';
13
13
  import PropTypes from '../../_virtual/index.js';
@@ -20,7 +20,7 @@ import { pkg } from '../../settings.js';
20
20
  import '../Coachmark/Coachmark.js';
21
21
  import { useCoachmark } from '../Coachmark/utils/context.js';
22
22
 
23
- var _excluded = ["className", "children", "isVisible", "media", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
23
+ var _excluded = ["className", "children", "isVisible", "media", "renderMedia", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
24
24
 
25
25
  // The block part of our conventional BEM class names (blockClass__E--M).
26
26
  var blockClass = "".concat(pkg.prefix, "--coachmark-overlay-elements");
@@ -53,6 +53,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
53
53
  _ref$isVisible = _ref.isVisible,
54
54
  isVisible = _ref$isVisible === void 0 ? defaults.isVisible : _ref$isVisible,
55
55
  media = _ref.media,
56
+ renderMedia = _ref.renderMedia,
56
57
  _ref$nextButtonText = _ref.nextButtonText,
57
58
  nextButtonText = _ref$nextButtonText === void 0 ? defaults.nextButtonText : _ref$nextButtonText,
58
59
  _ref$previousButtonLa = _ref.previousButtonLabel,
@@ -71,6 +72,7 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
71
72
  currentProgStep = _useState4[0],
72
73
  _setCurrentProgStep = _useState4[1];
73
74
  var coachmark = useCoachmark();
75
+ var hasMedia = media || renderMedia;
74
76
  var setCurrentProgStep = function setCurrentProgStep(value) {
75
77
  if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
76
78
  setTimeout(function () {
@@ -83,6 +85,11 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
83
85
  var numProgSteps = Children.count(children);
84
86
  var progStepFloor = 0;
85
87
  var progStepCeil = numProgSteps - 1;
88
+ var renderMediaContent = useMemo(function () {
89
+ return renderMedia === null || renderMedia === void 0 ? void 0 : renderMedia({
90
+ playStep: currentProgStep
91
+ });
92
+ }, [currentProgStep, renderMedia]);
86
93
  useEffect(function () {
87
94
  // On mount, one of the two primary buttons ("next" or "close")
88
95
  // will be rendered and must have focus. (a11y)
@@ -111,11 +118,13 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
111
118
  // example: [`${blockClass}__here-if-small`]: size === 'sm',
112
119
  }),
113
120
  ref: ref
114
- }, getDevtoolsProps(componentName)), media && (media.render ? media.render() : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
121
+ }, getDevtoolsProps(componentName)), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
115
122
  className: "".concat(blockClass, "__element-stepped-media"),
116
123
  filePaths: media.filePaths,
117
124
  playStep: currentProgStep
118
- })), numProgSteps === 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React__default.createElement("div", {
125
+ }), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
126
+ className: "".concat(blockClass, "__element-stepped-media")
127
+ }, renderMediaContent), numProgSteps === 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React__default.createElement("div", {
119
128
  className: cx("".concat(blockClass, "__footer"), 'coachmark-carousel-controls')
120
129
  }, /*#__PURE__*/React__default.createElement(Button, _extends({
121
130
  size: "sm"
@@ -194,6 +203,7 @@ CoachmarkOverlayElements.propTypes = {
194
203
  * The object describing an image in one of two shapes.
195
204
  * If a single media element is required, use `{render}`.
196
205
  * If a stepped animation is required, use `{filePaths}`.
206
+ * @deprecated please use the `renderMedia` prop
197
207
  */
198
208
  /**@ts-ignore*/
199
209
  media: PropTypes.oneOfType([PropTypes.shape({
@@ -208,7 +218,11 @@ CoachmarkOverlayElements.propTypes = {
208
218
  /**
209
219
  * The label for the Previous button.
210
220
  */
211
- previousButtonLabel: PropTypes.string
221
+ previousButtonLabel: PropTypes.string,
222
+ /**
223
+ * Optional prop to render any media like images or animated media.
224
+ */
225
+ renderMedia: PropTypes.func
212
226
  };
213
227
 
214
228
  export { CoachmarkOverlayElements };
@@ -39,6 +39,10 @@ interface CoachmarkStackHomeProps {
39
39
  * @see {@link MEDIA_PROP_TYPE}.
40
40
  */
41
41
  media?: Media;
42
+ /**
43
+ * Optional prop to render any media like images or any animated media.
44
+ */
45
+ renderMedia?: (params: any) => ReactNode;
42
46
  /**
43
47
  * The labels used to link to the stackable Coachmarks.
44
48
  */
@@ -17,9 +17,10 @@ import { pkg } from '../../settings.js';
17
17
  import { createPortal } from 'react-dom';
18
18
  import { CoachmarkHeader } from '../Coachmark/CoachmarkHeader.js';
19
19
  import { SteppedAnimatedMedia } from '../SteppedAnimatedMedia/SteppedAnimatedMedia.js';
20
+ import { deprecateProp } from '../../global/js/utils/props-helper.js';
20
21
  import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
21
22
 
22
- var _excluded = ["className", "description", "isOpen", "media", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
23
+ var _excluded = ["className", "description", "isOpen", "media", "renderMedia", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
23
24
  // Carbon and package components we use.
24
25
  /* TODO: @import(s) of carbon components and other package components. */
25
26
 
@@ -37,6 +38,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
37
38
  description = _ref.description,
38
39
  isOpen = _ref.isOpen,
39
40
  media = _ref.media,
41
+ renderMedia = _ref.renderMedia,
40
42
  navLinkLabels = _ref.navLinkLabels,
41
43
  onClickNavItem = _ref.onClickNavItem,
42
44
  _onClose = _ref.onClose,
@@ -49,6 +51,7 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
49
51
  _useState2 = _slicedToArray(_useState, 2),
50
52
  linkFocusIndex = _useState2[0],
51
53
  setLinkFocusIndex = _useState2[1];
54
+ var hasMedia = media || renderMedia;
52
55
  useEffect(function () {
53
56
  setTimeout(function () {
54
57
  if (isOpen && buttonFocusRef.current) {
@@ -90,13 +93,17 @@ var CoachmarkStackHome = /*#__PURE__*/forwardRef(function (_ref, ref) {
90
93
  className: "".concat(overlayClass, "__body")
91
94
  }, /*#__PURE__*/React__default.createElement("div", {
92
95
  className: "".concat(overlayClass, "-element")
93
- }, !media && /*#__PURE__*/React__default.createElement(Idea, {
96
+ }, !hasMedia && /*#__PURE__*/React__default.createElement(Idea, {
94
97
  size: 20,
95
98
  className: "".concat(blockClass, "__icon-idea")
96
- }), media && (media.render ? media.render() : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
97
- className: "".concat(overlayClass, "__element-stepped-media"),
99
+ }), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && media.render(), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
100
+ className: "".concat(blockClass, "__element-stepped-media"),
98
101
  filePaths: media.filePaths,
99
102
  playStep: 0
103
+ }), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
104
+ className: "".concat(blockClass, "__element-stepped-media")
105
+ }, renderMedia({
106
+ playStep: 0
100
107
  })), /*#__PURE__*/React__default.createElement("div", {
101
108
  className: "".concat(overlayClass, "-element__content")
102
109
  }, title && /*#__PURE__*/React__default.createElement("h2", {
@@ -156,12 +163,13 @@ CoachmarkStackHome.propTypes = {
156
163
  * If a stepped animation is required, use `{filePaths}`.
157
164
  *
158
165
  * @see {@link MEDIA_PROP_TYPE}.
166
+ * @deprecated please use the `renderMedia` prop
159
167
  */
160
- media: PropTypes.oneOfType([PropTypes.shape({
168
+ media: deprecateProp(PropTypes.oneOfType([PropTypes.shape({
161
169
  render: PropTypes.func
162
170
  }), PropTypes.shape({
163
171
  filePaths: PropTypes.arrayOf(PropTypes.string)
164
- })]),
172
+ })]), ''),
165
173
  /**
166
174
  * The labels used to link to the stackable Coachmarks.
167
175
  */
@@ -185,6 +193,10 @@ CoachmarkStackHome.propTypes = {
185
193
  * element is hidden or component is unmounted, the CoachmarkStackHome will disappear.
186
194
  */
187
195
  portalTarget: PropTypes.string,
196
+ /**
197
+ * Optional prop to render any media like images or animated media.
198
+ */
199
+ renderMedia: PropTypes.func,
188
200
  /**
189
201
  * The title of the Coachmark.
190
202
  */
@@ -50,6 +50,5 @@ var GroupConnector = function GroupConnector() {
50
50
  }
51
51
  })));
52
52
  };
53
- var GroupConnector$1 = GroupConnector;
54
53
 
55
- export { GroupConnector$1 as default };
54
+ export { GroupConnector as default };
@@ -63,9 +63,6 @@ var ItemOption = function ItemOption(_ref) {
63
63
  className: "".concat(blockClass, "__statement_wrapper")
64
64
  }, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
65
65
  };
66
- var preventDefault = function preventDefault(evt) {
67
- return evt.preventDefault();
68
- };
69
66
  if (!allOptions) {
70
67
  return;
71
68
  }
@@ -78,8 +75,7 @@ var ItemOption = function ItemOption(_ref) {
78
75
  size: "sm",
79
76
  labelText: clearSearchText,
80
77
  closeButtonLabelText: clearSearchText,
81
- onChange: onSearchChangeHandler,
82
- onKeyDown: preventDefault
78
+ onChange: onSearchChangeHandler
83
79
  })), /*#__PURE__*/React__default.createElement("ul", {
84
80
  "aria-label": getAriaLabel(),
85
81
  role: "listbox"
@@ -129,13 +129,14 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
129
129
  } else {
130
130
  onChange(option, evt);
131
131
  }
132
+ if (evt.target instanceof SVGElement) {
133
+ evt.stopPropagation();
134
+ //stop propagate event , since this closes the popover when clicked on checkboxes which are SVGs.
135
+ }
132
136
  };
133
137
  var getAriaLabel = function getAriaLabel() {
134
138
  return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
135
139
  };
136
- var preventDefault = function preventDefault(evt) {
137
- return evt.preventDefault();
138
- };
139
140
  if (!allOptions) {
140
141
  return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
141
142
  }
@@ -148,8 +149,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
148
149
  size: "sm",
149
150
  labelText: clearSearchText,
150
151
  closeButtonLabelText: clearSearchText,
151
- onChange: onSearchChangeHandler,
152
- onKeyDown: preventDefault
152
+ onChange: onSearchChangeHandler
153
153
  })), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
154
154
  className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
155
155
  }, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(Button, {
@@ -48,10 +48,6 @@ var traverseReverse = function traverseReverse(eachElem, index, allElements, rot
48
48
  }
49
49
  };
50
50
  var checkForHoldingKey = function checkForHoldingKey(evt, key) {
51
- // possible key inputs: altKey,ctrlKey,metaKey,shiftKey
52
- if (key === 'cmd') {
53
- return evt.metaKey || evt.ctrlKey;
54
- }
55
51
  return evt[key];
56
52
  };
57
53
  var checkIsValid = function checkIsValid(item) {
@@ -8,7 +8,7 @@ import React, { Dispatch, PropsWithChildren, ReactNode, SetStateAction } from 'r
8
8
  import { ExperimentalSecondarySubmit } from './CreateTearsheetStep';
9
9
  export interface StepsContextType {
10
10
  currentStep: number;
11
- setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit>>;
11
+ setExperimentalSecondarySubmit: Dispatch<SetStateAction<ExperimentalSecondarySubmit | undefined>>;
12
12
  setIsDisabled: Dispatch<SetStateAction<boolean>>;
13
13
  setOnPrevious: (fn: any) => void;
14
14
  setOnNext: (fn: any) => void;
@@ -105,7 +105,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
105
105
  _useState24 = _slicedToArray(_useState23, 2),
106
106
  lastIncludedStep = _useState24[0],
107
107
  setLastIncludedStep = _useState24[1];
108
- var _useState25 = useState({}),
108
+ var _useState25 = useState(),
109
109
  _useState26 = _slicedToArray(_useState25, 2),
110
110
  experimentalSecondarySubmit = _useState26[0],
111
111
  setExperimentalSecondarySubmit = _useState26[1];
@@ -176,7 +176,7 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
176
176
  isSubmitting: isSubmitting,
177
177
  componentBlockClass: blockClass,
178
178
  experimentalSecondarySubmit: experimentalSecondarySubmit,
179
- experimentalSecondarySubmitText: experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
179
+ experimentalSecondarySubmitText: experimentalSecondarySubmit !== null && experimentalSecondarySubmit !== void 0 && experimentalSecondarySubmit.labelText ? experimentalSecondarySubmit.labelText : experimentalSecondarySubmitText,
180
180
  setCreateComponentActions: setCreateTearsheetActions
181
181
  });
182
182
  return /*#__PURE__*/React__default.createElement(TearsheetShell, _extends({}, getDevtoolsProps(componentName), rest, {
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useRef, useContext, useState, useEffect, isValidElement } from 'react';
10
10
  import PropTypes from '../../_virtual/index.js';
11
11
  import cx from 'classnames';
@@ -82,7 +82,7 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
82
82
  useEffect(function () {
83
83
  if (stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep) && (previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)) {
84
84
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnMount(onMount);
85
- stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(_objectSpread2({}, experimentalSecondarySubmit));
85
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
86
86
  }
87
87
  }, [onMount, experimentalSecondarySubmit, stepsContext, stepNumber, previousState === null || previousState === void 0 ? void 0 : previousState.currentStep]);
88
88
 
@@ -118,8 +118,11 @@ var CreateTearsheetStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
118
118
  stepsContext.setIsDisabled(!!disableSubmit);
119
119
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnNext(onNext); // needs to be updated here otherwise there could be stale state values from only initially setting onNext
120
120
  stepsContext === null || stepsContext === void 0 || stepsContext.setOnPrevious(onPrevious);
121
+
122
+ //Handle props for experimentalSecondarySubmit button, depending on state change
123
+ stepsContext === null || stepsContext === void 0 || stepsContext.setExperimentalSecondarySubmit(experimentalSecondarySubmit);
121
124
  }
122
- }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue]);
125
+ }, [stepsContext, stepNumber, disableSubmit, onNext, onPrevious, stepRef, stepRefValue, experimentalSecondarySubmit]);
123
126
  var renderDescription = function renderDescription() {
124
127
  if (description) {
125
128
  if (typeof description === 'string') {
@@ -19,5 +19,6 @@ export interface DatagridProps {
19
19
  }
20
20
  /**
21
21
  * The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
22
+ * @deprecated
22
23
  */
23
24
  export declare let Datagrid: React.ForwardRefExoticComponent<DatagridProps & React.RefAttributes<HTMLDivElement>>;
@@ -21,6 +21,7 @@ var blockClass = "".concat(pkg.prefix, "--datagrid");
21
21
  var componentName = 'Datagrid';
22
22
  /**
23
23
  * The `Datagrid` component is an extension of Carbon's DataTable component. At the most basic level, the `Datagrid` component takes in columns and rows and renders a data table. There is a set of data table extensions which this component provides support for, these can be found [here](https://pages.github.ibm.com/carbon/ibm-products/components/datagrid/overview/). This component is data driven and allows you to choose what pieces will be included based on the hooks/plugins that are provided.
24
+ * @deprecated
24
25
  */
25
26
  var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
26
27
  var datagridState = _ref.datagridState,
@@ -55,6 +56,12 @@ var Datagrid = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
55
56
  }, /*#__PURE__*/React__default.createElement(DatagridContent, props)) : /*#__PURE__*/React__default.createElement(DatagridContent, props))));
56
57
  });
57
58
 
59
+ /**@ts-ignore*/
60
+ Datagrid.deprecated = {
61
+ level: 'warn',
62
+ details: "For more information, please refer to the migration docs https://github.com/carbon-design-system/tanstack-carbon"
63
+ };
64
+
58
65
  // Return a placeholder if not released and not enabled by feature flag
59
66
  Datagrid = pkg.checkComponentEnabled(Datagrid, componentName);
60
67
 
@@ -57,12 +57,12 @@ var ResizeHeader = function ResizeHeader(_ref) {
57
57
  if (key === 'ArrowLeft') {
58
58
  if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
59
59
  var newWidth = currentColumnWidth - incrementAmount;
60
- handleColumnResizingEvent(dispatch, header, newWidth, true);
60
+ handleColumnResizingEvent(dispatch, header, newWidth);
61
61
  }
62
62
  }
63
63
  if (key === 'ArrowRight') {
64
64
  var _newWidth = currentColumnWidth + incrementAmount;
65
- handleColumnResizingEvent(dispatch, header, _newWidth, true);
65
+ handleColumnResizingEvent(dispatch, header, _newWidth);
66
66
  }
67
67
  }
68
68
  };
@@ -37,6 +37,5 @@ Actions.propTypes = {
37
37
  setColumnsObject: PropTypes.func.isRequired,
38
38
  setSearchText: PropTypes.func.isRequired
39
39
  };
40
- var Actions$1 = Actions;
41
40
 
42
- export { Actions$1 as default };
41
+ export { Actions as default };
@@ -49,6 +49,5 @@ ButtonWrapper.propTypes = {
49
49
  onClick: PropTypes.func.isRequired,
50
50
  setIsTearsheetOpen: PropTypes.func.isRequired
51
51
  };
52
- var ToggleButtonWrapper = ButtonWrapper;
53
52
 
54
- export { ToggleButtonWrapper as default };
53
+ export { ButtonWrapper as default };
@@ -93,6 +93,5 @@ Columns.propTypes = {
93
93
  setColumnStatus: PropTypes.func,
94
94
  setColumnsObject: PropTypes.func.isRequired
95
95
  };
96
- var Columns$1 = Columns;
97
96
 
98
- export { Columns$1 as default };
97
+ export { Columns as default };
@@ -187,6 +187,5 @@ CustomizeColumnsTearsheet.propTypes = {
187
187
  selectAllLabel: PropTypes.string,
188
188
  setIsTearsheetOpen: PropTypes.func.isRequired
189
189
  };
190
- var CustomizeColumnsTearsheet$1 = CustomizeColumnsTearsheet;
191
190
 
192
- export { CustomizeColumnsTearsheet$1 as default };
191
+ export { CustomizeColumnsTearsheet as default };
@@ -61,6 +61,5 @@ var TearsheetWrapper = function TearsheetWrapper(_ref) {
61
61
  TearsheetWrapper.propTypes = {
62
62
  instance: PropTypes.object.isRequired
63
63
  };
64
- var CustomizeColumnsTearsheetWrapper = TearsheetWrapper;
65
64
 
66
- export { CustomizeColumnsTearsheetWrapper as default };
65
+ export { TearsheetWrapper as default };
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS, SAVED_FILTERS } from './constants.js';
9
+ import { BATCH, INSTANT, CLEAR_FILTERS, FLYOUT, SAVED_FILTERS } from './constants.js';
10
10
  import { usePrefix, IconButton } from '@carbon/react';
11
11
  import React__default, { useState, useRef, useContext, useEffect } from 'react';
12
12
  import { breakpoints, px } from '@carbon/layout';
@@ -327,6 +327,5 @@ FilterFlyout.propTypes = {
327
327
  */
328
328
  updateMethod: PropTypes.oneOf([BATCH, INSTANT]).isRequired
329
329
  };
330
- var FilterFlyout$1 = FilterFlyout;
331
330
 
332
- export { FilterFlyout$1 as default };
331
+ export { FilterFlyout as default };
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
10
- import { PANEL, BATCH, CLEAR_FILTERS, INSTANT, SAVED_FILTERS } from './constants.js';
10
+ import { BATCH, CLEAR_FILTERS, INSTANT, PANEL, SAVED_FILTERS } from './constants.js';
11
11
  import React__default, { useState, useContext, useRef, useMemo, useEffect, useCallback } from 'react';
12
12
  import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
13
13
  import { motion, useReducedMotion } from 'framer-motion';
@@ -312,6 +312,5 @@ FilterPanel.propTypes = {
312
312
  title: PropTypes.string,
313
313
  updateMethod: PropTypes.oneOf([BATCH, INSTANT])
314
314
  };
315
- var FilterPanel$1 = FilterPanel;
316
315
 
317
- export { componentClass, FilterPanel$1 as default };
316
+ export { componentClass, FilterPanel as default };
@@ -74,6 +74,5 @@ OverflowCheckboxes.propTypes = {
74
74
  viewAllLabel: PropTypes.string,
75
75
  viewLessLabel: PropTypes.string
76
76
  };
77
- var OverflowCheckboxes$1 = OverflowCheckboxes;
78
77
 
79
- export { OverflowCheckboxes$1 as default };
78
+ export { OverflowCheckboxes as default };
@@ -18,6 +18,5 @@ var useFilterContext = function useFilterContext() {
18
18
  }
19
19
  return context;
20
20
  };
21
- var useFilterContext$1 = useFilterContext;
22
21
 
23
- export { useFilterContext$1 as default };
22
+ export { useFilterContext as default };
@@ -473,6 +473,5 @@ var useFilters = function useFilters(_ref) {
473
473
  cancel: cancel
474
474
  };
475
475
  };
476
- var useFilters$1 = useFilters;
477
476
 
478
- export { useFilters$1 as default };
477
+ export { useFilters as default };
@@ -29,6 +29,5 @@ var useShouldDisableButtons = function useShouldDisableButtons(_ref) {
29
29
  }, [filtersState, prevFiltersRef]);
30
30
  return [shouldDisableButtons, setShouldDisableButtons];
31
31
  };
32
- var useShouldDisableButtons$1 = useShouldDisableButtons;
33
32
 
34
- export { useShouldDisableButtons$1 as default };
33
+ export { useShouldDisableButtons as default };