@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.
- package/css/carbon.css +374 -417
- package/css/carbon.css.map +1 -1
- package/css/index-full-carbon.css +496 -430
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +117 -13
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +143 -13
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +359 -283
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rolldown/runtime.js +13 -22
- package/es/components/APIKeyModal/APIKeyDownloader.js +19 -3
- package/es/components/APIKeyModal/APIKeyModal.js +161 -3
- package/es/components/AboutModal/AboutModal.js +44 -3
- package/es/components/ActionBar/ActionBar.js +41 -3
- package/es/components/ActionBar/ActionBarItem.js +30 -3
- package/es/components/ActionBar/ActionBarOverflowItems.js +20 -3
- package/es/components/ActionSet/ActionSet.js +35 -3
- package/es/components/AddSelect/AddSelect.js +7 -3
- package/es/components/AddSelect/AddSelectBody.js +3 -3
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +1 -3
- package/es/components/AddSelect/AddSelectColumn.js +2 -4
- package/es/components/AddSelect/AddSelectFilter.js +1 -3
- package/es/components/AddSelect/AddSelectFormControl.js +1 -3
- package/es/components/AddSelect/AddSelectList.js +1 -3
- package/es/components/AddSelect/AddSelectMetaPanel.js +1 -3
- package/es/components/AddSelect/AddSelectRow.js +1 -3
- package/es/components/AddSelect/AddSelectSidebar.js +1 -3
- package/es/components/AddSelect/AddSelectSort.js +1 -3
- package/es/components/AddSelect/add-select-utils.js +1 -2
- package/es/components/AddSelect/hooks/useFocus.js +1 -3
- package/es/components/AddSelect/hooks/useItemSort.js +1 -3
- package/es/components/AddSelect/hooks/useParentSelect.js +1 -3
- package/es/components/AddSelect/hooks/usePath.js +1 -3
- package/es/components/BigNumber/BigNumber.js +52 -6
- package/es/components/BigNumber/BigNumberSkeleton.js +12 -9
- package/es/components/BigNumber/constants.js +1 -19
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +37 -3
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +28 -4
- package/es/components/Card/Card.js +20 -3
- package/es/components/Card/CardFooter.js +1 -3
- package/es/components/Card/CardHeader.js +12 -3
- package/es/components/Carousel/Carousel.js +33 -3
- package/es/components/Carousel/CarouselItem.js +7 -3
- package/es/components/Cascade/Cascade.js +12 -3
- package/es/components/Checklist/Checklist.js +65 -11
- package/es/components/Checklist/ChecklistChart.js +13 -7
- package/es/components/Checklist/ChecklistIcon.js +17 -11
- package/es/components/Coachmark/Coachmark.js +60 -6
- package/es/components/Coachmark/CoachmarkDragbar.js +17 -3
- package/es/components/Coachmark/CoachmarkHeader.js +13 -3
- package/es/components/Coachmark/CoachmarkOverlay.js +24 -6
- package/es/components/Coachmark/CoachmarkTagline.js +13 -3
- package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts +5 -1
- package/es/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
- package/es/components/Coachmark/next/Coachmark/Coachmark.js +56 -9
- package/es/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.js +17 -3
- package/es/components/Coachmark/next/Coachmark/CoachmarkContent.js +8 -3
- package/es/components/Coachmark/next/Coachmark/CoachmarkTagline/CoachmarkTagline.js +18 -3
- package/es/components/Coachmark/next/Coachmark/ContentBody.js +8 -3
- package/es/components/Coachmark/next/Coachmark/ContentHeader.js +13 -3
- package/es/components/Coachmark/next/Coachmark/context.js +1 -3
- package/es/components/Coachmark/utils/constants.js +15 -23
- package/es/components/Coachmark/utils/context.js +1 -3
- package/es/components/Coachmark/utils/enums.js +1 -2
- package/es/components/Coachmark/utils/hooks.js +3 -5
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +17 -3
- package/es/components/CoachmarkButton/CoachmarkButton.js +7 -3
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +31 -5
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +14 -3
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +33 -3
- package/es/components/CoachmarkStack/CoachmarkStack.js +43 -5
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +41 -3
- package/es/components/ComboButton/ComboButton.js +5 -3
- package/es/components/ComboButton/ComboButtonItem/index.js +5 -3
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +48 -5
- package/es/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionBuilder.js +65 -4
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +13 -0
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +15 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +29 -3
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +39 -3
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +12 -5
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +37 -15
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +35 -3
- package/es/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +37 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +10 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +10 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +10 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +10 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +13 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +10 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts.map +1 -1
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +29 -7
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +10 -3
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -8
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -3
- package/es/components/ConditionBuilder/utils/useEvent.js +1 -3
- package/es/components/ConditionBuilder/utils/useTranslations.js +1 -3
- package/es/components/ConditionBuilder/utils/util.js +1 -3
- package/es/components/CreateFullPage/CreateFullPage.js +79 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +51 -3
- package/es/components/CreateInfluencer/CreateInfluencer.js +16 -3
- package/es/components/CreateModal/CreateModal.js +43 -3
- package/es/components/CreateSidePanel/CreateSidePanel.js +59 -3
- package/es/components/CreateTearsheet/CreateTearsheet.js +82 -4
- package/es/components/CreateTearsheet/CreateTearsheetDivider.js +6 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +72 -3
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +56 -3
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +61 -3
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +115 -3
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +76 -3
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +1 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -3
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +1 -3
- package/es/components/DataSpreadsheet/utils/checkForHoldingKey.js +1 -2
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +1 -3
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +1 -3
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -3
- package/es/components/DataSpreadsheet/utils/getCellSize.js +1 -3
- package/es/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +1 -2
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +1 -3
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +1 -3
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -3
- package/es/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
- package/es/components/Datagrid/Datagrid/Datagrid.js +9 -3
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridContent.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridRow.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -3
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +6 -4
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +43 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +19 -14
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +8 -10
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +9 -11
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +10 -12
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -3
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -3
- package/es/components/Datagrid/common-column-ids.js +1 -2
- package/es/components/Datagrid/useActionsColumn.js +1 -3
- package/es/components/Datagrid/useColumnCenterAlign.js +1 -3
- package/es/components/Datagrid/useColumnOrder.js +1 -3
- package/es/components/Datagrid/useColumnRightAlign.js +1 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -3
- package/es/components/Datagrid/useDatagrid.js +1 -3
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -3
- package/es/components/Datagrid/useDisableSelectRows.js +1 -2
- package/es/components/Datagrid/useEditableCell.js +1 -3
- package/es/components/Datagrid/useExpandedRow.js +1 -3
- package/es/components/Datagrid/useFiltering.js +1 -3
- package/es/components/Datagrid/useFlexResize.js +1 -3
- package/es/components/Datagrid/useFloatingScroll.js +1 -3
- package/es/components/Datagrid/useFocusRowExpander.js +1 -3
- package/es/components/Datagrid/useInfiniteScroll.js +1 -3
- package/es/components/Datagrid/useInitialColumnSort.js +1 -3
- package/es/components/Datagrid/useInlineEdit.js +1 -3
- package/es/components/Datagrid/useNestedRowExpander.js +1 -3
- package/es/components/Datagrid/useNestedRows.js +1 -3
- package/es/components/Datagrid/useOnRowClick.js +1 -3
- package/es/components/Datagrid/useParentDimensions.js +1 -3
- package/es/components/Datagrid/useResizeTable.js +1 -3
- package/es/components/Datagrid/useRowExpander.js +1 -3
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -3
- package/es/components/Datagrid/useRowRenderer.js +1 -3
- package/es/components/Datagrid/useRowSize.js +1 -3
- package/es/components/Datagrid/useSelectAllToggle.js +4 -6
- package/es/components/Datagrid/useSelectRows.js +1 -3
- package/es/components/Datagrid/useSkeletonRows.js +1 -2
- package/es/components/Datagrid/useSortableColumns.js +1 -3
- package/es/components/Datagrid/useStickyColumn.js +1 -3
- package/es/components/Datagrid/utils/getAutoSizedColumnWidth.js +1 -2
- package/es/components/Decorator/Decorator.js +55 -3
- package/es/components/DecoratorBase/DecoratorBase.js +4 -3
- package/es/components/DecoratorBase/DecoratorIcon.js +10 -3
- package/es/components/DecoratorBase/utils.js +1 -2
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +74 -3
- package/es/components/DecoratorLink/DecoratorLink.js +66 -3
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +66 -3
- package/es/components/DelimitedList/DelimitedList.js +13 -3
- package/es/components/DescriptionList/DescriptionList.js +5 -3
- package/es/components/DescriptionList/DescriptionListBody.js +3 -3
- package/es/components/DescriptionList/DescriptionListCell.js +3 -3
- package/es/components/DescriptionList/DescriptionListRow.js +3 -3
- package/es/components/DescriptionList/constants.js +1 -2
- package/es/components/EditFullPage/EditFullPage.js +7 -3
- package/es/components/EditInPlace/EditInPlace.d.ts.map +1 -1
- package/es/components/EditInPlace/EditInPlace.js +136 -28
- package/es/components/EditSidePanel/EditSidePanel.js +66 -3
- package/es/components/EditTearsheet/EditTearsheet.js +53 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +33 -3
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +7 -3
- package/es/components/EditUpdateCards/EditUpdateCards.js +70 -3
- package/es/components/EmptyStates/EmptyState.js +41 -9
- package/es/components/EmptyStates/EmptyStateContent.js +21 -3
- package/es/components/EmptyStates/EmptyStateIllustration.deprecated.js +1 -3
- package/es/components/EmptyStates/EmptyStateV2.deprecated.js +39 -3
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +37 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +37 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +37 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +37 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +37 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +37 -3
- package/es/components/EmptyStates/assets/ErrorIllustration.js +1 -3
- package/es/components/EmptyStates/assets/NoDataIllustration.js +1 -3
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +1 -3
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +1 -3
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +1 -3
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -3
- package/es/components/ExportModal/ExportModal.js +80 -3
- package/es/components/ExpressiveCard/ExpressiveCard.js +76 -3
- package/es/components/FeatureFlags/index.js +4 -3
- package/es/components/FilterPanel/FilterPanel.js +10 -3
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +19 -3
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +22 -3
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +16 -3
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +34 -3
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +16 -3
- package/es/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +13 -3
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +13 -4
- package/es/components/FilterSummary/FilterSummary.js +2 -3
- package/es/components/FullPageError/FullPageError.js +20 -3
- package/es/components/FullPageError/assets/Error403SVG.js +1 -3
- package/es/components/FullPageError/assets/Error404SVG.js +1 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +1 -3
- package/es/components/GetStartedCard/GetStartedCard.js +37 -3
- package/es/components/Guidebanner/Guidebanner.js +49 -5
- package/es/components/Guidebanner/GuidebannerElement.js +14 -3
- package/es/components/Guidebanner/GuidebannerElementButton.js +11 -3
- package/es/components/Guidebanner/GuidebannerElementLink.js +7 -3
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +23 -3
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +23 -3
- package/es/components/HTTPErrors/HTTPErrorContent.js +19 -3
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +23 -3
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -3
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -3
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -3
- package/es/components/ImportModal/ImportModal.js +88 -3
- package/es/components/InlineTip/InlineTip.js +56 -3
- package/es/components/InlineTip/InlineTipButton.js +7 -3
- package/es/components/InlineTip/InlineTipLink.js +7 -3
- package/es/components/InlineTip/utils.js +1 -2
- package/es/components/InterstitialScreen/InterstitialScreen.js +23 -3
- package/es/components/InterstitialScreen/InterstitialScreenBody.js +13 -3
- package/es/components/InterstitialScreen/InterstitialScreenFooter.js +24 -3
- package/es/components/InterstitialScreen/InterstitialScreenHeader.js +20 -3
- package/es/components/InterstitialScreen/InterstitialScreenView.js +13 -3
- package/es/components/InterstitialScreen/context.js +1 -3
- package/es/components/MultiAddSelect/MultiAddSelect.js +81 -3
- package/es/components/Nav/Nav.js +16 -3
- package/es/components/Nav/NavItem.js +37 -3
- package/es/components/Nav/NavItemLink.js +4 -4
- package/es/components/Nav/NavList.js +12 -3
- package/es/components/NonLinearReading/NonLinearReading.js +13 -3
- package/es/components/NotificationsPanel/NotificationsPanel.js +118 -3
- package/es/components/NotificationsPanel/utils.js +1 -2
- package/es/components/OptionsTile/OptionsTile.js +52 -3
- package/es/components/PageHeader/PageHeader.js +219 -3
- package/es/components/PageHeader/PageHeaderTitle.js +24 -3
- package/es/components/PageHeader/PageHeaderUtils.js +1 -3
- package/es/components/PageHeader/next/PageHeader.d.ts +2 -1
- package/es/components/PageHeader/next/PageHeader.d.ts.map +1 -1
- package/es/components/PageHeader/next/PageHeader.js +1 -3
- package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
- package/es/components/PageHeader/next/PageHeaderBreadcrumbBar.js +2 -6
- package/es/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +1 -3
- package/es/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +16 -3
- package/es/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
- package/es/components/PageHeader/next/PageHeaderContent.js +32 -9
- package/es/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
- package/es/components/PageHeader/next/PageHeaderContentPageActions.js +21 -7
- package/es/components/PageHeader/next/PageHeaderContentText.js +10 -3
- package/es/components/PageHeader/next/PageHeaderHeroImage.d.ts +13 -1
- package/es/components/PageHeader/next/PageHeaderHeroImage.d.ts.map +1 -1
- package/es/components/PageHeader/next/PageHeaderHeroImage.js +22 -6
- package/es/components/PageHeader/next/PageHeaderScrollButton.js +1 -3
- package/es/components/PageHeader/next/PageHeaderTabBar.js +3 -5
- package/es/components/PageHeader/next/PageHeaderTagOverflow.js +1 -3
- package/es/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +1 -3
- package/es/components/PageHeader/next/context.d.ts +2 -2
- package/es/components/PageHeader/next/context.d.ts.map +1 -1
- package/es/components/PageHeader/next/context.js +1 -3
- package/es/components/PageHeader/next/index.js +1 -3
- package/es/components/PageHeader/next/overflowHandler.js +1 -2
- package/es/components/PageHeader/next/utils.js +1 -2
- package/es/components/ProductiveCard/ProductiveCard.js +93 -3
- package/es/components/RemoveModal/RemoveModal.js +58 -3
- package/es/components/Saving/Saving.js +43 -3
- package/es/components/ScrollGradient/ScrollGradient.js +12 -3
- package/es/components/ScrollGradient/constants.js +1 -3
- package/es/components/SearchBar/SearchBar.js +31 -4
- package/es/components/SidePanel/SidePanel.js +116 -3
- package/es/components/SidePanel/constants.js +1 -2
- package/es/components/SimpleHeader/SimpleHeader.js +15 -3
- package/es/components/SingleAddSelect/SingleAddSelect.js +52 -3
- package/es/components/StatusIcon/StatusIcon.js +16 -3
- package/es/components/StatusIndicator/StatusIndicator.js +21 -3
- package/es/components/StatusIndicator/StatusIndicatorStep.js +13 -3
- package/es/components/StringFormatter/StringFormatter.js +9 -3
- package/es/components/StringFormatter/utils/enums.js +1 -2
- package/es/components/TagOverflow/TagOverflow.js +65 -3
- package/es/components/TagOverflow/TagOverflowModal.js +1 -3
- package/es/components/TagOverflow/TagOverflowPopover.js +31 -3
- package/es/components/TagOverflow/constants.js +1 -2
- package/es/components/TagSet/TagSet.js +66 -3
- package/es/components/TagSet/TagSetModal.js +1 -3
- package/es/components/TagSet/TagSetOverflow.js +38 -3
- package/es/components/Tearsheet/Tearsheet.js +103 -4
- package/es/components/Tearsheet/TearsheetNarrow.js +76 -4
- package/es/components/Tearsheet/TearsheetPresence.js +1 -3
- package/es/components/Tearsheet/TearsheetShell.js +119 -3
- package/es/components/Tearsheet/next/StackContext.js +1 -3
- package/es/components/Tearsheet/next/Tearsheet.js +1 -3
- package/es/components/Tearsheet/next/TearsheetBody.js +1 -3
- package/es/components/Tearsheet/next/TearsheetFooter.js +1 -3
- package/es/components/Tearsheet/next/TearsheetHeader.js +1 -3
- package/es/components/Tearsheet/next/TearsheetHeaderActions.js +1 -3
- package/es/components/Tearsheet/next/TearsheetHeaderContent.js +1 -3
- package/es/components/Tearsheet/next/context.js +1 -3
- package/es/components/Tearsheet/usePresence.js +7 -3
- package/es/components/Tearsheet/usePresenceContext.js +1 -3
- package/es/components/Toolbar/Toolbar.js +4 -3
- package/es/components/Toolbar/ToolbarButton.js +12 -4
- package/es/components/Toolbar/ToolbarGroup.js +3 -3
- package/es/components/TooltipTrigger/TooltipTrigger.js +7 -3
- package/es/components/TruncatedList/TruncatedList.js +32 -3
- package/es/components/TruncatedText/TruncatedText.d.ts.map +1 -1
- package/es/components/TruncatedText/TruncatedText.js +7 -6
- package/es/components/TruncatedText/useTruncatedText.js +1 -3
- package/es/components/UserAvatar/UserAvatar.js +32 -3
- package/es/components/UserProfileImage/UserProfileImage.js +37 -3
- package/es/components/WebTerminal/WebTerminal.js +27 -3
- package/es/components/WebTerminal/WebTerminalContentWrapper.js +6 -4
- package/es/components/WebTerminal/hooks/index.js +6 -4
- package/es/components/_Canary/Canary.js +3 -3
- package/es/global/js/hooks/useActiveElement.js +1 -3
- package/es/global/js/hooks/useClickOutside.js +1 -3
- package/es/global/js/hooks/useCollapsible.js +1 -3
- package/es/global/js/hooks/useControllableState.js +1 -3
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -3
- package/es/global/js/hooks/useCreateComponentStepChange.js +1 -3
- package/es/global/js/hooks/useFocus.js +1 -3
- package/es/global/js/hooks/useIsomorphicEffect.js +1 -3
- package/es/global/js/hooks/useMatchMedia.js +1 -3
- package/es/global/js/hooks/useMergedRefs.js +1 -3
- package/es/global/js/hooks/useOverflowItems/useOverflowItems.js +1 -3
- package/es/global/js/hooks/useOverflowString.js +1 -3
- package/es/global/js/hooks/usePortalTarget.js +1 -3
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -3
- package/es/global/js/hooks/usePrefix.js +1 -3
- package/es/global/js/hooks/usePresence.js +1 -3
- package/es/global/js/hooks/usePreviousValue.js +1 -3
- package/es/global/js/hooks/useResetCreateComponent.js +1 -3
- package/es/global/js/hooks/useResizeObserver.js +1 -3
- package/es/global/js/hooks/useRetrieveFormTitles.js +1 -3
- package/es/global/js/hooks/useRetrieveStepData.js +1 -3
- package/es/global/js/hooks/useValidCreateStepCount.js +1 -3
- package/es/global/js/hooks/useWindowResize.js +1 -3
- package/es/global/js/hooks/useWindowScroll.js +1 -3
- package/es/global/js/package-settings.js +1 -2
- package/es/global/js/utils/Wrap.js +25 -3
- package/es/global/js/utils/checkForOverflow.js +1 -2
- package/es/global/js/utils/clamp.js +1 -2
- package/es/global/js/utils/debounce.js +1 -2
- package/es/global/js/utils/deepCloneObject.js +1 -2
- package/es/global/js/utils/deepCompareObject.js +1 -2
- package/es/global/js/utils/devtools.js +1 -3
- package/es/global/js/utils/getFocusableElements.js +1 -2
- package/es/global/js/utils/getNodeTextContent.js +1 -2
- package/es/global/js/utils/getNumberOfHiddenSteps.js +1 -2
- package/es/global/js/utils/getScrollbarWidth.js +1 -2
- package/es/global/js/utils/getSupportedLocale.js +1 -2
- package/es/global/js/utils/lastIndexInArray.js +1 -2
- package/es/global/js/utils/makeDraggable/makeDraggable.js +1 -2
- package/es/global/js/utils/pconsole.js +5 -11
- package/es/global/js/utils/props-helper.js +1 -3
- package/es/global/js/utils/rangeWithCallback.js +1 -2
- package/es/global/js/utils/scrollableAncestor.js +1 -2
- package/es/global/js/utils/throttle.js +1 -2
- package/es/global/js/utils/useId.js +1 -3
- package/es/global/js/utils/uuidv4.js +1 -2
- package/es/global/js/utils/wait.js +1 -2
- package/es/index.js +2 -5
- package/es/node_modules/@carbon/colors/es/index.js +1 -2
- package/es/node_modules/@carbon/icon-helpers/es/index.js +1 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +1 -3
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-11.js +351 -328
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +185 -192
- package/es/node_modules/@carbon/icons-react/es/{iconPropTypes-B1cP964Y.js → iconPropTypes-BElKp6Sn.js} +2 -4
- package/es/node_modules/classnames/index.js +1 -4
- package/es/settings.js +1 -3
- package/lib/_virtual/_rolldown/runtime.js +13 -23
- package/lib/components/APIKeyModal/APIKeyDownloader.js +21 -5
- package/lib/components/APIKeyModal/APIKeyModal.js +170 -12
- package/lib/components/AboutModal/AboutModal.js +51 -10
- package/lib/components/ActionBar/ActionBar.js +49 -11
- package/lib/components/ActionBar/ActionBarItem.js +33 -6
- package/lib/components/ActionBar/ActionBarOverflowItems.js +24 -7
- package/lib/components/ActionSet/ActionSet.js +40 -8
- package/lib/components/AddSelect/AddSelect.js +10 -6
- package/lib/components/AddSelect/AddSelectBody.js +19 -19
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +4 -6
- package/lib/components/AddSelect/AddSelectColumn.js +9 -11
- package/lib/components/AddSelect/AddSelectFilter.js +4 -6
- package/lib/components/AddSelect/AddSelectFormControl.js +4 -6
- package/lib/components/AddSelect/AddSelectList.js +6 -8
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -5
- package/lib/components/AddSelect/AddSelectRow.js +5 -7
- package/lib/components/AddSelect/AddSelectSidebar.js +5 -7
- package/lib/components/AddSelect/AddSelectSort.js +3 -5
- package/lib/components/AddSelect/add-select-utils.js +1 -3
- package/lib/components/AddSelect/hooks/useFocus.js +2 -4
- package/lib/components/AddSelect/hooks/useItemSort.js +2 -4
- package/lib/components/AddSelect/hooks/useParentSelect.js +2 -4
- package/lib/components/AddSelect/hooks/usePath.js +2 -4
- package/lib/components/BigNumber/BigNumber.js +59 -13
- package/lib/components/BigNumber/BigNumberSkeleton.js +16 -13
- package/lib/components/BigNumber/constants.js +1 -22
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +49 -15
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +33 -9
- package/lib/components/Card/Card.js +25 -8
- package/lib/components/Card/CardFooter.js +4 -6
- package/lib/components/Card/CardHeader.js +15 -6
- package/lib/components/Carousel/Carousel.js +39 -9
- package/lib/components/Carousel/CarouselItem.js +11 -7
- package/lib/components/Cascade/Cascade.js +16 -7
- package/lib/components/Checklist/Checklist.js +72 -18
- package/lib/components/Checklist/ChecklistChart.js +19 -13
- package/lib/components/Checklist/ChecklistIcon.js +21 -15
- package/lib/components/Coachmark/Coachmark.js +69 -15
- package/lib/components/Coachmark/CoachmarkDragbar.js +22 -8
- package/lib/components/Coachmark/CoachmarkHeader.js +18 -8
- package/lib/components/Coachmark/CoachmarkOverlay.js +35 -17
- package/lib/components/Coachmark/CoachmarkTagline.js +18 -8
- package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts +5 -1
- package/lib/components/Coachmark/next/Coachmark/Coachmark.d.ts.map +1 -1
- package/lib/components/Coachmark/next/Coachmark/Coachmark.js +64 -17
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBeacon/CoachmarkBeacon.js +21 -7
- package/lib/components/Coachmark/next/Coachmark/CoachmarkContent.js +12 -7
- package/lib/components/Coachmark/next/Coachmark/CoachmarkTagline/CoachmarkTagline.js +22 -7
- package/lib/components/Coachmark/next/Coachmark/ContentBody.js +11 -6
- package/lib/components/Coachmark/next/Coachmark/ContentHeader.js +18 -8
- package/lib/components/Coachmark/next/Coachmark/context.js +4 -7
- package/lib/components/Coachmark/utils/constants.js +15 -23
- package/lib/components/Coachmark/utils/context.js +2 -4
- package/lib/components/Coachmark/utils/enums.js +1 -3
- package/lib/components/Coachmark/utils/hooks.js +5 -7
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +21 -7
- package/lib/components/CoachmarkButton/CoachmarkButton.js +12 -8
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +40 -14
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +18 -7
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +41 -11
- package/lib/components/CoachmarkStack/CoachmarkStack.js +52 -14
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +48 -10
- package/lib/components/ComboButton/ComboButton.js +9 -7
- package/lib/components/ComboButton/ComboButtonItem/index.js +6 -4
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +64 -21
- package/lib/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilder.js +72 -11
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +13 -0
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +25 -15
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +35 -9
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +43 -7
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +19 -12
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +8 -10
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +46 -24
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +37 -5
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +1 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +45 -11
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +14 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +13 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +14 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +14 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +15 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +12 -5
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts.map +1 -1
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -18
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +16 -9
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +6 -8
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +4 -6
- package/lib/components/ConditionBuilder/utils/useEvent.js +2 -4
- package/lib/components/ConditionBuilder/utils/useTranslations.js +4 -6
- package/lib/components/ConditionBuilder/utils/util.js +2 -5
- package/lib/components/CreateFullPage/CreateFullPage.js +92 -16
- package/lib/components/CreateFullPage/CreateFullPageStep.js +58 -10
- package/lib/components/CreateInfluencer/CreateInfluencer.js +20 -7
- package/lib/components/CreateModal/CreateModal.js +48 -8
- package/lib/components/CreateSidePanel/CreateSidePanel.js +65 -9
- package/lib/components/CreateTearsheet/CreateTearsheet.js +96 -18
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +9 -7
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +79 -10
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +62 -9
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +85 -27
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +128 -16
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +88 -15
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -4
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +3 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +4 -6
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -4
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +1 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +2 -4
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +11 -13
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +3 -5
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +4 -6
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -4
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +1 -3
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -4
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -4
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -4
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +3 -5
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -5
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +5 -7
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +4 -6
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +3 -5
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -4
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +3 -5
- package/lib/components/Datagrid/Datagrid/Datagrid.js +17 -11
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +6 -8
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +19 -21
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +7 -9
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +4 -6
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -4
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +10 -12
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +4 -6
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +7 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +6 -8
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +5 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +4 -6
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +6 -8
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +6 -8
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/AiLabel/DatagridAiLabel.js +7 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +6 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +6 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +54 -14
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +31 -26
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +9 -11
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -18
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +10 -12
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +9 -11
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +2 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +1 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -7
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -4
- package/lib/components/Datagrid/common-column-ids.js +1 -3
- package/lib/components/Datagrid/useActionsColumn.js +5 -7
- package/lib/components/Datagrid/useColumnCenterAlign.js +4 -6
- package/lib/components/Datagrid/useColumnOrder.js +3 -6
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -6
- package/lib/components/Datagrid/useCustomizeColumns.js +4 -6
- package/lib/components/Datagrid/useDatagrid.js +11 -13
- package/lib/components/Datagrid/useDefaultStringRenderer.js +4 -6
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -3
- package/lib/components/Datagrid/useEditableCell.js +2 -4
- package/lib/components/Datagrid/useExpandedRow.js +4 -6
- package/lib/components/Datagrid/useFiltering.js +4 -6
- package/lib/components/Datagrid/useFlexResize.js +2 -4
- package/lib/components/Datagrid/useFloatingScroll.js +4 -6
- package/lib/components/Datagrid/useFocusRowExpander.js +2 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +5 -7
- package/lib/components/Datagrid/useInitialColumnSort.js +3 -5
- package/lib/components/Datagrid/useInlineEdit.js +5 -7
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -8
- package/lib/components/Datagrid/useNestedRows.js +5 -7
- package/lib/components/Datagrid/useOnRowClick.js +3 -5
- package/lib/components/Datagrid/useParentDimensions.js +2 -4
- package/lib/components/Datagrid/useResizeTable.js +2 -4
- package/lib/components/Datagrid/useRowExpander.js +5 -7
- package/lib/components/Datagrid/useRowIsMouseOver.js +3 -5
- package/lib/components/Datagrid/useRowRenderer.js +2 -4
- package/lib/components/Datagrid/useRowSize.js +3 -5
- package/lib/components/Datagrid/useSelectAllToggle.js +9 -11
- package/lib/components/Datagrid/useSelectRows.js +8 -10
- package/lib/components/Datagrid/useSkeletonRows.js +1 -3
- package/lib/components/Datagrid/useSortableColumns.js +6 -8
- package/lib/components/Datagrid/useStickyColumn.js +6 -8
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +1 -3
- package/lib/components/Decorator/Decorator.js +65 -13
- package/lib/components/DecoratorBase/DecoratorBase.js +9 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +19 -12
- package/lib/components/DecoratorBase/utils.js +1 -3
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +84 -13
- package/lib/components/DecoratorLink/DecoratorLink.js +76 -13
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +76 -13
- package/lib/components/DelimitedList/DelimitedList.js +17 -7
- package/lib/components/DescriptionList/DescriptionList.js +15 -13
- package/lib/components/DescriptionList/DescriptionListBody.js +12 -12
- package/lib/components/DescriptionList/DescriptionListCell.js +12 -12
- package/lib/components/DescriptionList/DescriptionListRow.js +12 -12
- package/lib/components/DescriptionList/constants.js +1 -3
- package/lib/components/EditFullPage/EditFullPage.js +11 -7
- package/lib/components/EditInPlace/EditInPlace.d.ts.map +1 -1
- package/lib/components/EditInPlace/EditInPlace.js +139 -31
- package/lib/components/EditSidePanel/EditSidePanel.js +73 -10
- package/lib/components/EditTearsheet/EditTearsheet.js +59 -9
- package/lib/components/EditTearsheet/EditTearsheetForm.js +39 -9
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +11 -7
- package/lib/components/EditUpdateCards/EditUpdateCards.js +75 -8
- package/lib/components/EmptyStates/EmptyState.js +48 -16
- package/lib/components/EmptyStates/EmptyStateContent.js +24 -6
- package/lib/components/EmptyStates/EmptyStateIllustration.deprecated.js +2 -4
- package/lib/components/EmptyStates/EmptyStateV2.deprecated.js +45 -9
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +44 -10
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +44 -10
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +44 -10
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +44 -10
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +44 -10
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +44 -10
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +5 -7
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -7
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +5 -7
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +5 -7
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +5 -7
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -7
- package/lib/components/ExportModal/ExportModal.js +86 -9
- package/lib/components/ExpressiveCard/ExpressiveCard.js +80 -7
- package/lib/components/FeatureFlags/index.js +6 -5
- package/lib/components/FilterPanel/FilterPanel.js +19 -12
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +29 -13
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +33 -14
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +26 -13
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +44 -13
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +26 -13
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +22 -12
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +22 -13
- package/lib/components/FilterSummary/FilterSummary.js +12 -13
- package/lib/components/FullPageError/FullPageError.js +27 -10
- package/lib/components/FullPageError/assets/Error403SVG.js +2 -4
- package/lib/components/FullPageError/assets/Error404SVG.js +2 -4
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +2 -4
- package/lib/components/GetStartedCard/GetStartedCard.js +40 -6
- package/lib/components/Guidebanner/Guidebanner.js +57 -13
- package/lib/components/Guidebanner/GuidebannerElement.js +18 -7
- package/lib/components/Guidebanner/GuidebannerElementButton.js +15 -7
- package/lib/components/Guidebanner/GuidebannerElementLink.js +11 -7
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +29 -9
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +29 -9
- package/lib/components/HTTPErrors/HTTPErrorContent.js +21 -5
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +29 -9
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +3 -5
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +3 -5
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +3 -5
- package/lib/components/ImportModal/ImportModal.js +94 -9
- package/lib/components/InlineTip/InlineTip.js +62 -9
- package/lib/components/InlineTip/InlineTipButton.js +11 -7
- package/lib/components/InlineTip/InlineTipLink.js +11 -7
- package/lib/components/InlineTip/utils.js +1 -3
- package/lib/components/InterstitialScreen/InterstitialScreen.js +30 -10
- package/lib/components/InterstitialScreen/InterstitialScreenBody.js +17 -7
- package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +28 -7
- package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +24 -7
- package/lib/components/InterstitialScreen/InterstitialScreenView.js +15 -5
- package/lib/components/InterstitialScreen/context.js +3 -5
- package/lib/components/MultiAddSelect/MultiAddSelect.js +84 -6
- package/lib/components/Nav/Nav.js +27 -14
- package/lib/components/Nav/NavItem.js +48 -14
- package/lib/components/Nav/NavItemLink.js +5 -5
- package/lib/components/Nav/NavList.js +22 -13
- package/lib/components/NonLinearReading/NonLinearReading.js +18 -8
- package/lib/components/NotificationsPanel/NotificationsPanel.js +130 -15
- package/lib/components/NotificationsPanel/utils.js +1 -3
- package/lib/components/OptionsTile/OptionsTile.js +59 -10
- package/lib/components/PageHeader/PageHeader.js +234 -18
- package/lib/components/PageHeader/PageHeaderTitle.js +28 -7
- package/lib/components/PageHeader/PageHeaderUtils.js +5 -7
- package/lib/components/PageHeader/next/PageHeader.d.ts +2 -1
- package/lib/components/PageHeader/next/PageHeader.d.ts.map +1 -1
- package/lib/components/PageHeader/next/PageHeader.js +19 -21
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.d.ts.map +1 -1
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbBar.js +6 -10
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbOverflow.js +6 -8
- package/lib/components/PageHeader/next/PageHeaderBreadcrumbPageActions.js +19 -6
- package/lib/components/PageHeader/next/PageHeaderContent.d.ts.map +1 -1
- package/lib/components/PageHeader/next/PageHeaderContent.js +36 -13
- package/lib/components/PageHeader/next/PageHeaderContentPageActions.d.ts.map +1 -1
- package/lib/components/PageHeader/next/PageHeaderContentPageActions.js +26 -12
- package/lib/components/PageHeader/next/PageHeaderContentText.js +13 -6
- package/lib/components/PageHeader/next/PageHeaderHeroImage.d.ts +13 -1
- package/lib/components/PageHeader/next/PageHeaderHeroImage.d.ts.map +1 -1
- package/lib/components/PageHeader/next/PageHeaderHeroImage.js +25 -9
- package/lib/components/PageHeader/next/PageHeaderScrollButton.js +6 -8
- package/lib/components/PageHeader/next/PageHeaderTabBar.js +7 -9
- package/lib/components/PageHeader/next/PageHeaderTagOverflow.js +6 -8
- package/lib/components/PageHeader/next/PageHeaderTitleBreadcrumb.js +5 -7
- package/lib/components/PageHeader/next/context.d.ts +2 -2
- package/lib/components/PageHeader/next/context.d.ts.map +1 -1
- package/lib/components/PageHeader/next/context.js +2 -4
- package/lib/components/PageHeader/next/index.js +19 -21
- package/lib/components/PageHeader/next/overflowHandler.js +1 -3
- package/lib/components/PageHeader/next/utils.js +1 -3
- package/lib/components/ProductiveCard/ProductiveCard.js +97 -7
- package/lib/components/RemoveModal/RemoveModal.js +65 -10
- package/lib/components/Saving/Saving.js +47 -7
- package/lib/components/ScrollGradient/ScrollGradient.js +23 -14
- package/lib/components/ScrollGradient/constants.js +3 -5
- package/lib/components/SearchBar/SearchBar.js +35 -8
- package/lib/components/SidePanel/SidePanel.js +129 -16
- package/lib/components/SidePanel/constants.js +1 -3
- package/lib/components/SimpleHeader/SimpleHeader.js +20 -8
- package/lib/components/SingleAddSelect/SingleAddSelect.js +56 -7
- package/lib/components/StatusIcon/StatusIcon.js +20 -7
- package/lib/components/StatusIndicator/StatusIndicator.js +30 -12
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +22 -12
- package/lib/components/StringFormatter/StringFormatter.js +21 -15
- package/lib/components/StringFormatter/utils/enums.js +1 -3
- package/lib/components/TagOverflow/TagOverflow.js +73 -11
- package/lib/components/TagOverflow/TagOverflowModal.js +6 -8
- package/lib/components/TagOverflow/TagOverflowPopover.js +35 -7
- package/lib/components/TagOverflow/constants.js +1 -3
- package/lib/components/TagSet/TagSet.js +73 -10
- package/lib/components/TagSet/TagSetModal.js +6 -8
- package/lib/components/TagSet/TagSetOverflow.js +42 -7
- package/lib/components/Tearsheet/Tearsheet.js +107 -8
- package/lib/components/Tearsheet/TearsheetNarrow.js +80 -8
- package/lib/components/Tearsheet/TearsheetPresence.js +3 -5
- package/lib/components/Tearsheet/TearsheetShell.js +135 -19
- package/lib/components/Tearsheet/next/StackContext.js +3 -5
- package/lib/components/Tearsheet/next/Tearsheet.js +15 -17
- package/lib/components/Tearsheet/next/TearsheetBody.js +6 -8
- package/lib/components/Tearsheet/next/TearsheetFooter.js +5 -7
- package/lib/components/Tearsheet/next/TearsheetHeader.js +4 -6
- package/lib/components/Tearsheet/next/TearsheetHeaderActions.js +5 -7
- package/lib/components/Tearsheet/next/TearsheetHeaderContent.js +5 -7
- package/lib/components/Tearsheet/next/context.js +4 -7
- package/lib/components/Tearsheet/usePresence.js +9 -5
- package/lib/components/Tearsheet/usePresenceContext.js +3 -5
- package/lib/components/Toolbar/Toolbar.js +9 -8
- package/lib/components/Toolbar/ToolbarButton.js +15 -7
- package/lib/components/Toolbar/ToolbarGroup.js +6 -6
- package/lib/components/TooltipTrigger/TooltipTrigger.js +10 -6
- package/lib/components/TruncatedList/TruncatedList.js +37 -8
- package/lib/components/TruncatedText/TruncatedText.d.ts.map +1 -1
- package/lib/components/TruncatedText/TruncatedText.js +12 -11
- package/lib/components/TruncatedText/useTruncatedText.js +3 -5
- package/lib/components/UserAvatar/UserAvatar.js +38 -9
- package/lib/components/UserProfileImage/UserProfileImage.js +43 -9
- package/lib/components/WebTerminal/WebTerminal.js +33 -9
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +10 -8
- package/lib/components/WebTerminal/hooks/index.js +7 -5
- package/lib/components/_Canary/Canary.js +6 -6
- package/lib/global/js/hooks/useActiveElement.js +2 -4
- package/lib/global/js/hooks/useClickOutside.js +2 -4
- package/lib/global/js/hooks/useCollapsible.js +2 -4
- package/lib/global/js/hooks/useControllableState.js +2 -4
- package/lib/global/js/hooks/useCreateComponentFocus.js +3 -5
- package/lib/global/js/hooks/useCreateComponentStepChange.js +2 -4
- package/lib/global/js/hooks/useFocus.js +3 -5
- package/lib/global/js/hooks/useIsomorphicEffect.js +2 -4
- package/lib/global/js/hooks/useMatchMedia.js +2 -4
- package/lib/global/js/hooks/useMergedRefs.js +2 -4
- package/lib/global/js/hooks/useOverflowItems/useOverflowItems.js +3 -5
- package/lib/global/js/hooks/useOverflowString.js +2 -4
- package/lib/global/js/hooks/usePortalTarget.js +4 -6
- package/lib/global/js/hooks/usePrefersReducedMotion.js +3 -5
- package/lib/global/js/hooks/usePrefix.js +2 -4
- package/lib/global/js/hooks/usePresence.js +2 -4
- package/lib/global/js/hooks/usePreviousValue.js +2 -4
- package/lib/global/js/hooks/useResetCreateComponent.js +3 -5
- package/lib/global/js/hooks/useResizeObserver.js +3 -5
- package/lib/global/js/hooks/useRetrieveFormTitles.js +2 -4
- package/lib/global/js/hooks/useRetrieveStepData.js +2 -4
- package/lib/global/js/hooks/useValidCreateStepCount.js +2 -4
- package/lib/global/js/hooks/useWindowResize.js +3 -5
- package/lib/global/js/hooks/useWindowScroll.js +4 -6
- package/lib/global/js/package-settings.js +1 -3
- package/lib/global/js/utils/Wrap.js +26 -4
- package/lib/global/js/utils/checkForOverflow.js +1 -3
- package/lib/global/js/utils/clamp.js +1 -3
- package/lib/global/js/utils/debounce.js +1 -3
- package/lib/global/js/utils/deepCloneObject.js +1 -3
- package/lib/global/js/utils/deepCompareObject.js +1 -3
- package/lib/global/js/utils/devtools.js +2 -4
- package/lib/global/js/utils/getFocusableElements.js +1 -3
- package/lib/global/js/utils/getNodeTextContent.js +1 -3
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +1 -3
- package/lib/global/js/utils/getScrollbarWidth.js +1 -3
- package/lib/global/js/utils/getSupportedLocale.js +1 -3
- package/lib/global/js/utils/lastIndexInArray.js +1 -3
- package/lib/global/js/utils/makeDraggable/makeDraggable.js +1 -3
- package/lib/global/js/utils/pconsole.js +4 -9
- package/lib/global/js/utils/props-helper.js +2 -4
- package/lib/global/js/utils/rangeWithCallback.js +1 -3
- package/lib/global/js/utils/scrollableAncestor.js +1 -3
- package/lib/global/js/utils/throttle.js +1 -3
- package/lib/global/js/utils/useId.js +3 -5
- package/lib/global/js/utils/uuidv4.js +1 -3
- package/lib/global/js/utils/wait.js +1 -3
- package/lib/index.js +264 -267
- package/lib/node_modules/@carbon/colors/lib/index.js +15 -21
- package/lib/node_modules/@carbon/icon-helpers/lib/index.js +7 -10
- package/lib/node_modules/@carbon/icons-react/lib/{Icon.js → Icon-2zUDcllO.js} +44 -17
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-0.js +274 -278
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-1.js +303 -316
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-10.js +478 -472
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-11.js +491 -468
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-12.js +482 -474
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-13.js +509 -547
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-14.js +546 -596
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-15.js +596 -538
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-16.js +571 -616
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-17.js +669 -654
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-18.js +683 -661
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-19.js +701 -718
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-2.js +332 -330
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-20.js +743 -783
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-21.js +548 -40
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-3.js +340 -349
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-4.js +360 -380
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-5.js +397 -405
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-6.js +405 -392
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-7.js +418 -437
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-8.js +456 -496
- package/lib/node_modules/@carbon/icons-react/lib/generated/bucket-9.js +489 -480
- package/lib/node_modules/@carbon/icons-react/lib/{iconPropTypes-U9gLABJo.js → iconPropTypes-DaTOKOBs.js} +12 -14
- package/lib/node_modules/@carbon/icons-react/lib/index.js +425 -395
- package/lib/node_modules/classnames/index.js +7 -10
- package/lib/settings.js +5 -7
- package/package.json +17 -17
- package/scss/components/EditInPlace/_edit-in-place.scss +30 -6
- package/scss/components/PageHeader/_page-header.scss +66 -6
- package/scss/components/TruncatedText/_truncated-text.scss +21 -0
- package/telemetry.yml +12 -3
- package/es/components/Checklist/Checklist.types.js +0 -30
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +0 -39
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts.map +0 -1
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +0 -25
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts.map +0 -1
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +0 -11
- package/es/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts.map +0 -1
- package/lib/components/Checklist/Checklist.types.js +0 -32
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts +0 -39
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubble.d.ts.map +0 -1
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts +0 -25
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/CoachmarkBubbleHeader.d.ts.map +0 -1
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts +0 -11
- package/lib/components/Coachmark/next/Coachmark/CoachmarkBubble/index.d.ts.map +0 -1
- package/lib/node_modules/@carbon/icons-react/lib/chunk-CsKB0u1v.js +0 -54
|
@@ -11,7 +11,6 @@ import { pkg } from "../../settings.js";
|
|
|
11
11
|
import { getDevtoolsProps } from "../../global/js/utils/devtools.js";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import PropTypes from "prop-types";
|
|
14
|
-
|
|
15
14
|
//#region src/components/CoachmarkOverlayElement/CoachmarkOverlayElement.tsx
|
|
16
15
|
/**
|
|
17
16
|
* Copyright IBM Corp. 2023, 2025
|
|
@@ -43,11 +42,23 @@ CoachmarkOverlayElement.deprecated = {
|
|
|
43
42
|
};
|
|
44
43
|
CoachmarkOverlayElement.displayName = componentName;
|
|
45
44
|
CoachmarkOverlayElement.propTypes = {
|
|
45
|
+
/**
|
|
46
|
+
* An optional button can be rendered below the description.
|
|
47
|
+
* This can be a link, button, Coachmark button, etc.
|
|
48
|
+
*/
|
|
46
49
|
button: PropTypes.node,
|
|
50
|
+
/**
|
|
51
|
+
* Optional class name for this component.
|
|
52
|
+
*/
|
|
47
53
|
className: PropTypes.string,
|
|
54
|
+
/**
|
|
55
|
+
* The description of the Coachmark.
|
|
56
|
+
*/
|
|
48
57
|
description: PropTypes.node.isRequired,
|
|
58
|
+
/**
|
|
59
|
+
* The title of the Coachmark.
|
|
60
|
+
*/
|
|
49
61
|
title: PropTypes.string.isRequired
|
|
50
62
|
};
|
|
51
|
-
|
|
52
63
|
//#endregion
|
|
53
|
-
export { CoachmarkOverlayElement };
|
|
64
|
+
export { CoachmarkOverlayElement };
|
|
@@ -16,7 +16,6 @@ import { useCoachmark } from "../Coachmark/utils/context.js";
|
|
|
16
16
|
import React, { Children, useEffect, useMemo, useRef, useState } from "react";
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import { Button } from "@carbon/react";
|
|
19
|
-
|
|
20
19
|
//#region src/components/CoachmarkOverlayElements/CoachmarkOverlayElements.tsx
|
|
21
20
|
/**
|
|
22
21
|
* Copyright IBM Corp. 2023, 2025
|
|
@@ -119,17 +118,48 @@ CoachmarkOverlayElements.deprecated = {
|
|
|
119
118
|
};
|
|
120
119
|
CoachmarkOverlayElements.displayName = componentName;
|
|
121
120
|
CoachmarkOverlayElements.propTypes = {
|
|
121
|
+
/**
|
|
122
|
+
* CoachmarkOverlayElements should be used with one or many CoachmarkOverlayElement components as children.
|
|
123
|
+
* @see CoachmarkOverlayElement
|
|
124
|
+
*/
|
|
122
125
|
children: PropTypes.node.isRequired,
|
|
126
|
+
/**
|
|
127
|
+
* Optional class name for this component.
|
|
128
|
+
*/
|
|
123
129
|
className: PropTypes.string,
|
|
130
|
+
/**
|
|
131
|
+
* The label for the Close button.
|
|
132
|
+
*/
|
|
124
133
|
closeButtonLabel: PropTypes.string,
|
|
134
|
+
/**
|
|
135
|
+
* Current step of the coachmarks
|
|
136
|
+
*/
|
|
125
137
|
currentStep: PropTypes.number,
|
|
138
|
+
/**
|
|
139
|
+
* The visibility of CoachmarkOverlayElements is
|
|
140
|
+
* managed in the parent component.
|
|
141
|
+
*/
|
|
126
142
|
isVisible: PropTypes.bool,
|
|
143
|
+
/**
|
|
144
|
+
* The label for the Next button.
|
|
145
|
+
*/
|
|
127
146
|
nextButtonText: PropTypes.string,
|
|
147
|
+
/**
|
|
148
|
+
* Optional callback called when clicking on the Previous button.
|
|
149
|
+
*/
|
|
128
150
|
onBack: PropTypes.func,
|
|
151
|
+
/**
|
|
152
|
+
* Optional callback called when clicking on the Next button.
|
|
153
|
+
*/
|
|
129
154
|
onNext: PropTypes.func,
|
|
155
|
+
/**
|
|
156
|
+
* The label for the Previous button.
|
|
157
|
+
*/
|
|
130
158
|
previousButtonLabel: PropTypes.string,
|
|
159
|
+
/**
|
|
160
|
+
* Optional prop to render any media like images or animated media.
|
|
161
|
+
*/
|
|
131
162
|
renderMedia: PropTypes.func
|
|
132
163
|
};
|
|
133
|
-
|
|
134
164
|
//#endregion
|
|
135
|
-
export { CoachmarkOverlayElements };
|
|
165
|
+
export { CoachmarkOverlayElements };
|
|
@@ -10,7 +10,7 @@ import { require_classnames } from "../../node_modules/classnames/index.js";
|
|
|
10
10
|
import { pkg } from "../../settings.js";
|
|
11
11
|
import { useIsomorphicEffect } from "../../global/js/hooks/useIsomorphicEffect.js";
|
|
12
12
|
import { getDevtoolsProps } from "../../global/js/utils/devtools.js";
|
|
13
|
-
import
|
|
13
|
+
import "../Coachmark/utils/enums.js";
|
|
14
14
|
import { CoachmarkContext } from "../Coachmark/utils/context.js";
|
|
15
15
|
import { CoachmarkOverlay } from "../Coachmark/CoachmarkOverlay.js";
|
|
16
16
|
import { CoachmarkTagline } from "../Coachmark/CoachmarkTagline.js";
|
|
@@ -18,7 +18,6 @@ import { CoachmarkStackHome } from "./CoachmarkStackHome.js";
|
|
|
18
18
|
import React, { Children, useCallback, useEffect, useRef, useState } from "react";
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { createPortal } from "react-dom";
|
|
21
|
-
|
|
22
21
|
//#region src/components/CoachmarkStack/CoachmarkStack.tsx
|
|
23
22
|
/**
|
|
24
23
|
* Copyright IBM Corp. 2023, 2025
|
|
@@ -136,7 +135,7 @@ const CoachmarkStack = React.forwardRef(({ children, className, onClose = defaul
|
|
|
136
135
|
ref: (ref) => {
|
|
137
136
|
stackedCoachmarkRefs.current[idx] = ref;
|
|
138
137
|
},
|
|
139
|
-
kind:
|
|
138
|
+
kind: "stacked",
|
|
140
139
|
onClose: () => handleClose(false),
|
|
141
140
|
theme,
|
|
142
141
|
fixedIsVisible: false,
|
|
@@ -175,20 +174,59 @@ CoachmarkStack.deprecated = {
|
|
|
175
174
|
};
|
|
176
175
|
CoachmarkStack.displayName = componentName;
|
|
177
176
|
CoachmarkStack.propTypes = {
|
|
177
|
+
/**
|
|
178
|
+
* CoachmarkStack should use a single CoachmarkOverlayElements component as a child.
|
|
179
|
+
*/
|
|
178
180
|
children: PropTypes.node.isRequired,
|
|
181
|
+
/**
|
|
182
|
+
* Provide an optional class to be applied to the containing node.
|
|
183
|
+
*/
|
|
179
184
|
className: PropTypes.string,
|
|
185
|
+
/**
|
|
186
|
+
* The label for the button that will close the Stack
|
|
187
|
+
*/
|
|
180
188
|
closeButtonLabel: PropTypes.string,
|
|
189
|
+
/**
|
|
190
|
+
* Tooltip text and aria label for the Close button icon.
|
|
191
|
+
*/
|
|
181
192
|
closeIconDescription: PropTypes.string,
|
|
193
|
+
/**
|
|
194
|
+
* The description of the Coachmark.
|
|
195
|
+
*/
|
|
182
196
|
description: PropTypes.node.isRequired,
|
|
197
|
+
/**
|
|
198
|
+
* The labels used to link to the stackable Coachmarks.
|
|
199
|
+
*/
|
|
183
200
|
navLinkLabels: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,
|
|
201
|
+
/**
|
|
202
|
+
* Function to call when the CoachmarkStack closes.
|
|
203
|
+
*/
|
|
184
204
|
onClose: PropTypes.func,
|
|
205
|
+
/**
|
|
206
|
+
* Where in the DOM to render the stack.
|
|
207
|
+
* The default is `document.body`.
|
|
208
|
+
*/
|
|
185
209
|
portalTarget: PropTypes.string,
|
|
210
|
+
/**
|
|
211
|
+
* Optional prop to render any media like images or animated media.
|
|
212
|
+
*/
|
|
186
213
|
renderMedia: PropTypes.func,
|
|
214
|
+
/**
|
|
215
|
+
* The tagline title which will be fixed to the bottom right of the window and will serve as the display trigger.
|
|
216
|
+
*/
|
|
187
217
|
tagline: PropTypes.string.isRequired,
|
|
218
|
+
/**
|
|
219
|
+
* Determines the theme of the component.
|
|
220
|
+
*/
|
|
188
221
|
theme: PropTypes.oneOf(["light", "dark"]),
|
|
222
|
+
/**
|
|
223
|
+
* The title of the Coachmark.
|
|
224
|
+
*/
|
|
189
225
|
title: PropTypes.string.isRequired,
|
|
226
|
+
/**
|
|
227
|
+
* Label's tooltip position
|
|
228
|
+
*/
|
|
190
229
|
tooltipAlign: PropTypes.oneOf(["top", "bottom"])
|
|
191
230
|
};
|
|
192
|
-
|
|
193
231
|
//#endregion
|
|
194
|
-
export { CoachmarkStack };
|
|
232
|
+
export { CoachmarkStack };
|
|
@@ -17,7 +17,6 @@ import PropTypes from "prop-types";
|
|
|
17
17
|
import { Button, Tooltip } from "@carbon/react";
|
|
18
18
|
import { createPortal } from "react-dom";
|
|
19
19
|
import { Idea } from "@carbon/react/icons";
|
|
20
|
-
|
|
21
20
|
//#region src/components/CoachmarkStack/CoachmarkStackHome.tsx
|
|
22
21
|
/**
|
|
23
22
|
* Copyright IBM Corp. 2023, 2024
|
|
@@ -105,18 +104,57 @@ const CoachmarkStackHome = forwardRef(({ className, description, isOpen, renderM
|
|
|
105
104
|
});
|
|
106
105
|
CoachmarkStackHome.displayName = componentName;
|
|
107
106
|
CoachmarkStackHome.propTypes = {
|
|
107
|
+
/**
|
|
108
|
+
* Optional class name for this component.
|
|
109
|
+
*/
|
|
108
110
|
className: PropTypes.string,
|
|
111
|
+
/**
|
|
112
|
+
* The label for the button that will close the stack
|
|
113
|
+
*/
|
|
109
114
|
closeButtonLabel: PropTypes.string,
|
|
115
|
+
/**
|
|
116
|
+
* The description of the Coachmark.
|
|
117
|
+
*/
|
|
110
118
|
description: PropTypes.node.isRequired,
|
|
119
|
+
/**
|
|
120
|
+
* If the stack home is open.
|
|
121
|
+
*/
|
|
111
122
|
isOpen: PropTypes.bool.isRequired,
|
|
123
|
+
/**
|
|
124
|
+
* The labels used to link to the stackable Coachmarks.
|
|
125
|
+
*/
|
|
112
126
|
navLinkLabels: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,
|
|
127
|
+
/**
|
|
128
|
+
* For internal use only by CoachmarkStack and CoachmarkStackHome.
|
|
129
|
+
*/
|
|
113
130
|
onClickNavItem: PropTypes.func.isRequired,
|
|
131
|
+
/**
|
|
132
|
+
* Function to call when the stack closes.
|
|
133
|
+
*/
|
|
114
134
|
onClose: PropTypes.func.isRequired,
|
|
135
|
+
/**
|
|
136
|
+
* By default, the CoachmarkStackHome will be appended to the end of `document.body`.
|
|
137
|
+
* The CoachmarkStackHome will remain persistent as the user navigates the app until
|
|
138
|
+
* the user closes the CoachmarkStackHome.
|
|
139
|
+
*
|
|
140
|
+
* Alternatively, the app developer can tightly couple the CoachmarkStackHome to a DOM
|
|
141
|
+
* element or other component by specifying a CSS selector. The CoachmarkStackHome will
|
|
142
|
+
* remain visible as long as that element remains visible or mounted. When the
|
|
143
|
+
* element is hidden or component is unmounted, the CoachmarkStackHome will disappear.
|
|
144
|
+
*/
|
|
115
145
|
portalTarget: PropTypes.string,
|
|
146
|
+
/**
|
|
147
|
+
* Optional prop to render any media like images or animated media.
|
|
148
|
+
*/
|
|
116
149
|
renderMedia: PropTypes.func,
|
|
150
|
+
/**
|
|
151
|
+
* The title of the Coachmark.
|
|
152
|
+
*/
|
|
117
153
|
title: PropTypes.string.isRequired,
|
|
154
|
+
/**
|
|
155
|
+
* Label's tooltip position
|
|
156
|
+
*/
|
|
118
157
|
tooltipAlign: PropTypes.oneOf(["top", "bottom"])
|
|
119
158
|
};
|
|
120
|
-
|
|
121
159
|
//#endregion
|
|
122
|
-
export { CoachmarkStackHome };
|
|
160
|
+
export { CoachmarkStackHome };
|
|
@@ -13,7 +13,6 @@ import React, { Children, createElement, forwardRef, useRef, useState } from "re
|
|
|
13
13
|
import { node, shape, string } from "prop-types";
|
|
14
14
|
import { Button, OverflowMenu, OverflowMenuItem } from "@carbon/react";
|
|
15
15
|
import { ChevronDown, ChevronUp } from "@carbon/react/icons";
|
|
16
|
-
|
|
17
16
|
//#region src/components/ComboButton/ComboButton.tsx
|
|
18
17
|
/**
|
|
19
18
|
* Copyright IBM Corp. 2020, 2024
|
|
@@ -76,10 +75,13 @@ ComboButton.deprecated = {
|
|
|
76
75
|
};
|
|
77
76
|
ComboButton.displayName = componentName;
|
|
78
77
|
ComboButton.propTypes = {
|
|
78
|
+
/** Provide the contents of the `ComboButton` */
|
|
79
79
|
children: node.isRequired,
|
|
80
|
+
/** Provide an optional class to be applied to the containing node */
|
|
80
81
|
className: string,
|
|
82
|
+
/** Provide the [props of the `OverflowMenu`](https://react.carbondesignsystem.com/?path=/docs/overflowmenu) */
|
|
83
|
+
/**@ts-ignore*/
|
|
81
84
|
overflowMenu: shape(OverflowMenu.propTypes)
|
|
82
85
|
};
|
|
83
|
-
|
|
84
86
|
//#endregion
|
|
85
|
-
export { ComboButton };
|
|
87
|
+
export { ComboButton };
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import React from "react";
|
|
9
9
|
import { bool, func, node, object, oneOfType, string } from "prop-types";
|
|
10
|
-
|
|
11
10
|
//#region src/components/ComboButton/ComboButtonItem/index.tsx
|
|
12
11
|
/**
|
|
13
12
|
* Copyright IBM Corp. 2020, 2024
|
|
@@ -20,11 +19,14 @@ import { bool, func, node, object, oneOfType, string } from "prop-types";
|
|
|
20
19
|
*/
|
|
21
20
|
const ComboButtonItem = ({ ...rest }) => /* @__PURE__ */ React.createElement("span", rest);
|
|
22
21
|
ComboButtonItem.propTypes = {
|
|
22
|
+
/** Provide the contents of the `ComboButtonItem` */
|
|
23
23
|
children: node.isRequired,
|
|
24
|
+
/** Specify whether the `ComboButton` should be disabled, or not */
|
|
24
25
|
disabled: bool,
|
|
26
|
+
/** Provide an optional `href` for the `ComboButtonItem` to become an `a` element */
|
|
25
27
|
href: string,
|
|
28
|
+
/** Provide an optional icon to render */
|
|
26
29
|
renderIcon: oneOfType([func, object])
|
|
27
30
|
};
|
|
28
|
-
|
|
29
31
|
//#endregion
|
|
30
|
-
export { ComboButtonItem };
|
|
32
|
+
export { ComboButtonItem };
|
|
@@ -24,7 +24,6 @@ import { ItemOptionForValueField } from "../ConditionBuilderItem/ConditionBuilde
|
|
|
24
24
|
import React, { useContext, useState } from "react";
|
|
25
25
|
import PropTypes from "prop-types";
|
|
26
26
|
import { Close } from "@carbon/react/icons";
|
|
27
|
-
|
|
28
27
|
//#region src/components/ConditionBuilder/ConditionBlock/ConditionBlock.tsx
|
|
29
28
|
/**
|
|
30
29
|
* Copyright IBM Corp. 2024
|
|
@@ -102,7 +101,7 @@ const ConditionBlock = (props) => {
|
|
|
102
101
|
setShowDeletionPreview(false);
|
|
103
102
|
};
|
|
104
103
|
const manageActionButtons = (conditionIndex, conditions) => {
|
|
105
|
-
if (variant ===
|
|
104
|
+
if (variant === "Hierarchical") return true;
|
|
106
105
|
return isLastCondition(conditionIndex, conditions);
|
|
107
106
|
};
|
|
108
107
|
const getOperators = () => {
|
|
@@ -110,7 +109,7 @@ const ConditionBlock = (props) => {
|
|
|
110
109
|
return operatorConfig.filter((operator) => operator.type.indexOf(type) != -1 || operator.type == "all");
|
|
111
110
|
};
|
|
112
111
|
const getAriaAttributes = () => {
|
|
113
|
-
return variant ==
|
|
112
|
+
return variant == "Hierarchical" ? {
|
|
114
113
|
"aria-level": aria.level,
|
|
115
114
|
"aria-posinset": aria.posinset,
|
|
116
115
|
"aria-setsize": aria.setsize
|
|
@@ -240,25 +239,69 @@ const ConditionBlock = (props) => {
|
|
|
240
239
|
}) : null);
|
|
241
240
|
};
|
|
242
241
|
ConditionBlock.propTypes = {
|
|
242
|
+
/**
|
|
243
|
+
* callback to add a new condition
|
|
244
|
+
*/
|
|
243
245
|
addConditionHandler: PropTypes.func,
|
|
246
|
+
/**
|
|
247
|
+
* callback to add a new condition subgroup
|
|
248
|
+
*/
|
|
244
249
|
addConditionSubGroupHandler: PropTypes.func,
|
|
250
|
+
/**
|
|
251
|
+
* object hold aria attributes
|
|
252
|
+
*/
|
|
245
253
|
aria: PropTypes.object,
|
|
246
254
|
condition: PropTypes.object,
|
|
247
255
|
conditionIndex: PropTypes.number,
|
|
256
|
+
/**
|
|
257
|
+
* string that decides to show the condition connector
|
|
258
|
+
*/
|
|
248
259
|
conjunction: PropTypes.string,
|
|
260
|
+
/**
|
|
261
|
+
* object that hold the current group object where is condition is part of
|
|
262
|
+
*/
|
|
249
263
|
group: PropTypes.object,
|
|
264
|
+
/**
|
|
265
|
+
* handler for hiding sub group preview
|
|
266
|
+
*/
|
|
250
267
|
hideConditionPreviewHandler: PropTypes.func,
|
|
268
|
+
/**
|
|
269
|
+
* handler for hiding sub group preview
|
|
270
|
+
*/
|
|
251
271
|
hideConditionSubGroupPreviewHandler: PropTypes.func,
|
|
252
272
|
isLastCondition: PropTypes.func,
|
|
273
|
+
/**
|
|
274
|
+
* boolean that decides to show the statement(if/ excl.if)
|
|
275
|
+
*/
|
|
253
276
|
isStatement: PropTypes.bool,
|
|
277
|
+
/**
|
|
278
|
+
* callback to update the current condition of the state tree
|
|
279
|
+
*/
|
|
254
280
|
onChange: PropTypes.func,
|
|
281
|
+
/**
|
|
282
|
+
* callback to handle the connector(and/or) change
|
|
283
|
+
*/
|
|
255
284
|
onConnectorOperatorChange: PropTypes.func,
|
|
285
|
+
/**
|
|
286
|
+
* callback for Remove a condition
|
|
287
|
+
*/
|
|
256
288
|
onRemove: PropTypes.func,
|
|
289
|
+
/**
|
|
290
|
+
* callback to handle the statement(if/ excl.if) change
|
|
291
|
+
*/
|
|
257
292
|
onStatementChange: PropTypes.func,
|
|
293
|
+
/**
|
|
294
|
+
* handler for showing add condition preview
|
|
295
|
+
*/
|
|
258
296
|
showConditionPreviewHandler: PropTypes.func,
|
|
297
|
+
/**
|
|
298
|
+
* handler for showing sub group preview
|
|
299
|
+
*/
|
|
259
300
|
showConditionSubGroupPreviewHandler: PropTypes.func,
|
|
301
|
+
/**
|
|
302
|
+
* object that hold the current condition
|
|
303
|
+
*/
|
|
260
304
|
state: PropTypes.object
|
|
261
305
|
};
|
|
262
|
-
|
|
263
306
|
//#endregion
|
|
264
|
-
export { ConditionBlock as default };
|
|
307
|
+
export { ConditionBlock as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAepD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AA0BjE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ConditionBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAA+B,MAAM,OAAO,CAAC;AAepD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AA0BjE;;GAEG;AAEH,eAAO,MAAM,gBAAgB,8FA2E5B,CAAC"}
|
|
@@ -15,7 +15,6 @@ import ConditionBuilderContent from "./ConditionBuilderContent/ConditionBuilderC
|
|
|
15
15
|
import React, { useRef } from "react";
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
import { VStack } from "@carbon/react";
|
|
18
|
-
|
|
19
18
|
//#region src/components/ConditionBuilder/ConditionBuilder.tsx
|
|
20
19
|
/**
|
|
21
20
|
* Copyright IBM Corp. 2024, 2024
|
|
@@ -29,7 +28,7 @@ const componentName = "ConditionBuilder";
|
|
|
29
28
|
/**
|
|
30
29
|
* TODO: A description of the component.
|
|
31
30
|
*/
|
|
32
|
-
const ConditionBuilder = React.forwardRef(({ className, inputConfig, startConditionLabel = "Add Condition", popOverSearchThreshold, getOptions, initialState, getConditionState, getActionsState, variant = NON_HIERARCHICAL_VARIANT, actions, translateWithId, statementConfigCustom, onAddItem, readOnly, ...rest }, ref) => {
|
|
31
|
+
const ConditionBuilder = React.forwardRef(({ className, inputConfig, startConditionLabel = "Add Condition", popOverSearchThreshold, getOptions, initialState, getConditionState, getActionsState, variant = NON_HIERARCHICAL_VARIANT, actions, translateWithId, statementConfigCustom, onAddItem, onRemoveItem, readOnly, ...rest }, ref) => {
|
|
33
32
|
const localRef = useRef(null);
|
|
34
33
|
const conditionBuilderRef = ref || localRef;
|
|
35
34
|
const handleKeyDownHandler = (evt) => {
|
|
@@ -44,6 +43,7 @@ const ConditionBuilder = React.forwardRef(({ className, inputConfig, startCondit
|
|
|
44
43
|
conditionBuilderRef,
|
|
45
44
|
statementConfigCustom,
|
|
46
45
|
onAddItem,
|
|
46
|
+
onRemoveItem,
|
|
47
47
|
readOnly: !!readOnly
|
|
48
48
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
49
49
|
...rest,
|
|
@@ -63,14 +63,40 @@ const ConditionBuilder = React.forwardRef(({ className, inputConfig, startCondit
|
|
|
63
63
|
});
|
|
64
64
|
ConditionBuilder.displayName = componentName;
|
|
65
65
|
ConditionBuilder.propTypes = {
|
|
66
|
+
/**
|
|
67
|
+
* optional array of actions
|
|
68
|
+
*/
|
|
69
|
+
/**@ts-ignore */
|
|
66
70
|
actions: PropTypes.arrayOf(PropTypes.shape({
|
|
67
71
|
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
68
72
|
label: PropTypes.string.isRequired
|
|
69
73
|
})),
|
|
74
|
+
/**
|
|
75
|
+
* Provide an optional class to be applied to the containing node.
|
|
76
|
+
*/
|
|
70
77
|
className: PropTypes.string,
|
|
78
|
+
/**
|
|
79
|
+
* This is a callback that gives back the updated action state
|
|
80
|
+
*/
|
|
71
81
|
getActionsState: PropTypes.func,
|
|
82
|
+
/**
|
|
83
|
+
* This is a callback that gives back updated condition state
|
|
84
|
+
*/
|
|
72
85
|
getConditionState: PropTypes.func.isRequired,
|
|
86
|
+
/**
|
|
87
|
+
* Callback triggered to dynamically fetch options for a property of type 'option'.
|
|
88
|
+
* This is invoked when no static options array is provided in the input config.
|
|
89
|
+
* The function should return a Promise that resolves with an array of options in the required format.
|
|
90
|
+
|
|
91
|
+
*/
|
|
73
92
|
getOptions: PropTypes.func,
|
|
93
|
+
/**
|
|
94
|
+
* Optional prop if you want to pass a saved condition state, pass as "initialState.state".
|
|
95
|
+
* "initialState.enabledDefault" will populate the builder with the provided initial state before clicking Add Condition button.
|
|
96
|
+
*
|
|
97
|
+
* This state should respect the structure of condition state that is available in getConditionState callback
|
|
98
|
+
*/
|
|
99
|
+
/**@ts-ignore */
|
|
74
100
|
initialState: PropTypes.shape({
|
|
75
101
|
state: PropTypes.shape({
|
|
76
102
|
groups: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -96,6 +122,11 @@ ConditionBuilder.propTypes = {
|
|
|
96
122
|
}),
|
|
97
123
|
enabledDefault: PropTypes.bool
|
|
98
124
|
}),
|
|
125
|
+
/**
|
|
126
|
+
* This is a mandatory prop that defines the input to the condition builder.
|
|
127
|
+
|
|
128
|
+
*/
|
|
129
|
+
/**@ts-ignore */
|
|
99
130
|
inputConfig: PropTypes.shape({ properties: PropTypes.arrayOf(PropTypes.shape({
|
|
100
131
|
id: PropTypes.string.isRequired,
|
|
101
132
|
label: PropTypes.string.isRequired,
|
|
@@ -126,19 +157,49 @@ ConditionBuilder.propTypes = {
|
|
|
126
157
|
valueFormatter: PropTypes.func
|
|
127
158
|
})
|
|
128
159
|
})) }).isRequired,
|
|
160
|
+
/**
|
|
161
|
+
* this is an optional callback triggered before adding any condition , subgroup or group.
|
|
162
|
+
* User can optionally perform any validation and can stop add action if they return back {preventAdd:true}
|
|
163
|
+
*/
|
|
129
164
|
onAddItem: PropTypes.func,
|
|
165
|
+
/**
|
|
166
|
+
* this is an optional callback triggered before removing any condition , subgroup, group or action.
|
|
167
|
+
* User can optionally perform any validation and can stop remove action if they return back {preventRemove:true}
|
|
168
|
+
*/
|
|
169
|
+
onRemoveItem: PropTypes.func,
|
|
170
|
+
/**
|
|
171
|
+
* This will enable search in option popovers when option list length is more than this threshold
|
|
172
|
+
*/
|
|
130
173
|
popOverSearchThreshold: PropTypes.number.isRequired,
|
|
174
|
+
/**
|
|
175
|
+
* Whether the conditionBuilder should be readOnly
|
|
176
|
+
*/
|
|
131
177
|
readOnly: PropTypes.bool,
|
|
178
|
+
/**
|
|
179
|
+
* Provide a label to the button that starts condition builder
|
|
180
|
+
*/
|
|
132
181
|
startConditionLabel: PropTypes.string,
|
|
182
|
+
/**
|
|
183
|
+
* Optional prop for passing custom configuration for statement option from default op
|
|
184
|
+
*/
|
|
185
|
+
/**@ts-ignore */
|
|
133
186
|
statementConfigCustom: PropTypes.arrayOf(PropTypes.shape({
|
|
134
187
|
id: PropTypes.string.isRequired,
|
|
135
188
|
connector: PropTypes.oneOf(["and", "or"]).isRequired,
|
|
136
189
|
label: PropTypes.string.isRequired,
|
|
137
190
|
secondaryLabel: PropTypes.string
|
|
138
191
|
})),
|
|
192
|
+
/**
|
|
193
|
+
* Optional prop, if you need to pass translations to the texts on the component instead of the defined defaults.
|
|
194
|
+
* This callback function will receive the message id and you need to return the corresponding text for that id.
|
|
195
|
+
|
|
196
|
+
*/
|
|
197
|
+
/**@ts-ignore */
|
|
139
198
|
translateWithId: PropTypes.func,
|
|
199
|
+
/**
|
|
200
|
+
* Provide the condition builder variant: Non-Hierarchical/ Hierarchical
|
|
201
|
+
*/
|
|
140
202
|
variant: PropTypes.oneOf(["Non-Hierarchical", "Hierarchical"])
|
|
141
203
|
};
|
|
142
|
-
|
|
143
204
|
//#endregion
|
|
144
|
-
export { ConditionBuilder };
|
|
205
|
+
export { ConditionBuilder };
|
|
@@ -140,6 +140,13 @@ type AddItemConfig = {
|
|
|
140
140
|
state: ConditionBuilderState;
|
|
141
141
|
group?: ConditionGroup;
|
|
142
142
|
};
|
|
143
|
+
type RemoveItemType = 'condition' | 'subgroup' | 'group' | 'action';
|
|
144
|
+
type RemoveItemConfig = {
|
|
145
|
+
type: RemoveItemType;
|
|
146
|
+
state: ConditionBuilderState;
|
|
147
|
+
item?: Condition | ConditionGroup | Action;
|
|
148
|
+
group?: ConditionGroup;
|
|
149
|
+
};
|
|
143
150
|
type ConditionBuilderTextKeys = 'ifText' | 'unlessText' | 'excl_if' | 'and' | 'or' | 'is' | 'ifAll' | 'ifAny' | 'unlessAll' | 'unlessAny' | 'greater' | 'greaterEqual' | 'lower' | 'lowerEqual' | 'startsWith' | 'endsWith' | 'contains' | 'oneOf' | 'before' | 'after' | 'between' | 'addConditionText' | 'addConditionGroupText' | 'addSubgroupText' | 'conditionText' | 'propertyText' | 'operatorText' | 'valueText' | 'connectorText' | 'conditionRowText' | 'conditionRowGroupText' | 'removeConditionText' | 'addConditionRowText' | 'startText' | 'endText' | 'clearSearchText' | 'actionsText' | 'then' | 'removeActionText' | 'addActionText' | 'invalidText' | 'invalidNumberWarnText' | 'conditionBuilderText' | 'actionSectionText' | 'conditionHeadingText' | 'addPropertyText' | 'addOperatorText' | 'addValueText' | 'conditionBuilderHierarchicalText';
|
|
144
151
|
export type ConditionBuilderProps = {
|
|
145
152
|
inputConfig: inputConfig;
|
|
@@ -157,6 +164,9 @@ export type ConditionBuilderProps = {
|
|
|
157
164
|
onAddItem?: (config: AddItemConfig) => {
|
|
158
165
|
preventAdd: boolean;
|
|
159
166
|
};
|
|
167
|
+
onRemoveItem?: (config: RemoveItemConfig) => {
|
|
168
|
+
preventRemove: boolean;
|
|
169
|
+
};
|
|
160
170
|
readOnly?: boolean;
|
|
161
171
|
};
|
|
162
172
|
export type InitialState = {
|
|
@@ -182,6 +192,9 @@ export type ConditionBuilderContextProps = {
|
|
|
182
192
|
onAddItem?: (config: AddItemConfig) => {
|
|
183
193
|
preventAdd: boolean;
|
|
184
194
|
};
|
|
195
|
+
onRemoveItem?: (config: RemoveItemConfig) => {
|
|
196
|
+
preventRemove: boolean;
|
|
197
|
+
};
|
|
185
198
|
} & ConditionBuilderContextInputProps;
|
|
186
199
|
export {};
|
|
187
200
|
//# sourceMappingURL=ConditionBuilder.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilder.types.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;AAE9E,KAAK,YAAY,GAAG,IAAI,CAAC;AACzB,KAAK,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,OAAO,GAAG,YAAY,CAAC;AAC1E,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AAChD,KAAK,aAAa,GAAG,UAAU,CAAC;AAChC,KAAK,cAAc,GAAG,OAAO,CAAC;AAC9B,KAAK,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAChB,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,cAAc,GACd,cAAc,GACd,aAAa,GACb,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,eAAe,CAAC;IACzB,SA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WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"ConditionBuilder.types.d.ts","sourceRoot":"","sources":["../../../src/components/ConditionBuilder/ConditionBuilder.types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,aAAa,EACb,cAAc,EACd,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sDAAsD,CAAC;AACxF,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,IAAI,CAAC;AAC3C,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC;AAE9E,KAAK,YAAY,GAAG,IAAI,CAAC;AACzB,KAAK,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,OAAO,GAAG,YAAY,CAAC;AAC1E,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AAChD,KAAK,aAAa,GAAG,UAAU,CAAC;AAChC,KAAK,cAAc,GAAG,OAAO,CAAC;AAC9B,KAAK,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAChB,eAAe,GACf,iBAAiB,GACjB,YAAY,GACZ,cAAc,GACd,cAAc,GACd,aAAa,GACb,cAAc,GACd,YAAY,CAAC;AAEjB,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,WAAW,GACX,MAAM,GACN,QAAQ,GACR,QA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AAE,qBAAqB,EAC5B,SAAS,EAAE,SAAS,KACjB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,wBAAwB,KAAK,MAAM,CAAC;IAC3D,qBAAqB,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1C,mBAAmB,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,YAAY,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAC/D,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK;QAAE,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;CACzE,GAAG,iCAAiC,CAAC"}
|
package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionBuilderActions.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAG3D,UAAU,4BAA4B;IACpC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,QAAA,MAAM,uBAAuB;8BAG1B,4BAA4B;;
|
|
1
|
+
{"version":3,"file":"ConditionBuilderActions.d.ts","sourceRoot":"","sources":["../../../../src/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,SAAS,MAAM,YAAY,CAAC;AAYnC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAG3D,UAAU,4BAA4B;IACpC,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,QAAA,MAAM,uBAAuB;8BAG1B,4BAA4B;;QA+J7B;;WAEG;;;;;QAOH;;WAEG;;;CAhBJ,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -19,7 +19,6 @@ import React, { useContext, useState } from "react";
|
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import { Heading, Section } from "@carbon/react";
|
|
21
21
|
import { Close } from "@carbon/react/icons";
|
|
22
|
-
|
|
23
22
|
//#region src/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.tsx
|
|
24
23
|
/**
|
|
25
24
|
* Copyright IBM Corp. 2024
|
|
@@ -30,7 +29,7 @@ import { Close } from "@carbon/react/icons";
|
|
|
30
29
|
/**@ts-ignore */
|
|
31
30
|
var import_classnames = /* @__PURE__ */ __toESM(require_classnames());
|
|
32
31
|
const ConditionBuilderActions = ({ actions, className }) => {
|
|
33
|
-
const { actionState = [], setActionState, readOnly } = useContext(ConditionBuilderContext);
|
|
32
|
+
const { actionState = [], setActionState, readOnly, onRemoveItem, rootState } = useContext(ConditionBuilderContext);
|
|
34
33
|
const [showDeletionPreview, setShowDeletionPreview] = useState(-1);
|
|
35
34
|
const [actionsText, thenText, andText, removeActionText, addActionText, actionSectionText] = useTranslations([
|
|
36
35
|
"actionsText",
|
|
@@ -61,7 +60,13 @@ const ConditionBuilderActions = ({ actions, className }) => {
|
|
|
61
60
|
]);
|
|
62
61
|
};
|
|
63
62
|
const onRemove = (selectedId) => {
|
|
64
|
-
|
|
63
|
+
const actionToRemove = actionState.find((action) => action.id === selectedId);
|
|
64
|
+
const { preventRemove } = onRemoveItem?.({
|
|
65
|
+
type: "action",
|
|
66
|
+
state: rootState,
|
|
67
|
+
item: actionToRemove
|
|
68
|
+
}) ?? {};
|
|
69
|
+
if (!preventRemove) setActionState?.(actionState.filter((action) => action.id !== selectedId));
|
|
65
70
|
};
|
|
66
71
|
const handleShowDeletionPreview = (index) => {
|
|
67
72
|
setShowDeletionPreview(index);
|
|
@@ -123,12 +128,17 @@ const ConditionBuilderActions = ({ actions, className }) => {
|
|
|
123
128
|
})));
|
|
124
129
|
};
|
|
125
130
|
ConditionBuilderActions.propTypes = {
|
|
131
|
+
/**
|
|
132
|
+
* optional array of object that give the list of actions.
|
|
133
|
+
*/
|
|
126
134
|
actions: PropTypes.arrayOf(PropTypes.shape({
|
|
127
135
|
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
|
128
136
|
label: PropTypes.string.isRequired
|
|
129
137
|
})),
|
|
138
|
+
/**
|
|
139
|
+
* Provide an optional class to be applied to the containing node.
|
|
140
|
+
*/
|
|
130
141
|
className: PropTypes.string
|
|
131
142
|
};
|
|
132
|
-
|
|
133
143
|
//#endregion
|
|
134
|
-
export { ConditionBuilderActions as default };
|
|
144
|
+
export { ConditionBuilderActions as default };
|