@carbon/ibm-products 2.52.0 → 2.53.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +3 -3
  2. package/css/index-full-carbon.css +306 -298
  3. package/css/index-full-carbon.css.map +1 -1
  4. package/css/index-full-carbon.min.css +1 -1
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +94 -27
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +1 -1
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +110 -44
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css +1 -1
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +179 -118
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css +1 -1
  17. package/css/index.min.css.map +1 -1
  18. package/es/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
  19. package/es/components/APIKeyModal/APIKeyModal.js +1 -1
  20. package/es/components/AboutModal/AboutModal.js +2 -4
  21. package/es/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
  22. package/es/components/AddSelect/AddSelectBody.js +8 -1
  23. package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
  24. package/es/components/AddSelect/AddSelectColumn.d.ts +2 -1
  25. package/es/components/AddSelect/AddSelectFilter.d.ts +2 -1
  26. package/es/components/AddSelect/AddSelectFilter.js +5 -5
  27. package/es/components/AddSelect/AddSelectFormControl.d.ts +2 -1
  28. package/es/components/AddSelect/AddSelectList.d.ts +2 -1
  29. package/es/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
  30. package/es/components/AddSelect/AddSelectRow.d.ts +2 -1
  31. package/es/components/AddSelect/AddSelectSidebar.d.ts +2 -1
  32. package/es/components/AddSelect/AddSelectSidebar.js +1 -1
  33. package/es/components/AddSelect/AddSelectSort.d.ts +2 -1
  34. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
  35. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
  36. package/es/components/Card/Card.d.ts +5 -1
  37. package/es/components/Card/Card.js +9 -2
  38. package/es/components/Card/CardFooter.d.ts +1 -1
  39. package/es/components/Card/CardHeader.d.ts +12 -2
  40. package/es/components/Card/CardHeader.js +17 -9
  41. package/es/components/Carousel/Carousel.js +17 -8
  42. package/es/components/Checklist/ChecklistChart.js +22 -6
  43. package/es/components/Coachmark/Coachmark.js +18 -11
  44. package/es/components/Coachmark/CoachmarkOverlay.js +30 -19
  45. package/es/components/Coachmark/utils/hooks.js +1 -1
  46. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
  47. package/es/components/CoachmarkStack/CoachmarkStack.js +1 -1
  48. package/es/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
  49. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
  50. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
  51. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
  52. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
  53. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
  54. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
  55. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
  56. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
  57. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
  58. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
  59. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
  60. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
  61. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
  62. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
  63. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
  64. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
  65. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
  66. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
  67. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
  68. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
  69. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
  70. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
  71. package/es/components/ConditionBuilder/utils/util.js +0 -2
  72. package/es/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
  73. package/es/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
  74. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
  75. package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
  76. package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
  77. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
  78. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
  79. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
  80. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
  81. package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
  82. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
  83. package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
  84. package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
  85. package/es/components/Datagrid/Datagrid/DatagridRow.js +14 -10
  86. package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
  87. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
  88. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
  89. package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
  90. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
  91. package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
  92. package/es/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
  93. package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +29 -0
  94. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
  95. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
  96. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
  97. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
  98. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  99. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
  100. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
  101. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
  102. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
  103. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
  104. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
  105. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
  106. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  107. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
  108. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
  109. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
  110. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
  111. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
  112. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
  113. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  114. package/es/components/Datagrid/index.d.ts +29 -22
  115. package/es/components/Datagrid/types/index.d.ts +7 -7
  116. package/es/components/Datagrid/useActionsColumn.js +1 -2
  117. package/es/components/Datagrid/useColumnCenterAlign.js +1 -2
  118. package/es/components/Datagrid/useColumnRightAlign.js +1 -2
  119. package/es/components/Datagrid/useCustomizeColumns.js +1 -2
  120. package/es/components/Datagrid/useDatagrid.js +1 -2
  121. package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
  122. package/es/components/Datagrid/useDisableSelectRows.js +1 -2
  123. package/es/components/Datagrid/useExpandedRow.js +1 -2
  124. package/es/components/Datagrid/useFiltering.js +1 -2
  125. package/es/components/Datagrid/useFlexResize.js +1 -1
  126. package/es/components/Datagrid/useInfiniteScroll.js +1 -2
  127. package/es/components/Datagrid/useInlineEdit.js +1 -2
  128. package/es/components/Datagrid/useNestedRowExpander.js +2 -2
  129. package/es/components/Datagrid/useNestedRows.js +1 -2
  130. package/es/components/Datagrid/useOnRowClick.js +1 -2
  131. package/es/components/Datagrid/useParentDimensions.js +5 -5
  132. package/es/components/Datagrid/useRowExpander.js +6 -7
  133. package/es/components/Datagrid/useRowIsMouseOver.js +1 -2
  134. package/es/components/Datagrid/useSelectAllToggle.js +1 -2
  135. package/es/components/Datagrid/useSelectRows.js +1 -2
  136. package/es/components/Datagrid/useSortableColumns.js +7 -8
  137. package/es/components/Datagrid/useStickyColumn.js +4 -5
  138. package/es/components/EmptyStates/EmptyState.d.ts +1 -1
  139. package/es/components/EmptyStates/EmptyState.js +8 -2
  140. package/es/components/EmptyStates/EmptyStateContent.d.ts +2 -1
  141. package/es/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
  142. package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -2
  143. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
  144. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  145. package/es/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
  146. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
  147. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  148. package/es/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
  149. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
  150. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  151. package/es/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
  152. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
  153. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  154. package/es/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
  155. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
  156. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  157. package/es/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
  158. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
  159. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  160. package/es/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
  161. package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
  162. package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
  163. package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  164. package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
  165. package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
  166. package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
  167. package/es/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
  168. package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
  169. package/es/components/EmptyStates/index.d.ts +22 -8
  170. package/es/components/ExportModal/ExportModal.js +1 -3
  171. package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
  172. package/es/components/ExpressiveCard/ExpressiveCard.js +5 -0
  173. package/es/components/FeatureFlags/index.d.ts +5 -4
  174. package/es/components/FeatureFlags/index.js +17 -10
  175. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  176. package/es/components/FullPageError/assets/Error403SVG.d.ts +2 -1
  177. package/es/components/FullPageError/assets/Error404SVG.d.ts +2 -1
  178. package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
  179. package/es/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
  180. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
  181. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
  182. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
  183. package/es/components/InterstitialScreen/InterstitialScreen.js +4 -4
  184. package/es/components/Nav/NavItem.d.ts +2 -1
  185. package/es/components/NotificationsPanel/NotificationsPanel.js +8 -1
  186. package/es/components/PageHeader/PageHeader.d.ts +2 -0
  187. package/es/components/PageHeader/PageHeader.js +4 -1
  188. package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -1
  189. package/es/components/PageHeader/PageHeaderTitle.js +42 -8
  190. package/es/components/ProductiveCard/ProductiveCard.d.ts +5 -0
  191. package/es/components/ProductiveCard/ProductiveCard.js +4 -0
  192. package/es/components/ScrollGradient/ScrollGradient.js +2 -2
  193. package/es/components/SidePanel/SidePanel.d.ts +5 -0
  194. package/es/components/SidePanel/SidePanel.js +30 -16
  195. package/es/components/SimpleHeader/SimpleHeader.d.ts +2 -1
  196. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  197. package/es/components/TagOverflow/TagOverflow.d.ts +3 -0
  198. package/es/components/TagOverflow/TagOverflow.js +9 -4
  199. package/es/components/TagOverflow/TagOverflowModal.d.ts +6 -1
  200. package/es/components/TagOverflow/TagOverflowModal.js +17 -6
  201. package/es/components/TagOverflow/TagOverflowPopover.js +17 -9
  202. package/es/components/TagSet/TagSet.d.ts +4 -0
  203. package/es/components/TagSet/TagSet.js +20 -8
  204. package/es/components/TagSet/TagSetModal.js +0 -1
  205. package/es/components/Tearsheet/TearsheetShell.d.ts +13 -4
  206. package/es/components/Tearsheet/TearsheetShell.js +31 -20
  207. package/es/components/Toolbar/Toolbar.js +1 -1
  208. package/es/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
  209. package/es/components/TruncatedList/TruncatedList.js +1 -1
  210. package/es/components/_Canary/Canary.d.ts +2 -1
  211. package/es/global/js/hooks/usePreviousValue.js +1 -1
  212. package/es/index.js +29 -29
  213. package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
  214. package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +2 -1
  215. package/lib/components/APIKeyModal/APIKeyModal.js +1 -1
  216. package/lib/components/AboutModal/AboutModal.js +2 -4
  217. package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +2 -2
  218. package/lib/components/AddSelect/AddSelectBody.js +8 -1
  219. package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +2 -1
  220. package/lib/components/AddSelect/AddSelectColumn.d.ts +2 -1
  221. package/lib/components/AddSelect/AddSelectFilter.d.ts +2 -1
  222. package/lib/components/AddSelect/AddSelectFilter.js +4 -4
  223. package/lib/components/AddSelect/AddSelectFormControl.d.ts +2 -1
  224. package/lib/components/AddSelect/AddSelectList.d.ts +2 -1
  225. package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +2 -1
  226. package/lib/components/AddSelect/AddSelectRow.d.ts +2 -1
  227. package/lib/components/AddSelect/AddSelectSidebar.d.ts +2 -1
  228. package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
  229. package/lib/components/AddSelect/AddSelectSort.d.ts +2 -1
  230. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +2 -1
  231. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +2 -1
  232. package/lib/components/Card/Card.d.ts +5 -1
  233. package/lib/components/Card/Card.js +9 -2
  234. package/lib/components/Card/CardFooter.d.ts +1 -1
  235. package/lib/components/Card/CardHeader.d.ts +12 -2
  236. package/lib/components/Card/CardHeader.js +17 -9
  237. package/lib/components/Carousel/Carousel.js +17 -8
  238. package/lib/components/Checklist/ChecklistChart.js +20 -4
  239. package/lib/components/Coachmark/Coachmark.js +17 -10
  240. package/lib/components/Coachmark/CoachmarkOverlay.js +29 -18
  241. package/lib/components/Coachmark/utils/hooks.js +1 -1
  242. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +2 -2
  243. package/lib/components/CoachmarkStack/CoachmarkStack.js +1 -1
  244. package/lib/components/ComboButton/ComboButtonItem/index.d.ts +2 -1
  245. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +1 -1
  246. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +3 -6
  247. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -1
  248. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +2 -1
  249. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +1 -1
  250. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +2 -1
  251. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +2 -8
  252. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.d.ts +2 -1
  253. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +2 -1
  254. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +0 -1
  255. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +1 -1
  256. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +2 -1
  257. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +2 -1
  258. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +2 -1
  259. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +5 -1
  260. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +2 -1
  261. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -1
  262. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +2 -1
  263. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -1
  264. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +2 -1
  265. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +2 -1
  266. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +65 -61
  267. package/lib/components/ConditionBuilder/utils/util.js +0 -2
  268. package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +2 -2
  269. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +4 -4
  270. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +2 -2
  271. package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
  272. package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +2 -1
  273. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +2 -1
  274. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +5 -1
  275. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +2 -2
  276. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -4
  277. package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +2 -1
  278. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +13 -10
  279. package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
  280. package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +2 -1
  281. package/lib/components/Datagrid/Datagrid/DatagridRow.js +14 -10
  282. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +2 -1
  283. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +2 -1
  284. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
  285. package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +2 -1
  286. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +2 -1
  287. package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +2 -2
  288. package/lib/components/Datagrid/Datagrid/addons/{Slug/DatagridSlug.d.ts → AiLabel/DatagridAiLabel.d.ts} +3 -3
  289. package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +31 -0
  290. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +2 -1
  291. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +2 -1
  292. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +2 -1
  293. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +2 -1
  294. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  295. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.d.ts +2 -1
  296. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +2 -1
  297. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +2 -1
  298. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +2 -1
  299. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +5 -5
  300. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +1 -1
  301. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +2 -1
  302. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +1 -1
  303. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +2 -2
  304. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +2 -1
  305. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +2 -1
  306. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +5 -5
  307. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -1
  308. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +2 -1
  309. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  310. package/lib/components/Datagrid/index.d.ts +29 -22
  311. package/lib/components/Datagrid/types/index.d.ts +7 -7
  312. package/lib/components/Datagrid/useActionsColumn.js +1 -2
  313. package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
  314. package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
  315. package/lib/components/Datagrid/useCustomizeColumns.js +1 -2
  316. package/lib/components/Datagrid/useDatagrid.js +1 -2
  317. package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
  318. package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
  319. package/lib/components/Datagrid/useExpandedRow.js +1 -2
  320. package/lib/components/Datagrid/useFiltering.js +1 -2
  321. package/lib/components/Datagrid/useFlexResize.js +1 -1
  322. package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
  323. package/lib/components/Datagrid/useInlineEdit.js +1 -2
  324. package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
  325. package/lib/components/Datagrid/useNestedRows.js +1 -2
  326. package/lib/components/Datagrid/useOnRowClick.js +1 -2
  327. package/lib/components/Datagrid/useParentDimensions.js +5 -5
  328. package/lib/components/Datagrid/useRowExpander.js +6 -7
  329. package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
  330. package/lib/components/Datagrid/useSelectAllToggle.js +1 -2
  331. package/lib/components/Datagrid/useSelectRows.js +1 -2
  332. package/lib/components/Datagrid/useSortableColumns.js +7 -8
  333. package/lib/components/Datagrid/useStickyColumn.js +4 -5
  334. package/lib/components/EmptyStates/EmptyState.d.ts +1 -1
  335. package/lib/components/EmptyStates/EmptyState.js +7 -1
  336. package/lib/components/EmptyStates/EmptyStateContent.d.ts +2 -1
  337. package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +2 -1
  338. package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -2
  339. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +1 -2
  340. package/lib/components/EmptyStates/ErrorEmptyState/index.d.ts +8 -1
  341. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +1 -2
  342. package/lib/components/EmptyStates/NoDataEmptyState/index.d.ts +8 -1
  343. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +1 -2
  344. package/lib/components/EmptyStates/NoTagsEmptyState/index.d.ts +8 -1
  345. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +1 -2
  346. package/lib/components/EmptyStates/NotFoundEmptyState/index.d.ts +8 -1
  347. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +1 -2
  348. package/lib/components/EmptyStates/NotificationsEmptyState/index.d.ts +8 -1
  349. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +1 -2
  350. package/lib/components/EmptyStates/UnauthorizedEmptyState/index.d.ts +8 -1
  351. package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +2 -1
  352. package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +2 -1
  353. package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  354. package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +2 -1
  355. package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +2 -1
  356. package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +2 -1
  357. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +8 -8
  358. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +2 -1
  359. package/lib/components/EmptyStates/index.d.ts +22 -8
  360. package/lib/components/ExportModal/ExportModal.js +1 -3
  361. package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -0
  362. package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -0
  363. package/lib/components/FeatureFlags/index.d.ts +5 -4
  364. package/lib/components/FeatureFlags/index.js +16 -9
  365. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  366. package/lib/components/FullPageError/assets/Error403SVG.d.ts +2 -1
  367. package/lib/components/FullPageError/assets/Error404SVG.d.ts +2 -1
  368. package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +2 -1
  369. package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +2 -1
  370. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +2 -1
  371. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +2 -1
  372. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +2 -1
  373. package/lib/components/InterstitialScreen/InterstitialScreen.js +4 -4
  374. package/lib/components/Nav/NavItem.d.ts +2 -1
  375. package/lib/components/NotificationsPanel/NotificationsPanel.js +8 -1
  376. package/lib/components/PageHeader/PageHeader.d.ts +2 -0
  377. package/lib/components/PageHeader/PageHeader.js +4 -1
  378. package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -1
  379. package/lib/components/PageHeader/PageHeaderTitle.js +39 -5
  380. package/lib/components/ProductiveCard/ProductiveCard.d.ts +5 -0
  381. package/lib/components/ProductiveCard/ProductiveCard.js +4 -0
  382. package/lib/components/ScrollGradient/ScrollGradient.js +2 -2
  383. package/lib/components/SidePanel/SidePanel.d.ts +5 -0
  384. package/lib/components/SidePanel/SidePanel.js +30 -16
  385. package/lib/components/SimpleHeader/SimpleHeader.d.ts +2 -1
  386. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +1 -1
  387. package/lib/components/TagOverflow/TagOverflow.d.ts +3 -0
  388. package/lib/components/TagOverflow/TagOverflow.js +8 -3
  389. package/lib/components/TagOverflow/TagOverflowModal.d.ts +6 -1
  390. package/lib/components/TagOverflow/TagOverflowModal.js +16 -5
  391. package/lib/components/TagOverflow/TagOverflowPopover.js +16 -8
  392. package/lib/components/TagSet/TagSet.d.ts +4 -0
  393. package/lib/components/TagSet/TagSet.js +19 -7
  394. package/lib/components/TagSet/TagSetModal.js +0 -1
  395. package/lib/components/Tearsheet/TearsheetShell.d.ts +13 -4
  396. package/lib/components/Tearsheet/TearsheetShell.js +31 -20
  397. package/lib/components/Toolbar/Toolbar.js +1 -1
  398. package/lib/components/TooltipTrigger/TooltipTrigger.d.ts +2 -1
  399. package/lib/components/TruncatedList/TruncatedList.js +1 -1
  400. package/lib/components/_Canary/Canary.d.ts +2 -1
  401. package/lib/global/js/hooks/usePreviousValue.js +1 -1
  402. package/lib/index.js +88 -88
  403. package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +742 -740
  404. package/package.json +11 -11
  405. package/scss/components/Card/_card.scss +14 -6
  406. package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +4 -0
  407. package/scss/components/Datagrid/styles/_datagrid.scss +82 -2
  408. package/scss/components/PageHeader/_page-header.scss +16 -3
  409. package/scss/components/SidePanel/_side-panel.scss +12 -6
  410. package/scss/components/Tearsheet/_tearsheet.scss +13 -3
  411. package/telemetry.yml +1 -0
  412. package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -29
  413. package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +0 -31
@@ -12,6 +12,8 @@ var React = require('react');
12
12
  var index = require('../../_virtual/index.js');
13
13
  var FeatureFlags$1 = require('@carbon/feature-flags');
14
14
 
15
+ var _excluded = ["children", "flags"];
16
+
15
17
  /**
16
18
  * Our FeatureFlagContext is used alongside the FeatureFlags component to enable
17
19
  * or disable feature flags in a given React tree
@@ -19,21 +21,27 @@ var FeatureFlags$1 = require('@carbon/feature-flags');
19
21
  var FeatureFlagContext = /*#__PURE__*/React.createContext(FeatureFlags$1.FeatureFlags);
20
22
 
21
23
  /**
22
- * Supports an object of feature flag values with the `flags` prop, merging them
24
+ * Supports individual feature flag values as props, merging them
23
25
  * along with the current `FeatureFlagContext` to provide consumers to check if
24
26
  * a feature flag is enabled or disabled in a given React tree
25
27
  */
26
28
  function FeatureFlags(_ref) {
27
29
  var children = _ref.children,
28
30
  _ref$flags = _ref.flags,
29
- flags = _ref$flags === void 0 ? {} : _ref$flags;
31
+ flags = _ref$flags === void 0 ? {} : _ref$flags,
32
+ newFlags = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
30
33
  var parentScope = React.useContext(FeatureFlagContext);
34
+ var newFlagsObject = Object.keys(newFlags).reduce(function (acc, key) {
35
+ acc[key] = newFlags[key];
36
+ return acc;
37
+ }, {});
38
+ var combinedFlags = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, newFlagsObject), flags);
31
39
  var _useState = React.useState(parentScope),
32
40
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
33
41
  prevParentScope = _useState2[0],
34
42
  setPrevParentScope = _useState2[1];
35
43
  var _useState3 = React.useState(function () {
36
- var scope = FeatureFlags$1.createScope(flags);
44
+ var scope = FeatureFlags$1.createScope(combinedFlags);
37
45
  scope.mergeWithScope(parentScope);
38
46
  return scope;
39
47
  }),
@@ -41,16 +49,15 @@ function FeatureFlags(_ref) {
41
49
  scope = _useState4[0],
42
50
  updateScope = _useState4[1];
43
51
  if (parentScope !== prevParentScope) {
44
- var _scope = FeatureFlags$1.createScope(flags);
52
+ var _scope = FeatureFlags$1.createScope(combinedFlags);
45
53
  _scope.mergeWithScope(parentScope);
46
54
  updateScope(_scope);
47
55
  setPrevParentScope(parentScope);
48
56
  }
49
57
 
50
- // We use a custom hook to detect if any of the keys or their values change
51
- // for flags that are passed in. If they have changed, then we re-create the
52
- // FeatureFlagScope using the new flags
53
- useChangedValue(flags, isEqual, function (changedFlags) {
58
+ // We use a custom hook to detect if any of the individual flag props or their values change
59
+ // If any flags have changed, we re-create the FeatureFlagScope using the updated flags
60
+ useChangedValue(combinedFlags, isEqual, function (changedFlags) {
54
61
  var scope = FeatureFlags$1.createScope(changedFlags);
55
62
  scope.mergeWithScope(parentScope);
56
63
  updateScope(scope);
@@ -62,7 +69,7 @@ function FeatureFlags(_ref) {
62
69
  FeatureFlags.propTypes = {
63
70
  children: index.default.node,
64
71
  /**
65
- * Provide the feature flags to enabled or disabled in the current React tree
72
+ * Provide the feature flags to enabled or disabled in the current React tree, this has been deprecated. as we are going to pass individual boolean props for each flag.
66
73
  */
67
74
  flags: index.default.objectOf(index.default.bool)
68
75
  };
@@ -53,7 +53,7 @@ exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function
53
53
  setShowMenuButton = _useState4[1];
54
54
  // Destructure overflow menu properties.
55
55
  var other = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(overflowMenuProps), overflowMenuProps));
56
- var backupRef = React.useRef();
56
+ var backupRef = React.useRef(undefined);
57
57
  var localRef = ref || backupRef;
58
58
  var setHideButton = function setHideButton(activeElement) {
59
59
  if (!menuIsOpen && !localRef.current.contains(activeElement)) {
@@ -1,11 +1,12 @@
1
1
  export function Error403SVG({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace Error403SVG {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -1,11 +1,12 @@
1
1
  export function Error404SVG({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace Error404SVG {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -1,11 +1,12 @@
1
1
  export function ErrorGenericSVG({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace ErrorGenericSVG {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -3,7 +3,7 @@ export function HTTPErrorContent({ description, errorCodeLabel, title, links, }:
3
3
  errorCodeLabel: any;
4
4
  title: any;
5
5
  links: any;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
7
7
  export namespace HTTPErrorContent {
8
8
  export { componentName as displayName };
9
9
  export namespace propTypes {
@@ -13,5 +13,6 @@ export namespace HTTPErrorContent {
13
13
  let title: import("prop-types").Validator<string>;
14
14
  }
15
15
  }
16
+ import React from 'react';
16
17
  declare const componentName: "HTTPErrorContent";
17
18
  export {};
@@ -1,11 +1,12 @@
1
1
  export function HTTPErrorSvg403({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace HTTPErrorSvg403 {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -1,11 +1,12 @@
1
1
  export function HTTPErrorSvg404({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace HTTPErrorSvg404 {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -1,11 +1,12 @@
1
1
  export function HTTPErrorSvgOther({ className, title }: {
2
2
  className: any;
3
3
  title: any;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
5
  export namespace HTTPErrorSvgOther {
6
6
  namespace propTypes {
7
7
  export { string as className };
8
8
  export { string as title };
9
9
  }
10
10
  }
11
+ import React from 'react';
11
12
  import { string } from 'prop-types';
@@ -92,11 +92,11 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (_ref, ref)
92
92
  _ref$skipButtonLabel = _ref.skipButtonLabel,
93
93
  skipButtonLabel = _ref$skipButtonLabel === void 0 ? defaults.skipButtonLabel : _ref$skipButtonLabel,
94
94
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
95
- var backupRef = React.useRef();
95
+ var backupRef = React.useRef(undefined);
96
96
  var _forwardedRef = ref || backupRef;
97
- var scrollRef = React.useRef();
98
- var startButtonRef = React.useRef();
99
- var nextButtonRef = React.useRef();
97
+ var scrollRef = React.useRef(undefined);
98
+ var startButtonRef = React.useRef(undefined);
99
+ var nextButtonRef = React.useRef(undefined);
100
100
  var _useState = React.useState(null),
101
101
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
102
102
  isVisibleClass = _useState2[0],
@@ -12,7 +12,7 @@ export function NavItem({ activeHref, children, className, current, disabled, el
12
12
  label: any;
13
13
  onClick?: (() => void) | undefined;
14
14
  tabIndex?: number | undefined;
15
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
16
16
  export namespace NavItem {
17
17
  export { componentName as displayName };
18
18
  export namespace propTypes {
@@ -31,5 +31,6 @@ export namespace NavItem {
31
31
  }
32
32
  }
33
33
  export default NavItem;
34
+ import React from 'react';
34
35
  declare const componentName: "NavItem";
35
36
  import PropTypes from 'prop-types';
@@ -11,6 +11,14 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
11
11
  var react = require('@carbon/react');
12
12
  var icons = require('@carbon/react/icons');
13
13
  var React = require('react');
14
+ require('../EmptyStates/EmptyState.js');
15
+ require('../EmptyStates/EmptyStateV2.js');
16
+ require('../EmptyStates/ErrorEmptyState/ErrorEmptyState.js');
17
+ require('../EmptyStates/NoDataEmptyState/NoDataEmptyState.js');
18
+ require('../EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js');
19
+ require('../EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js');
20
+ var NotificationsEmptyState = require('../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js');
21
+ require('../EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js');
14
22
  var index = require('../../_virtual/index.js');
15
23
  var cx = require('classnames');
16
24
  var devtools = require('../../global/js/utils/devtools.js');
@@ -21,7 +29,6 @@ var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMo
21
29
  var wrapFocus = require('../../global/js/utils/wrapFocus.js');
22
30
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
23
31
  var useClickOutside = require('../../global/js/hooks/useClickOutside.js');
24
- var NotificationsEmptyState = require('../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js');
25
32
 
26
33
  var _Close;
27
34
  var _excluded = ["className", "data", "daysAgoText", "dismissAllLabel", "dismissSingleNotificationIconDescription", "doNotDisturbDefaultToggled", "doNotDisturbLabel", "emptyStateLabel", "hourAgoText", "hoursAgoText", "minuteAgoText", "minutesAgoText", "monthAgoText", "monthsAgoText", "nowText", "onClickOutside", "onDismissAllNotifications", "onDismissSingleNotification", "onDoNotDisturbChange", "onSettingsClick", "onViewAllClick", "open", "previousLabel", "readLessLabel", "readMoreLabel", "secondsAgoText", "settingsIconDescription", "title", "todayLabel", "viewAllLabel", "yearAgoText", "yearsAgoText", "yesterdayAtText", "yesterdayLabel", "selectorsFloatingMenus", "triggerButtonRef"];
@@ -149,6 +149,7 @@ interface TitleIcon {
149
149
  cancelDescription?: string;
150
150
  editDescription?: string;
151
151
  saveDescription?: string;
152
+ tooltipAlignment?: 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
152
153
  }
153
154
  interface TitleContent {
154
155
  content: ReactNode;
@@ -269,6 +270,7 @@ interface PageHeaderBaseProps extends PropsWithChildren {
269
270
  * - editableLabel: label for edit required if onChange supplied
270
271
  * - cancelDescription: label for edit cancel button
271
272
  * - saveDescription: label for edit save button
273
+ * - tooltipAlignment: position for tooltip displayed for large titles. Default to "bottom"
272
274
  * - Object containing user defined contents. These must fit within the area defined for the title in both main part of the header and the breadcrumb.
273
275
  * - content: title or name of current location shown in main part of page header
274
276
  * - breadcrumbContent: version of content used in the breadcrumb on scroll. If not supplied
@@ -790,6 +790,7 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
790
790
  * - editableLabel: label for edit required if onChange supplied
791
791
  * - cancelDescription: label for edit cancel button
792
792
  * - saveDescription: label for edit save button
793
+ * - tooltipAlignment: position for tooltip displayed for large titles. Default to "bottom".
793
794
  * - Object containing user defined contents. These must fit within the area defined for the title in both main part of the header and the breadcrumb.
794
795
  * - content: title or name of current location shown in main part of page header
795
796
  * - breadcrumbContent: version of content used in the breadcrumb on scroll. If not supplied
@@ -814,7 +815,9 @@ exports.PageHeader.propTypes = _rollupPluginBabelHelpers.objectSpread2({
814
815
  //.isRequired.if(editInPlaceRequired),
815
816
  editDescription: index.default.string,
816
817
  // .isRequired.if(editInPlaceRequired),
817
- saveDescription: index.default.string //.isRequired.if(editInPlaceRequired),
818
+ saveDescription: index.default.string,
819
+ //.isRequired.if(editInPlaceRequired),
820
+ tooltipAlignment: index.default.oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right'])
818
821
  // Update docgen if changed
819
822
  }), index.default.string, index.default.shape({
820
823
  content: index.default.node.isRequired,
@@ -2,7 +2,7 @@ export function PageHeaderTitle({ blockClass, hasBreadcrumbRow, title }: {
2
2
  blockClass: any;
3
3
  hasBreadcrumbRow: any;
4
4
  title: any;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): React.JSX.Element;
6
6
  export namespace PageHeaderTitle {
7
7
  namespace propTypes {
8
8
  let blockClass: PropTypes.Validator<string>;
@@ -18,6 +18,7 @@ export namespace PageHeaderTitle {
18
18
  onSave: PropTypes.Requireable<(...args: any[]) => any>;
19
19
  cancelDescription: any;
20
20
  saveDescription: any;
21
+ tooltipAlignment: PropTypes.Requireable<string>;
21
22
  }> | PropTypes.InferProps<{
22
23
  content: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
23
24
  breadcrumbContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
@@ -28,4 +29,5 @@ export namespace PageHeaderTitle {
28
29
  export function editInPlaceRequired({ onSave }: {
29
30
  onSave: any;
30
31
  }): boolean;
32
+ import React from 'react';
31
33
  import PropTypes from 'prop-types';
@@ -14,7 +14,7 @@ var cx = require('classnames');
14
14
  var react = require('@carbon/react');
15
15
  var EditInPlace = require('../EditInPlace/EditInPlace.js');
16
16
 
17
- var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "onSave", "editDescription", "editableLabel", "cancelDescription", "saveDescription"];
17
+ var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "onSave", "editDescription", "editableLabel", "cancelDescription", "saveDescription", "tooltipAlignment"];
18
18
 
19
19
  /**
20
20
  *
@@ -40,18 +40,41 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
40
40
  editableLabel = title.editableLabel,
41
41
  cancelDescription = title.cancelDescription,
42
42
  saveDescription = title.saveDescription,
43
+ _title$tooltipAlignme = title.tooltipAlignment,
44
+ tooltipAlignment = _title$tooltipAlignme === void 0 ? 'bottom' : _title$tooltipAlignme,
43
45
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(title, _excluded);
44
46
  var titleText;
45
47
  var isEditable = !!onSave;
48
+ var _useState = React.useState(),
49
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
50
+ isEllipsisApplied = _useState2[0],
51
+ setIsEllipsisApplied = _useState2[1];
52
+ var longTitleRef = React.useRef(undefined);
53
+ var titleRef = React.useRef(undefined);
54
+ React.useLayoutEffect(function () {
55
+ setIsEllipsisApplied(isEllipsisActive());
56
+ }, [longTitleRef, titleRef, title]);
57
+ var isEllipsisActive = function isEllipsisActive() {
58
+ if (longTitleRef.current) {
59
+ var _longTitleRef$current, _longTitleRef$current2;
60
+ return ((_longTitleRef$current = longTitleRef.current) === null || _longTitleRef$current === void 0 ? void 0 : _longTitleRef$current.offsetWidth) < ((_longTitleRef$current2 = longTitleRef.current) === null || _longTitleRef$current2 === void 0 ? void 0 : _longTitleRef$current2.scrollWidth);
61
+ } else if (titleRef.current) {
62
+ var _titleRef$current, _titleRef$current2;
63
+ return ((_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.offsetWidth) < ((_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === void 0 ? void 0 : _titleRef$current2.scrollWidth);
64
+ }
65
+ return false;
66
+ };
46
67
  if (text || !content) {
47
68
  if (text === undefined && typeof title === 'string') {
48
69
  text = title;
49
70
  asText = title;
50
71
  }
51
72
  var TitleIcon = icon;
52
- titleInnards = /*#__PURE__*/React.createElement(React.Fragment, null, icon && !loading ? /*#__PURE__*/React.createElement(TitleIcon, {
73
+ titleInnards = /*#__PURE__*/React.createElement(React.Fragment, null, icon && !loading ? /*#__PURE__*/React.createElement("span", {
74
+ className: "".concat(blockClass, "__title-icon-wrapper")
75
+ }, /*#__PURE__*/React.createElement(TitleIcon, {
53
76
  className: "".concat(blockClass, "__title-icon")
54
- }) : null, loading ? /*#__PURE__*/React.createElement(react.SkeletonText, {
77
+ })) : null, loading ? /*#__PURE__*/React.createElement(react.SkeletonText, {
55
78
  className: "".concat(blockClass, "__title-skeleton")
56
79
  }) : isEditable ? /*#__PURE__*/React.createElement(EditInPlace.EditInPlace, _rollupPluginBabelHelpers.extends({
57
80
  tooltipAlignment: "bottom",
@@ -64,7 +87,17 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
64
87
  onSave: onSave,
65
88
  size: "md",
66
89
  inheritTypography: true
67
- }, rest)) : /*#__PURE__*/React.createElement("span", {
90
+ }, rest)) : isEllipsisApplied ? /*#__PURE__*/React.createElement(react.DefinitionTooltip, {
91
+ openOnHover: false,
92
+ align: tooltipAlignment,
93
+ definition: text,
94
+ className: "".concat(blockClass, "__tooltip")
95
+ }, /*#__PURE__*/React.createElement("span", {
96
+ ref: longTitleRef,
97
+ className: "".concat(blockClass, "__titleText")
98
+ }, text)) : /*#__PURE__*/React.createElement("span", {
99
+ ref: titleRef,
100
+ className: "".concat(blockClass, "__titleText"),
68
101
  title: !loading ? asText : null
69
102
  }, text));
70
103
  } else {
@@ -119,7 +152,8 @@ PageHeaderTitle.propTypes = {
119
152
  onChange: index.default.func,
120
153
  onSave: index.default.func,
121
154
  cancelDescription: index.default.string.isRequired.if(editInPlaceRequired),
122
- saveDescription: index.default.string.isRequired.if(editInPlaceRequired)
155
+ saveDescription: index.default.string.isRequired.if(editInPlaceRequired),
156
+ tooltipAlignment: index.default.oneOf(['top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right', 'left', 'right'])
123
157
  // Update docgen if changed
124
158
  }), index.default.string, index.default.shape({
125
159
  content: index.default.node.isRequired,
@@ -21,6 +21,10 @@ export interface ProductiveCardProps extends PropsWithChildren {
21
21
  * Icons that are displayed on card. Refer to design documentation for implementation guidelines. Note- href will supersede onClick
22
22
  */
23
23
  actionIcons?: ActionIcon[];
24
+ /**
25
+ * 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.
26
+ */
27
+ aiLabel?: ReactNode | boolean;
24
28
  /**
25
29
  * Determines if the action icons are on the top or bottom of the card
26
30
  */
@@ -104,6 +108,7 @@ export interface ProductiveCardProps extends PropsWithChildren {
104
108
  /**
105
109
  * **Experimental:** For all cases a `Slug` component can be provided.
106
110
  * Clickable tiles only accept a boolean value of true and display a hollow slug.
111
+ * @deprecated please use the `aiLabel` prop
107
112
  */
108
113
  slug?: ReactNode | boolean;
109
114
  /**
@@ -50,6 +50,10 @@ exports.ProductiveCard.propTypes = {
50
50
  * Determines if the action icons are on the top or bottom of the card
51
51
  */
52
52
  actionsPlacement: index.default.oneOf(['top', 'bottom']),
53
+ /**
54
+ * 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.
55
+ */
56
+ aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
53
57
  /**
54
58
  * Content that shows in the body of the card
55
59
  */
@@ -52,8 +52,8 @@ exports.ScrollGradient = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
52
52
  _useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
53
53
  horizontalPosition = _useState4[0],
54
54
  setHorizontalPosition = _useState4[1];
55
- var scrollContainer = React.useRef();
56
- var contentChildrenContainer = React.useRef();
55
+ var scrollContainer = React.useRef(undefined);
56
+ var contentChildrenContainer = React.useRef(undefined);
57
57
  var updateScrollState = lodash.throttle(function () {
58
58
  var updatedVerticalVal = constants.getScrollState(scrollContainer.current, constants.ScrollDirection.Y);
59
59
  var updatedHorizontalVal = constants.getScrollState(scrollContainer.current, constants.ScrollDirection.X);
@@ -110,9 +110,14 @@ type SidePanelBaseProps = {
110
110
  */
111
111
  slideIn?: boolean;
112
112
  /**
113
+ * @deprecated please use the `aiLabel` prop
113
114
  * **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
114
115
  */
115
116
  slug?: ReactNode;
117
+ /**
118
+ * 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.
119
+ */
120
+ aiLabel?: ReactNode;
116
121
  /**
117
122
  * Sets the subtitle text
118
123
  */
@@ -26,7 +26,7 @@ var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMo
26
26
  var useFocus = require('../../global/js/hooks/useFocus.js');
27
27
  var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
28
28
 
29
- var _excluded = ["actionToolbarButtons", "actions", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
29
+ var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
30
30
  _excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
31
31
  var blockClass = "".concat(settings.pkg.prefix, "--side-panel");
32
32
  var componentName = 'SidePanel';
@@ -49,6 +49,7 @@ var defaults = {
49
49
  exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
50
50
  var actionToolbarButtons = _ref.actionToolbarButtons,
51
51
  actions = _ref.actions,
52
+ aiLabel = _ref.aiLabel,
52
53
  _ref$animateTitle = _ref.animateTitle,
53
54
  animateTitle = _ref$animateTitle === void 0 ? defaults.animateTitle : _ref$animateTitle,
54
55
  children = _ref.children,
@@ -336,7 +337,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
336
337
  }
337
338
  }, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
338
339
  var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
339
- var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
340
+ var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-ai-label"), !!aiLabel || !!slug), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
340
341
  var renderTitle = function renderTitle() {
341
342
  return /*#__PURE__*/React.createElement("div", {
342
343
  className: cx("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
@@ -352,13 +353,23 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
352
353
  }, title));
353
354
  };
354
355
  var renderHeader = function renderHeader() {
355
- var _slug$type;
356
- var slugCloseSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
357
- var normalizedSlug;
356
+ var _slug$type, _aiLabel$type;
357
+ var aiLabelCloseSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
358
+ var normalizedAILabel;
359
+ /**
360
+ * slug is deprecated
361
+ * can remove this condition in future release
362
+ */
358
363
  if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'Slug') {
359
- normalizedSlug = /*#__PURE__*/React.cloneElement(slug, {
364
+ normalizedAILabel = /*#__PURE__*/React.cloneElement(slug, {
360
365
  // slug size is sm unless actions and size > md
361
- size: slugCloseSize
366
+ size: aiLabelCloseSize
367
+ });
368
+ }
369
+ if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
370
+ normalizedAILabel = /*#__PURE__*/React.cloneElement(aiLabel, {
371
+ // aiLabel size is sm unless actions and size > md
372
+ size: aiLabelCloseSize
362
373
  });
363
374
  }
364
375
  return /*#__PURE__*/React.createElement("div", {
@@ -366,7 +377,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
366
377
  ref: headerRef
367
378
  }, currentStep > 0 && /*#__PURE__*/React.createElement(react.Button, {
368
379
  kind: "ghost",
369
- size: slugCloseSize,
380
+ size: aiLabelCloseSize,
370
381
  disabled: false,
371
382
  renderIcon: function renderIcon(props) {
372
383
  return /*#__PURE__*/React.createElement(icons.ArrowLeft, _rollupPluginBabelHelpers.extends({
@@ -380,8 +391,8 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
380
391
  className: "".concat(blockClass, "__label-text"),
381
392
  ref: labelTextRef
382
393
  }, labelText), title && title.length && renderTitle(), /*#__PURE__*/React.createElement("div", {
383
- className: "".concat(blockClass, "__slug-and-close")
384
- }, normalizedSlug, /*#__PURE__*/React.createElement(react.IconButton, {
394
+ className: "".concat(blockClass, "__ai-label-and-close")
395
+ }, normalizedAILabel, /*#__PURE__*/React.createElement(react.IconButton, {
385
396
  className: "".concat(blockClass, "__close-button"),
386
397
  label: closeIconDescription,
387
398
  onClick: onRequestClose,
@@ -479,7 +490,14 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
479
490
 
480
491
  // Return a placeholder if not released and not enabled by feature flag
481
492
  exports.SidePanel = settings.pkg.checkComponentEnabled(exports.SidePanel, componentName);
482
- exports.SidePanel.propTypes = {
493
+ var deprecatedProps = {
494
+ /**
495
+ * **deprecated**
496
+ * **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
497
+ */
498
+ slug: index.default.node
499
+ };
500
+ exports.SidePanel.propTypes = _rollupPluginBabelHelpers.objectSpread2({
483
501
  /**
484
502
  * Sets the action toolbar buttons
485
503
  */
@@ -616,10 +634,6 @@ exports.SidePanel.propTypes = {
616
634
  */
617
635
  /**@ts-ignore*/
618
636
  slideIn: index.default.bool,
619
- /**
620
- * **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
621
- */
622
- slug: index.default.node,
623
637
  /**
624
638
  * Sets the subtitle text
625
639
  */
@@ -632,5 +646,5 @@ exports.SidePanel.propTypes = {
632
646
  var labelText = _ref7.labelText;
633
647
  return labelText;
634
648
  })
635
- };
649
+ }, deprecatedProps);
636
650
  exports.SidePanel.displayName = componentName;
@@ -20,7 +20,7 @@ export function SimpleHeader({ breadcrumbs, className, title, noTrailingSlash, m
20
20
  maxVisible: any;
21
21
  overflowAriaLabel: any;
22
22
  overflowTooltipAlign: any;
23
- }): import("react/jsx-runtime").JSX.Element;
23
+ }): React.JSX.Element;
24
24
  export namespace SimpleHeader {
25
25
  namespace propTypes {
26
26
  export let breadcrumbs: PropTypes.Requireable<(PropTypes.InferProps<{
@@ -43,4 +43,5 @@ export namespace SimpleHeader {
43
43
  export let title: PropTypes.Requireable<string>;
44
44
  }
45
45
  }
46
+ import React from 'react';
46
47
  import PropTypes from 'prop-types';
@@ -41,7 +41,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
41
41
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
42
42
  jsonData = _useState2[0],
43
43
  setJsonData = _useState2[1];
44
- var animRef = React.useRef();
44
+ var animRef = React.useRef(undefined);
45
45
  var backupRef = React.useRef(null);
46
46
  var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
47
47
  var localRefValue = localRef.current;
@@ -7,6 +7,9 @@
7
7
  import React, { ReactNode, RefObject } from 'react';
8
8
  export interface TagOverflowItem {
9
9
  className?: string;
10
+ /**
11
+ * @deprecated The `filter` prop is no longer going to be used. To use DismissibleTags, pass in an onClose function.
12
+ */
10
13
  filter?: boolean;
11
14
  id: string;
12
15
  label: string;
@@ -23,7 +23,7 @@ var useResizeObserver = require('../../global/js/hooks/useResizeObserver.js');
23
23
  var _excluded = ["align", "allTagsModalAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTarget", "allTagsModalTitle", "autoAlign", "className", "containingElementRef", "items", "maxVisible", "measurementOffset", "multiline", "overflowAlign", "overflowClassName", "overflowType", "onOverflowTagChange", "showAllTagsLabel", "tagComponent"],
24
24
  _excluded2 = ["className", "id"],
25
25
  _excluded3 = ["tagType"],
26
- _excluded4 = ["id", "label", "tagType", "onClose"];
26
+ _excluded4 = ["id", "label", "tagType", "onClose", "filter"];
27
27
  var blockClass = "".concat(settings.pkg.prefix, "--tag-overflow");
28
28
  var componentName = 'TagOverflow';
29
29
  var allTagsModalSearchThreshold = 10;
@@ -183,6 +183,7 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
183
183
  label = item.label,
184
184
  tagType = item.tagType,
185
185
  _onClose = item.onClose,
186
+ filter = item.filter,
186
187
  other = _rollupPluginBabelHelpers.objectWithoutProperties(item, _excluded4);
187
188
  // If there is no template prop, then render items as Tags
188
189
  return /*#__PURE__*/React.createElement("div", {
@@ -193,12 +194,16 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
193
194
  }, /*#__PURE__*/React.createElement(react.Tooltip, {
194
195
  align: overflowAlign,
195
196
  label: label
196
- }, /*#__PURE__*/React.createElement(react.Tag, _rollupPluginBabelHelpers.extends({}, other, {
197
+ }, typeof _onClose === 'function' || filter ? /*#__PURE__*/React.createElement(react.DismissibleTag, _rollupPluginBabelHelpers.extends({}, other, {
197
198
  className: "".concat(blockClass, "__item--tag"),
198
199
  type: tagType,
199
200
  onClose: function onClose() {
200
201
  return handleTagOnClose(_onClose, index);
201
- }
202
+ },
203
+ text: label
204
+ })) : /*#__PURE__*/React.createElement(react.Tag, _rollupPluginBabelHelpers.extends({}, other, {
205
+ className: "".concat(blockClass, "__item--tag"),
206
+ type: tagType
202
207
  }), label)));
203
208
  }
204
209
  }), /*#__PURE__*/React.createElement("span", {