@carbon/ibm-products 2.59.0 → 2.60.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
@@ -165,7 +165,7 @@ var utilGetBreadcrumbItemForTitle = function utilGetBreadcrumbItemForTitle(block
|
|
165
165
|
var _ref, _title$breadcrumbCont;
|
166
166
|
// user defined content
|
167
167
|
breadcrumbTitle = {
|
168
|
-
label: (_ref = (_title$breadcrumbCont = title.breadcrumbContent) !== null && _title$breadcrumbCont !==
|
168
|
+
label: (_ref = (_title$breadcrumbCont = title.breadcrumbContent) !== null && _title$breadcrumbCont !== undefined ? _title$breadcrumbCont : title.content) !== null && _ref !== undefined ? _ref : title.asText,
|
169
169
|
title: title.asText
|
170
170
|
};
|
171
171
|
} else {
|
@@ -19,7 +19,7 @@ var _excluded = ["actionsPlacement"];
|
|
19
19
|
var componentName = 'ProductiveCard';
|
20
20
|
exports.ProductiveCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
21
21
|
var _ref$actionsPlacement = _ref.actionsPlacement,
|
22
|
-
actionsPlacement = _ref$actionsPlacement ===
|
22
|
+
actionsPlacement = _ref$actionsPlacement === undefined ? 'top' : _ref$actionsPlacement,
|
23
23
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
24
24
|
var validProps = propsHelper.prepareProps(rest, ['media', 'mediaPosition', 'pictogram', 'primaryButtonClick', 'productive', 'secondaryButtonKind']);
|
25
25
|
return /*#__PURE__*/React.createElement(Card.Card, _rollupPluginBabelHelpers.extends({}, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, validProps), {}, {
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
2
1
|
import { ComposedModal } from '@carbon/react';
|
3
2
|
import React, { ReactNode } from 'react';
|
4
3
|
export interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
|
@@ -80,5 +79,5 @@ export interface RemoveModalProps extends React.ComponentProps<typeof ComposedMo
|
|
80
79
|
title: string;
|
81
80
|
}
|
82
81
|
export declare let RemoveModal: React.ForwardRefExoticComponent<RemoveModalProps & {
|
83
|
-
children?:
|
82
|
+
children?: ReactNode | undefined;
|
84
83
|
} & React.RefAttributes<unknown>>;
|
@@ -76,11 +76,11 @@ exports.RemoveModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
76
76
|
// the value of the input will still remain: we only want to empty the input value
|
77
77
|
// when open actually changes to false.
|
78
78
|
React.useEffect(function () {
|
79
|
-
if (!open && previousState !== null && previousState !==
|
79
|
+
if (!open && previousState !== null && previousState !== undefined && previousState.open) {
|
80
80
|
setUserInput('');
|
81
81
|
}
|
82
|
-
}, [open, previousState === null || previousState ===
|
83
|
-
return renderPortalUse(
|
82
|
+
}, [open, previousState === null || previousState === undefined ? undefined : previousState.open]);
|
83
|
+
return renderPortalUse(/*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
|
84
84
|
className: cx(blockClass, className),
|
85
85
|
size: "sm",
|
86
86
|
"aria-label": title
|
@@ -83,7 +83,7 @@ exports.Saving = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
83
83
|
size: 16
|
84
84
|
}))), /*#__PURE__*/React.createElement("p", {
|
85
85
|
className: "".concat(blockClass, "__text")
|
86
|
-
}, (_statusObj$status = statusObj[status]) === null || _statusObj$status ===
|
86
|
+
}, (_statusObj$status = statusObj[status]) === null || _statusObj$status === undefined ? undefined : _statusObj$status.text)) : /*#__PURE__*/React.createElement("div", {
|
87
87
|
className: "".concat(blockClass, "__buttons")
|
88
88
|
}, /*#__PURE__*/React.createElement(react.Button, {
|
89
89
|
onClick: onRequestCancel,
|
@@ -93,11 +93,11 @@ exports.Saving = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
93
93
|
}, secondaryButtonText), /*#__PURE__*/React.createElement(react.Button, {
|
94
94
|
onClick: onRequestSave,
|
95
95
|
kind: "primary",
|
96
|
-
renderIcon: (_statusObj$status2 = statusObj[status]) === null || _statusObj$status2 ===
|
97
|
-
iconDescription: (_statusObj$status3 = statusObj[status]) === null || _statusObj$status3 ===
|
96
|
+
renderIcon: (_statusObj$status2 = statusObj[status]) === null || _statusObj$status2 === undefined ? undefined : _statusObj$status2.icon,
|
97
|
+
iconDescription: (_statusObj$status3 = statusObj[status]) === null || _statusObj$status3 === undefined ? undefined : _statusObj$status3.iconDescription,
|
98
98
|
disabled: status === 'in-progress',
|
99
99
|
type: "button"
|
100
|
-
}, (_statusObj$status4 = statusObj[status]) === null || _statusObj$status4 ===
|
100
|
+
}, (_statusObj$status4 = statusObj[status]) === null || _statusObj$status4 === undefined ? undefined : _statusObj$status4.text)));
|
101
101
|
});
|
102
102
|
exports.Saving = settings.pkg.checkComponentEnabled(exports.Saving, componentName);
|
103
103
|
exports.Saving.propTypes = {
|
@@ -36,14 +36,14 @@ exports.ScrollGradient = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
36
36
|
var children = _ref.children,
|
37
37
|
className = _ref.className,
|
38
38
|
_ref$color = _ref.color,
|
39
|
-
color = _ref$color ===
|
39
|
+
color = _ref$color === undefined ? defaults.color : _ref$color,
|
40
40
|
_ref$onScroll = _ref.onScroll,
|
41
|
-
onScroll = _ref$onScroll ===
|
41
|
+
onScroll = _ref$onScroll === undefined ? defaults.onScroll : _ref$onScroll,
|
42
42
|
scrollElementClassName = _ref.scrollElementClassName,
|
43
43
|
_ref$getScrollElement = _ref.getScrollElementRef,
|
44
|
-
getScrollElementRef = _ref$getScrollElement ===
|
44
|
+
getScrollElementRef = _ref$getScrollElement === undefined ? defaults.getScrollElementRef : _ref$getScrollElement,
|
45
45
|
_ref$hideStartGradien = _ref.hideStartGradient,
|
46
|
-
hideStartGradient = _ref$hideStartGradien ===
|
46
|
+
hideStartGradient = _ref$hideStartGradien === undefined ? defaults.hideStartGradient : _ref$hideStartGradien,
|
47
47
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
48
48
|
var scrollContainer = React.useRef(undefined);
|
49
49
|
var contentChildrenContainer = React.useRef(undefined);
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React, { PropsWithChildren } from 'react';
|
8
|
-
import PropTypes from 'prop-types';
|
9
8
|
type Scopes = string[] | object[];
|
10
9
|
export interface SearchBarProps extends PropsWithChildren {
|
11
10
|
/** @type {string} Optional additional class name. */
|
@@ -50,13 +49,13 @@ export interface SearchBarProps extends PropsWithChildren {
|
|
50
49
|
value?: string;
|
51
50
|
}
|
52
51
|
export declare let SearchBar: React.ForwardRefExoticComponent<SearchBarProps & React.RefAttributes<HTMLFormElement>>;
|
53
|
-
declare const conditionalScopePropValidator: (props: any, propName: any, componentName: any, ...rest: any[]) =>
|
52
|
+
declare const conditionalScopePropValidator: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
54
53
|
export declare const deprecatedProps: {
|
55
54
|
/**
|
56
55
|
* **Deprecated**
|
57
56
|
*
|
58
57
|
* Provide accessible label text for the scopes MultiSelect.
|
59
58
|
*/
|
60
|
-
titleText:
|
59
|
+
titleText: any;
|
61
60
|
};
|
62
61
|
export {};
|
@@ -27,27 +27,25 @@ var componentName = 'SearchBar';
|
|
27
27
|
var defaults = {
|
28
28
|
onSubmit: function onSubmit() {},
|
29
29
|
onChange: function onChange() {},
|
30
|
-
scopes: [],
|
31
|
-
selectedScopes: [],
|
32
30
|
hideScopesLabel: true
|
33
31
|
};
|
34
32
|
exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
35
33
|
var className = _ref.className,
|
36
34
|
clearButtonLabelText = _ref.clearButtonLabelText,
|
37
35
|
_ref$hideScopesLabel = _ref.hideScopesLabel,
|
38
|
-
hideScopesLabel = _ref$hideScopesLabel ===
|
36
|
+
hideScopesLabel = _ref$hideScopesLabel === undefined ? defaults.hideScopesLabel : _ref$hideScopesLabel,
|
39
37
|
labelText = _ref.labelText,
|
40
38
|
_ref$onChange = _ref.onChange,
|
41
|
-
onChange = _ref$onChange ===
|
39
|
+
onChange = _ref$onChange === undefined ? defaults.onChange : _ref$onChange,
|
42
40
|
_ref$onSubmit = _ref.onSubmit,
|
43
|
-
onSubmit = _ref$onSubmit ===
|
41
|
+
onSubmit = _ref$onSubmit === undefined ? defaults.onSubmit : _ref$onSubmit,
|
44
42
|
placeholderText = _ref.placeholderText,
|
45
43
|
_ref$scopes = _ref.scopes,
|
46
|
-
scopes = _ref$scopes ===
|
44
|
+
scopes = _ref$scopes === undefined ? [] : _ref$scopes,
|
47
45
|
scopesTypeLabel = _ref.scopesTypeLabel,
|
48
46
|
scopeToString = _ref.scopeToString,
|
49
47
|
_ref$selectedScopes = _ref.selectedScopes,
|
50
|
-
selectedScopes = _ref$selectedScopes ===
|
48
|
+
selectedScopes = _ref$selectedScopes === undefined ? [] : _ref$selectedScopes,
|
51
49
|
sortItems = _ref.sortItems,
|
52
50
|
submitLabel = _ref.submitLabel,
|
53
51
|
translateWithId = _ref.translateWithId,
|
@@ -128,7 +126,7 @@ exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
128
126
|
}, devtools.getDevtoolsProps(componentName), {
|
129
127
|
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--hide-scopes-label"), hideScopesLabel)),
|
130
128
|
onSubmit: handleSubmit
|
131
|
-
}), scopes !== null && scopes !==
|
129
|
+
}), scopes !== null && scopes !== undefined && scopes.length ? /*#__PURE__*/React.createElement(react.MultiSelect, _rollupPluginBabelHelpers.extends({}, multiSelectProps, {
|
132
130
|
id: "".concat(blockClass, "__multi-select"),
|
133
131
|
name: "search-scopes",
|
134
132
|
className: "".concat(blockClass, "__scopes"),
|
@@ -203,7 +201,6 @@ exports.SearchBar.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
203
201
|
/**@ts-ignore */
|
204
202
|
scopes: index.default.arrayOf(index.default.oneOfType([index.default.string, index.default.object])),
|
205
203
|
/** @type {string} The name text for the search scope type. */
|
206
|
-
// eslint-disable-next-line react/require-default-props
|
207
204
|
scopesTypeLabel: conditionalScopePropValidator,
|
208
205
|
/** @type {Array<any> Array of initially selected search scopes. */
|
209
206
|
/**@ts-ignore */
|
@@ -214,14 +211,10 @@ exports.SearchBar.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
|
214
211
|
* with "selected" items moved to the start of the scope items array.
|
215
212
|
*/
|
216
213
|
sortItems: index.default.func,
|
217
|
-
// eslint-disable-line react/require-default-props
|
218
|
-
|
219
214
|
/** @type {string} The label text for the search submit button. */
|
220
215
|
submitLabel: index.default.string.isRequired,
|
221
216
|
/** @type {func} Callback function for translating MultiSelect's child ListBoxMenuIcon SVG title. */
|
222
217
|
translateWithId: index.default.func,
|
223
|
-
// eslint-disable-line react/require-default-props
|
224
|
-
|
225
218
|
/** @type {string} Search query value. */
|
226
219
|
value: index.default.string
|
227
220
|
}, deprecatedProps);
|
@@ -1,10 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* Copyright IBM Corp. 2020,
|
2
|
+
* Copyright IBM Corp. 2020, 2025
|
3
3
|
*
|
4
4
|
* This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
|
-
/// <reference path="../../../src/custom-typings/index.d.ts" />
|
8
7
|
import React, { ReactNode, RefObject } from 'react';
|
9
8
|
import { ButtonProps } from '@carbon/react';
|
10
9
|
type SidePanelBaseProps = {
|
@@ -8,11 +8,9 @@
|
|
8
8
|
'use strict';
|
9
9
|
|
10
10
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
11
|
-
var framerMotion = require('framer-motion');
|
12
11
|
var icons = require('@carbon/react/icons');
|
13
12
|
var react = require('@carbon/react');
|
14
13
|
var React = require('react');
|
15
|
-
var variants = require('./motion/variants.js');
|
16
14
|
var ActionSet = require('../ActionSet/ActionSet.js');
|
17
15
|
var index = require('../../_virtual/index.js');
|
18
16
|
var constants = require('./constants.js');
|
@@ -22,17 +20,15 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
22
20
|
var carbonMotion = require('@carbon/motion');
|
23
21
|
var pconsole = require('../../global/js/utils/pconsole.js');
|
24
22
|
var settings = require('../../settings.js');
|
25
|
-
var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMotion.js');
|
26
23
|
var useFocus = require('../../global/js/hooks/useFocus.js');
|
27
24
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
25
|
+
var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMotion.js');
|
26
|
+
var usePresence = require('../../global/js/hooks/usePresence.js');
|
28
27
|
|
29
28
|
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "decorator", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
30
29
|
_excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
|
31
30
|
var blockClass = "".concat(settings.pkg.prefix, "--side-panel");
|
32
31
|
var componentName = 'SidePanel';
|
33
|
-
// `any` is a work around until ActionSet is migrated to TS
|
34
|
-
var MotionActionSet = framerMotion.motion(ActionSet.ActionSet);
|
35
|
-
|
36
32
|
// Default values for props
|
37
33
|
var defaults = {
|
38
34
|
animateTitle: true,
|
@@ -47,36 +43,37 @@ var defaults = {
|
|
47
43
|
* Side panels keep users in-context of a page while performing tasks like navigating, editing, viewing details, or configuring something new.
|
48
44
|
*/
|
49
45
|
exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
46
|
+
var _ref3;
|
50
47
|
var actionToolbarButtons = _ref.actionToolbarButtons,
|
51
48
|
actions = _ref.actions,
|
52
49
|
aiLabel = _ref.aiLabel,
|
53
50
|
_ref$animateTitle = _ref.animateTitle,
|
54
|
-
animateTitle = _ref$animateTitle ===
|
51
|
+
animateTitle = _ref$animateTitle === undefined ? defaults.animateTitle : _ref$animateTitle,
|
55
52
|
children = _ref.children,
|
56
53
|
className = _ref.className,
|
57
54
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
58
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
55
|
+
closeIconDescription = _ref$closeIconDescrip === undefined ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
59
56
|
condensedActions = _ref.condensedActions,
|
60
57
|
_ref$currentStep = _ref.currentStep,
|
61
|
-
currentStep = _ref$currentStep ===
|
58
|
+
currentStep = _ref$currentStep === undefined ? defaults.currentStep : _ref$currentStep,
|
62
59
|
decorator = _ref.decorator,
|
63
60
|
_ref$id = _ref.id,
|
64
|
-
id = _ref$id ===
|
61
|
+
id = _ref$id === undefined ? blockClass : _ref$id,
|
65
62
|
includeOverlay = _ref.includeOverlay,
|
66
63
|
labelText = _ref.labelText,
|
67
64
|
_ref$navigationBackIc = _ref.navigationBackIconDescription,
|
68
|
-
navigationBackIconDescription = _ref$navigationBackIc ===
|
65
|
+
navigationBackIconDescription = _ref$navigationBackIc === undefined ? defaults.navigationBackIconDescription : _ref$navigationBackIc,
|
69
66
|
onNavigationBack = _ref.onNavigationBack,
|
70
67
|
onRequestClose = _ref.onRequestClose,
|
71
68
|
onUnmount = _ref.onUnmount,
|
72
69
|
open = _ref.open,
|
73
70
|
_ref$placement = _ref.placement,
|
74
|
-
placement = _ref$placement ===
|
71
|
+
placement = _ref$placement === undefined ? defaults.placement : _ref$placement,
|
75
72
|
preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
|
76
73
|
selectorPageContent = _ref.selectorPageContent,
|
77
74
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
78
75
|
_ref$size = _ref.size,
|
79
|
-
size = _ref$size ===
|
76
|
+
size = _ref$size === undefined ? defaults.size : _ref$size,
|
80
77
|
slideIn = _ref.slideIn,
|
81
78
|
slug = _ref.slug,
|
82
79
|
subtitle = _ref.subtitle,
|
@@ -115,7 +112,10 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
115
112
|
keyDownListener = _useFocus.keyDownListener;
|
116
113
|
var panelRefValue = sidePanelRef.current;
|
117
114
|
var previousOpen = usePreviousValue.usePreviousValue(open);
|
118
|
-
var shouldReduceMotion = usePrefersReducedMotion.
|
115
|
+
var shouldReduceMotion = usePrefersReducedMotion.usePrefersReducedMotion();
|
116
|
+
var exitAnimationName = placement === 'right' ? 'side-panel-exit-right' : 'side-panel-exit-left';
|
117
|
+
var _usePresence = usePresence.usePresence(open, sidePanelRef, exitAnimationName),
|
118
|
+
shouldRender = _usePresence.shouldRender;
|
119
119
|
|
120
120
|
// Title animation on scroll related state
|
121
121
|
var _useState7 = React.useState(0),
|
@@ -124,51 +124,51 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
124
124
|
setLabelTextHeight = _useState8[1];
|
125
125
|
var handleEscapeKey = function handleEscapeKey(event) {
|
126
126
|
if (event.key === 'Escape' && open) {
|
127
|
-
onRequestClose === null || onRequestClose ===
|
127
|
+
onRequestClose === null || onRequestClose === undefined || onRequestClose();
|
128
128
|
}
|
129
129
|
};
|
130
130
|
React.useEffect(function () {
|
131
|
-
if (open && !(titleRef !== null && titleRef !==
|
131
|
+
if (open && !(titleRef !== null && titleRef !== undefined && titleRef.current)) {
|
132
132
|
setDoAnimateTitle(false);
|
133
133
|
} else {
|
134
134
|
setDoAnimateTitle(animateTitle);
|
135
135
|
}
|
136
136
|
}, [animateTitle, open]);
|
137
137
|
var titleItemsStyles = React.useCallback(function (progress) {
|
138
|
-
if (subtitleRef !== null && subtitleRef !==
|
138
|
+
if (subtitleRef !== null && subtitleRef !== undefined && subtitleRef.current) {
|
139
139
|
var _subtitleEl$style;
|
140
|
-
var subtitleEl = subtitleRef === null || subtitleRef ===
|
141
|
-
var height = subtitleEl === null || subtitleEl ===
|
140
|
+
var subtitleEl = subtitleRef === null || subtitleRef === undefined ? undefined : subtitleRef.current;
|
141
|
+
var height = subtitleEl === null || subtitleEl === undefined ? undefined : subtitleEl.clientHeight;
|
142
142
|
var calculatedMargin = height * progress;
|
143
|
-
subtitleEl === null || subtitleEl ===
|
143
|
+
subtitleEl === null || subtitleEl === undefined || (_subtitleEl$style = subtitleEl.style) === null || _subtitleEl$style === undefined || _subtitleEl$style.setProperty('margin-top', "".concat(-calculatedMargin, "px"));
|
144
144
|
}
|
145
|
-
if (labelTextRef !== null && labelTextRef !==
|
145
|
+
if (labelTextRef !== null && labelTextRef !== undefined && labelTextRef.current) {
|
146
146
|
var _labelTextRef$current;
|
147
147
|
var _calculatedMargin = labelTextHeight * progress;
|
148
|
-
labelTextRef === null || labelTextRef ===
|
148
|
+
labelTextRef === null || labelTextRef === undefined || (_labelTextRef$current = labelTextRef.current) === null || _labelTextRef$current === undefined || (_labelTextRef$current = _labelTextRef$current.style) === null || _labelTextRef$current === undefined || _labelTextRef$current.setProperty('margin-top', "".concat(-_calculatedMargin, "px"));
|
149
149
|
}
|
150
150
|
}, [labelTextHeight]);
|
151
151
|
React.useEffect(function () {
|
152
|
-
if (open && animateTitle && labelTextRef !== null && labelTextRef !==
|
152
|
+
if (open && animateTitle && labelTextRef !== null && labelTextRef !== undefined && labelTextRef.current) {
|
153
153
|
var _labelTextRef$current2;
|
154
|
-
setLabelTextHeight(Number((labelTextRef === null || labelTextRef ===
|
154
|
+
setLabelTextHeight(Number((labelTextRef === null || labelTextRef === undefined || (_labelTextRef$current2 = labelTextRef.current) === null || _labelTextRef$current2 === undefined ? undefined : _labelTextRef$current2.clientHeight) || null));
|
155
155
|
}
|
156
156
|
}, [animateTitle, labelTextRef, open]);
|
157
157
|
var handleScroll = React.useCallback(function () {
|
158
|
-
if (doAnimateTitle && innerContentRef !== null && innerContentRef !==
|
158
|
+
if (doAnimateTitle && innerContentRef !== null && innerContentRef !== undefined && innerContentRef.current) {
|
159
159
|
var _innerContentRef$curr;
|
160
|
-
var scrollTop = innerContentRef === null || innerContentRef ===
|
160
|
+
var scrollTop = innerContentRef === null || innerContentRef === undefined || (_innerContentRef$curr = innerContentRef.current) === null || _innerContentRef$curr === undefined ? undefined : _innerContentRef$curr.scrollTop;
|
161
161
|
var animationProgress = Math.min(Number(scrollTop), scrollAnimationDistance) / scrollAnimationDistance;
|
162
|
-
panelRefValue === null || panelRefValue ===
|
162
|
+
panelRefValue === null || panelRefValue === undefined || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-progress"), animationProgress.toString());
|
163
163
|
titleItemsStyles(animationProgress);
|
164
164
|
}
|
165
|
-
}, [doAnimateTitle, panelRefValue === null || panelRefValue ===
|
165
|
+
}, [doAnimateTitle, panelRefValue === null || panelRefValue === undefined ? undefined : panelRefValue.style, scrollAnimationDistance, titleItemsStyles]);
|
166
166
|
|
167
167
|
// scroll panel to top going between steps
|
168
168
|
React.useEffect(function () {
|
169
169
|
if (sidePanelRef && panelRefValue) {
|
170
170
|
var _animatedScrollRef$cu;
|
171
|
-
var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !==
|
171
|
+
var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !== undefined ? _animatedScrollRef$cu : innerContentRef.current;
|
172
172
|
if (previousState && previousState['currentStep'] !== currentStep && scrollableSection) {
|
173
173
|
scrollableSection.scrollTop = 0;
|
174
174
|
}
|
@@ -193,17 +193,17 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
193
193
|
if (previousOpen && !open && launcherButtonRef) {
|
194
194
|
setTimeout(function () {
|
195
195
|
var _launcherButtonRef$cu;
|
196
|
-
launcherButtonRef === null || launcherButtonRef ===
|
196
|
+
launcherButtonRef === null || launcherButtonRef === undefined || (_launcherButtonRef$cu = launcherButtonRef.current) === null || _launcherButtonRef$cu === undefined || _launcherButtonRef$cu.focus();
|
197
197
|
}, 0);
|
198
198
|
}
|
199
199
|
}, [launcherButtonRef, open, previousOpen]);
|
200
200
|
var checkSetDoAnimateTitle = function checkSetDoAnimateTitle() {
|
201
201
|
var canDoAnimateTitle = false;
|
202
|
-
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !==
|
202
|
+
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== undefined && titleRef.current && title && title.length && !shouldReduceMotion) {
|
203
203
|
var _labelTextRef$current3, _labelTextRef$current4, _subtitleRef$current$, _subtitleRef$current;
|
204
204
|
var titleEl = titleRef.current;
|
205
|
-
var labelHeight = (_labelTextRef$current3 = labelTextRef === null || labelTextRef ===
|
206
|
-
var subtitleHeight = (_subtitleRef$current$ = subtitleRef === null || subtitleRef ===
|
205
|
+
var labelHeight = (_labelTextRef$current3 = labelTextRef === null || labelTextRef === undefined || (_labelTextRef$current4 = labelTextRef.current) === null || _labelTextRef$current4 === undefined ? undefined : _labelTextRef$current4.offsetHeight) !== null && _labelTextRef$current3 !== undefined ? _labelTextRef$current3 : 0;
|
206
|
+
var subtitleHeight = (_subtitleRef$current$ = subtitleRef === null || subtitleRef === undefined || (_subtitleRef$current = subtitleRef.current) === null || _subtitleRef$current === undefined ? undefined : _subtitleRef$current.offsetHeight) !== null && _subtitleRef$current$ !== undefined ? _subtitleRef$current$ : 0;
|
207
207
|
|
208
208
|
// Adjusts space at bottom of titles by changing where scrolling finishes
|
209
209
|
// Styles use border to save use of get computed style
|
@@ -212,12 +212,12 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
212
212
|
setScrollAnimationDistance(_scrollAnimationDistance);
|
213
213
|
|
214
214
|
// used to calculate the header moves
|
215
|
-
panelRefValue === null || panelRefValue ===
|
215
|
+
panelRefValue === null || panelRefValue === undefined || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-distance"), _scrollAnimationDistance.toString());
|
216
216
|
var scrollEl = innerContentRef.current;
|
217
217
|
if (scrollEl) {
|
218
218
|
var _window;
|
219
|
-
var innerComputed = (_window = window) === null || _window ===
|
220
|
-
var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed ===
|
219
|
+
var innerComputed = (_window = window) === null || _window === undefined ? undefined : _window.getComputedStyle(innerContentRef.current);
|
220
|
+
var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed === undefined ? undefined : innerComputed.paddingTop) + parseFloat(innerComputed === null || innerComputed === undefined ? undefined : innerComputed.paddingBottom) : 0;
|
221
221
|
canDoAnimateTitle = (!!labelText || !!actionToolbarButtons || !!subtitle) && scrollEl.scrollHeight - scrollEl.clientHeight >= _scrollAnimationDistance + innerPaddingHeight;
|
222
222
|
}
|
223
223
|
}
|
@@ -228,13 +228,13 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
228
228
|
};
|
229
229
|
React.useEffect(function () {
|
230
230
|
if (!doAnimateTitle && sidePanelRef.current) {
|
231
|
-
panelRefValue === null || panelRefValue ===
|
231
|
+
panelRefValue === null || panelRefValue === undefined || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-progress"), '0');
|
232
232
|
}
|
233
|
-
}, [doAnimateTitle, handleScroll, sidePanelRef, innerContentRef, open, panelRefValue === null || panelRefValue ===
|
233
|
+
}, [doAnimateTitle, handleScroll, sidePanelRef, innerContentRef, open, panelRefValue === null || panelRefValue === undefined ? undefined : panelRefValue.style]);
|
234
234
|
|
235
235
|
// Calculate scroll distances
|
236
236
|
React.useEffect(function () {
|
237
|
-
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !==
|
237
|
+
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== undefined && titleRef.current && title && title.length && !shouldReduceMotion) {
|
238
238
|
checkSetDoAnimateTitle();
|
239
239
|
}
|
240
240
|
|
@@ -267,7 +267,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
267
267
|
// initializes the side panel to close
|
268
268
|
var onAnimationEnd = function onAnimationEnd() {
|
269
269
|
if (!open) {
|
270
|
-
onUnmount === null || onUnmount ===
|
270
|
+
onUnmount === null || onUnmount === undefined || onUnmount();
|
271
271
|
}
|
272
272
|
setAnimationComplete(!animationComplete);
|
273
273
|
};
|
@@ -298,7 +298,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
298
298
|
}, [open, placement, selectorPageContent, slideIn]);
|
299
299
|
React.useEffect(function () {
|
300
300
|
if (!open && previousState && previousState['open'] && shouldReduceMotion) {
|
301
|
-
onUnmount === null || onUnmount ===
|
301
|
+
onUnmount === null || onUnmount === undefined || onUnmount();
|
302
302
|
}
|
303
303
|
}, [open, onUnmount, shouldReduceMotion, previousState]);
|
304
304
|
|
@@ -324,23 +324,23 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
324
324
|
}, [slideIn, selectorPageContent, placement, size, shouldReduceMotion, open]);
|
325
325
|
React.useEffect(function () {
|
326
326
|
if (open && animationComplete) {
|
327
|
-
if (selectorPrimaryFocus && useFocus.getSpecificElement(sidePanelRef === null || sidePanelRef ===
|
327
|
+
if (selectorPrimaryFocus && useFocus.getSpecificElement(sidePanelRef === null || sidePanelRef === undefined ? undefined : sidePanelRef.current, selectorPrimaryFocus)) {
|
328
328
|
var _window2;
|
329
|
-
var primeFocusEl = useFocus.getSpecificElement(sidePanelRef === null || sidePanelRef ===
|
330
|
-
if (primeFocusEl && ((_window2 = window) === null || _window2 ===
|
329
|
+
var primeFocusEl = useFocus.getSpecificElement(sidePanelRef === null || sidePanelRef === undefined ? undefined : sidePanelRef.current, selectorPrimaryFocus);
|
330
|
+
if (primeFocusEl && ((_window2 = window) === null || _window2 === undefined || (_window2 = _window2.getComputedStyle(primeFocusEl)) === null || _window2 === undefined ? undefined : _window2.display) !== 'none') {
|
331
331
|
setTimeout(function () {
|
332
|
-
return primeFocusEl === null || primeFocusEl ===
|
332
|
+
return primeFocusEl === null || primeFocusEl === undefined ? undefined : primeFocusEl.focus();
|
333
333
|
}, 0);
|
334
334
|
}
|
335
335
|
} else if (!slideIn) {
|
336
336
|
setTimeout(function () {
|
337
|
-
return firstElement === null || firstElement ===
|
337
|
+
return firstElement === null || firstElement === undefined ? undefined : firstElement.focus();
|
338
338
|
}, 0);
|
339
339
|
}
|
340
340
|
}
|
341
341
|
}, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
|
342
342
|
var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
|
343
|
-
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(
|
343
|
+
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), (_ref3 = {}, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_ref3, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-decorator"), decorator), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--has-ai-label"), aiLabel), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay), "".concat(blockClass, "--open"), open), "".concat(blockClass, "--closing"), !open), _rollupPluginBabelHelpers.defineProperty(_ref3, "".concat(blockClass, "--reduced-motion"), shouldReduceMotion))]);
|
344
344
|
var renderTitle = function renderTitle() {
|
345
345
|
return /*#__PURE__*/React.createElement("div", {
|
346
346
|
className: cx("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
|
@@ -363,19 +363,19 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
363
363
|
* slug is deprecated
|
364
364
|
* can remove this condition in future release
|
365
365
|
*/
|
366
|
-
if (slug && ((_slug$type = slug['type']) === null || _slug$type ===
|
366
|
+
if (slug && ((_slug$type = slug['type']) === null || _slug$type === undefined ? undefined : _slug$type.displayName) === 'AILabel') {
|
367
367
|
normalizedDecorator = /*#__PURE__*/React.cloneElement(slug, {
|
368
368
|
// slug size is sm unless actions and size > md
|
369
369
|
size: closeSize
|
370
370
|
});
|
371
371
|
}
|
372
|
-
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type ===
|
372
|
+
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === undefined ? undefined : _aiLabel$type.displayName) === 'AILabel') {
|
373
373
|
normalizedDecorator = /*#__PURE__*/React.cloneElement(aiLabel, {
|
374
374
|
// aiLabel size is sm unless actions and size > md
|
375
375
|
size: closeSize
|
376
376
|
});
|
377
377
|
}
|
378
|
-
if ((decorator === null || decorator ===
|
378
|
+
if ((decorator === null || decorator === undefined || (_decorator$type = decorator['type']) === null || _decorator$type === undefined ? undefined : _decorator$type.displayName) === 'AILabel') {
|
379
379
|
normalizedDecorator = /*#__PURE__*/React.cloneElement(decorator, {
|
380
380
|
// decorator size is sm unless actions and size > md
|
381
381
|
size: closeSize
|
@@ -424,7 +424,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
424
424
|
var label = _ref4.label,
|
425
425
|
kind = _ref4.kind,
|
426
426
|
_ref4$hasIconOnly = _ref4.hasIconOnly,
|
427
|
-
hasIconOnly = _ref4$hasIconOnly ===
|
427
|
+
hasIconOnly = _ref4$hasIconOnly === undefined ? false : _ref4$hasIconOnly,
|
428
428
|
icon = _ref4.icon,
|
429
429
|
renderIcon = _ref4.renderIcon,
|
430
430
|
tooltipPosition = _ref4.tooltipPosition,
|
@@ -455,7 +455,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
455
455
|
return /*#__PURE__*/React.createElement("div", {
|
456
456
|
ref: innerContentRef,
|
457
457
|
onScroll: handleScroll,
|
458
|
-
className: cx("".concat(blockClass, "__inner-content"), "".concat(blockClass, "--scrolls"), "".concat(!doAnimateTitle ? "".concat(blockClass, "__inner-content--no-animated-title") : ''))
|
458
|
+
className: cx("".concat(blockClass, "__inner-content"), "".concat(blockClass, "--scrolls"), "".concat(!doAnimateTitle && !animateTitle ? "".concat(blockClass, "__inner-content--no-animated-title") : ''))
|
459
459
|
}, children);
|
460
460
|
};
|
461
461
|
var handleKeyDown = function handleKeyDown(event) {
|
@@ -464,37 +464,23 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
464
464
|
keyDownListener(event);
|
465
465
|
}
|
466
466
|
};
|
467
|
-
return
|
467
|
+
return shouldRender ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, devtools.getDevtoolsProps(componentName), rest, {
|
468
468
|
id: id,
|
469
469
|
className: mainPanelClassNames,
|
470
470
|
ref: sidePanelRef,
|
471
471
|
role: "complementary",
|
472
472
|
"aria-label": title,
|
473
|
-
|
473
|
+
onAnimationEnd: onAnimationEnd,
|
474
474
|
onAnimationStart: onAnimationStart,
|
475
|
-
variants: variants.panelVariants,
|
476
|
-
initial: "hidden",
|
477
|
-
animate: "visible",
|
478
|
-
exit: "exit",
|
479
|
-
custom: {
|
480
|
-
placement: placement,
|
481
|
-
shouldReduceMotion: shouldReduceMotion
|
482
|
-
},
|
483
475
|
onKeyDown: handleKeyDown
|
484
|
-
}),
|
485
|
-
actions: actions !== null && actions !==
|
476
|
+
}), renderHeader(), renderMain(), /*#__PURE__*/React.createElement(ActionSet.ActionSet, {
|
477
|
+
actions: actions !== null && actions !== undefined ? actions : [],
|
486
478
|
className: primaryActionContainerClassNames,
|
487
|
-
size: size === 'xs' ? 'sm' : size
|
488
|
-
|
489
|
-
variants: variants.actionSetVariants
|
490
|
-
})), /*#__PURE__*/React.createElement(framerMotion.AnimatePresence, null, includeOverlay && /*#__PURE__*/React.createElement(framerMotion.motion.div, {
|
491
|
-
variants: variants.overlayVariants,
|
492
|
-
initial: "hidden",
|
493
|
-
animate: "visible",
|
494
|
-
exit: "exit",
|
479
|
+
size: size === 'xs' ? 'sm' : size
|
480
|
+
})), includeOverlay && /*#__PURE__*/React.createElement("div", {
|
495
481
|
ref: overlayRef,
|
496
|
-
className: "".concat(blockClass, "__overlay")
|
497
|
-
}))
|
482
|
+
className: cx("".concat(blockClass, "__overlay"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__overlay--closing"), !open))
|
483
|
+
})) : null;
|
498
484
|
});
|
499
485
|
|
500
486
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -23,25 +23,13 @@ export function SimpleHeader({ breadcrumbs, className, title, noTrailingSlash, m
|
|
23
23
|
}): React.JSX.Element;
|
24
24
|
export namespace SimpleHeader {
|
25
25
|
namespace propTypes {
|
26
|
-
export let breadcrumbs:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
label: PropTypes.Validator<string>;
|
31
|
-
/** breadcrumb item link */
|
32
|
-
href: PropTypes.Requireable<string>;
|
33
|
-
/** breadcrumb item title tooltip */
|
34
|
-
title: PropTypes.Requireable<string>;
|
35
|
-
/** Provide if this breadcrumb item represents the current page */
|
36
|
-
isCurrentPage: PropTypes.Requireable<boolean>;
|
37
|
-
}> | null | undefined)[]>;
|
38
|
-
export let className: PropTypes.Requireable<string>;
|
39
|
-
export let maxVisible: PropTypes.Requireable<number>;
|
40
|
-
export let noTrailingSlash: PropTypes.Requireable<boolean>;
|
26
|
+
export let breadcrumbs: any;
|
27
|
+
export let className: any;
|
28
|
+
export let maxVisible: any;
|
29
|
+
export let noTrailingSlash: any;
|
41
30
|
export { overflowAriaLabel_required_if_breadcrumbs_exist as overflowAriaLabel };
|
42
31
|
export let overflowTooltipAlign: any;
|
43
|
-
export let title:
|
32
|
+
export let title: any;
|
44
33
|
}
|
45
34
|
}
|
46
35
|
import React from 'react';
|
47
|
-
import PropTypes from 'prop-types';
|
@@ -37,13 +37,13 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
37
37
|
className = _ref.className,
|
38
38
|
title = _ref.title,
|
39
39
|
_ref$noTrailingSlash = _ref.noTrailingSlash,
|
40
|
-
noTrailingSlash = _ref$noTrailingSlash ===
|
40
|
+
noTrailingSlash = _ref$noTrailingSlash === undefined ? true : _ref$noTrailingSlash,
|
41
41
|
maxVisible = _ref.maxVisible,
|
42
42
|
overflowAriaLabel = _ref.overflowAriaLabel,
|
43
43
|
overflowTooltipAlign = _ref.overflowTooltipAlign,
|
44
44
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
45
45
|
var warnIfNoTitleOrBreadcrumbs = React.useCallback(function () {
|
46
|
-
if (!title && !(breadcrumbs !== null && breadcrumbs !==
|
46
|
+
if (!title && !(breadcrumbs !== null && breadcrumbs !== undefined && breadcrumbs.length)) {
|
47
47
|
pconsole.default.error("Warning: You have tried using a ".concat(componentName, " component without specifying a title or breadcrumbs props"));
|
48
48
|
}
|
49
49
|
}, [breadcrumbs, title]);
|
@@ -52,7 +52,7 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
52
52
|
}, [title, breadcrumbs, warnIfNoTitleOrBreadcrumbs]);
|
53
53
|
return /*#__PURE__*/React.createElement("header", _rollupPluginBabelHelpers.extends({
|
54
54
|
className: cx(blockClass, className)
|
55
|
-
}, rest), (breadcrumbs === null || breadcrumbs ===
|
55
|
+
}, rest), (breadcrumbs === null || breadcrumbs === undefined ? undefined : breadcrumbs.length) > 0 && /*#__PURE__*/React.createElement(BreadcrumbWithOverflow.BreadcrumbWithOverflow, {
|
56
56
|
noTrailingSlash: noTrailingSlash,
|
57
57
|
className: cx("".concat(blockClass, "__breadcrumbs")),
|
58
58
|
breadcrumbs: breadcrumbs,
|
@@ -65,7 +65,7 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
65
65
|
};
|
66
66
|
var overflowAriaLabel_required_if_breadcrumbs_exist = propsHelper.isRequiredIf(index.default.string, function (props) {
|
67
67
|
var _props$breadcrumbs;
|
68
|
-
return ((_props$breadcrumbs = props.breadcrumbs) === null || _props$breadcrumbs ===
|
68
|
+
return ((_props$breadcrumbs = props.breadcrumbs) === null || _props$breadcrumbs === undefined ? undefined : _props$breadcrumbs.length) > 0;
|
69
69
|
});
|
70
70
|
SimpleHeader.propTypes = {
|
71
71
|
/** Header breadcrumbs */
|