@carbon/ibm-products 2.43.2-canary.257 → 2.43.2-canary.260
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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +5 -0
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/Coachmark/utils/enums.js +1 -0
- package/es/components/ScrollGradient/ScrollGradient.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/global/js/utils/devtools.js +1 -2
- package/lib/_virtual/_commonjsHelpers.js +0 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +2 -4
- package/lib/_virtual/index.js +0 -2
- package/lib/components/APIKeyModal/APIKeyDownloader.js +8 -14
- package/lib/components/APIKeyModal/APIKeyModal.js +70 -77
- package/lib/components/AboutModal/AboutModal.js +29 -36
- package/lib/components/ActionBar/ActionBar.js +26 -33
- package/lib/components/ActionBar/ActionBarItem.js +9 -16
- package/lib/components/ActionBar/ActionBarOverflowItems.js +23 -25
- package/lib/components/ActionSet/ActionSet.js +17 -24
- package/lib/components/AddSelect/AddSelect.js +62 -68
- package/lib/components/AddSelect/AddSelectBody.js +82 -89
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +6 -13
- package/lib/components/AddSelect/AddSelectColumn.js +29 -35
- package/lib/components/AddSelect/AddSelectFilter.js +30 -37
- package/lib/components/AddSelect/AddSelectFormControl.js +15 -21
- package/lib/components/AddSelect/AddSelectList.js +9 -16
- package/lib/components/AddSelect/AddSelectMetaPanel.js +16 -22
- package/lib/components/AddSelect/AddSelectRow.js +32 -39
- package/lib/components/AddSelect/AddSelectSidebar.js +29 -35
- package/lib/components/AddSelect/AddSelectSort.js +10 -16
- package/lib/components/AddSelect/add-select-utils.js +0 -2
- package/lib/components/AddSelect/hooks/useFocus.js +1 -1
- package/lib/components/AddSelect/hooks/useItemSort.js +0 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -1
- package/lib/components/AddSelect/hooks/usePath.js +1 -1
- package/lib/components/BigNumbers/BigNumbers.js +39 -46
- package/lib/components/BigNumbers/constants.js +0 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +35 -42
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +22 -29
- package/lib/components/Card/Card.js +73 -80
- package/lib/components/Card/CardFooter.js +28 -35
- package/lib/components/Card/CardHeader.js +37 -44
- package/lib/components/Carousel/Carousel.js +21 -28
- package/lib/components/Carousel/CarouselItem.js +5 -12
- package/lib/components/Cascade/Cascade.js +15 -22
- package/lib/components/Checklist/Checklist.js +50 -57
- package/lib/components/Checklist/Checklist.types.js +0 -2
- package/lib/components/Checklist/ChecklistChart.js +7 -15
- package/lib/components/Checklist/ChecklistIcon.js +7 -14
- package/lib/components/Coachmark/Coachmark.js +24 -31
- package/lib/components/Coachmark/CoachmarkDragbar.js +12 -19
- package/lib/components/Coachmark/CoachmarkHeader.js +9 -16
- package/lib/components/Coachmark/CoachmarkOverlay.js +14 -21
- package/lib/components/Coachmark/CoachmarkTagline.js +12 -19
- package/lib/components/Coachmark/utils/constants.js +0 -2
- package/lib/components/Coachmark/utils/context.js +0 -2
- package/lib/components/Coachmark/utils/enums.js +1 -2
- package/lib/components/Coachmark/utils/hooks.js +0 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +10 -17
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -13
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -20
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +11 -18
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +25 -32
- package/lib/components/CoachmarkStack/CoachmarkStack.js +23 -30
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +29 -36
- package/lib/components/ComboButton/ComboButton.js +11 -18
- package/lib/components/ComboButton/ComboButtonItem/index.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +34 -39
- package/lib/components/ConditionBuilder/ConditionBuilder.js +49 -56
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +18 -23
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +15 -20
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +20 -27
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +8 -12
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +4 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +38 -42
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +25 -31
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +0 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +9 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +5 -11
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +13 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +6 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +9 -15
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +27 -32
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +25 -30
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +0 -2
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +0 -2
- package/lib/components/ConditionBuilder/utils/useTranslations.js +0 -2
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateFullPage/CreateFullPage.js +44 -51
- package/lib/components/CreateFullPage/CreateFullPageStep.js +22 -29
- package/lib/components/CreateInfluencer/CreateInfluencer.js +15 -22
- package/lib/components/CreateModal/CreateModal.js +22 -29
- package/lib/components/CreateSidePanel/CreateSidePanel.js +24 -31
- package/lib/components/CreateTearsheet/CreateTearsheet.js +26 -33
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -10
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +31 -38
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +24 -31
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +37 -44
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +54 -61
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +37 -44
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +0 -2
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -4
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +0 -2
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +0 -2
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
- package/lib/components/Datagrid/Datagrid/Datagrid.js +9 -16
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +43 -50
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -8
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -11
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -6
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -11
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +18 -23
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -19
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +17 -22
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +10 -11
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +25 -31
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +18 -22
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -13
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -7
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +34 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +42 -47
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -11
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +11 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +18 -25
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +32 -39
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +12 -17
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +11 -16
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +0 -2
- package/lib/components/Datagrid/common-column-ids.js +0 -2
- package/lib/components/Datagrid/useActionsColumn.js +12 -17
- package/lib/components/Datagrid/useColumnCenterAlign.js +4 -9
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -9
- package/lib/components/Datagrid/useCustomizeColumns.js +6 -7
- package/lib/components/Datagrid/useDatagrid.js +4 -8
- package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -10
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -1
- package/lib/components/Datagrid/useEditableCell.js +2 -2
- package/lib/components/Datagrid/useExpandedRow.js +3 -3
- package/lib/components/Datagrid/useFiltering.js +5 -5
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -6
- package/lib/components/Datagrid/useFocusRowExpander.js +0 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +4 -8
- package/lib/components/Datagrid/useInitialColumnSort.js +0 -2
- package/lib/components/Datagrid/useInlineEdit.js +7 -12
- package/lib/components/Datagrid/useNestedRowExpander.js +5 -10
- package/lib/components/Datagrid/useNestedRows.js +3 -7
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useParentDimensions.js +1 -1
- package/lib/components/Datagrid/useResizeTable.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +5 -10
- package/lib/components/Datagrid/useRowIsMouseOver.js +2 -6
- package/lib/components/Datagrid/useRowRenderer.js +2 -2
- package/lib/components/Datagrid/useRowSize.js +2 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -8
- package/lib/components/Datagrid/useSelectRows.js +6 -11
- package/lib/components/Datagrid/useSkeletonRows.js +1 -1
- package/lib/components/Datagrid/useSortableColumns.js +8 -13
- package/lib/components/Datagrid/useStickyColumn.js +4 -9
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +0 -2
- package/lib/components/Decorator/Decorator.js +16 -22
- package/lib/components/DecoratorBase/DecoratorBase.js +41 -48
- package/lib/components/DecoratorBase/DecoratorIcon.js +6 -13
- package/lib/components/DecoratorBase/utils.js +0 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +21 -27
- package/lib/components/DecoratorLink/DecoratorLink.js +19 -25
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +19 -25
- package/lib/components/DelimitedList/DelimitedList.js +7 -14
- package/lib/components/DescriptionList/DescriptionList.js +8 -15
- package/lib/components/DescriptionList/DescriptionListBody.js +5 -12
- package/lib/components/DescriptionList/DescriptionListCell.js +5 -12
- package/lib/components/DescriptionList/DescriptionListRow.js +5 -12
- package/lib/components/DescriptionList/constants.js +0 -2
- package/lib/components/EditFullPage/EditFullPage.js +5 -12
- package/lib/components/EditInPlace/EditInPlace.js +35 -42
- package/lib/components/EditSidePanel/EditSidePanel.js +26 -33
- package/lib/components/EditTearsheet/EditTearsheet.js +24 -31
- package/lib/components/EditTearsheet/EditTearsheetForm.js +16 -23
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +5 -12
- package/lib/components/EditUpdateCards/EditUpdateCards.js +32 -39
- package/lib/components/EmptyStates/EmptyState.js +22 -29
- package/lib/components/EmptyStates/EmptyStateContent.js +18 -25
- package/lib/components/EmptyStates/EmptyStateIllustration.js +3 -7
- package/lib/components/EmptyStates/EmptyStateV2.js +25 -32
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +19 -26
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +19 -26
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +53 -58
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +43 -48
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +114 -119
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +84 -89
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +81 -86
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +74 -79
- package/lib/components/ExportModal/ExportModal.js +45 -52
- package/lib/components/ExpressiveCard/ExpressiveCard.js +28 -34
- package/lib/components/FeatureFlags/index.js +3 -9
- package/lib/components/FilterPanel/FilterPanel.js +7 -14
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +10 -17
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +13 -20
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +9 -16
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +17 -24
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +11 -18
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +9 -16
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +9 -16
- package/lib/components/FilterSummary/FilterSummary.js +22 -28
- package/lib/components/FullPageError/FullPageError.js +21 -28
- package/lib/components/FullPageError/assets/Error403SVG.js +129 -135
- package/lib/components/FullPageError/assets/Error404SVG.js +114 -120
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +128 -134
- package/lib/components/GetStartedCard/GetStartedCard.js +16 -22
- package/lib/components/Guidebanner/Guidebanner.js +32 -39
- package/lib/components/Guidebanner/GuidebannerElement.js +10 -17
- package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -16
- package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -12
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +5 -12
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +5 -12
- package/lib/components/HTTPErrors/HTTPErrorContent.js +5 -11
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +5 -12
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +358 -364
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +309 -315
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +321 -327
- package/lib/components/ImportModal/ImportModal.js +48 -55
- package/lib/components/InlineTip/InlineTip.js +38 -45
- package/lib/components/InlineTip/InlineTipButton.js +5 -12
- package/lib/components/InlineTip/InlineTipLink.js +6 -13
- package/lib/components/InlineTip/utils.js +2 -4
- package/lib/components/InterstitialScreen/InterstitialScreen.js +73 -80
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +6 -13
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +8 -15
- package/lib/components/MultiAddSelect/MultiAddSelect.js +45 -51
- package/lib/components/Nav/Nav.js +14 -21
- package/lib/components/Nav/NavItem.js +19 -24
- package/lib/components/Nav/NavItemLink.js +4 -8
- package/lib/components/Nav/NavList.js +12 -17
- package/lib/components/NonLinearReading/NonLinearReading.js +12 -19
- package/lib/components/NotificationsPanel/NotificationsPanel.js +91 -98
- package/lib/components/NotificationsPanel/utils.js +0 -2
- package/lib/components/OptionsTile/OptionsTile.js +40 -47
- package/lib/components/PageHeader/PageHeader.js +105 -112
- package/lib/components/PageHeader/PageHeaderTitle.js +23 -30
- package/lib/components/PageHeader/PageHeaderUtils.js +2 -9
- package/lib/components/ProductiveCard/ProductiveCard.js +36 -42
- package/lib/components/RemoveModal/RemoveModal.js +27 -34
- package/lib/components/Saving/Saving.js +27 -34
- package/lib/components/ScrollGradient/ScrollGradient.js +17 -24
- package/lib/components/ScrollGradient/constants.js +0 -2
- package/lib/components/SearchBar/SearchBar.js +22 -29
- package/lib/components/SidePanel/SidePanel.js +66 -73
- package/lib/components/SidePanel/constants.js +0 -2
- package/lib/components/SidePanel/motion/variants.js +0 -2
- package/lib/components/SimpleHeader/SimpleHeader.js +18 -25
- package/lib/components/SingleAddSelect/SingleAddSelect.js +21 -27
- package/lib/components/StatusIcon/StatusIcon.js +52 -59
- package/lib/components/StatusIndicator/StatusIndicator.js +13 -20
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +14 -21
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +8 -17
- package/lib/components/StringFormatter/StringFormatter.js +12 -19
- package/lib/components/StringFormatter/utils/enums.js +0 -2
- package/lib/components/TagOverflow/TagOverflow.js +26 -33
- package/lib/components/TagOverflow/TagOverflowModal.js +17 -24
- package/lib/components/TagOverflow/TagOverflowPopover.js +22 -29
- package/lib/components/TagOverflow/constants.js +0 -2
- package/lib/components/TagSet/TagSet.js +34 -41
- package/lib/components/TagSet/TagSetModal.js +16 -23
- package/lib/components/TagSet/TagSetOverflow.js +25 -32
- package/lib/components/Tearsheet/Tearsheet.js +23 -29
- package/lib/components/Tearsheet/TearsheetNarrow.js +18 -24
- package/lib/components/Tearsheet/TearsheetShell.js +55 -62
- package/lib/components/Toolbar/Toolbar.js +3 -10
- package/lib/components/Toolbar/ToolbarButton.js +3 -10
- package/lib/components/Toolbar/ToolbarGroup.js +2 -9
- package/lib/components/TooltipTrigger/TooltipTrigger.js +4 -11
- package/lib/components/TruncatedList/TruncatedList.js +15 -22
- package/lib/components/UserAvatar/UserAvatar.js +18 -25
- package/lib/components/UserProfileImage/UserProfileImage.js +24 -31
- package/lib/components/WebTerminal/WebTerminal.js +26 -33
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -11
- package/lib/components/WebTerminal/hooks/index.js +2 -8
- package/lib/components/_Canary/Canary.js +7 -14
- package/lib/feature-flags.js +3 -4
- package/lib/global/js/hooks/useActiveElement.js +0 -2
- package/lib/global/js/hooks/useClickOutside.js +0 -2
- package/lib/global/js/hooks/useControllableState.js +2 -4
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -3
- package/lib/global/js/hooks/useCreateComponentStepChange.js +0 -2
- package/lib/global/js/hooks/useFocus.js +1 -3
- package/lib/global/js/hooks/useIsomorphicEffect.js +0 -2
- package/lib/global/js/hooks/usePortalTarget.js +0 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -1
- package/lib/global/js/hooks/usePrefix.js +1 -3
- package/lib/global/js/hooks/usePreviousValue.js +0 -2
- package/lib/global/js/hooks/useResetCreateComponent.js +0 -2
- package/lib/global/js/hooks/useResizeObserver.js +0 -2
- package/lib/global/js/hooks/useRetrieveFormTitles.js +0 -2
- package/lib/global/js/hooks/useRetrieveStepData.js +0 -2
- package/lib/global/js/hooks/useValidCreateStepCount.js +0 -2
- package/lib/global/js/hooks/useWindowResize.js +1 -3
- package/lib/global/js/hooks/useWindowScroll.js +1 -3
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/Wrap.js +9 -15
- package/lib/global/js/utils/deepCloneObject.js +1 -3
- package/lib/global/js/utils/devtools.js +0 -2
- package/lib/global/js/utils/getBezierValues.js +0 -2
- package/lib/global/js/utils/getFocusableElements.js +0 -2
- package/lib/global/js/utils/getNodeTextContent.js +1 -3
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +0 -2
- package/lib/global/js/utils/getScrollbarWidth.js +0 -2
- package/lib/global/js/utils/keyboardNavigation.js +0 -2
- package/lib/global/js/utils/lastIndexInArray.js +0 -2
- package/lib/global/js/utils/motionConstants.js +0 -2
- package/lib/global/js/utils/pconsole.js +1 -1
- package/lib/global/js/utils/props-helper.js +10 -12
- package/lib/global/js/utils/rangeWithCallback.js +0 -2
- package/lib/global/js/utils/scrollableAncestor.js +1 -3
- package/lib/global/js/utils/uuidv4.js +1 -1
- package/lib/global/js/utils/wait.js +1 -1
- package/lib/global/js/utils/wrapFocus.js +1 -1
- package/lib/index.js +19 -21
- package/lib/node_modules/@carbon/colors/es/index.js +0 -2
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +3 -5
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +14 -18
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +525 -531
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +500 -506
- package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +1 -3
- package/lib/node_modules/object-assign/index.js +0 -2
- package/lib/node_modules/prop-types/checkPropTypes.js +2 -4
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +4 -10
- package/lib/node_modules/prop-types/index.js +2 -6
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
- package/lib/node_modules/prop-types/lib/has.js +0 -2
- package/lib/settings.js +9 -15
- package/package.json +3 -3
- package/scss/components/SidePanel/_side-panel.scss +1 -0
@@ -7,8 +7,6 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
10
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
11
|
var react = require('@carbon/react');
|
14
12
|
var icons = require('@carbon/react/icons');
|
@@ -25,11 +23,6 @@ var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
|
25
23
|
var useClickOutside = require('../../global/js/hooks/useClickOutside.js');
|
26
24
|
var NotificationsEmptyState = require('../EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js');
|
27
25
|
|
28
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
29
|
-
|
30
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
31
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
32
|
-
|
33
26
|
var _Close;
|
34
27
|
var _excluded = ["className", "data", "daysAgoText", "dismissAllLabel", "dismissSingleNotificationIconDescription", "doNotDisturbDefaultToggled", "doNotDisturbLabel", "emptyStateLabel", "hourAgoText", "hoursAgoText", "minuteAgoText", "minutesAgoText", "monthAgoText", "monthsAgoText", "nowText", "onClickOutside", "onDismissAllNotifications", "onDismissSingleNotification", "onDoNotDisturbChange", "onSettingsClick", "onViewAllClick", "open", "previousLabel", "readLessLabel", "readMoreLabel", "secondsAgoText", "settingsIconDescription", "title", "todayLabel", "viewAllLabel", "yearAgoText", "yearsAgoText", "yesterdayAtText", "yesterdayLabel", "selectorsFloatingMenus", "triggerButtonRef"];
|
35
28
|
|
@@ -90,7 +83,7 @@ var defaults = {
|
|
90
83
|
},
|
91
84
|
yesterdayLabel: 'Yesterday'
|
92
85
|
};
|
93
|
-
exports.NotificationsPanel = /*#__PURE__*/
|
86
|
+
exports.NotificationsPanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
94
87
|
var className = _ref.className,
|
95
88
|
data = _ref.data,
|
96
89
|
_ref$daysAgoText = _ref.daysAgoText,
|
@@ -169,7 +162,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
169
162
|
var previousState = usePreviousValue.usePreviousValue({
|
170
163
|
open: open
|
171
164
|
});
|
172
|
-
var reducedMotion = usePrefersReducedMotion
|
165
|
+
var reducedMotion = usePrefersReducedMotion.default();
|
173
166
|
var carbonPrefix = react.usePrefix();
|
174
167
|
React.useEffect(function () {
|
175
168
|
// Set the notifications passed to the state within this component
|
@@ -220,7 +213,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
220
213
|
var bodyNode = notificationPanelInnerRef.current;
|
221
214
|
var startSentinelNode = startSentinel.current;
|
222
215
|
var endSentinelNode = endSentinel.current;
|
223
|
-
wrapFocus
|
216
|
+
wrapFocus.default({
|
224
217
|
bodyNode: bodyNode,
|
225
218
|
startTrapNode: startSentinelNode,
|
226
219
|
endTrapNode: endSentinelNode,
|
@@ -278,15 +271,15 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
278
271
|
})[0];
|
279
272
|
var trimLength = 88;
|
280
273
|
var description = notification === null || notification === void 0 ? void 0 : notification['description'];
|
281
|
-
var descriptionClassName =
|
282
|
-
var showMoreButtonClassName =
|
283
|
-
return /*#__PURE__*/
|
274
|
+
var descriptionClassName = cx(["".concat(blockClass, "__notification-description"), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-long-description"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-short-description"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
|
275
|
+
var showMoreButtonClassName = cx([_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-read-less-button"), notification === null || notification === void 0 ? void 0 : notification['showAll']), "".concat(blockClass, "__notification-read-more-button"), !(notification !== null && notification !== void 0 && notification['showAll']))]);
|
276
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
284
277
|
className: descriptionClassName
|
285
|
-
}, description), description.length > trimLength && /*#__PURE__*/
|
278
|
+
}, description), description.length > trimLength && /*#__PURE__*/React.createElement(react.Button, {
|
286
279
|
kind: "ghost",
|
287
280
|
size: "sm",
|
288
281
|
renderIcon: function renderIcon(props) {
|
289
|
-
return /*#__PURE__*/
|
282
|
+
return /*#__PURE__*/React.createElement(icons.ChevronDown, _rollupPluginBabelHelpers.extends({
|
290
283
|
size: 16
|
291
284
|
}, props));
|
292
285
|
},
|
@@ -308,9 +301,9 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
308
301
|
}, notification !== null && notification !== void 0 && notification['showAll'] ? readLessLabel : readMoreLabel));
|
309
302
|
};
|
310
303
|
var renderNotification = function renderNotification(group, notification, index) {
|
311
|
-
var notificationClassName =
|
312
|
-
var notificationHeaderClassName =
|
313
|
-
return /*#__PURE__*/
|
304
|
+
var notificationClassName = cx(["".concat(blockClass, "__notification"), "".concat(blockClass, "__notification-").concat(group)]);
|
305
|
+
var notificationHeaderClassName = cx(["".concat(blockClass, "__notification-title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__notification-title-unread"), notification.unread)]);
|
306
|
+
return /*#__PURE__*/React.createElement("div", {
|
314
307
|
key: "".concat(notification.timestamp, "-").concat(notification.title, "-").concat(index),
|
315
308
|
className: notificationClassName,
|
316
309
|
role: "button",
|
@@ -324,21 +317,21 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
324
317
|
}
|
325
318
|
event.which === 13 && notification.onNotificationClick(notification);
|
326
319
|
}
|
327
|
-
}, notification.type === 'error' && /*#__PURE__*/
|
320
|
+
}, notification.type === 'error' && /*#__PURE__*/React.createElement(icons.ErrorFilled, {
|
328
321
|
size: 16,
|
329
|
-
className:
|
330
|
-
}), notification.type === 'success' && /*#__PURE__*/
|
322
|
+
className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-error")])
|
323
|
+
}), notification.type === 'success' && /*#__PURE__*/React.createElement(icons.CheckmarkFilled, {
|
331
324
|
size: 16,
|
332
|
-
className:
|
333
|
-
}), notification.type === 'warning' && /*#__PURE__*/
|
325
|
+
className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-success")])
|
326
|
+
}), notification.type === 'warning' && /*#__PURE__*/React.createElement(icons.WarningAltFilled, {
|
334
327
|
size: 16,
|
335
|
-
className:
|
336
|
-
}), notification.type === 'informational' && /*#__PURE__*/
|
328
|
+
className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-warning")])
|
329
|
+
}), notification.type === 'informational' && /*#__PURE__*/React.createElement(icons.InformationSquareFilled, {
|
337
330
|
size: 16,
|
338
|
-
className:
|
339
|
-
}), /*#__PURE__*/
|
331
|
+
className: cx(["".concat(blockClass, "__notification-status-icon"), "".concat(blockClass, "__notification-status-icon-informational")])
|
332
|
+
}), /*#__PURE__*/React.createElement("div", {
|
340
333
|
className: "".concat(blockClass, "__notification-content")
|
341
|
-
}, /*#__PURE__*/
|
334
|
+
}, /*#__PURE__*/React.createElement("p", {
|
342
335
|
className: "".concat(blockClass, "__notification-time-label")
|
343
336
|
}, utils.timeAgo({
|
344
337
|
previousTime: notification.timestamp,
|
@@ -354,12 +347,12 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
354
347
|
yearsAgoText: yearsAgoText,
|
355
348
|
yearAgoText: yearAgoText,
|
356
349
|
nowText: nowText
|
357
|
-
})), /*#__PURE__*/
|
350
|
+
})), /*#__PURE__*/React.createElement("h6", {
|
358
351
|
className: notificationHeaderClassName
|
359
|
-
}, notification.title), notification.description && notification.description.length && renderDescription(notification.id), notification.link && notification.link.text && notification.link.url && /*#__PURE__*/
|
352
|
+
}, notification.title), notification.description && notification.description.length && renderDescription(notification.id), notification.link && notification.link.text && notification.link.url && /*#__PURE__*/React.createElement(react.Link, _rollupPluginBabelHelpers.extends({
|
360
353
|
href: notification.link.url,
|
361
354
|
className: "".concat(blockClass, "__notifications-link")
|
362
|
-
}, propsHelper.prepareProps({}, notification.link, ['text', 'url'])), notification.link.text)), /*#__PURE__*/
|
355
|
+
}, propsHelper.prepareProps({}, notification.link, ['text', 'url'])), notification.link.text)), /*#__PURE__*/React.createElement(react.IconButton, {
|
363
356
|
align: "left",
|
364
357
|
kind: "ghost",
|
365
358
|
size: "sm",
|
@@ -368,7 +361,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
368
361
|
onClick: function onClick(event) {
|
369
362
|
return dismissSingleNotification(event, notification);
|
370
363
|
}
|
371
|
-
}, _Close || (_Close = /*#__PURE__*/
|
364
|
+
}, _Close || (_Close = /*#__PURE__*/React.createElement(icons.Close, {
|
372
365
|
size: 16
|
373
366
|
}))));
|
374
367
|
};
|
@@ -377,12 +370,12 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
377
370
|
event.stopPropagation();
|
378
371
|
onDismissSingleNotification(notification);
|
379
372
|
};
|
380
|
-
var mainSectionClassName =
|
381
|
-
return shouldRender ? /*#__PURE__*/
|
373
|
+
var mainSectionClassName = cx(["".concat(blockClass, "__main-section"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__main-section-empty"), allNotifications && !allNotifications.length)]);
|
374
|
+
return shouldRender ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
|
382
375
|
type: "button",
|
383
376
|
className: "".concat(carbonPrefix, "--visually-hidden"),
|
384
377
|
ref: startSentinel
|
385
|
-
}, "Focus sentinel start"), /*#__PURE__*/
|
378
|
+
}, "Focus sentinel start"), /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
|
386
379
|
role: "dialog",
|
387
380
|
"aria-label": "Notification Panel",
|
388
381
|
onBlur: handleBlur,
|
@@ -390,28 +383,28 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
390
383
|
onKeyDown: handleKeydown
|
391
384
|
}, rest, {
|
392
385
|
id: blockClass,
|
393
|
-
className:
|
386
|
+
className: cx(blockClass, className, "".concat(blockClass, "__container")),
|
394
387
|
style: {
|
395
388
|
animation: !reducedMotion ? "".concat(open ? 'fade-in 250ms' : 'fade-out forwards 250ms') : undefined
|
396
389
|
},
|
397
390
|
onAnimationEnd: onAnimationEnd,
|
398
391
|
ref: ref || notificationPanelRef
|
399
|
-
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/
|
392
|
+
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement("div", {
|
400
393
|
ref: notificationPanelInnerRef
|
401
|
-
}, /*#__PURE__*/
|
394
|
+
}, /*#__PURE__*/React.createElement("div", {
|
402
395
|
className: "".concat(blockClass, "__header-container")
|
403
|
-
}, /*#__PURE__*/
|
396
|
+
}, /*#__PURE__*/React.createElement("div", {
|
404
397
|
className: "".concat(blockClass, "__header-flex")
|
405
|
-
}, /*#__PURE__*/
|
398
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
406
399
|
className: "".concat(blockClass, "__header")
|
407
|
-
}, title), /*#__PURE__*/
|
400
|
+
}, title), /*#__PURE__*/React.createElement(react.Button, {
|
408
401
|
size: "sm",
|
409
402
|
kind: "ghost",
|
410
403
|
className: "".concat(blockClass, "__dismiss-button"),
|
411
404
|
onClick: function onClick() {
|
412
405
|
return onDismissAllNotifications();
|
413
406
|
}
|
414
|
-
}, dismissAllLabel)), onDoNotDisturbChange && /*#__PURE__*/
|
407
|
+
}, dismissAllLabel)), onDoNotDisturbChange && /*#__PURE__*/React.createElement(react.Toggle, {
|
415
408
|
size: "sm",
|
416
409
|
className: "".concat(blockClass, "__do-not-disturb-toggle"),
|
417
410
|
id: "".concat(blockClass, "__do-not-disturb-toggle-component"),
|
@@ -423,38 +416,38 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
423
416
|
defaultToggled: doNotDisturbDefaultToggled,
|
424
417
|
"aria-label": doNotDisturbLabel,
|
425
418
|
labelText: doNotDisturbLabel
|
426
|
-
})), /*#__PURE__*/
|
419
|
+
})), /*#__PURE__*/React.createElement("div", {
|
427
420
|
className: mainSectionClassName
|
428
|
-
}, withinLastDayNotifications && withinLastDayNotifications.length ? /*#__PURE__*/
|
421
|
+
}, withinLastDayNotifications && withinLastDayNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
|
429
422
|
className: "".concat(blockClass, "__time-section-label")
|
430
423
|
}, todayLabel), withinLastDayNotifications.map(function (notification, index) {
|
431
424
|
return renderNotification('today', notification, index);
|
432
|
-
})) : null, previousDayNotifications && previousDayNotifications.length ? /*#__PURE__*/
|
425
|
+
})) : null, previousDayNotifications && previousDayNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
|
433
426
|
className: "".concat(blockClass, "__time-section-label")
|
434
427
|
}, yesterdayLabel), previousDayNotifications.map(function (notification, index) {
|
435
428
|
return renderNotification('yesterday', notification, index);
|
436
|
-
})) : null, previousNotifications && previousNotifications.length ? /*#__PURE__*/
|
429
|
+
})) : null, previousNotifications && previousNotifications.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h6", {
|
437
430
|
className: "".concat(blockClass, "__time-section-label")
|
438
431
|
}, previousLabel), previousNotifications.map(function (notification, index) {
|
439
432
|
return renderNotification('previous', notification, index);
|
440
|
-
})) : null, !allNotifications.length && /*#__PURE__*/
|
433
|
+
})) : null, !allNotifications.length && /*#__PURE__*/React.createElement(NotificationsEmptyState.NotificationsEmptyState, {
|
441
434
|
illustrationTheme: "dark",
|
442
435
|
title: "",
|
443
436
|
subtitle: emptyStateLabel
|
444
|
-
})), onViewAllClick && onSettingsClick && allNotifications && allNotifications.length ? /*#__PURE__*/
|
437
|
+
})), onViewAllClick && onSettingsClick && allNotifications && allNotifications.length ? /*#__PURE__*/React.createElement("div", {
|
445
438
|
className: "".concat(blockClass, "__bottom-actions")
|
446
|
-
}, /*#__PURE__*/
|
439
|
+
}, /*#__PURE__*/React.createElement(react.Button, {
|
447
440
|
kind: "ghost",
|
448
441
|
className: "".concat(blockClass, "__view-all-button"),
|
449
442
|
onClick: function onClick() {
|
450
443
|
return onViewAllClick();
|
451
444
|
}
|
452
|
-
}, viewAllLabel(allNotifications.length)), /*#__PURE__*/
|
445
|
+
}, viewAllLabel(allNotifications.length)), /*#__PURE__*/React.createElement(react.Button, {
|
453
446
|
kind: "ghost",
|
454
447
|
size: "sm",
|
455
448
|
className: "".concat(blockClass, "__settings-button"),
|
456
449
|
renderIcon: function renderIcon(props) {
|
457
|
-
return /*#__PURE__*/
|
450
|
+
return /*#__PURE__*/React.createElement(icons.Settings, _rollupPluginBabelHelpers.extends({
|
458
451
|
size: 16
|
459
452
|
}, props));
|
460
453
|
},
|
@@ -462,7 +455,7 @@ exports.NotificationsPanel = /*#__PURE__*/React__default["default"].forwardRef(f
|
|
462
455
|
onClick: function onClick() {
|
463
456
|
return onSettingsClick();
|
464
457
|
}
|
465
|
-
})) : null)), /*#__PURE__*/
|
458
|
+
})) : null)), /*#__PURE__*/React.createElement("button", {
|
466
459
|
type: "button",
|
467
460
|
className: "".concat(carbonPrefix, "--visually-hidden"),
|
468
461
|
ref: endSentinel
|
@@ -483,158 +476,158 @@ exports.NotificationsPanel.propTypes = {
|
|
483
476
|
/**
|
484
477
|
* Provide an optional class to be applied to the containing node.
|
485
478
|
*/
|
486
|
-
className: index
|
479
|
+
className: index.default.string,
|
487
480
|
/**
|
488
481
|
* Array of data for Notifications component to render
|
489
482
|
*/
|
490
483
|
/**@ts-ignore*/
|
491
|
-
data: index
|
492
|
-
id: index
|
493
|
-
type: index
|
494
|
-
timestamp: index
|
495
|
-
title: index
|
496
|
-
description: index
|
497
|
-
link: index
|
498
|
-
url: index
|
499
|
-
text: index
|
484
|
+
data: index.default.arrayOf(index.default.shape({
|
485
|
+
id: index.default.oneOfType([index.default.string, index.default.number]),
|
486
|
+
type: index.default.oneOf(['error', 'warning', 'success', 'informational']),
|
487
|
+
timestamp: index.default.instanceOf(Date),
|
488
|
+
title: index.default.string,
|
489
|
+
description: index.default.string,
|
490
|
+
link: index.default.shape({
|
491
|
+
url: index.default.string,
|
492
|
+
text: index.default.string
|
500
493
|
}),
|
501
|
-
unread: index
|
502
|
-
onNotificationClick: index
|
494
|
+
unread: index.default.bool,
|
495
|
+
onNotificationClick: index.default.func
|
503
496
|
})).isRequired,
|
504
497
|
/**
|
505
498
|
* Sets the `days ago` label text
|
506
499
|
*/
|
507
|
-
daysAgoText: index
|
500
|
+
daysAgoText: index.default.func,
|
508
501
|
/**
|
509
502
|
* Label for Dismiss all button
|
510
503
|
*/
|
511
|
-
dismissAllLabel: index
|
504
|
+
dismissAllLabel: index.default.string,
|
512
505
|
/**
|
513
506
|
* Label for Dismiss single notification icon button
|
514
507
|
*/
|
515
|
-
dismissSingleNotificationIconDescription: index
|
508
|
+
dismissSingleNotificationIconDescription: index.default.string,
|
516
509
|
/**
|
517
510
|
* Optional: Determines if the `Do not disturb` toggle is on or off when the component is rendered
|
518
511
|
*/
|
519
|
-
doNotDisturbDefaultToggled: index
|
512
|
+
doNotDisturbDefaultToggled: index.default.bool,
|
520
513
|
/**
|
521
514
|
* Optional: Label for Do not disturb toggle
|
522
515
|
*/
|
523
|
-
doNotDisturbLabel: index
|
516
|
+
doNotDisturbLabel: index.default.string,
|
524
517
|
/**
|
525
518
|
* Sets the empty state label text when there are no notifications
|
526
519
|
*/
|
527
|
-
emptyStateLabel: index
|
520
|
+
emptyStateLabel: index.default.string,
|
528
521
|
/**
|
529
522
|
* Sets the `hour ago` label text
|
530
523
|
*/
|
531
|
-
hourAgoText: index
|
524
|
+
hourAgoText: index.default.func,
|
532
525
|
/**
|
533
526
|
* Sets the `hours ago` label text
|
534
527
|
*/
|
535
|
-
hoursAgoText: index
|
528
|
+
hoursAgoText: index.default.func,
|
536
529
|
/**
|
537
530
|
* Sets the `minute ago` label text
|
538
531
|
*/
|
539
|
-
minuteAgoText: index
|
532
|
+
minuteAgoText: index.default.func,
|
540
533
|
/**
|
541
534
|
* Sets the `minutes ago` label text
|
542
535
|
*/
|
543
|
-
minutesAgoText: index
|
536
|
+
minutesAgoText: index.default.func,
|
544
537
|
/**
|
545
538
|
* Sets the `month ago` label text
|
546
539
|
*/
|
547
|
-
monthAgoText: index
|
540
|
+
monthAgoText: index.default.func,
|
548
541
|
/**
|
549
542
|
* Sets the `months ago` label text
|
550
543
|
*/
|
551
|
-
monthsAgoText: index
|
544
|
+
monthsAgoText: index.default.func,
|
552
545
|
/**
|
553
546
|
* Sets the `now` label text
|
554
547
|
*/
|
555
|
-
nowText: index
|
548
|
+
nowText: index.default.string,
|
556
549
|
/**
|
557
550
|
* Sets the notifications panel open state
|
558
551
|
*/
|
559
|
-
onClickOutside: index
|
552
|
+
onClickOutside: index.default.func.isRequired,
|
560
553
|
/**
|
561
554
|
* Function that will dismiss all notifications
|
562
555
|
*/
|
563
|
-
onDismissAllNotifications: index
|
556
|
+
onDismissAllNotifications: index.default.func,
|
564
557
|
/**
|
565
558
|
* Function that will dismiss a single notification
|
566
559
|
*/
|
567
|
-
onDismissSingleNotification: index
|
560
|
+
onDismissSingleNotification: index.default.func,
|
568
561
|
/**
|
569
562
|
* Optional: function that returns the current selected value of the disable notification toggle
|
570
563
|
*/
|
571
|
-
onDoNotDisturbChange: index
|
564
|
+
onDoNotDisturbChange: index.default.func,
|
572
565
|
/**
|
573
566
|
* Event handler for the View all button
|
574
567
|
*/
|
575
|
-
onSettingsClick: index
|
568
|
+
onSettingsClick: index.default.func,
|
576
569
|
/**
|
577
570
|
* Event handler for the View all button
|
578
571
|
*/
|
579
|
-
onViewAllClick: index
|
572
|
+
onViewAllClick: index.default.func,
|
580
573
|
/**
|
581
574
|
* Determines whether the notifications panel should render or not
|
582
575
|
*/
|
583
|
-
open: index
|
576
|
+
open: index.default.bool.isRequired,
|
584
577
|
/**
|
585
578
|
* Sets the previous label text
|
586
579
|
*/
|
587
|
-
previousLabel: index
|
580
|
+
previousLabel: index.default.string,
|
588
581
|
/**
|
589
582
|
* Sets the `read less` label text
|
590
583
|
*/
|
591
|
-
readLessLabel: index
|
584
|
+
readLessLabel: index.default.string,
|
592
585
|
/**
|
593
586
|
* Sets the `read more` label text
|
594
587
|
*/
|
595
|
-
readMoreLabel: index
|
588
|
+
readMoreLabel: index.default.string,
|
596
589
|
/**
|
597
590
|
* Sets the `seconds ago` label text
|
598
591
|
*/
|
599
|
-
secondsAgoText: index
|
592
|
+
secondsAgoText: index.default.func,
|
600
593
|
/**
|
601
594
|
* Specify the CSS selectors that match the floating menus
|
602
595
|
*/
|
603
|
-
selectorsFloatingMenus: index
|
596
|
+
selectorsFloatingMenus: index.default.arrayOf(index.default.string.isRequired),
|
604
597
|
/**
|
605
598
|
* Sets the settings icon description text
|
606
599
|
*/
|
607
|
-
settingsIconDescription: index
|
600
|
+
settingsIconDescription: index.default.string,
|
608
601
|
/**
|
609
602
|
* Sets the title for the Notifications panel
|
610
603
|
*/
|
611
|
-
title: index
|
604
|
+
title: index.default.string,
|
612
605
|
/**
|
613
606
|
* Sets the today label text
|
614
607
|
*/
|
615
|
-
todayLabel: index
|
608
|
+
todayLabel: index.default.string,
|
616
609
|
/**
|
617
610
|
* Sets the today label text
|
618
611
|
*/
|
619
|
-
triggerButtonRef: index
|
612
|
+
triggerButtonRef: index.default.any,
|
620
613
|
/**
|
621
614
|
* Sets the View all button text
|
622
615
|
*/
|
623
|
-
viewAllLabel: index
|
616
|
+
viewAllLabel: index.default.func,
|
624
617
|
/**
|
625
618
|
* Sets the `year ago` label text
|
626
619
|
*/
|
627
|
-
yearAgoText: index
|
620
|
+
yearAgoText: index.default.func,
|
628
621
|
/**
|
629
622
|
* Sets the `years ago` label text
|
630
623
|
*/
|
631
|
-
yearsAgoText: index
|
624
|
+
yearsAgoText: index.default.func,
|
632
625
|
/**
|
633
626
|
* Sets the `Yesterday at` label text
|
634
627
|
*/
|
635
|
-
yesterdayAtText: index
|
628
|
+
yesterdayAtText: index.default.func,
|
636
629
|
/**
|
637
630
|
* Sets the yesterday label text
|
638
631
|
*/
|
639
|
-
yesterdayLabel: index
|
632
|
+
yesterdayLabel: index.default.string
|
640
633
|
};
|