@carbon/ibm-products 2.61.0 → 2.62.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +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
@@ -42,7 +42,7 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
|
|
42
42
|
cancelDescription = title.cancelDescription,
|
43
43
|
saveDescription = title.saveDescription,
|
44
44
|
_title$tooltipAlignme = title.tooltipAlignment,
|
45
|
-
tooltipAlignment = _title$tooltipAlignme ===
|
45
|
+
tooltipAlignment = _title$tooltipAlignme === void 0 ? 'bottom' : _title$tooltipAlignme,
|
46
46
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(title, _excluded);
|
47
47
|
var titleText;
|
48
48
|
var isEditable = !!onSave;
|
@@ -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 !== void 0 ? _title$breadcrumbCont : title.content) !== null && _ref !== void 0 ? _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 === void 0 ? '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), {}, {
|
@@ -76,10 +76,10 @@ 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 !== void 0 && previousState.open) {
|
80
80
|
setUserInput('');
|
81
81
|
}
|
82
|
-
}, [open, previousState === null || previousState ===
|
82
|
+
}, [open, previousState === null || previousState === void 0 ? void 0 : previousState.open]);
|
83
83
|
return renderPortalUse(/*#__PURE__*/React.createElement(react.ComposedModal, _rollupPluginBabelHelpers.extends({}, rest, {
|
84
84
|
className: cx(blockClass, className),
|
85
85
|
size: "sm",
|
@@ -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 === void 0 ? void 0 : _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 === void 0 ? void 0 : _statusObj$status2.icon,
|
97
|
+
iconDescription: (_statusObj$status3 = statusObj[status]) === null || _statusObj$status3 === void 0 ? void 0 : _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 === void 0 ? void 0 : _statusObj$status4.text)));
|
101
101
|
});
|
102
102
|
exports.Saving = settings.pkg.checkComponentEnabled(exports.Saving, componentName);
|
103
103
|
exports.Saving.propTypes = {
|
@@ -35,14 +35,14 @@ exports.ScrollGradient = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
35
35
|
var children = _ref.children,
|
36
36
|
className = _ref.className,
|
37
37
|
_ref$color = _ref.color,
|
38
|
-
color = _ref$color ===
|
38
|
+
color = _ref$color === void 0 ? defaults.color : _ref$color,
|
39
39
|
_ref$onScroll = _ref.onScroll,
|
40
|
-
onScroll = _ref$onScroll ===
|
40
|
+
onScroll = _ref$onScroll === void 0 ? defaults.onScroll : _ref$onScroll,
|
41
41
|
scrollElementClassName = _ref.scrollElementClassName,
|
42
42
|
_ref$getScrollElement = _ref.getScrollElementRef,
|
43
|
-
getScrollElementRef = _ref$getScrollElement ===
|
43
|
+
getScrollElementRef = _ref$getScrollElement === void 0 ? defaults.getScrollElementRef : _ref$getScrollElement,
|
44
44
|
_ref$hideStartGradien = _ref.hideStartGradient,
|
45
|
-
hideStartGradient = _ref$hideStartGradien ===
|
45
|
+
hideStartGradient = _ref$hideStartGradien === void 0 ? defaults.hideStartGradient : _ref$hideStartGradien,
|
46
46
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
47
47
|
var intersectionStartRef = React.useRef();
|
48
48
|
var intersectionEndRef = React.useRef();
|
@@ -86,11 +86,11 @@ exports.ScrollGradient = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
86
86
|
if (entry.isIntersecting) {
|
87
87
|
gradientRef.current.style.opacity = 0;
|
88
88
|
gradientRef.current.style.display = 'none';
|
89
|
-
gradientRef === null || gradientRef ===
|
89
|
+
gradientRef === null || gradientRef === void 0 || gradientRef.current.setAttribute('aria-hidden', false);
|
90
90
|
} else {
|
91
91
|
gradientRef.current.style.opacity = 1;
|
92
92
|
gradientRef.current.style.display = 'block';
|
93
|
-
gradientRef === null || gradientRef ===
|
93
|
+
gradientRef === null || gradientRef === void 0 || gradientRef.current.setAttribute('aria-hidden', true);
|
94
94
|
}
|
95
95
|
}
|
96
96
|
};
|
@@ -33,19 +33,19 @@ exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
33
33
|
var className = _ref.className,
|
34
34
|
clearButtonLabelText = _ref.clearButtonLabelText,
|
35
35
|
_ref$hideScopesLabel = _ref.hideScopesLabel,
|
36
|
-
hideScopesLabel = _ref$hideScopesLabel ===
|
36
|
+
hideScopesLabel = _ref$hideScopesLabel === void 0 ? defaults.hideScopesLabel : _ref$hideScopesLabel,
|
37
37
|
labelText = _ref.labelText,
|
38
38
|
_ref$onChange = _ref.onChange,
|
39
|
-
onChange = _ref$onChange ===
|
39
|
+
onChange = _ref$onChange === void 0 ? defaults.onChange : _ref$onChange,
|
40
40
|
_ref$onSubmit = _ref.onSubmit,
|
41
|
-
onSubmit = _ref$onSubmit ===
|
41
|
+
onSubmit = _ref$onSubmit === void 0 ? defaults.onSubmit : _ref$onSubmit,
|
42
42
|
placeholderText = _ref.placeholderText,
|
43
43
|
_ref$scopes = _ref.scopes,
|
44
|
-
scopes = _ref$scopes ===
|
44
|
+
scopes = _ref$scopes === void 0 ? [] : _ref$scopes,
|
45
45
|
scopesTypeLabel = _ref.scopesTypeLabel,
|
46
46
|
scopeToString = _ref.scopeToString,
|
47
47
|
_ref$selectedScopes = _ref.selectedScopes,
|
48
|
-
selectedScopes = _ref$selectedScopes ===
|
48
|
+
selectedScopes = _ref$selectedScopes === void 0 ? [] : _ref$selectedScopes,
|
49
49
|
sortItems = _ref.sortItems,
|
50
50
|
submitLabel = _ref.submitLabel,
|
51
51
|
translateWithId = _ref.translateWithId,
|
@@ -126,7 +126,7 @@ exports.SearchBar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
126
126
|
}, devtools.getDevtoolsProps(componentName), {
|
127
127
|
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--hide-scopes-label"), hideScopesLabel)),
|
128
128
|
onSubmit: handleSubmit
|
129
|
-
}), scopes !== null && scopes !==
|
129
|
+
}), scopes !== null && scopes !== void 0 && scopes.length ? /*#__PURE__*/React.createElement(react.MultiSelect, _rollupPluginBabelHelpers.extends({}, multiSelectProps, {
|
130
130
|
id: "".concat(blockClass, "__multi-select"),
|
131
131
|
name: "search-scopes",
|
132
132
|
className: "".concat(blockClass, "__scopes"),
|
@@ -48,32 +48,32 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48
48
|
actions = _ref.actions,
|
49
49
|
aiLabel = _ref.aiLabel,
|
50
50
|
_ref$animateTitle = _ref.animateTitle,
|
51
|
-
animateTitle = _ref$animateTitle ===
|
51
|
+
animateTitle = _ref$animateTitle === void 0 ? defaults.animateTitle : _ref$animateTitle,
|
52
52
|
children = _ref.children,
|
53
53
|
className = _ref.className,
|
54
54
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
55
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
55
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
56
56
|
condensedActions = _ref.condensedActions,
|
57
57
|
_ref$currentStep = _ref.currentStep,
|
58
|
-
currentStep = _ref$currentStep ===
|
58
|
+
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
59
59
|
decorator = _ref.decorator,
|
60
60
|
_ref$id = _ref.id,
|
61
|
-
id = _ref$id ===
|
61
|
+
id = _ref$id === void 0 ? blockClass : _ref$id,
|
62
62
|
includeOverlay = _ref.includeOverlay,
|
63
63
|
labelText = _ref.labelText,
|
64
64
|
_ref$navigationBackIc = _ref.navigationBackIconDescription,
|
65
|
-
navigationBackIconDescription = _ref$navigationBackIc ===
|
65
|
+
navigationBackIconDescription = _ref$navigationBackIc === void 0 ? defaults.navigationBackIconDescription : _ref$navigationBackIc,
|
66
66
|
onNavigationBack = _ref.onNavigationBack,
|
67
67
|
onRequestClose = _ref.onRequestClose,
|
68
68
|
onUnmount = _ref.onUnmount,
|
69
69
|
open = _ref.open,
|
70
70
|
_ref$placement = _ref.placement,
|
71
|
-
placement = _ref$placement ===
|
71
|
+
placement = _ref$placement === void 0 ? defaults.placement : _ref$placement,
|
72
72
|
preventCloseOnClickOutside = _ref.preventCloseOnClickOutside,
|
73
73
|
selectorPageContent = _ref.selectorPageContent,
|
74
74
|
selectorPrimaryFocus = _ref.selectorPrimaryFocus,
|
75
75
|
_ref$size = _ref.size,
|
76
|
-
size = _ref$size ===
|
76
|
+
size = _ref$size === void 0 ? defaults.size : _ref$size,
|
77
77
|
slideIn = _ref.slideIn,
|
78
78
|
slug = _ref.slug,
|
79
79
|
subtitle = _ref.subtitle,
|
@@ -113,7 +113,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
113
113
|
var panelRefValue = sidePanelRef.current;
|
114
114
|
var previousOpen = usePreviousValue.usePreviousValue(open);
|
115
115
|
var shouldReduceMotion = usePrefersReducedMotion.usePrefersReducedMotion();
|
116
|
-
var exitAnimationName = placement === 'right' ? 'side-panel-exit-right' : 'side-panel-exit-left';
|
116
|
+
var exitAnimationName = shouldReduceMotion ? 'side-panel-exit-reduced' : placement === 'right' ? 'side-panel-exit-right' : 'side-panel-exit-left';
|
117
117
|
var _usePresence = usePresence.usePresence(open, sidePanelRef, exitAnimationName),
|
118
118
|
shouldRender = _usePresence.shouldRender;
|
119
119
|
|
@@ -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 === void 0 || onRequestClose();
|
128
128
|
}
|
129
129
|
};
|
130
130
|
React.useEffect(function () {
|
131
|
-
if (open && !(titleRef !== null && titleRef !==
|
131
|
+
if (open && !(titleRef !== null && titleRef !== void 0 && 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 !== void 0 && 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 === void 0 ? void 0 : subtitleRef.current;
|
141
|
+
var height = subtitleEl === null || subtitleEl === void 0 ? void 0 : subtitleEl.clientHeight;
|
142
142
|
var calculatedMargin = height * progress;
|
143
|
-
subtitleEl === null || subtitleEl ===
|
143
|
+
subtitleEl === null || subtitleEl === void 0 || (_subtitleEl$style = subtitleEl.style) === null || _subtitleEl$style === void 0 || _subtitleEl$style.setProperty('margin-top', "".concat(-calculatedMargin, "px"));
|
144
144
|
}
|
145
|
-
if (labelTextRef !== null && labelTextRef !==
|
145
|
+
if (labelTextRef !== null && labelTextRef !== void 0 && labelTextRef.current) {
|
146
146
|
var _labelTextRef$current;
|
147
147
|
var _calculatedMargin = labelTextHeight * progress;
|
148
|
-
labelTextRef === null || labelTextRef ===
|
148
|
+
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"));
|
149
149
|
}
|
150
150
|
}, [labelTextHeight]);
|
151
151
|
React.useEffect(function () {
|
152
|
-
if (open && animateTitle && labelTextRef !== null && labelTextRef !==
|
152
|
+
if (open && animateTitle && labelTextRef !== null && labelTextRef !== void 0 && labelTextRef.current) {
|
153
153
|
var _labelTextRef$current2;
|
154
|
-
setLabelTextHeight(Number((labelTextRef === null || labelTextRef ===
|
154
|
+
setLabelTextHeight(Number((labelTextRef === null || labelTextRef === void 0 || (_labelTextRef$current2 = labelTextRef.current) === null || _labelTextRef$current2 === void 0 ? void 0 : _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 !== void 0 && innerContentRef.current) {
|
159
159
|
var _innerContentRef$curr;
|
160
|
-
var scrollTop = innerContentRef === null || innerContentRef ===
|
160
|
+
var scrollTop = innerContentRef === null || innerContentRef === void 0 || (_innerContentRef$curr = innerContentRef.current) === null || _innerContentRef$curr === void 0 ? void 0 : _innerContentRef$curr.scrollTop;
|
161
161
|
var animationProgress = Math.min(Number(scrollTop), scrollAnimationDistance) / scrollAnimationDistance;
|
162
|
-
panelRefValue === null || panelRefValue ===
|
162
|
+
panelRefValue === null || panelRefValue === void 0 || 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 === void 0 ? void 0 : 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 !== void 0 ? _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 === void 0 || (_launcherButtonRef$cu = launcherButtonRef.current) === null || _launcherButtonRef$cu === void 0 || _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 !== void 0 && 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 === void 0 || (_labelTextRef$current4 = labelTextRef.current) === null || _labelTextRef$current4 === void 0 ? void 0 : _labelTextRef$current4.offsetHeight) !== null && _labelTextRef$current3 !== void 0 ? _labelTextRef$current3 : 0;
|
206
|
+
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;
|
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 === void 0 || 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 === void 0 ? void 0 : _window.getComputedStyle(innerContentRef.current);
|
220
|
+
var innerPaddingHeight = innerComputed ? parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingTop) + parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : 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 === void 0 || 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 === void 0 ? void 0 : 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 !== void 0 && 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 === void 0 || 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 === void 0 || onUnmount();
|
302
302
|
}
|
303
303
|
}, [open, onUnmount, shouldReduceMotion, previousState]);
|
304
304
|
|
@@ -324,17 +324,17 @@ 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 === void 0 ? void 0 : 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 === void 0 ? void 0 : sidePanelRef.current, selectorPrimaryFocus);
|
330
|
+
if (primeFocusEl && ((_window2 = window) === null || _window2 === void 0 || (_window2 = _window2.getComputedStyle(primeFocusEl)) === null || _window2 === void 0 ? void 0 : _window2.display) !== 'none') {
|
331
331
|
setTimeout(function () {
|
332
|
-
return primeFocusEl === null || primeFocusEl ===
|
332
|
+
return primeFocusEl === null || primeFocusEl === void 0 ? void 0 : 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 === void 0 ? void 0 : firstElement.focus();
|
338
338
|
}, 0);
|
339
339
|
}
|
340
340
|
}
|
@@ -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 === void 0 ? void 0 : _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 === void 0 ? void 0 : _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 === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _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 === void 0 ? false : _ref4$hasIconOnly,
|
428
428
|
icon = _ref4.icon,
|
429
429
|
renderIcon = _ref4.renderIcon,
|
430
430
|
tooltipPosition = _ref4.tooltipPosition,
|
@@ -474,7 +474,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
474
474
|
onAnimationStart: onAnimationStart,
|
475
475
|
onKeyDown: handleKeyDown
|
476
476
|
}), renderHeader(), renderMain(), /*#__PURE__*/React.createElement(ActionSet.ActionSet, {
|
477
|
-
actions: actions !== null && actions !==
|
477
|
+
actions: actions !== null && actions !== void 0 ? actions : [],
|
478
478
|
className: primaryActionContainerClassNames,
|
479
479
|
size: size === 'xs' ? 'sm' : size
|
480
480
|
})), includeOverlay && /*#__PURE__*/React.createElement("div", {
|
@@ -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 === void 0 ? 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 !== void 0 && 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 === void 0 ? void 0 : 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 === void 0 ? void 0 : _props$breadcrumbs.length) > 0;
|
69
69
|
});
|
70
70
|
SimpleHeader.propTypes = {
|
71
71
|
/** Header breadcrumbs */
|
@@ -326,7 +326,7 @@ exports.StatusIcon = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
326
326
|
})
|
327
327
|
}
|
328
328
|
};
|
329
|
-
var IconComponent = (_icons$kind = icons$1[kind]) === null || _icons$kind ===
|
329
|
+
var IconComponent = (_icons$kind = icons$1[kind]) === null || _icons$kind === void 0 ? void 0 : _icons$kind[size];
|
330
330
|
var classNames = cx(className, blockClass, "".concat(blockClass, "--").concat(theme), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--").concat(theme, "-").concat(kind), kind));
|
331
331
|
return IconComponent && /*#__PURE__*/React.createElement(IconComponent, _rollupPluginBabelHelpers.extends({}, rest, {
|
332
332
|
className: classNames,
|
@@ -36,9 +36,9 @@ exports.StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
36
36
|
className = _ref.className,
|
37
37
|
onRetry = _ref.onRetry,
|
38
38
|
_ref$retryLabel = _ref.retryLabel,
|
39
|
-
retryLabel = _ref$retryLabel ===
|
39
|
+
retryLabel = _ref$retryLabel === void 0 ? defaults.retryLabel : _ref$retryLabel,
|
40
40
|
_ref$showRetry = _ref.showRetry,
|
41
|
-
showRetry = _ref$showRetry ===
|
41
|
+
showRetry = _ref$showRetry === void 0 ? defaults.showRetry : _ref$showRetry,
|
42
42
|
title = _ref.title,
|
43
43
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
44
44
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
@@ -35,7 +35,7 @@ exports.StatusIndicatorStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
35
35
|
description = _ref.description,
|
36
36
|
errorMessage = _ref.errorMessage,
|
37
37
|
_ref$status = _ref.status,
|
38
|
-
status = _ref$status ===
|
38
|
+
status = _ref$status === void 0 ? defaults.status : _ref$status,
|
39
39
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
40
40
|
return /*#__PURE__*/React.createElement("li", _rollupPluginBabelHelpers.extends({}, rest, {
|
41
41
|
className: cx(blockClass, className, "".concat(blockClass, "--").concat(status)),
|
@@ -35,13 +35,13 @@ var defaults = {
|
|
35
35
|
exports.StringFormatter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
36
36
|
var className = _ref.className,
|
37
37
|
_ref$lines = _ref.lines,
|
38
|
-
lines = _ref$lines ===
|
38
|
+
lines = _ref$lines === void 0 ? defaults.lines : _ref$lines,
|
39
39
|
_ref$tooltipDirection = _ref.tooltipDirection,
|
40
|
-
tooltipDirection = _ref$tooltipDirection ===
|
40
|
+
tooltipDirection = _ref$tooltipDirection === void 0 ? defaults.tooltipDirection : _ref$tooltipDirection,
|
41
41
|
_ref$truncate = _ref.truncate,
|
42
|
-
truncate = _ref$truncate ===
|
42
|
+
truncate = _ref$truncate === void 0 ? defaults.truncate : _ref$truncate,
|
43
43
|
_ref$width = _ref.width,
|
44
|
-
width = _ref$width ===
|
44
|
+
width = _ref$width === void 0 ? defaults.width : _ref$width,
|
45
45
|
value = _ref.value,
|
46
46
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
47
47
|
var contentRef = React.useRef(null);
|
@@ -18,7 +18,7 @@ var cx = require('classnames');
|
|
18
18
|
var devtools = require('../../global/js/utils/devtools.js');
|
19
19
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
20
20
|
var settings = require('../../settings.js');
|
21
|
-
var useOverflowItems = require('../../global/js/hooks/useOverflowItems.js');
|
21
|
+
var useOverflowItems = require('../../global/js/hooks/useOverflowItems/useOverflowItems.js');
|
22
22
|
|
23
23
|
var _excluded = ["align", "allTagsModalAriaLabel", "allTagsModalSearchLabel", "allTagsModalSearchPlaceholderText", "allTagsModalTarget", "allTagsModalTitle", "autoAlign", "className", "items", "maxVisible", "overflowAlign", "overflowClassName", "overflowType", "onOverflowTagChange", "showAllTagsLabel", "tagComponent"],
|
24
24
|
_excluded2 = ["className"],
|
@@ -28,7 +28,7 @@ var componentName = 'TagOverflow';
|
|
28
28
|
var allTagsModalSearchThreshold = 10;
|
29
29
|
exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
30
30
|
var _props$align = props.align,
|
31
|
-
align = _props$align ===
|
31
|
+
align = _props$align === void 0 ? 'start' : _props$align,
|
32
32
|
allTagsModalAriaLabel = props.allTagsModalAriaLabel,
|
33
33
|
allTagsModalSearchLabel = props.allTagsModalSearchLabel,
|
34
34
|
allTagsModalSearchPlaceholderText = props.allTagsModalSearchPlaceholderText,
|
@@ -39,10 +39,10 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
39
39
|
items = props.items,
|
40
40
|
maxVisible = props.maxVisible,
|
41
41
|
_props$overflowAlign = props.overflowAlign,
|
42
|
-
overflowAlign = _props$overflowAlign ===
|
42
|
+
overflowAlign = _props$overflowAlign === void 0 ? 'bottom' : _props$overflowAlign,
|
43
43
|
overflowClassName = props.overflowClassName,
|
44
44
|
_props$overflowType = props.overflowType,
|
45
|
-
overflowType = _props$overflowType ===
|
45
|
+
overflowType = _props$overflowType === void 0 ? 'default' : _props$overflowType,
|
46
46
|
onOverflowTagChange = props.onOverflowTagChange,
|
47
47
|
showAllTagsLabel = props.showAllTagsLabel,
|
48
48
|
tagComponent = props.tagComponent,
|
@@ -75,8 +75,8 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
75
75
|
}));
|
76
76
|
};
|
77
77
|
var handleTagOnClose = React.useCallback(function (onClose, index) {
|
78
|
-
onClose === null || onClose ===
|
79
|
-
if (index <= (visibleItems === null || visibleItems ===
|
78
|
+
onClose === null || onClose === void 0 || onClose();
|
79
|
+
if (index <= (visibleItems === null || visibleItems === void 0 ? void 0 : visibleItems.length) - 1) {
|
80
80
|
setPopoverOpen(false);
|
81
81
|
}
|
82
82
|
}, [visibleItems]);
|
@@ -154,7 +154,7 @@ var tagTypes = Object.keys(constants.TYPES);
|
|
154
154
|
*/
|
155
155
|
var string_required_if_more_than_10_tags = propsHelper.isRequiredIf(index.default.string, function (_ref) {
|
156
156
|
var items = _ref.items;
|
157
|
-
return (items === null || items ===
|
157
|
+
return (items === null || items === void 0 ? void 0 : items.length) > allTagsModalSearchThreshold;
|
158
158
|
});
|
159
159
|
|
160
160
|
// The types and DocGen commentary for the component props,
|
@@ -32,14 +32,14 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
32
32
|
className = _ref.className,
|
33
33
|
title = _ref.title,
|
34
34
|
_ref$modalAriaLabel = _ref.modalAriaLabel,
|
35
|
-
modalAriaLabel = _ref$modalAriaLabel ===
|
35
|
+
modalAriaLabel = _ref$modalAriaLabel === void 0 ? defaults.modalAriaLabel : _ref$modalAriaLabel,
|
36
36
|
onClose = _ref.onClose,
|
37
37
|
onTagClose = _ref.onTagClose,
|
38
38
|
open = _ref.open,
|
39
39
|
overflowType = _ref.overflowType,
|
40
40
|
portalTargetIn = _ref.portalTarget,
|
41
41
|
_ref$searchLabel = _ref.searchLabel,
|
42
|
-
searchLabel = _ref$searchLabel ===
|
42
|
+
searchLabel = _ref$searchLabel === void 0 ? defaults.searchLabel : _ref$searchLabel,
|
43
43
|
searchPlaceholder = _ref.searchPlaceholder,
|
44
44
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
45
45
|
var _useState = React.useState(''),
|
@@ -51,7 +51,7 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
51
51
|
if (open && search && allTags) {
|
52
52
|
return allTags.filter(function (tag) {
|
53
53
|
var _tag$label;
|
54
|
-
return (_tag$label = tag.label) === null || _tag$label ===
|
54
|
+
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());
|
55
55
|
});
|
56
56
|
}
|
57
57
|
return allTags || [];
|
@@ -92,7 +92,7 @@ var TagOverflowModal = function TagOverflowModal(_ref) {
|
|
92
92
|
key: id,
|
93
93
|
text: label,
|
94
94
|
onClose: function onClose() {
|
95
|
-
return onTagClose === null || onTagClose ===
|
95
|
+
return onTagClose === null || onTagClose === void 0 ? void 0 : onTagClose({
|
96
96
|
label: label,
|
97
97
|
id: id
|
98
98
|
});
|