@carbon/ibm-products 2.61.0 → 2.62.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +170 -22
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +170 -22
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +170 -22
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -47,12 +47,12 @@ exports.CoachmarkFixed = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
47
47
|
var children = _ref.children,
|
48
48
|
className = _ref.className,
|
49
49
|
_ref$onClose = _ref.onClose,
|
50
|
-
onClose = _ref$onClose ===
|
50
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
51
51
|
portalTarget = _ref.portalTarget,
|
52
52
|
_ref$tagline = _ref.tagline,
|
53
|
-
tagline = _ref$tagline ===
|
53
|
+
tagline = _ref$tagline === void 0 ? defaults.tagline : _ref$tagline,
|
54
54
|
_ref$theme = _ref.theme,
|
55
|
-
theme = _ref$theme ===
|
55
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
56
56
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
57
57
|
var overlayRef = React.useRef(null);
|
58
58
|
var portalNode = React.useRef(null);
|
@@ -82,7 +82,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
82
82
|
var shouldReduceMotion = usePrefersReducedMotion.usePrefersReducedMotion();
|
83
83
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
84
84
|
var _document$querySelect, _document, _document2, _document3;
|
85
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
85
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
86
86
|
}, [portalTarget]);
|
87
87
|
var handleClose = React.useCallback(function () {
|
88
88
|
if (shouldReduceMotion) {
|
@@ -170,7 +170,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
170
170
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(CoachmarkTagline.CoachmarkTagline, {
|
171
171
|
title: tagline,
|
172
172
|
onClose: onClose
|
173
|
-
}), isOpen && (portalNode === null || portalNode ===
|
173
|
+
}), isOpen && (portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) && /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement(CoachmarkOverlay.CoachmarkOverlay, {
|
174
174
|
ref: overlayRef,
|
175
175
|
fixedIsVisible: fixedIsVisible,
|
176
176
|
kind: enums.COACHMARK_OVERLAY_KIND.FIXED,
|
@@ -179,7 +179,7 @@ exports.CoachmarkFixed = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
179
179
|
theme: theme,
|
180
180
|
className: cx(fixedIsVisible && "".concat(overlayBlockClass, "--is-visible"), overlayBlockClass)
|
181
181
|
}, children), // Default to `document.body` when `portalNode` is `null`
|
182
|
-
portalNode === null || portalNode ===
|
182
|
+
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)));
|
183
183
|
});
|
184
184
|
|
185
185
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -20,16 +20,6 @@ export interface CoachmarkOverlayElementsProps {
|
|
20
20
|
* managed in the parent component.
|
21
21
|
*/
|
22
22
|
isVisible?: boolean;
|
23
|
-
/**
|
24
|
-
* The object describing an image in one of two shapes.
|
25
|
-
* If a single media element is required, use `{render}`.
|
26
|
-
* If a stepped animation is required, use `{filePaths}`.
|
27
|
-
* * @deprecated please use the `renderMedia` prop
|
28
|
-
*/
|
29
|
-
media?: {
|
30
|
-
render?: () => ReactNode;
|
31
|
-
filePaths?: string[];
|
32
|
-
};
|
33
23
|
/**
|
34
24
|
* Optional prop to render any media like images or any animated media.
|
35
25
|
*/
|
@@ -13,7 +13,6 @@ var React = require('react');
|
|
13
13
|
var Carousel = require('../Carousel/Carousel.js');
|
14
14
|
require('../Carousel/CarouselItem.js');
|
15
15
|
var index = require('../../_virtual/index.js');
|
16
|
-
var SteppedAnimatedMedia = require('../SteppedAnimatedMedia/SteppedAnimatedMedia.js');
|
17
16
|
var clamp = require('../../global/js/utils/clamp.js');
|
18
17
|
var cx = require('classnames');
|
19
18
|
var devtools = require('../../global/js/utils/devtools.js');
|
@@ -22,7 +21,7 @@ var settings = require('../../settings.js');
|
|
22
21
|
require('../Coachmark/Coachmark.js');
|
23
22
|
var context = require('../Coachmark/utils/context.js');
|
24
23
|
|
25
|
-
var _excluded = ["className", "children", "isVisible", "
|
24
|
+
var _excluded = ["className", "children", "isVisible", "renderMedia", "currentStep", "nextButtonText", "previousButtonLabel", "closeButtonLabel", "onNext", "onBack"];
|
26
25
|
|
27
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
28
27
|
var blockClass = "".concat(settings.pkg.prefix, "--coachmark-overlay-elements");
|
@@ -56,21 +55,20 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
56
55
|
var className = _ref.className,
|
57
56
|
children = _ref.children,
|
58
57
|
_ref$isVisible = _ref.isVisible,
|
59
|
-
isVisible = _ref$isVisible ===
|
60
|
-
media = _ref.media,
|
58
|
+
isVisible = _ref$isVisible === void 0 ? defaults.isVisible : _ref$isVisible,
|
61
59
|
renderMedia = _ref.renderMedia,
|
62
60
|
_ref$currentStep = _ref.currentStep,
|
63
|
-
currentStep = _ref$currentStep ===
|
61
|
+
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
64
62
|
_ref$nextButtonText = _ref.nextButtonText,
|
65
|
-
nextButtonText = _ref$nextButtonText ===
|
63
|
+
nextButtonText = _ref$nextButtonText === void 0 ? defaults.nextButtonText : _ref$nextButtonText,
|
66
64
|
_ref$previousButtonLa = _ref.previousButtonLabel,
|
67
|
-
previousButtonLabel = _ref$previousButtonLa ===
|
65
|
+
previousButtonLabel = _ref$previousButtonLa === void 0 ? defaults.previousButtonLabel : _ref$previousButtonLa,
|
68
66
|
_ref$closeButtonLabel = _ref.closeButtonLabel,
|
69
|
-
closeButtonLabel = _ref$closeButtonLabel ===
|
67
|
+
closeButtonLabel = _ref$closeButtonLabel === void 0 ? defaults.closeButtonLabel : _ref$closeButtonLabel,
|
70
68
|
_ref$onNext = _ref.onNext,
|
71
|
-
onNext = _ref$onNext ===
|
69
|
+
onNext = _ref$onNext === void 0 ? defaults.onNext : _ref$onNext,
|
72
70
|
_ref$onBack = _ref.onBack,
|
73
|
-
onBack = _ref$onBack ===
|
71
|
+
onBack = _ref$onBack === void 0 ? defaults.onBack : _ref$onBack,
|
74
72
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
75
73
|
var buttonFocusRef = React.useRef(undefined);
|
76
74
|
var scrollRef = React.useRef(undefined);
|
@@ -83,12 +81,11 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
83
81
|
currentProgStep = _useState4[0],
|
84
82
|
_setCurrentProgStep = _useState4[1];
|
85
83
|
var coachmark = context.useCoachmark();
|
86
|
-
var hasMedia = media || renderMedia;
|
87
84
|
var setCurrentProgStep = function setCurrentProgStep(value) {
|
88
85
|
if (currentProgStep > 0 && value === 0 && buttonFocusRef.current) {
|
89
86
|
setTimeout(function () {
|
90
87
|
var _buttonFocusRef$curre;
|
91
|
-
(_buttonFocusRef$curre = buttonFocusRef.current) === null || _buttonFocusRef$curre ===
|
88
|
+
(_buttonFocusRef$curre = buttonFocusRef.current) === null || _buttonFocusRef$curre === void 0 || _buttonFocusRef$curre.focus();
|
92
89
|
}, 1000);
|
93
90
|
}
|
94
91
|
_setCurrentProgStep(value);
|
@@ -97,7 +94,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
97
94
|
var progStepFloor = 0;
|
98
95
|
var progStepCeil = numProgSteps - 1;
|
99
96
|
var renderMediaContent = React.useMemo(function () {
|
100
|
-
return renderMedia === null || renderMedia ===
|
97
|
+
return renderMedia === null || renderMedia === void 0 ? void 0 : renderMedia({
|
101
98
|
playStep: currentProgStep
|
102
99
|
});
|
103
100
|
}, [currentProgStep, renderMedia]);
|
@@ -106,7 +103,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
106
103
|
// When current step is set by props
|
107
104
|
// scroll to the appropriate view on the carrousel
|
108
105
|
var targetStep = clamp.clamp(currentStep, progStepFloor, progStepCeil);
|
109
|
-
scrollRef === null || scrollRef ===
|
106
|
+
scrollRef === null || scrollRef === void 0 || (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 || (_scrollRef$current$sc = _scrollRef$current.scrollToView) === null || _scrollRef$current$sc === void 0 || _scrollRef$current$sc.call(_scrollRef$current, targetStep);
|
110
107
|
// Avoid circular call to this hook
|
111
108
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
112
109
|
}, [currentStep]);
|
@@ -138,11 +135,7 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
138
135
|
// example: [`${blockClass}__here-if-small`]: size === 'sm',
|
139
136
|
}),
|
140
137
|
ref: ref
|
141
|
-
}, devtools.getDevtoolsProps(componentName)),
|
142
|
-
className: "".concat(blockClass, "__element-stepped-media"),
|
143
|
-
filePaths: media.filePaths,
|
144
|
-
playStep: currentProgStep
|
145
|
-
}), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
|
138
|
+
}, devtools.getDevtoolsProps(componentName)), renderMedia && /*#__PURE__*/React.createElement("div", {
|
146
139
|
className: "".concat(blockClass, "__element-stepped-media")
|
147
140
|
}, renderMediaContent), numProgSteps === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, children, closeButtonLabel && /*#__PURE__*/React.createElement("div", {
|
148
141
|
className: cx("".concat(blockClass, "__footer"), 'coachmark-carousel-controls')
|
@@ -167,9 +160,9 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
167
160
|
onClick: function onClick() {
|
168
161
|
var _scrollRef$current2, _scrollRef$current2$s;
|
169
162
|
var targetStep = clamp.clamp(currentProgStep - 1, progStepFloor, progStepCeil);
|
170
|
-
scrollRef === null || scrollRef ===
|
163
|
+
scrollRef === null || scrollRef === void 0 || (_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 || (_scrollRef$current2$s = _scrollRef$current2.scrollToView) === null || _scrollRef$current2$s === void 0 || _scrollRef$current2$s.call(_scrollRef$current2, targetStep);
|
171
164
|
setCurrentProgStep(targetStep);
|
172
|
-
onBack === null || onBack ===
|
165
|
+
onBack === null || onBack === void 0 || onBack();
|
173
166
|
}
|
174
167
|
}, previousButtonLabel), currentProgStep < progStepCeil ? /*#__PURE__*/React.createElement(react.Button, {
|
175
168
|
size: "sm",
|
@@ -179,9 +172,9 @@ exports.CoachmarkOverlayElements = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
179
172
|
onClick: function onClick() {
|
180
173
|
var _scrollRef$current3, _scrollRef$current3$s;
|
181
174
|
var targetStep = clamp.clamp(currentProgStep + 1, progStepFloor, progStepCeil);
|
182
|
-
scrollRef === null || scrollRef ===
|
175
|
+
scrollRef === null || scrollRef === void 0 || (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 === void 0 || (_scrollRef$current3$s = _scrollRef$current3.scrollToView) === null || _scrollRef$current3$s === void 0 || _scrollRef$current3$s.call(_scrollRef$current3, targetStep);
|
183
176
|
setCurrentProgStep(targetStep);
|
184
|
-
onNext === null || onNext ===
|
177
|
+
onNext === null || onNext === void 0 || onNext();
|
185
178
|
}
|
186
179
|
}, nextButtonText) : closeButtonLabel && /*#__PURE__*/React.createElement(react.Button, _rollupPluginBabelHelpers.extends({
|
187
180
|
size: "sm",
|
@@ -224,18 +217,6 @@ exports.CoachmarkOverlayElements.propTypes = {
|
|
224
217
|
* managed in the parent component.
|
225
218
|
*/
|
226
219
|
isVisible: index.default.bool,
|
227
|
-
/**
|
228
|
-
* The object describing an image in one of two shapes.
|
229
|
-
* If a single media element is required, use `{render}`.
|
230
|
-
* If a stepped animation is required, use `{filePaths}`.
|
231
|
-
* @deprecated please use the `renderMedia` prop
|
232
|
-
*/
|
233
|
-
/**@ts-ignore*/
|
234
|
-
media: index.default.oneOfType([index.default.shape({
|
235
|
-
render: index.default.func
|
236
|
-
}), index.default.shape({
|
237
|
-
filePaths: index.default.arrayOf(index.default.string)
|
238
|
-
})]),
|
239
220
|
/**
|
240
221
|
* The label for the Next button.
|
241
222
|
*/
|
@@ -5,11 +5,6 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React, { ReactNode } from 'react';
|
8
|
-
type Media = {
|
9
|
-
render?: () => ReactNode;
|
10
|
-
} | {
|
11
|
-
filePaths?: string[];
|
12
|
-
};
|
13
8
|
interface CoachmarkStackProps {
|
14
9
|
/**
|
15
10
|
* CoachmarkStack should use a single CoachmarkOverlayElements component as a child.
|
@@ -28,15 +23,9 @@ interface CoachmarkStackProps {
|
|
28
23
|
*/
|
29
24
|
description: ReactNode;
|
30
25
|
/**
|
31
|
-
*
|
32
|
-
*
|
33
|
-
* If a single media element is required, use `{render}`.
|
34
|
-
*
|
35
|
-
* If a stepped animation is required, use `{filePaths}`.
|
36
|
-
*
|
37
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
26
|
+
* Optional prop to render any media like images or any animated media.
|
38
27
|
*/
|
39
|
-
|
28
|
+
renderMedia?: (params: any) => ReactNode;
|
40
29
|
/**
|
41
30
|
* The labels used to link to the stackable Coachmarks.
|
42
31
|
*/
|
@@ -21,7 +21,7 @@ var context = require('../Coachmark/utils/context.js');
|
|
21
21
|
var enums = require('../Coachmark/utils/enums.js');
|
22
22
|
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
23
23
|
|
24
|
-
var _excluded = ["children", "className", "onClose", "description", "
|
24
|
+
var _excluded = ["children", "className", "onClose", "description", "renderMedia", "navLinkLabels", "portalTarget", "closeButtonLabel", "tagline", "theme", "title"];
|
25
25
|
|
26
26
|
// Carbon and package components we use.
|
27
27
|
/* TODO: @import(s) of carbon components and other package components. */
|
@@ -54,22 +54,22 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
54
54
|
var children = _ref.children,
|
55
55
|
className = _ref.className,
|
56
56
|
_ref$onClose = _ref.onClose,
|
57
|
-
onClose = _ref$onClose ===
|
57
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
58
58
|
description = _ref.description,
|
59
|
-
|
59
|
+
renderMedia = _ref.renderMedia,
|
60
60
|
navLinkLabels = _ref.navLinkLabels,
|
61
61
|
_ref$portalTarget = _ref.portalTarget,
|
62
|
-
portalTarget = _ref$portalTarget ===
|
62
|
+
portalTarget = _ref$portalTarget === void 0 ? defaults.portalTarget : _ref$portalTarget,
|
63
63
|
closeButtonLabel = _ref.closeButtonLabel,
|
64
64
|
tagline = _ref.tagline,
|
65
65
|
_ref$theme = _ref.theme,
|
66
|
-
theme = _ref$theme ===
|
66
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
67
67
|
title = _ref.title,
|
68
68
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
69
69
|
var portalNode = React.useRef(null);
|
70
70
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
71
71
|
var _document$querySelect, _document, _document2, _document3;
|
72
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
72
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
73
73
|
}, [portalTarget]);
|
74
74
|
var stackHomeRef = React.useRef(null);
|
75
75
|
var stackedCoachmarkRefs = React.useRef([]);
|
@@ -214,7 +214,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
214
214
|
className: cx("".concat(settings.pkg.prefix, "--coachmark-overlay"), "".concat(settings.pkg.prefix, "--coachmark-overlay__").concat(theme), elementBlockClass, selectedItemNumber > 0 && "".concat(elementBlockClass, "--is-stacked"), selectedItemNumber > 0 && "".concat(elementBlockClass, "--is-stacked__").concat(theme), isOpen && "".concat(elementBlockClass, "--is-visible"), mountedRef.current && "".concat(elementBlockClass, "--is-mounted")),
|
215
215
|
isOpen: isOpen && selectedItemNumber < 1,
|
216
216
|
description: description,
|
217
|
-
|
217
|
+
renderMedia: renderMedia,
|
218
218
|
navLinkLabels: navLinkLabels,
|
219
219
|
onClickNavItem: handleClickNavItem,
|
220
220
|
onClose: function onClose() {
|
@@ -223,7 +223,7 @@ exports.CoachmarkStack = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
223
223
|
portalTarget: portalTarget,
|
224
224
|
closeButtonLabel: closeButtonLabel,
|
225
225
|
title: title
|
226
|
-
}), portalNode !== null && portalNode !==
|
226
|
+
}), portalNode !== null && portalNode !== void 0 && portalNode.current ? /*#__PURE__*/reactDom.createPortal(wrappedChildren, portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) : null));
|
227
227
|
});
|
228
228
|
|
229
229
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -254,20 +254,6 @@ exports.CoachmarkStack.propTypes = {
|
|
254
254
|
* The description of the Coachmark.
|
255
255
|
*/
|
256
256
|
description: index.default.node.isRequired,
|
257
|
-
/**
|
258
|
-
* The object describing an image in one of two shapes.
|
259
|
-
*
|
260
|
-
* If a single media element is required, use `{render}`.
|
261
|
-
*
|
262
|
-
* If a stepped animation is required, use `{filePaths}`.
|
263
|
-
*
|
264
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
265
|
-
*/
|
266
|
-
media: index.default.oneOfType([index.default.shape({
|
267
|
-
render: index.default.func
|
268
|
-
}), index.default.shape({
|
269
|
-
filePaths: index.default.arrayOf(index.default.string)
|
270
|
-
})]),
|
271
257
|
/**
|
272
258
|
* The labels used to link to the stackable Coachmarks.
|
273
259
|
*/
|
@@ -281,6 +267,10 @@ exports.CoachmarkStack.propTypes = {
|
|
281
267
|
* The default is `document.body`.
|
282
268
|
*/
|
283
269
|
portalTarget: index.default.string,
|
270
|
+
/**
|
271
|
+
* Optional prop to render any media like images or animated media.
|
272
|
+
*/
|
273
|
+
renderMedia: index.default.func,
|
284
274
|
/**
|
285
275
|
* The tagline title which will be fixed to the bottom right of the window and will serve as the display trigger.
|
286
276
|
*/
|
@@ -5,13 +5,6 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
import React, { ReactNode } from 'react';
|
8
|
-
type Media = {
|
9
|
-
render?: () => ReactNode;
|
10
|
-
filePaths?: never;
|
11
|
-
} | {
|
12
|
-
render?: never;
|
13
|
-
filePaths?: string[];
|
14
|
-
};
|
15
8
|
interface CoachmarkStackHomeProps {
|
16
9
|
/**
|
17
10
|
* Optional class name for this component.
|
@@ -29,16 +22,6 @@ interface CoachmarkStackHomeProps {
|
|
29
22
|
* If the stack home is open.
|
30
23
|
*/
|
31
24
|
isOpen: boolean;
|
32
|
-
/**
|
33
|
-
* The object describing an image in one of two shapes.
|
34
|
-
*
|
35
|
-
* If a single media element is required, use `{render}`.
|
36
|
-
*
|
37
|
-
* If a stepped animation is required, use `{filePaths}`.
|
38
|
-
*
|
39
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
40
|
-
*/
|
41
|
-
media?: Media;
|
42
25
|
/**
|
43
26
|
* Optional prop to render any media like images or any animated media.
|
44
27
|
*/
|
@@ -18,11 +18,9 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
18
18
|
var settings = require('../../settings.js');
|
19
19
|
var reactDom = require('react-dom');
|
20
20
|
var CoachmarkHeader = require('../Coachmark/CoachmarkHeader.js');
|
21
|
-
var SteppedAnimatedMedia = require('../SteppedAnimatedMedia/SteppedAnimatedMedia.js');
|
22
|
-
var propsHelper = require('../../global/js/utils/props-helper.js');
|
23
21
|
var useIsomorphicEffect = require('../../global/js/hooks/useIsomorphicEffect.js');
|
24
22
|
|
25
|
-
var _excluded = ["className", "description", "isOpen", "
|
23
|
+
var _excluded = ["className", "description", "isOpen", "renderMedia", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
26
24
|
// Carbon and package components we use.
|
27
25
|
/* TODO: @import(s) of carbon components and other package components. */
|
28
26
|
|
@@ -39,7 +37,6 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
39
37
|
var className = _ref.className,
|
40
38
|
description = _ref.description,
|
41
39
|
isOpen = _ref.isOpen,
|
42
|
-
media = _ref.media,
|
43
40
|
renderMedia = _ref.renderMedia,
|
44
41
|
navLinkLabels = _ref.navLinkLabels,
|
45
42
|
onClickNavItem = _ref.onClickNavItem,
|
@@ -53,7 +50,6 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
53
50
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
54
51
|
linkFocusIndex = _useState2[0],
|
55
52
|
setLinkFocusIndex = _useState2[1];
|
56
|
-
var hasMedia = media || renderMedia;
|
57
53
|
React.useEffect(function () {
|
58
54
|
setTimeout(function () {
|
59
55
|
if (isOpen && buttonFocusRef.current) {
|
@@ -64,7 +60,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
64
60
|
var portalNode = React.useRef(null);
|
65
61
|
useIsomorphicEffect.useIsomorphicEffect(function () {
|
66
62
|
var _document$querySelect, _document, _document2, _document3;
|
67
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
63
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
68
64
|
}, [portalTarget]);
|
69
65
|
if (!navLinkLabels) {
|
70
66
|
return pconsole.default.warn("".concat(componentName, " is an Onboarding internal component and is not intended for general use."));
|
@@ -83,7 +79,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
83
79
|
ref: ref
|
84
80
|
}, label));
|
85
81
|
}
|
86
|
-
return portalNode !== null && portalNode !==
|
82
|
+
return portalNode !== null && portalNode !== void 0 && portalNode.current ? /*#__PURE__*/reactDom.createPortal(/*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
87
83
|
className: cx(blockClass, className),
|
88
84
|
ref: ref
|
89
85
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(CoachmarkHeader.CoachmarkHeader, {
|
@@ -95,14 +91,10 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
95
91
|
className: "".concat(overlayClass, "__body")
|
96
92
|
}, /*#__PURE__*/React.createElement("div", {
|
97
93
|
className: "".concat(overlayClass, "-element")
|
98
|
-
}, !
|
94
|
+
}, !renderMedia && /*#__PURE__*/React.createElement(icons.Idea, {
|
99
95
|
size: 20,
|
100
96
|
className: "".concat(blockClass, "__icon-idea")
|
101
|
-
}),
|
102
|
-
className: "".concat(blockClass, "__element-stepped-media"),
|
103
|
-
filePaths: media.filePaths,
|
104
|
-
playStep: 0
|
105
|
-
}), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
|
97
|
+
}), renderMedia && /*#__PURE__*/React.createElement("div", {
|
106
98
|
className: "".concat(blockClass, "__element-stepped-media")
|
107
99
|
}, renderMedia({
|
108
100
|
playStep: 0
|
@@ -127,7 +119,7 @@ exports.CoachmarkStackHome = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
127
119
|
setLinkFocusIndex(0);
|
128
120
|
_onClose();
|
129
121
|
}
|
130
|
-
}, closeButtonLabel))))), portalNode === null || portalNode ===
|
122
|
+
}, closeButtonLabel))))), portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) : null;
|
131
123
|
});
|
132
124
|
|
133
125
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -157,21 +149,6 @@ exports.CoachmarkStackHome.propTypes = {
|
|
157
149
|
* If the stack home is open.
|
158
150
|
*/
|
159
151
|
isOpen: index.default.bool.isRequired,
|
160
|
-
/**
|
161
|
-
* The object describing an image in one of two shapes.
|
162
|
-
*
|
163
|
-
* If a single media element is required, use `{render}`.
|
164
|
-
*
|
165
|
-
* If a stepped animation is required, use `{filePaths}`.
|
166
|
-
*
|
167
|
-
* @see {@link MEDIA_PROP_TYPE}.
|
168
|
-
* @deprecated please use the `renderMedia` prop
|
169
|
-
*/
|
170
|
-
media: propsHelper.deprecateProp(index.default.oneOfType([index.default.shape({
|
171
|
-
render: index.default.func
|
172
|
-
}), index.default.shape({
|
173
|
-
filePaths: index.default.arrayOf(index.default.string)
|
174
|
-
})]), ''),
|
175
152
|
/**
|
176
153
|
* The labels used to link to the stackable Coachmarks.
|
177
154
|
*/
|
@@ -37,7 +37,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
37
37
|
var onRemove = props.onRemove,
|
38
38
|
onChange = props.onChange,
|
39
39
|
_props$condition = props.condition,
|
40
|
-
condition = _props$condition ===
|
40
|
+
condition = _props$condition === void 0 ? {} : _props$condition,
|
41
41
|
conjunction = props.conjunction,
|
42
42
|
onConnectorOperatorChange = props.onConnectorOperatorChange,
|
43
43
|
isStatement = props.isStatement,
|
@@ -81,9 +81,9 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
81
81
|
//filtering the current property to access its properties and config options
|
82
82
|
var getCurrentConfig = function getCurrentConfig(property) {
|
83
83
|
var _inputConfig$properti, _inputConfig$properti2;
|
84
|
-
return (_inputConfig$properti = inputConfig === null || inputConfig ===
|
84
|
+
return (_inputConfig$properti = inputConfig === null || inputConfig === void 0 || (_inputConfig$properti2 = inputConfig.properties) === null || _inputConfig$properti2 === void 0 ? void 0 : _inputConfig$properti2.find(function (eachProperty) {
|
85
85
|
return eachProperty.id == property;
|
86
|
-
})) !== null && _inputConfig$properti !==
|
86
|
+
})) !== null && _inputConfig$properti !== void 0 ? _inputConfig$properti : {};
|
87
87
|
};
|
88
88
|
var _ref = getCurrentConfig(property),
|
89
89
|
icon = _ref.icon,
|
@@ -99,7 +99,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
99
99
|
date: ConditionBuilderItemDate.ConditionBuilderItemDate,
|
100
100
|
time: ConditionBuilderItemTime.ConditionBuilderItemTime,
|
101
101
|
option: ItemOptionForValueField.ItemOptionForValueField,
|
102
|
-
custom: config === null || config ===
|
102
|
+
custom: config === null || config === void 0 ? void 0 : config.component,
|
103
103
|
textarea: ConditionBuilderItemText.ConditionBuilderItemText
|
104
104
|
};
|
105
105
|
var ItemComponent = itemComponents[type];
|
@@ -111,7 +111,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
111
111
|
};
|
112
112
|
var onStatementChangeHandler = function onStatementChangeHandler(v, evt) {
|
113
113
|
util.focusThisField(evt, conditionBuilderRef);
|
114
|
-
onStatementChange === null || onStatementChange ===
|
114
|
+
onStatementChange === null || onStatementChange === void 0 || onStatementChange(v);
|
115
115
|
};
|
116
116
|
var onPropertyChangeHandler = function onPropertyChangeHandler(newProperty) {
|
117
117
|
onChange(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, condition), {}, {
|
@@ -149,7 +149,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
149
149
|
};
|
150
150
|
var getOperators = function getOperators() {
|
151
151
|
// @ts-ignore
|
152
|
-
if (config !== null && config !==
|
152
|
+
if (config !== null && config !== void 0 && config.operators) {
|
153
153
|
// @ts-ignore
|
154
154
|
return config.operators;
|
155
155
|
}
|
@@ -191,7 +191,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
191
191
|
className: "".concat(util.blockClass, "__gap"),
|
192
192
|
operator: conjunction,
|
193
193
|
onChange: function onChange(op) {
|
194
|
-
return onConnectorOperatorChange === null || onConnectorOperatorChange ===
|
194
|
+
return onConnectorOperatorChange === null || onConnectorOperatorChange === void 0 ? void 0 : onConnectorOperatorChange(op);
|
195
195
|
}
|
196
196
|
}) : '', isStatement && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
197
197
|
label: group.statement,
|
@@ -211,9 +211,9 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
211
211
|
isStatement: true
|
212
212
|
}
|
213
213
|
})), /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
214
|
-
label: label !== null && label !==
|
214
|
+
label: label !== null && label !== void 0 ? label : condition === null || condition === void 0 ? void 0 : condition.property,
|
215
215
|
title: propertyText,
|
216
|
-
renderIcon: icon !== null && icon !==
|
216
|
+
renderIcon: icon !== null && icon !== void 0 ? icon : undefined,
|
217
217
|
className: "".concat(util.blockClass, "__property-field"),
|
218
218
|
"data-name": "propertyField",
|
219
219
|
condition: condition,
|
@@ -227,7 +227,7 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
227
227
|
},
|
228
228
|
onChange: onPropertyChangeHandler,
|
229
229
|
config: {
|
230
|
-
options: inputConfig === null || inputConfig ===
|
230
|
+
options: inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.properties
|
231
231
|
}
|
232
232
|
})), util.checkIsValid(property) && /*#__PURE__*/React.createElement(ConditionBuilderItem.ConditionBuilderItem, {
|
233
233
|
label: operator,
|
@@ -273,10 +273,10 @@ var ConditionBlock = function ConditionBlock(props) {
|
|
273
273
|
wrapperClassName: "".concat(util.blockClass, "__close-condition-wrapper")
|
274
274
|
})), manageActionButtons(conditionIndex, group.conditions) && /*#__PURE__*/React.createElement(ConditionBuilderAdd.default, {
|
275
275
|
onClick: function onClick() {
|
276
|
-
addConditionHandler === null || addConditionHandler ===
|
276
|
+
addConditionHandler === null || addConditionHandler === void 0 || addConditionHandler(conditionIndex);
|
277
277
|
},
|
278
278
|
addConditionSubGroupHandler: function addConditionSubGroupHandler() {
|
279
|
-
_addConditionSubGroupHandler === null || _addConditionSubGroupHandler ===
|
279
|
+
_addConditionSubGroupHandler === null || _addConditionSubGroupHandler === void 0 || _addConditionSubGroupHandler(conditionIndex);
|
280
280
|
},
|
281
281
|
showConditionSubGroupPreviewHandler: showConditionSubGroupPreviewHandler,
|
282
282
|
hideConditionSubGroupPreviewHandler: hideConditionSubGroupPreviewHandler,
|
@@ -50,14 +50,14 @@ exports.ConditionBuilder = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
50
|
var className = _ref.className,
|
51
51
|
inputConfig = _ref.inputConfig,
|
52
52
|
_ref$startConditionLa = _ref.startConditionLabel,
|
53
|
-
startConditionLabel = _ref$startConditionLa ===
|
53
|
+
startConditionLabel = _ref$startConditionLa === void 0 ? 'Add Condition' : _ref$startConditionLa,
|
54
54
|
popOverSearchThreshold = _ref.popOverSearchThreshold,
|
55
55
|
getOptions = _ref.getOptions,
|
56
56
|
initialState = _ref.initialState,
|
57
57
|
getConditionState = _ref.getConditionState,
|
58
58
|
getActionsState = _ref.getActionsState,
|
59
59
|
_ref$variant = _ref.variant,
|
60
|
-
variant = _ref$variant ===
|
60
|
+
variant = _ref$variant === void 0 ? util.NON_HIERARCHICAL_VARIANT : _ref$variant,
|
61
61
|
actions = _ref.actions,
|
62
62
|
translateWithId = _ref.translateWithId,
|
63
63
|
statementConfigCustom = _ref.statementConfigCustom,
|
@@ -29,7 +29,7 @@ var ConditionBuilderActions = function ConditionBuilderActions(_ref) {
|
|
29
29
|
className = _ref.className;
|
30
30
|
var _useContext = React.useContext(ConditionBuilderProvider.ConditionBuilderContext),
|
31
31
|
_useContext$actionSta = _useContext.actionState,
|
32
|
-
actionState = _useContext$actionSta ===
|
32
|
+
actionState = _useContext$actionSta === void 0 ? [] : _useContext$actionSta,
|
33
33
|
setActionState = _useContext.setActionState;
|
34
34
|
var _useState = React.useState(-1),
|
35
35
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
@@ -49,7 +49,7 @@ var ConditionBuilderActions = function ConditionBuilderActions(_ref) {
|
|
49
49
|
label: undefined,
|
50
50
|
popoverToOpen: 'valueField'
|
51
51
|
};
|
52
|
-
setActionState === null || setActionState ===
|
52
|
+
setActionState === null || setActionState === void 0 || setActionState([].concat(_rollupPluginBabelHelpers.toConsumableArray(actionState), [action]));
|
53
53
|
};
|
54
54
|
var onchangeHandler = function onchangeHandler(selectedId, actionIndex) {
|
55
55
|
var action = actions.find(function (action) {
|
@@ -60,10 +60,10 @@ var ConditionBuilderActions = function ConditionBuilderActions(_ref) {
|
|
60
60
|
var newAction = _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, action), {}, {
|
61
61
|
id: actionState[actionIndex].id
|
62
62
|
});
|
63
|
-
setActionState === null || setActionState ===
|
63
|
+
setActionState === null || setActionState === void 0 || setActionState([].concat(_rollupPluginBabelHelpers.toConsumableArray(actionState.slice(0, actionIndex)), [newAction], _rollupPluginBabelHelpers.toConsumableArray(actionState.slice(actionIndex + 1))));
|
64
64
|
};
|
65
65
|
var onRemove = function onRemove(selectedId) {
|
66
|
-
setActionState === null || setActionState ===
|
66
|
+
setActionState === null || setActionState === void 0 || setActionState(actionState.filter(function (action) {
|
67
67
|
return action.id !== selectedId;
|
68
68
|
}));
|
69
69
|
};
|
@@ -82,7 +82,7 @@ var ConditionBuilderActions = function ConditionBuilderActions(_ref) {
|
|
82
82
|
className: "".concat(util.blockClass, "__condition-wrapper"),
|
83
83
|
role: "grid",
|
84
84
|
"aria-label": actionSectionText
|
85
|
-
}, actionState === null || actionState ===
|
85
|
+
}, actionState === null || actionState === void 0 ? void 0 : actionState.map(function (action, index) {
|
86
86
|
return /*#__PURE__*/React.createElement("div", {
|
87
87
|
key: action.id,
|
88
88
|
role: "row",
|
@@ -35,7 +35,7 @@ var ConditionBuilderAdd = function ConditionBuilderAdd(_ref) {
|
|
35
35
|
addConditionRowText = _useTranslations2[1],
|
36
36
|
addSubgroupText = _useTranslations2[2];
|
37
37
|
var onClickHandler = function onClickHandler() {
|
38
|
-
hideConditionPreviewHandler === null || hideConditionPreviewHandler ===
|
38
|
+
hideConditionPreviewHandler === null || hideConditionPreviewHandler === void 0 || hideConditionPreviewHandler();
|
39
39
|
onClick();
|
40
40
|
};
|
41
41
|
var previewHandlers = function previewHandlers() {
|
@@ -72,7 +72,7 @@ var ConditionBuilderAdd = function ConditionBuilderAdd(_ref) {
|
|
72
72
|
className: "".concat(util.blockClass, "__add-button"),
|
73
73
|
hideLabel: true,
|
74
74
|
"data-name": "addButton",
|
75
|
-
label: buttonLabel !== null && buttonLabel !==
|
75
|
+
label: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : addConditionText,
|
76
76
|
tabIndex: tabIndex,
|
77
77
|
wrapperClassName: "".concat(util.blockClass, "__add-condition-wrapper")
|
78
78
|
})), enableSubGroup && /*#__PURE__*/React.createElement(ConditionBuilderButton.ConditionBuilderButton, _rollupPluginBabelHelpers.extends({
|
@@ -40,7 +40,7 @@ var ConditionBuilderButton = function ConditionBuilderButton(_ref) {
|
|
40
40
|
var carbonPrefix = react.usePrefix();
|
41
41
|
var Button = function Button() {
|
42
42
|
var _rest$dataName;
|
43
|
-
var dataName = (_rest$dataName = rest['data-name']) !== null && _rest$dataName !==
|
43
|
+
var dataName = (_rest$dataName = rest['data-name']) !== null && _rest$dataName !== void 0 ? _rest$dataName : '';
|
44
44
|
return /*#__PURE__*/React.createElement("button", _rollupPluginBabelHelpers.extends({
|
45
45
|
tabIndex: tabIndex !== undefined ? tabIndex : -1,
|
46
46
|
className: cx([className, "".concat(util.blockClass, "__button"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(util.blockClass, "__text-ellipsis"), showToolTip && !hideLabel && !isInvalid), _rollupPluginBabelHelpers.defineProperty({}, "".concat(util.blockClass, "__invalid-input"), isInvalid)]),
|