@carbon/ibm-products 2.59.0-rc.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
@@ -48,16 +48,16 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
48
48
|
isFetching = _ref.isFetching;
|
49
49
|
var headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(resizerProps), resizerProps));
|
50
50
|
var mouseDownHandler = function mouseDownHandler(evt) {
|
51
|
-
handleOnMouseDownResize === null || handleOnMouseDownResize ===
|
51
|
+
handleOnMouseDownResize === null || handleOnMouseDownResize === undefined || handleOnMouseDownResize(evt, resizerProps);
|
52
52
|
};
|
53
53
|
var mouseUpHandler = function mouseUpHandler() {
|
54
|
-
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header ===
|
54
|
+
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header === undefined ? undefined : header.id, true);
|
55
55
|
};
|
56
56
|
var keyDownHandler = function keyDownHandler(evt) {
|
57
57
|
var key = evt.key;
|
58
58
|
if (key === 'ArrowLeft' || key === 'ArrowRight') {
|
59
|
-
var originalColMinWidth = (originalCol === null || originalCol ===
|
60
|
-
var currentColumnWidth = (header === null || header ===
|
59
|
+
var originalColMinWidth = (originalCol === null || originalCol === undefined ? undefined : originalCol.minWidth) || 90;
|
60
|
+
var currentColumnWidth = (header === null || header === undefined ? undefined : header.id) && (columnWidths === null || columnWidths === undefined ? undefined : columnWidths[header === null || header === undefined ? undefined : header.id]) || (datagridState !== null && datagridState !== undefined && datagridState.isTableSortable && Number(originalCol === null || originalCol === undefined ? undefined : originalCol.width) < originalColMinWidth ? originalColMinWidth : originalCol === null || originalCol === undefined ? undefined : originalCol.width);
|
61
61
|
if (key === 'ArrowLeft') {
|
62
62
|
if (currentColumnWidth - incrementAmount > Math.max(Number(minWidth), 50)) {
|
63
63
|
var newWidth = currentColumnWidth - incrementAmount;
|
@@ -71,7 +71,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
71
71
|
}
|
72
72
|
};
|
73
73
|
var keyUpHandler = function keyUpHandler() {
|
74
|
-
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header ===
|
74
|
+
stateReducer.handleColumnResizeEndEvent(dispatch, onColResizeEnd, header === null || header === undefined ? undefined : header.id, true);
|
75
75
|
};
|
76
76
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("input", _rollupPluginBabelHelpers.extends({}, headerProps, {
|
77
77
|
onMouseDown: mouseDownHandler,
|
@@ -80,7 +80,7 @@ var ResizeHeader = function ResizeHeader(_ref) {
|
|
80
80
|
onKeyUp: keyUpHandler,
|
81
81
|
className: "".concat(blockClass, "__col-resizer-range"),
|
82
82
|
type: "range",
|
83
|
-
defaultValue: originalCol === null || originalCol ===
|
83
|
+
defaultValue: originalCol === null || originalCol === undefined ? undefined : originalCol.width,
|
84
84
|
"aria-label": resizerAriaLabel || 'Resize column',
|
85
85
|
disabled: isFetching
|
86
86
|
})), /*#__PURE__*/React.createElement("span", {
|
@@ -101,27 +101,27 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
101
101
|
React.useEffect(function () {
|
102
102
|
var tableId = datagridState.tableId;
|
103
103
|
var gridElement = document.querySelector("#".concat(tableId));
|
104
|
-
var tableElement = gridElement === null || gridElement ===
|
104
|
+
var tableElement = gridElement === null || gridElement === undefined ? undefined : gridElement.querySelector('table');
|
105
105
|
var headerRowElement = document.querySelector("#".concat(tableId, " .").concat(blockClass, "__head"));
|
106
106
|
var scrollBuffer = 2;
|
107
107
|
if (tableElement) {
|
108
|
-
var hasHorizontalScrollbar = (tableElement === null || tableElement ===
|
108
|
+
var hasHorizontalScrollbar = (tableElement === null || tableElement === undefined ? undefined : tableElement.scrollWidth) > (tableElement === null || tableElement === undefined ? undefined : tableElement.clientWidth);
|
109
109
|
if (hasHorizontalScrollbar) {
|
110
110
|
scrollBuffer = 18;
|
111
111
|
}
|
112
112
|
}
|
113
|
-
var tableToolbar = (gridElement === null || gridElement ===
|
114
|
-
var tableToolbarHeight = (tableToolbar === null || tableToolbar ===
|
113
|
+
var tableToolbar = (gridElement === null || gridElement === undefined ? undefined : gridElement.querySelector(".".concat(blockClass, "__table-toolbar"))) || null;
|
114
|
+
var tableToolbarHeight = (tableToolbar === null || tableToolbar === undefined ? undefined : tableToolbar.offsetHeight) || 0;
|
115
115
|
var setCustomValues = function setCustomValues(_ref2) {
|
116
116
|
var rowHeight = _ref2.rowHeight,
|
117
117
|
gridHeight = _ref2.gridHeight;
|
118
|
-
headerRowElement === null || headerRowElement ===
|
119
|
-
headerRowElement === null || headerRowElement ===
|
120
|
-
headerRowElement === null || headerRowElement ===
|
118
|
+
headerRowElement === null || headerRowElement === undefined || headerRowElement.style.setProperty("--".concat(blockClass, "--row-height"), layout.px(rowHeight));
|
119
|
+
headerRowElement === null || headerRowElement === undefined || headerRowElement.style.setProperty("--".concat(blockClass, "--grid-height"), layout.px(gridHeight - scrollBuffer - tableToolbarHeight));
|
120
|
+
headerRowElement === null || headerRowElement === undefined || headerRowElement.style.setProperty("--".concat(blockClass, "--header-height"), layout.px(headerRowElement.offsetHeight));
|
121
121
|
};
|
122
122
|
setCustomValues({
|
123
|
-
gridHeight: gridElement === null || gridElement ===
|
124
|
-
rowHeight: headerRowElement === null || headerRowElement ===
|
123
|
+
gridHeight: gridElement === null || gridElement === undefined ? undefined : gridElement.offsetHeight,
|
124
|
+
rowHeight: headerRowElement === null || headerRowElement === undefined ? undefined : headerRowElement.clientHeight
|
125
125
|
});
|
126
126
|
}, [datagridState.rowSize, datagridState.tableId, datagridState]);
|
127
127
|
var _useState = React.useState(2),
|
@@ -130,14 +130,14 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
130
130
|
var handleOnMouseDownResize = function handleOnMouseDownResize(event, resizeProps) {
|
131
131
|
var _resizeProps = _rollupPluginBabelHelpers.objectSpread2({}, resizeProps),
|
132
132
|
_resizeProps$onMouseD = _resizeProps.onMouseDown,
|
133
|
-
onMouseDown = _resizeProps$onMouseD ===
|
133
|
+
onMouseDown = _resizeProps$onMouseD === undefined ? function () {} : _resizeProps$onMouseD;
|
134
134
|
// When event.button is 2, that is a right click
|
135
135
|
// and we do not want to resize
|
136
136
|
if (event.button === 2 || event.ctrlKey) {
|
137
137
|
event.target.blur();
|
138
138
|
return;
|
139
139
|
}
|
140
|
-
onMouseDown === null || onMouseDown ===
|
140
|
+
onMouseDown === null || onMouseDown === undefined || onMouseDown(event);
|
141
141
|
};
|
142
142
|
var _headerGroup$getHeade = headerGroup.getHeaderGroupProps({
|
143
143
|
role: undefined
|
@@ -154,7 +154,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
154
154
|
};
|
155
155
|
var foundAIRow = rows.some(function (r) {
|
156
156
|
var _r$original, _r$original2;
|
157
|
-
return /*#__PURE__*/React.isValidElement(r === null || r ===
|
157
|
+
return /*#__PURE__*/React.isValidElement(r === null || r === undefined || (_r$original = r.original) === null || _r$original === undefined ? undefined : _r$original.aiLabel) || /*#__PURE__*/React.isValidElement(r === null || r === undefined || (_r$original2 = r.original) === null || _r$original2 === undefined ? undefined : _r$original2.slug);
|
158
158
|
});
|
159
159
|
var key = headerGroupProps.key,
|
160
160
|
rowProps = _rollupPluginBabelHelpers.objectWithoutProperties(headerGroupProps, _excluded2);
|
@@ -169,10 +169,10 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
169
169
|
}), foundAIRow ? _th || (_th = /*#__PURE__*/React.createElement("th", {
|
170
170
|
scope: "col",
|
171
171
|
"aria-hidden": "false"
|
172
|
-
})) : null, datagridState === null || datagridState ===
|
172
|
+
})) : null, datagridState === null || datagridState === undefined || (_datagridState$header = datagridState.headers) === null || _datagridState$header === undefined || (_datagridState$header = _datagridState$header.filter(function (_ref3) {
|
173
173
|
var isVisible = _ref3.isVisible;
|
174
174
|
return isVisible;
|
175
|
-
})) === null || _datagridState$header ===
|
175
|
+
})) === null || _datagridState$header === undefined ? undefined : _datagridState$header.map(function (header, index) {
|
176
176
|
var _header$getResizerPro;
|
177
177
|
if (header.id === commonColumnIds.selectionColumnId) {
|
178
178
|
// render directly without the wrapper TableHeader
|
@@ -194,10 +194,10 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
194
194
|
role: undefined
|
195
195
|
}),
|
196
196
|
headerProps = _rollupPluginBabelHelpers.extends({}, (_rollupPluginBabelHelpers.objectDestructuringEmpty(_header$getHeaderProp), _header$getHeaderProp));
|
197
|
-
var resizerProps = header === null || header ===
|
197
|
+
var resizerProps = header === null || header === undefined || (_header$getResizerPro = header.getResizerProps) === null || _header$getResizerPro === undefined ? undefined : _header$getResizerPro.call(header, {
|
198
198
|
role: undefined
|
199
199
|
});
|
200
|
-
var headerStyle = headerProps === null || headerProps ===
|
200
|
+
var headerStyle = headerProps === null || headerProps === undefined ? undefined : headerProps.style;
|
201
201
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
202
202
|
var isLastVisibleColumn = index === visibleColumns.length - lastVisibleIndex;
|
203
203
|
if (headerStyle) {
|
@@ -207,7 +207,7 @@ var HeaderRow = function HeaderRow(datagridState, headRef, headerGroup) {
|
|
207
207
|
});
|
208
208
|
}
|
209
209
|
return /*#__PURE__*/React.createElement(react.TableHeader, _rollupPluginBabelHelpers.extends({}, headerProps, {
|
210
|
-
className: cx(header === null || header ===
|
210
|
+
className: cx(header === null || header === undefined ? undefined : header.className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__resizableColumn"), resizerProps), "".concat(blockClass, "__isResizing"), header === null || header === undefined ? undefined : header.isResizing), "".concat(blockClass, "__sortableColumn"), datagridState.isTableSortable && header.id !== 'spacer'), "".concat(blockClass, "__isSorted"), header === null || header === undefined ? undefined : header.isSorted), "".concat(blockClass, "__header-actions-column"), header === null || header === undefined ? undefined : header.isAction), "".concat(blockClass, "__with-slug"), header.slug && /*#__PURE__*/React.isValidElement(header === null || header === undefined ? undefined : header.slug)), "".concat(blockClass, "__with-ai-label"), header.aiLabel && /*#__PURE__*/React.isValidElement(header === null || header === undefined ? undefined : header.aiLabel)), headerProps.className),
|
211
211
|
key: header.id,
|
212
212
|
"aria-hidden": header.id === 'spacer' && 'true'
|
213
213
|
}, getAccessibilityProps(header)), header.render('Header'), renderAILabel(header.aiLabel || header.slug), resizerProps && !header.isAction && /*#__PURE__*/React.createElement(ResizeHeader, {
|
@@ -28,12 +28,12 @@ var DatagridRefBody = function DatagridRefBody(datagridState) {
|
|
28
28
|
role: undefined
|
29
29
|
}), {
|
30
30
|
className: cx("".concat(blockClass, "__simple-body"), getTableBodyProps().className)
|
31
|
-
}), rows === null || rows ===
|
31
|
+
}), rows === null || rows === undefined ? undefined : rows.map(function (row) {
|
32
32
|
var _row$RowRenderer;
|
33
33
|
prepareRow(row);
|
34
34
|
var _row$getRowProps = row.getRowProps(),
|
35
35
|
key = _row$getRowProps.key;
|
36
|
-
return row === null || row ===
|
36
|
+
return row === null || row === undefined || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === undefined ? undefined : _row$RowRenderer.call(row, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, datagridState), {}, {
|
37
37
|
row: row,
|
38
38
|
key: key
|
39
39
|
}));
|
@@ -29,8 +29,6 @@ var rowHeights = {
|
|
29
29
|
lg: 48,
|
30
30
|
xl: 64
|
31
31
|
};
|
32
|
-
|
33
|
-
// eslint-disable-next-line react/prop-types
|
34
32
|
var DatagridRow = function DatagridRow(datagridState) {
|
35
33
|
var _row$original, _row$original2, _row$original3, _row$original4, _row$original5, _row$original6;
|
36
34
|
var row = datagridState.row,
|
@@ -46,14 +44,14 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
46
44
|
headers = datagridState.headers,
|
47
45
|
visibleColumns = datagridState.visibleColumns,
|
48
46
|
getAsyncSubRows = datagridState.getAsyncSubRows;
|
49
|
-
var
|
47
|
+
var _getVisibleNestedRowCount = function getVisibleNestedRowCount(_ref) {
|
50
48
|
var isExpanded = _ref.isExpanded,
|
51
49
|
subRows = _ref.subRows;
|
52
50
|
var size = 0;
|
53
51
|
if (isExpanded && subRows) {
|
54
52
|
size += subRows.length;
|
55
53
|
subRows.forEach(function (child) {
|
56
|
-
size +=
|
54
|
+
size += _getVisibleNestedRowCount(child);
|
57
55
|
});
|
58
56
|
}
|
59
57
|
return size;
|
@@ -63,15 +61,15 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
63
61
|
if (!withNestedRows) {
|
64
62
|
return;
|
65
63
|
}
|
66
|
-
var subRowCount =
|
64
|
+
var subRowCount = _getVisibleNestedRowCount(row);
|
67
65
|
var totalNestedRowIndicatorHeight = layout.px(subRowCount * rowHeights[Number(rowSize)]);
|
68
66
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
69
|
-
hoverRow === null || hoverRow ===
|
70
|
-
var rowExpanderButton = hoverRow === null || hoverRow ===
|
67
|
+
hoverRow === null || hoverRow === undefined || hoverRow.classList.add("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
68
|
+
var rowExpanderButton = hoverRow === null || hoverRow === undefined ? undefined : hoverRow.querySelector(".".concat(blockClass, "__row-expander"));
|
71
69
|
var rowSizeValue = rowSize || 'lg';
|
72
|
-
hoverRow === null || hoverRow ===
|
73
|
-
hoverRow === null || hoverRow ===
|
74
|
-
hoverRow === null || hoverRow ===
|
70
|
+
hoverRow === null || hoverRow === undefined || (_hoverRow$style = hoverRow.style) === null || _hoverRow$style === undefined || _hoverRow$style.setProperty("--".concat(blockClass, "--indicator-height"), totalNestedRowIndicatorHeight);
|
71
|
+
hoverRow === null || hoverRow === undefined || (_hoverRow$style2 = hoverRow.style) === null || _hoverRow$style2 === undefined || _hoverRow$style2.setProperty("--".concat(blockClass, "--row-height"), layout.px(rowHeights[rowSizeValue]));
|
72
|
+
hoverRow === null || hoverRow === undefined || (_hoverRow$style3 = hoverRow.style) === null || _hoverRow$style3 === undefined || _hoverRow$style3.setProperty("--".concat(blockClass, "--indicator-offset-amount"), layout.px((rowExpanderButton === null || rowExpanderButton === undefined ? undefined : rowExpanderButton.offsetLeft) || 0));
|
75
73
|
};
|
76
74
|
var focusRemover = function focusRemover() {
|
77
75
|
var elements = document.querySelectorAll("#".concat(tableId, " .").concat(blockClass, "__carbon-row-expanded"));
|
@@ -83,7 +81,7 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
83
81
|
if (row.isExpanded) {
|
84
82
|
var _row$RowExpansionRend;
|
85
83
|
prepareRow(row);
|
86
|
-
return row === null || row ===
|
84
|
+
return row === null || row === undefined || (_row$RowExpansionRend = row.RowExpansionRenderer) === null || _row$RowExpansionRend === undefined ? undefined : _row$RowExpansionRend.call(row, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, datagridState), {}, {
|
87
85
|
row: row
|
88
86
|
}));
|
89
87
|
}
|
@@ -91,10 +89,10 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
91
89
|
};
|
92
90
|
var handleMouseLeave = function handleMouseLeave(event) {
|
93
91
|
if (withMouseHover) {
|
94
|
-
setMouseOverRowIndex === null || setMouseOverRowIndex ===
|
92
|
+
setMouseOverRowIndex === null || setMouseOverRowIndex === undefined || setMouseOverRowIndex(null);
|
95
93
|
}
|
96
94
|
var hoverRow = event.target.closest(".".concat(blockClass, "__carbon-row-expanded"));
|
97
|
-
hoverRow === null || hoverRow ===
|
95
|
+
hoverRow === null || hoverRow === undefined || hoverRow.classList.remove("".concat(blockClass, "__carbon-row-expanded-hover-active"));
|
98
96
|
};
|
99
97
|
var handleOnKeyUp = function handleOnKeyUp(event) {
|
100
98
|
if (!withNestedRows) {
|
@@ -120,9 +118,9 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
120
118
|
rowProps = _rollupPluginBabelHelpers.objectWithoutProperties(_row$getRowProps, _excluded);
|
121
119
|
var foundAIRow = rows.some(function (r) {
|
122
120
|
var _r$original, _r$original2;
|
123
|
-
return /*#__PURE__*/React.isValidElement(r === null || r ===
|
121
|
+
return /*#__PURE__*/React.isValidElement(r === null || r === undefined || (_r$original = r.original) === null || _r$original === undefined ? undefined : _r$original.aiLabel) || /*#__PURE__*/React.isValidElement(r === null || r === undefined || (_r$original2 = r.original) === null || _r$original2 === undefined ? undefined : _r$original2.slug);
|
124
122
|
});
|
125
|
-
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row ===
|
123
|
+
var rowClassNames = cx("".concat(blockClass, "__carbon-row"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__carbon-row-expanded"), row.isExpanded), "".concat(blockClass, "__carbon-row-expandable"), row.canExpand), "".concat(blockClass, "__carbon-row-expandable--async"), getAsyncSubRows && row.depth > 0), "".concat(settings.carbon.prefix, "--data-table--selected"), row.isSelected), "".concat(blockClass, "__slug--row"), /*#__PURE__*/React.isValidElement(row === null || row === undefined || (_row$original = row.original) === null || _row$original === undefined ? undefined : _row$original.slug)), "".concat(blockClass, "__ai-label--row"), /*#__PURE__*/React.isValidElement(row === null || row === undefined || (_row$original2 = row.original) === null || _row$original2 === undefined ? undefined : _row$original2.aiLabel)));
|
126
124
|
var withActionsColumn = headers ? !!headers.filter(function (header) {
|
127
125
|
return header.isAction;
|
128
126
|
}).length : false;
|
@@ -137,14 +135,14 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
137
135
|
onFocus: hoverHandler,
|
138
136
|
onBlur: focusRemover,
|
139
137
|
onKeyUp: handleOnKeyUp
|
140
|
-
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !==
|
138
|
+
}, setAdditionalRowProps()), foundAIRow ? row !== null && row !== undefined && (_row$original3 = row.original) !== null && _row$original3 !== undefined && _row$original3.aiLabel ? /*#__PURE__*/React.createElement("td", {
|
141
139
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__ai-label--expanded"), row.isExpanded))
|
142
140
|
}, /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
143
|
-
aiLabel: row === null || row ===
|
144
|
-
})) : row !== null && row !==
|
141
|
+
aiLabel: row === null || row === undefined || (_row$original4 = row.original) === null || _row$original4 === undefined ? undefined : _row$original4.aiLabel
|
142
|
+
})) : row !== null && row !== undefined && (_row$original5 = row.original) !== null && _row$original5 !== undefined && _row$original5.slug ? /*#__PURE__*/React.createElement("td", {
|
145
143
|
className: cx("".concat(blockClass, "__table-row-ai-enabled"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__slug--expanded"), row.isExpanded))
|
146
144
|
}, /*#__PURE__*/React.createElement(DatagridAiLabel.DatagridAILabel, {
|
147
|
-
aiLabel: row === null || row ===
|
145
|
+
aiLabel: row === null || row === undefined || (_row$original6 = row.original) === null || _row$original6 === undefined ? undefined : _row$original6.slug
|
148
146
|
})) : /*#__PURE__*/React.createElement("td", {
|
149
147
|
className: "".concat(blockClass, "__table-row-ai-spacer")
|
150
148
|
}) : null, row.cells.map(function (cell, index) {
|
@@ -152,20 +150,19 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
152
150
|
var cellProps = cell.getCellProps({
|
153
151
|
role: undefined
|
154
152
|
});
|
155
|
-
// eslint-disable-next-line no-unused-vars
|
156
153
|
var _ref2 = cellProps,
|
157
154
|
style = _ref2.style,
|
158
155
|
children = _ref2.children,
|
159
156
|
restProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
|
160
|
-
var columnClassname = cell === null || cell ===
|
157
|
+
var columnClassname = cell === null || cell === undefined || (_cell$column = cell.column) === null || _cell$column === undefined ? undefined : _cell$column.className;
|
161
158
|
var content = children || /*#__PURE__*/React.createElement(React.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && (_SkeletonText || (_SkeletonText = /*#__PURE__*/React.createElement(react.SkeletonText, null))));
|
162
|
-
if ((cell === null || cell ===
|
159
|
+
if ((cell === null || cell === undefined || (_cell$column2 = cell.column) === null || _cell$column2 === undefined ? undefined : _cell$column2.id) === commonColumnIds.selectionColumnId) {
|
163
160
|
// directly render component without the wrapping TableCell
|
164
161
|
return cell.render('Cell', {
|
165
162
|
key: cell.column.id
|
166
163
|
});
|
167
164
|
}
|
168
|
-
var associatedHeader = headers === null || headers ===
|
165
|
+
var associatedHeader = headers === null || headers === undefined ? undefined : headers.filter(function (h) {
|
169
166
|
return h.id === cell.column.id;
|
170
167
|
});
|
171
168
|
var lastVisibleIndex = withActionsColumn ? 2 : 1;
|
@@ -174,12 +171,13 @@ var DatagridRow = function DatagridRow(datagridState) {
|
|
174
171
|
style.flex = lastVisibleFlexStyle;
|
175
172
|
}
|
176
173
|
return /*#__PURE__*/React.createElement(react.TableCell, _rollupPluginBabelHelpers.extends({
|
177
|
-
className: cx("".concat(blockClass, "__cell"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ ===
|
174
|
+
className: cx("".concat(blockClass, "__cell"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), (row.canExpand || getAsyncSubRows) && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === undefined ? undefined : _associatedHeader$.slug)), "".concat(blockClass, "__ai-label--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/React.isValidElement((_associatedHeader$2 = associatedHeader[0]) === null || _associatedHeader$2 === undefined ? undefined : _associatedHeader$2.aiLabel)), columnClassname)
|
178
175
|
}, restProps, {
|
176
|
+
// eslint-disable-next-line react/forbid-component-props
|
179
177
|
style: style,
|
180
178
|
key: cell.column.id
|
181
179
|
}), content);
|
182
|
-
})), (renderExpandedRow === null || renderExpandedRow ===
|
180
|
+
})), (renderExpandedRow === null || renderExpandedRow === undefined ? undefined : renderExpandedRow()) || undefined);
|
183
181
|
};
|
184
182
|
|
185
183
|
exports.default = DatagridRow;
|
@@ -50,7 +50,7 @@ var SelectAll = function SelectAll(datagridState) {
|
|
50
50
|
toggleAllRowsSelected = datagridState.toggleAllRowsSelected,
|
51
51
|
withVirtualScroll = datagridState.withVirtualScroll,
|
52
52
|
onAllRowSelect = datagridState.onAllRowSelect;
|
53
|
-
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ ===
|
53
|
+
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === undefined ? undefined : _columns$.sticky) === 'left' && withStickyColumn;
|
54
54
|
if (hideSelectAll || radio) {
|
55
55
|
return /*#__PURE__*/React.createElement("th", {
|
56
56
|
className: cx("".concat(blockClass, "__head-hidden-select-all"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), /* istanbul ignore next */
|
@@ -70,8 +70,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
70
70
|
isChecked: event.target.checked,
|
71
71
|
indeterminate: indeterminate
|
72
72
|
});
|
73
|
-
onAllRowSelect === null || onAllRowSelect ===
|
74
|
-
return onChange === null || onChange ===
|
73
|
+
onAllRowSelect === null || onAllRowSelect === undefined || onAllRowSelect(rows, event);
|
74
|
+
return onChange === null || onChange === undefined ? undefined : onChange(event);
|
75
75
|
};
|
76
76
|
var handleSelectAllChange = function handleSelectAllChange(event) {
|
77
77
|
if (indeterminate) {
|
@@ -83,8 +83,8 @@ var SelectAll = function SelectAll(datagridState) {
|
|
83
83
|
isChecked: undefined
|
84
84
|
});
|
85
85
|
toggleAllRowsSelected(false);
|
86
|
-
onAllRowSelect === null || onAllRowSelect ===
|
87
|
-
return onChange === null || onChange ===
|
86
|
+
onAllRowSelect === null || onAllRowSelect === undefined || onAllRowSelect(rows, event);
|
87
|
+
return onChange === null || onChange === undefined ? undefined : onChange({
|
88
88
|
target: {
|
89
89
|
checked: false
|
90
90
|
}
|
@@ -97,16 +97,16 @@ var SelectAll = function SelectAll(datagridState) {
|
|
97
97
|
isChecked: event.target.checked,
|
98
98
|
indeterminate: indeterminate
|
99
99
|
});
|
100
|
-
onAllRowSelect === null || onAllRowSelect ===
|
101
|
-
return onChange === null || onChange ===
|
100
|
+
onAllRowSelect === null || onAllRowSelect === undefined || onAllRowSelect(rows, event);
|
101
|
+
return onChange === null || onChange === undefined ? undefined : onChange(event);
|
102
102
|
};
|
103
103
|
return /*#__PURE__*/React.createElement(react.TableSelectAll, _rollupPluginBabelHelpers.extends({}, selectProps, {
|
104
|
-
checked: (selectProps === null || selectProps ===
|
104
|
+
checked: (selectProps === null || selectProps === undefined ? undefined : selectProps.checked) || false,
|
105
105
|
className: cx("".concat(blockClass, "__head-select-all"), "".concat(blockClass, "__checkbox-cell"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__checkbox-cell-sticky-left"), /* istanbul ignore next */
|
106
106
|
isFirstColumnStickyLeft && Number(windowSize) > 671)),
|
107
107
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
108
108
|
onSelect: withVirtualScroll ? handleSelectAllChange : handleOnPageSelectAllChange,
|
109
|
-
disabled: isFetching || (selectProps === null || selectProps ===
|
109
|
+
disabled: isFetching || (selectProps === null || selectProps === undefined ? undefined : selectProps.disabled),
|
110
110
|
id: "".concat(tableId, "-select-all-checkbox-id")
|
111
111
|
}));
|
112
112
|
};
|
@@ -5,21 +5,20 @@
|
|
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 { DataGridState } from '../types';
|
10
9
|
declare const SelectAllWithToggle: {
|
11
10
|
({ tableId, isFetching, isAllRowsSelected, selectAllToggle, getToggleAllPageRowsSelectedProps, getToggleAllRowsSelectedProps, allPageRowsLabel, allRowsLabel, columns, withStickyColumn, }: DataGridState): React.JSX.Element;
|
12
11
|
propTypes: {
|
13
|
-
allPageRowsLabel:
|
14
|
-
allRowsLabel:
|
15
|
-
columns:
|
16
|
-
getToggleAllPageRowsSelectedProps:
|
17
|
-
getToggleAllRowsSelectedProps:
|
18
|
-
isAllRowsSelected:
|
19
|
-
isFetching:
|
20
|
-
selectAllToggle:
|
21
|
-
tableId:
|
22
|
-
withStickyColumn:
|
12
|
+
allPageRowsLabel: any;
|
13
|
+
allRowsLabel: any;
|
14
|
+
columns: any;
|
15
|
+
getToggleAllPageRowsSelectedProps: any;
|
16
|
+
getToggleAllRowsSelectedProps: any;
|
17
|
+
isAllRowsSelected: any;
|
18
|
+
isFetching: any;
|
19
|
+
selectAllToggle: any;
|
20
|
+
tableId: any;
|
21
|
+
withStickyColumn: any;
|
23
22
|
};
|
24
23
|
};
|
25
24
|
export default SelectAllWithToggle;
|
@@ -30,9 +30,9 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
30
30
|
getToggleAllPageRowsSelectedProps = _ref.getToggleAllPageRowsSelectedProps,
|
31
31
|
getToggleAllRowsSelectedProps = _ref.getToggleAllRowsSelectedProps,
|
32
32
|
_ref$allPageRowsLabel = _ref.allPageRowsLabel,
|
33
|
-
allPageRowsLabel = _ref$allPageRowsLabel ===
|
33
|
+
allPageRowsLabel = _ref$allPageRowsLabel === undefined ? 'Select all on page' : _ref$allPageRowsLabel,
|
34
34
|
_ref$allRowsLabel = _ref.allRowsLabel,
|
35
|
-
allRowsLabel = _ref$allRowsLabel ===
|
35
|
+
allRowsLabel = _ref$allRowsLabel === undefined ? 'Select all' : _ref$allRowsLabel,
|
36
36
|
columns = _ref.columns,
|
37
37
|
withStickyColumn = _ref.withStickyColumn;
|
38
38
|
var _ref2 = selectAllToggle || {},
|
@@ -62,7 +62,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
62
62
|
};
|
63
63
|
}, []);
|
64
64
|
if (labels) {
|
65
|
-
allPageRowsLabel = (labels === null || labels ===
|
65
|
+
allPageRowsLabel = (labels === null || labels === undefined ? undefined : labels.allPageRows) || allPageRowsLabel;
|
66
66
|
allRowsLabel = labels.allRows || allRowsLabel;
|
67
67
|
}
|
68
68
|
var getProps = selectAllMode === SELECT_ALL_PAGE_ROWS ? getToggleAllPageRowsSelectedProps : getToggleAllRowsSelectedProps;
|
@@ -70,14 +70,14 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
70
70
|
onChange = _ref3.onChange,
|
71
71
|
selectProps = _rollupPluginBabelHelpers.objectWithoutProperties(_ref3, _excluded);
|
72
72
|
var disabled = isFetching || selectProps.disabled;
|
73
|
-
var isFirstColumnStickyLeft = (columns === null || columns ===
|
73
|
+
var isFirstColumnStickyLeft = (columns === null || columns === undefined || (_columns$ = columns[0]) === null || _columns$ === undefined ? undefined : _columns$.sticky) === 'left' && withStickyColumn;
|
74
74
|
return /*#__PURE__*/React.createElement("th", {
|
75
75
|
scope: "col",
|
76
|
-
className: cx("".concat(blockClass, "__select-all-toggle-on"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && (windowSize !== null && windowSize !==
|
76
|
+
className: cx("".concat(blockClass, "__select-all-toggle-on"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__select-all-sticky-left"), isFirstColumnStickyLeft && (windowSize !== null && windowSize !== undefined ? windowSize : 0) > 671))
|
77
77
|
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(react.Checkbox, _rollupPluginBabelHelpers.extends({}, selectProps, {
|
78
78
|
name: "".concat(tableId, "-select-all-checkbox-name"),
|
79
79
|
onClick: function onClick(e) {
|
80
|
-
onChange === null || onChange ===
|
80
|
+
onChange === null || onChange === undefined || onChange(e);
|
81
81
|
},
|
82
82
|
disabled: disabled,
|
83
83
|
id: "".concat(tableId, "-select-all-checkbox-id"),
|
@@ -100,7 +100,7 @@ var SelectAllWithToggle = function SelectAllWithToggle(_ref) {
|
|
100
100
|
var _ref4;
|
101
101
|
setSelectAllMode(SELECT_ALL_PAGE_ROWS);
|
102
102
|
// deselect all rows first
|
103
|
-
getToggleAllRowsSelectedProps === null || getToggleAllRowsSelectedProps ===
|
103
|
+
getToggleAllRowsSelectedProps === null || getToggleAllRowsSelectedProps === undefined || (_ref4 = getToggleAllRowsSelectedProps()) === null || _ref4 === undefined || _ref4.onChange({
|
104
104
|
target: {
|
105
105
|
checked: false
|
106
106
|
}
|
@@ -30,7 +30,7 @@ var DatagridSimpleBody = function DatagridSimpleBody(datagridState) {
|
|
30
30
|
prepareRow(row);
|
31
31
|
var _row$getRowProps = row.getRowProps(),
|
32
32
|
key = _row$getRowProps.key;
|
33
|
-
return row === null || row ===
|
33
|
+
return row === null || row === undefined || (_row$RowRenderer = row.RowRenderer) === null || _row$RowRenderer === undefined ? undefined : _row$RowRenderer.call(row, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, datagridState), {}, {
|
34
34
|
row: row,
|
35
35
|
key: key
|
36
36
|
}));
|
@@ -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 { DataGridState } from '../types';
|
10
9
|
interface DatagridToolbarProps {
|
11
10
|
ariaToolbarLabel?: string;
|
@@ -13,7 +12,7 @@ interface DatagridToolbarProps {
|
|
13
12
|
declare const DatagridToolbar: {
|
14
13
|
({ ariaToolbarLabel, ...datagridState }: DatagridToolbarProps & DataGridState): React.JSX.Element | null;
|
15
14
|
propTypes: {
|
16
|
-
ariaToolbarLabel:
|
15
|
+
ariaToolbarLabel: any;
|
17
16
|
};
|
18
17
|
};
|
19
18
|
export default DatagridToolbar;
|
@@ -48,15 +48,17 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
48
48
|
_useState8 = _rollupPluginBabelHelpers.slicedToArray(_useState7, 2),
|
49
49
|
availableRowsCount = _useState8[0],
|
50
50
|
setAvailableRowsCount = _useState8[1];
|
51
|
-
var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !==
|
51
|
+
var batchActionMenuButtonLabelText = batchActionMenuButtonLabel !== null && batchActionMenuButtonLabel !== undefined ? batchActionMenuButtonLabel : 'More';
|
52
52
|
var selectedKeys = Object.keys(selectedRowIds || {});
|
53
53
|
var totalSelected = selectedKeys.length;
|
54
54
|
React.useEffect(function () {
|
55
55
|
var _rows$find, _rows$find$getRowProp;
|
56
56
|
var countDisabledRows = ((_rows$find = rows.find(function (row) {
|
57
57
|
return row.getRowProps;
|
58
|
-
})) === null || _rows$find ===
|
59
|
-
|
58
|
+
})) === null || _rows$find === undefined || (_rows$find$getRowProp = _rows$find.getRowProps) === null || _rows$find$getRowProp === undefined || (_rows$find$getRowProp = _rows$find$getRowProp.call(_rows$find)) === null || _rows$find$getRowProp === undefined || (_rows$find$getRowProp = _rows$find$getRowProp.nonselectablerows) === null || _rows$find$getRowProp === undefined ? undefined : _rows$find$getRowProp.length) || 0;
|
59
|
+
if (rows) {
|
60
|
+
setAvailableRowsCount(rows.length - countDisabledRows);
|
61
|
+
}
|
60
62
|
}, [rows]);
|
61
63
|
|
62
64
|
// Get initial width of batch actions container,
|
@@ -65,13 +67,13 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
65
67
|
React.useEffect(function () {
|
66
68
|
if (totalSelected === 1 && !receivedInitialWidth) {
|
67
69
|
var _ref$current;
|
68
|
-
var batchActionListWidth = ref === null || ref ===
|
70
|
+
var batchActionListWidth = ref === null || ref === undefined || (_ref$current = ref.current) === null || _ref$current === undefined ? undefined : _ref$current.querySelector(".".concat(settings.carbon.prefix, "--action-list")).offsetWidth;
|
69
71
|
setInitialListWidth(batchActionListWidth);
|
70
72
|
setReceivedInitialWidth(true);
|
71
73
|
}
|
72
74
|
}, [totalSelected, receivedInitialWidth, ref]);
|
73
75
|
React.useEffect(function () {
|
74
|
-
var summaryWidth = ref === null || ref ===
|
76
|
+
var summaryWidth = ref === null || ref === undefined ? undefined : ref.current.querySelector(".".concat(settings.carbon.prefix, "--batch-summary")).offsetWidth;
|
75
77
|
if (width < summaryWidth + initialListWidth + 32) {
|
76
78
|
setDisplayAllInMenu(true);
|
77
79
|
} else {
|
@@ -96,7 +98,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
96
98
|
var minWidthBeforeOverflowIcon = 380;
|
97
99
|
// Do not render ButtonMenu when there are 3 or less items
|
98
100
|
// and if there is enough available space to render all the items
|
99
|
-
if (toolbarBatchActions && !displayAllInMenu && (!toolbarBatchActionsDisplayMin && (toolbarBatchActions === null || toolbarBatchActions ===
|
101
|
+
if (toolbarBatchActions && !displayAllInMenu && (!toolbarBatchActionsDisplayMin && (toolbarBatchActions === null || toolbarBatchActions === undefined ? undefined : toolbarBatchActions.length) <= 3 || toolbarBatchActionsDisplayMin !== undefined && (toolbarBatchActions === null || toolbarBatchActions === undefined ? undefined : toolbarBatchActions.length) <= toolbarBatchActionsDisplayMin)) {
|
100
102
|
return;
|
101
103
|
}
|
102
104
|
var renderItem = function renderItem(batchAction, index) {
|
@@ -113,7 +115,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
113
115
|
className: cx([menuClass, _rollupPluginBabelHelpers.defineProperty({}, "".concat(menuClass, "-icon-only"), width <= minWidthBeforeOverflowIcon)]),
|
114
116
|
tabIndex: totalSelected > 0 ? 0 : -1,
|
115
117
|
menuAlignment: "bottom"
|
116
|
-
}, toolbarBatchActions === null || toolbarBatchActions ===
|
118
|
+
}, toolbarBatchActions === null || toolbarBatchActions === undefined ? undefined : toolbarBatchActions.map(function (batchAction, index) {
|
117
119
|
var hidden = toolbarBatchActionsDisplayMin === undefined && index < 2 && !displayAllInMenu;
|
118
120
|
if (toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin && !displayAllInMenu) {
|
119
121
|
hidden = true;
|
@@ -138,11 +140,11 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
138
140
|
indeterminate: undefined
|
139
141
|
});
|
140
142
|
toggleAllRowsSelected(false);
|
141
|
-
setGlobalFilter === null || setGlobalFilter ===
|
143
|
+
setGlobalFilter === null || setGlobalFilter === undefined || setGlobalFilter(null);
|
142
144
|
};
|
143
145
|
var onSelectAllHandler = function onSelectAllHandler() {
|
144
146
|
toggleAllRowsSelected(true);
|
145
|
-
onSelectAllRows === null || onSelectAllRows ===
|
147
|
+
onSelectAllRows === null || onSelectAllRows === undefined || onSelectAllRows(true);
|
146
148
|
stateReducer.handleSelectAllRowData({
|
147
149
|
dispatch: dispatch,
|
148
150
|
rows: rows,
|
@@ -162,7 +164,7 @@ var DatagridBatchActionsToolbar = function DatagridBatchActionsToolbar(datagridS
|
|
162
164
|
onSelectAll: onSelectAllHandler,
|
163
165
|
totalCount: availableRowsCount,
|
164
166
|
translateWithId: translateWithIdBatchActions
|
165
|
-
}, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions ===
|
167
|
+
}, !displayAllInMenu && toolbarBatchActions && (toolbarBatchActions === null || toolbarBatchActions === undefined ? undefined : toolbarBatchActions.map(function (batchAction, index) {
|
166
168
|
if (!toolbarBatchActionsDisplayMin && index < 2 && toolbarBatchActions.length > 3 || index < 3 && toolbarBatchActions.length <= 3 || toolbarBatchActionsDisplayMin !== undefined && index < toolbarBatchActionsDisplayMin) {
|
167
169
|
return /*#__PURE__*/React.createElement(react.TableBatchAction, {
|
168
170
|
key: "".concat(batchAction.label, "-").concat(index),
|
@@ -193,11 +195,11 @@ var DatagridToolbar = function DatagridToolbar(_ref2) {
|
|
193
195
|
className: cx([blockClass, "".concat(blockClass, "--").concat(getRowHeight)])
|
194
196
|
}, /*#__PURE__*/React.createElement(react.TableToolbar, {
|
195
197
|
"aria-label": ariaToolbarLabel
|
196
|
-
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar === null || DatagridBatchActionsToolbar ===
|
198
|
+
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActionsToolbar === null || DatagridBatchActionsToolbar === undefined ? undefined : DatagridBatchActionsToolbar(datagridState, width, ref))) : DatagridActions ? /*#__PURE__*/React.createElement("div", {
|
197
199
|
className: blockClass
|
198
200
|
}, /*#__PURE__*/React.createElement(react.TableToolbar, {
|
199
201
|
"aria-label": ariaToolbarLabel
|
200
|
-
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActions === null || DatagridBatchActions ===
|
202
|
+
}, DatagridActions && /*#__PURE__*/React.createElement(DatagridActions, datagridState), DatagridBatchActions === null || DatagridBatchActions === undefined ? undefined : DatagridBatchActions(datagridState))) : null;
|
201
203
|
};
|
202
204
|
DatagridToolbar.propTypes = {
|
203
205
|
ariaToolbarLabel: index.default.string
|