@carbon/ibm-products 2.61.0 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +170 -22
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +170 -22
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +170 -22
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -10,7 +10,6 @@ import { IconButton, Button } from '@carbon/react';
|
|
10
10
|
import { Close, Idea, Crossroads } from '@carbon/react/icons';
|
11
11
|
import React__default, { useState, useRef, useMemo, useEffect } from 'react';
|
12
12
|
import PropTypes from '../../_virtual/index.js';
|
13
|
-
import { SteppedAnimatedMedia } from '../SteppedAnimatedMedia/SteppedAnimatedMedia.js';
|
14
13
|
import cx from 'classnames';
|
15
14
|
import { getComponentText as _getComponentText } from './utils.js';
|
16
15
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
@@ -18,7 +17,7 @@ import { pkg } from '../../settings.js';
|
|
18
17
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
19
18
|
|
20
19
|
var _Close, _Idea, _Crossroads;
|
21
|
-
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "
|
20
|
+
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "renderMedia", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
22
21
|
|
23
22
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
24
23
|
var blockClass = "".concat(pkg.prefix, "--inline-tip");
|
@@ -46,26 +45,24 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
46
45
|
children = _ref.children,
|
47
46
|
className = _ref.className,
|
48
47
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
49
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
48
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
50
49
|
_ref$collapsible = _ref.collapsible,
|
51
|
-
collapsible = _ref$collapsible ===
|
50
|
+
collapsible = _ref$collapsible === void 0 ? defaults.collapsible : _ref$collapsible,
|
52
51
|
_ref$collapseButtonLa = _ref.collapseButtonLabel,
|
53
|
-
collapseButtonLabel = _ref$collapseButtonLa ===
|
52
|
+
collapseButtonLabel = _ref$collapseButtonLa === void 0 ? defaults.collapseButtonLabel : _ref$collapseButtonLa,
|
54
53
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
55
|
-
expandButtonLabel = _ref$expandButtonLabe ===
|
56
|
-
media = _ref.media,
|
54
|
+
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
57
55
|
renderMedia = _ref.renderMedia,
|
58
56
|
_ref$narrow = _ref.narrow,
|
59
|
-
narrow = _ref$narrow ===
|
57
|
+
narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
|
60
58
|
onClick = _ref.onClick,
|
61
59
|
onClose = _ref.onClose,
|
62
60
|
tertiaryButtonLabel = _ref.tertiaryButtonLabel,
|
63
61
|
_ref$title = _ref.title,
|
64
|
-
title = _ref$title ===
|
62
|
+
title = _ref$title === void 0 ? defaults.title : _ref$title,
|
65
63
|
_ref$withLeftGutter = _ref.withLeftGutter,
|
66
|
-
withLeftGutter = _ref$withLeftGutter ===
|
64
|
+
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
67
65
|
rest = _objectWithoutProperties(_ref, _excluded);
|
68
|
-
var hasMedia = renderMedia || media;
|
69
66
|
var _useState = useState(collapsible),
|
70
67
|
_useState2 = _slicedToArray(_useState, 2),
|
71
68
|
isCollapsed = _useState2[0],
|
@@ -75,7 +72,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
75
72
|
return _getComponentText(React__default.Children.toArray(children));
|
76
73
|
}, [children]);
|
77
74
|
var childrenToRender = children;
|
78
|
-
if (!
|
75
|
+
if (!renderMedia && collapsible && isCollapsed) {
|
79
76
|
childrenToRender = /*#__PURE__*/React__default.createElement("p", {
|
80
77
|
className: "".concat(blockClass, "__preview-text")
|
81
78
|
}, previewText);
|
@@ -87,7 +84,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
87
84
|
}, [collapsible]);
|
88
85
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
89
86
|
"aria-labelledby": labelId,
|
90
|
-
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"),
|
87
|
+
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), renderMedia && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
|
91
88
|
ref: ref,
|
92
89
|
role: "complementary"
|
93
90
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("div", {
|
@@ -100,7 +97,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
100
97
|
size: "lg"
|
101
98
|
}, _Close || (_Close = /*#__PURE__*/React__default.createElement(Close, {
|
102
99
|
size: 16
|
103
|
-
})))), (!
|
100
|
+
})))), (!renderMedia && narrow || !narrow) && /*#__PURE__*/React__default.createElement("div", {
|
104
101
|
className: "".concat(blockClass, "__icon-idea"),
|
105
102
|
tabIndex: -1
|
106
103
|
}, _Idea || (_Idea = /*#__PURE__*/React__default.createElement(Idea, {
|
@@ -116,7 +113,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
116
113
|
className: "".concat(blockClass, "__secondary-btn")
|
117
114
|
}, action)), (collapsible || tertiaryButtonLabel) && /*#__PURE__*/React__default.createElement("footer", {
|
118
115
|
className: "".concat(blockClass, "__footer")
|
119
|
-
}, collapsible && !
|
116
|
+
}, collapsible && !renderMedia && /*#__PURE__*/React__default.createElement(Button, {
|
120
117
|
className: "".concat(blockClass, "__toggle-btn"),
|
121
118
|
kind: "ghost",
|
122
119
|
size: "md",
|
@@ -135,12 +132,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
135
132
|
size: 16
|
136
133
|
}));
|
137
134
|
}
|
138
|
-
}, tertiaryButtonLabel))),
|
139
|
-
className: "".concat(blockClass, "__media")
|
140
|
-
}, media.render()), hasMedia && (media === null || media === undefined ? undefined : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
141
|
-
className: "".concat(blockClass, "__media"),
|
142
|
-
filePaths: media.filePaths
|
143
|
-
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
135
|
+
}, tertiaryButtonLabel))), renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
144
136
|
className: "".concat(blockClass, "__media")
|
145
137
|
}, renderMedia()));
|
146
138
|
});
|
@@ -182,20 +174,6 @@ InlineTip.propTypes = {
|
|
182
174
|
* This button is not visible if `media` is specified.
|
183
175
|
*/
|
184
176
|
expandButtonLabel: PropTypes.string,
|
185
|
-
/**
|
186
|
-
* The object describing an image in one of two shapes.
|
187
|
-
* - If a single media element is required, use `{render}`.
|
188
|
-
* - If a stepped animation is required, use `{filePaths}`.
|
189
|
-
*
|
190
|
-
* Enabling `media` disables the `collapsible` feature.
|
191
|
-
* @deprecated please use the `renderMedia` prop
|
192
|
-
*/
|
193
|
-
/**@ts-ignore*/
|
194
|
-
media: PropTypes.oneOfType([PropTypes.shape({
|
195
|
-
render: PropTypes.func
|
196
|
-
}), PropTypes.shape({
|
197
|
-
filePaths: PropTypes.string
|
198
|
-
})]),
|
199
177
|
/**
|
200
178
|
* Set to `true` to arrange the information in a format
|
201
179
|
* that is easier to read in a limited space.
|
@@ -16,7 +16,7 @@ import { typeof as _typeof } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
|
16
16
|
|
17
17
|
var _getComponentText = function getComponentText(reactNode) {
|
18
18
|
var _reactNode$props;
|
19
|
-
var tmpChildren = (reactNode === null || reactNode ===
|
19
|
+
var tmpChildren = (reactNode === null || reactNode === void 0 || (_reactNode$props = reactNode.props) === null || _reactNode$props === void 0 ? void 0 : _reactNode$props.children) || undefined;
|
20
20
|
if (Array.isArray(reactNode)) {
|
21
21
|
var joinedNodes = [];
|
22
22
|
reactNode.forEach(function (node) {
|
@@ -5,18 +5,6 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React, { PropsWithChildren, ReactNode } from 'react';
|
8
|
-
type Media = {
|
9
|
-
breakpoints?: {
|
10
|
-
xlg?: number;
|
11
|
-
lg?: number;
|
12
|
-
};
|
13
|
-
} & ({
|
14
|
-
render?: () => ReactNode;
|
15
|
-
filePaths?: never;
|
16
|
-
} | {
|
17
|
-
render?: never;
|
18
|
-
filePaths?: string[];
|
19
|
-
});
|
20
8
|
type BreakpointsWithMedia = {
|
21
9
|
xlg?: number;
|
22
10
|
lg?: number;
|
@@ -63,20 +51,6 @@ export interface InterstitialScreenProps extends PropsWithChildren {
|
|
63
51
|
* Specifies whether the component is currently open.
|
64
52
|
*/
|
65
53
|
isOpen?: boolean;
|
66
|
-
/**
|
67
|
-
* The object describing an image in one of two shapes.
|
68
|
-
*
|
69
|
-
* If a single media element is required, use `{render}`.
|
70
|
-
*
|
71
|
-
* If a stepped animation is required, use `{filePaths}`.
|
72
|
-
*
|
73
|
-
* Breakpoints are used to set the media content column size as well as the remainder for the main content areas column size.
|
74
|
-
* Medium and small breakpoints will be set to 0 internally to focus on the main content area.
|
75
|
-
*
|
76
|
-
* @deprecated please use the `renderMedia` prop
|
77
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
78
|
-
*/
|
79
|
-
media?: Media;
|
80
54
|
/**
|
81
55
|
* Optional prop to render any media like images or any animated media.
|
82
56
|
*/
|
@@ -12,13 +12,12 @@ import { ArrowRight } from '@carbon/react/icons';
|
|
12
12
|
import { Carousel } from '../Carousel/Carousel.js';
|
13
13
|
import '../Carousel/CarouselItem.js';
|
14
14
|
import PropTypes from '../../_virtual/index.js';
|
15
|
-
import { SteppedAnimatedMedia } from '../SteppedAnimatedMedia/SteppedAnimatedMedia.js';
|
16
15
|
import cx from 'classnames';
|
17
16
|
import { clamp } from '../../global/js/utils/clamp.js';
|
18
17
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
19
18
|
import { pkg } from '../../settings.js';
|
20
19
|
|
21
|
-
var _excluded = ["children", "className", "closeIconDescription", "domainName", "hideProgressIndicator", "interstitialAriaLabel", "isFullScreen", "isOpen", "
|
20
|
+
var _excluded = ["children", "className", "closeIconDescription", "domainName", "hideProgressIndicator", "interstitialAriaLabel", "isFullScreen", "isOpen", "renderMedia", "breakpointsWithMedia", "nextButtonLabel", "onClose", "previousButtonLabel", "productName", "headerClassName", "headerTitle", "startButtonLabel", "skipButtonLabel"];
|
22
21
|
|
23
22
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
24
23
|
var blockClass = "".concat(pkg.prefix, "--interstitial-screen");
|
@@ -59,38 +58,37 @@ var defaults = {
|
|
59
58
|
* newly purchased capability is presented).
|
60
59
|
*/
|
61
60
|
var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
62
|
-
var
|
61
|
+
var _h, _strong, _h2;
|
63
62
|
var children = props.children,
|
64
63
|
className = props.className,
|
65
64
|
_props$closeIconDescr = props.closeIconDescription,
|
66
|
-
closeIconDescription = _props$closeIconDescr ===
|
65
|
+
closeIconDescription = _props$closeIconDescr === void 0 ? defaults.closeIconDescription : _props$closeIconDescr,
|
67
66
|
_props$domainName = props.domainName,
|
68
|
-
domainName = _props$domainName ===
|
67
|
+
domainName = _props$domainName === void 0 ? defaults.domainName : _props$domainName,
|
69
68
|
_props$hideProgressIn = props.hideProgressIndicator,
|
70
|
-
hideProgressIndicator = _props$hideProgressIn ===
|
69
|
+
hideProgressIndicator = _props$hideProgressIn === void 0 ? defaults.hideProgressIndicator : _props$hideProgressIn,
|
71
70
|
_props$interstitialAr = props.interstitialAriaLabel,
|
72
|
-
interstitialAriaLabel = _props$interstitialAr ===
|
71
|
+
interstitialAriaLabel = _props$interstitialAr === void 0 ? defaults.interstitialAriaLabel : _props$interstitialAr,
|
73
72
|
_props$isFullScreen = props.isFullScreen,
|
74
|
-
isFullScreen = _props$isFullScreen ===
|
73
|
+
isFullScreen = _props$isFullScreen === void 0 ? defaults.isFullScreen : _props$isFullScreen,
|
75
74
|
_props$isOpen = props.isOpen,
|
76
|
-
isOpen = _props$isOpen ===
|
77
|
-
media = props.media,
|
75
|
+
isOpen = _props$isOpen === void 0 ? defaults.isOpen : _props$isOpen,
|
78
76
|
renderMedia = props.renderMedia,
|
79
77
|
breakpointsWithMedia = props.breakpointsWithMedia,
|
80
78
|
_props$nextButtonLabe = props.nextButtonLabel,
|
81
|
-
nextButtonLabel = _props$nextButtonLabe ===
|
79
|
+
nextButtonLabel = _props$nextButtonLabe === void 0 ? defaults.nextButtonLabel : _props$nextButtonLabe,
|
82
80
|
_props$onClose = props.onClose,
|
83
|
-
onClose = _props$onClose ===
|
81
|
+
onClose = _props$onClose === void 0 ? defaults.onClose : _props$onClose,
|
84
82
|
_props$previousButton = props.previousButtonLabel,
|
85
|
-
previousButtonLabel = _props$previousButton ===
|
83
|
+
previousButtonLabel = _props$previousButton === void 0 ? defaults.previousButtonLabel : _props$previousButton,
|
86
84
|
_props$productName = props.productName,
|
87
|
-
productName = _props$productName ===
|
85
|
+
productName = _props$productName === void 0 ? defaults.productName : _props$productName,
|
88
86
|
headerClassName = props.headerClassName,
|
89
87
|
headerTitle = props.headerTitle,
|
90
88
|
_props$startButtonLab = props.startButtonLabel,
|
91
|
-
startButtonLabel = _props$startButtonLab ===
|
89
|
+
startButtonLabel = _props$startButtonLab === void 0 ? defaults.startButtonLabel : _props$startButtonLab,
|
92
90
|
_props$skipButtonLabe = props.skipButtonLabel,
|
93
|
-
skipButtonLabel = _props$skipButtonLabe ===
|
91
|
+
skipButtonLabel = _props$skipButtonLabe === void 0 ? defaults.skipButtonLabel : _props$skipButtonLabe,
|
94
92
|
rest = _objectWithoutProperties(props, _excluded);
|
95
93
|
var backupRef = useRef(null);
|
96
94
|
var _forwardedRef = ref || backupRef;
|
@@ -107,12 +105,10 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
107
105
|
setProgStep = _useState4[1];
|
108
106
|
var childArray = Children.toArray(children);
|
109
107
|
var isMultiStep = childArray.length > 1;
|
110
|
-
var mediaIsDefined = (media === null || media === undefined ? undefined : media.render) || (media === null || media === undefined ? undefined : media.filePaths);
|
111
|
-
var hasMedia = mediaIsDefined || renderMedia;
|
112
108
|
var bodyScrollRef = useRef(null);
|
113
109
|
var mediaBreakpoints = {
|
114
|
-
xlg: (
|
115
|
-
lg: (
|
110
|
+
xlg: (breakpointsWithMedia === null || breakpointsWithMedia === void 0 ? void 0 : breakpointsWithMedia.xlg) || 0,
|
111
|
+
lg: (breakpointsWithMedia === null || breakpointsWithMedia === void 0 ? void 0 : breakpointsWithMedia.lg) || 0,
|
116
112
|
md: 0,
|
117
113
|
sm: 0
|
118
114
|
};
|
@@ -131,7 +127,7 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
131
127
|
}, [onClose]);
|
132
128
|
var scrollBodyToTop = function scrollBodyToTop() {
|
133
129
|
var _bodyScrollRef$curren, _bodyScrollRef$curren2;
|
134
|
-
(_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren ===
|
130
|
+
(_bodyScrollRef$curren = bodyScrollRef.current) === null || _bodyScrollRef$curren === void 0 || (_bodyScrollRef$curren2 = _bodyScrollRef$curren.scroll) === null || _bodyScrollRef$curren2 === void 0 || _bodyScrollRef$curren2.call(_bodyScrollRef$curren, {
|
135
131
|
top: 0,
|
136
132
|
behavior: 'smooth'
|
137
133
|
});
|
@@ -153,13 +149,13 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
153
149
|
if (!isOpen) {
|
154
150
|
setProgStep(0);
|
155
151
|
}
|
156
|
-
(_startButtonRef$curre = startButtonRef.current) === null || _startButtonRef$curre ===
|
152
|
+
(_startButtonRef$curre = startButtonRef.current) === null || _startButtonRef$curre === void 0 || _startButtonRef$curre.focus();
|
157
153
|
}, [isOpen, progStep, onClose]);
|
158
154
|
useEffect(function () {
|
159
155
|
var _nextButtonRef$curren;
|
160
156
|
// for modal only, "is-visible" triggers animation
|
161
157
|
setIsVisibleClass(!isFullScreen && isOpen ? 'is-visible' : null);
|
162
|
-
nextButtonRef === null || nextButtonRef ===
|
158
|
+
nextButtonRef === null || nextButtonRef === void 0 || (_nextButtonRef$curren = nextButtonRef.current) === null || _nextButtonRef$curren === void 0 || _nextButtonRef$curren.focus();
|
163
159
|
}, [isFullScreen, isOpen]);
|
164
160
|
|
165
161
|
// hitting escape key also closes this component
|
@@ -252,7 +248,7 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
252
248
|
className: cx("".concat(blockClass, "--body")),
|
253
249
|
ref: bodyScrollRef,
|
254
250
|
tabIndex: 0
|
255
|
-
},
|
251
|
+
}, renderMedia ? /*#__PURE__*/React__default.createElement(FlexGrid, {
|
256
252
|
fullWidth: true,
|
257
253
|
className: cx("".concat(blockClass, "--body-grid"))
|
258
254
|
}, /*#__PURE__*/React__default.createElement(Row, {
|
@@ -270,7 +266,7 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
270
266
|
disableArrowScroll: true,
|
271
267
|
ref: scrollRef,
|
272
268
|
onScroll: scrollToCurrentStep
|
273
|
-
}, children)) : childArray[0])),
|
269
|
+
}, children)) : childArray[0])), renderMedia && /*#__PURE__*/React__default.createElement(Column, {
|
274
270
|
xlg: mediaBreakpoints.xlg,
|
275
271
|
lg: mediaBreakpoints.lg,
|
276
272
|
md: mediaBreakpoints.md,
|
@@ -278,11 +274,7 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (props,
|
|
278
274
|
className: cx("".concat(blockClass, "--media-container"))
|
279
275
|
}, /*#__PURE__*/React__default.createElement("div", {
|
280
276
|
className: "".concat(blockClass, "--media")
|
281
|
-
},
|
282
|
-
className: "".concat(blockClass, "--stepped-animated-media"),
|
283
|
-
filePaths: media.filePaths,
|
284
|
-
playStep: progStep
|
285
|
-
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
277
|
+
}, renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
286
278
|
className: "".concat(blockClass, "--stepped-animated-media")
|
287
279
|
}, renderMedia({
|
288
280
|
playStep: progStep
|
@@ -394,32 +386,6 @@ InterstitialScreen.propTypes = {
|
|
394
386
|
* Specifies whether the component is currently open.
|
395
387
|
*/
|
396
388
|
isOpen: PropTypes.bool,
|
397
|
-
/**
|
398
|
-
* The object describing an image in one of two shapes.
|
399
|
-
*
|
400
|
-
* If a single media element is required, use `{render}`.
|
401
|
-
*
|
402
|
-
* If a stepped animation is required, use `{filePaths}`.
|
403
|
-
*
|
404
|
-
* Breakpoints are used to set the media content column size as well as the remainder for the main content areas column size.
|
405
|
-
* Medium and small breakpoints will be set to 0 internally to focus on the main content area.
|
406
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
407
|
-
* @deprecated please use the `renderMedia` prop
|
408
|
-
*/
|
409
|
-
/**@ts-ignore*/
|
410
|
-
media: PropTypes.oneOfType([PropTypes.shape({
|
411
|
-
render: PropTypes.func,
|
412
|
-
breakpoints: PropTypes.shape({
|
413
|
-
xlg: PropTypes.number,
|
414
|
-
lg: PropTypes.number
|
415
|
-
})
|
416
|
-
}), PropTypes.shape({
|
417
|
-
filePaths: PropTypes.arrayOf(PropTypes.string),
|
418
|
-
breakpoints: PropTypes.shape({
|
419
|
-
xlg: PropTypes.number,
|
420
|
-
lg: PropTypes.number
|
421
|
-
})
|
422
|
-
})]),
|
423
389
|
/**
|
424
390
|
* The label for the Next button.
|
425
391
|
*/
|
@@ -83,7 +83,8 @@ MultiAddSelect.propTypes = {
|
|
83
83
|
items: PropTypes.shape({
|
84
84
|
modifiers: PropTypes.shape({
|
85
85
|
label: PropTypes.string,
|
86
|
-
options: PropTypes.array
|
86
|
+
options: PropTypes.array,
|
87
|
+
multiSelect: PropTypes.bool
|
87
88
|
}),
|
88
89
|
sortBy: PropTypes.array,
|
89
90
|
filterBy: PropTypes.array,
|
package/es/components/Nav/Nav.js
CHANGED
@@ -9,8 +9,8 @@ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _
|
|
9
9
|
import React__default, { useState, useRef, useEffect } from 'react';
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
12
|
-
import NavList,
|
13
|
-
import NavItem,
|
12
|
+
import { NavList, blockClass as blockClass$1 } from './NavList.js';
|
13
|
+
import { NavItem, blockClass as blockClass$2 } from './NavItem.js';
|
14
14
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
15
15
|
import { pkg } from '../../settings.js';
|
16
16
|
|
@@ -122,7 +122,7 @@ var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
122
122
|
role: "menubar"
|
123
123
|
}, React__default.Children.map(children, function (child, index) {
|
124
124
|
var _child$type;
|
125
|
-
return (child === null || child ===
|
125
|
+
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
|
126
126
|
})));
|
127
127
|
});
|
128
128
|
Nav.deprecated = {
|
@@ -34,29 +34,29 @@ var defaults = {
|
|
34
34
|
*/
|
35
35
|
var NavItem = function NavItem(_ref) {
|
36
36
|
var _ref$activeHref = _ref.activeHref,
|
37
|
-
activeHref = _ref$activeHref ===
|
37
|
+
activeHref = _ref$activeHref === void 0 ? defaults.activeHref : _ref$activeHref,
|
38
38
|
_ref$children = _ref.children,
|
39
|
-
children = _ref$children ===
|
39
|
+
children = _ref$children === void 0 ? defaults.children : _ref$children,
|
40
40
|
className = _ref.className,
|
41
41
|
current = _ref.current,
|
42
42
|
_ref$disabled = _ref.disabled,
|
43
|
-
disabled = _ref$disabled ===
|
43
|
+
disabled = _ref$disabled === void 0 ? defaults.disabled : _ref$disabled,
|
44
44
|
_ref$element = _ref.element,
|
45
|
-
element = _ref$element ===
|
45
|
+
element = _ref$element === void 0 ? defaults.element : _ref$element,
|
46
46
|
href = _ref.href,
|
47
47
|
id = _ref.id,
|
48
48
|
label = _ref.label,
|
49
49
|
_ref$onClick = _ref.onClick,
|
50
|
-
_onClick = _ref$onClick ===
|
50
|
+
_onClick = _ref$onClick === void 0 ? defaults.onClick : _ref$onClick,
|
51
51
|
_ref$tabIndex = _ref.tabIndex,
|
52
|
-
tabIndex = _ref$tabIndex ===
|
52
|
+
tabIndex = _ref$tabIndex === void 0 ? defaults.tabIndex : _ref$tabIndex,
|
53
53
|
rest = _objectWithoutProperties(_ref, _excluded);
|
54
54
|
var _useState = useState(false),
|
55
55
|
_useState2 = _slicedToArray(_useState, 2),
|
56
56
|
hrefHasDifferentHost = _useState2[0],
|
57
57
|
setHrefHasDifferentHost = _useState2[1];
|
58
58
|
useEffect(function () {
|
59
|
-
if ((href === null || href ===
|
59
|
+
if ((href === null || href === void 0 ? void 0 : href.indexOf(window.location.host)) === -1) {
|
60
60
|
setHrefHasDifferentHost(true);
|
61
61
|
}
|
62
62
|
}, [href]);
|
@@ -156,6 +156,5 @@ NavItem.propTypes = {
|
|
156
156
|
|
157
157
|
// Return a placeholder if not released and not enabled by feature flag
|
158
158
|
NavItem = pkg.checkComponentEnabled(NavItem, componentName);
|
159
|
-
var NavItem$1 = NavItem;
|
160
159
|
|
161
|
-
export { NavItem, blockClass, NavItem
|
160
|
+
export { NavItem, blockClass, NavItem as default };
|
@@ -9,7 +9,7 @@ import { slicedToArray as _slicedToArray, extends as _extends, defineProperty as
|
|
9
9
|
import React__default, { useState, useEffect, useImperativeHandle } from 'react';
|
10
10
|
import cx from 'classnames';
|
11
11
|
import { p as propTypesExports } from '../../_virtual/index.js';
|
12
|
-
import NavItem,
|
12
|
+
import { NavItem, blockClass as blockClass$1 } from './NavItem.js';
|
13
13
|
import { pkg } from '../../settings.js';
|
14
14
|
import { ChevronDown } from '../../node_modules/@carbon/icons-react/es/generated/bucket-3.js';
|
15
15
|
|
@@ -32,27 +32,27 @@ var defaults = {
|
|
32
32
|
};
|
33
33
|
var NavList = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
34
34
|
var _ref$activeHref = _ref.activeHref,
|
35
|
-
activeHref = _ref$activeHref ===
|
35
|
+
activeHref = _ref$activeHref === void 0 ? defaults.activeHref : _ref$activeHref,
|
36
36
|
_ref$children = _ref.children,
|
37
|
-
children = _ref$children ===
|
37
|
+
children = _ref$children === void 0 ? defaults.children : _ref$children,
|
38
38
|
_ref$className = _ref.className,
|
39
|
-
className = _ref$className ===
|
39
|
+
className = _ref$className === void 0 ? defaults.className : _ref$className,
|
40
40
|
_ref$icon = _ref.icon,
|
41
|
-
icon = _ref$icon ===
|
41
|
+
icon = _ref$icon === void 0 ? defaults.icon : _ref$icon,
|
42
42
|
_ref$id = _ref.id,
|
43
|
-
id = _ref$id ===
|
43
|
+
id = _ref$id === void 0 ? defaults.id : _ref$id,
|
44
44
|
_ref$isExpandedOnPage = _ref.isExpandedOnPageLoad,
|
45
|
-
isExpandedOnPageLoad = _ref$isExpandedOnPage ===
|
45
|
+
isExpandedOnPageLoad = _ref$isExpandedOnPage === void 0 ? defaults.isExpandedOnPageLoad : _ref$isExpandedOnPage,
|
46
46
|
_ref$navigationItemTi = _ref.navigationItemTitle,
|
47
|
-
navigationItemTitle = _ref$navigationItemTi ===
|
47
|
+
navigationItemTitle = _ref$navigationItemTi === void 0 ? defaults.navigationItemTitle : _ref$navigationItemTi,
|
48
48
|
_ref$onItemClick = _ref.onItemClick,
|
49
|
-
onItemClick = _ref$onItemClick ===
|
49
|
+
onItemClick = _ref$onItemClick === void 0 ? defaults.onItemClick : _ref$onItemClick,
|
50
50
|
_ref$onListClick = _ref.onListClick,
|
51
|
-
onListClick = _ref$onListClick ===
|
51
|
+
onListClick = _ref$onListClick === void 0 ? defaults.onListClick : _ref$onListClick,
|
52
52
|
_ref$tabIndex = _ref.tabIndex,
|
53
|
-
tabIndex = _ref$tabIndex ===
|
53
|
+
tabIndex = _ref$tabIndex === void 0 ? defaults.tabIndex : _ref$tabIndex,
|
54
54
|
_ref$title = _ref.title,
|
55
|
-
title = _ref$title ===
|
55
|
+
title = _ref$title === void 0 ? defaults.title : _ref$title;
|
56
56
|
var _useState = useState(isExpandedOnPageLoad),
|
57
57
|
_useState2 = _slicedToArray(_useState, 2),
|
58
58
|
open = _useState2[0],
|
@@ -108,7 +108,7 @@ var NavList = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
108
108
|
onClick: function onClick(event, href) {
|
109
109
|
var _child$props$onClick, _child$props;
|
110
110
|
onItemClick(event, href);
|
111
|
-
(_child$props$onClick = (_child$props = child.props).onClick) === null || _child$props$onClick ===
|
111
|
+
(_child$props$onClick = (_child$props = child.props).onClick) === null || _child$props$onClick === void 0 || _child$props$onClick.call(_child$props, event);
|
112
112
|
},
|
113
113
|
activeHref: activeHref,
|
114
114
|
tabIndex: open ? 0 : -1
|
@@ -166,6 +166,5 @@ NavList.displayName = componentName;
|
|
166
166
|
|
167
167
|
// Return a placeholder if not released and not enabled by feature flag
|
168
168
|
NavList = pkg.checkComponentEnabled(NavList, componentName);
|
169
|
-
var NavList$1 = NavList;
|
170
169
|
|
171
|
-
export { NavList, blockClass, NavList
|
170
|
+
export { NavList, blockClass, NavList as default };
|
@@ -30,7 +30,7 @@ var NonLinearReading = /*#__PURE__*/React__default.forwardRef(function (_ref, re
|
|
30
30
|
className = _ref.className,
|
31
31
|
definition = _ref.definition,
|
32
32
|
_ref$theme = _ref.theme,
|
33
|
-
theme = _ref$theme ===
|
33
|
+
theme = _ref$theme === void 0 ? 'light' : _ref$theme,
|
34
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
35
35
|
var _useState = useState(false),
|
36
36
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -6,7 +6,8 @@
|
|
6
6
|
*/
|
7
7
|
import { Link } from '@carbon/react';
|
8
8
|
import React, { RefObject } from 'react';
|
9
|
-
|
9
|
+
type Themes = 'light' | 'dark';
|
10
|
+
type DateTimeStyles = 'long' | 'short' | 'narrow';
|
10
11
|
interface Link {
|
11
12
|
url: string;
|
12
13
|
text: string;
|
@@ -30,8 +31,22 @@ export interface NotificationsPanelProps {
|
|
30
31
|
* Array of data for Notifications component to render
|
31
32
|
*/
|
32
33
|
data: Data[];
|
34
|
+
/**
|
35
|
+
* The language for each notification's time stamp.
|
36
|
+
* Used with `dateTimeStyle`.
|
37
|
+
*/
|
38
|
+
dateTimeLocale?: string;
|
39
|
+
/**
|
40
|
+
* The date/time format for each notification's time stamp.
|
41
|
+
* Used with `dateTimeLocale`.
|
42
|
+
*
|
43
|
+
* E.g. `long` as "6 minutes ago", `short` as "6m ago".
|
44
|
+
*/
|
45
|
+
dateTimeStyle?: DateTimeStyles;
|
33
46
|
/**
|
34
47
|
* Sets the `days ago` label text
|
48
|
+
*
|
49
|
+
* @deprecated use `dateTimeLocale` instead.
|
35
50
|
*/
|
36
51
|
daysAgoText?: (value: number) => string;
|
37
52
|
/**
|
@@ -56,10 +71,14 @@ export interface NotificationsPanelProps {
|
|
56
71
|
emptyStateLabel?: string;
|
57
72
|
/**
|
58
73
|
* Sets the `hour ago` label text
|
74
|
+
*
|
75
|
+
* @deprecated use `dateTimeLocale` instead.
|
59
76
|
*/
|
60
77
|
hourAgoText?: (value: number) => string;
|
61
78
|
/**
|
62
79
|
* Sets the `hours ago` label text
|
80
|
+
*
|
81
|
+
* @deprecated use `dateTimeLocale` instead.
|
63
82
|
*/
|
64
83
|
hoursAgoText?: (value: number) => string;
|
65
84
|
/**
|
@@ -68,22 +87,32 @@ export interface NotificationsPanelProps {
|
|
68
87
|
illustrationTheme: Themes;
|
69
88
|
/**
|
70
89
|
* Sets the `minute ago` label text
|
90
|
+
*
|
91
|
+
* @deprecated use `dateTimeLocale` instead.
|
71
92
|
*/
|
72
93
|
minuteAgoText?: (value: number) => string;
|
73
94
|
/**
|
74
95
|
* Sets the `minutes ago` label text
|
96
|
+
*
|
97
|
+
* @deprecated use `dateTimeLocale` instead.
|
75
98
|
*/
|
76
99
|
minutesAgoText?: (value: number) => string;
|
77
100
|
/**
|
78
101
|
* Sets the `month ago` label text
|
102
|
+
*
|
103
|
+
* @deprecated use `dateTimeLocale` instead.
|
79
104
|
*/
|
80
105
|
monthAgoText?: (value: number) => string;
|
81
106
|
/**
|
82
107
|
* Sets the `months ago` label text
|
108
|
+
*
|
109
|
+
* @deprecated use `dateTimeLocale` instead.
|
83
110
|
*/
|
84
111
|
monthsAgoText?: (value: number) => string;
|
85
112
|
/**
|
86
113
|
* Sets the `now` label text
|
114
|
+
*
|
115
|
+
* @deprecated use `dateTimeLocale` instead.
|
87
116
|
*/
|
88
117
|
nowText?: string;
|
89
118
|
/**
|
@@ -128,6 +157,8 @@ export interface NotificationsPanelProps {
|
|
128
157
|
readMoreLabel?: string;
|
129
158
|
/**
|
130
159
|
* Sets the `seconds ago` label text
|
160
|
+
*
|
161
|
+
* @deprecated use `dateTimeLocale` instead.
|
131
162
|
*/
|
132
163
|
secondsAgoText?: (value: number) => string;
|
133
164
|
/**
|
@@ -152,14 +183,20 @@ export interface NotificationsPanelProps {
|
|
152
183
|
viewAllLabel?: (value: number) => string;
|
153
184
|
/**
|
154
185
|
* Sets the `year ago` label text
|
186
|
+
*
|
187
|
+
* @deprecated use `dateTimeLocale` instead.
|
155
188
|
*/
|
156
189
|
yearAgoText?: (value: number) => string;
|
157
190
|
/**
|
158
191
|
* Sets the `years ago` label text
|
192
|
+
*
|
193
|
+
* @deprecated use `dateTimeLocale` instead.
|
159
194
|
*/
|
160
195
|
yearsAgoText?: (value: number) => string;
|
161
196
|
/**
|
162
197
|
* Sets the `Yesterday at` label text
|
198
|
+
*
|
199
|
+
* @deprecated use `dateTimeLocale` instead.
|
163
200
|
*/
|
164
201
|
yesterdayAtText?: (value: number) => string;
|
165
202
|
/**
|
@@ -167,5 +204,20 @@ export interface NotificationsPanelProps {
|
|
167
204
|
*/
|
168
205
|
yesterdayLabel?: string;
|
169
206
|
}
|
207
|
+
/**
|
208
|
+
* The `NotificationsPanel` sets expectations on the behavior for notifications,
|
209
|
+
* allowing the user to view and interact with them all in one place.
|
210
|
+
*
|
211
|
+
* **To adopt the new localization:**
|
212
|
+
*
|
213
|
+
* **Step 1:** Provide a locale to the `dateTimeLocale` prop, such as "de" or "fr-CA".
|
214
|
+
*
|
215
|
+
* **Step 2:** Remove the now _deprecated_ props: `daysAgoText`,
|
216
|
+
* `hourAgoText`, `hoursAgoText`, `minuteAgoText`, `minutesAgoText`,
|
217
|
+
* `monthAgoText`, `monthsAgoText`, `nowText`, `secondsAgoText`,
|
218
|
+
* `yearAgoText`, `yearsAgoText`, `yesterdayAtText`.
|
219
|
+
*
|
220
|
+
* If you do not provide a locale, the deprecated props will be applied instead.
|
221
|
+
*/
|
170
222
|
export declare let NotificationsPanel: React.ForwardRefExoticComponent<NotificationsPanelProps & React.RefAttributes<unknown>>;
|
171
223
|
export {};
|