@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
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, objectSpread2 as _objectSpread2, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
9
  import React__default, { forwardRef, useState, useRef, useCallback, useEffect } from 'react';
10
10
  import { useClickOutsideElement, useWindowEvent } from './utils/hooks.js';
11
11
  import { COACHMARK_OVERLAY_KIND } from './utils/enums.js';
@@ -39,7 +39,6 @@ var defaults = {
39
39
  */
40
40
 
41
41
  var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
42
- var _positionTune$y, _positionTune$x;
43
42
  var _ref$align = _ref.align,
44
43
  align = _ref$align === void 0 ? defaults.align : _ref$align,
45
44
  autoAlign = _ref.autoAlign,
@@ -78,11 +77,12 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
78
77
  _useState8 = _slicedToArray(_useState7, 2),
79
78
  targetOffset = _useState8[0],
80
79
  setTargetOffset = _useState8[1];
81
- var overlayBackupRef = useRef();
82
- var backupRef = useRef();
80
+ var overlayBackupRef = useRef(undefined);
81
+ var backupRef = useRef(undefined);
83
82
  var _coachmarkRef = ref || backupRef;
84
83
  var _overlayRef = overlayRef || overlayBackupRef;
85
84
  var portalNode = useRef(null);
85
+ var popoverRef = useRef(null);
86
86
  useIsomorphicEffect(function () {
87
87
  var _document$querySelect, _document, _document2, _document3;
88
88
  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');
@@ -128,10 +128,6 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
128
128
  setShouldResetPosition(true);
129
129
  }
130
130
  };
131
- var overlayPositionStyle = {
132
- top: ((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16,
133
- left: ((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16
134
- };
135
131
  var contextValue = {
136
132
  buttonProps: {
137
133
  'aria-expanded': isOpen,
@@ -162,6 +158,19 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
162
158
  setIsOpen(true);
163
159
  }
164
160
  }, [shouldResetPosition]);
161
+ useIsomorphicEffect(function () {
162
+ var _positionTune$y, _positionTune$x;
163
+ var overlayPositionStyle = {
164
+ top: "".concat(((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16, "px"),
165
+ left: "".concat(((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16, "px")
166
+ };
167
+ if (popoverRef.current && popoverRef.current.style && overlayPositionStyle) {
168
+ var combinedStyle = _objectSpread2({
169
+ position: 'absolute'
170
+ }, overlayPositionStyle);
171
+ Object.assign(popoverRef.current.style, combinedStyle);
172
+ }
173
+ }, [popoverRef, positionTune]);
165
174
 
166
175
  // On unmount:
167
176
  // - DO NOT "Close()" the coachmark.
@@ -193,9 +202,7 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
193
202
  portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React__default.createElement(Popover, {
194
203
  highContrast: true,
195
204
  caret: true,
196
- style: _objectSpread2({
197
- position: 'absolute'
198
- }, overlayPositionStyle),
205
+ ref: popoverRef,
199
206
  align: align,
200
207
  autoAlign: autoAlign,
201
208
  open: isOpen
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { forwardRef, useState, useRef, useEffect } from 'react';
9
+ import React__default, { forwardRef, useState, useRef, useMemo, useEffect } from 'react';
10
10
  import uuidv4 from '../../global/js/utils/uuidv4.js';
11
11
  import PropTypes from '../../_virtual/index.js';
12
12
  import cx from 'classnames';
@@ -17,6 +17,7 @@ import { CoachmarkHeader } from './CoachmarkHeader.js';
17
17
  import { getOffsetTune } from './utils/constants.js';
18
18
  import { useCoachmark } from './utils/context.js';
19
19
  import { COACHMARK_OVERLAY_KIND } from './utils/enums.js';
20
+ import { useIsomorphicEffect } from '../../global/js/hooks/useIsomorphicEffect.js';
20
21
 
21
22
  var _excluded = ["children", "onClose", "fixedIsVisible", "className", "kind", "theme"];
22
23
 
@@ -81,26 +82,27 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
81
82
  }
82
83
  }
83
84
  };
84
- var styledTune = {};
85
- if (isBeacon || isDraggable) {
86
- if (coachmark.targetRect) {
87
- styledTune.left = coachmark.targetRect.x + window.scrollX;
88
- styledTune.top = coachmark.targetRect.y + window.scrollY;
89
- }
90
- if (styledTune.left && styledTune.top) {
91
- if (isBeacon) {
92
- // Compensate for radius of beacon
93
- styledTune.left += 16;
94
- styledTune.top += 16;
85
+ var styledTune = useMemo(function () {
86
+ var style = {};
87
+ if (isBeacon || isDraggable) {
88
+ if (coachmark.targetRect) {
89
+ style.left = coachmark.targetRect.x + window.scrollX;
90
+ style.top = coachmark.targetRect.y + window.scrollY;
95
91
  }
96
- if (isDraggable) {
97
- // Compensate for width and height of target element
98
- var offsetTune = getOffsetTune(coachmark, kind);
99
- styledTune.left += offsetTune.left;
100
- styledTune.top += offsetTune.top;
92
+ if (style.left && style.top) {
93
+ if (isBeacon) {
94
+ style.left = style.left + 16;
95
+ style.top = style.top + 16;
96
+ }
97
+ if (isDraggable) {
98
+ var offsetTune = getOffsetTune(coachmark, kind);
99
+ style.left = style.left + offsetTune.left;
100
+ style.top = style.top + offsetTune.top;
101
+ }
101
102
  }
102
103
  }
103
- }
104
+ return style;
105
+ }, [isBeacon, isDraggable, coachmark, kind]);
104
106
  function handleDragBounds(x, y) {
105
107
  var xRes = x;
106
108
  var yRes = y;
@@ -139,10 +141,19 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
139
141
  overlay.style.bottom = 'auto';
140
142
  }
141
143
  var contentId = uuidv4();
144
+ useIsomorphicEffect(function () {
145
+ if (overlayRef.current) {
146
+ var _overlayRef$current;
147
+ var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.style;
148
+ Object.keys(styledTune).forEach(function (key) {
149
+ var value = styledTune[key];
150
+ currentStyle.setProperty(key, "".concat(value, "px"));
151
+ });
152
+ }
153
+ }, [styledTune, overlayRef]);
142
154
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
143
155
  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),
144
156
  ref: overlayRef,
145
- style: styledTune,
146
157
  "aria-labelledby": contentId,
147
158
  tabIndex: -1
148
159
  }, getDevtoolsProps(componentName)), isDraggable ? /*#__PURE__*/React__default.createElement(CoachmarkDragbar, {
@@ -17,7 +17,7 @@ import { COACHMARK_OVERLAY_KIND } from './enums.js';
17
17
  */
18
18
 
19
19
  function useClickOutsideElement(coachmarkRef, overlayRef, overlayKind, callback) {
20
- var cb = useRef();
20
+ var cb = useRef(undefined);
21
21
  var isTooltip = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
22
22
  useLayoutEffect(function () {
23
23
  cb.current = callback;
@@ -60,8 +60,8 @@ var CoachmarkOverlayElements = /*#__PURE__*/React__default.forwardRef(function (
60
60
  _ref$closeButtonLabel = _ref.closeButtonLabel,
61
61
  closeButtonLabel = _ref$closeButtonLabel === void 0 ? defaults.closeButtonLabel : _ref$closeButtonLabel,
62
62
  rest = _objectWithoutProperties(_ref, _excluded);
63
- var buttonFocusRef = useRef();
64
- var scrollRef = useRef();
63
+ var buttonFocusRef = useRef(undefined);
64
+ var scrollRef = useRef(undefined);
65
65
  var _useState = useState(0),
66
66
  _useState2 = _slicedToArray(_useState, 2),
67
67
  scrollPosition = _useState2[0],
@@ -89,7 +89,7 @@ var CoachmarkStack = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
89
89
  setParentHeight = _useState6[1];
90
90
  // parent height = child height when stacked behind a child that is shorter
91
91
  var childArray = Children.toArray(children);
92
- var mountedRef = useRef();
92
+ var mountedRef = useRef(undefined);
93
93
  // same value as CSS animation speed
94
94
  var delayMs = 240;
95
95
 
@@ -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
@@ -25,8 +25,6 @@ import { ItemOptionForValueField } from '../ConditionBuilderItem/ConditionBuilde
25
25
  import { useTranslations } from '../utils/useTranslations.js';
26
26
  import { useDataConfigs } from '../utils/useDataConfigs.js';
27
27
 
28
- var _div;
29
-
30
28
  /**
31
29
  * This component build each block of condition consisting of property, operator value and close button.
32
30
  */
@@ -188,9 +186,7 @@ var ConditionBlock = function ConditionBlock(props) {
188
186
  onChange: function onChange(op) {
189
187
  return onConnectorOperatorChange === null || onConnectorOperatorChange === void 0 ? void 0 : onConnectorOperatorChange(op);
190
188
  }
191
- }) : _div || (_div = /*#__PURE__*/React__default.createElement("div", {
192
- role: "gridcell"
193
- })), isStatement && /*#__PURE__*/React__default.createElement(ConditionBuilderItem, {
189
+ }) : '', isStatement && /*#__PURE__*/React__default.createElement(ConditionBuilderItem, {
194
190
  label: group.statement,
195
191
  title: conditionText,
196
192
  "data-name": "connectorField",
@@ -264,7 +260,8 @@ var ConditionBlock = function ConditionBlock(props) {
264
260
  onBlur: handleHideDeletionPreview,
265
261
  renderIcon: Close,
266
262
  className: "".concat(blockClass, "__close-condition"),
267
- "data-name": "closeCondition"
263
+ "data-name": "closeCondition",
264
+ wrapperClassName: "".concat(blockClass, "__close-condition-wrapper")
268
265
  })), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React__default.createElement(ConditionBuilderAdd, {
269
266
  onClick: function onClick() {
270
267
  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.
@@ -53,10 +53,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
53
53
  className: "".concat(className, " ").concat(blockClass, "__connector--disabled")
54
54
  }, /*#__PURE__*/React__default.createElement(ConditionBuilderButton, {
55
55
  label: operator
56
- })) :
57
- /*#__PURE__*/
58
- // <div className={className} {...rest}>
59
- React__default.createElement(ConditionBuilderItem, _extends({
56
+ })) : /*#__PURE__*/React__default.createElement(ConditionBuilderItem, _extends({
60
57
  label: operator,
61
58
  title: connectorText,
62
59
  "data-name": "connectorField",
@@ -76,10 +73,7 @@ var ConditionConnector = function ConditionConnector(_ref) {
76
73
  label: connectorText
77
74
  },
78
75
  onChange: onChangeHandler
79
- }))
80
-
81
- // </div>
82
- ;
76
+ }));
83
77
  };
84
78
  ConditionConnector.propTypes = {
85
79
  /**
@@ -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.
@@ -113,7 +113,6 @@ var ConditionBuilderContent = function ConditionBuilderContent(_ref) {
113
113
  var addConditionGroupHandler = function addConditionGroupHandler() {
114
114
  var newGroup = {
115
115
  statement: 'ifAll',
116
- // 'if|exclude if',
117
116
  groupOperator: 'and',
118
117
  id: uuidv4(),
119
118
  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
@@ -63,6 +63,9 @@ var ItemOption = function ItemOption(_ref) {
63
63
  className: "".concat(blockClass, "__statement_wrapper")
64
64
  }, /*#__PURE__*/React__default.createElement("div", null, option.text1, " (", option.connector, ")"), /*#__PURE__*/React__default.createElement("div", null, option.text2));
65
65
  };
66
+ var preventDefault = function preventDefault(evt) {
67
+ return evt.preventDefault();
68
+ };
66
69
  if (!allOptions) {
67
70
  return;
68
71
  }
@@ -75,7 +78,8 @@ var ItemOption = function ItemOption(_ref) {
75
78
  size: "sm",
76
79
  labelText: clearSearchText,
77
80
  closeButtonLabelText: clearSearchText,
78
- onChange: onSearchChangeHandler
81
+ onChange: onSearchChangeHandler,
82
+ onKeyDown: preventDefault
79
83
  })), /*#__PURE__*/React__default.createElement("ul", {
80
84
  "aria-label": getAriaLabel(),
81
85
  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
@@ -44,6 +44,7 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
44
44
  });
45
45
  var selection = Array.isArray(conditionState.value) ? conditionState.value : conditionState.value !== undefined ? [conditionState.value] : [];
46
46
  useEffect(function () {
47
+ //this commented code is kept as intentional. Alternate approach to pass async options instead of getOptions callback.
47
48
  // if(rest['data-name'] == 'valueField'){
48
49
  // const fetchData = async () => {
49
50
  // const response = await config.options(conditionState);
@@ -132,6 +133,9 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
132
133
  var getAriaLabel = function getAriaLabel() {
133
134
  return conditionState.label ? conditionState.label : conditionState.property ? conditionState.property : propertyText;
134
135
  };
136
+ var preventDefault = function preventDefault(evt) {
137
+ return evt.preventDefault();
138
+ };
135
139
  if (!allOptions) {
136
140
  return _SelectSkeleton || (_SelectSkeleton = /*#__PURE__*/React__default.createElement(SelectSkeleton, null));
137
141
  }
@@ -144,7 +148,8 @@ var ItemOptionForValueField = function ItemOptionForValueField(_ref) {
144
148
  size: "sm",
145
149
  labelText: clearSearchText,
146
150
  closeButtonLabelText: clearSearchText,
147
- onChange: onSearchChangeHandler
151
+ onChange: onSearchChangeHandler,
152
+ onKeyDown: preventDefault
148
153
  })), multiSelectable && /*#__PURE__*/React__default.createElement("div", {
149
154
  className: "".concat(blockClass, "__multiselectSelectionStatusContainer")
150
155
  }, /*#__PURE__*/React__default.createElement("h4", null, /*#__PURE__*/React__default.createElement("label", null, selection.length, "/", allOptions.length, " Selected")), /*#__PURE__*/React__default.createElement(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