@carbon/ibm-products 2.52.0-rc.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
@@ -41,7 +41,6 @@ var defaults = {
41
41
  */
42
42
 
43
43
  exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
44
- var _positionTune$y, _positionTune$x;
45
44
  var _ref$align = _ref.align,
46
45
  align = _ref$align === void 0 ? defaults.align : _ref$align,
47
46
  autoAlign = _ref.autoAlign,
@@ -80,11 +79,12 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
80
79
  _useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
81
80
  targetOffset = _useState8[0],
82
81
  setTargetOffset = _useState8[1];
83
- var overlayBackupRef = React.useRef();
84
- var backupRef = React.useRef();
82
+ var overlayBackupRef = React.useRef(undefined);
83
+ var backupRef = React.useRef(undefined);
85
84
  var _coachmarkRef = ref || backupRef;
86
85
  var _overlayRef = overlayRef || overlayBackupRef;
87
86
  var portalNode = React.useRef(null);
87
+ var popoverRef = React.useRef(null);
88
88
  useIsomorphicEffect.useIsomorphicEffect(function () {
89
89
  var _document$querySelect, _document, _document2, _document3;
90
90
  portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
@@ -130,10 +130,6 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
130
130
  setShouldResetPosition(true);
131
131
  }
132
132
  };
133
- var overlayPositionStyle = {
134
- top: ((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16,
135
- left: ((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16
136
- };
137
133
  var contextValue = {
138
134
  buttonProps: {
139
135
  'aria-expanded': isOpen,
@@ -164,6 +160,19 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
164
160
  setIsOpen(true);
165
161
  }
166
162
  }, [shouldResetPosition]);
163
+ useIsomorphicEffect.useIsomorphicEffect(function () {
164
+ var _positionTune$y, _positionTune$x;
165
+ var overlayPositionStyle = {
166
+ top: "".concat(((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16, "px"),
167
+ left: "".concat(((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16, "px")
168
+ };
169
+ if (popoverRef.current && popoverRef.current.style && overlayPositionStyle) {
170
+ var combinedStyle = _rollupPluginBabelHelpers.objectSpread2({
171
+ position: 'absolute'
172
+ }, overlayPositionStyle);
173
+ Object.assign(popoverRef.current.style, combinedStyle);
174
+ }
175
+ }, [popoverRef, positionTune]);
167
176
 
168
177
  // On unmount:
169
178
  // - DO NOT "Close()" the coachmark.
@@ -195,9 +204,7 @@ exports.Coachmark = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
195
204
  portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React.createElement(react.Popover, {
196
205
  highContrast: true,
197
206
  caret: true,
198
- style: _rollupPluginBabelHelpers.objectSpread2({
199
- position: 'absolute'
200
- }, overlayPositionStyle),
207
+ ref: popoverRef,
201
208
  align: align,
202
209
  autoAlign: autoAlign,
203
210
  open: isOpen
@@ -19,6 +19,7 @@ var CoachmarkHeader = require('./CoachmarkHeader.js');
19
19
  var constants = require('./utils/constants.js');
20
20
  var context = require('./utils/context.js');
21
21
  var enums = require('./utils/enums.js');
22
+ var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
22
23
 
23
24
  var _excluded = ["children", "onClose", "fixedIsVisible", "className", "kind", "theme"];
24
25
 
@@ -83,26 +84,27 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
83
84
  }
84
85
  }
85
86
  };
86
- var styledTune = {};
87
- if (isBeacon || isDraggable) {
88
- if (coachmark.targetRect) {
89
- styledTune.left = coachmark.targetRect.x + window.scrollX;
90
- styledTune.top = coachmark.targetRect.y + window.scrollY;
91
- }
92
- if (styledTune.left && styledTune.top) {
93
- if (isBeacon) {
94
- // Compensate for radius of beacon
95
- styledTune.left += 16;
96
- styledTune.top += 16;
87
+ var styledTune = React.useMemo(function () {
88
+ var style = {};
89
+ if (isBeacon || isDraggable) {
90
+ if (coachmark.targetRect) {
91
+ style.left = coachmark.targetRect.x + window.scrollX;
92
+ style.top = coachmark.targetRect.y + window.scrollY;
97
93
  }
98
- if (isDraggable) {
99
- // Compensate for width and height of target element
100
- var offsetTune = constants.getOffsetTune(coachmark, kind);
101
- styledTune.left += offsetTune.left;
102
- styledTune.top += offsetTune.top;
94
+ if (style.left && style.top) {
95
+ if (isBeacon) {
96
+ style.left = style.left + 16;
97
+ style.top = style.top + 16;
98
+ }
99
+ if (isDraggable) {
100
+ var offsetTune = constants.getOffsetTune(coachmark, kind);
101
+ style.left = style.left + offsetTune.left;
102
+ style.top = style.top + offsetTune.top;
103
+ }
103
104
  }
104
105
  }
105
- }
106
+ return style;
107
+ }, [isBeacon, isDraggable, coachmark, kind]);
106
108
  function handleDragBounds(x, y) {
107
109
  var xRes = x;
108
110
  var yRes = y;
@@ -141,10 +143,19 @@ exports.CoachmarkOverlay = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
141
143
  overlay.style.bottom = 'auto';
142
144
  }
143
145
  var contentId = uuidv4.default();
146
+ useIsomorphicEffect.useIsomorphicEffect(function () {
147
+ if (overlayRef.current) {
148
+ var _overlayRef$current;
149
+ var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.style;
150
+ Object.keys(styledTune).forEach(function (key) {
151
+ var value = styledTune[key];
152
+ currentStyle.setProperty(key, "".concat(value, "px"));
153
+ });
154
+ }
155
+ }, [styledTune, overlayRef]);
144
156
  return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
145
157
  className: cx(blockClass, "".concat(blockClass, "--").concat(kind), "".concat(blockClass, "__").concat(theme), (isBeacon || isDraggable) && "".concat(blockClass, "--").concat(coachmark.align), fixedIsVisible && "".concat(blockClass, "--is-visible"), a11yDragMode && "".concat(blockClass, "--is-dragmode"), className),
146
158
  ref: overlayRef,
147
- style: styledTune,
148
159
  "aria-labelledby": contentId,
149
160
  tabIndex: -1
150
161
  }, devtools.getDevtoolsProps(componentName)), isDraggable ? /*#__PURE__*/React.createElement(CoachmarkDragbar.CoachmarkDragbar, {
@@ -19,7 +19,7 @@ var enums = require('./enums.js');
19
19
  */
20
20
 
21
21
  function useClickOutsideElement(coachmarkRef, overlayRef, overlayKind, callback) {
22
- var cb = React.useRef();
22
+ var cb = React.useRef(undefined);
23
23
  var isTooltip = overlayKind === enums.COACHMARK_OVERLAY_KIND.TOOLTIP;
24
24
  React.useLayoutEffect(function () {
25
25
  cb.current = callback;
@@ -62,8 +62,8 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
62
62
  _ref$closeButtonLabel = _ref.closeButtonLabel,
63
63
  closeButtonLabel = _ref$closeButtonLabel === void 0 ? defaults.closeButtonLabel : _ref$closeButtonLabel,
64
64
  rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
65
- var buttonFocusRef = React.useRef();
66
- var scrollRef = React.useRef();
65
+ var buttonFocusRef = React.useRef(undefined);
66
+ var scrollRef = React.useRef(undefined);
67
67
  var _useState = React.useState(0),
68
68
  _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
69
69
  scrollPosition = _useState2[0],
@@ -91,7 +91,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
91
91
  setParentHeight = _useState6[1];
92
92
  // parent height = child height when stacked behind a child that is shorter
93
93
  var childArray = React.Children.toArray(children);
94
- var mountedRef = React.useRef();
94
+ var mountedRef = React.useRef(undefined);
95
95
  // same value as CSS animation speed
96
96
  var delayMs = 240;
97
97
 
@@ -4,13 +4,14 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  /**
8
9
  * The combo button item provides additional actions a user can take.
9
10
  */
10
11
  declare const ComboButtonItem: {
11
12
  ({ ...rest }: {
12
13
  [x: string]: any;
13
- }): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
14
15
  propTypes: {
15
16
  /** Provide the contents of the `ComboButtonItem` */
16
17
  children: import("prop-types").Validator<NonNullable<import("prop-types").ReactNodeLike>>;
@@ -34,7 +34,7 @@ interface ConditionBlockProps {
34
34
  isLastCondition: (index: number, conditions: (ConditionGroup | Condition)[]) => void;
35
35
  }
36
36
  declare const ConditionBlock: {
37
- (props: ConditionBlockProps): import("react/jsx-runtime").JSX.Element;
37
+ (props: ConditionBlockProps): React.JSX.Element;
38
38
  propTypes: {
39
39
  /**
40
40
  * callback to add a new condition
@@ -29,8 +29,6 @@ var ItemOptionForValueField = require('../ConditionBuilderItem/ConditionBuilderI
29
29
  var useTranslations = require('../utils/useTranslations.js');
30
30
  var useDataConfigs = require('../utils/useDataConfigs.js');
31
31
 
32
- var _div;
33
-
34
32
  /**
35
33
  * This component build each block of condition consisting of property, operator value and close button.
36
34
  */
@@ -192,9 +190,7 @@ var ConditionBlock = function ConditionBlock(props) {
192
190
  onChange: function onChange(op) {
193
191
  return onConnectorOperatorChange === null || onConnectorOperatorChange === void 0 ? void 0 : onConnectorOperatorChange(op);
194
192
  }
195
- }) : _div || (_div = /*#__PURE__*/React.createElement("div", {
196
- role: "gridcell"
197
- })), isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
193
+ }) : '', isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
198
194
  label: group.statement,
199
195
  title: conditionText,
200
196
  "data-name": "connectorField",
@@ -268,7 +264,8 @@ var ConditionBlock = function ConditionBlock(props) {
268
264
  onBlur: handleHideDeletionPreview,
269
265
  renderIcon: icons.Close,
270
266
  className: "".concat(util.blockClass, "__close-condition"),
271
- "data-name": "closeCondition"
267
+ "data-name": "closeCondition",
268
+ wrapperClassName: "".concat(util.blockClass, "__close-condition-wrapper")
272
269
  })), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React.createElement(ConditionBuilderAdd.default, {
273
270
  onClick: function onClick() {
274
271
  addConditionHandler === null || addConditionHandler === void 0 || addConditionHandler(conditionIndex);
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { Action, Option } from '../ConditionBuilder.types';
9
10
  interface ConditionBuilderActionsProps {
@@ -11,7 +12,7 @@ interface ConditionBuilderActionsProps {
11
12
  className?: string;
12
13
  }
13
14
  declare const ConditionBuilderActions: {
14
- ({ actions, className, }: ConditionBuilderActionsProps): import("react/jsx-runtime").JSX.Element;
15
+ ({ actions, className, }: ConditionBuilderActionsProps): React.JSX.Element;
15
16
  propTypes: {
16
17
  /**
17
18
  * optional array of object that give the list of actions.
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  interface ConditionBuilderAddProps {
9
10
  className?: string;
@@ -18,7 +19,7 @@ interface ConditionBuilderAddProps {
18
19
  tabIndex?: number;
19
20
  }
20
21
  declare const ConditionBuilderAdd: {
21
- ({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps): import("react/jsx-runtime").JSX.Element;
22
+ ({ className, onClick, addConditionSubGroupHandler, showConditionSubGroupPreviewHandler, hideConditionSubGroupPreviewHandler, showConditionPreviewHandler, hideConditionPreviewHandler, enableSubGroup, buttonLabel, tabIndex, }: ConditionBuilderAddProps): React.JSX.Element;
22
23
  propTypes: {
23
24
  /**
24
25
  * handler for hiding sub group preview
@@ -27,7 +27,7 @@ interface ConditionBuilderButtonProps {
27
27
  tabIndex?: number;
28
28
  }
29
29
  export declare const ConditionBuilderButton: {
30
- ({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps): import("react/jsx-runtime").JSX.Element;
30
+ ({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, ...rest }: ConditionBuilderButtonProps): React.JSX.Element;
31
31
  propTypes: {
32
32
  /**
33
33
  * Provide an optional class to be applied to the containing node.
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  interface ConditionConnectorProps {
9
10
  operator: string;
@@ -11,7 +12,7 @@ interface ConditionConnectorProps {
11
12
  onChange?: (op: string) => void;
12
13
  }
13
14
  declare const ConditionConnector: {
14
- ({ operator, className, onChange, ...rest }: ConditionConnectorProps): import("react/jsx-runtime").JSX.Element;
15
+ ({ operator, className, onChange, ...rest }: ConditionConnectorProps): React.JSX.Element;
15
16
  propTypes: {
16
17
  /**
17
18
  * Provide an optional class to be applied to the containing node.
@@ -57,10 +57,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
57
57
  className: "".concat(className, " ").concat(util.blockClass, "__connector--disabled")
58
58
  }, /*#__PURE__*/React.createElement(ConditionBuilderButton.ConditionBuilderButton, {
59
59
  label: operator
60
- })) :
61
- /*#__PURE__*/
62
- // <div className={className} {...rest}>
63
- React.createElement(ConditionBuilderItem.ConditionBuilderItem, _rollupPluginBabelHelpers.extends({
60
+ })) : /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, _rollupPluginBabelHelpers.extends({
64
61
  label: operator,
65
62
  title: connectorText,
66
63
  "data-name": "connectorField",
@@ -80,10 +77,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
80
77
  label: connectorText
81
78
  },
82
79
  onChange: onChangeHandler
83
- }))
84
-
85
- // </div>
86
- ;
80
+ }));
87
81
  };
88
82
  ConditionConnector.propTypes = {
89
83
  /**
@@ -1,2 +1,3 @@
1
1
  export default GroupConnector;
2
- declare function GroupConnector(): import("react/jsx-runtime").JSX.Element;
2
+ declare function GroupConnector(): React.JSX.Element;
3
+ import React from 'react';
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { Action, ConditionBuilderState, InitialState } from '../ConditionBuilder.types';
9
10
  interface ConditionBuilderContentProps {
@@ -14,7 +15,7 @@ interface ConditionBuilderContentProps {
14
15
  actions?: Action[];
15
16
  }
16
17
  declare const ConditionBuilderContent: {
17
- ({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): import("react/jsx-runtime").JSX.Element;
18
+ ({ startConditionLabel, getConditionState, getActionsState, initialState, actions, }: ConditionBuilderContentProps): React.JSX.Element;
18
19
  propTypes: {
19
20
  /**
20
21
  * optional array of object that give the list of actions.
@@ -117,7 +117,6 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
117
117
  var addConditionGroupHandler = function addConditionGroupHandler() {
118
118
  var newGroup = {
119
119
  statement: 'ifAll',
120
- // 'if|exclude if',
121
120
  groupOperator: 'and',
122
121
  id: uuidv4.default(),
123
122
  conditions: [{
@@ -27,7 +27,7 @@ interface ConditionBuilderItemProps extends PropsWithChildren {
27
27
  onBlur?: React.FocusEventHandler<HTMLButtonElement>;
28
28
  }
29
29
  export declare const ConditionBuilderItem: {
30
- ({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps): import("react/jsx-runtime").JSX.Element;
30
+ ({ children, className, label, renderIcon, title, type, showToolTip, condition, popOverClassName, config, renderChildren, onChange, ...rest }: ConditionBuilderItemProps): React.JSX.Element;
31
31
  propTypes: {
32
32
  /**
33
33
  * provide the contents of the popover
@@ -4,13 +4,14 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  export declare const ConditionBuilderItemDate: {
9
10
  ({ conditionState, onChange, parentRef, }: {
10
11
  conditionState: any;
11
12
  onChange: any;
12
13
  parentRef: any;
13
- }): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
14
15
  propTypes: {
15
16
  /**
16
17
  * current condition object
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { Condition, PropertyConfigNumber } from '../../ConditionBuilder.types';
9
10
  interface ConditionBuilderItemNumberProps {
@@ -12,7 +13,7 @@ interface ConditionBuilderItemNumberProps {
12
13
  onChange: (value: string) => void;
13
14
  }
14
15
  export declare const ConditionBuilderItemNumber: {
15
- ({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps): import("react/jsx-runtime").JSX.Element;
16
+ ({ conditionState, config, onChange, }: ConditionBuilderItemNumberProps): React.JSX.Element;
16
17
  propTypes: {
17
18
  /**
18
19
  * current condition object
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { PropertyConfigOption } from '../../ConditionBuilder.types';
9
10
  interface ItemOptionProps {
@@ -17,7 +18,7 @@ interface ItemOptionProps {
17
18
  onChange: (value: string, e: Event) => void;
18
19
  }
19
20
  export declare const ItemOption: {
20
- ({ conditionState, config, onChange, }: ItemOptionProps): import("react/jsx-runtime").JSX.Element | undefined;
21
+ ({ conditionState, config, onChange, }: ItemOptionProps): React.JSX.Element | undefined;
21
22
  propTypes: {
22
23
  /**
23
24
  * current condition object
@@ -65,6 +65,9 @@ var ItemOption = function ItemOption(_ref) {
65
65
  className: "".concat(util.blockClass, "__statement_wrapper")
66
66
  }, /*#__PURE__*/React.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React.createElement("div", null, option.text2));
67
67
  };
68
+ var preventDefault = function preventDefault(evt) {
69
+ return evt.preventDefault();
70
+ };
68
71
  if (!allOptions) {
69
72
  return;
70
73
  }
@@ -77,7 +80,8 @@ var ItemOption = function ItemOption(_ref) {
77
80
  size: "sm",
78
81
  labelText: clearSearchText,
79
82
  closeButtonLabelText: clearSearchText,
80
- onChange: onSearchChangeHandler
83
+ onChange: onSearchChangeHandler,
84
+ onKeyDown: preventDefault
81
85
  })), /*#__PURE__*/React.createElement("ul", {
82
86
  "aria-label": getAriaLabel(),
83
87
  role: "listbox"
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { Condition, PropertyConfigOption } from '../../ConditionBuilder.types';
9
10
  interface ItemOptionForValueFieldProps {
@@ -14,7 +15,7 @@ interface ItemOptionForValueFieldProps {
14
15
  onChange: (value: any, e?: Event) => void;
15
16
  }
16
17
  export declare const ItemOptionForValueField: {
17
- ({ conditionState, config, onChange, }: ItemOptionForValueFieldProps): import("react/jsx-runtime").JSX.Element;
18
+ ({ conditionState, config, onChange, }: ItemOptionForValueFieldProps): React.JSX.Element;
18
19
  propTypes: {
19
20
  /**
20
21
  * current condition object
@@ -46,6 +46,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
46
46
  });
47
47
  var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
48
48
  React.useEffect(function () {
49
+ //this commented code is kept as intentional. Alternate approach to pass async options instead of getOptions callback.
49
50
  // if(rest['data-name'] == 'valueField'){
50
51
  // const fetchData = async () => {
51
52
  // const response = await config.options(conditionState);
@@ -134,6 +135,9 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
134
135
  var getAriaLabel = function getAriaLabel() {
135
136
  return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
136
137
  };
138
+ var preventDefault = function preventDefault(evt) {
139
+ return evt.preventDefault();
140
+ };
137
141
  if (!allOptions) {
138
142
  return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React.createElement(react.SelectSkeleton, null));
139
143
  }
@@ -146,7 +150,8 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
146
150
  size: "sm",
147
151
  labelText: clearSearchText,
148
152
  closeButtonLabelText: clearSearchText,
149
- onChange: onSearchChangeHandler
153
+ onChange: onSearchChangeHandler,
154
+ onKeyDown: preventDefault
150
155
  })), multiSelectable && /*#__PURE__*/React.createElement("div", {
151
156
  className: "".concat(util.blockClass, "__multiselectSelectionStatusContainer")
152
157
  }, /*#__PURE__*/React.createElement("h4", null, /*#__PURE__*/React.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React.createElement(react.Button, {
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { Condition, PropertyConfigText, PropertyConfigTextArea } from '../../ConditionBuilder.types';
9
10
  interface ConditionBuilderItemTextProps {
@@ -13,7 +14,7 @@ interface ConditionBuilderItemTextProps {
13
14
  type: 'textarea' | 'text';
14
15
  }
15
16
  export declare const ConditionBuilderItemText: {
16
- ({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps): import("react/jsx-runtime").JSX.Element;
17
+ ({ conditionState, onChange, config, type, }: ConditionBuilderItemTextProps): React.JSX.Element;
17
18
  propTypes: {
18
19
  /**
19
20
  * current condition object
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { PropertyConfigTime } from '../../ConditionBuilder.types';
9
10
  interface ConditionBuilderItemTime {
@@ -11,7 +12,7 @@ interface ConditionBuilderItemTime {
11
12
  config: PropertyConfigTime['config'];
12
13
  }
13
14
  export declare const ConditionBuilderItemTime: {
14
- ({ onChange, config, }: ConditionBuilderItemTime): import("react/jsx-runtime").JSX.Element;
15
+ ({ onChange, config, }: ConditionBuilderItemTime): React.JSX.Element;
15
16
  propTypes: {
16
17
  /**
17
18
  * current config object that this property is part of
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { ConditionGroup } from '../ConditionBuilder.types';
9
10
  /**
@@ -24,7 +25,7 @@ interface ConditionGroupBuilderProps {
24
25
  };
25
26
  }
26
27
  declare const ConditionGroupBuilder: {
27
- ({ group, aria, onRemove, onChange, className, }: ConditionGroupBuilderProps): import("react/jsx-runtime").JSX.Element;
28
+ ({ group, aria, onRemove, onChange, className, }: ConditionGroupBuilderProps): React.JSX.Element;
28
29
  propTypes: {
29
30
  /**
30
31
  * object contains the aria attributes
@@ -4,6 +4,7 @@
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ import React from 'react';
7
8
  import PropTypes from 'prop-types';
8
9
  import { ConditionGroup } from '../ConditionBuilder.types';
9
10
  interface ConditionPreviewProps {
@@ -12,7 +13,7 @@ interface ConditionPreviewProps {
12
13
  colorIndex?: number;
13
14
  }
14
15
  declare const ConditionPreview: {
15
- ({ previewType, group, colorIndex, }: ConditionPreviewProps): import("react/jsx-runtime").JSX.Element;
16
+ ({ previewType, group, colorIndex, }: ConditionPreviewProps): React.JSX.Element;
16
17
  propTypes: {
17
18
  /**
18
19
  * index of the color for next group