@carbon/ibm-products 2.61.0 → 2.62.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 +170 -22
- 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 +170 -22
- 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 +170 -22
- 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 +170 -22
- 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 +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- 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/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- 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.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- 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 +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- 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 +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- 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.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- 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.js +5 -5
- 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/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- 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 +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- 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.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- 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 +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- 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.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- 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/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- 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/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- 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.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- 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 +5 -5
- 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 +4 -4
- 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.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- 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 +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- 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.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- 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.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- 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.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/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- 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 +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- 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.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- 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 +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- 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.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- 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/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- 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 +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -31,19 +31,19 @@ var SearchBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
31
31
|
var className = _ref.className,
|
32
32
|
clearButtonLabelText = _ref.clearButtonLabelText,
|
33
33
|
_ref$hideScopesLabel = _ref.hideScopesLabel,
|
34
|
-
hideScopesLabel = _ref$hideScopesLabel ===
|
34
|
+
hideScopesLabel = _ref$hideScopesLabel === void 0 ? defaults.hideScopesLabel : _ref$hideScopesLabel,
|
35
35
|
labelText = _ref.labelText,
|
36
36
|
_ref$onChange = _ref.onChange,
|
37
|
-
onChange = _ref$onChange ===
|
37
|
+
onChange = _ref$onChange === void 0 ? defaults.onChange : _ref$onChange,
|
38
38
|
_ref$onSubmit = _ref.onSubmit,
|
39
|
-
onSubmit = _ref$onSubmit ===
|
39
|
+
onSubmit = _ref$onSubmit === void 0 ? defaults.onSubmit : _ref$onSubmit,
|
40
40
|
placeholderText = _ref.placeholderText,
|
41
41
|
_ref$scopes = _ref.scopes,
|
42
|
-
scopes = _ref$scopes ===
|
42
|
+
scopes = _ref$scopes === void 0 ? [] : _ref$scopes,
|
43
43
|
scopesTypeLabel = _ref.scopesTypeLabel,
|
44
44
|
scopeToString = _ref.scopeToString,
|
45
45
|
_ref$selectedScopes = _ref.selectedScopes,
|
46
|
-
selectedScopes = _ref$selectedScopes ===
|
46
|
+
selectedScopes = _ref$selectedScopes === void 0 ? [] : _ref$selectedScopes,
|
47
47
|
sortItems = _ref.sortItems,
|
48
48
|
submitLabel = _ref.submitLabel,
|
49
49
|
translateWithId = _ref.translateWithId,
|
@@ -124,7 +124,7 @@ var SearchBar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
124
124
|
}, getDevtoolsProps(componentName), {
|
125
125
|
className: cx(blockClass, className, _defineProperty({}, "".concat(blockClass, "--hide-scopes-label"), hideScopesLabel)),
|
126
126
|
onSubmit: handleSubmit
|
127
|
-
}), scopes !== null && scopes !==
|
127
|
+
}), scopes !== null && scopes !== void 0 && scopes.length ? /*#__PURE__*/React__default.createElement(MultiSelect, _extends({}, multiSelectProps, {
|
128
128
|
id: "".concat(blockClass, "__multi-select"),
|
129
129
|
name: "search-scopes",
|
130
130
|
className: "".concat(blockClass, "__scopes"),
|
@@ -46,32 +46,32 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
46
46
|
actions = _ref.actions,
|
47
47
|
aiLabel = _ref.aiLabel,
|
48
48
|
_ref$animateTitle = _ref.animateTitle,
|
49
|
-
animateTitle = _ref$animateTitle ===
|
49
|
+
animateTitle = _ref$animateTitle === void 0 ? defaults.animateTitle : _ref$animateTitle,
|
50
50
|
children = _ref.children,
|
51
51
|
className = _ref.className,
|
52
52
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
53
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
53
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
54
54
|
condensedActions = _ref.condensedActions,
|
55
55
|
_ref$currentStep = _ref.currentStep,
|
56
|
-
currentStep = _ref$currentStep ===
|
56
|
+
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
57
57
|
decorator = _ref.decorator,
|
58
58
|
_ref$id = _ref.id,
|
59
|
-
id = _ref$id ===
|
59
|
+
id = _ref$id === void 0 ? blockClass : _ref$id,
|
60
60
|
includeOverlay = _ref.includeOverlay,
|
61
61
|
labelText = _ref.labelText,
|
62
62
|
_ref$navigationBackIc = _ref.navigationBackIconDescription,
|
63
|
-
navigationBackIconDescription = _ref$navigationBackIc ===
|
63
|
+
navigationBackIconDescription = _ref$navigationBackIc === void 0 ? defaults.navigationBackIconDescription : _ref$navigationBackIc,
|
64
64
|
onNavigationBack = _ref.onNavigationBack,
|
65
65
|
onRequestClose = _ref.onRequestClose,
|
66
66
|
onUnmount = _ref.onUnmount,
|
67
67
|
open = _ref.open,
|
68
68
|
_ref$placement = _ref.placement,
|
69
|
-
placement = _ref$placement ===
|
69
|
+
placement = _ref$placement === void 0 ? defaults.placement : _ref$placement,
|
70
70
|
preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
|
71
71
|
selectorPageContent = _ref.selectorPageContent,
|
72
72
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
73
73
|
_ref$size = _ref.size,
|
74
|
-
size = _ref$size ===
|
74
|
+
size = _ref$size === void 0 ? defaults.size : _ref$size,
|
75
75
|
slideIn = _ref.slideIn,
|
76
76
|
slug = _ref.slug,
|
77
77
|
subtitle = _ref.subtitle,
|
@@ -111,7 +111,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
111
111
|
var panelRefValue = sidePanelRef.current;
|
112
112
|
var previousOpen = usePreviousValue(open);
|
113
113
|
var shouldReduceMotion = usePrefersReducedMotion();
|
114
|
-
var exitAnimationName = placement === 'right' ? 'side-panel-exit-right' : 'side-panel-exit-left';
|
114
|
+
var exitAnimationName = shouldReduceMotion ? 'side-panel-exit-reduced' : placement === 'right' ? 'side-panel-exit-right' : 'side-panel-exit-left';
|
115
115
|
var _usePresence = usePresence(open, sidePanelRef, exitAnimationName),
|
116
116
|
shouldRender = _usePresence.shouldRender;
|
117
117
|
|
@@ -122,51 +122,51 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
122
122
|
setLabelTextHeight = _useState8[1];
|
123
123
|
var handleEscapeKey = function handleEscapeKey(event) {
|
124
124
|
if (event.key === 'Escape' && open) {
|
125
|
-
onRequestClose === null || onRequestClose ===
|
125
|
+
onRequestClose === null || onRequestClose === void 0 || onRequestClose();
|
126
126
|
}
|
127
127
|
};
|
128
128
|
useEffect(function () {
|
129
|
-
if (open && !(titleRef !== null && titleRef !==
|
129
|
+
if (open && !(titleRef !== null && titleRef !== void 0 && titleRef.current)) {
|
130
130
|
setDoAnimateTitle(false);
|
131
131
|
} else {
|
132
132
|
setDoAnimateTitle(animateTitle);
|
133
133
|
}
|
134
134
|
}, [animateTitle, open]);
|
135
135
|
var titleItemsStyles = useCallback(function (progress) {
|
136
|
-
if (subtitleRef !== null && subtitleRef !==
|
136
|
+
if (subtitleRef !== null && subtitleRef !== void 0 && subtitleRef.current) {
|
137
137
|
var _subtitleEl$style;
|
138
|
-
var subtitleEl = subtitleRef === null || subtitleRef ===
|
139
|
-
var height = subtitleEl === null || subtitleEl ===
|
138
|
+
var subtitleEl = subtitleRef === null || subtitleRef === void 0 ? void 0 : subtitleRef.current;
|
139
|
+
var height = subtitleEl === null || subtitleEl === void 0 ? void 0 : subtitleEl.clientHeight;
|
140
140
|
var calculatedMargin = height * progress;
|
141
|
-
subtitleEl === null || subtitleEl ===
|
141
|
+
subtitleEl === null || subtitleEl === void 0 || (_subtitleEl$style = subtitleEl.style) === null || _subtitleEl$style === void 0 || _subtitleEl$style.setProperty('margin-top', "".concat(-calculatedMargin, "px"));
|
142
142
|
}
|
143
|
-
if (labelTextRef !== null && labelTextRef !==
|
143
|
+
if (labelTextRef !== null && labelTextRef !== void 0 && labelTextRef.current) {
|
144
144
|
var _labelTextRef$current;
|
145
145
|
var _calculatedMargin = labelTextHeight * progress;
|
146
|
-
labelTextRef === null || labelTextRef ===
|
146
|
+
labelTextRef === null || labelTextRef === void 0 || (_labelTextRef$current = labelTextRef.current) === null || _labelTextRef$current === void 0 || (_labelTextRef$current = _labelTextRef$current.style) === null || _labelTextRef$current === void 0 || _labelTextRef$current.setProperty('margin-top', "".concat(-_calculatedMargin, "px"));
|
147
147
|
}
|
148
148
|
}, [labelTextHeight]);
|
149
149
|
useEffect(function () {
|
150
|
-
if (open && animateTitle && labelTextRef !== null && labelTextRef !==
|
150
|
+
if (open && animateTitle && labelTextRef !== null && labelTextRef !== void 0 && labelTextRef.current) {
|
151
151
|
var _labelTextRef$current2;
|
152
|
-
setLabelTextHeight(Number((labelTextRef === null || labelTextRef ===
|
152
|
+
setLabelTextHeight(Number((labelTextRef === null || labelTextRef === void 0 || (_labelTextRef$current2 = labelTextRef.current) === null || _labelTextRef$current2 === void 0 ? void 0 : _labelTextRef$current2.clientHeight) || null));
|
153
153
|
}
|
154
154
|
}, [animateTitle, labelTextRef, open]);
|
155
155
|
var handleScroll = useCallback(function () {
|
156
|
-
if (doAnimateTitle && innerContentRef !== null && innerContentRef !==
|
156
|
+
if (doAnimateTitle && innerContentRef !== null && innerContentRef !== void 0 && innerContentRef.current) {
|
157
157
|
var _innerContentRef$curr;
|
158
|
-
var scrollTop = innerContentRef === null || innerContentRef ===
|
158
|
+
var scrollTop = innerContentRef === null || innerContentRef === void 0 || (_innerContentRef$curr = innerContentRef.current) === null || _innerContentRef$curr === void 0 ? void 0 : _innerContentRef$curr.scrollTop;
|
159
159
|
var animationProgress = Math.min(Number(scrollTop), scrollAnimationDistance) / scrollAnimationDistance;
|
160
|
-
panelRefValue === null || panelRefValue ===
|
160
|
+
panelRefValue === null || panelRefValue === void 0 || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-progress"), animationProgress.toString());
|
161
161
|
titleItemsStyles(animationProgress);
|
162
162
|
}
|
163
|
-
}, [doAnimateTitle, panelRefValue === null || panelRefValue ===
|
163
|
+
}, [doAnimateTitle, panelRefValue === null || panelRefValue === void 0 ? void 0 : panelRefValue.style, scrollAnimationDistance, titleItemsStyles]);
|
164
164
|
|
165
165
|
// scroll panel to top going between steps
|
166
166
|
useEffect(function () {
|
167
167
|
if (sidePanelRef && panelRefValue) {
|
168
168
|
var _animatedScrollRef$cu;
|
169
|
-
var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !==
|
169
|
+
var scrollableSection = (_animatedScrollRef$cu = animatedScrollRef.current) !== null && _animatedScrollRef$cu !== void 0 ? _animatedScrollRef$cu : innerContentRef.current;
|
170
170
|
if (previousState && previousState['currentStep'] !== currentStep && scrollableSection) {
|
171
171
|
scrollableSection.scrollTop = 0;
|
172
172
|
}
|
@@ -191,17 +191,17 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
191
191
|
if (previousOpen && !open && launcherButtonRef) {
|
192
192
|
setTimeout(function () {
|
193
193
|
var _launcherButtonRef$cu;
|
194
|
-
launcherButtonRef === null || launcherButtonRef ===
|
194
|
+
launcherButtonRef === null || launcherButtonRef === void 0 || (_launcherButtonRef$cu = launcherButtonRef.current) === null || _launcherButtonRef$cu === void 0 || _launcherButtonRef$cu.focus();
|
195
195
|
}, 0);
|
196
196
|
}
|
197
197
|
}, [launcherButtonRef, open, previousOpen]);
|
198
198
|
var checkSetDoAnimateTitle = function checkSetDoAnimateTitle() {
|
199
199
|
var canDoAnimateTitle = false;
|
200
|
-
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !==
|
200
|
+
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !shouldReduceMotion) {
|
201
201
|
var _labelTextRef$current3, _labelTextRef$current4, _subtitleRef$current$, _subtitleRef$current;
|
202
202
|
var titleEl = titleRef.current;
|
203
|
-
var labelHeight = (_labelTextRef$current3 = labelTextRef === null || labelTextRef ===
|
204
|
-
var subtitleHeight = (_subtitleRef$current$ = subtitleRef === null || subtitleRef ===
|
203
|
+
var labelHeight = (_labelTextRef$current3 = labelTextRef === null || labelTextRef === void 0 || (_labelTextRef$current4 = labelTextRef.current) === null || _labelTextRef$current4 === void 0 ? void 0 : _labelTextRef$current4.offsetHeight) !== null && _labelTextRef$current3 !== void 0 ? _labelTextRef$current3 : 0;
|
204
|
+
var subtitleHeight = (_subtitleRef$current$ = subtitleRef === null || subtitleRef === void 0 || (_subtitleRef$current = subtitleRef.current) === null || _subtitleRef$current === void 0 ? void 0 : _subtitleRef$current.offsetHeight) !== null && _subtitleRef$current$ !== void 0 ? _subtitleRef$current$ : 0;
|
205
205
|
|
206
206
|
// Adjusts space at bottom of titles by changing where scrolling finishes
|
207
207
|
// Styles use border to save use of get computed style
|
@@ -210,12 +210,12 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
210
210
|
setScrollAnimationDistance(_scrollAnimationDistance);
|
211
211
|
|
212
212
|
// used to calculate the header moves
|
213
|
-
panelRefValue === null || panelRefValue ===
|
213
|
+
panelRefValue === null || panelRefValue === void 0 || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-distance"), _scrollAnimationDistance.toString());
|
214
214
|
var scrollEl = innerContentRef.current;
|
215
215
|
if (scrollEl) {
|
216
216
|
var _window;
|
217
|
-
var innerComputed = (_window = window) === null || _window ===
|
218
|
-
var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed ===
|
217
|
+
var innerComputed = (_window = window) === null || _window === void 0 ? void 0 : _window.getComputedStyle(innerContentRef.current);
|
218
|
+
var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingTop) + parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingBottom) : 0;
|
219
219
|
canDoAnimateTitle = (!!labelText || !!actionToolbarButtons || !!subtitle) && scrollEl.scrollHeight - scrollEl.clientHeight >= _scrollAnimationDistance + innerPaddingHeight;
|
220
220
|
}
|
221
221
|
}
|
@@ -226,13 +226,13 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
226
226
|
};
|
227
227
|
useEffect(function () {
|
228
228
|
if (!doAnimateTitle && sidePanelRef.current) {
|
229
|
-
panelRefValue === null || panelRefValue ===
|
229
|
+
panelRefValue === null || panelRefValue === void 0 || panelRefValue.style.setProperty("--".concat(blockClass, "--scroll-animation-progress"), '0');
|
230
230
|
}
|
231
|
-
}, [doAnimateTitle, handleScroll, sidePanelRef, innerContentRef, open, panelRefValue === null || panelRefValue ===
|
231
|
+
}, [doAnimateTitle, handleScroll, sidePanelRef, innerContentRef, open, panelRefValue === null || panelRefValue === void 0 ? void 0 : panelRefValue.style]);
|
232
232
|
|
233
233
|
// Calculate scroll distances
|
234
234
|
useEffect(function () {
|
235
|
-
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !==
|
235
|
+
if (panelRefValue && open && animateTitle && animationComplete && titleRef !== null && titleRef !== void 0 && titleRef.current && title && title.length && !shouldReduceMotion) {
|
236
236
|
checkSetDoAnimateTitle();
|
237
237
|
}
|
238
238
|
|
@@ -265,7 +265,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
265
265
|
// initializes the side panel to close
|
266
266
|
var onAnimationEnd = function onAnimationEnd() {
|
267
267
|
if (!open) {
|
268
|
-
onUnmount === null || onUnmount ===
|
268
|
+
onUnmount === null || onUnmount === void 0 || onUnmount();
|
269
269
|
}
|
270
270
|
setAnimationComplete(!animationComplete);
|
271
271
|
};
|
@@ -296,7 +296,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
296
296
|
}, [open, placement, selectorPageContent, slideIn]);
|
297
297
|
useEffect(function () {
|
298
298
|
if (!open && previousState && previousState['open'] && shouldReduceMotion) {
|
299
|
-
onUnmount === null || onUnmount ===
|
299
|
+
onUnmount === null || onUnmount === void 0 || onUnmount();
|
300
300
|
}
|
301
301
|
}, [open, onUnmount, shouldReduceMotion, previousState]);
|
302
302
|
|
@@ -322,17 +322,17 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
322
322
|
}, [slideIn, selectorPageContent, placement, size, shouldReduceMotion, open]);
|
323
323
|
useEffect(function () {
|
324
324
|
if (open && animationComplete) {
|
325
|
-
if (selectorPrimaryFocus && getSpecificElement(sidePanelRef === null || sidePanelRef ===
|
325
|
+
if (selectorPrimaryFocus && getSpecificElement(sidePanelRef === null || sidePanelRef === void 0 ? void 0 : sidePanelRef.current, selectorPrimaryFocus)) {
|
326
326
|
var _window2;
|
327
|
-
var primeFocusEl = getSpecificElement(sidePanelRef === null || sidePanelRef ===
|
328
|
-
if (primeFocusEl && ((_window2 = window) === null || _window2 ===
|
327
|
+
var primeFocusEl = getSpecificElement(sidePanelRef === null || sidePanelRef === void 0 ? void 0 : sidePanelRef.current, selectorPrimaryFocus);
|
328
|
+
if (primeFocusEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(primeFocusEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
|
329
329
|
setTimeout(function () {
|
330
|
-
return primeFocusEl === null || primeFocusEl ===
|
330
|
+
return primeFocusEl === null || primeFocusEl === void 0 ? void 0 : primeFocusEl.focus();
|
331
331
|
}, 0);
|
332
332
|
}
|
333
333
|
} else if (!slideIn) {
|
334
334
|
setTimeout(function () {
|
335
|
-
return firstElement === null || firstElement ===
|
335
|
+
return firstElement === null || firstElement === void 0 ? void 0 : firstElement.focus();
|
336
336
|
}, 0);
|
337
337
|
}
|
338
338
|
}
|
@@ -361,19 +361,19 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
361
361
|
* slug is deprecated
|
362
362
|
* can remove this condition in future release
|
363
363
|
*/
|
364
|
-
if (slug && ((_slug$type = slug['type']) === null || _slug$type ===
|
364
|
+
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'AILabel') {
|
365
365
|
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(slug, {
|
366
366
|
// slug size is sm unless actions and size > md
|
367
367
|
size: closeSize
|
368
368
|
});
|
369
369
|
}
|
370
|
-
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type ===
|
370
|
+
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
|
371
371
|
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(aiLabel, {
|
372
372
|
// aiLabel size is sm unless actions and size > md
|
373
373
|
size: closeSize
|
374
374
|
});
|
375
375
|
}
|
376
|
-
if ((decorator === null || decorator ===
|
376
|
+
if ((decorator === null || decorator === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) === 'AILabel') {
|
377
377
|
normalizedDecorator = /*#__PURE__*/React__default.cloneElement(decorator, {
|
378
378
|
// decorator size is sm unless actions and size > md
|
379
379
|
size: closeSize
|
@@ -422,7 +422,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
422
422
|
var label = _ref4.label,
|
423
423
|
kind = _ref4.kind,
|
424
424
|
_ref4$hasIconOnly = _ref4.hasIconOnly,
|
425
|
-
hasIconOnly = _ref4$hasIconOnly ===
|
425
|
+
hasIconOnly = _ref4$hasIconOnly === void 0 ? false : _ref4$hasIconOnly,
|
426
426
|
icon = _ref4.icon,
|
427
427
|
renderIcon = _ref4.renderIcon,
|
428
428
|
tooltipPosition = _ref4.tooltipPosition,
|
@@ -472,7 +472,7 @@ var SidePanel = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
472
472
|
onAnimationStart: onAnimationStart,
|
473
473
|
onKeyDown: handleKeyDown
|
474
474
|
}), renderHeader(), renderMain(), /*#__PURE__*/React__default.createElement(ActionSet, {
|
475
|
-
actions: actions !== null && actions !==
|
475
|
+
actions: actions !== null && actions !== void 0 ? actions : [],
|
476
476
|
className: primaryActionContainerClassNames,
|
477
477
|
size: size === 'xs' ? 'sm' : size
|
478
478
|
})), includeOverlay && /*#__PURE__*/React__default.createElement("div", {
|
@@ -35,13 +35,13 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
35
35
|
className = _ref.className,
|
36
36
|
title = _ref.title,
|
37
37
|
_ref$noTrailingSlash = _ref.noTrailingSlash,
|
38
|
-
noTrailingSlash = _ref$noTrailingSlash ===
|
38
|
+
noTrailingSlash = _ref$noTrailingSlash === void 0 ? true : _ref$noTrailingSlash,
|
39
39
|
maxVisible = _ref.maxVisible,
|
40
40
|
overflowAriaLabel = _ref.overflowAriaLabel,
|
41
41
|
overflowTooltipAlign = _ref.overflowTooltipAlign,
|
42
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
43
43
|
var warnIfNoTitleOrBreadcrumbs = useCallback(function () {
|
44
|
-
if (!title && !(breadcrumbs !== null && breadcrumbs !==
|
44
|
+
if (!title && !(breadcrumbs !== null && breadcrumbs !== void 0 && breadcrumbs.length)) {
|
45
45
|
pconsole.error("Warning: You have tried using a ".concat(componentName, " component without specifying a title or breadcrumbs props"));
|
46
46
|
}
|
47
47
|
}, [breadcrumbs, title]);
|
@@ -50,7 +50,7 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
50
50
|
}, [title, breadcrumbs, warnIfNoTitleOrBreadcrumbs]);
|
51
51
|
return /*#__PURE__*/React__default.createElement("header", _extends({
|
52
52
|
className: cx(blockClass, className)
|
53
|
-
}, rest), (breadcrumbs === null || breadcrumbs ===
|
53
|
+
}, rest), (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) > 0 && /*#__PURE__*/React__default.createElement(BreadcrumbWithOverflow, {
|
54
54
|
noTrailingSlash: noTrailingSlash,
|
55
55
|
className: cx("".concat(blockClass, "__breadcrumbs")),
|
56
56
|
breadcrumbs: breadcrumbs,
|
@@ -63,7 +63,7 @@ var SimpleHeader = function SimpleHeader(_ref) {
|
|
63
63
|
};
|
64
64
|
var overflowAriaLabel_required_if_breadcrumbs_exist = isRequiredIf(PropTypes.string, function (props) {
|
65
65
|
var _props$breadcrumbs;
|
66
|
-
return ((_props$breadcrumbs = props.breadcrumbs) === null || _props$breadcrumbs ===
|
66
|
+
return ((_props$breadcrumbs = props.breadcrumbs) === null || _props$breadcrumbs === void 0 ? void 0 : _props$breadcrumbs.length) > 0;
|
67
67
|
});
|
68
68
|
SimpleHeader.propTypes = {
|
69
69
|
/** Header breadcrumbs */
|
@@ -324,7 +324,7 @@ var StatusIcon = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
324
324
|
})
|
325
325
|
}
|
326
326
|
};
|
327
|
-
var IconComponent = (_icons$kind = icons[kind]) === null || _icons$kind ===
|
327
|
+
var IconComponent = (_icons$kind = icons[kind]) === null || _icons$kind === void 0 ? void 0 : _icons$kind[size];
|
328
328
|
var classNames = cx(className, blockClass, "".concat(blockClass, "--").concat(theme), _defineProperty({}, "".concat(blockClass, "--").concat(theme, "-").concat(kind), kind));
|
329
329
|
return IconComponent && /*#__PURE__*/React__default.createElement(IconComponent, _extends({}, rest, {
|
330
330
|
className: classNames,
|
@@ -34,9 +34,9 @@ var StatusIndicator = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
34
34
|
className = _ref.className,
|
35
35
|
onRetry = _ref.onRetry,
|
36
36
|
_ref$retryLabel = _ref.retryLabel,
|
37
|
-
retryLabel = _ref$retryLabel ===
|
37
|
+
retryLabel = _ref$retryLabel === void 0 ? defaults.retryLabel : _ref$retryLabel,
|
38
38
|
_ref$showRetry = _ref.showRetry,
|
39
|
-
showRetry = _ref$showRetry ===
|
39
|
+
showRetry = _ref$showRetry === void 0 ? defaults.showRetry : _ref$showRetry,
|
40
40
|
title = _ref.title,
|
41
41
|
rest = _objectWithoutProperties(_ref, _excluded);
|
42
42
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
@@ -33,7 +33,7 @@ var StatusIndicatorStep = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
33
33
|
description = _ref.description,
|
34
34
|
errorMessage = _ref.errorMessage,
|
35
35
|
_ref$status = _ref.status,
|
36
|
-
status = _ref$status ===
|
36
|
+
status = _ref$status === void 0 ? defaults.status : _ref$status,
|
37
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
38
38
|
return /*#__PURE__*/React__default.createElement("li", _extends({}, rest, {
|
39
39
|
className: cx(blockClass, className, "".concat(blockClass, "--").concat(status)),
|
@@ -33,13 +33,13 @@ var defaults = {
|
|
33
33
|
var StringFormatter = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
34
34
|
var className = _ref.className,
|
35
35
|
_ref$lines = _ref.lines,
|
36
|
-
lines = _ref$lines ===
|
36
|
+
lines = _ref$lines === void 0 ? defaults.lines : _ref$lines,
|
37
37
|
_ref$tooltipDirection = _ref.tooltipDirection,
|
38
|
-
tooltipDirection = _ref$tooltipDirection ===
|
38
|
+
tooltipDirection = _ref$tooltipDirection === void 0 ? defaults.tooltipDirection : _ref$tooltipDirection,
|
39
39
|
_ref$truncate = _ref.truncate,
|
40
|
-
truncate = _ref$truncate ===
|
40
|
+
truncate = _ref$truncate === void 0 ? defaults.truncate : _ref$truncate,
|
41
41
|
_ref$width = _ref.width,
|
42
|
-
width = _ref$width ===
|
42
|
+
width = _ref$width === void 0 ? defaults.width : _ref$width,
|
43
43
|
value = _ref.value,
|
44
44
|
rest = _objectWithoutProperties(_ref, _excluded);
|
45
45
|
var contentRef = useRef(null);
|
@@ -16,7 +16,7 @@ import cx from 'classnames';
|
|
16
16
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
17
17
|
import { isRequiredIf } from '../../global/js/utils/props-helper.js';
|
18
18
|
import { pkg } from '../../settings.js';
|
19
|
-
import { useOverflowItems } from '../../global/js/hooks/useOverflowItems.js';
|
19
|
+
import { useOverflowItems } from '../../global/js/hooks/useOverflowItems/useOverflowItems.js';
|
20
20
|
|
21
21
|
var _excluded = ["align", "allTagsModalAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTarget", "allTagsModalTitle", "autoAlign", "className", "items", "maxVisible", "overflowAlign", "overflowClassName", "overflowType", "onOverflowTagChange", "showAllTagsLabel", "tagComponent"],
|
22
22
|
_excluded2 = ["className"],
|
@@ -26,7 +26,7 @@ var componentName = 'TagOverflow';
|
|
26
26
|
var allTagsModalSearchThreshold = 10;
|
27
27
|
var TagOverflow = /*#__PURE__*/forwardRef(function (props, ref) {
|
28
28
|
var _props$align = props.align,
|
29
|
-
align = _props$align ===
|
29
|
+
align = _props$align === void 0 ? 'start' : _props$align,
|
30
30
|
allTagsModalAriaLabel = props.allTagsModalAriaLabel,
|
31
31
|
allTagsModalSearchLabel = props.allTagsModalSearchLabel,
|
32
32
|
allTagsModalSearchPlaceholderText = props.allTagsModalSearchPlaceholderText,
|
@@ -37,10 +37,10 @@ var TagOverflow = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
37
37
|
items = props.items,
|
38
38
|
maxVisible = props.maxVisible,
|
39
39
|
_props$overflowAlign = props.overflowAlign,
|
40
|
-
overflowAlign = _props$overflowAlign ===
|
40
|
+
overflowAlign = _props$overflowAlign === void 0 ? 'bottom' : _props$overflowAlign,
|
41
41
|
overflowClassName = props.overflowClassName,
|
42
42
|
_props$overflowType = props.overflowType,
|
43
|
-
overflowType = _props$overflowType ===
|
43
|
+
overflowType = _props$overflowType === void 0 ? 'default' : _props$overflowType,
|
44
44
|
onOverflowTagChange = props.onOverflowTagChange,
|
45
45
|
showAllTagsLabel = props.showAllTagsLabel,
|
46
46
|
tagComponent = props.tagComponent,
|
@@ -73,8 +73,8 @@ var TagOverflow = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
73
73
|
}));
|
74
74
|
};
|
75
75
|
var handleTagOnClose = useCallback(function (onClose, index) {
|
76
|
-
onClose === null || onClose ===
|
77
|
-
if (index <= (visibleItems === null || visibleItems ===
|
76
|
+
onClose === null || onClose === void 0 || onClose();
|
77
|
+
if (index <= (visibleItems === null || visibleItems === void 0 ? void 0 : visibleItems.length) - 1) {
|
78
78
|
setPopoverOpen(false);
|
79
79
|
}
|
80
80
|
}, [visibleItems]);
|
@@ -152,7 +152,7 @@ var tagTypes = Object.keys(TYPES);
|
|
152
152
|
*/
|
153
153
|
var string_required_if_more_than_10_tags = isRequiredIf(PropTypes.string, function (_ref) {
|
154
154
|
var items = _ref.items;
|
155
|
-
return (items === null || items ===
|
155
|
+
return (items === null || items === void 0 ? void 0 : items.length) > allTagsModalSearchThreshold;
|
156
156
|
});
|
157
157
|
|
158
158
|
// The types and DocGen commentary for the component props,
|
@@ -30,14 +30,14 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
30
30
|
className = _ref.className,
|
31
31
|
title = _ref.title,
|
32
32
|
_ref$modalAriaLabel = _ref.modalAriaLabel,
|
33
|
-
modalAriaLabel = _ref$modalAriaLabel ===
|
33
|
+
modalAriaLabel = _ref$modalAriaLabel === void 0 ? defaults.modalAriaLabel : _ref$modalAriaLabel,
|
34
34
|
onClose = _ref.onClose,
|
35
35
|
onTagClose = _ref.onTagClose,
|
36
36
|
open = _ref.open,
|
37
37
|
overflowType = _ref.overflowType,
|
38
38
|
portalTargetIn = _ref.portalTarget,
|
39
39
|
_ref$searchLabel = _ref.searchLabel,
|
40
|
-
searchLabel = _ref$searchLabel ===
|
40
|
+
searchLabel = _ref$searchLabel === void 0 ? defaults.searchLabel : _ref$searchLabel,
|
41
41
|
searchPlaceholder = _ref.searchPlaceholder,
|
42
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
43
43
|
var _useState = useState(''),
|
@@ -49,7 +49,7 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
49
49
|
if (open && search && allTags) {
|
50
50
|
return allTags.filter(function (tag) {
|
51
51
|
var _tag$label;
|
52
|
-
return (_tag$label = tag.label) === null || _tag$label ===
|
52
|
+
return (_tag$label = tag.label) === null || _tag$label === void 0 || (_tag$label = _tag$label.toLocaleLowerCase()) === null || _tag$label === void 0 ? void 0 : _tag$label.includes(search.toLocaleLowerCase());
|
53
53
|
});
|
54
54
|
}
|
55
55
|
return allTags || [];
|
@@ -90,7 +90,7 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
90
90
|
key: id,
|
91
91
|
text: label,
|
92
92
|
onClose: function onClose() {
|
93
|
-
return onTagClose === null || onTagClose ===
|
93
|
+
return onTagClose === null || onTagClose === void 0 ? void 0 : onTagClose({
|
94
94
|
label: label,
|
95
95
|
id: id
|
96
96
|
});
|
@@ -34,32 +34,32 @@ var TagOverflowPopover = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
34
34
|
var overflowTagContent = useRef(null);
|
35
35
|
useClickOutside(ref || localRef, function () {
|
36
36
|
if (popoverOpen) {
|
37
|
-
setPopoverOpen === null || setPopoverOpen ===
|
37
|
+
setPopoverOpen === null || setPopoverOpen === void 0 || setPopoverOpen(false);
|
38
38
|
}
|
39
39
|
});
|
40
40
|
var handleShowAllTagsClick = function handleShowAllTagsClick(evt) {
|
41
41
|
evt.stopPropagation();
|
42
42
|
evt.preventDefault();
|
43
|
-
setPopoverOpen === null || setPopoverOpen ===
|
44
|
-
onShowAllClick === null || onShowAllClick ===
|
43
|
+
setPopoverOpen === null || setPopoverOpen === void 0 || setPopoverOpen(false);
|
44
|
+
onShowAllClick === null || onShowAllClick === void 0 || onShowAllClick();
|
45
45
|
};
|
46
46
|
var handleEscKeyPress = function handleEscKeyPress(evt) {
|
47
47
|
var key = evt.key;
|
48
48
|
if (key === 'Escape') {
|
49
|
-
setPopoverOpen === null || setPopoverOpen ===
|
49
|
+
setPopoverOpen === null || setPopoverOpen === void 0 || setPopoverOpen(false);
|
50
50
|
}
|
51
51
|
};
|
52
52
|
var getOverflowPopoverItems = function getOverflowPopoverItems() {
|
53
|
-
var thresh = allTagsModalSearchThreshold !== null && allTagsModalSearchThreshold !==
|
54
|
-
return overflowTags === null || overflowTags ===
|
55
|
-
return (overflowTags === null || overflowTags ===
|
53
|
+
var thresh = allTagsModalSearchThreshold !== null && allTagsModalSearchThreshold !== void 0 ? allTagsModalSearchThreshold : 0;
|
54
|
+
return overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.filter(function (_, index) {
|
55
|
+
return (overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length) > thresh ? index < thresh : index <= thresh;
|
56
56
|
});
|
57
57
|
};
|
58
58
|
var visibleItems = getOverflowPopoverItems();
|
59
|
-
var hasItems = (visibleItems === null || visibleItems ===
|
59
|
+
var hasItems = (visibleItems === null || visibleItems === void 0 ? void 0 : visibleItems.length) > 0;
|
60
60
|
return /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
61
|
-
"aria-hidden": (overflowTags === null || overflowTags ===
|
62
|
-
className: cx(blockClass, _defineProperty({}, "".concat(blockClass, "--hidden"), (overflowTags === null || overflowTags ===
|
61
|
+
"aria-hidden": (overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length) === 0,
|
62
|
+
className: cx(blockClass, _defineProperty({}, "".concat(blockClass, "--hidden"), (overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length) === 0)),
|
63
63
|
ref: ref || localRef
|
64
64
|
}), /*#__PURE__*/React__default.createElement(Popover, {
|
65
65
|
align: overflowAlign,
|
@@ -71,7 +71,7 @@ var TagOverflowPopover = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
71
71
|
open: popoverOpen || false
|
72
72
|
}, /*#__PURE__*/React__default.createElement(OperationalTag, {
|
73
73
|
onClick: function onClick() {
|
74
|
-
return setPopoverOpen === null || setPopoverOpen ===
|
74
|
+
return setPopoverOpen === null || setPopoverOpen === void 0 ? void 0 : setPopoverOpen(!popoverOpen);
|
75
75
|
},
|
76
76
|
className: cx("".concat(blockClass, "__trigger")),
|
77
77
|
text: "+".concat(overflowTags.length)
|
@@ -93,7 +93,7 @@ var TagOverflowPopover = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
93
93
|
if (isFilterable) {
|
94
94
|
tag = /*#__PURE__*/React__default.createElement(DismissibleTag, _extends({}, other, {
|
95
95
|
onClose: function onClose() {
|
96
|
-
return _onClose === null || _onClose ===
|
96
|
+
return _onClose === null || _onClose === void 0 ? void 0 : _onClose();
|
97
97
|
},
|
98
98
|
type: typeValue,
|
99
99
|
text: label
|
@@ -107,7 +107,7 @@ var TagOverflowPopover = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
107
107
|
className: cx("".concat(blockClass, "__tag-item"), _defineProperty(_defineProperty({}, "".concat(blockClass, "__tag-item--default"), overflowType === 'default'), "".concat(blockClass, "__tag-item--tag"), overflowType === 'tag')),
|
108
108
|
key: id
|
109
109
|
}, overflowType === 'tag' ? tag : label);
|
110
|
-
})), ((_overflowTags$length = overflowTags === null || overflowTags ===
|
110
|
+
})), ((_overflowTags$length = overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length) !== null && _overflowTags$length !== void 0 ? _overflowTags$length : 0) > (allTagsModalSearchThreshold !== null && allTagsModalSearchThreshold !== void 0 ? allTagsModalSearchThreshold : 0) && /*#__PURE__*/React__default.createElement(Link, {
|
111
111
|
className: "".concat(blockClass, "__show-all-tags-link"),
|
112
112
|
href: "",
|
113
113
|
onClick: handleShowAllTagsClick,
|