@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
@@ -31,7 +31,7 @@ exports.EditTearsheetForm = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
31
31
|
description = _ref.description,
|
32
32
|
fieldsetLegendText = _ref.fieldsetLegendText,
|
33
33
|
_ref$hasFieldset = _ref.hasFieldset,
|
34
|
-
hasFieldset = _ref$hasFieldset ===
|
34
|
+
hasFieldset = _ref$hasFieldset === void 0 ? defaults.hasFieldset : _ref$hasFieldset,
|
35
35
|
subtitle = _ref.subtitle,
|
36
36
|
title = _ref.title,
|
37
37
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -43,7 +43,7 @@ exports.EditTearsheetForm = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
43
43
|
title: title
|
44
44
|
});
|
45
45
|
return formContext ? /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
46
|
-
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext ===
|
46
|
+
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__form--hidden-form"), formNumber !== (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm)), "".concat(blockClass, "__form--visible-form"), formNumber === (formContext === null || formContext === void 0 ? void 0 : formContext.currentForm))),
|
47
47
|
ref: ref
|
48
48
|
}), /*#__PURE__*/React.createElement(react.Grid, null, /*#__PURE__*/React.createElement(react.Column, {
|
49
49
|
xlg: 12,
|
@@ -45,7 +45,7 @@ var defaults = {
|
|
45
45
|
*/
|
46
46
|
exports.EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
47
47
|
var _ref$v = _ref.v2,
|
48
|
-
v2 = _ref$v ===
|
48
|
+
v2 = _ref$v === void 0 ? false : _ref$v,
|
49
49
|
props = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
50
50
|
// todo: deprecate v1
|
51
51
|
if (v2) {
|
@@ -56,12 +56,12 @@ exports.EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
56
56
|
illustration = props.illustration,
|
57
57
|
illustrationDescription = props.illustrationDescription,
|
58
58
|
_props$illustrationPo = props.illustrationPosition,
|
59
|
-
illustrationPosition = _props$illustrationPo ===
|
59
|
+
illustrationPosition = _props$illustrationPo === void 0 ? defaults.position : _props$illustrationPo,
|
60
60
|
link = props.link,
|
61
61
|
_props$size = props.size,
|
62
|
-
size = _props$size ===
|
62
|
+
size = _props$size === void 0 ? defaults.size : _props$size,
|
63
63
|
_props$headingAs = props.headingAs,
|
64
|
-
headingAs = _props$headingAs ===
|
64
|
+
headingAs = _props$headingAs === void 0 ? defaults.headingAs : _props$headingAs,
|
65
65
|
subtitle = props.subtitle,
|
66
66
|
title = props.title,
|
67
67
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded2);
|
@@ -79,7 +79,7 @@ exports.EmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
79
79
|
size: size,
|
80
80
|
headingAs: headingAs,
|
81
81
|
subtitle: subtitle,
|
82
|
-
title: title !== null && title !==
|
82
|
+
title: title !== null && title !== void 0 ? title : ''
|
83
83
|
}));
|
84
84
|
});
|
85
85
|
|
@@ -31,13 +31,13 @@ var EmptyStateContent = function EmptyStateContent(_ref) {
|
|
31
31
|
className: cx("".concat(blockClass, "__header"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__header--small"), size === 'sm'))
|
32
32
|
}, title), subtitle && /*#__PURE__*/React.createElement("p", {
|
33
33
|
className: cx("".concat(blockClass, "__subtitle"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__subtitle--small"), size === 'sm'))
|
34
|
-
}, subtitle), (action === null || action ===
|
34
|
+
}, subtitle), (action === null || action === void 0 ? void 0 : action.text) && (action === null || action === void 0 ? void 0 : action.onClick) && /*#__PURE__*/React.createElement(react.Button, _rollupPluginBabelHelpers.extends({}, action, {
|
35
35
|
className: "".concat(blockClass, "__action-button"),
|
36
36
|
kind: action.kind || 'tertiary',
|
37
37
|
onClick: action.onClick,
|
38
38
|
renderIcon: action.renderIcon || null,
|
39
39
|
size: 'sm'
|
40
|
-
}), action.text), (link === null || link ===
|
40
|
+
}), action.text), (link === null || link === void 0 ? void 0 : link.text) && (link === null || link === void 0 ? void 0 : link.href) && /*#__PURE__*/React.createElement(react.Link, _rollupPluginBabelHelpers.extends({}, link, {
|
41
41
|
className: "".concat(blockClass, "__link"),
|
42
42
|
href: link.href
|
43
43
|
}), link.text));
|
@@ -32,12 +32,12 @@ exports.EmptyStateV2 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
32
32
|
customIllustration = props.illustration,
|
33
33
|
illustrationDescription = props.illustrationDescription,
|
34
34
|
_props$illustrationPo = props.illustrationPosition,
|
35
|
-
illustrationPosition = _props$illustrationPo ===
|
35
|
+
illustrationPosition = _props$illustrationPo === void 0 ? 'top' : _props$illustrationPo,
|
36
36
|
illustrationTheme = props.illustrationTheme,
|
37
37
|
kind = props.kind,
|
38
38
|
link = props.link,
|
39
39
|
_props$size = props.size,
|
40
|
-
size = _props$size ===
|
40
|
+
size = _props$size === void 0 ? 'lg' : _props$size,
|
41
41
|
subtitle = props.subtitle,
|
42
42
|
title = props.title,
|
43
43
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
@@ -29,14 +29,14 @@ exports.ErrorEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
29
29
|
var action = _ref.action,
|
30
30
|
className = _ref.className,
|
31
31
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
32
|
-
illustrationPosition = _ref$illustrationPosi ===
|
32
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
33
33
|
illustrationDescription = _ref.illustrationDescription,
|
34
34
|
illustrationTheme = _ref.illustrationTheme,
|
35
35
|
link = _ref.link,
|
36
36
|
_ref$size = _ref.size,
|
37
|
-
size = _ref$size ===
|
37
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
38
38
|
_ref$headingAs = _ref.headingAs,
|
39
|
-
headingAs = _ref$headingAs ===
|
39
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
40
40
|
subtitle = _ref.subtitle,
|
41
41
|
title = _ref.title,
|
42
42
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -30,14 +30,14 @@ exports.NoDataEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
30
30
|
var action = _ref.action,
|
31
31
|
className = _ref.className,
|
32
32
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
33
|
-
illustrationPosition = _ref$illustrationPosi ===
|
33
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
34
34
|
illustrationTheme = _ref.illustrationTheme,
|
35
35
|
illustrationDescription = _ref.illustrationDescription,
|
36
36
|
link = _ref.link,
|
37
37
|
_ref$size = _ref.size,
|
38
|
-
size = _ref$size ===
|
38
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
39
39
|
_ref$headingAs = _ref.headingAs,
|
40
|
-
headingAs = _ref$headingAs ===
|
40
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
41
41
|
subtitle = _ref.subtitle,
|
42
42
|
title = _ref.title,
|
43
43
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -29,14 +29,14 @@ exports.NoTagsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
29
29
|
var action = _ref.action,
|
30
30
|
className = _ref.className,
|
31
31
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
32
|
-
illustrationPosition = _ref$illustrationPosi ===
|
32
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
33
33
|
illustrationTheme = _ref.illustrationTheme,
|
34
34
|
illustrationDescription = _ref.illustrationDescription,
|
35
35
|
link = _ref.link,
|
36
36
|
_ref$size = _ref.size,
|
37
|
-
size = _ref$size ===
|
37
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
38
38
|
_ref$headingAs = _ref.headingAs,
|
39
|
-
headingAs = _ref$headingAs ===
|
39
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
40
40
|
subtitle = _ref.subtitle,
|
41
41
|
title = _ref.title,
|
42
42
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -29,14 +29,14 @@ exports.NotFoundEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
29
29
|
var action = _ref.action,
|
30
30
|
className = _ref.className,
|
31
31
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
32
|
-
illustrationPosition = _ref$illustrationPosi ===
|
32
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
33
33
|
illustrationTheme = _ref.illustrationTheme,
|
34
34
|
illustrationDescription = _ref.illustrationDescription,
|
35
35
|
link = _ref.link,
|
36
36
|
_ref$size = _ref.size,
|
37
|
-
size = _ref$size ===
|
37
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
38
38
|
_ref$headingAs = _ref.headingAs,
|
39
|
-
headingAs = _ref$headingAs ===
|
39
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
40
40
|
subtitle = _ref.subtitle,
|
41
41
|
title = _ref.title,
|
42
42
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -29,14 +29,14 @@ exports.NotificationsEmptyState = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
29
29
|
var action = _ref.action,
|
30
30
|
className = _ref.className,
|
31
31
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
32
|
-
illustrationPosition = _ref$illustrationPosi ===
|
32
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
33
33
|
illustrationTheme = _ref.illustrationTheme,
|
34
34
|
illustrationDescription = _ref.illustrationDescription,
|
35
35
|
link = _ref.link,
|
36
36
|
_ref$size = _ref.size,
|
37
|
-
size = _ref$size ===
|
37
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
38
38
|
_ref$headingAs = _ref.headingAs,
|
39
|
-
headingAs = _ref$headingAs ===
|
39
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
40
40
|
subtitle = _ref.subtitle,
|
41
41
|
title = _ref.title,
|
42
42
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -30,14 +30,14 @@ exports.UnauthorizedEmptyState = /*#__PURE__*/React.forwardRef(function (_ref, r
|
|
30
30
|
var action = _ref.action,
|
31
31
|
className = _ref.className,
|
32
32
|
_ref$illustrationPosi = _ref.illustrationPosition,
|
33
|
-
illustrationPosition = _ref$illustrationPosi ===
|
33
|
+
illustrationPosition = _ref$illustrationPosi === void 0 ? EmptyState.defaults.position : _ref$illustrationPosi,
|
34
34
|
illustrationTheme = _ref.illustrationTheme,
|
35
35
|
illustrationDescription = _ref.illustrationDescription,
|
36
36
|
link = _ref.link,
|
37
37
|
_ref$size = _ref.size,
|
38
|
-
size = _ref$size ===
|
38
|
+
size = _ref$size === void 0 ? EmptyState.defaults.size : _ref$size,
|
39
39
|
_ref$headingAs = _ref.headingAs,
|
40
|
-
headingAs = _ref$headingAs ===
|
40
|
+
headingAs = _ref$headingAs === void 0 ? EmptyState.defaults.headingAs : _ref$headingAs,
|
41
41
|
subtitle = _ref.subtitle,
|
42
42
|
title = _ref.title,
|
43
43
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
@@ -39,7 +39,7 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39
39
|
hidePasswordLabel = _ref.hidePasswordLabel,
|
40
40
|
inputLabel = _ref.inputLabel,
|
41
41
|
_ref$inputType = _ref.inputType,
|
42
|
-
inputType = _ref$inputType ===
|
42
|
+
inputType = _ref$inputType === void 0 ? 'text' : _ref$inputType,
|
43
43
|
invalidInputText = _ref.invalidInputText,
|
44
44
|
loading = _ref.loading,
|
45
45
|
loadingMessage = _ref.loadingMessage,
|
@@ -48,7 +48,7 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
48
48
|
open = _ref.open,
|
49
49
|
portalTargetIn = _ref.portalTarget,
|
50
50
|
_ref$preformattedExte = _ref.preformattedExtensions,
|
51
|
-
preformattedExtensions = _ref$preformattedExte ===
|
51
|
+
preformattedExtensions = _ref$preformattedExte === void 0 ? defaults.preformattedExtensions : _ref$preformattedExte,
|
52
52
|
preformattedExtensionsLabel = _ref.preformattedExtensionsLabel,
|
53
53
|
primaryButtonText = _ref.primaryButtonText,
|
54
54
|
secondaryButtonText = _ref.secondaryButtonText,
|
@@ -58,7 +58,7 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
58
58
|
title = _ref.title,
|
59
59
|
triggerButtonRef = _ref.triggerButtonRef,
|
60
60
|
_ref$validExtensions = _ref.validExtensions,
|
61
|
-
validExtensions = _ref$validExtensions ===
|
61
|
+
validExtensions = _ref$validExtensions === void 0 ? defaults.validExtensions : _ref$validExtensions,
|
62
62
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
63
63
|
var blockClass = "".concat(settings.pkg.prefix, "--export-modal");
|
64
64
|
var _useState = React.useState(''),
|
@@ -78,15 +78,15 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
78
78
|
React.useEffect(function () {
|
79
79
|
var _preformattedExtensio;
|
80
80
|
setName(filename);
|
81
|
-
if (preformattedExtensions && preformattedExtensions.length > 0 && (_preformattedExtensio = preformattedExtensions[0]) !== null && _preformattedExtensio !==
|
81
|
+
if (preformattedExtensions && preformattedExtensions.length > 0 && (_preformattedExtensio = preformattedExtensions[0]) !== null && _preformattedExtensio !== void 0 && _preformattedExtensio.extension) {
|
82
82
|
var _preformattedExtensio2;
|
83
|
-
setExtension(preformattedExtensions === null || preformattedExtensions ===
|
83
|
+
setExtension(preformattedExtensions === null || preformattedExtensions === void 0 || (_preformattedExtensio2 = preformattedExtensions[0]) === null || _preformattedExtensio2 === void 0 ? void 0 : _preformattedExtensio2.extension);
|
84
84
|
}
|
85
85
|
}, [filename, preformattedExtensions, open]);
|
86
86
|
React.useEffect(function () {
|
87
87
|
if (successful) {
|
88
88
|
var button = document.querySelector(".".concat(blockClass, " .").concat(settings.carbon.prefix, "--modal-close-button button"));
|
89
|
-
button === null || button ===
|
89
|
+
button === null || button === void 0 || button.focus();
|
90
90
|
}
|
91
91
|
}, [successful, blockClass]);
|
92
92
|
var onNameChangeHandler = function onNameChangeHandler(evt) {
|
@@ -100,7 +100,7 @@ exports.ExportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
100
100
|
};
|
101
101
|
var onSubmitHandler = function onSubmitHandler() {
|
102
102
|
var returnName = extension ? "".concat(filename, ".").concat(extension.toLocaleLowerCase()) : name;
|
103
|
-
onRequestSubmit === null || onRequestSubmit ===
|
103
|
+
onRequestSubmit === null || onRequestSubmit === void 0 || onRequestSubmit(returnName);
|
104
104
|
};
|
105
105
|
var hasInvalidExtension = function hasInvalidExtension() {
|
106
106
|
if (!dirtyInput || !validExtensions || !validExtensions.length) {
|
@@ -28,7 +28,7 @@ var FeatureFlagContext = /*#__PURE__*/React.createContext(FeatureFlags$1.Feature
|
|
28
28
|
function FeatureFlags(_ref) {
|
29
29
|
var children = _ref.children,
|
30
30
|
_ref$flags = _ref.flags,
|
31
|
-
flags = _ref$flags ===
|
31
|
+
flags = _ref$flags === void 0 ? {} : _ref$flags,
|
32
32
|
newFlags = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
33
33
|
var parentScope = React.useContext(FeatureFlagContext);
|
34
34
|
var newFlagsObject = Object.keys(newFlags).reduce(function (acc, key) {
|
@@ -32,7 +32,7 @@ var defaults = {
|
|
32
32
|
*/
|
33
33
|
exports.FilterPanelAccordion = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
34
34
|
var _ref$accordionProps = _ref.accordionProps,
|
35
|
-
accordionProps = _ref$accordionProps ===
|
35
|
+
accordionProps = _ref$accordionProps === void 0 ? defaults.accordionProps : _ref$accordionProps,
|
36
36
|
children = _ref.children,
|
37
37
|
className = _ref.className,
|
38
38
|
count = _ref.count,
|
@@ -33,9 +33,9 @@ var defaults = {
|
|
33
33
|
*/
|
34
34
|
exports.FilterPanelAccordionItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
35
35
|
var _ref$accordionItemPro = _ref.accordionItemProps,
|
36
|
-
accordionItemProps = _ref$accordionItemPro ===
|
36
|
+
accordionItemProps = _ref$accordionItemPro === void 0 ? defaults.accordionItemProps : _ref$accordionItemPro,
|
37
37
|
_ref$truncatedListPro = _ref.truncatedListProps,
|
38
|
-
truncatedListProps = _ref$truncatedListPro ===
|
38
|
+
truncatedListProps = _ref$truncatedListPro === void 0 ? defaults.truncatedListProps : _ref$truncatedListPro,
|
39
39
|
children = _ref.children,
|
40
40
|
className = _ref.className,
|
41
41
|
count = _ref.count,
|
@@ -41,7 +41,7 @@ exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function
|
|
41
41
|
id = _ref.id,
|
42
42
|
labelText = _ref.labelText,
|
43
43
|
_ref$overflowMenuProp = _ref.overflowMenuProps,
|
44
|
-
overflowMenuProps = _ref$overflowMenuProp ===
|
44
|
+
overflowMenuProps = _ref$overflowMenuProp === void 0 ? defaults.overflowMenuProps : _ref$overflowMenuProp,
|
45
45
|
title = _ref.title,
|
46
46
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
47
47
|
var _useState = React.useState(false),
|
@@ -102,19 +102,19 @@ exports.FilterPanelCheckboxWithOverflow = /*#__PURE__*/React.forwardRef(function
|
|
102
102
|
labelText: labelText,
|
103
103
|
title: title
|
104
104
|
})), showMenuButton && /*#__PURE__*/React.createElement(react.OverflowMenu, _rollupPluginBabelHelpers.extends({
|
105
|
-
open: overflowMenuProps === null || overflowMenuProps ===
|
106
|
-
className: cx("".concat(blockClass, "__overflow-button"), overflowMenuProps === null || overflowMenuProps ===
|
107
|
-
menuOptionsClass: cx("".concat(blockClass, "__overflow-options"), overflowMenuProps === null || overflowMenuProps ===
|
108
|
-
"aria-label": overflowMenuProps === null || overflowMenuProps ===
|
109
|
-
iconDescription: overflowMenuProps === null || overflowMenuProps ===
|
105
|
+
open: overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps.open,
|
106
|
+
className: cx("".concat(blockClass, "__overflow-button"), overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps.menuClass),
|
107
|
+
menuOptionsClass: cx("".concat(blockClass, "__overflow-options"), overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps.menuOptionsClass),
|
108
|
+
"aria-label": overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps['aria-label'],
|
109
|
+
iconDescription: overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps['aria-label'],
|
110
110
|
onOpen: function onOpen() {
|
111
111
|
return setMenuIsOpen(true);
|
112
112
|
},
|
113
113
|
onClose: function onClose() {
|
114
114
|
return setMenuIsOpen(false);
|
115
115
|
},
|
116
|
-
flipped: (overflowMenuProps === null || overflowMenuProps ===
|
117
|
-
selectorPrimaryFocus: overflowMenuProps === null || overflowMenuProps ===
|
116
|
+
flipped: (overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps.flipped) || true,
|
117
|
+
selectorPrimaryFocus: overflowMenuProps === null || overflowMenuProps === void 0 ? void 0 : overflowMenuProps.selectorPrimaryFocus
|
118
118
|
}, other), children))
|
119
119
|
);
|
120
120
|
});
|
@@ -32,7 +32,7 @@ exports.FilterPanelSearch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
32
32
|
var children = _ref.children,
|
33
33
|
className = _ref.className,
|
34
34
|
_ref$searchProps = _ref.searchProps,
|
35
|
-
searchProps = _ref$searchProps ===
|
35
|
+
searchProps = _ref$searchProps === void 0 ? defaults.searchProps : _ref$searchProps,
|
36
36
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
37
37
|
var _useState = React.useState(false),
|
38
38
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
@@ -10,9 +10,7 @@
|
|
10
10
|
Object.defineProperty(exports, '__esModule', { value: true });
|
11
11
|
|
12
12
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
|
-
var framerMotion = require('framer-motion');
|
14
13
|
var react = require('@carbon/react');
|
15
|
-
var motionConstants = require('../../global/js/utils/motionConstants.js');
|
16
14
|
var React = require('react');
|
17
15
|
var icons = require('@carbon/react/icons');
|
18
16
|
var index = require('../../_virtual/index.js');
|
@@ -23,6 +21,7 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
23
21
|
var settings = require('../../settings.js');
|
24
22
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
25
23
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
24
|
+
var usePresence = require('../../global/js/hooks/usePresence.js');
|
26
25
|
var useWindowResize = require('../../global/js/hooks/useWindowResize.js');
|
27
26
|
|
28
27
|
var _excluded = ["className", "clearFiltersText", "clearFilters", "filters", "renderLabel", "overflowType", "clearButtonInline"],
|
@@ -31,16 +30,16 @@ var blockClass = "".concat(settings.pkg.prefix, "--filter-summary");
|
|
31
30
|
var FilterSummary = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
32
31
|
var _viewAllButtonRef$cur, _filterSummaryClearBu;
|
33
32
|
var _ref$className = _ref.className,
|
34
|
-
className = _ref$className ===
|
33
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
35
34
|
_ref$clearFiltersText = _ref.clearFiltersText,
|
36
|
-
clearFiltersText = _ref$clearFiltersText ===
|
35
|
+
clearFiltersText = _ref$clearFiltersText === void 0 ? 'Clear filters' : _ref$clearFiltersText,
|
37
36
|
clearFilters = _ref.clearFilters,
|
38
37
|
filters = _ref.filters,
|
39
38
|
renderLabel = _ref.renderLabel,
|
40
39
|
_ref$overflowType = _ref.overflowType,
|
41
|
-
overflowType = _ref$overflowType ===
|
40
|
+
overflowType = _ref$overflowType === void 0 ? 'default' : _ref$overflowType,
|
42
41
|
_ref$clearButtonInlin = _ref.clearButtonInline,
|
43
|
-
clearButtonInline = _ref$clearButtonInlin ===
|
42
|
+
clearButtonInline = _ref$clearButtonInlin === void 0 ? true : _ref$clearButtonInlin,
|
44
43
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
45
44
|
var filterSummaryId = "".concat(blockClass, "__").concat(uuidv4.default());
|
46
45
|
var tagFilters = filters.map(function (_ref2) {
|
@@ -50,7 +49,7 @@ var FilterSummary = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
49
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref2, _excluded2);
|
51
50
|
return _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
|
52
51
|
type: 'gray',
|
53
|
-
label: (_renderLabel = renderLabel === null || renderLabel ===
|
52
|
+
label: (_renderLabel = renderLabel === null || renderLabel === void 0 ? void 0 : renderLabel(key, value)) !== null && _renderLabel !== void 0 ? _renderLabel : "".concat(key, ": ").concat(value)
|
54
53
|
});
|
55
54
|
});
|
56
55
|
var filterSummaryClearButton = React.useRef(null);
|
@@ -77,27 +76,14 @@ var FilterSummary = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
77
76
|
return !prev;
|
78
77
|
});
|
79
78
|
};
|
80
|
-
var viewAllWidth = typeof (viewAllButtonRef === null || viewAllButtonRef ===
|
81
|
-
var measurementOffset = ((filterSummaryClearButton === null || filterSummaryClearButton ===
|
79
|
+
var viewAllWidth = typeof (viewAllButtonRef === null || viewAllButtonRef === void 0 || (_viewAllButtonRef$cur = viewAllButtonRef.current) === null || _viewAllButtonRef$cur === void 0 ? void 0 : _viewAllButtonRef$cur.offsetWidth) === 'undefined' ? 0 : overflowCount > 0 ? 48 : 0;
|
80
|
+
var measurementOffset = ((filterSummaryClearButton === null || filterSummaryClearButton === void 0 || (_filterSummaryClearBu = filterSummaryClearButton.current) === null || _filterSummaryClearBu === void 0 ? void 0 : _filterSummaryClearBu.offsetWidth) || 0) + viewAllWidth;
|
81
|
+
var exitAnimationName = 'filter-summary-enter';
|
82
|
+
var _usePresence = usePresence.usePresence(true, localRef, exitAnimationName),
|
83
|
+
shouldRender = _usePresence.shouldRender;
|
82
84
|
var renderTagSet = function renderTagSet(type) {
|
83
|
-
return /*#__PURE__*/React.createElement(
|
84
|
-
key: type
|
85
|
-
initial: {
|
86
|
-
opacity: 0,
|
87
|
-
y: -16
|
88
|
-
},
|
89
|
-
animate: {
|
90
|
-
opacity: 1,
|
91
|
-
y: 0
|
92
|
-
},
|
93
|
-
exit: {
|
94
|
-
opacity: 0,
|
95
|
-
y: -16
|
96
|
-
},
|
97
|
-
transition: {
|
98
|
-
duration: motionConstants.DURATIONS.moderate01,
|
99
|
-
ease: motionConstants.EASINGS.productive.entrance
|
100
|
-
}
|
85
|
+
return shouldRender ? /*#__PURE__*/React.createElement("div", {
|
86
|
+
key: type
|
101
87
|
}, /*#__PURE__*/React.createElement(TagSet.TagSet, {
|
102
88
|
allTagsModalSearchLabel: "Search all tags",
|
103
89
|
allTagsModalSearchPlaceholderText: "Search all tags",
|
@@ -109,29 +95,27 @@ var FilterSummary = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
109
95
|
containingElementRef: localRef,
|
110
96
|
measurementOffset: measurementOffset,
|
111
97
|
onOverflowTagChange: function onOverflowTagChange(overflowTags) {
|
112
|
-
return setOverflowCount(overflowTags === null || overflowTags ===
|
98
|
+
return setOverflowCount(overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length);
|
113
99
|
},
|
114
100
|
multiline: multiline
|
115
|
-
}));
|
101
|
+
})) : null;
|
116
102
|
};
|
117
103
|
useWindowResize.useWindowResize(function () {
|
118
104
|
var handleFilterSummaryResize = function handleFilterSummaryResize() {
|
119
105
|
var _localRef$current, _localRef$current2;
|
120
|
-
if (multiline && localRef !== null && localRef !==
|
106
|
+
if (multiline && localRef !== null && localRef !== void 0 && (_localRef$current = localRef.current) !== null && _localRef$current !== void 0 && _localRef$current.offsetHeight && (localRef === null || localRef === void 0 || (_localRef$current2 = localRef.current) === null || _localRef$current2 === void 0 ? void 0 : _localRef$current2.offsetHeight) <= 50) {
|
121
107
|
setMultiline(false);
|
122
108
|
}
|
123
109
|
};
|
124
110
|
var filterResize = debounce.debounce(handleFilterSummaryResize, 500);
|
125
111
|
filterResize();
|
126
|
-
}, [previousState === null || previousState ===
|
112
|
+
}, [previousState === null || previousState === void 0 ? void 0 : previousState.multiline, multiline]);
|
127
113
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, devtools.getDevtoolsProps(componentName), {
|
128
114
|
id: filterSummaryId
|
129
115
|
}, rest, {
|
130
116
|
ref: localRef,
|
131
117
|
className: cx([blockClass, className], _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expanded"), multiline))
|
132
|
-
}), /*#__PURE__*/React.createElement(
|
133
|
-
mode: "wait"
|
134
|
-
}, !multiline && renderTagSet('single'), multiline && renderTagSet('multiline')), /*#__PURE__*/React.createElement(react.Button, {
|
118
|
+
}), !multiline && renderTagSet('single'), multiline && renderTagSet('multiline'), /*#__PURE__*/React.createElement(react.Button, {
|
135
119
|
kind: "ghost",
|
136
120
|
size: "sm",
|
137
121
|
onClick: clearFilters,
|
@@ -39,7 +39,7 @@ exports.FullPageError = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
39
39
|
description = _ref.description,
|
40
40
|
label = _ref.label,
|
41
41
|
_ref$kind = _ref.kind,
|
42
|
-
kind = _ref$kind ===
|
42
|
+
kind = _ref$kind === void 0 ? defaults.kind : _ref$kind,
|
43
43
|
title = _ref.title,
|
44
44
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
45
45
|
var errorData = {
|
@@ -45,20 +45,20 @@ exports.Guidebanner = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
45
45
|
var children = _ref.children,
|
46
46
|
className = _ref.className,
|
47
47
|
_ref$collapsible = _ref.collapsible,
|
48
|
-
collapsible = _ref$collapsible ===
|
48
|
+
collapsible = _ref$collapsible === void 0 ? defaults.collapsible : _ref$collapsible,
|
49
49
|
onClose = _ref.onClose,
|
50
50
|
_ref$withLeftGutter = _ref.withLeftGutter,
|
51
|
-
withLeftGutter = _ref$withLeftGutter ===
|
51
|
+
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
52
52
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
53
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
53
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
54
54
|
_ref$collapseButtonLa = _ref.collapseButtonLabel,
|
55
|
-
collapseButtonLabel = _ref$collapseButtonLa ===
|
55
|
+
collapseButtonLabel = _ref$collapseButtonLa === void 0 ? defaults.collapseButtonLabel : _ref$collapseButtonLa,
|
56
56
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
57
|
-
expandButtonLabel = _ref$expandButtonLabe ===
|
57
|
+
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
58
58
|
_ref$nextIconDescript = _ref.nextIconDescription,
|
59
|
-
nextIconDescription = _ref$nextIconDescript ===
|
59
|
+
nextIconDescription = _ref$nextIconDescript === void 0 ? defaults.nextIconDescription : _ref$nextIconDescript,
|
60
60
|
_ref$previousIconDesc = _ref.previousIconDescription,
|
61
|
-
previousIconDescription = _ref$previousIconDesc ===
|
61
|
+
previousIconDescription = _ref$previousIconDesc === void 0 ? defaults.previousIconDescription : _ref$previousIconDesc,
|
62
62
|
title = _ref.title,
|
63
63
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
64
64
|
var scrollRef = React.useRef(null);
|
@@ -184,7 +184,7 @@ exports.Guidebanner.propTypes = {
|
|
184
184
|
// Carbon Products component's `displayName` (child.type.displayName) or
|
185
185
|
// React component's `name` (child.type.name) or
|
186
186
|
// HTML element's tag name (child.type).
|
187
|
-
error = new Error("`Guidebanner` only accepts children of type `GuidebannerElement`, found `".concat(((_child$type = child.type) === null || _child$type ===
|
187
|
+
error = new Error("`Guidebanner` only accepts children of type `GuidebannerElement`, found `".concat(((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) || ((_child$type2 = child.type) === null || _child$type2 === void 0 ? void 0 : _child$type2.name) || child.type, "` instead."));
|
188
188
|
}
|
189
189
|
});
|
190
190
|
return error;
|
@@ -33,7 +33,7 @@ exports.GuidebannerElementButton = /*#__PURE__*/React.forwardRef(function (_ref,
|
|
33
33
|
var children = _ref.children,
|
34
34
|
className = _ref.className,
|
35
35
|
_ref$iconDescription = _ref.iconDescription,
|
36
|
-
iconDescription = _ref$iconDescription ===
|
36
|
+
iconDescription = _ref$iconDescription === void 0 ? defaults.iconDescription : _ref$iconDescription,
|
37
37
|
type = _ref.type,
|
38
38
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
39
39
|
if (type === 'primary') {
|
@@ -22,7 +22,7 @@ var _excluded = ["accept", "className", "defaultErrorBody", "defaultErrorHeader"
|
|
22
22
|
var componentName = 'ImportModal';
|
23
23
|
exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
24
24
|
var _ref$accept = _ref.accept,
|
25
|
-
accept = _ref$accept ===
|
25
|
+
accept = _ref$accept === void 0 ? [] : _ref$accept,
|
26
26
|
className = _ref.className,
|
27
27
|
defaultErrorBody = _ref.defaultErrorBody,
|
28
28
|
defaultErrorHeader = _ref.defaultErrorHeader,
|
@@ -92,7 +92,7 @@ exports.ImportModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
92
92
|
newFile.errorBody = invalidFileTypeErrorBody || defaultErrorBody;
|
93
93
|
newFile.errorSubject = invalidFileTypeErrorHeader || defaultErrorHeader;
|
94
94
|
newFile.invalid = true;
|
95
|
-
} else if (maxFileSize && ((_newFile$fileSize = newFile === null || newFile ===
|
95
|
+
} else if (maxFileSize && ((_newFile$fileSize = newFile === null || newFile === void 0 ? void 0 : newFile.fileSize) !== null && _newFile$fileSize !== void 0 ? _newFile$fileSize : 0) > maxFileSize) {
|
96
96
|
newFile.errorBody = maxFileSizeErrorBody || defaultErrorBody;
|
97
97
|
newFile.errorSubject = maxFileSizeErrorHeader || defaultErrorHeader;
|
98
98
|
newFile.invalid = true;
|
@@ -5,10 +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 MediaType = {
|
9
|
-
render?: () => ReactNode;
|
10
|
-
filePaths?: string[];
|
11
|
-
};
|
12
8
|
export interface InlineTipProps {
|
13
9
|
/**
|
14
10
|
* Optional "call to action" ghost button or link that can appear
|
@@ -45,15 +41,6 @@ export interface InlineTipProps {
|
|
45
41
|
* This button is not visible if `media` is specified.
|
46
42
|
*/
|
47
43
|
expandButtonLabel?: string;
|
48
|
-
/**
|
49
|
-
* The object describing an image in one of two shapes.
|
50
|
-
* - If a single media element is required, use `{render}`.
|
51
|
-
* - If a stepped animation is required, use `{filePaths}`.
|
52
|
-
*
|
53
|
-
* Enabling `media` disables the `collapsible` feature.
|
54
|
-
* @deprecated please use the `renderMedia` prop
|
55
|
-
*/
|
56
|
-
media?: MediaType;
|
57
44
|
/**
|
58
45
|
* Optional prop to render any media like images or any animated media.
|
59
46
|
*/
|
@@ -97,4 +84,3 @@ export interface InlineTipProps {
|
|
97
84
|
export declare let InlineTip: React.ForwardRefExoticComponent<InlineTipProps & {
|
98
85
|
children?: ReactNode | undefined;
|
99
86
|
} & React.RefAttributes<HTMLDivElement>>;
|
100
|
-
export {};
|