@carbon/ibm-products 2.89.0 → 2.90.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 (919) hide show
  1. package/css/carbon.css +374 -417
  2. package/css/carbon.css.map +1 -1
  3. package/css/index-full-carbon.css +496 -430
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +1 -1
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +117 -13
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +143 -13
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +1 -1
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +359 -283
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +1 -1
  18. package/css/index.min.css.map +1 -1
  19. package/es/_virtual/_rolldown/runtime.js +13 -22
  20. package/es/components/APIKeyModal/APIKeyDownloader.js +19 -3
  21. package/es/components/APIKeyModal/APIKeyModal.js +161 -3
  22. package/es/components/AboutModal/AboutModal.js +44 -3
  23. package/es/components/ActionBar/ActionBar.js +41 -3
  24. package/es/components/ActionBar/ActionBarItem.js +30 -3
  25. package/es/components/ActionBar/ActionBarOverflowItems.js +20 -3
  26. package/es/components/ActionSet/ActionSet.js +35 -3
  27. package/es/components/AddSelect/AddSelect.js +7 -3
  28. package/es/components/AddSelect/AddSelectBody.js +3 -3
  29. package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -3
  30. package/es/components/AddSelect/AddSelectColumn.js +2 -4
  31. package/es/components/AddSelect/AddSelectFilter.js +1 -3
  32. package/es/components/AddSelect/AddSelectFormControl.js +1 -3
  33. package/es/components/AddSelect/AddSelectList.js +1 -3
  34. package/es/components/AddSelect/AddSelectMetaPanel.js +1 -3
  35. package/es/components/AddSelect/AddSelectRow.js +1 -3
  36. package/es/components/AddSelect/AddSelectSidebar.js +1 -3
  37. package/es/components/AddSelect/AddSelectSort.js +1 -3
  38. package/es/components/AddSelect/add-select-utils.js +1 -2
  39. package/es/components/AddSelect/hooks/useFocus.js +1 -3
  40. package/es/components/AddSelect/hooks/useItemSort.js +1 -3
  41. package/es/components/AddSelect/hooks/useParentSelect.js +1 -3
  42. package/es/components/AddSelect/hooks/usePath.js +1 -3
  43. package/es/components/BigNumber/BigNumber.js +52 -6
  44. package/es/components/BigNumber/BigNumberSkeleton.js +12 -9
  45. package/es/components/BigNumber/constants.js +1 -19
  46. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +37 -3
  47. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +28 -4
  48. package/es/components/Card/Card.js +20 -3
  49. package/es/components/Card/CardFooter.js +1 -3
  50. package/es/components/Card/CardHeader.js +12 -3
  51. package/es/components/Carousel/Carousel.js +33 -3
  52. package/es/components/Carousel/CarouselItem.js +7 -3
  53. package/es/components/Cascade/Cascade.js +12 -3
  54. package/es/components/Checklist/Checklist.js +65 -11
  55. package/es/components/Checklist/ChecklistChart.js +13 -7
  56. package/es/components/Checklist/ChecklistIcon.js +17 -11
  57. package/es/components/Coachmark/Coachmark.js +60 -6
  58. package/es/components/Coachmark/CoachmarkDragbar.js +17 -3
  59. package/es/components/Coachmark/CoachmarkHeader.js +13 -3
  60. package/es/components/Coachmark/CoachmarkOverlay.js +24 -6
  61. package/es/components/Coachmark/CoachmarkTagline.js +13 -3
  62. package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts +5 -1
  63. package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
  64. package/es/components/Coachmark/next/Coachmark/Coachmark.js +56 -9
  65. package/es/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.js +17 -3
  66. package/es/components/Coachmark/next/Coachmark/CoachmarkContent.js +8 -3
  67. package/es/components/Coachmark/next/Coachmark/CoachmarkTagline/CoachmarkTagline.js +18 -3
  68. package/es/components/Coachmark/next/Coachmark/ContentBody.js +8 -3
  69. package/es/components/Coachmark/next/Coachmark/ContentHeader.js +13 -3
  70. package/es/components/Coachmark/next/Coachmark/context.js +1 -3
  71. package/es/components/Coachmark/utils/constants.js +15 -23
  72. package/es/components/Coachmark/utils/context.js +1 -3
  73. package/es/components/Coachmark/utils/enums.js +1 -2
  74. package/es/components/Coachmark/utils/hooks.js +3 -5
  75. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +17 -3
  76. package/es/components/CoachmarkButton/CoachmarkButton.js +7 -3
  77. package/es/components/CoachmarkFixed/CoachmarkFixed.js +31 -5
  78. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +14 -3
  79. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +33 -3
  80. package/es/components/CoachmarkStack/CoachmarkStack.js +43 -5
  81. package/es/components/CoachmarkStack/CoachmarkStackHome.js +41 -3
  82. package/es/components/ComboButton/ComboButton.js +5 -3
  83. package/es/components/ComboButton/ComboButtonItem/index.js +5 -3
  84. package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +48 -5
  85. package/es/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
  86. package/es/components/ConditionBuilder/ConditionBuilder.js +65 -4
  87. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +13 -0
  88. package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
  89. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts.map +1 -1
  90. package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +15 -5
  91. package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -3
  92. package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +39 -3
  93. package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +12 -5
  94. package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -3
  95. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
  96. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +37 -15
  97. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
  98. package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +35 -3
  99. package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -2
  100. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +37 -3
  101. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +10 -3
  102. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +10 -3
  103. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +10 -3
  104. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +10 -3
  105. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +13 -3
  106. package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +10 -3
  107. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts.map +1 -1
  108. package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -7
  109. package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +10 -3
  110. package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -8
  111. package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -3
  112. package/es/components/ConditionBuilder/utils/useEvent.js +1 -3
  113. package/es/components/ConditionBuilder/utils/useTranslations.js +1 -3
  114. package/es/components/ConditionBuilder/utils/util.js +1 -3
  115. package/es/components/CreateFullPage/CreateFullPage.js +79 -3
  116. package/es/components/CreateFullPage/CreateFullPageStep.js +51 -3
  117. package/es/components/CreateInfluencer/CreateInfluencer.js +16 -3
  118. package/es/components/CreateModal/CreateModal.js +43 -3
  119. package/es/components/CreateSidePanel/CreateSidePanel.js +59 -3
  120. package/es/components/CreateTearsheet/CreateTearsheet.js +82 -4
  121. package/es/components/CreateTearsheet/CreateTearsheetDivider.js +6 -4
  122. package/es/components/CreateTearsheet/CreateTearsheetStep.js +72 -3
  123. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +56 -3
  124. package/es/components/DataSpreadsheet/DataSpreadsheet.js +61 -3
  125. package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +115 -3
  126. package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +76 -3
  127. package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +1 -3
  128. package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +1 -3
  129. package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -3
  130. package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +1 -3
  131. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +1 -3
  132. package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +1 -3
  133. package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -3
  134. package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +1 -3
  135. package/es/components/DataSpreadsheet/utils/checkForHoldingKey.js +1 -2
  136. package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +1 -3
  137. package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
  138. package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +1 -3
  139. package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -3
  140. package/es/components/DataSpreadsheet/utils/getCellSize.js +1 -3
  141. package/es/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +1 -2
  142. package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -3
  143. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +1 -3
  144. package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +1 -3
  145. package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +1 -3
  146. package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
  147. package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
  148. package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -3
  149. package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +1 -3
  150. package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -3
  151. package/es/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
  152. package/es/components/Datagrid/Datagrid/Datagrid.js +9 -3
  153. package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -3
  154. package/es/components/Datagrid/Datagrid/DatagridContent.js +3 -5
  155. package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -3
  156. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -3
  157. package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -3
  158. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -5
  159. package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -3
  160. package/es/components/Datagrid/Datagrid/DatagridRow.js +3 -5
  161. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -3
  162. package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -3
  163. package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -3
  164. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -3
  165. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
  166. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -3
  167. package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +6 -4
  168. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -3
  169. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -3
  170. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -3
  171. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -3
  172. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -3
  173. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -3
  174. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -2
  175. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +43 -3
  176. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +19 -14
  177. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -10
  178. package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -3
  179. package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -2
  180. package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -2
  181. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -3
  182. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +9 -11
  183. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -3
  184. package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -3
  185. package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +10 -12
  186. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -3
  187. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -3
  188. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -3
  189. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +1 -2
  190. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -3
  191. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +1 -2
  192. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +1 -3
  193. package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +1 -3
  194. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -3
  195. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -3
  196. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -3
  197. package/es/components/Datagrid/common-column-ids.js +1 -2
  198. package/es/components/Datagrid/useActionsColumn.js +1 -3
  199. package/es/components/Datagrid/useColumnCenterAlign.js +1 -3
  200. package/es/components/Datagrid/useColumnOrder.js +1 -3
  201. package/es/components/Datagrid/useColumnRightAlign.js +1 -3
  202. package/es/components/Datagrid/useCustomizeColumns.js +1 -3
  203. package/es/components/Datagrid/useDatagrid.js +1 -3
  204. package/es/components/Datagrid/useDefaultStringRenderer.js +1 -3
  205. package/es/components/Datagrid/useDisableSelectRows.js +1 -2
  206. package/es/components/Datagrid/useEditableCell.js +1 -3
  207. package/es/components/Datagrid/useExpandedRow.js +1 -3
  208. package/es/components/Datagrid/useFiltering.js +1 -3
  209. package/es/components/Datagrid/useFlexResize.js +1 -3
  210. package/es/components/Datagrid/useFloatingScroll.js +1 -3
  211. package/es/components/Datagrid/useFocusRowExpander.js +1 -3
  212. package/es/components/Datagrid/useInfiniteScroll.js +1 -3
  213. package/es/components/Datagrid/useInitialColumnSort.js +1 -3
  214. package/es/components/Datagrid/useInlineEdit.js +1 -3
  215. package/es/components/Datagrid/useNestedRowExpander.js +1 -3
  216. package/es/components/Datagrid/useNestedRows.js +1 -3
  217. package/es/components/Datagrid/useOnRowClick.js +1 -3
  218. package/es/components/Datagrid/useParentDimensions.js +1 -3
  219. package/es/components/Datagrid/useResizeTable.js +1 -3
  220. package/es/components/Datagrid/useRowExpander.js +1 -3
  221. package/es/components/Datagrid/useRowIsMouseOver.js +1 -3
  222. package/es/components/Datagrid/useRowRenderer.js +1 -3
  223. package/es/components/Datagrid/useRowSize.js +1 -3
  224. package/es/components/Datagrid/useSelectAllToggle.js +4 -6
  225. package/es/components/Datagrid/useSelectRows.js +1 -3
  226. package/es/components/Datagrid/useSkeletonRows.js +1 -2
  227. package/es/components/Datagrid/useSortableColumns.js +1 -3
  228. package/es/components/Datagrid/useStickyColumn.js +1 -3
  229. package/es/components/Datagrid/utils/getAutoSizedColumnWidth.js +1 -2
  230. package/es/components/Decorator/Decorator.js +55 -3
  231. package/es/components/DecoratorBase/DecoratorBase.js +4 -3
  232. package/es/components/DecoratorBase/DecoratorIcon.js +10 -3
  233. package/es/components/DecoratorBase/utils.js +1 -2
  234. package/es/components/DecoratorDualButton/DecoratorDualButton.js +74 -3
  235. package/es/components/DecoratorLink/DecoratorLink.js +66 -3
  236. package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +66 -3
  237. package/es/components/DelimitedList/DelimitedList.js +13 -3
  238. package/es/components/DescriptionList/DescriptionList.js +5 -3
  239. package/es/components/DescriptionList/DescriptionListBody.js +3 -3
  240. package/es/components/DescriptionList/DescriptionListCell.js +3 -3
  241. package/es/components/DescriptionList/DescriptionListRow.js +3 -3
  242. package/es/components/DescriptionList/constants.js +1 -2
  243. package/es/components/EditFullPage/EditFullPage.js +7 -3
  244. package/es/components/EditInPlace/EditInPlace.d.ts.map +1 -1
  245. package/es/components/EditInPlace/EditInPlace.js +136 -28
  246. package/es/components/EditSidePanel/EditSidePanel.js +66 -3
  247. package/es/components/EditTearsheet/EditTearsheet.js +53 -3
  248. package/es/components/EditTearsheet/EditTearsheetForm.js +33 -3
  249. package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +7 -3
  250. package/es/components/EditUpdateCards/EditUpdateCards.js +70 -3
  251. package/es/components/EmptyStates/EmptyState.js +41 -9
  252. package/es/components/EmptyStates/EmptyStateContent.js +21 -3
  253. package/es/components/EmptyStates/EmptyStateIllustration.deprecated.js +1 -3
  254. package/es/components/EmptyStates/EmptyStateV2.deprecated.js +39 -3
  255. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +37 -3
  256. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +37 -3
  257. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +37 -3
  258. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +37 -3
  259. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +37 -3
  260. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +37 -3
  261. package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -3
  262. package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -3
  263. package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -3
  264. package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -3
  265. package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -3
  266. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -3
  267. package/es/components/ExportModal/ExportModal.js +80 -3
  268. package/es/components/ExpressiveCard/ExpressiveCard.js +76 -3
  269. package/es/components/FeatureFlags/index.js +4 -3
  270. package/es/components/FilterPanel/FilterPanel.js +10 -3
  271. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +19 -3
  272. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +22 -3
  273. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +16 -3
  274. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +34 -3
  275. package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +16 -3
  276. package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +13 -3
  277. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +13 -4
  278. package/es/components/FilterSummary/FilterSummary.js +2 -3
  279. package/es/components/FullPageError/FullPageError.js +20 -3
  280. package/es/components/FullPageError/assets/Error403SVG.js +1 -3
  281. package/es/components/FullPageError/assets/Error404SVG.js +1 -3
  282. package/es/components/FullPageError/assets/ErrorGenericSVG.js +1 -3
  283. package/es/components/GetStartedCard/GetStartedCard.js +37 -3
  284. package/es/components/Guidebanner/Guidebanner.js +49 -5
  285. package/es/components/Guidebanner/GuidebannerElement.js +14 -3
  286. package/es/components/Guidebanner/GuidebannerElementButton.js +11 -3
  287. package/es/components/Guidebanner/GuidebannerElementLink.js +7 -3
  288. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +23 -3
  289. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +23 -3
  290. package/es/components/HTTPErrors/HTTPErrorContent.js +19 -3
  291. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +23 -3
  292. package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -3
  293. package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -3
  294. package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -3
  295. package/es/components/ImportModal/ImportModal.js +88 -3
  296. package/es/components/InlineTip/InlineTip.js +56 -3
  297. package/es/components/InlineTip/InlineTipButton.js +7 -3
  298. package/es/components/InlineTip/InlineTipLink.js +7 -3
  299. package/es/components/InlineTip/utils.js +1 -2
  300. package/es/components/InterstitialScreen/InterstitialScreen.js +23 -3
  301. package/es/components/InterstitialScreen/InterstitialScreenBody.js +13 -3
  302. package/es/components/InterstitialScreen/InterstitialScreenFooter.js +24 -3
  303. package/es/components/InterstitialScreen/InterstitialScreenHeader.js +20 -3
  304. package/es/components/InterstitialScreen/InterstitialScreenView.js +13 -3
  305. package/es/components/InterstitialScreen/context.js +1 -3
  306. package/es/components/MultiAddSelect/MultiAddSelect.js +81 -3
  307. package/es/components/Nav/Nav.js +16 -3
  308. package/es/components/Nav/NavItem.js +37 -3
  309. package/es/components/Nav/NavItemLink.js +4 -4
  310. package/es/components/Nav/NavList.js +12 -3
  311. package/es/components/NonLinearReading/NonLinearReading.js +13 -3
  312. package/es/components/NotificationsPanel/NotificationsPanel.js +118 -3
  313. package/es/components/NotificationsPanel/utils.js +1 -2
  314. package/es/components/OptionsTile/OptionsTile.js +52 -3
  315. package/es/components/PageHeader/PageHeader.js +219 -3
  316. package/es/components/PageHeader/PageHeaderTitle.js +24 -3
  317. package/es/components/PageHeader/PageHeaderUtils.js +1 -3
  318. package/es/components/PageHeader/next/PageHeader.d.ts +2 -1
  319. package/es/components/PageHeader/next/PageHeader.d.ts.map +1 -1
  320. package/es/components/PageHeader/next/PageHeader.js +1 -3
  321. package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
  322. package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.js +2 -6
  323. package/es/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +1 -3
  324. package/es/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +16 -3
  325. package/es/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
  326. package/es/components/PageHeader/next/PageHeaderContent.js +32 -9
  327. package/es/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
  328. package/es/components/PageHeader/next/PageHeaderContentPageActions.js +21 -7
  329. package/es/components/PageHeader/next/PageHeaderContentText.js +10 -3
  330. package/es/components/PageHeader/next/PageHeaderHeroImage.d.ts +13 -1
  331. package/es/components/PageHeader/next/PageHeaderHeroImage.d.ts.map +1 -1
  332. package/es/components/PageHeader/next/PageHeaderHeroImage.js +22 -6
  333. package/es/components/PageHeader/next/PageHeaderScrollButton.js +1 -3
  334. package/es/components/PageHeader/next/PageHeaderTabBar.js +3 -5
  335. package/es/components/PageHeader/next/PageHeaderTagOverflow.js +1 -3
  336. package/es/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +1 -3
  337. package/es/components/PageHeader/next/context.d.ts +2 -2
  338. package/es/components/PageHeader/next/context.d.ts.map +1 -1
  339. package/es/components/PageHeader/next/context.js +1 -3
  340. package/es/components/PageHeader/next/index.js +1 -3
  341. package/es/components/PageHeader/next/overflowHandler.js +1 -2
  342. package/es/components/PageHeader/next/utils.js +1 -2
  343. package/es/components/ProductiveCard/ProductiveCard.js +93 -3
  344. package/es/components/RemoveModal/RemoveModal.js +58 -3
  345. package/es/components/Saving/Saving.js +43 -3
  346. package/es/components/ScrollGradient/ScrollGradient.js +12 -3
  347. package/es/components/ScrollGradient/constants.js +1 -3
  348. package/es/components/SearchBar/SearchBar.js +31 -4
  349. package/es/components/SidePanel/SidePanel.js +116 -3
  350. package/es/components/SidePanel/constants.js +1 -2
  351. package/es/components/SimpleHeader/SimpleHeader.js +15 -3
  352. package/es/components/SingleAddSelect/SingleAddSelect.js +52 -3
  353. package/es/components/StatusIcon/StatusIcon.js +16 -3
  354. package/es/components/StatusIndicator/StatusIndicator.js +21 -3
  355. package/es/components/StatusIndicator/StatusIndicatorStep.js +13 -3
  356. package/es/components/StringFormatter/StringFormatter.js +9 -3
  357. package/es/components/StringFormatter/utils/enums.js +1 -2
  358. package/es/components/TagOverflow/TagOverflow.js +65 -3
  359. package/es/components/TagOverflow/TagOverflowModal.js +1 -3
  360. package/es/components/TagOverflow/TagOverflowPopover.js +31 -3
  361. package/es/components/TagOverflow/constants.js +1 -2
  362. package/es/components/TagSet/TagSet.js +66 -3
  363. package/es/components/TagSet/TagSetModal.js +1 -3
  364. package/es/components/TagSet/TagSetOverflow.js +38 -3
  365. package/es/components/Tearsheet/Tearsheet.js +103 -4
  366. package/es/components/Tearsheet/TearsheetNarrow.js +76 -4
  367. package/es/components/Tearsheet/TearsheetPresence.js +1 -3
  368. package/es/components/Tearsheet/TearsheetShell.js +119 -3
  369. package/es/components/Tearsheet/next/StackContext.js +1 -3
  370. package/es/components/Tearsheet/next/Tearsheet.js +1 -3
  371. package/es/components/Tearsheet/next/TearsheetBody.js +1 -3
  372. package/es/components/Tearsheet/next/TearsheetFooter.js +1 -3
  373. package/es/components/Tearsheet/next/TearsheetHeader.js +1 -3
  374. package/es/components/Tearsheet/next/TearsheetHeaderActions.js +1 -3
  375. package/es/components/Tearsheet/next/TearsheetHeaderContent.js +1 -3
  376. package/es/components/Tearsheet/next/context.js +1 -3
  377. package/es/components/Tearsheet/usePresence.js +7 -3
  378. package/es/components/Tearsheet/usePresenceContext.js +1 -3
  379. package/es/components/Toolbar/Toolbar.js +4 -3
  380. package/es/components/Toolbar/ToolbarButton.js +12 -4
  381. package/es/components/Toolbar/ToolbarGroup.js +3 -3
  382. package/es/components/TooltipTrigger/TooltipTrigger.js +7 -3
  383. package/es/components/TruncatedList/TruncatedList.js +32 -3
  384. package/es/components/TruncatedText/TruncatedText.d.ts.map +1 -1
  385. package/es/components/TruncatedText/TruncatedText.js +7 -6
  386. package/es/components/TruncatedText/useTruncatedText.js +1 -3
  387. package/es/components/UserAvatar/UserAvatar.js +32 -3
  388. package/es/components/UserProfileImage/UserProfileImage.js +37 -3
  389. package/es/components/WebTerminal/WebTerminal.js +27 -3
  390. package/es/components/WebTerminal/WebTerminalContentWrapper.js +6 -4
  391. package/es/components/WebTerminal/hooks/index.js +6 -4
  392. package/es/components/_Canary/Canary.js +3 -3
  393. package/es/global/js/hooks/useActiveElement.js +1 -3
  394. package/es/global/js/hooks/useClickOutside.js +1 -3
  395. package/es/global/js/hooks/useCollapsible.js +1 -3
  396. package/es/global/js/hooks/useControllableState.js +1 -3
  397. package/es/global/js/hooks/useCreateComponentFocus.js +1 -3
  398. package/es/global/js/hooks/useCreateComponentStepChange.js +1 -3
  399. package/es/global/js/hooks/useFocus.js +1 -3
  400. package/es/global/js/hooks/useIsomorphicEffect.js +1 -3
  401. package/es/global/js/hooks/useMatchMedia.js +1 -3
  402. package/es/global/js/hooks/useMergedRefs.js +1 -3
  403. package/es/global/js/hooks/useOverflowItems/useOverflowItems.js +1 -3
  404. package/es/global/js/hooks/useOverflowString.js +1 -3
  405. package/es/global/js/hooks/usePortalTarget.js +1 -3
  406. package/es/global/js/hooks/usePrefersReducedMotion.js +1 -3
  407. package/es/global/js/hooks/usePrefix.js +1 -3
  408. package/es/global/js/hooks/usePresence.js +1 -3
  409. package/es/global/js/hooks/usePreviousValue.js +1 -3
  410. package/es/global/js/hooks/useResetCreateComponent.js +1 -3
  411. package/es/global/js/hooks/useResizeObserver.js +1 -3
  412. package/es/global/js/hooks/useRetrieveFormTitles.js +1 -3
  413. package/es/global/js/hooks/useRetrieveStepData.js +1 -3
  414. package/es/global/js/hooks/useValidCreateStepCount.js +1 -3
  415. package/es/global/js/hooks/useWindowResize.js +1 -3
  416. package/es/global/js/hooks/useWindowScroll.js +1 -3
  417. package/es/global/js/package-settings.js +1 -2
  418. package/es/global/js/utils/Wrap.js +25 -3
  419. package/es/global/js/utils/checkForOverflow.js +1 -2
  420. package/es/global/js/utils/clamp.js +1 -2
  421. package/es/global/js/utils/debounce.js +1 -2
  422. package/es/global/js/utils/deepCloneObject.js +1 -2
  423. package/es/global/js/utils/deepCompareObject.js +1 -2
  424. package/es/global/js/utils/devtools.js +1 -3
  425. package/es/global/js/utils/getFocusableElements.js +1 -2
  426. package/es/global/js/utils/getNodeTextContent.js +1 -2
  427. package/es/global/js/utils/getNumberOfHiddenSteps.js +1 -2
  428. package/es/global/js/utils/getScrollbarWidth.js +1 -2
  429. package/es/global/js/utils/getSupportedLocale.js +1 -2
  430. package/es/global/js/utils/lastIndexInArray.js +1 -2
  431. package/es/global/js/utils/makeDraggable/makeDraggable.js +1 -2
  432. package/es/global/js/utils/pconsole.js +5 -11
  433. package/es/global/js/utils/props-helper.js +1 -3
  434. package/es/global/js/utils/rangeWithCallback.js +1 -2
  435. package/es/global/js/utils/scrollableAncestor.js +1 -2
  436. package/es/global/js/utils/throttle.js +1 -2
  437. package/es/global/js/utils/useId.js +1 -3
  438. package/es/global/js/utils/uuidv4.js +1 -2
  439. package/es/global/js/utils/wait.js +1 -2
  440. package/es/index.js +2 -5
  441. package/es/node_modules/@carbon/colors/es/index.js +1 -2
  442. package/es/node_modules/@carbon/icon-helpers/es/index.js +1 -2
  443. package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -3
  444. package/es/node_modules/@carbon/icons-react/es/generated/bucket-11.js +351 -328
  445. package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +185 -192
  446. package/es/node_modules/@carbon/icons-react/es/{iconPropTypes-B1cP964Y.js → iconPropTypes-BElKp6Sn.js} +2 -4
  447. package/es/node_modules/classnames/index.js +1 -4
  448. package/es/settings.js +1 -3
  449. package/lib/_virtual/_rolldown/runtime.js +13 -23
  450. package/lib/components/APIKeyModal/APIKeyDownloader.js +21 -5
  451. package/lib/components/APIKeyModal/APIKeyModal.js +170 -12
  452. package/lib/components/AboutModal/AboutModal.js +51 -10
  453. package/lib/components/ActionBar/ActionBar.js +49 -11
  454. package/lib/components/ActionBar/ActionBarItem.js +33 -6
  455. package/lib/components/ActionBar/ActionBarOverflowItems.js +24 -7
  456. package/lib/components/ActionSet/ActionSet.js +40 -8
  457. package/lib/components/AddSelect/AddSelect.js +10 -6
  458. package/lib/components/AddSelect/AddSelectBody.js +19 -19
  459. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +4 -6
  460. package/lib/components/AddSelect/AddSelectColumn.js +9 -11
  461. package/lib/components/AddSelect/AddSelectFilter.js +4 -6
  462. package/lib/components/AddSelect/AddSelectFormControl.js +4 -6
  463. package/lib/components/AddSelect/AddSelectList.js +6 -8
  464. package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -5
  465. package/lib/components/AddSelect/AddSelectRow.js +5 -7
  466. package/lib/components/AddSelect/AddSelectSidebar.js +5 -7
  467. package/lib/components/AddSelect/AddSelectSort.js +3 -5
  468. package/lib/components/AddSelect/add-select-utils.js +1 -3
  469. package/lib/components/AddSelect/hooks/useFocus.js +2 -4
  470. package/lib/components/AddSelect/hooks/useItemSort.js +2 -4
  471. package/lib/components/AddSelect/hooks/useParentSelect.js +2 -4
  472. package/lib/components/AddSelect/hooks/usePath.js +2 -4
  473. package/lib/components/BigNumber/BigNumber.js +59 -13
  474. package/lib/components/BigNumber/BigNumberSkeleton.js +16 -13
  475. package/lib/components/BigNumber/constants.js +1 -22
  476. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +49 -15
  477. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +33 -9
  478. package/lib/components/Card/Card.js +25 -8
  479. package/lib/components/Card/CardFooter.js +4 -6
  480. package/lib/components/Card/CardHeader.js +15 -6
  481. package/lib/components/Carousel/Carousel.js +39 -9
  482. package/lib/components/Carousel/CarouselItem.js +11 -7
  483. package/lib/components/Cascade/Cascade.js +16 -7
  484. package/lib/components/Checklist/Checklist.js +72 -18
  485. package/lib/components/Checklist/ChecklistChart.js +19 -13
  486. package/lib/components/Checklist/ChecklistIcon.js +21 -15
  487. package/lib/components/Coachmark/Coachmark.js +69 -15
  488. package/lib/components/Coachmark/CoachmarkDragbar.js +22 -8
  489. package/lib/components/Coachmark/CoachmarkHeader.js +18 -8
  490. package/lib/components/Coachmark/CoachmarkOverlay.js +35 -17
  491. package/lib/components/Coachmark/CoachmarkTagline.js +18 -8
  492. package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts +5 -1
  493. package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
  494. package/lib/components/Coachmark/next/Coachmark/Coachmark.js +64 -17
  495. package/lib/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.js +21 -7
  496. package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.js +12 -7
  497. package/lib/components/Coachmark/next/Coachmark/CoachmarkTagline/CoachmarkTagline.js +22 -7
  498. package/lib/components/Coachmark/next/Coachmark/ContentBody.js +11 -6
  499. package/lib/components/Coachmark/next/Coachmark/ContentHeader.js +18 -8
  500. package/lib/components/Coachmark/next/Coachmark/context.js +4 -7
  501. package/lib/components/Coachmark/utils/constants.js +15 -23
  502. package/lib/components/Coachmark/utils/context.js +2 -4
  503. package/lib/components/Coachmark/utils/enums.js +1 -3
  504. package/lib/components/Coachmark/utils/hooks.js +5 -7
  505. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +21 -7
  506. package/lib/components/CoachmarkButton/CoachmarkButton.js +12 -8
  507. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +40 -14
  508. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +18 -7
  509. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +41 -11
  510. package/lib/components/CoachmarkStack/CoachmarkStack.js +52 -14
  511. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +48 -10
  512. package/lib/components/ComboButton/ComboButton.js +9 -7
  513. package/lib/components/ComboButton/ComboButtonItem/index.js +6 -4
  514. package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +64 -21
  515. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
  516. package/lib/components/ConditionBuilder/ConditionBuilder.js +72 -11
  517. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +13 -0
  518. package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
  519. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts.map +1 -1
  520. package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +25 -15
  521. package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +35 -9
  522. package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +43 -7
  523. package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +19 -12
  524. package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +8 -10
  525. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
  526. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +46 -24
  527. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
  528. package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +37 -5
  529. package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -3
  530. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +45 -11
  531. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +14 -7
  532. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +13 -6
  533. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +14 -7
  534. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +14 -7
  535. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +15 -5
  536. package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +12 -5
  537. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts.map +1 -1
  538. package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -18
  539. package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +16 -9
  540. package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -8
  541. package/lib/components/ConditionBuilder/utils/useDataConfigs.js +4 -6
  542. package/lib/components/ConditionBuilder/utils/useEvent.js +2 -4
  543. package/lib/components/ConditionBuilder/utils/useTranslations.js +4 -6
  544. package/lib/components/ConditionBuilder/utils/util.js +2 -5
  545. package/lib/components/CreateFullPage/CreateFullPage.js +92 -16
  546. package/lib/components/CreateFullPage/CreateFullPageStep.js +58 -10
  547. package/lib/components/CreateInfluencer/CreateInfluencer.js +20 -7
  548. package/lib/components/CreateModal/CreateModal.js +48 -8
  549. package/lib/components/CreateSidePanel/CreateSidePanel.js +65 -9
  550. package/lib/components/CreateTearsheet/CreateTearsheet.js +96 -18
  551. package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +9 -7
  552. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +79 -10
  553. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +62 -9
  554. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +85 -27
  555. package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +128 -16
  556. package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +88 -15
  557. package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -4
  558. package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +4 -6
  559. package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +3 -5
  560. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +4 -6
  561. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -6
  562. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +4 -6
  563. package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +4 -6
  564. package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -4
  565. package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +1 -3
  566. package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +2 -4
  567. package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +11 -13
  568. package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +3 -5
  569. package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +4 -6
  570. package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -4
  571. package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +1 -3
  572. package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -4
  573. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -4
  574. package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -4
  575. package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +3 -5
  576. package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -5
  577. package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +5 -7
  578. package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +4 -6
  579. package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +3 -5
  580. package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -4
  581. package/lib/components/DataSpreadsheet/utils/selectAllCells.js +3 -5
  582. package/lib/components/Datagrid/Datagrid/Datagrid.js +17 -11
  583. package/lib/components/Datagrid/Datagrid/DatagridBody.js +6 -8
  584. package/lib/components/Datagrid/Datagrid/DatagridContent.js +19 -21
  585. package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +7 -9
  586. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +4 -6
  587. package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -4
  588. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +10 -12
  589. package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +4 -6
  590. package/lib/components/Datagrid/Datagrid/DatagridRow.js +7 -9
  591. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -8
  592. package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +5 -7
  593. package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -6
  594. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -8
  595. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -8
  596. package/lib/components/Datagrid/Datagrid/DraggableElement.js +4 -6
  597. package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +7 -5
  598. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -5
  599. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +3 -5
  600. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +6 -8
  601. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +6 -8
  602. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -9
  603. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +4 -6
  604. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
  605. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +54 -14
  606. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +31 -26
  607. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +9 -11
  608. package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +4 -6
  609. package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -3
  610. package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -3
  611. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +3 -5
  612. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -18
  613. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +3 -5
  614. package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +3 -5
  615. package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +10 -12
  616. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +4 -6
  617. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +9 -11
  618. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +4 -6
  619. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +1 -3
  620. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +2 -5
  621. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +1 -3
  622. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -6
  623. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +4 -6
  624. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -7
  625. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +3 -5
  626. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -4
  627. package/lib/components/Datagrid/common-column-ids.js +1 -3
  628. package/lib/components/Datagrid/useActionsColumn.js +5 -7
  629. package/lib/components/Datagrid/useColumnCenterAlign.js +4 -6
  630. package/lib/components/Datagrid/useColumnOrder.js +3 -6
  631. package/lib/components/Datagrid/useColumnRightAlign.js +4 -6
  632. package/lib/components/Datagrid/useCustomizeColumns.js +4 -6
  633. package/lib/components/Datagrid/useDatagrid.js +11 -13
  634. package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -6
  635. package/lib/components/Datagrid/useDisableSelectRows.js +1 -3
  636. package/lib/components/Datagrid/useEditableCell.js +2 -4
  637. package/lib/components/Datagrid/useExpandedRow.js +4 -6
  638. package/lib/components/Datagrid/useFiltering.js +4 -6
  639. package/lib/components/Datagrid/useFlexResize.js +2 -4
  640. package/lib/components/Datagrid/useFloatingScroll.js +4 -6
  641. package/lib/components/Datagrid/useFocusRowExpander.js +2 -4
  642. package/lib/components/Datagrid/useInfiniteScroll.js +5 -7
  643. package/lib/components/Datagrid/useInitialColumnSort.js +3 -5
  644. package/lib/components/Datagrid/useInlineEdit.js +5 -7
  645. package/lib/components/Datagrid/useNestedRowExpander.js +6 -8
  646. package/lib/components/Datagrid/useNestedRows.js +5 -7
  647. package/lib/components/Datagrid/useOnRowClick.js +3 -5
  648. package/lib/components/Datagrid/useParentDimensions.js +2 -4
  649. package/lib/components/Datagrid/useResizeTable.js +2 -4
  650. package/lib/components/Datagrid/useRowExpander.js +5 -7
  651. package/lib/components/Datagrid/useRowIsMouseOver.js +3 -5
  652. package/lib/components/Datagrid/useRowRenderer.js +2 -4
  653. package/lib/components/Datagrid/useRowSize.js +3 -5
  654. package/lib/components/Datagrid/useSelectAllToggle.js +9 -11
  655. package/lib/components/Datagrid/useSelectRows.js +8 -10
  656. package/lib/components/Datagrid/useSkeletonRows.js +1 -3
  657. package/lib/components/Datagrid/useSortableColumns.js +6 -8
  658. package/lib/components/Datagrid/useStickyColumn.js +6 -8
  659. package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +1 -3
  660. package/lib/components/Decorator/Decorator.js +65 -13
  661. package/lib/components/DecoratorBase/DecoratorBase.js +9 -8
  662. package/lib/components/DecoratorBase/DecoratorIcon.js +19 -12
  663. package/lib/components/DecoratorBase/utils.js +1 -3
  664. package/lib/components/DecoratorDualButton/DecoratorDualButton.js +84 -13
  665. package/lib/components/DecoratorLink/DecoratorLink.js +76 -13
  666. package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +76 -13
  667. package/lib/components/DelimitedList/DelimitedList.js +17 -7
  668. package/lib/components/DescriptionList/DescriptionList.js +15 -13
  669. package/lib/components/DescriptionList/DescriptionListBody.js +12 -12
  670. package/lib/components/DescriptionList/DescriptionListCell.js +12 -12
  671. package/lib/components/DescriptionList/DescriptionListRow.js +12 -12
  672. package/lib/components/DescriptionList/constants.js +1 -3
  673. package/lib/components/EditFullPage/EditFullPage.js +11 -7
  674. package/lib/components/EditInPlace/EditInPlace.d.ts.map +1 -1
  675. package/lib/components/EditInPlace/EditInPlace.js +139 -31
  676. package/lib/components/EditSidePanel/EditSidePanel.js +73 -10
  677. package/lib/components/EditTearsheet/EditTearsheet.js +59 -9
  678. package/lib/components/EditTearsheet/EditTearsheetForm.js +39 -9
  679. package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +11 -7
  680. package/lib/components/EditUpdateCards/EditUpdateCards.js +75 -8
  681. package/lib/components/EmptyStates/EmptyState.js +48 -16
  682. package/lib/components/EmptyStates/EmptyStateContent.js +24 -6
  683. package/lib/components/EmptyStates/EmptyStateIllustration.deprecated.js +2 -4
  684. package/lib/components/EmptyStates/EmptyStateV2.deprecated.js +45 -9
  685. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +44 -10
  686. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +44 -10
  687. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +44 -10
  688. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +44 -10
  689. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +44 -10
  690. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +44 -10
  691. package/lib/components/EmptyStates/assets/ErrorIllustration.js +5 -7
  692. package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -7
  693. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +5 -7
  694. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +5 -7
  695. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +5 -7
  696. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -7
  697. package/lib/components/ExportModal/ExportModal.js +86 -9
  698. package/lib/components/ExpressiveCard/ExpressiveCard.js +80 -7
  699. package/lib/components/FeatureFlags/index.js +6 -5
  700. package/lib/components/FilterPanel/FilterPanel.js +19 -12
  701. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +29 -13
  702. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +33 -14
  703. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +26 -13
  704. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +44 -13
  705. package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +26 -13
  706. package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +22 -12
  707. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +22 -13
  708. package/lib/components/FilterSummary/FilterSummary.js +12 -13
  709. package/lib/components/FullPageError/FullPageError.js +27 -10
  710. package/lib/components/FullPageError/assets/Error403SVG.js +2 -4
  711. package/lib/components/FullPageError/assets/Error404SVG.js +2 -4
  712. package/lib/components/FullPageError/assets/ErrorGenericSVG.js +2 -4
  713. package/lib/components/GetStartedCard/GetStartedCard.js +40 -6
  714. package/lib/components/Guidebanner/Guidebanner.js +57 -13
  715. package/lib/components/Guidebanner/GuidebannerElement.js +18 -7
  716. package/lib/components/Guidebanner/GuidebannerElementButton.js +15 -7
  717. package/lib/components/Guidebanner/GuidebannerElementLink.js +11 -7
  718. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +29 -9
  719. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +29 -9
  720. package/lib/components/HTTPErrors/HTTPErrorContent.js +21 -5
  721. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +29 -9
  722. package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +3 -5
  723. package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +3 -5
  724. package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +3 -5
  725. package/lib/components/ImportModal/ImportModal.js +94 -9
  726. package/lib/components/InlineTip/InlineTip.js +62 -9
  727. package/lib/components/InlineTip/InlineTipButton.js +11 -7
  728. package/lib/components/InlineTip/InlineTipLink.js +11 -7
  729. package/lib/components/InlineTip/utils.js +1 -3
  730. package/lib/components/InterstitialScreen/InterstitialScreen.js +30 -10
  731. package/lib/components/InterstitialScreen/InterstitialScreenBody.js +17 -7
  732. package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +28 -7
  733. package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +24 -7
  734. package/lib/components/InterstitialScreen/InterstitialScreenView.js +15 -5
  735. package/lib/components/InterstitialScreen/context.js +3 -5
  736. package/lib/components/MultiAddSelect/MultiAddSelect.js +84 -6
  737. package/lib/components/Nav/Nav.js +27 -14
  738. package/lib/components/Nav/NavItem.js +48 -14
  739. package/lib/components/Nav/NavItemLink.js +5 -5
  740. package/lib/components/Nav/NavList.js +22 -13
  741. package/lib/components/NonLinearReading/NonLinearReading.js +18 -8
  742. package/lib/components/NotificationsPanel/NotificationsPanel.js +130 -15
  743. package/lib/components/NotificationsPanel/utils.js +1 -3
  744. package/lib/components/OptionsTile/OptionsTile.js +59 -10
  745. package/lib/components/PageHeader/PageHeader.js +234 -18
  746. package/lib/components/PageHeader/PageHeaderTitle.js +28 -7
  747. package/lib/components/PageHeader/PageHeaderUtils.js +5 -7
  748. package/lib/components/PageHeader/next/PageHeader.d.ts +2 -1
  749. package/lib/components/PageHeader/next/PageHeader.d.ts.map +1 -1
  750. package/lib/components/PageHeader/next/PageHeader.js +19 -21
  751. package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
  752. package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.js +6 -10
  753. package/lib/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +6 -8
  754. package/lib/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +19 -6
  755. package/lib/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
  756. package/lib/components/PageHeader/next/PageHeaderContent.js +36 -13
  757. package/lib/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
  758. package/lib/components/PageHeader/next/PageHeaderContentPageActions.js +26 -12
  759. package/lib/components/PageHeader/next/PageHeaderContentText.js +13 -6
  760. package/lib/components/PageHeader/next/PageHeaderHeroImage.d.ts +13 -1
  761. package/lib/components/PageHeader/next/PageHeaderHeroImage.d.ts.map +1 -1
  762. package/lib/components/PageHeader/next/PageHeaderHeroImage.js +25 -9
  763. package/lib/components/PageHeader/next/PageHeaderScrollButton.js +6 -8
  764. package/lib/components/PageHeader/next/PageHeaderTabBar.js +7 -9
  765. package/lib/components/PageHeader/next/PageHeaderTagOverflow.js +6 -8
  766. package/lib/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +5 -7
  767. package/lib/components/PageHeader/next/context.d.ts +2 -2
  768. package/lib/components/PageHeader/next/context.d.ts.map +1 -1
  769. package/lib/components/PageHeader/next/context.js +2 -4
  770. package/lib/components/PageHeader/next/index.js +19 -21
  771. package/lib/components/PageHeader/next/overflowHandler.js +1 -3
  772. package/lib/components/PageHeader/next/utils.js +1 -3
  773. package/lib/components/ProductiveCard/ProductiveCard.js +97 -7
  774. package/lib/components/RemoveModal/RemoveModal.js +65 -10
  775. package/lib/components/Saving/Saving.js +47 -7
  776. package/lib/components/ScrollGradient/ScrollGradient.js +23 -14
  777. package/lib/components/ScrollGradient/constants.js +3 -5
  778. package/lib/components/SearchBar/SearchBar.js +35 -8
  779. package/lib/components/SidePanel/SidePanel.js +129 -16
  780. package/lib/components/SidePanel/constants.js +1 -3
  781. package/lib/components/SimpleHeader/SimpleHeader.js +20 -8
  782. package/lib/components/SingleAddSelect/SingleAddSelect.js +56 -7
  783. package/lib/components/StatusIcon/StatusIcon.js +20 -7
  784. package/lib/components/StatusIndicator/StatusIndicator.js +30 -12
  785. package/lib/components/StatusIndicator/StatusIndicatorStep.js +22 -12
  786. package/lib/components/StringFormatter/StringFormatter.js +21 -15
  787. package/lib/components/StringFormatter/utils/enums.js +1 -3
  788. package/lib/components/TagOverflow/TagOverflow.js +73 -11
  789. package/lib/components/TagOverflow/TagOverflowModal.js +6 -8
  790. package/lib/components/TagOverflow/TagOverflowPopover.js +35 -7
  791. package/lib/components/TagOverflow/constants.js +1 -3
  792. package/lib/components/TagSet/TagSet.js +73 -10
  793. package/lib/components/TagSet/TagSetModal.js +6 -8
  794. package/lib/components/TagSet/TagSetOverflow.js +42 -7
  795. package/lib/components/Tearsheet/Tearsheet.js +107 -8
  796. package/lib/components/Tearsheet/TearsheetNarrow.js +80 -8
  797. package/lib/components/Tearsheet/TearsheetPresence.js +3 -5
  798. package/lib/components/Tearsheet/TearsheetShell.js +135 -19
  799. package/lib/components/Tearsheet/next/StackContext.js +3 -5
  800. package/lib/components/Tearsheet/next/Tearsheet.js +15 -17
  801. package/lib/components/Tearsheet/next/TearsheetBody.js +6 -8
  802. package/lib/components/Tearsheet/next/TearsheetFooter.js +5 -7
  803. package/lib/components/Tearsheet/next/TearsheetHeader.js +4 -6
  804. package/lib/components/Tearsheet/next/TearsheetHeaderActions.js +5 -7
  805. package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +5 -7
  806. package/lib/components/Tearsheet/next/context.js +4 -7
  807. package/lib/components/Tearsheet/usePresence.js +9 -5
  808. package/lib/components/Tearsheet/usePresenceContext.js +3 -5
  809. package/lib/components/Toolbar/Toolbar.js +9 -8
  810. package/lib/components/Toolbar/ToolbarButton.js +15 -7
  811. package/lib/components/Toolbar/ToolbarGroup.js +6 -6
  812. package/lib/components/TooltipTrigger/TooltipTrigger.js +10 -6
  813. package/lib/components/TruncatedList/TruncatedList.js +37 -8
  814. package/lib/components/TruncatedText/TruncatedText.d.ts.map +1 -1
  815. package/lib/components/TruncatedText/TruncatedText.js +12 -11
  816. package/lib/components/TruncatedText/useTruncatedText.js +3 -5
  817. package/lib/components/UserAvatar/UserAvatar.js +38 -9
  818. package/lib/components/UserProfileImage/UserProfileImage.js +43 -9
  819. package/lib/components/WebTerminal/WebTerminal.js +33 -9
  820. package/lib/components/WebTerminal/WebTerminalContentWrapper.js +10 -8
  821. package/lib/components/WebTerminal/hooks/index.js +7 -5
  822. package/lib/components/_Canary/Canary.js +6 -6
  823. package/lib/global/js/hooks/useActiveElement.js +2 -4
  824. package/lib/global/js/hooks/useClickOutside.js +2 -4
  825. package/lib/global/js/hooks/useCollapsible.js +2 -4
  826. package/lib/global/js/hooks/useControllableState.js +2 -4
  827. package/lib/global/js/hooks/useCreateComponentFocus.js +3 -5
  828. package/lib/global/js/hooks/useCreateComponentStepChange.js +2 -4
  829. package/lib/global/js/hooks/useFocus.js +3 -5
  830. package/lib/global/js/hooks/useIsomorphicEffect.js +2 -4
  831. package/lib/global/js/hooks/useMatchMedia.js +2 -4
  832. package/lib/global/js/hooks/useMergedRefs.js +2 -4
  833. package/lib/global/js/hooks/useOverflowItems/useOverflowItems.js +3 -5
  834. package/lib/global/js/hooks/useOverflowString.js +2 -4
  835. package/lib/global/js/hooks/usePortalTarget.js +4 -6
  836. package/lib/global/js/hooks/usePrefersReducedMotion.js +3 -5
  837. package/lib/global/js/hooks/usePrefix.js +2 -4
  838. package/lib/global/js/hooks/usePresence.js +2 -4
  839. package/lib/global/js/hooks/usePreviousValue.js +2 -4
  840. package/lib/global/js/hooks/useResetCreateComponent.js +3 -5
  841. package/lib/global/js/hooks/useResizeObserver.js +3 -5
  842. package/lib/global/js/hooks/useRetrieveFormTitles.js +2 -4
  843. package/lib/global/js/hooks/useRetrieveStepData.js +2 -4
  844. package/lib/global/js/hooks/useValidCreateStepCount.js +2 -4
  845. package/lib/global/js/hooks/useWindowResize.js +3 -5
  846. package/lib/global/js/hooks/useWindowScroll.js +4 -6
  847. package/lib/global/js/package-settings.js +1 -3
  848. package/lib/global/js/utils/Wrap.js +26 -4
  849. package/lib/global/js/utils/checkForOverflow.js +1 -3
  850. package/lib/global/js/utils/clamp.js +1 -3
  851. package/lib/global/js/utils/debounce.js +1 -3
  852. package/lib/global/js/utils/deepCloneObject.js +1 -3
  853. package/lib/global/js/utils/deepCompareObject.js +1 -3
  854. package/lib/global/js/utils/devtools.js +2 -4
  855. package/lib/global/js/utils/getFocusableElements.js +1 -3
  856. package/lib/global/js/utils/getNodeTextContent.js +1 -3
  857. package/lib/global/js/utils/getNumberOfHiddenSteps.js +1 -3
  858. package/lib/global/js/utils/getScrollbarWidth.js +1 -3
  859. package/lib/global/js/utils/getSupportedLocale.js +1 -3
  860. package/lib/global/js/utils/lastIndexInArray.js +1 -3
  861. package/lib/global/js/utils/makeDraggable/makeDraggable.js +1 -3
  862. package/lib/global/js/utils/pconsole.js +4 -9
  863. package/lib/global/js/utils/props-helper.js +2 -4
  864. package/lib/global/js/utils/rangeWithCallback.js +1 -3
  865. package/lib/global/js/utils/scrollableAncestor.js +1 -3
  866. package/lib/global/js/utils/throttle.js +1 -3
  867. package/lib/global/js/utils/useId.js +3 -5
  868. package/lib/global/js/utils/uuidv4.js +1 -3
  869. package/lib/global/js/utils/wait.js +1 -3
  870. package/lib/index.js +264 -267
  871. package/lib/node_modules/@carbon/colors/lib/index.js +15 -21
  872. package/lib/node_modules/@carbon/icon-helpers/lib/index.js +7 -10
  873. package/lib/node_modules/@carbon/icons-react/lib/{Icon.js → Icon-2zUDcllO.js} +44 -17
  874. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-0.js +274 -278
  875. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-1.js +303 -316
  876. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-10.js +478 -472
  877. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-11.js +491 -468
  878. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-12.js +482 -474
  879. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-13.js +509 -547
  880. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-14.js +546 -596
  881. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-15.js +596 -538
  882. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-16.js +571 -616
  883. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-17.js +669 -654
  884. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-18.js +683 -661
  885. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-19.js +701 -718
  886. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-2.js +332 -330
  887. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-20.js +743 -783
  888. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-21.js +548 -40
  889. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-3.js +340 -349
  890. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-4.js +360 -380
  891. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-5.js +397 -405
  892. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-6.js +405 -392
  893. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-7.js +418 -437
  894. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-8.js +456 -496
  895. package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-9.js +489 -480
  896. package/lib/node_modules/@carbon/icons-react/lib/{iconPropTypes-U9gLABJo.js → iconPropTypes-DaTOKOBs.js} +12 -14
  897. package/lib/node_modules/@carbon/icons-react/lib/index.js +425 -395
  898. package/lib/node_modules/classnames/index.js +7 -10
  899. package/lib/settings.js +5 -7
  900. package/package.json +17 -17
  901. package/scss/components/EditInPlace/_edit-in-place.scss +30 -6
  902. package/scss/components/PageHeader/_page-header.scss +66 -6
  903. package/scss/components/TruncatedText/_truncated-text.scss +21 -0
  904. package/telemetry.yml +12 -3
  905. package/es/components/Checklist/Checklist.types.js +0 -30
  906. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +0 -39
  907. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts.map +0 -1
  908. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +0 -25
  909. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts.map +0 -1
  910. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +0 -11
  911. package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts.map +0 -1
  912. package/lib/components/Checklist/Checklist.types.js +0 -32
  913. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +0 -39
  914. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts.map +0 -1
  915. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +0 -25
  916. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts.map +0 -1
  917. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +0 -11
  918. package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts.map +0 -1
  919. package/lib/node_modules/@carbon/icons-react/lib/chunk-CsKB0u1v.js +0 -54
@@ -5,17 +5,16 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_index = require('../../../node_modules/classnames/index.js');
10
- const require_util = require('../utils/util.js');
11
- const require_ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_index = require("../../../node_modules/classnames/index.js");
10
+ const require_util = require("../utils/util.js");
11
+ const require_ConditionBuilderProvider = require("../ConditionBuilderContext/ConditionBuilderProvider.js");
12
12
  let react = require("react");
13
13
  react = require_runtime.__toESM(react);
14
14
  let prop_types = require("prop-types");
15
15
  prop_types = require_runtime.__toESM(prop_types);
16
16
  let _carbon_react = require("@carbon/react");
17
17
  let _carbon_react_icons = require("@carbon/react/icons");
18
-
19
18
  //#region src/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.tsx
20
19
  /**
21
20
  * Copyright IBM Corp. 2024
@@ -62,22 +61,59 @@ const ConditionBuilderButton = ({ className, label, hideLabel, tooltipAlign, ren
62
61
  }, Button()) : /* @__PURE__ */ react.default.createElement(react.default.Fragment, null, Button());
63
62
  };
64
63
  ConditionBuilderButton.propTypes = {
64
+ /**
65
+ * Provide an optional class to be applied to the containing node.
66
+ */
65
67
  className: prop_types.default.string,
68
+ /**
69
+ * decides if label and tooltip to be hidden
70
+ */
66
71
  hideLabel: prop_types.default.bool,
72
+ /**
73
+ * boolean to know the updated value in not valid
74
+ */
67
75
  isInvalid: prop_types.default.bool,
76
+ /**
77
+ * label of the button
78
+ */
68
79
  label: prop_types.default.string,
80
+ /**
81
+ * mouse events callbacks
82
+ */
69
83
  onBlur: prop_types.default.func,
84
+ /**
85
+ * callback triggered on click of add button
86
+ */
70
87
  onClick: prop_types.default.func,
71
88
  onFocus: prop_types.default.func,
72
89
  onMouseEnter: prop_types.default.func,
73
90
  onMouseLeave: prop_types.default.func,
91
+ /**
92
+ * Optional prop to allow overriding the icon rendering.
93
+ */
74
94
  renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
95
+ /**
96
+ */
97
+ /**
98
+ *decides if tooltip to be shown
99
+ */
75
100
  showToolTip: prop_types.default.bool,
101
+ /**
102
+ * Tab index
103
+ */
76
104
  tabIndex: prop_types.default.number,
105
+ /**
106
+ * tooltip position
107
+ */
77
108
  tooltipAlign: prop_types.default.string,
109
+ /**
110
+ * classname applies to the wrapper of popover
111
+ */
78
112
  wrapperClassName: prop_types.default.string,
113
+ /**
114
+ * optional props for tree grid to add role and aria-label to wrapper span
115
+ */
79
116
  wrapperProps: prop_types.default.object
80
117
  };
81
-
82
118
  //#endregion
83
- exports.ConditionBuilderButton = ConditionBuilderButton;
119
+ exports.ConditionBuilderButton = ConditionBuilderButton;
@@ -5,19 +5,18 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../utils/util.js');
10
- const require_ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
11
- const require_ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilderButton.js');
12
- const require_useTranslations = require('../utils/useTranslations.js');
13
- const require_ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
14
- const require_ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
15
- const require_useDataConfigs = require('../utils/useDataConfigs.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../utils/util.js");
10
+ const require_ConditionBuilderProvider = require("../ConditionBuilderContext/ConditionBuilderProvider.js");
11
+ const require_ConditionBuilderButton = require("../ConditionBuilderButton/ConditionBuilderButton.js");
12
+ const require_useTranslations = require("../utils/useTranslations.js");
13
+ const require_ConditionBuilderItem = require("../ConditionBuilderItem/ConditionBuilderItem.js");
14
+ const require_ItemOption = require("../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js");
15
+ const require_useDataConfigs = require("../utils/useDataConfigs.js");
16
16
  let react = require("react");
17
17
  react = require_runtime.__toESM(react);
18
18
  let prop_types = require("prop-types");
19
19
  prop_types = require_runtime.__toESM(prop_types);
20
-
21
20
  //#region src/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.tsx
22
21
  /**
23
22
  * Copyright IBM Corp. 2024
@@ -45,7 +44,7 @@ const ConditionConnector = ({ operator, className, onChange, ...rest }) => {
45
44
  onChange?.(op);
46
45
  require_util.focusThisField(evt, conditionBuilderRef);
47
46
  };
48
- return variant == require_util.HIERARCHICAL_VARIANT ? /* @__PURE__ */ react.default.createElement("span", { className: `${className} ${require_util.blockClass}__connector ${require_util.blockClass}__connector--disabled` }, /* @__PURE__ */ react.default.createElement(require_ConditionBuilderButton.ConditionBuilderButton, { label: operator })) : /* @__PURE__ */ react.default.createElement(require_ConditionBuilderItem.ConditionBuilderItem, {
47
+ return variant == "Hierarchical" ? /* @__PURE__ */ react.default.createElement("span", { className: `${className} ${require_util.blockClass}__connector ${require_util.blockClass}__connector--disabled` }, /* @__PURE__ */ react.default.createElement(require_ConditionBuilderButton.ConditionBuilderButton, { label: operator })) : /* @__PURE__ */ react.default.createElement(require_ConditionBuilderItem.ConditionBuilderItem, {
49
48
  label: operator,
50
49
  title: connectorText,
51
50
  "data-name": "connectorField",
@@ -66,10 +65,18 @@ const ConditionConnector = ({ operator, className, onChange, ...rest }) => {
66
65
  }));
67
66
  };
68
67
  ConditionConnector.propTypes = {
68
+ /**
69
+ * Provide an optional class to be applied to the containing node.
70
+ */
69
71
  className: prop_types.default.string,
72
+ /**
73
+ * callback to update the current condition of the state tree
74
+ */
70
75
  onChange: prop_types.default.func,
76
+ /**
77
+ * string that defines the connector operator (and/or)
78
+ */
71
79
  operator: prop_types.default.string
72
80
  };
73
-
74
81
  //#endregion
75
- exports.default = ConditionConnector;
82
+ exports.default = ConditionConnector;
@@ -5,16 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../utils/util.js');
10
- const require_ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
11
- const require_useTranslations = require('../utils/useTranslations.js');
12
- const require_ConditionBuilderItem = require('../ConditionBuilderItem/ConditionBuilderItem.js');
13
- const require_ItemOption = require('../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js');
14
- const require_useDataConfigs = require('../utils/useDataConfigs.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../utils/util.js");
10
+ const require_ConditionBuilderProvider = require("../ConditionBuilderContext/ConditionBuilderProvider.js");
11
+ const require_useTranslations = require("../utils/useTranslations.js");
12
+ const require_ConditionBuilderItem = require("../ConditionBuilderItem/ConditionBuilderItem.js");
13
+ const require_ItemOption = require("../ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js");
14
+ const require_useDataConfigs = require("../utils/useDataConfigs.js");
15
15
  let react = require("react");
16
16
  react = require_runtime.__toESM(react);
17
-
18
17
  //#region src/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.jsx
19
18
  /**
20
19
  * Copyright IBM Corp. 2024
@@ -52,6 +51,5 @@ const GroupConnector = () => {
52
51
  config: { options: connectorConfig }
53
52
  })));
54
53
  };
55
-
56
54
  //#endregion
57
- exports.default = GroupConnector;
55
+ exports.default = GroupConnector;
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionBuilderContent.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,SAAS,MAAM,YAAY,CAAC;AAiBnC,OAAO,EACL,MAAM,EAEN,qBAAqB,EAErB,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,UAAU,4BAA4B;IACpC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC1D,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AACD,QAAA,MAAM,uBAAuB;0FAM1B,4BAA4B;;QAgP7B;;WAEG;;;;;QAOH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;;;;;;;;;;;;CAxBJ,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"ConditionBuilderContent.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,SAAS,MAAM,YAAY,CAAC;AAiBnC,OAAO,EACL,MAAM,EAEN,qBAAqB,EAErB,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,UAAU,4BAA4B;IACpC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC1D,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC5C,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AACD,QAAA,MAAM,uBAAuB;0FAM1B,4BAA4B;;QA8P7B;;WAEG;;;;;QAOH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;;;;;;;;;;;;;CAxBJ,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -5,23 +5,22 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_uuidv4 = require('../../../global/js/utils/uuidv4.js');
10
- const require_util = require('../utils/util.js');
11
- const require_ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
12
- const require_ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilderButton.js');
13
- const require_useTranslations = require('../utils/useTranslations.js');
14
- const require_ConditionPreview = require('../ConditionPreview/ConditionPreview.js');
15
- const require_ConditionGroupBuilder = require('../ConditionGroupBuilder/ConditionGroupBuilder.js');
16
- const require_GroupConnector = require('../ConditionBuilderConnector/GroupConnector.js');
17
- const require_ConditionBuilderActions = require('../ConditionBuilderActions/ConditionBuilderActions.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_uuidv4 = require("../../../global/js/utils/uuidv4.js");
10
+ const require_util = require("../utils/util.js");
11
+ const require_ConditionBuilderProvider = require("../ConditionBuilderContext/ConditionBuilderProvider.js");
12
+ const require_ConditionBuilderButton = require("../ConditionBuilderButton/ConditionBuilderButton.js");
13
+ const require_useTranslations = require("../utils/useTranslations.js");
14
+ const require_ConditionPreview = require("../ConditionPreview/ConditionPreview.js");
15
+ const require_ConditionGroupBuilder = require("../ConditionGroupBuilder/ConditionGroupBuilder.js");
16
+ const require_GroupConnector = require("../ConditionBuilderConnector/GroupConnector.js");
17
+ const require_ConditionBuilderActions = require("../ConditionBuilderActions/ConditionBuilderActions.js");
18
18
  let react = require("react");
19
19
  react = require_runtime.__toESM(react);
20
20
  let prop_types = require("prop-types");
21
21
  prop_types = require_runtime.__toESM(prop_types);
22
22
  let _carbon_react = require("@carbon/react");
23
23
  let _carbon_react_icons = require("@carbon/react/icons");
24
-
25
24
  //#region src/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.tsx
26
25
  /**
27
26
  * Copyright IBM Corp. 2024
@@ -31,7 +30,7 @@ let _carbon_react_icons = require("@carbon/react/icons");
31
30
  */
32
31
  /**@ts-ignore */
33
32
  const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getActionsState, initialState, actions }) => {
34
- const { rootState, setRootState, variant, actionState, onAddItem, readOnly, statementConfigCustom } = (0, react.useContext)(require_ConditionBuilderProvider.ConditionBuilderContext);
33
+ const { rootState, setRootState, variant, actionState, onAddItem, onRemoveItem, readOnly, statementConfigCustom } = (0, react.useContext)(require_ConditionBuilderProvider.ConditionBuilderContext);
35
34
  const initialConditionState = (0, react.useRef)(initialState?.state ? JSON.parse(JSON.stringify(initialState?.state)) : null);
36
35
  const [isConditionBuilderActive, setIsConditionBuilderActive] = (0, react.useState)(false);
37
36
  const [showConditionGroupPreview, setShowConditionGroupPreview] = (0, react.useState)(false);
@@ -65,13 +64,25 @@ const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getAc
65
64
  } else setRootState?.(require_ConditionBuilderProvider.getEmptyState(statementConfigCustom));
66
65
  };
67
66
  const onRemove = (0, react.useCallback)((groupId) => {
68
- const groups = rootState?.groups?.filter((group) => groupId !== group?.id);
69
- setRootState?.({
70
- ...rootState,
71
- groups: rootState ? groups : []
72
- });
73
- if (groups?.length === 0) initialConditionState.current = null;
74
- }, [setRootState, rootState]);
67
+ const groupToRemove = rootState?.groups?.find((group) => group?.id === groupId);
68
+ const { preventRemove } = onRemoveItem?.({
69
+ type: "group",
70
+ state: rootState,
71
+ item: groupToRemove
72
+ }) ?? {};
73
+ if (!preventRemove) {
74
+ const groups = rootState?.groups?.filter((group) => groupId !== group?.id);
75
+ setRootState?.({
76
+ ...rootState,
77
+ groups: rootState ? groups : []
78
+ });
79
+ if (groups?.length === 0) initialConditionState.current = null;
80
+ }
81
+ }, [
82
+ setRootState,
83
+ rootState,
84
+ onRemoveItem
85
+ ]);
75
86
  const onChangeHandler = (updatedGroup, groupIndex) => {
76
87
  /**
77
88
  * This method is triggered from inner components. This will be called every time when any change is to be updated in the rootState.
@@ -113,7 +124,7 @@ const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getAc
113
124
  size: "sm",
114
125
  onClick: onStartConditionBuilder
115
126
  }, startConditionLabel);
116
- const wrapperRole = variant === require_util.HIERARCHICAL_VARIANT ? {
127
+ const wrapperRole = variant === "Hierarchical" ? {
117
128
  role: "treegrid",
118
129
  "aria-label": conditionBuilderHierarchicalText
119
130
  } : null;
@@ -140,7 +151,7 @@ const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getAc
140
151
  onChange: (updatedGroup) => {
141
152
  onChangeHandler(updatedGroup, groupIndex);
142
153
  }
143
- }), rootState.groups && groupIndex < rootState.groups.length - 1 && /* @__PURE__ */ react.default.createElement(require_GroupConnector.default, null))), !readOnly && variant == require_util.HIERARCHICAL_VARIANT && /* @__PURE__ */ react.default.createElement("div", {
154
+ }), rootState.groups && groupIndex < rootState.groups.length - 1 && /* @__PURE__ */ react.default.createElement(require_GroupConnector.default, null))), !readOnly && variant == "Hierarchical" && /* @__PURE__ */ react.default.createElement("div", {
144
155
  role: "row",
145
156
  tabIndex: -1,
146
157
  "aria-level": 1,
@@ -159,7 +170,7 @@ const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getAc
159
170
  role: "gridcell",
160
171
  "aria-label": addConditionGroupText
161
172
  }
162
- })), variant === require_util.HIERARCHICAL_VARIANT ? /* @__PURE__ */ react.default.createElement(require_ConditionPreview.default, {
173
+ })), variant === "Hierarchical" ? /* @__PURE__ */ react.default.createElement(require_ConditionPreview.default, {
163
174
  previewType: "newGroup",
164
175
  colorIndex: getColorIndex(),
165
176
  className: showConditionGroupPreview ? `${require_util.blockClass}__visible` : `${require_util.blockClass}__hidden`,
@@ -173,12 +184,24 @@ const ConditionBuilderContent = ({ startConditionLabel, getConditionState, getAc
173
184
  }));
174
185
  };
175
186
  ConditionBuilderContent.propTypes = {
187
+ /**
188
+ * optional array of object that give the list of actions.
189
+ */
176
190
  actions: prop_types.default.arrayOf(prop_types.default.shape({
177
191
  id: prop_types.default.oneOfType([prop_types.default.string, prop_types.default.number]).isRequired,
178
192
  label: prop_types.default.string.isRequired
179
193
  })),
194
+ /**
195
+ * callback functions that will provide the updated action state back.
196
+ */
180
197
  getActionsState: prop_types.default.func,
198
+ /**
199
+ * This is a callback function that returns the updated state
200
+ */
181
201
  getConditionState: prop_types.default.func.isRequired,
202
+ /**
203
+ * Optional prop if the condition building need to start from a predefined initial state
204
+ */
182
205
  initialState: prop_types.default.shape({
183
206
  state: prop_types.default.shape({
184
207
  groups: prop_types.default.arrayOf(prop_types.default.shape({
@@ -206,6 +229,5 @@ ConditionBuilderContent.propTypes = {
206
229
  }),
207
230
  startConditionLabel: prop_types.default.string.isRequired
208
231
  };
209
-
210
232
  //#endregion
211
- exports.default = ConditionBuilderContent;
233
+ exports.default = ConditionBuilderContent;
@@ -1 +1 @@
1
- {"version":3,"file":"ConditionBuilderProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAkC,MAAM,OAAO,CAAC;AAGvD,OAAO,EAEL,4BAA4B,EAC5B,qBAAqB,EAEtB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,aAAa,GACxB,wBAAwB,4BAA4B,CAAC,uBAAuB,CAAC,KAC5E,qBAuBF,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAMhC,CAAC;AAEL,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAC7C,4BAA4B,CA4B7B,CAAC"}
1
+ {"version":3,"file":"ConditionBuilderProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAkC,MAAM,OAAO,CAAC;AAGvD,OAAO,EAEL,4BAA4B,EAC5B,qBAAqB,EAEtB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,aAAa,GACxB,wBAAwB,4BAA4B,CAAC,uBAAuB,CAAC,KAC5E,qBAuBF,CAAC;AAEF,eAAO,MAAM,uBAAuB,6CAMhC,CAAC;AAEL,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAC7C,4BAA4B,CA6B7B,CAAC"}
@@ -5,13 +5,12 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_uuidv4 = require('../../../global/js/utils/uuidv4.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_uuidv4 = require("../../../global/js/utils/uuidv4.js");
10
10
  let react = require("react");
11
11
  react = require_runtime.__toESM(react);
12
12
  let prop_types = require("prop-types");
13
13
  prop_types = require_runtime.__toESM(prop_types);
14
-
15
14
  //#region src/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.tsx
16
15
  /**
17
16
  * Copyright IBM Corp. 2024
@@ -58,14 +57,36 @@ const ConditionBuilderProvider = (props) => {
58
57
  conditionBuilderRef: props.conditionBuilderRef,
59
58
  statementConfigCustom: props.statementConfigCustom,
60
59
  onAddItem: props.onAddItem,
60
+ onRemoveItem: props.onRemoveItem,
61
61
  readOnly: props.readOnly
62
62
  };
63
63
  return /* @__PURE__ */ react.default.createElement(ConditionBuilderContext.Provider, { value: contextValue }, props.children);
64
64
  };
65
65
  ConditionBuilderProvider.propTypes = {
66
+ /**
67
+ * Provide the contents of the ConditionBuilder.
68
+ */
66
69
  children: prop_types.default.node.isRequired,
70
+ /**
71
+ * ref of condition builder
72
+ */
73
+ /**@ts-ignore */
67
74
  conditionBuilderRef: prop_types.default.object,
75
+ /**
76
+ * This is an optional callback function that will be triggered when options array is not passed in the inputConfig against a property.
77
+ * This can be a asynchronous function that need to return a promise, so it will allow to fetch options from API call.
78
+ * options has to be in valid format
79
+ * [{
80
+ label: 'label',
81
+ id: 'id',
82
+ },...]
83
+ */
68
84
  getOptions: prop_types.default.func,
85
+ /**
86
+ * This is a mandatory prop that defines the input to the condition builder.
87
+
88
+ */
89
+ /**@ts-ignore */
69
90
  inputConfig: prop_types.default.shape({ properties: prop_types.default.arrayOf(prop_types.default.shape({
70
91
  id: prop_types.default.string.isRequired,
71
92
  label: prop_types.default.string.isRequired,
@@ -94,12 +115,23 @@ ConditionBuilderProvider.propTypes = {
94
115
  long: prop_types.default.bool
95
116
  })
96
117
  })) }).isRequired,
118
+ /**
119
+ * This will enable search in option popovers when option list length is more that this threshold
120
+ */
97
121
  popOverSearchThreshold: prop_types.default.number.isRequired,
122
+ /**
123
+ * Optional prop if you want to pass translation to the texts used . Otherwise this will the defined defaults.
124
+ * This callback function will receive the message id and you need to return the corresponding text for that id.
125
+ * The message key will be one of [ "ifText", "addConditionText", "addConditionGroupText", "addSubgroupText", "conditionText", "propertyText", "operatorText", "valueText", "connectorText", "conditionRowText", "removeConditionText", "addConditionRowText", "startText", "endText", "clearSearchText", "actionsText", "then", "removeActionText", "addActionText", "invalidText", "invalidNumberWarnText"
126
+ ]
127
+ */
98
128
  translateWithId: prop_types.default.func,
129
+ /**
130
+ * Provide the condition builder variant: Non-Hierarchical/ Hierarchical
131
+ */
99
132
  variant: prop_types.default.string.isRequired
100
133
  };
101
-
102
134
  //#endregion
103
135
  exports.ConditionBuilderContext = ConditionBuilderContext;
104
136
  exports.ConditionBuilderProvider = ConditionBuilderProvider;
105
- exports.getEmptyState = getEmptyState;
137
+ exports.getEmptyState = getEmptyState;
@@ -5,7 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
-
9
8
  //#region src/components/ConditionBuilder/ConditionBuilderContext/translationObject.js
10
9
  /**
11
10
  * Copyright IBM Corp. 2024
@@ -64,6 +63,5 @@ const translationsObject = {
64
63
  addValueText: "Add value",
65
64
  conditionBuilderHierarchicalText: "Condition Builder Hierarchical"
66
65
  };
67
-
68
66
  //#endregion
69
- exports.translationsObject = translationsObject;
67
+ exports.translationsObject = translationsObject;
@@ -5,21 +5,20 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../utils/util.js');
10
- const require_ConditionBuilderProvider = require('../ConditionBuilderContext/ConditionBuilderProvider.js');
11
- const require_ConditionBuilderButton = require('../ConditionBuilderButton/ConditionBuilderButton.js');
12
- const require_translationObject = require('../ConditionBuilderContext/translationObject.js');
13
- const require_useTranslations = require('../utils/useTranslations.js');
14
- const require_handleKeyboardEvents = require('../utils/handleKeyboardEvents.js');
15
- const require_useEvent = require('../utils/useEvent.js');
8
+ const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../utils/util.js");
10
+ const require_ConditionBuilderProvider = require("../ConditionBuilderContext/ConditionBuilderProvider.js");
11
+ const require_ConditionBuilderButton = require("../ConditionBuilderButton/ConditionBuilderButton.js");
12
+ const require_translationObject = require("../ConditionBuilderContext/translationObject.js");
13
+ const require_useTranslations = require("../utils/useTranslations.js");
14
+ const require_handleKeyboardEvents = require("../utils/handleKeyboardEvents.js");
15
+ const require_useEvent = require("../utils/useEvent.js");
16
16
  let react = require("react");
17
17
  react = require_runtime.__toESM(react);
18
18
  let prop_types = require("prop-types");
19
19
  prop_types = require_runtime.__toESM(prop_types);
20
20
  let _carbon_react = require("@carbon/react");
21
21
  let _carbon_react_icons = require("@carbon/react/icons");
22
-
23
22
  //#region src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.tsx
24
23
  /**
25
24
  * Copyright IBM Corp. 2024
@@ -155,23 +154,58 @@ const ConditionBuilderItem = ({ children, className, label, renderIcon, title, t
155
154
  }, /* @__PURE__ */ react.default.createElement(_carbon_react.Layer, null, /* @__PURE__ */ react.default.createElement(_carbon_react.Section, null, /* @__PURE__ */ react.default.createElement(_carbon_react.Heading, { className: `${require_util.blockClass}__item__title` }, title), /* @__PURE__ */ react.default.createElement("div", { className: `${require_util.blockClass}__popover-content` }, renderChildren ? renderChildren(popoverRef, closePopover) : children)))));
156
155
  };
157
156
  ConditionBuilderItem.propTypes = {
157
+ /**
158
+ * provide the contents of the popover
159
+ */
158
160
  children: prop_types.default.node,
161
+ /**
162
+ * Provide an optional class to be applied to the containing node.
163
+ */
159
164
  className: prop_types.default.string,
165
+ /**
166
+ * current condition state object
167
+ */
160
168
  condition: prop_types.default.object,
169
+ /**
170
+ * this is the config object again the current property from inputConfig
171
+ */
161
172
  config: prop_types.default.object,
173
+ /**
174
+ * text to be displayed in the field
175
+ */
162
176
  label: prop_types.default.oneOfType([
163
177
  prop_types.default.string,
164
178
  prop_types.default.array,
165
179
  prop_types.default.object
166
180
  ]),
181
+ /**
182
+ * callback to update the current condition of the state tree
183
+ */
167
184
  onChange: prop_types.default.func,
185
+ /**
186
+ * class name for popover
187
+ */
168
188
  popOverClassName: prop_types.default.string,
189
+ /**
190
+ * callback prop that returns the jsx for children
191
+ */
169
192
  renderChildren: prop_types.default.func,
193
+ /**
194
+ * Optional prop to allow overriding the icon rendering.
195
+ */
170
196
  renderIcon: prop_types.default.oneOfType([prop_types.default.func, prop_types.default.object]),
197
+ /**
198
+ * show tool tip
199
+ */
171
200
  showToolTip: prop_types.default.bool,
201
+ /**
202
+ * title of the popover
203
+ */
172
204
  title: prop_types.default.string,
205
+ /**
206
+ * input type
207
+ */
173
208
  type: prop_types.default.string
174
209
  };
175
-
176
210
  //#endregion
177
- exports.ConditionBuilderItem = ConditionBuilderItem;
211
+ exports.ConditionBuilderItem = ConditionBuilderItem;
@@ -5,16 +5,15 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../../utils/util.js');
10
- const require_ConditionBuilderProvider = require('../../ConditionBuilderContext/ConditionBuilderProvider.js');
11
- const require_useTranslations = require('../../utils/useTranslations.js');
8
+ const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../../utils/util.js");
10
+ const require_ConditionBuilderProvider = require("../../ConditionBuilderContext/ConditionBuilderProvider.js");
11
+ const require_useTranslations = require("../../utils/useTranslations.js");
12
12
  let react = require("react");
13
13
  react = require_runtime.__toESM(react);
14
14
  let prop_types = require("prop-types");
15
15
  prop_types = require_runtime.__toESM(prop_types);
16
16
  let _carbon_react = require("@carbon/react");
17
-
18
17
  //#region src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.tsx
19
18
  /**
20
19
  * Copyright IBM Corp. 2024
@@ -86,11 +85,19 @@ const ConditionBuilderItemDate = ({ conditionState, onChange, parentRef, config
86
85
  })));
87
86
  };
88
87
  ConditionBuilderItemDate.propTypes = {
88
+ /**
89
+ * current condition object
90
+ */
89
91
  conditionState: prop_types.default.object,
90
92
  config: prop_types.default.object,
93
+ /**
94
+ * callback to update state oin date change
95
+ */
91
96
  onChange: prop_types.default.func,
97
+ /**
98
+ * reference to the popover node
99
+ */
92
100
  parentRef: prop_types.default.object
93
101
  };
94
-
95
102
  //#endregion
96
- exports.ConditionBuilderItemDate = ConditionBuilderItemDate;
103
+ exports.ConditionBuilderItemDate = ConditionBuilderItemDate;
@@ -5,15 +5,14 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../../utils/util.js');
10
- const require_useTranslations = require('../../utils/useTranslations.js');
8
+ const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../../utils/util.js");
10
+ const require_useTranslations = require("../../utils/useTranslations.js");
11
11
  let react = require("react");
12
12
  react = require_runtime.__toESM(react);
13
13
  let prop_types = require("prop-types");
14
14
  prop_types = require_runtime.__toESM(prop_types);
15
15
  let _carbon_react = require("@carbon/react");
16
-
17
16
  //#region src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.tsx
18
17
  /**
19
18
  * Copyright IBM Corp. 2024
@@ -50,10 +49,18 @@ const ConditionBuilderItemNumber = ({ conditionState, config, onChange }) => {
50
49
  }));
51
50
  };
52
51
  ConditionBuilderItemNumber.propTypes = {
52
+ /**
53
+ * current condition object
54
+ */
53
55
  conditionState: prop_types.default.object,
56
+ /**
57
+ * current config object that this property is part of
58
+ */
54
59
  config: prop_types.default.object,
60
+ /**
61
+ * callback to update state oin date change
62
+ */
55
63
  onChange: prop_types.default.func
56
64
  };
57
-
58
65
  //#endregion
59
- exports.ConditionBuilderItemNumber = ConditionBuilderItemNumber;
66
+ exports.ConditionBuilderItemNumber = ConditionBuilderItemNumber;
@@ -5,17 +5,16 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const require_runtime = require('../../../../_virtual/_rolldown/runtime.js');
9
- const require_util = require('../../utils/util.js');
10
- const require_ConditionBuilderProvider = require('../../ConditionBuilderContext/ConditionBuilderProvider.js');
11
- const require_useTranslations = require('../../utils/useTranslations.js');
8
+ const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
9
+ const require_util = require("../../utils/util.js");
10
+ const require_ConditionBuilderProvider = require("../../ConditionBuilderContext/ConditionBuilderProvider.js");
11
+ const require_useTranslations = require("../../utils/useTranslations.js");
12
12
  let react = require("react");
13
13
  react = require_runtime.__toESM(react);
14
14
  let prop_types = require("prop-types");
15
15
  prop_types = require_runtime.__toESM(prop_types);
16
16
  let _carbon_react = require("@carbon/react");
17
17
  let _carbon_react_icons = require("@carbon/react/icons");
18
-
19
18
  //#region src/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.tsx
20
19
  /**
21
20
  * Copyright IBM Corp. 2024
@@ -96,10 +95,18 @@ const ItemOption = ({ conditionState = {}, config = {}, onChange, closePopover,
96
95
  })));
97
96
  };
98
97
  ItemOption.propTypes = {
98
+ /**
99
+ * current condition object
100
+ */
99
101
  conditionState: prop_types.default.object,
102
+ /**
103
+ * current config object that this property is part of
104
+ */
100
105
  config: prop_types.default.object,
106
+ /**
107
+ * callback to update state oin date change
108
+ */
101
109
  onChange: prop_types.default.func
102
110
  };
103
-
104
111
  //#endregion
105
- exports.ItemOption = ItemOption;
112
+ exports.ItemOption = ItemOption;