@carbon/ibm-products 2.59.0 → 2.60.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +9105 -9158
- 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 +1150 -1565
- 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 +2837 -4774
- 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 +2250 -1875
- 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/_rollupPluginBabelHelpers.js +167 -196
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
- package/es/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/es/components/APIKeyModal/APIKeyModal.d.ts +2 -3
- package/es/components/APIKeyModal/APIKeyModal.js +18 -18
- package/es/components/AboutModal/AboutModal.js +2 -2
- package/es/components/ActionBar/ActionBar.d.ts +1 -2
- package/es/components/ActionBar/ActionBar.js +4 -4
- package/es/components/ActionBar/ActionBarItem.js +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.d.ts +0 -1
- package/es/components/ActionSet/ActionSet.js +23 -12
- package/es/components/AddSelect/AddSelect.js +8 -22
- package/es/components/AddSelect/AddSelectBody.js +12 -12
- package/es/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
- package/es/components/AddSelect/AddSelectColumn.d.ts +10 -11
- package/es/components/AddSelect/AddSelectColumn.js +6 -6
- package/es/components/AddSelect/AddSelectFilter.d.ts +15 -16
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectFormControl.d.ts +4 -5
- package/es/components/AddSelect/AddSelectList.d.ts +3 -4
- package/es/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.d.ts +21 -22
- package/es/components/AddSelect/AddSelectRow.js +3 -3
- package/es/components/AddSelect/AddSelectSidebar.d.ts +12 -13
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/AddSelectSort.d.ts +4 -5
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +6 -17
- package/es/components/AddSelect/hooks/usePath.js +1 -1
- package/es/components/BigNumbers/BigNumbers.d.ts +26 -3
- package/es/components/BigNumbers/BigNumbers.js +55 -110
- package/es/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
- package/es/components/BigNumbers/BigNumbersSkeleton.js +63 -0
- package/es/components/BigNumbers/constants.d.ts +17 -11
- package/es/components/BigNumbers/constants.js +17 -40
- package/es/components/BigNumbers/index.d.ts +7 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.d.ts +20 -21
- package/es/components/Card/CardFooter.js +5 -8
- package/es/components/Card/CardHeader.d.ts +22 -23
- package/es/components/Card/CardHeader.js +3 -5
- package/es/components/Carousel/Carousel.js +25 -25
- package/es/components/Cascade/Cascade.d.ts +1 -3
- package/es/components/Cascade/Cascade.js +18 -17
- package/es/components/Checklist/Checklist.d.ts +0 -1
- package/es/components/Checklist/Checklist.js +12 -12
- package/es/components/Checklist/ChecklistChart.d.ts +2 -2
- package/es/components/Checklist/ChecklistChart.js +2 -2
- package/es/components/Checklist/ChecklistIcon.d.ts +3 -3
- package/es/components/Checklist/ChecklistIcon.js +2 -2
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/Coachmark/utils/context.js +1 -1
- package/es/components/Coachmark/utils/enums.d.ts +1 -1
- package/es/components/Coachmark/utils/enums.js +3 -2
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
- package/es/components/CoachmarkStack/CoachmarkStack.js +11 -7
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
- package/es/components/ComboButton/ComboButton.d.ts +1 -1
- package/es/components/ComboButton/ComboButton.js +24 -25
- package/es/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
- package/es/components/ConditionBuilder/ConditionBuilder.js +7 -4
- package/es/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +21 -21
- package/es/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +23 -10
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +9 -9
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
- package/es/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.d.ts +2 -9
- package/es/components/ConditionBuilder/utils/util.js +59 -44
- package/es/components/CreateFullPage/CreateFullPage.js +6 -10
- package/es/components/CreateFullPage/CreateFullPageStep.js +10 -10
- package/es/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.d.ts +1 -2
- package/es/components/CreateModal/CreateModal.js +2 -2
- package/es/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +7 -9
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +57 -59
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +40 -40
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +11 -11
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +7 -7
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +6 -6
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +3 -3
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +8 -8
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +13 -13
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +16 -16
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +6 -6
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -29
- package/es/components/Datagrid/Datagrid/DatagridContent.js +17 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +25 -25
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +24 -26
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -10
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +10 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +8 -8
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +16 -16
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +27 -24
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +21 -21
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +10 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +36 -36
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +6 -7
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/types/index.d.ts +2 -5
- package/es/components/Datagrid/useActionsColumn.js +3 -3
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +2 -2
- package/es/components/Datagrid/useDatagrid.js +3 -3
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +8 -8
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +6 -4
- package/es/components/Datagrid/useRowExpander.js +5 -5
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +9 -10
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +7 -7
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.d.ts +1 -2
- package/es/components/EditInPlace/EditInPlace.js +7 -9
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +4 -4
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.d.ts +0 -1
- package/es/components/EmptyStates/EmptyState.js +6 -6
- package/es/components/EmptyStates/EmptyStateContent.d.ts +6 -7
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -4
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -4
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -4
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -4
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -4
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -4
- package/es/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
- package/es/components/ExportModal/ExportModal.d.ts +1 -2
- package/es/components/ExportModal/ExportModal.js +8 -9
- package/es/components/FeatureFlags/index.d.ts +2 -5
- package/es/components/FeatureFlags/index.js +3 -3
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +12 -12
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/FullPageError/assets/Error403SVG.d.ts +0 -1
- package/es/components/FullPageError/assets/Error404SVG.d.ts +0 -1
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
- package/es/components/Guidebanner/Guidebanner.js +9 -9
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
- package/es/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
- package/es/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
- package/es/components/ImportModal/ImportModal.js +5 -5
- package/es/components/InlineTip/InlineTip.d.ts +1 -1
- package/es/components/InlineTip/InlineTip.js +11 -13
- package/es/components/InlineTip/InlineTipButton.d.ts +2 -1
- package/es/components/InlineTip/utils.js +5 -5
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
- package/es/components/InterstitialScreen/InterstitialScreen.js +65 -49
- package/es/components/Nav/Nav.js +5 -5
- package/es/components/Nav/NavItem.d.ts +12 -13
- package/es/components/Nav/NavItem.js +7 -7
- package/es/components/Nav/NavList.js +12 -12
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
- package/es/components/NotificationsPanel/NotificationsPanel.js +74 -98
- package/es/components/OptionsTile/OptionsTile.js +4 -5
- package/es/components/PageHeader/PageHeader.d.ts +3 -4
- package/es/components/PageHeader/PageHeader.js +20 -21
- package/es/components/PageHeader/PageHeaderTitle.d.ts +3 -20
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.d.ts +1 -2
- package/es/components/RemoveModal/RemoveModal.js +3 -3
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +5 -5
- package/es/components/SearchBar/SearchBar.d.ts +2 -3
- package/es/components/SearchBar/SearchBar.js +6 -13
- package/es/components/SidePanel/SidePanel.d.ts +1 -2
- package/es/components/SidePanel/SidePanel.js +59 -73
- package/es/components/SimpleHeader/SimpleHeader.d.ts +5 -17
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/SingleAddSelect/SingleAddSelect.js +3 -1
- package/es/components/StatusIcon/StatusIcon.js +2 -2
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
- package/es/components/StringFormatter/StringFormatter.js +5 -5
- package/es/components/TagOverflow/TagOverflow.js +6 -6
- package/es/components/TagOverflow/TagOverflowModal.d.ts +10 -14
- package/es/components/TagOverflow/TagOverflowModal.js +5 -5
- package/es/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.d.ts +1 -1
- package/es/components/TagSet/TagSet.js +16 -19
- package/es/components/TagSet/TagSetModal.d.ts +8 -12
- package/es/components/TagSet/TagSetModal.js +7 -7
- package/es/components/TagSet/TagSetOverflow.d.ts +1 -1
- package/es/components/TagSet/TagSetOverflow.js +5 -4
- package/es/components/Tearsheet/Tearsheet.d.ts +1 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/es/components/Tearsheet/TearsheetShell.js +9 -9
- package/es/components/Toolbar/Toolbar.d.ts +1 -1
- package/es/components/Toolbar/Toolbar.js +18 -10
- package/es/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.d.ts +0 -1
- package/es/components/UserProfileImage/UserProfileImage.js +3 -3
- package/es/components/WebTerminal/WebTerminal.d.ts +0 -1
- package/es/components/WebTerminal/WebTerminal.js +10 -10
- package/es/components/WebTerminal/hooks/index.js +1 -1
- package/es/components/_Canary/Canary.d.ts +2 -3
- package/es/global/js/hooks/index.d.ts +2 -0
- package/es/global/js/hooks/useControllableState.js +2 -2
- package/es/global/js/hooks/useCreateComponentFocus.js +2 -2
- package/es/global/js/hooks/useCreateComponentStepChange.js +14 -14
- package/es/global/js/hooks/useFocus.js +33 -38
- package/es/global/js/hooks/useOverflowItems.d.ts +1 -1
- package/es/global/js/hooks/useOverflowItems.js +4 -4
- package/es/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -1
- package/es/global/js/hooks/usePresence.d.ts +10 -0
- package/es/global/js/hooks/usePresence.js +43 -0
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/hooks/useWindowResize.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +4 -4
- package/es/global/js/utils/checkForOverflow.js +2 -2
- package/es/global/js/utils/deepCloneObject.js +3 -3
- package/es/global/js/utils/getNodeTextContent.js +5 -5
- package/es/global/js/utils/getSupportedLocale.d.ts +10 -0
- package/es/global/js/utils/getSupportedLocale.js +27 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/motionConstants.js +2 -9
- package/es/global/js/utils/props-helper.d.ts +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/global/js/utils/scrollableAncestor.js +3 -3
- package/es/index.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +7 -7
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +862 -854
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-9.js +883 -879
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +3 -6
- package/lib/_virtual/_rollupPluginBabelHelpers.js +166 -196
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +6 -7
- package/lib/components/APIKeyModal/APIKeyDownloader.js +3 -3
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +2 -3
- package/lib/components/APIKeyModal/APIKeyModal.js +18 -18
- package/lib/components/AboutModal/AboutModal.js +2 -2
- package/lib/components/ActionBar/ActionBar.d.ts +1 -2
- package/lib/components/ActionBar/ActionBar.js +4 -4
- package/lib/components/ActionBar/ActionBarOverflowItems.d.ts +6 -7
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.d.ts +0 -1
- package/lib/components/ActionSet/ActionSet.js +23 -12
- package/lib/components/AddSelect/AddSelect.js +6 -20
- package/lib/components/AddSelect/AddSelectBody.js +10 -10
- package/lib/components/AddSelect/AddSelectBreadcrumbs.d.ts +3 -4
- package/lib/components/AddSelect/AddSelectColumn.d.ts +10 -11
- package/lib/components/AddSelect/AddSelectColumn.js +6 -6
- package/lib/components/AddSelect/AddSelectFilter.d.ts +15 -16
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectFormControl.d.ts +4 -5
- package/lib/components/AddSelect/AddSelectList.d.ts +3 -4
- package/lib/components/AddSelect/AddSelectMetaPanel.d.ts +4 -9
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.d.ts +21 -22
- package/lib/components/AddSelect/AddSelectRow.js +3 -3
- package/lib/components/AddSelect/AddSelectSidebar.d.ts +12 -13
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -1
- package/lib/components/AddSelect/AddSelectSort.d.ts +4 -5
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +6 -17
- package/lib/components/BigNumbers/BigNumbers.d.ts +26 -3
- package/lib/components/BigNumbers/BigNumbers.js +51 -106
- package/lib/components/BigNumbers/BigNumbersSkeleton.d.ts +17 -0
- package/lib/components/BigNumbers/BigNumbersSkeleton.js +65 -0
- package/lib/components/BigNumbers/constants.d.ts +17 -11
- package/lib/components/BigNumbers/constants.js +17 -41
- package/lib/components/BigNumbers/index.d.ts +7 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.d.ts +5 -31
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.d.ts +6 -7
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.d.ts +20 -21
- package/lib/components/Card/CardFooter.js +5 -8
- package/lib/components/Card/CardHeader.d.ts +22 -23
- package/lib/components/Card/CardHeader.js +3 -5
- package/lib/components/Carousel/Carousel.js +25 -25
- package/lib/components/Cascade/Cascade.d.ts +1 -3
- package/lib/components/Cascade/Cascade.js +18 -17
- package/lib/components/Checklist/Checklist.d.ts +0 -1
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.d.ts +2 -2
- package/lib/components/Checklist/ChecklistChart.js +8 -8
- package/lib/components/Checklist/ChecklistIcon.d.ts +3 -3
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/Coachmark/utils/enums.d.ts +1 -1
- package/lib/components/Coachmark/utils/enums.js +3 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +8 -8
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +15 -15
- package/lib/components/CoachmarkStack/CoachmarkStack.js +11 -7
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +4 -4
- package/lib/components/ComboButton/ComboButton.d.ts +1 -1
- package/lib/components/ComboButton/ComboButton.js +23 -24
- package/lib/components/ComboButton/ComboButtonItem/index.d.ts +4 -4
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.d.ts +18 -19
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +18 -13
- package/lib/components/ConditionBuilder/ConditionBuilder.js +6 -3
- package/lib/components/ConditionBuilder/ConditionBuilder.types.d.ts +24 -26
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.d.ts +2 -6
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.d.ts +10 -11
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.d.ts +17 -18
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +6 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +5 -19
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +2 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.d.ts +18 -18
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +22 -9
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.d.ts +3 -4
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +8 -8
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.d.ts +4 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.d.ts +2 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.d.ts +5 -6
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +40 -36
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.d.ts +3 -4
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.d.ts +2 -9
- package/lib/components/ConditionBuilder/utils/util.js +59 -43
- package/lib/components/CreateFullPage/CreateFullPage.js +6 -10
- package/lib/components/CreateFullPage/CreateFullPageStep.js +10 -10
- package/lib/components/CreateInfluencer/CreateInfluencer.d.ts +5 -11
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.d.ts +1 -2
- package/lib/components/CreateModal/CreateModal.js +2 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.d.ts +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +7 -9
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +17 -17
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +53 -55
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +6 -6
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +3 -29
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +16 -13
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -5
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +23 -25
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +10 -11
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -12
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +7 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.d.ts +7 -8
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.d.ts +4 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.d.ts +12 -13
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +9 -7
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.d.ts +14 -15
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.d.ts +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.d.ts +14 -23
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +19 -24
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +25 -22
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.d.ts +4 -5
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.d.ts +8 -9
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.d.ts +3 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.d.ts +10 -11
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.d.ts +9 -17
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.d.ts +1 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.d.ts +6 -7
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/types/index.d.ts +2 -5
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +2 -2
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +7 -7
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +6 -4
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +9 -10
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +6 -6
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.d.ts +1 -2
- package/lib/components/EditInPlace/EditInPlace.js +7 -9
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +4 -4
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.d.ts +6 -7
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateIllustration.d.ts +1 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +0 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/EmptyStates/assets/ErrorIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NoDataIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NoTagsIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NotFoundIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/NotificationsIllustration.d.ts +3 -4
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.d.ts +3 -4
- package/lib/components/ExportModal/ExportModal.d.ts +1 -2
- package/lib/components/ExportModal/ExportModal.js +8 -9
- package/lib/components/FeatureFlags/index.d.ts +2 -5
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +11 -11
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +0 -1
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +0 -1
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +0 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/HTTPErrors/HTTPErrorContent.d.ts +4 -4
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.d.ts +0 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.d.ts +0 -1
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.d.ts +0 -1
- package/lib/components/ImportModal/ImportModal.js +4 -4
- package/lib/components/InlineTip/InlineTip.d.ts +1 -1
- package/lib/components/InlineTip/InlineTip.js +9 -11
- package/lib/components/InlineTip/InlineTipButton.d.ts +2 -1
- package/lib/components/InlineTip/utils.js +5 -5
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +16 -0
- package/lib/components/InterstitialScreen/InterstitialScreen.js +64 -48
- package/lib/components/Nav/Nav.js +1 -1
- package/lib/components/Nav/NavItem.d.ts +12 -13
- package/lib/components/Nav/NavItem.js +7 -7
- package/lib/components/Nav/NavList.js +12 -12
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +7 -10
- package/lib/components/NotificationsPanel/NotificationsPanel.js +74 -98
- package/lib/components/OptionsTile/OptionsTile.js +5 -6
- package/lib/components/PageHeader/PageHeader.d.ts +3 -4
- package/lib/components/PageHeader/PageHeader.js +19 -20
- package/lib/components/PageHeader/PageHeaderTitle.d.ts +3 -20
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.d.ts +1 -2
- package/lib/components/RemoveModal/RemoveModal.js +3 -3
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +4 -4
- package/lib/components/SearchBar/SearchBar.d.ts +2 -3
- package/lib/components/SearchBar/SearchBar.js +6 -13
- package/lib/components/SidePanel/SidePanel.d.ts +1 -2
- package/lib/components/SidePanel/SidePanel.js +60 -74
- package/lib/components/SimpleHeader/SimpleHeader.d.ts +5 -17
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -1
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +15 -9
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +6 -6
- package/lib/components/TagOverflow/TagOverflowModal.d.ts +10 -14
- package/lib/components/TagOverflow/TagOverflowModal.js +5 -5
- package/lib/components/TagOverflow/TagOverflowPopover.d.ts +0 -1
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.d.ts +1 -1
- package/lib/components/TagSet/TagSet.js +16 -19
- package/lib/components/TagSet/TagSetModal.d.ts +8 -12
- package/lib/components/TagSet/TagSetModal.js +7 -7
- package/lib/components/TagSet/TagSetOverflow.d.ts +1 -1
- package/lib/components/TagSet/TagSetOverflow.js +5 -4
- package/lib/components/Tearsheet/Tearsheet.d.ts +1 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.d.ts +1 -3
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.d.ts +2 -3
- package/lib/components/Tearsheet/TearsheetShell.js +7 -7
- package/lib/components/Toolbar/Toolbar.d.ts +1 -1
- package/lib/components/Toolbar/Toolbar.js +18 -10
- package/lib/components/Toolbar/ToolbarButton.d.ts +2 -3
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/Toolbar/ToolbarGroup.d.ts +1 -1
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.d.ts +0 -1
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.d.ts +0 -1
- package/lib/components/WebTerminal/WebTerminal.js +11 -11
- package/lib/components/_Canary/Canary.d.ts +2 -3
- package/lib/global/js/hooks/index.d.ts +2 -0
- package/lib/global/js/hooks/useControllableState.js +2 -2
- package/lib/global/js/hooks/useCreateComponentFocus.js +2 -2
- package/lib/global/js/hooks/useCreateComponentStepChange.js +14 -14
- package/lib/global/js/hooks/useFocus.js +33 -38
- package/lib/global/js/hooks/useOverflowItems.d.ts +1 -1
- package/lib/global/js/hooks/useOverflowItems.js +4 -4
- package/lib/global/js/hooks/usePrefersReducedMotion.d.ts +1 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -3
- package/lib/global/js/hooks/usePresence.d.ts +10 -0
- package/lib/global/js/hooks/usePresence.js +45 -0
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +4 -4
- package/lib/global/js/utils/checkForOverflow.js +2 -2
- package/lib/global/js/utils/deepCloneObject.js +3 -3
- package/lib/global/js/utils/getNodeTextContent.js +5 -5
- package/lib/global/js/utils/getSupportedLocale.d.ts +10 -0
- package/lib/global/js/utils/getSupportedLocale.js +29 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/motionConstants.js +1 -8
- package/lib/global/js/utils/props-helper.d.ts +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/global/js/utils/scrollableAncestor.js +3 -3
- package/lib/index.js +5 -5
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +7 -7
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +863 -855
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +884 -880
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +3 -6
- package/package.json +34 -35
- package/scss/components/APIKeyModal/_api-key-modal.scss +7 -7
- package/scss/components/APIKeyModal/_carbon-imports.scss +5 -5
- package/scss/components/AboutModal/_about-modal.scss +13 -13
- package/scss/components/AboutModal/_carbon-imports.scss +2 -2
- package/scss/components/ActionBar/_action-bar.scss +2 -2
- package/scss/components/ActionBar/_carbon-imports.scss +2 -2
- package/scss/components/ActionSet/_action-set.scss +9 -10
- package/scss/components/ActionSet/_carbon-imports.scss +2 -2
- package/scss/components/AddSelect/_add-select.scss +43 -40
- package/scss/components/AddSelect/_carbon-imports.scss +10 -10
- package/scss/components/BigNumbers/_big-numbers.scss +26 -20
- package/scss/components/BigNumbers/_carbon-imports.scss +2 -2
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +8 -6
- package/scss/components/BreadcrumbWithOverflow/_carbon-imports.scss +3 -3
- package/scss/components/ButtonMenu/_button-menu.scss +3 -3
- package/scss/components/ButtonMenu/_carbon-imports.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_button-set-with-overflow.scss +2 -2
- package/scss/components/ButtonSetWithOverflow/_carbon-imports.scss +1 -1
- package/scss/components/Card/_carbon-imports.scss +2 -2
- package/scss/components/Card/_card.scss +23 -22
- package/scss/components/Carousel/_carousel.scss +5 -6
- package/scss/components/Cascade/_cascade.scss +2 -2
- package/scss/components/Checklist/_carbon-imports.scss +1 -1
- package/scss/components/Checklist/_checklist.scss +23 -24
- package/scss/components/Coachmark/_carbon-imports.scss +1 -1
- package/scss/components/Coachmark/_coachmark-dragbar.scss +1 -1
- package/scss/components/Coachmark/_coachmark-overlay.scss +34 -27
- package/scss/components/Coachmark/_coachmark-tagline.scss +18 -15
- package/scss/components/Coachmark/_coachmark.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +17 -17
- package/scss/components/CoachmarkButton/_coachmark-button.scss +1 -1
- package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +1 -1
- package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +5 -5
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +4 -4
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +11 -11
- package/scss/components/ComboButton/_combo-button.scss +13 -9
- package/scss/components/ConditionBuilder/_condition-builder.scss +11 -12
- package/scss/components/ConditionBuilder/styles/_conditionBuilderCondition.scss +10 -10
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +26 -30
- package/scss/components/CreateFullPage/_carbon-imports.scss +6 -6
- package/scss/components/CreateFullPage/_create-full-page.scss +36 -26
- package/scss/components/CreateInfluencer/_carbon-imports.scss +1 -1
- package/scss/components/CreateInfluencer/_create-influencer.scss +5 -2
- package/scss/components/CreateModal/_carbon-imports.scss +3 -3
- package/scss/components/CreateModal/_create-modal.scss +15 -14
- package/scss/components/CreateSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/CreateSidePanel/_create-side-panel.scss +5 -5
- package/scss/components/CreateTearsheet/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +22 -20
- package/scss/components/CreateTearsheetNarrow/_carbon-imports.scss +1 -1
- package/scss/components/CreateTearsheetNarrow/_create-tearsheet-narrow.scss +8 -8
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +33 -32
- package/scss/components/Datagrid/_datagrid.scss +12 -8
- package/scss/components/Datagrid/styles/_datagrid.scss +135 -120
- package/scss/components/Datagrid/styles/_draggableElement.scss +11 -11
- package/scss/components/Datagrid/styles/_useActionsColumn.scss +1 -1
- package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +2 -3
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +7 -7
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +13 -13
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +62 -63
- package/scss/components/Datagrid/styles/_useNestedRows.scss +16 -16
- package/scss/components/Datagrid/styles/_useNestedTable.scss +10 -7
- package/scss/components/Datagrid/styles/_useSelectAllToggle.scss +6 -6
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +6 -6
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +11 -11
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +9 -9
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +29 -29
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +10 -9
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +6 -8
- package/scss/components/DecoratorBase/_decorator-base.scss +11 -11
- package/scss/components/DelimitedList/_delimited-list.scss +1 -1
- package/scss/components/DescriptionList/_description-list.scss +9 -9
- package/scss/components/EditInPlace/_carbon-imports.scss +2 -2
- package/scss/components/EditInPlace/_edit-in-place.scss +8 -7
- package/scss/components/EditSidePanel/_carbon-imports.scss +1 -1
- package/scss/components/EditSidePanel/_edit-side-panel.scss +4 -4
- package/scss/components/EditTearsheet/_carbon-imports.scss +9 -0
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +20 -21
- package/scss/components/EditTearsheet/_index-with-carbon.scss +9 -0
- package/scss/components/EmptyStates/_carbon-imports.scss +2 -2
- package/scss/components/EmptyStates/_empty-state.scss +12 -10
- package/scss/components/ExampleComponent/_carbon-imports.scss +1 -1
- package/scss/components/ExportModal/_carbon-imports.scss +6 -6
- package/scss/components/ExportModal/_export-modal.scss +6 -6
- package/scss/components/FilterPanel/_carbon-imports.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +5 -5
- package/scss/components/FilterPanel/_filter-panel-checkbox.scss +3 -3
- package/scss/components/FilterPanel/_filter-panel-group.scss +4 -6
- package/scss/components/FilterPanel/_filter-panel-label.scss +1 -1
- package/scss/components/FilterPanel/_filter-panel-search.scss +8 -6
- package/scss/components/FilterPanel/_filter-panel.scss +1 -2
- package/scss/components/FilterSummary/_filter-summary.scss +9 -9
- package/scss/components/FullPageError/_full-page-error.scss +8 -9
- package/scss/components/GetStartedCard/_get-started-card.scss +12 -14
- package/scss/components/Guidebanner/_guidebanner.scss +37 -36
- package/scss/components/HTTPErrors/_carbon-imports.scss +1 -1
- package/scss/components/HTTPErrors/_http-errors.scss +11 -11
- package/scss/components/ImportModal/_carbon-imports.scss +4 -4
- package/scss/components/ImportModal/_import-modal.scss +12 -13
- package/scss/components/InlineTip/_inline-tip.scss +26 -25
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +43 -44
- package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +2 -2
- package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +2 -2
- package/scss/components/Nav/_nav.scss +32 -37
- package/scss/components/NonLinearReading/_non-linear-reading.scss +11 -7
- package/scss/components/NotificationsPanel/_carbon-imports.scss +3 -3
- package/scss/components/NotificationsPanel/_notifications-panel.scss +50 -40
- package/scss/components/OptionsTile/_carbon-imports.scss +1 -1
- package/scss/components/OptionsTile/_options-tile.scss +23 -25
- package/scss/components/PageHeader/_carbon-imports.scss +4 -4
- package/scss/components/PageHeader/_page-header.scss +109 -105
- package/scss/components/ProductiveCard/_productive-card.scss +11 -12
- package/scss/components/RemoveModal/_carbon-imports.scss +3 -3
- package/scss/components/RemoveModal/_remove-modal.scss +4 -4
- package/scss/components/Saving/_carbon-imports.scss +2 -2
- package/scss/components/Saving/_saving.scss +2 -2
- package/scss/components/ScrollGradient/_scroll-gradient.scss +18 -18
- package/scss/components/SidePanel/_animations.scss +78 -0
- package/scss/components/SidePanel/_carbon-imports.scss +1 -1
- package/scss/components/SidePanel/_side-panel.scss +154 -65
- package/scss/components/SimpleHeader/_simple-header.scss +3 -3
- package/scss/components/StatusIcon/_status-icon.scss +1 -1
- package/scss/components/StatusIndicator/_carbon-imports.scss +2 -2
- package/scss/components/StatusIndicator/_status-indicator.scss +11 -11
- package/scss/components/StringFormatter/_carbon-imports.scss +1 -1
- package/scss/components/StringFormatter/_string-formatter.scss +6 -7
- package/scss/components/TagOverflow/_tag-overflow.scss +14 -15
- package/scss/components/TagSet/_carbon-imports.scss +5 -5
- package/scss/components/TagSet/_tag-set.scss +13 -14
- package/scss/components/Tearsheet/_carbon-imports.scss +2 -2
- package/scss/components/Tearsheet/_tearsheet.scss +55 -41
- package/scss/components/Toolbar/_carbon-imports.scss +1 -1
- package/scss/components/Toolbar/_toolbar.scss +11 -11
- package/scss/components/TooltipTrigger/_tooltip-trigger.scss +2 -2
- package/scss/components/TruncatedList/_truncated-list.scss +8 -2
- package/scss/components/UserAvatar/_carbon-imports.scss +1 -1
- package/scss/components/UserAvatar/_user-avatar.scss +6 -16
- package/scss/components/UserProfileImage/_carbon-imports.scss +1 -1
- package/scss/components/UserProfileImage/_color-map.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +5 -4
- package/scss/components/WebTerminal/_carbon-imports.scss +2 -2
- package/scss/components/WebTerminal/_web-terminal.scss +11 -11
- package/scss/components/_index-released-only-with-carbon.scss +1 -0
- package/scss/components/_index-with-carbon.scss +1 -0
- package/scss/global/decorators/_side-panel-decorator.scss +3 -3
- package/scss/global/styles/_display-box.scss +19 -19
- package/scss/global/styles/_mixins.scss +3 -3
- package/scss/index-full-carbon.scss +1 -1
- package/telemetry.yml +5 -2
- package/es/components/SidePanel/motion/variants.d.ts +0 -67
- package/es/components/SidePanel/motion/variants.js +0 -79
- package/es/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/es/global/js/utils/keyboardNavigation.js +0 -37
- package/es/global/js/utils/wrapFocus.d.ts +0 -25
- package/es/global/js/utils/wrapFocus.js +0 -68
- package/lib/components/SidePanel/motion/variants.d.ts +0 -67
- package/lib/components/SidePanel/motion/variants.js +0 -83
- package/lib/global/js/utils/keyboardNavigation.d.ts +0 -27
- package/lib/global/js/utils/keyboardNavigation.js +0 -41
- package/lib/global/js/utils/wrapFocus.d.ts +0 -25
- package/lib/global/js/utils/wrapFocus.js +0 -73
@@ -56,21 +56,21 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
56
56
|
var className = _ref.className,
|
57
57
|
children = _ref.children,
|
58
58
|
_ref$isVisible = _ref.isVisible,
|
59
|
-
isVisible = _ref$isVisible ===
|
59
|
+
isVisible = _ref$isVisible === undefined ? defaults.isVisible : _ref$isVisible,
|
60
60
|
media = _ref.media,
|
61
61
|
renderMedia = _ref.renderMedia,
|
62
62
|
_ref$currentStep = _ref.currentStep,
|
63
|
-
currentStep = _ref$currentStep ===
|
63
|
+
currentStep = _ref$currentStep === undefined ? defaults.currentStep : _ref$currentStep,
|
64
64
|
_ref$nextButtonText = _ref.nextButtonText,
|
65
|
-
nextButtonText = _ref$nextButtonText ===
|
65
|
+
nextButtonText = _ref$nextButtonText === undefined ? defaults.nextButtonText : _ref$nextButtonText,
|
66
66
|
_ref$previousButtonLa = _ref.previousButtonLabel,
|
67
|
-
previousButtonLabel = _ref$previousButtonLa ===
|
67
|
+
previousButtonLabel = _ref$previousButtonLa === undefined ? defaults.previousButtonLabel : _ref$previousButtonLa,
|
68
68
|
_ref$closeButtonLabel = _ref.closeButtonLabel,
|
69
|
-
closeButtonLabel = _ref$closeButtonLabel ===
|
69
|
+
closeButtonLabel = _ref$closeButtonLabel === undefined ? defaults.closeButtonLabel : _ref$closeButtonLabel,
|
70
70
|
_ref$onNext = _ref.onNext,
|
71
|
-
onNext = _ref$onNext ===
|
71
|
+
onNext = _ref$onNext === undefined ? defaults.onNext : _ref$onNext,
|
72
72
|
_ref$onBack = _ref.onBack,
|
73
|
-
onBack = _ref$onBack ===
|
73
|
+
onBack = _ref$onBack === undefined ? defaults.onBack : _ref$onBack,
|
74
74
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
75
75
|
var buttonFocusRef = React.useRef(undefined);
|
76
76
|
var scrollRef = React.useRef(undefined);
|
@@ -88,7 +88,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
88
88
|
if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
|
89
89
|
setTimeout(function () {
|
90
90
|
var _buttonFocusRef$curre;
|
91
|
-
(_buttonFocusRef$curre = buttonFocusRef.current) === null || _buttonFocusRef$curre ===
|
91
|
+
(_buttonFocusRef$curre = buttonFocusRef.current) === null || _buttonFocusRef$curre === undefined || _buttonFocusRef$curre.focus();
|
92
92
|
}, 1000);
|
93
93
|
}
|
94
94
|
_setCurrentProgStep(value);
|
@@ -97,7 +97,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
97
97
|
var progStepFloor = 0;
|
98
98
|
var progStepCeil = numProgSteps - 1;
|
99
99
|
var renderMediaContent = React.useMemo(function () {
|
100
|
-
return renderMedia === null || renderMedia ===
|
100
|
+
return renderMedia === null || renderMedia === undefined ? undefined : renderMedia({
|
101
101
|
playStep: currentProgStep
|
102
102
|
});
|
103
103
|
}, [currentProgStep, renderMedia]);
|
@@ -106,7 +106,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
106
106
|
// When current step is set by props
|
107
107
|
// scroll to the appropriate view on the carrousel
|
108
108
|
var targetStep = lodash.clamp(currentStep, progStepFloor, progStepCeil);
|
109
|
-
scrollRef === null || scrollRef ===
|
109
|
+
scrollRef === null || scrollRef === undefined || (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === undefined || (_scrollRef$current$sc = _scrollRef$current.scrollToView) === null || _scrollRef$current$sc === undefined || _scrollRef$current$sc.call(_scrollRef$current, targetStep);
|
110
110
|
// Avoid circular call to this hook
|
111
111
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
112
112
|
}, [currentStep]);
|
@@ -138,7 +138,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
138
138
|
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
139
139
|
}),
|
140
140
|
ref: ref
|
141
|
-
}, devtools.getDevtoolsProps(componentName)), hasMedia && (media === null || media ===
|
141
|
+
}, devtools.getDevtoolsProps(componentName)), hasMedia && (media === null || media === undefined ? undefined : media.render) && media.render(), hasMedia && (media === null || media === undefined ? undefined : media.filePaths) && /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
142
142
|
className: "".concat(blockClass, "__element-stepped-media"),
|
143
143
|
filePaths: media.filePaths,
|
144
144
|
playStep: currentProgStep
|
@@ -167,9 +167,9 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
167
167
|
onClick: function onClick() {
|
168
168
|
var _scrollRef$current2, _scrollRef$current2$s;
|
169
169
|
var targetStep = lodash.clamp(currentProgStep - 1, progStepFloor, progStepCeil);
|
170
|
-
scrollRef === null || scrollRef ===
|
170
|
+
scrollRef === null || scrollRef === undefined || (_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === undefined || (_scrollRef$current2$s = _scrollRef$current2.scrollToView) === null || _scrollRef$current2$s === undefined || _scrollRef$current2$s.call(_scrollRef$current2, targetStep);
|
171
171
|
setCurrentProgStep(targetStep);
|
172
|
-
onBack === null || onBack ===
|
172
|
+
onBack === null || onBack === undefined || onBack();
|
173
173
|
}
|
174
174
|
}, previousButtonLabel), currentProgStep < progStepCeil ? /*#__PURE__*/React.createElement(react.Button, {
|
175
175
|
size: "sm",
|
@@ -179,9 +179,9 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
179
179
|
onClick: function onClick() {
|
180
180
|
var _scrollRef$current3, _scrollRef$current3$s;
|
181
181
|
var targetStep = lodash.clamp(currentProgStep + 1, progStepFloor, progStepCeil);
|
182
|
-
scrollRef === null || scrollRef ===
|
182
|
+
scrollRef === null || scrollRef === undefined || (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 === undefined || (_scrollRef$current3$s = _scrollRef$current3.scrollToView) === null || _scrollRef$current3$s === undefined || _scrollRef$current3$s.call(_scrollRef$current3, targetStep);
|
183
183
|
setCurrentProgStep(targetStep);
|
184
|
-
onNext === null || onNext ===
|
184
|
+
onNext === null || onNext === undefined || onNext();
|
185
185
|
}
|
186
186
|
}, nextButtonText) : closeButtonLabel && /*#__PURE__*/React.createElement(react.Button, _rollupPluginBabelHelpers.extends({
|
187
187
|
size: "sm",
|
@@ -54,22 +54,22 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
54
54
|
var children = _ref.children,
|
55
55
|
className = _ref.className,
|
56
56
|
_ref$onClose = _ref.onClose,
|
57
|
-
onClose = _ref$onClose ===
|
57
|
+
onClose = _ref$onClose === undefined ? defaults.onClose : _ref$onClose,
|
58
58
|
description = _ref.description,
|
59
59
|
media = _ref.media,
|
60
60
|
navLinkLabels = _ref.navLinkLabels,
|
61
61
|
_ref$portalTarget = _ref.portalTarget,
|
62
|
-
portalTarget = _ref$portalTarget ===
|
62
|
+
portalTarget = _ref$portalTarget === undefined ? defaults.portalTarget : _ref$portalTarget,
|
63
63
|
closeButtonLabel = _ref.closeButtonLabel,
|
64
64
|
tagline = _ref.tagline,
|
65
65
|
_ref$theme = _ref.theme,
|
66
|
-
theme = _ref$theme ===
|
66
|
+
theme = _ref$theme === undefined ? defaults.theme : _ref$theme,
|
67
67
|
title = _ref.title,
|
68
68
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
69
69
|
var portalNode = React.useRef(null);
|
70
70
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
71
71
|
var _document$querySelect, _document, _document2, _document3;
|
72
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
72
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === undefined ? undefined : _document.querySelector(portalTarget)) !== null && _document$querySelect !== undefined ? _document$querySelect : (_document2 = document) === null || _document2 === undefined ? undefined : _document2.querySelector('body') : (_document3 = document) === null || _document3 === undefined ? undefined : _document3.querySelector('body');
|
73
73
|
}, [portalTarget]);
|
74
74
|
var stackHomeRef = React.useRef(null);
|
75
75
|
var stackedCoachmarkRefs = React.useRef([]);
|
@@ -119,7 +119,11 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
119
119
|
}, [onClose]);
|
120
120
|
var escFunction = React.useCallback(function (event) {
|
121
121
|
if (event.key === 'Escape') {
|
122
|
-
selectedItemNumber === 0
|
122
|
+
if (selectedItemNumber === 0) {
|
123
|
+
handleClose(true);
|
124
|
+
} else {
|
125
|
+
handleClose(false);
|
126
|
+
}
|
123
127
|
}
|
124
128
|
}, [handleClose, selectedItemNumber]);
|
125
129
|
React.useEffect(function () {
|
@@ -186,7 +190,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
186
190
|
return /*#__PURE__*/React.createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
187
191
|
key: idx,
|
188
192
|
ref: function ref(_ref2) {
|
189
|
-
|
193
|
+
stackedCoachmarkRefs.current[idx] = _ref2;
|
190
194
|
},
|
191
195
|
kind: enums.COACHMARK_OVERLAY_KIND.STACKED,
|
192
196
|
onClose: function onClose() {
|
@@ -219,7 +223,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
219
223
|
portalTarget: portalTarget,
|
220
224
|
closeButtonLabel: closeButtonLabel,
|
221
225
|
title: title
|
222
|
-
}), portalNode !== null && portalNode !==
|
226
|
+
}), portalNode !== null && portalNode !== undefined && portalNode.current ? /*#__PURE__*/reactDom.createPortal(wrappedChildren, portalNode === null || portalNode === undefined ? undefined : portalNode.current) : null));
|
223
227
|
});
|
224
228
|
|
225
229
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -64,7 +64,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
64
64
|
var portalNode = React.useRef(null);
|
65
65
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
66
66
|
var _document$querySelect, _document, _document2, _document3;
|
67
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
67
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === undefined ? undefined : _document.querySelector(portalTarget)) !== null && _document$querySelect !== undefined ? _document$querySelect : (_document2 = document) === null || _document2 === undefined ? undefined : _document2.querySelector('body') : (_document3 = document) === null || _document3 === undefined ? undefined : _document3.querySelector('body');
|
68
68
|
}, [portalTarget]);
|
69
69
|
if (!navLinkLabels) {
|
70
70
|
return pconsole.default.warn("".concat(componentName, " is an Onboarding internal component and is not intended for general use."));
|
@@ -83,7 +83,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
83
83
|
ref: ref
|
84
84
|
}, label));
|
85
85
|
}
|
86
|
-
return portalNode !== null && portalNode !==
|
86
|
+
return portalNode !== null && portalNode !== undefined && portalNode.current ? /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
87
87
|
className: cx(blockClass, className),
|
88
88
|
ref: ref
|
89
89
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(CoachmarkHeader.CoachmarkHeader, {
|
@@ -98,7 +98,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
98
98
|
}, !hasMedia && /*#__PURE__*/React.createElement(icons.Idea, {
|
99
99
|
size: 20,
|
100
100
|
className: "".concat(blockClass, "__icon-idea")
|
101
|
-
}), hasMedia && (media === null || media ===
|
101
|
+
}), hasMedia && (media === null || media === undefined ? undefined : media.render) && media.render(), hasMedia && (media === null || media === undefined ? undefined : media.filePaths) && /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
102
102
|
className: "".concat(blockClass, "__element-stepped-media"),
|
103
103
|
filePaths: media.filePaths,
|
104
104
|
playStep: 0
|
@@ -127,7 +127,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
127
127
|
setLinkFocusIndex(0);
|
128
128
|
_onClose();
|
129
129
|
}
|
130
|
-
}, closeButtonLabel))))), portalNode === null || portalNode ===
|
130
|
+
}, closeButtonLabel))))), portalNode === null || portalNode === undefined ? undefined : portalNode.current) : null;
|
131
131
|
});
|
132
132
|
|
133
133
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -37,5 +37,5 @@ export interface ComboButtonProps extends ComponentProps<'div'> {
|
|
37
37
|
/**
|
38
38
|
* The combo button consolidates similar actions, while exposing the most commonly used one.
|
39
39
|
*/
|
40
|
-
declare const ComboButton: React.ForwardRefExoticComponent<Omit<
|
40
|
+
declare const ComboButton: React.ForwardRefExoticComponent<Omit<ComboButtonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
41
41
|
export { ComboButton };
|
@@ -23,36 +23,35 @@ var componentName = 'ComboButton';
|
|
23
23
|
/**
|
24
24
|
* The combo button consolidates similar actions, while exposing the most commonly used one.
|
25
25
|
*/
|
26
|
-
var ComboButton = /*#__PURE__*/React.forwardRef(function (
|
27
|
-
var children =
|
28
|
-
className =
|
29
|
-
overflowMenu =
|
30
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(
|
26
|
+
var ComboButton = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
27
|
+
var children = props.children,
|
28
|
+
className = props.className,
|
29
|
+
overflowMenu = props.overflowMenu,
|
30
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
31
31
|
var _useRef = React.useRef(uuidv4.default()),
|
32
32
|
instanceId = _useRef.current;
|
33
33
|
var _useState = React.useState(false),
|
34
34
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
35
35
|
isOpen = _useState2[0],
|
36
36
|
setIsOpen = _useState2[1];
|
37
|
-
var
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
restActions = _Children$toArray$fil2.slice(1);
|
37
|
+
var actions = React.Children.toArray(children).filter(Boolean).map(function (child) {
|
38
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
39
|
+
var _props = child.props;
|
40
|
+
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, _props), {}, {
|
41
|
+
children: /*#__PURE__*/React.createElement("span", {
|
42
|
+
className: "".concat(blockClass, "__action")
|
43
|
+
}, child)
|
44
|
+
});
|
45
|
+
}
|
46
|
+
return null;
|
47
|
+
});
|
48
|
+
var primaryAction = actions.slice(0, 1);
|
49
|
+
var secondaryActions = actions.slice(1);
|
51
50
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
52
51
|
ref: ref,
|
53
52
|
className: cx(blockClass, className),
|
54
53
|
"data-floating-menu-container": true
|
55
|
-
}), /*#__PURE__*/React.createElement(react.Button, primaryAction),
|
54
|
+
}), /*#__PURE__*/React.createElement(react.Button, primaryAction), secondaryActions.length > 0 && /*#__PURE__*/React.createElement(react.OverflowMenu, _rollupPluginBabelHelpers.extends({}, overflowMenu, {
|
56
55
|
className: "".concat(blockClass, "__overflow-menu"),
|
57
56
|
menuOptionsClass: "".concat(blockClass, "__overflow-menu__list"),
|
58
57
|
onClick: function onClick() {
|
@@ -75,10 +74,10 @@ var ComboButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
75
74
|
});
|
76
75
|
},
|
77
76
|
flipped: true
|
78
|
-
}),
|
79
|
-
var children =
|
80
|
-
Icon =
|
81
|
-
action = _rollupPluginBabelHelpers.objectWithoutProperties(
|
77
|
+
}), secondaryActions.map(function (_ref, index) {
|
78
|
+
var children = _ref.children,
|
79
|
+
Icon = _ref.renderIcon,
|
80
|
+
action = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded2);
|
82
81
|
return /*#__PURE__*/React.createElement(react.OverflowMenuItem, _rollupPluginBabelHelpers.extends({}, action, {
|
83
82
|
key: "".concat(blockClass, "--").concat(instanceId, "__overflow-menu__item__").concat(index),
|
84
83
|
className: "".concat(blockClass, "__overflow-menu__item"),
|
@@ -14,13 +14,13 @@ declare const ComboButtonItem: {
|
|
14
14
|
}): React.JSX.Element;
|
15
15
|
propTypes: {
|
16
16
|
/** Provide the contents of the `ComboButtonItem` */
|
17
|
-
children:
|
17
|
+
children: any;
|
18
18
|
/** Specify whether the `ComboButton` should be disabled, or not */
|
19
|
-
disabled:
|
19
|
+
disabled: any;
|
20
20
|
/** Provide an optional `href` for the `ComboButtonItem` to become an `a` element */
|
21
|
-
href:
|
21
|
+
href: any;
|
22
22
|
/** Provide an optional icon to render */
|
23
|
-
renderIcon:
|
23
|
+
renderIcon: any;
|
24
24
|
};
|
25
25
|
};
|
26
26
|
export { ComboButtonItem };
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React from 'react';
|
8
|
-
import PropTypes from 'prop-types';
|
9
8
|
import { Condition, ConditionGroup, LogicalOperator } from '../ConditionBuilder.types';
|
10
9
|
/**
|
11
10
|
* This component build each block of condition consisting of property, operator value and close button.
|
@@ -39,66 +38,66 @@ declare const ConditionBlock: {
|
|
39
38
|
/**
|
40
39
|
* callback to add a new condition
|
41
40
|
*/
|
42
|
-
addConditionHandler:
|
41
|
+
addConditionHandler: any;
|
43
42
|
/**
|
44
43
|
* callback to add a new condition subgroup
|
45
44
|
*/
|
46
|
-
addConditionSubGroupHandler:
|
45
|
+
addConditionSubGroupHandler: any;
|
47
46
|
/**
|
48
47
|
* object hold aria attributes
|
49
48
|
*/
|
50
|
-
aria:
|
51
|
-
condition:
|
52
|
-
conditionIndex:
|
49
|
+
aria: any;
|
50
|
+
condition: any;
|
51
|
+
conditionIndex: any;
|
53
52
|
/**
|
54
53
|
* string that decides to show the condition connector
|
55
54
|
*/
|
56
|
-
conjunction:
|
55
|
+
conjunction: any;
|
57
56
|
/**
|
58
57
|
* object that hold the current group object where is condition is part of
|
59
58
|
*/
|
60
|
-
group:
|
59
|
+
group: any;
|
61
60
|
/**
|
62
61
|
* handler for hiding sub group preview
|
63
62
|
*/
|
64
|
-
hideConditionPreviewHandler:
|
63
|
+
hideConditionPreviewHandler: any;
|
65
64
|
/**
|
66
65
|
* handler for hiding sub group preview
|
67
66
|
*/
|
68
|
-
hideConditionSubGroupPreviewHandler:
|
69
|
-
isLastCondition:
|
67
|
+
hideConditionSubGroupPreviewHandler: any;
|
68
|
+
isLastCondition: any;
|
70
69
|
/**
|
71
70
|
* boolean that decides to show the statement(if/ excl.if)
|
72
71
|
*/
|
73
|
-
isStatement:
|
72
|
+
isStatement: any;
|
74
73
|
/**
|
75
74
|
* callback to update the current condition of the state tree
|
76
75
|
*/
|
77
|
-
onChange:
|
76
|
+
onChange: any;
|
78
77
|
/**
|
79
78
|
* callback to handle the connector(and/or) change
|
80
79
|
*/
|
81
|
-
onConnectorOperatorChange:
|
80
|
+
onConnectorOperatorChange: any;
|
82
81
|
/**
|
83
82
|
* callback for Remove a condition
|
84
83
|
*/
|
85
|
-
onRemove:
|
84
|
+
onRemove: any;
|
86
85
|
/**
|
87
86
|
* callback to handle the statement(if/ excl.if) change
|
88
87
|
*/
|
89
|
-
onStatementChange:
|
88
|
+
onStatementChange: any;
|
90
89
|
/**
|
91
90
|
* handler for showing add condition preview
|
92
91
|
*/
|
93
|
-
showConditionPreviewHandler:
|
92
|
+
showConditionPreviewHandler: any;
|
94
93
|
/**
|
95
94
|
* handler for showing sub group preview
|
96
95
|
*/
|
97
|
-
showConditionSubGroupPreviewHandler:
|
96
|
+
showConditionSubGroupPreviewHandler: any;
|
98
97
|
/**
|
99
98
|
* object that hold the current condition
|
100
99
|
*/
|
101
|
-
state:
|
100
|
+
state: any;
|
102
101
|
};
|
103
102
|
};
|
104
103
|
export default ConditionBlock;
|
@@ -37,7 +37,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
37
37
|
var onRemove = props.onRemove,
|
38
38
|
onChange = props.onChange,
|
39
39
|
_props$condition = props.condition,
|
40
|
-
condition = _props$condition ===
|
40
|
+
condition = _props$condition === undefined ? {} : _props$condition,
|
41
41
|
conjunction = props.conjunction,
|
42
42
|
onConnectorOperatorChange = props.onConnectorOperatorChange,
|
43
43
|
isStatement = props.isStatement,
|
@@ -81,15 +81,16 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
81
81
|
//filtering the current property to access its properties and config options
|
82
82
|
var getCurrentConfig = function getCurrentConfig(property) {
|
83
83
|
var _inputConfig$properti, _inputConfig$properti2;
|
84
|
-
return (_inputConfig$properti = inputConfig === null || inputConfig ===
|
84
|
+
return (_inputConfig$properti = inputConfig === null || inputConfig === undefined || (_inputConfig$properti2 = inputConfig.properties) === null || _inputConfig$properti2 === undefined ? undefined : _inputConfig$properti2.find(function (eachProperty) {
|
85
85
|
return eachProperty.id == property;
|
86
|
-
})) !== null && _inputConfig$properti !==
|
86
|
+
})) !== null && _inputConfig$properti !== undefined ? _inputConfig$properti : {};
|
87
87
|
};
|
88
88
|
var _ref = getCurrentConfig(property),
|
89
89
|
icon = _ref.icon,
|
90
90
|
type = _ref.type,
|
91
91
|
config = _ref.config,
|
92
|
-
label = _ref.label
|
92
|
+
label = _ref.label,
|
93
|
+
description = _ref.description;
|
93
94
|
|
94
95
|
//Below possible input types expected for value field.
|
95
96
|
var itemComponents = {
|
@@ -98,7 +99,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
98
99
|
date: ConditionBuilderItemDate.ConditionBuilderItemDate,
|
99
100
|
time: ConditionBuilderItemTime.ConditionBuilderItemTime,
|
100
101
|
option: ItemOptionForValueField.ItemOptionForValueField,
|
101
|
-
custom: config === null || config ===
|
102
|
+
custom: config === null || config === undefined ? undefined : config.component,
|
102
103
|
textarea: ConditionBuilderItemText.ConditionBuilderItemText
|
103
104
|
};
|
104
105
|
var ItemComponent = itemComponents[type];
|
@@ -110,7 +111,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
110
111
|
};
|
111
112
|
var onStatementChangeHandler = function onStatementChangeHandler(v, evt) {
|
112
113
|
util.focusThisField(evt, conditionBuilderRef);
|
113
|
-
onStatementChange === null || onStatementChange ===
|
114
|
+
onStatementChange === null || onStatementChange === undefined || onStatementChange(v);
|
114
115
|
};
|
115
116
|
var onPropertyChangeHandler = function onPropertyChangeHandler(newProperty) {
|
116
117
|
onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, condition), {}, {
|
@@ -147,7 +148,9 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
147
148
|
return isLastCondition(conditionIndex, conditions);
|
148
149
|
};
|
149
150
|
var getOperators = function getOperators() {
|
150
|
-
|
151
|
+
// @ts-ignore
|
152
|
+
if (config !== null && config !== undefined && config.operators) {
|
153
|
+
// @ts-ignore
|
151
154
|
return config.operators;
|
152
155
|
}
|
153
156
|
return operatorConfig.filter(function (operator) {
|
@@ -188,7 +191,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
188
191
|
className: "".concat(util.blockClass, "__gap"),
|
189
192
|
operator: conjunction,
|
190
193
|
onChange: function onChange(op) {
|
191
|
-
return onConnectorOperatorChange === null || onConnectorOperatorChange ===
|
194
|
+
return onConnectorOperatorChange === null || onConnectorOperatorChange === undefined ? undefined : onConnectorOperatorChange(op);
|
192
195
|
}
|
193
196
|
}) : '', isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
194
197
|
label: group.statement,
|
@@ -208,13 +211,14 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
208
211
|
isStatement: true
|
209
212
|
}
|
210
213
|
})), /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
211
|
-
label: label !== null && label !==
|
214
|
+
label: label !== null && label !== undefined ? label : condition === null || condition === undefined ? undefined : condition.property,
|
212
215
|
title: propertyText,
|
213
|
-
renderIcon: icon !== null && icon !==
|
216
|
+
renderIcon: icon !== null && icon !== undefined ? icon : undefined,
|
214
217
|
className: "".concat(util.blockClass, "__property-field"),
|
215
218
|
"data-name": "propertyField",
|
216
219
|
condition: condition,
|
217
220
|
type: type,
|
221
|
+
description: description,
|
218
222
|
onChange: onPropertyChangeHandler
|
219
223
|
}, /*#__PURE__*/React.createElement(ItemOption.ItemOption, {
|
220
224
|
conditionState: {
|
@@ -223,7 +227,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
223
227
|
},
|
224
228
|
onChange: onPropertyChangeHandler,
|
225
229
|
config: {
|
226
|
-
options: inputConfig === null || inputConfig ===
|
230
|
+
options: inputConfig === null || inputConfig === undefined ? undefined : inputConfig.properties
|
227
231
|
}
|
228
232
|
})), util.checkIsValid(property) && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
229
233
|
label: operator,
|
@@ -231,6 +235,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
231
235
|
"data-name": "operatorField",
|
232
236
|
condition: condition,
|
233
237
|
type: type,
|
238
|
+
config: config,
|
234
239
|
onChange: onOperatorChangeHandler
|
235
240
|
}, /*#__PURE__*/React.createElement(ItemOption.ItemOption, {
|
236
241
|
config: {
|
@@ -268,10 +273,10 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
268
273
|
wrapperClassName: "".concat(util.blockClass, "__close-condition-wrapper")
|
269
274
|
})), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React.createElement(ConditionBuilderAdd.default, {
|
270
275
|
onClick: function onClick() {
|
271
|
-
addConditionHandler === null || addConditionHandler ===
|
276
|
+
addConditionHandler === null || addConditionHandler === undefined || addConditionHandler(conditionIndex);
|
272
277
|
},
|
273
278
|
addConditionSubGroupHandler: function addConditionSubGroupHandler() {
|
274
|
-
_addConditionSubGroupHandler === null || _addConditionSubGroupHandler ===
|
279
|
+
_addConditionSubGroupHandler === null || _addConditionSubGroupHandler === undefined || _addConditionSubGroupHandler(conditionIndex);
|
275
280
|
},
|
276
281
|
showConditionSubGroupPreviewHandler: showConditionSubGroupPreviewHandler,
|
277
282
|
hideConditionSubGroupPreviewHandler: hideConditionSubGroupPreviewHandler,
|
@@ -50,14 +50,14 @@ exports.ConditionBuilder = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
50
|
var className = _ref.className,
|
51
51
|
inputConfig = _ref.inputConfig,
|
52
52
|
_ref$startConditionLa = _ref.startConditionLabel,
|
53
|
-
startConditionLabel = _ref$startConditionLa ===
|
53
|
+
startConditionLabel = _ref$startConditionLa === undefined ? 'Add Condition' : _ref$startConditionLa,
|
54
54
|
popOverSearchThreshold = _ref.popOverSearchThreshold,
|
55
55
|
getOptions = _ref.getOptions,
|
56
56
|
initialState = _ref.initialState,
|
57
57
|
getConditionState = _ref.getConditionState,
|
58
58
|
getActionsState = _ref.getActionsState,
|
59
59
|
_ref$variant = _ref.variant,
|
60
|
-
variant = _ref$variant ===
|
60
|
+
variant = _ref$variant === undefined ? util.NON_HIERARCHICAL_VARIANT : _ref$variant,
|
61
61
|
actions = _ref.actions,
|
62
62
|
translateWithId = _ref.translateWithId,
|
63
63
|
statementConfigCustom = _ref.statementConfigCustom,
|
@@ -188,6 +188,8 @@ exports.ConditionBuilder.propTypes = {
|
|
188
188
|
label: index.default.string.isRequired,
|
189
189
|
icon: index.default.oneOfType([index.default.func, index.default.object]),
|
190
190
|
type: index.default.oneOf(['text', 'textarea', 'number', 'date', 'option', 'time', 'custom']).isRequired,
|
191
|
+
description: index.default.string,
|
192
|
+
//will be displayed on hover of property field
|
191
193
|
config: index.default.shape({
|
192
194
|
options: index.default.arrayOf(index.default.shape({
|
193
195
|
id: index.default.string.isRequired,
|
@@ -198,7 +200,8 @@ exports.ConditionBuilder.propTypes = {
|
|
198
200
|
operators: index.default.arrayOf(index.default.shape({
|
199
201
|
id: index.default.string.isRequired,
|
200
202
|
label: index.default.string.isRequired
|
201
|
-
}))
|
203
|
+
})),
|
204
|
+
valueFormatter: index.default.func
|
202
205
|
})
|
203
206
|
}))
|
204
207
|
}).isRequired,
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
2
1
|
/**
|
3
2
|
* Copyright IBM Corp. 2024
|
4
3
|
*
|
@@ -29,28 +28,36 @@ export type Operators = {
|
|
29
28
|
option: OptionOperator;
|
30
29
|
date: DateOperator;
|
31
30
|
};
|
32
|
-
|
31
|
+
type Item = {
|
33
32
|
id: string;
|
34
33
|
label: string;
|
34
|
+
};
|
35
|
+
export type option = Item & {
|
35
36
|
icon?: CarbonIconType;
|
36
37
|
};
|
37
38
|
export type PropertyConfigOption = {
|
38
39
|
type: 'option';
|
39
40
|
config?: {
|
40
41
|
options?: option[];
|
42
|
+
operators?: (Item & {
|
43
|
+
isMultiSelect?: boolean;
|
44
|
+
})[];
|
41
45
|
};
|
42
46
|
};
|
43
47
|
export interface PropertyConfigText {
|
44
48
|
type: 'text';
|
45
49
|
config: TextInputProps;
|
50
|
+
operators?: Item[];
|
46
51
|
}
|
47
52
|
export interface PropertyConfigTextArea {
|
48
53
|
type: 'textarea';
|
49
54
|
config: TextAreaProps;
|
55
|
+
operators?: Item[];
|
50
56
|
}
|
51
57
|
export interface PropertyConfigNumber {
|
52
58
|
type: 'number';
|
53
59
|
config: {
|
60
|
+
operators?: Item[];
|
54
61
|
min?: number;
|
55
62
|
max?: number;
|
56
63
|
step?: number;
|
@@ -59,11 +66,15 @@ export interface PropertyConfigNumber {
|
|
59
66
|
}
|
60
67
|
export type PropertyConfigDate = {
|
61
68
|
type: 'date';
|
62
|
-
config:
|
69
|
+
config: {
|
70
|
+
valueFormatter?: (value: string) => string;
|
71
|
+
operators?: Item[];
|
72
|
+
};
|
63
73
|
};
|
64
74
|
export type PropertyConfigTime = {
|
65
75
|
type: 'time';
|
66
76
|
config: {
|
77
|
+
operators?: Item[];
|
67
78
|
timeZones: string[];
|
68
79
|
};
|
69
80
|
};
|
@@ -71,32 +82,21 @@ export type PropertyConfigCustom = {
|
|
71
82
|
type: 'custom';
|
72
83
|
config: {
|
73
84
|
component: React.ComponentType<any>;
|
74
|
-
operators
|
75
|
-
|
76
|
-
id: string;
|
77
|
-
}[];
|
85
|
+
operators?: Item[];
|
86
|
+
valueFormatter?: (value: string) => string;
|
78
87
|
};
|
79
88
|
};
|
80
|
-
export type
|
81
|
-
|
82
|
-
text: PropertyConfigText;
|
83
|
-
textarea: PropertyConfigTextArea;
|
84
|
-
number: PropertyConfigNumber;
|
85
|
-
date: PropertyConfigDate;
|
86
|
-
time: PropertyConfigTime;
|
87
|
-
custom: PropertyConfigCustom;
|
88
|
-
};
|
89
|
-
export type Property = {
|
90
|
-
id: string;
|
91
|
-
label: string;
|
89
|
+
export type ConfigType = PropertyConfigOption['config'] | PropertyConfigTextArea['config'] | PropertyConfigText['config'] | PropertyConfigNumber['config'] | PropertyConfigDate['config'] | PropertyConfigTime['config'] | PropertyConfigCustom['config'];
|
90
|
+
export type Property = Item & {
|
92
91
|
icon?: CarbonIconType;
|
93
|
-
|
92
|
+
description?: string;
|
93
|
+
type?: any;
|
94
|
+
config?: any;
|
95
|
+
} & ConfigType;
|
94
96
|
export type inputConfig = {
|
95
97
|
properties: Property[];
|
96
98
|
};
|
97
|
-
export type Option = {
|
98
|
-
id: string;
|
99
|
-
label: string;
|
99
|
+
export type Option = Item & {
|
100
100
|
icon?: CarbonIconType;
|
101
101
|
};
|
102
102
|
export type Condition = {
|
@@ -121,10 +121,8 @@ export type Action = {
|
|
121
121
|
label?: string;
|
122
122
|
};
|
123
123
|
export type variantsType = 'Non-Hierarchical' | 'Hierarchical';
|
124
|
-
export type statementConfig = {
|
125
|
-
id: string;
|
124
|
+
export type statementConfig = Item & {
|
126
125
|
connector: 'and' | 'or';
|
127
|
-
label: string;
|
128
126
|
secondaryLabel?: string;
|
129
127
|
};
|
130
128
|
export type ConditionBuilderProps = {
|