@carbon/ibm-products 2.61.0-rc.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
@@ -1,60 +0,0 @@
|
|
1
|
-
export namespace panelVariants {
|
2
|
-
function hidden(shouldReduceMotion: any): {
|
3
|
-
width: number;
|
4
|
-
overflow: string;
|
5
|
-
transition: {
|
6
|
-
duration: number;
|
7
|
-
ease: number | number[];
|
8
|
-
when: string;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
function visible(shouldReduceMotion: any): {
|
12
|
-
width: number;
|
13
|
-
overflow: string;
|
14
|
-
transition: {
|
15
|
-
duration: number;
|
16
|
-
ease: number | number[];
|
17
|
-
when: string;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
}
|
21
|
-
export namespace innerContainerVariants {
|
22
|
-
export function hidden_1(shouldReduceMotion: any): {
|
23
|
-
opacity: number;
|
24
|
-
transition: {
|
25
|
-
duration: number;
|
26
|
-
ease: number | number[];
|
27
|
-
};
|
28
|
-
};
|
29
|
-
export { hidden_1 as hidden };
|
30
|
-
export function visible_1(shouldReduceMotion: any): {
|
31
|
-
opacity: number;
|
32
|
-
transition: {
|
33
|
-
duration: number;
|
34
|
-
ease: number | number[];
|
35
|
-
when: string | null;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
export { visible_1 as visible };
|
39
|
-
}
|
40
|
-
export namespace actionSetVariants {
|
41
|
-
export function hidden_2(shouldReduceMotion: any): {
|
42
|
-
y: number;
|
43
|
-
opacity: number;
|
44
|
-
transition: {
|
45
|
-
duration: number;
|
46
|
-
ease: number | number[];
|
47
|
-
};
|
48
|
-
};
|
49
|
-
export { hidden_2 as hidden };
|
50
|
-
export function visible_2(shouldReduceMotion: any): {
|
51
|
-
y: number;
|
52
|
-
opacity: number;
|
53
|
-
transition: {
|
54
|
-
duration: number;
|
55
|
-
ease: number | number[];
|
56
|
-
delay: number;
|
57
|
-
};
|
58
|
-
};
|
59
|
-
export { visible_2 as visible };
|
60
|
-
}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
import { EASINGS, DURATIONS } from '../../../../../../global/js/utils/motionConstants.js';
|
9
|
-
import { PANEL_WIDTH, ACTION_SET_HEIGHT } from '../constants.js';
|
10
|
-
|
11
|
-
var panelVariants = {
|
12
|
-
hidden: function hidden(shouldReduceMotion) {
|
13
|
-
return {
|
14
|
-
width: 0,
|
15
|
-
overflow: 'hidden',
|
16
|
-
transition: {
|
17
|
-
duration: shouldReduceMotion ? 0 : DURATIONS.fast02,
|
18
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.exit,
|
19
|
-
when: 'afterChildren'
|
20
|
-
}
|
21
|
-
};
|
22
|
-
},
|
23
|
-
visible: function visible(shouldReduceMotion) {
|
24
|
-
return {
|
25
|
-
width: PANEL_WIDTH,
|
26
|
-
overflow: 'visible',
|
27
|
-
transition: {
|
28
|
-
duration: shouldReduceMotion ? 0 : DURATIONS.moderate02,
|
29
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.entrance,
|
30
|
-
when: 'beforeChildren'
|
31
|
-
}
|
32
|
-
};
|
33
|
-
}
|
34
|
-
};
|
35
|
-
var innerContainerVariants = {
|
36
|
-
hidden: function hidden(shouldReduceMotion) {
|
37
|
-
return {
|
38
|
-
opacity: 0,
|
39
|
-
transition: {
|
40
|
-
duration: shouldReduceMotion ? DURATIONS.moderate01 : DURATIONS.fast01,
|
41
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.exit
|
42
|
-
}
|
43
|
-
};
|
44
|
-
},
|
45
|
-
visible: function visible(shouldReduceMotion) {
|
46
|
-
return {
|
47
|
-
opacity: 1,
|
48
|
-
transition: {
|
49
|
-
duration: shouldReduceMotion ? DURATIONS.moderate01 : DURATIONS.fast02,
|
50
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.entrance,
|
51
|
-
when: shouldReduceMotion ? null : 'beforeChildren'
|
52
|
-
}
|
53
|
-
};
|
54
|
-
}
|
55
|
-
};
|
56
|
-
var actionSetVariants = {
|
57
|
-
hidden: function hidden(shouldReduceMotion) {
|
58
|
-
return {
|
59
|
-
y: shouldReduceMotion ? 0 : ACTION_SET_HEIGHT,
|
60
|
-
opacity: shouldReduceMotion ? 0 : 1,
|
61
|
-
transition: {
|
62
|
-
duration: shouldReduceMotion ? DURATIONS.moderate01 : DURATIONS.fast01,
|
63
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.exit
|
64
|
-
}
|
65
|
-
};
|
66
|
-
},
|
67
|
-
visible: function visible(shouldReduceMotion) {
|
68
|
-
return {
|
69
|
-
y: 0,
|
70
|
-
opacity: 1,
|
71
|
-
transition: {
|
72
|
-
duration: shouldReduceMotion ? DURATIONS.moderate01 : DURATIONS.fast02,
|
73
|
-
ease: shouldReduceMotion ? 0 : EASINGS.productive.entrance,
|
74
|
-
delay: shouldReduceMotion ? 0.075 : 0
|
75
|
-
}
|
76
|
-
};
|
77
|
-
}
|
78
|
-
};
|
79
|
-
|
80
|
-
export { actionSetVariants, innerContainerVariants, panelVariants };
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2023, 2024
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import React from 'react';
|
8
|
-
export interface SteppedAnimatedMediaProps {
|
9
|
-
/**
|
10
|
-
* Optional class name for this component.
|
11
|
-
*/
|
12
|
-
className?: string;
|
13
|
-
/**
|
14
|
-
* The file path(s) to json formatted Lottie animation files.
|
15
|
-
*/
|
16
|
-
filePaths: string[] | undefined;
|
17
|
-
/**
|
18
|
-
* Which animation step from the filePaths array to play.
|
19
|
-
*/
|
20
|
-
playStep?: number;
|
21
|
-
}
|
22
|
-
/**
|
23
|
-
* The SteppedAnimatedMedia is an Onboarding internal component and is not intended for general use.
|
24
|
-
*/
|
25
|
-
export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
|
@@ -1,146 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import React__default, { useState, useRef, useEffect } from 'react';
|
10
|
-
import lottie from 'lottie-web';
|
11
|
-
import PropTypes from '../../_virtual/index.js';
|
12
|
-
import cx from 'classnames';
|
13
|
-
import { clamp } from '../../global/js/utils/clamp.js';
|
14
|
-
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
15
|
-
import { pkg } from '../../settings.js';
|
16
|
-
|
17
|
-
var _excluded = ["className", "playStep", "filePaths"];
|
18
|
-
|
19
|
-
// The block part of our conventional BEM class names (blockClass__E--M).
|
20
|
-
var blockClass = "".concat(pkg.prefix, "--stepped-animated-media");
|
21
|
-
var componentName = 'SteppedAnimatedMedia';
|
22
|
-
|
23
|
-
// NOTE: the component SCSS is not imported here: it is rolled up separately.
|
24
|
-
|
25
|
-
// Default values for props
|
26
|
-
var defaults = {
|
27
|
-
playStep: 0
|
28
|
-
};
|
29
|
-
/**
|
30
|
-
* The SteppedAnimatedMedia is an Onboarding internal component and is not intended for general use.
|
31
|
-
*/
|
32
|
-
var SteppedAnimatedMedia = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
33
|
-
var className = _ref.className,
|
34
|
-
_ref$playStep = _ref.playStep,
|
35
|
-
playStep = _ref$playStep === undefined ? defaults.playStep : _ref$playStep,
|
36
|
-
filePaths = _ref.filePaths,
|
37
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
38
|
-
var _useState = useState([]),
|
39
|
-
_useState2 = _slicedToArray(_useState, 2),
|
40
|
-
jsonData = _useState2[0],
|
41
|
-
setJsonData = _useState2[1];
|
42
|
-
var animRef = useRef(undefined);
|
43
|
-
var backupRef = useRef(null);
|
44
|
-
var localRef = ref !== null && ref !== undefined ? ref : backupRef;
|
45
|
-
var localRefValue = localRef.current;
|
46
|
-
var filePathStr = filePaths === null || filePaths === undefined ? undefined : filePaths.join(); //converting the array to string will avoid unwanted useEffect trigger.
|
47
|
-
// load animation source
|
48
|
-
useEffect(function () {
|
49
|
-
var isJsonFile = function isJsonFile(filePath) {
|
50
|
-
return filePath.includes('.json');
|
51
|
-
};
|
52
|
-
function loadArtifact() {
|
53
|
-
return _loadArtifact.apply(this, arguments);
|
54
|
-
}
|
55
|
-
function _loadArtifact() {
|
56
|
-
_loadArtifact = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
57
|
-
var allJsonArtifacts, rawResponse, jsonResponse, fileData;
|
58
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
59
|
-
while (1) switch (_context.prev = _context.next) {
|
60
|
-
case 0:
|
61
|
-
if (!(filePaths && filePaths.every(isJsonFile))) {
|
62
|
-
_context.next = 10;
|
63
|
-
break;
|
64
|
-
}
|
65
|
-
allJsonArtifacts = filePaths.map(function (el) {
|
66
|
-
return fetch(el);
|
67
|
-
});
|
68
|
-
_context.next = 4;
|
69
|
-
return Promise.all(allJsonArtifacts);
|
70
|
-
case 4:
|
71
|
-
rawResponse = _context.sent;
|
72
|
-
jsonResponse = rawResponse.map(function (el) {
|
73
|
-
return el.json();
|
74
|
-
});
|
75
|
-
_context.next = 8;
|
76
|
-
return Promise.all(jsonResponse);
|
77
|
-
case 8:
|
78
|
-
fileData = _context.sent;
|
79
|
-
setJsonData(fileData);
|
80
|
-
case 10:
|
81
|
-
case "end":
|
82
|
-
return _context.stop();
|
83
|
-
}
|
84
|
-
}, _callee);
|
85
|
-
}));
|
86
|
-
return _loadArtifact.apply(this, arguments);
|
87
|
-
}
|
88
|
-
loadArtifact();
|
89
|
-
// eslint-disable-next-line
|
90
|
-
}, [filePathStr]);
|
91
|
-
useEffect(function () {
|
92
|
-
var _window;
|
93
|
-
var prefersReducedMotion = (_window = window) !== null && _window !== undefined && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
|
94
|
-
if (localRefValue) {
|
95
|
-
var _animRef$current;
|
96
|
-
(_animRef$current = animRef.current) === null || _animRef$current === undefined || _animRef$current.destroy();
|
97
|
-
animRef.current = lottie.loadAnimation({
|
98
|
-
container: localRefValue,
|
99
|
-
renderer: 'svg',
|
100
|
-
animationData: jsonData[clamp(playStep, 0, jsonData.length - 1)],
|
101
|
-
loop: false,
|
102
|
-
autoplay: false,
|
103
|
-
rendererSettings: {
|
104
|
-
preserveAspectRatio: 'xMidYMid slice'
|
105
|
-
}
|
106
|
-
});
|
107
|
-
if (prefersReducedMotion) {
|
108
|
-
var _animRef$current2;
|
109
|
-
(_animRef$current2 = animRef.current) === null || _animRef$current2 === undefined || _animRef$current2.goToAndStop(0);
|
110
|
-
} else {
|
111
|
-
var _animRef$current3;
|
112
|
-
(_animRef$current3 = animRef.current) === null || _animRef$current3 === undefined || _animRef$current3.goToAndPlay(0);
|
113
|
-
}
|
114
|
-
}
|
115
|
-
return function () {
|
116
|
-
var _animRef$current4;
|
117
|
-
return (_animRef$current4 = animRef.current) === null || _animRef$current4 === undefined ? undefined : _animRef$current4.destroy();
|
118
|
-
};
|
119
|
-
}, [jsonData, localRefValue, playStep]);
|
120
|
-
if (!jsonData) {
|
121
|
-
return null;
|
122
|
-
}
|
123
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
124
|
-
className: cx(blockClass, className),
|
125
|
-
role: "img",
|
126
|
-
ref: localRef
|
127
|
-
}, getDevtoolsProps(componentName)));
|
128
|
-
});
|
129
|
-
SteppedAnimatedMedia.displayName = componentName;
|
130
|
-
SteppedAnimatedMedia.propTypes = {
|
131
|
-
/**
|
132
|
-
* Optional class name for this component.
|
133
|
-
*/
|
134
|
-
className: PropTypes.string,
|
135
|
-
/**
|
136
|
-
* The file path(s) to json formatted Lottie animation files.
|
137
|
-
*/
|
138
|
-
/**@ts-ignore*/
|
139
|
-
filePaths: PropTypes.arrayOf(PropTypes.string).isRequired,
|
140
|
-
/**
|
141
|
-
* Which animation step from the filePaths array to play.
|
142
|
-
*/
|
143
|
-
playStep: PropTypes.number
|
144
|
-
};
|
145
|
-
|
146
|
-
export { SteppedAnimatedMedia };
|
@@ -1,8 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2023, 2023
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
export { SteppedAnimatedMedia } from './SteppedAnimatedMedia';
|
8
|
-
export type { SteppedAnimatedMediaProps } from './SteppedAnimatedMedia';
|
@@ -1 +0,0 @@
|
|
1
|
-
export function getBezierValues(type: string, mode: string): number[];
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
import { motion } from '@carbon/motion';
|
9
|
-
|
10
|
-
/**
|
11
|
-
* This function turns a cubic-bezier() string to an
|
12
|
-
* array of values that we can use with framer-motion
|
13
|
-
* @param {string} type - The carbon motion type, either 'standard', 'entrance', or 'exit'
|
14
|
-
* @param {string} mode - The carbon motion mode, either 'productive', or 'expressive'
|
15
|
-
*/
|
16
|
-
|
17
|
-
var getBezierValues = function getBezierValues(type, mode) {
|
18
|
-
var cubicBezier = motion(type, mode);
|
19
|
-
var extractStringFromParens = /\(([^)]+)\)/;
|
20
|
-
var desiredBezierStrings = extractStringFromParens.exec(cubicBezier)[1];
|
21
|
-
var formattedDesiredBezierStrings = desiredBezierStrings.trim().split(',').map(Number);
|
22
|
-
if (Array.isArray(formattedDesiredBezierStrings)) {
|
23
|
-
return formattedDesiredBezierStrings;
|
24
|
-
}
|
25
|
-
return [];
|
26
|
-
};
|
27
|
-
|
28
|
-
export { getBezierValues };
|
@@ -1,23 +0,0 @@
|
|
1
|
-
export namespace DURATIONS {
|
2
|
-
let fast01: number;
|
3
|
-
let fast02: number;
|
4
|
-
let moderate01: number;
|
5
|
-
let moderate02: number;
|
6
|
-
let slow01: number;
|
7
|
-
let slow02: number;
|
8
|
-
}
|
9
|
-
export namespace EASINGS {
|
10
|
-
namespace productive {
|
11
|
-
let entrance: number[];
|
12
|
-
let standard: number[];
|
13
|
-
let exit: number[];
|
14
|
-
}
|
15
|
-
namespace expressive {
|
16
|
-
let entrance_1: number[];
|
17
|
-
export { entrance_1 as entrance };
|
18
|
-
let standard_1: number[];
|
19
|
-
export { standard_1 as standard };
|
20
|
-
let exit_1: number[];
|
21
|
-
export { exit_1 as exit };
|
22
|
-
}
|
23
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
import { getBezierValues } from './getBezierValues.js';
|
9
|
-
import { moderate02, moderate01, fast02, fast01 } from '@carbon/motion';
|
10
|
-
|
11
|
-
var cleanMotionValue = function cleanMotionValue(val) {
|
12
|
-
return parseInt(val) / 1000;
|
13
|
-
};
|
14
|
-
var DURATIONS = {
|
15
|
-
// Micro-interactions such as button and toggle
|
16
|
-
fast01: cleanMotionValue(fast01),
|
17
|
-
// '70ms'
|
18
|
-
// Micro-interactions such as fade
|
19
|
-
fast02: cleanMotionValue(fast02),
|
20
|
-
// '110ms'
|
21
|
-
// Micro-interactions, small expansion, short distance movements
|
22
|
-
moderate01: cleanMotionValue(moderate01),
|
23
|
-
// '150ms'
|
24
|
-
// Expansion, system communication, toast
|
25
|
-
moderate02: cleanMotionValue(moderate02)};
|
26
|
-
var EASINGS = {
|
27
|
-
productive: {
|
28
|
-
entrance: getBezierValues('entrance', 'productive'),
|
29
|
-
standard: getBezierValues('standard', 'productive'),
|
30
|
-
exit: getBezierValues('exit', 'productive')
|
31
|
-
},
|
32
|
-
expressive: {
|
33
|
-
entrance: getBezierValues('entrance', 'expressive'),
|
34
|
-
standard: getBezierValues('standard', 'expressive'),
|
35
|
-
exit: getBezierValues('exit', 'expressive')
|
36
|
-
}
|
37
|
-
};
|
38
|
-
|
39
|
-
export { DURATIONS, EASINGS };
|
@@ -1,60 +0,0 @@
|
|
1
|
-
export namespace panelVariants {
|
2
|
-
function hidden(shouldReduceMotion: any): {
|
3
|
-
width: number;
|
4
|
-
overflow: string;
|
5
|
-
transition: {
|
6
|
-
duration: number;
|
7
|
-
ease: number | number[];
|
8
|
-
when: string;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
function visible(shouldReduceMotion: any): {
|
12
|
-
width: number;
|
13
|
-
overflow: string;
|
14
|
-
transition: {
|
15
|
-
duration: number;
|
16
|
-
ease: number | number[];
|
17
|
-
when: string;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
}
|
21
|
-
export namespace innerContainerVariants {
|
22
|
-
export function hidden_1(shouldReduceMotion: any): {
|
23
|
-
opacity: number;
|
24
|
-
transition: {
|
25
|
-
duration: number;
|
26
|
-
ease: number | number[];
|
27
|
-
};
|
28
|
-
};
|
29
|
-
export { hidden_1 as hidden };
|
30
|
-
export function visible_1(shouldReduceMotion: any): {
|
31
|
-
opacity: number;
|
32
|
-
transition: {
|
33
|
-
duration: number;
|
34
|
-
ease: number | number[];
|
35
|
-
when: string | null;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
export { visible_1 as visible };
|
39
|
-
}
|
40
|
-
export namespace actionSetVariants {
|
41
|
-
export function hidden_2(shouldReduceMotion: any): {
|
42
|
-
y: number;
|
43
|
-
opacity: number;
|
44
|
-
transition: {
|
45
|
-
duration: number;
|
46
|
-
ease: number | number[];
|
47
|
-
};
|
48
|
-
};
|
49
|
-
export { hidden_2 as hidden };
|
50
|
-
export function visible_2(shouldReduceMotion: any): {
|
51
|
-
y: number;
|
52
|
-
opacity: number;
|
53
|
-
transition: {
|
54
|
-
duration: number;
|
55
|
-
ease: number | number[];
|
56
|
-
delay: number;
|
57
|
-
};
|
58
|
-
};
|
59
|
-
export { visible_2 as visible };
|
60
|
-
}
|
@@ -1,84 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2020, 2025
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
|
8
|
-
'use strict';
|
9
|
-
|
10
|
-
var motionConstants = require('../../../../../../global/js/utils/motionConstants.js');
|
11
|
-
var constants = require('../constants.js');
|
12
|
-
|
13
|
-
var panelVariants = {
|
14
|
-
hidden: function hidden(shouldReduceMotion) {
|
15
|
-
return {
|
16
|
-
width: 0,
|
17
|
-
overflow: 'hidden',
|
18
|
-
transition: {
|
19
|
-
duration: shouldReduceMotion ? 0 : motionConstants.DURATIONS.fast02,
|
20
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.exit,
|
21
|
-
when: 'afterChildren'
|
22
|
-
}
|
23
|
-
};
|
24
|
-
},
|
25
|
-
visible: function visible(shouldReduceMotion) {
|
26
|
-
return {
|
27
|
-
width: constants.PANEL_WIDTH,
|
28
|
-
overflow: 'visible',
|
29
|
-
transition: {
|
30
|
-
duration: shouldReduceMotion ? 0 : motionConstants.DURATIONS.moderate02,
|
31
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.entrance,
|
32
|
-
when: 'beforeChildren'
|
33
|
-
}
|
34
|
-
};
|
35
|
-
}
|
36
|
-
};
|
37
|
-
var innerContainerVariants = {
|
38
|
-
hidden: function hidden(shouldReduceMotion) {
|
39
|
-
return {
|
40
|
-
opacity: 0,
|
41
|
-
transition: {
|
42
|
-
duration: shouldReduceMotion ? motionConstants.DURATIONS.moderate01 : motionConstants.DURATIONS.fast01,
|
43
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.exit
|
44
|
-
}
|
45
|
-
};
|
46
|
-
},
|
47
|
-
visible: function visible(shouldReduceMotion) {
|
48
|
-
return {
|
49
|
-
opacity: 1,
|
50
|
-
transition: {
|
51
|
-
duration: shouldReduceMotion ? motionConstants.DURATIONS.moderate01 : motionConstants.DURATIONS.fast02,
|
52
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.entrance,
|
53
|
-
when: shouldReduceMotion ? null : 'beforeChildren'
|
54
|
-
}
|
55
|
-
};
|
56
|
-
}
|
57
|
-
};
|
58
|
-
var actionSetVariants = {
|
59
|
-
hidden: function hidden(shouldReduceMotion) {
|
60
|
-
return {
|
61
|
-
y: shouldReduceMotion ? 0 : constants.ACTION_SET_HEIGHT,
|
62
|
-
opacity: shouldReduceMotion ? 0 : 1,
|
63
|
-
transition: {
|
64
|
-
duration: shouldReduceMotion ? motionConstants.DURATIONS.moderate01 : motionConstants.DURATIONS.fast01,
|
65
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.exit
|
66
|
-
}
|
67
|
-
};
|
68
|
-
},
|
69
|
-
visible: function visible(shouldReduceMotion) {
|
70
|
-
return {
|
71
|
-
y: 0,
|
72
|
-
opacity: 1,
|
73
|
-
transition: {
|
74
|
-
duration: shouldReduceMotion ? motionConstants.DURATIONS.moderate01 : motionConstants.DURATIONS.fast02,
|
75
|
-
ease: shouldReduceMotion ? 0 : motionConstants.EASINGS.productive.entrance,
|
76
|
-
delay: shouldReduceMotion ? 0.075 : 0
|
77
|
-
}
|
78
|
-
};
|
79
|
-
}
|
80
|
-
};
|
81
|
-
|
82
|
-
exports.actionSetVariants = actionSetVariants;
|
83
|
-
exports.innerContainerVariants = innerContainerVariants;
|
84
|
-
exports.panelVariants = panelVariants;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Copyright IBM Corp. 2023, 2024
|
3
|
-
*
|
4
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
6
|
-
*/
|
7
|
-
import React from 'react';
|
8
|
-
export interface SteppedAnimatedMediaProps {
|
9
|
-
/**
|
10
|
-
* Optional class name for this component.
|
11
|
-
*/
|
12
|
-
className?: string;
|
13
|
-
/**
|
14
|
-
* The file path(s) to json formatted Lottie animation files.
|
15
|
-
*/
|
16
|
-
filePaths: string[] | undefined;
|
17
|
-
/**
|
18
|
-
* Which animation step from the filePaths array to play.
|
19
|
-
*/
|
20
|
-
playStep?: number;
|
21
|
-
}
|
22
|
-
/**
|
23
|
-
* The SteppedAnimatedMedia is an Onboarding internal component and is not intended for general use.
|
24
|
-
*/
|
25
|
-
export declare const SteppedAnimatedMedia: React.ForwardRefExoticComponent<SteppedAnimatedMediaProps & React.RefAttributes<HTMLDivElement>>;
|