@carbon/ibm-products 2.61.0 → 2.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/index-full-carbon.css +170 -22
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +170 -22
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +170 -22
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +170 -22
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/es/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/es/components/APIKeyModal/APIKeyModal.js +16 -16
- package/es/components/AboutModal/AboutModal.js +1 -1
- package/es/components/ActionBar/ActionBar.js +5 -5
- package/es/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/es/components/ActionSet/ActionSet.js +5 -5
- package/es/components/AddSelect/AddSelect.js +5 -4
- package/es/components/AddSelect/AddSelectBody.js +12 -11
- package/es/components/AddSelect/AddSelectColumn.js +1 -1
- package/es/components/AddSelect/AddSelectFilter.js +1 -1
- package/es/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/es/components/AddSelect/AddSelectRow.js +21 -13
- package/es/components/AddSelect/AddSelectSidebar.js +14 -4
- package/es/components/AddSelect/AddSelectSort.js +5 -5
- package/es/components/AddSelect/add-select-utils.js +3 -3
- package/es/components/AddSelect/types/index.d.ts +1 -0
- package/es/components/BigNumbers/BigNumbers.js +11 -11
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/es/components/Card/Card.js +14 -14
- package/es/components/Card/CardFooter.js +4 -4
- package/es/components/Card/CardHeader.js +2 -2
- package/es/components/Carousel/Carousel.js +16 -16
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Checklist/Checklist.js +11 -11
- package/es/components/Checklist/ChecklistChart.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.js +10 -10
- package/es/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/es/components/Coachmark/CoachmarkHeader.js +4 -4
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/es/components/Coachmark/CoachmarkTagline.js +3 -3
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/es/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/es/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/es/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/es/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/es/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/es/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/es/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/es/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/es/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/es/components/ConditionBuilder/utils/util.js +13 -13
- package/es/components/CreateFullPage/CreateFullPage.js +3 -3
- package/es/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/es/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/es/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/es/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/es/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/es/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/es/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/es/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/es/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/es/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/constants.js +1 -5
- package/es/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/es/components/Datagrid/useActionsColumn.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +3 -3
- package/es/components/Datagrid/useCustomizeColumns.js +1 -1
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/es/components/Datagrid/useDisableSelectRows.js +16 -16
- package/es/components/Datagrid/useExpandedRow.js +1 -1
- package/es/components/Datagrid/useFiltering.js +1 -1
- package/es/components/Datagrid/useFloatingScroll.js +2 -2
- package/es/components/Datagrid/useFocusRowExpander.js +4 -4
- package/es/components/Datagrid/useInfiniteScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +4 -4
- package/es/components/Datagrid/useNestedRowExpander.js +6 -6
- package/es/components/Datagrid/useNestedRows.js +6 -6
- package/es/components/Datagrid/useOnRowClick.js +1 -1
- package/es/components/Datagrid/useRowExpander.js +4 -4
- package/es/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/es/components/Datagrid/useRowRenderer.js +6 -6
- package/es/components/Datagrid/useSelectAllToggle.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +5 -5
- package/es/components/Datagrid/useSortableColumns.js +11 -11
- package/es/components/Datagrid/useStickyColumn.js +8 -8
- package/es/components/DecoratorBase/DecoratorBase.js +8 -8
- package/es/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/es/components/DelimitedList/DelimitedList.js +3 -3
- package/es/components/DescriptionList/DescriptionList.js +2 -2
- package/es/components/EditInPlace/EditInPlace.js +6 -6
- package/es/components/EditSidePanel/EditSidePanel.js +3 -3
- package/es/components/EditTearsheet/EditTearsheet.js +3 -3
- package/es/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/es/components/EmptyStates/EmptyState.js +5 -5
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/EmptyStateV2.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/es/components/ExportModal/ExportModal.js +7 -7
- package/es/components/FeatureFlags/index.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/es/components/FilterSummary/FilterSummary.js +18 -34
- package/es/components/FullPageError/FullPageError.js +1 -1
- package/es/components/Guidebanner/Guidebanner.js +8 -8
- package/es/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/es/components/ImportModal/ImportModal.js +2 -2
- package/es/components/InlineTip/InlineTip.d.ts +0 -14
- package/es/components/InlineTip/InlineTip.js +13 -35
- package/es/components/InlineTip/utils.js +1 -1
- package/es/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/es/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/es/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/es/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/es/components/Nav/Nav.js +3 -3
- package/es/components/Nav/NavItem.js +8 -9
- package/es/components/Nav/NavList.js +14 -15
- package/es/components/NonLinearReading/NonLinearReading.js +1 -1
- package/es/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/es/components/OptionsTile/OptionsTile.js +4 -3
- package/es/components/PageHeader/PageHeader.js +19 -19
- package/es/components/PageHeader/PageHeaderTitle.js +1 -1
- package/es/components/PageHeader/PageHeaderUtils.js +1 -1
- package/es/components/ProductiveCard/ProductiveCard.js +1 -1
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +4 -4
- package/es/components/ScrollGradient/ScrollGradient.js +6 -6
- package/es/components/SearchBar/SearchBar.js +6 -6
- package/es/components/SidePanel/SidePanel.js +45 -45
- package/es/components/SimpleHeader/SimpleHeader.js +4 -4
- package/es/components/StatusIcon/StatusIcon.js +1 -1
- package/es/components/StatusIndicator/StatusIndicator.js +2 -2
- package/es/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +4 -4
- package/es/components/TagOverflow/TagOverflow.js +7 -7
- package/es/components/TagOverflow/TagOverflowModal.js +4 -4
- package/es/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/es/components/TagSet/TagSet.js +15 -15
- package/es/components/TagSet/TagSetModal.js +6 -6
- package/es/components/TagSet/TagSetOverflow.js +3 -3
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/es/components/Tearsheet/TearsheetShell.js +6 -6
- package/es/components/Toolbar/Toolbar.js +6 -6
- package/es/components/Toolbar/ToolbarButton.js +4 -4
- package/es/components/TruncatedList/TruncatedList.js +8 -8
- package/es/components/UserAvatar/UserAvatar.js +4 -4
- package/es/components/UserProfileImage/UserProfileImage.js +2 -2
- package/es/components/WebTerminal/WebTerminal.js +8 -8
- package/es/global/js/hooks/useControllableState.js +1 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/es/global/js/hooks/useFocus.js +19 -19
- package/es/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/es/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/es/global/js/hooks/useOverflowString.js +6 -6
- package/es/global/js/hooks/usePresence.d.ts +23 -0
- package/es/global/js/hooks/usePresence.js +26 -6
- package/es/global/js/hooks/useResetCreateComponent.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +1 -1
- package/es/global/js/package-settings.js +4 -4
- package/es/global/js/utils/Wrap.js +2 -2
- package/es/global/js/utils/checkForOverflow.js +1 -1
- package/es/global/js/utils/debounce.d.ts +1 -1
- package/es/global/js/utils/debounce.js +2 -2
- package/es/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/es/global/js/utils/getSupportedLocale.js +2 -0
- package/es/global/js/utils/lastIndexInArray.js +1 -1
- package/es/global/js/utils/props-helper.js +1 -1
- package/es/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-10.js +894 -863
- package/es/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/es/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/es/settings.js +2 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +4 -4
- package/lib/components/APIKeyModal/APIKeyDownloader.js +2 -2
- package/lib/components/APIKeyModal/APIKeyModal.js +16 -16
- package/lib/components/AboutModal/AboutModal.js +1 -1
- package/lib/components/ActionBar/ActionBar.js +5 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -3
- package/lib/components/ActionSet/ActionSet.js +5 -5
- package/lib/components/AddSelect/AddSelect.js +5 -4
- package/lib/components/AddSelect/AddSelectBody.js +12 -11
- package/lib/components/AddSelect/AddSelectColumn.js +1 -1
- package/lib/components/AddSelect/AddSelectFilter.js +1 -1
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -3
- package/lib/components/AddSelect/AddSelectRow.js +20 -12
- package/lib/components/AddSelect/AddSelectSidebar.js +14 -4
- package/lib/components/AddSelect/AddSelectSort.js +5 -5
- package/lib/components/AddSelect/add-select-utils.js +3 -3
- package/lib/components/AddSelect/types/index.d.ts +1 -0
- package/lib/components/BigNumbers/BigNumbers.js +10 -10
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -4
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +4 -4
- package/lib/components/Card/Card.js +14 -14
- package/lib/components/Card/CardFooter.js +4 -4
- package/lib/components/Card/CardHeader.js +2 -2
- package/lib/components/Carousel/Carousel.js +16 -16
- package/lib/components/Cascade/Cascade.js +2 -2
- package/lib/components/Checklist/Checklist.js +11 -11
- package/lib/components/Checklist/ChecklistChart.js +1 -1
- package/lib/components/Checklist/ChecklistIcon.js +1 -1
- package/lib/components/Coachmark/Coachmark.js +10 -10
- package/lib/components/Coachmark/CoachmarkDragbar.js +5 -5
- package/lib/components/Coachmark/CoachmarkHeader.js +4 -4
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +3 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -1
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +6 -6
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +0 -10
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +16 -35
- package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +2 -13
- package/lib/components/CoachmarkStack/CoachmarkStack.js +12 -22
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +0 -17
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +6 -29
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +12 -12
- package/lib/components/ConditionBuilder/ConditionBuilder.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +5 -5
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +19 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +7 -7
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +2 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +3 -3
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +6 -6
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +1 -1
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +3 -3
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +31 -31
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +15 -15
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +1 -1
- package/lib/components/ConditionBuilder/utils/useTranslations.js +2 -2
- package/lib/components/ConditionBuilder/utils/util.js +13 -13
- package/lib/components/CreateFullPage/CreateFullPage.js +3 -3
- package/lib/components/CreateFullPage/CreateFullPageStep.js +9 -9
- package/lib/components/CreateInfluencer/CreateInfluencer.js +8 -8
- package/lib/components/CreateModal/CreateModal.js +1 -1
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +16 -16
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +52 -52
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +36 -36
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +26 -26
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +3 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +1 -1
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +16 -16
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +8 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +1 -1
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +3 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +5 -5
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +3 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +10 -10
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +1 -1
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +1 -1
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -6
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +3 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +10 -10
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +14 -14
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +4 -4
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +1 -1
- package/lib/components/Datagrid/Datagrid/Datagrid.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +14 -14
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +23 -23
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +19 -19
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +7 -7
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +11 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +18 -18
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +9 -9
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +15 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +59 -44
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +20 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +35 -35
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +6 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +5 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +4 -4
- package/lib/components/Datagrid/useActionsColumn.js +2 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +3 -3
- package/lib/components/Datagrid/useCustomizeColumns.js +1 -1
- package/lib/components/Datagrid/useDatagrid.js +2 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -1
- package/lib/components/Datagrid/useDisableSelectRows.js +16 -16
- package/lib/components/Datagrid/useExpandedRow.js +1 -1
- package/lib/components/Datagrid/useFiltering.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -2
- package/lib/components/Datagrid/useFocusRowExpander.js +4 -4
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -1
- package/lib/components/Datagrid/useInitialColumnSort.js +1 -1
- package/lib/components/Datagrid/useInlineEdit.js +4 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +6 -6
- package/lib/components/Datagrid/useNestedRows.js +6 -6
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +4 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -1
- package/lib/components/Datagrid/useRowRenderer.js +6 -6
- package/lib/components/Datagrid/useSelectAllToggle.js +2 -2
- package/lib/components/Datagrid/useSelectRows.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +11 -11
- package/lib/components/Datagrid/useStickyColumn.js +8 -8
- package/lib/components/DecoratorBase/DecoratorBase.js +8 -8
- package/lib/components/DecoratorBase/DecoratorIcon.js +2 -2
- package/lib/components/DelimitedList/DelimitedList.js +3 -3
- package/lib/components/DescriptionList/DescriptionList.js +2 -2
- package/lib/components/EditInPlace/EditInPlace.js +6 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheet.js +3 -3
- package/lib/components/EditTearsheet/EditTearsheetForm.js +2 -2
- package/lib/components/EmptyStates/EmptyState.js +5 -5
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/EmptyStateV2.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +3 -3
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +3 -3
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +3 -3
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +3 -3
- package/lib/components/ExportModal/ExportModal.js +7 -7
- package/lib/components/FeatureFlags/index.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +8 -8
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +1 -1
- package/lib/components/FilterSummary/FilterSummary.js +18 -34
- package/lib/components/FullPageError/FullPageError.js +1 -1
- package/lib/components/Guidebanner/Guidebanner.js +8 -8
- package/lib/components/Guidebanner/GuidebannerElementButton.js +1 -1
- package/lib/components/ImportModal/ImportModal.js +2 -2
- package/lib/components/InlineTip/InlineTip.d.ts +0 -14
- package/lib/components/InlineTip/InlineTip.js +13 -35
- package/lib/components/InlineTip/utils.js +1 -1
- package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +0 -26
- package/lib/components/InterstitialScreen/InterstitialScreen.js +22 -56
- package/lib/components/MultiAddSelect/MultiAddSelect.d.ts +4 -0
- package/lib/components/MultiAddSelect/MultiAddSelect.js +2 -1
- package/lib/components/Nav/Nav.js +3 -3
- package/lib/components/Nav/NavItem.js +12 -13
- package/lib/components/Nav/NavList.js +18 -19
- package/lib/components/NonLinearReading/NonLinearReading.js +1 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.d.ts +53 -1
- package/lib/components/NotificationsPanel/NotificationsPanel.js +89 -71
- package/lib/components/OptionsTile/OptionsTile.js +4 -3
- package/lib/components/PageHeader/PageHeader.js +19 -19
- package/lib/components/PageHeader/PageHeaderTitle.js +1 -1
- package/lib/components/PageHeader/PageHeaderUtils.js +1 -1
- package/lib/components/ProductiveCard/ProductiveCard.js +1 -1
- package/lib/components/RemoveModal/RemoveModal.js +2 -2
- package/lib/components/Saving/Saving.js +4 -4
- package/lib/components/ScrollGradient/ScrollGradient.js +6 -6
- package/lib/components/SearchBar/SearchBar.js +6 -6
- package/lib/components/SidePanel/SidePanel.js +45 -45
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -4
- package/lib/components/StatusIcon/StatusIcon.js +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +2 -2
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +1 -1
- package/lib/components/StringFormatter/StringFormatter.js +4 -4
- package/lib/components/TagOverflow/TagOverflow.js +7 -7
- package/lib/components/TagOverflow/TagOverflowModal.js +4 -4
- package/lib/components/TagOverflow/TagOverflowPopover.js +13 -13
- package/lib/components/TagSet/TagSet.js +15 -15
- package/lib/components/TagSet/TagSetModal.js +6 -6
- package/lib/components/TagSet/TagSetOverflow.js +3 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -2
- package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
- package/lib/components/Tearsheet/TearsheetShell.js +6 -6
- package/lib/components/Toolbar/Toolbar.js +6 -6
- package/lib/components/Toolbar/ToolbarButton.js +4 -4
- package/lib/components/TruncatedList/TruncatedList.js +8 -8
- package/lib/components/UserAvatar/UserAvatar.js +4 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +2 -2
- package/lib/components/WebTerminal/WebTerminal.js +8 -8
- package/lib/global/js/hooks/useControllableState.js +1 -1
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/lib/global/js/hooks/useCreateComponentStepChange.js +10 -10
- package/lib/global/js/hooks/useFocus.js +19 -19
- package/lib/global/js/hooks/useOverflowItems/index.d.ts +7 -0
- package/lib/global/js/hooks/{useOverflowItems.js → useOverflowItems/useOverflowItems.js} +16 -16
- package/lib/global/js/hooks/useOverflowString.js +6 -6
- package/lib/global/js/hooks/usePresence.d.ts +23 -0
- package/lib/global/js/hooks/usePresence.js +26 -6
- package/lib/global/js/hooks/useResetCreateComponent.js +1 -1
- package/lib/global/js/hooks/useResizeObserver.js +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +1 -1
- package/lib/global/js/package-settings.js +4 -4
- package/lib/global/js/utils/Wrap.js +2 -2
- package/lib/global/js/utils/checkForOverflow.js +1 -1
- package/lib/global/js/utils/debounce.d.ts +1 -1
- package/lib/global/js/utils/debounce.js +2 -2
- package/lib/global/js/utils/getSupportedLocale.d.ts +2 -0
- package/lib/global/js/utils/getSupportedLocale.js +2 -0
- package/lib/global/js/utils/lastIndexInArray.js +1 -1
- package/lib/global/js/utils/props-helper.js +1 -1
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +2 -2
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-10.js +902 -871
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-3.js +824 -823
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/lib/settings.js +2 -2
- package/package.json +19 -19
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +100 -22
- package/scss/components/Datagrid/styles/addons/_animations.scss +56 -0
- package/scss/components/FilterSummary/_animations.scss +20 -0
- package/scss/components/FilterSummary/_filter-summary.scss +11 -0
- package/scss/components/FullPageError/_full-page-error.scss +4 -0
- package/scss/components/GetStartedCard/_get-started-card.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +35 -7
- package/scss/components/SidePanel/_side-panel.scss +4 -2
- package/scss/components/Tearsheet/_tearsheet.scss +6 -12
- package/telemetry.yml +9 -17
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/es/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -80
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -146
- package/es/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/es/global/js/utils/getBezierValues.d.ts +0 -1
- package/es/global/js/utils/getBezierValues.js +0 -28
- package/es/global/js/utils/motionConstants.d.ts +0 -23
- package/es/global/js/utils/motionConstants.js +0 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.d.ts +0 -60
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -84
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +0 -25
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +0 -148
- package/lib/components/SteppedAnimatedMedia/index.d.ts +0 -8
- package/lib/global/js/utils/getBezierValues.d.ts +0 -1
- package/lib/global/js/utils/getBezierValues.js +0 -30
- package/lib/global/js/utils/motionConstants.d.ts +0 -23
- package/lib/global/js/utils/motionConstants.js +0 -42
- /package/es/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
- /package/lib/global/js/hooks/{useOverflowItems.d.ts → useOverflowItems/useOverflowItems.d.ts} +0 -0
@@ -15,7 +15,7 @@ import { pkg } from '../../settings.js';
|
|
15
15
|
import { Information, ArrowUp } from '@carbon/react/icons';
|
16
16
|
import { Tooltip } from '@carbon/react';
|
17
17
|
import { BigNumbersSkeleton } from './BigNumbersSkeleton.js';
|
18
|
-
import { formatValue, Characters, getIconSize
|
18
|
+
import { DefaultLocale, formatValue, Characters, getIconSize } from './constants.js';
|
19
19
|
import { TooltipTrigger } from '../TooltipTrigger/TooltipTrigger.js';
|
20
20
|
|
21
21
|
var _Information;
|
@@ -38,31 +38,31 @@ var BigNumbers = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
38
38
|
var _formatValue, _formatValue2;
|
39
39
|
var className = _ref.className,
|
40
40
|
_ref$forceShowTotal = _ref.forceShowTotal,
|
41
|
-
forceShowTotal = _ref$forceShowTotal ===
|
41
|
+
forceShowTotal = _ref$forceShowTotal === void 0 ? false : _ref$forceShowTotal,
|
42
42
|
_ref$fractionDigits = _ref.fractionDigits,
|
43
|
-
fractionDigits = _ref$fractionDigits ===
|
43
|
+
fractionDigits = _ref$fractionDigits === void 0 ? 1 : _ref$fractionDigits,
|
44
44
|
iconButton = _ref.iconButton,
|
45
45
|
_ref$loading = _ref.loading,
|
46
|
-
loading = _ref$loading ===
|
46
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
47
47
|
label = _ref.label,
|
48
48
|
_ref$locale = _ref.locale,
|
49
|
-
locale = _ref$locale ===
|
49
|
+
locale = _ref$locale === void 0 ? DefaultLocale : _ref$locale,
|
50
50
|
_ref$percentage = _ref.percentage,
|
51
|
-
percentage = _ref$percentage ===
|
51
|
+
percentage = _ref$percentage === void 0 ? false : _ref$percentage,
|
52
52
|
_ref$size = _ref.size,
|
53
|
-
size = _ref$size ===
|
53
|
+
size = _ref$size === void 0 ? 'default' : _ref$size,
|
54
54
|
tooltipDescription = _ref.tooltipDescription,
|
55
55
|
total = _ref.total,
|
56
56
|
_ref$trending = _ref.trending,
|
57
|
-
trending = _ref$trending ===
|
57
|
+
trending = _ref$trending === void 0 ? false : _ref$trending,
|
58
58
|
_ref$truncate = _ref.truncate,
|
59
|
-
truncate = _ref$truncate ===
|
59
|
+
truncate = _ref$truncate === void 0 ? true : _ref$truncate,
|
60
60
|
value = _ref.value,
|
61
61
|
rest = _objectWithoutProperties(_ref, _excluded);
|
62
62
|
var bigNumbersClasses = cx(className, _defineProperty(_defineProperty({}, "".concat(blockClass, "--lg"), size === 'lg'), "".concat(blockClass, "--xl"), size === 'xl'));
|
63
63
|
var supportedLocale = getSupportedLocale(locale, DefaultLocale);
|
64
|
-
var truncatedValue = (_formatValue = formatValue(supportedLocale, value, fractionDigits, truncate)) !== null && _formatValue !==
|
65
|
-
var truncatedTotal = (_formatValue2 = formatValue(supportedLocale, total, fractionDigits, truncate)) !== null && _formatValue2 !==
|
64
|
+
var truncatedValue = (_formatValue = formatValue(supportedLocale, value, fractionDigits, truncate)) !== null && _formatValue !== void 0 ? _formatValue : Characters.Dash;
|
65
|
+
var truncatedTotal = (_formatValue2 = formatValue(supportedLocale, total, fractionDigits, truncate)) !== null && _formatValue2 !== void 0 ? _formatValue2 : 'Unknown';
|
66
66
|
var shouldDisplayDenominator = forceShowTotal || !percentage && total && value && total > value && truncatedValue !== truncatedTotal;
|
67
67
|
if (loading) {
|
68
68
|
return /*#__PURE__*/React__default.createElement(BigNumbersSkeleton, _extends({}, rest, {
|
@@ -63,10 +63,10 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
63
63
|
var overflowItems = _ref2.overflowItems;
|
64
64
|
var handleClick = function handleClick(evt, item) {
|
65
65
|
var _item$props, _item$props2, _item$props2$onClick;
|
66
|
-
if (item !== null && item !==
|
66
|
+
if (item !== null && item !== void 0 && (_item$props = item.props) !== null && _item$props !== void 0 && _item$props.href) {
|
67
67
|
window.location.href = item.props.href;
|
68
68
|
}
|
69
|
-
item === null || item ===
|
69
|
+
item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 || (_item$props2$onClick = _item$props2.onClick) === null || _item$props2$onClick === void 0 || _item$props2$onClick.call(_item$props2, evt);
|
70
70
|
};
|
71
71
|
return /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
|
72
72
|
key: "breadcrumb-overflow-".concat(internalId.current)
|
@@ -126,7 +126,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
126
126
|
}, rest, {
|
127
127
|
// ensure id is not duplicated
|
128
128
|
"data-original-id": id,
|
129
|
-
title: title !== null && title !==
|
129
|
+
title: title !== null && title !== void 0 ? title : label
|
130
130
|
}), label);
|
131
131
|
}))));
|
132
132
|
}, [breadcrumbs, label, overflowAriaLabel]);
|
@@ -274,7 +274,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
274
274
|
"aria-label": label,
|
275
275
|
className: cx("".concat(blockClass, "__breadcrumb-container"), _defineProperty({}, "".concat(blockClass, "__breadcrumb-container-with-items"), displayedBreadcrumbItems.length > 1)),
|
276
276
|
noTrailingSlash: noTrailingSlash
|
277
|
-
}, other), ((_backItem = backItem) === null || _backItem ===
|
277
|
+
}, other), ((_backItem = backItem) === null || _backItem === void 0 ? void 0 : _backItem.href) && (((_backItem2 = backItem) === null || _backItem2 === void 0 ? void 0 : _backItem2.label) || ((_backItem3 = backItem) === null || _backItem3 === void 0 ? void 0 : _backItem3.title)) && /*#__PURE__*/React__default.createElement(BreadcrumbItem, {
|
278
278
|
className: cx("".concat(blockClass, "__breadcrumb-back"))
|
279
279
|
}, /*#__PURE__*/React__default.createElement(Link, {
|
280
280
|
href: backItem.href,
|
@@ -48,11 +48,11 @@ var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
48
48
|
*/
|
49
49
|
var checkFullyVisibleItems = function checkFullyVisibleItems() {
|
50
50
|
var _spaceAvailableRef$cu, _sizingContainerRefSe, _sizingContainerRefCo;
|
51
|
-
var spaceAvailable = (_spaceAvailableRef$cu = spaceAvailableRef.current) === null || _spaceAvailableRef$cu ===
|
51
|
+
var spaceAvailable = (_spaceAvailableRef$cu = spaceAvailableRef.current) === null || _spaceAvailableRef$cu === void 0 ? void 0 : _spaceAvailableRef$cu.offsetWidth;
|
52
52
|
var newShowAsOverflow = true;
|
53
53
|
|
54
54
|
// get all of the hidden sizing buttons
|
55
|
-
var sizingSet = (_sizingContainerRefSe = sizingContainerRefSet.current) === null || _sizingContainerRefSe ===
|
55
|
+
var sizingSet = (_sizingContainerRefSe = sizingContainerRefSet.current) === null || _sizingContainerRefSe === void 0 ? void 0 : _sizingContainerRefSe.querySelectorAll(".".concat(carbonPrefix, "--btn"));
|
56
56
|
|
57
57
|
// calculate total width of button set
|
58
58
|
var sizingSetTotalSize = 0;
|
@@ -70,7 +70,7 @@ var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
70
70
|
} finally {
|
71
71
|
_iterator.f();
|
72
72
|
}
|
73
|
-
var sizingComboSize = (_sizingContainerRefCo = sizingContainerRefCombo.current) === null || _sizingContainerRefCo ===
|
73
|
+
var sizingComboSize = (_sizingContainerRefCo = sizingContainerRefCombo.current) === null || _sizingContainerRefCo === void 0 ? void 0 : _sizingContainerRefCo.offsetWidth;
|
74
74
|
if (onWidthChange && (sizes.current.minWidth !== sizingComboSize || sizes.current.maxWidth !== sizingSetTotalSize)) {
|
75
75
|
sizes.current.minWidth = sizingComboSize;
|
76
76
|
sizes.current.maxWidth = sizingSetTotalSize;
|
@@ -91,7 +91,7 @@ var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
91
91
|
}, [buttons]);
|
92
92
|
var AButtonSet = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
93
93
|
var _ref2$isHidden = _ref2.isHidden,
|
94
|
-
isHidden = _ref2$isHidden ===
|
94
|
+
isHidden = _ref2$isHidden === void 0 ? false : _ref2$isHidden,
|
95
95
|
buttons = _ref2.buttons,
|
96
96
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
97
97
|
return /*#__PURE__*/React__default.createElement(ButtonSet, _extends({}, rest, {
|
@@ -22,16 +22,16 @@ var _excluded = ["actionIcons", "actionsPlacement", "decorator", "metadata", "ch
|
|
22
22
|
var componentName = 'Card';
|
23
23
|
var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
24
24
|
var _ref$actionIcons = _ref.actionIcons,
|
25
|
-
actionIcons = _ref$actionIcons ===
|
25
|
+
actionIcons = _ref$actionIcons === void 0 ? Object.freeze([]) : _ref$actionIcons,
|
26
26
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
27
|
-
actionsPlacement = _ref$actionsPlacement ===
|
27
|
+
actionsPlacement = _ref$actionsPlacement === void 0 ? 'bottom' : _ref$actionsPlacement,
|
28
28
|
decorator = _ref.decorator,
|
29
29
|
_ref$metadata = _ref.metadata,
|
30
|
-
metadata = _ref$metadata ===
|
30
|
+
metadata = _ref$metadata === void 0 ? Object.freeze([]) : _ref$metadata,
|
31
31
|
children = _ref.children,
|
32
32
|
className = _ref.className,
|
33
33
|
_ref$clickZone = _ref.clickZone,
|
34
|
-
clickZone = _ref$clickZone ===
|
34
|
+
clickZone = _ref$clickZone === void 0 ? 'one' : _ref$clickZone,
|
35
35
|
description = _ref.description,
|
36
36
|
disabled = _ref.disabled,
|
37
37
|
footerActionIcon = _ref.footerActionIcon,
|
@@ -39,41 +39,41 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
39
39
|
label = _ref.label,
|
40
40
|
media = _ref.media,
|
41
41
|
_ref$mediaPosition = _ref.mediaPosition,
|
42
|
-
mediaPosition = _ref$mediaPosition ===
|
42
|
+
mediaPosition = _ref$mediaPosition === void 0 ? 'top' : _ref$mediaPosition,
|
43
43
|
onClick = _ref.onClick,
|
44
44
|
onKeyDown = _ref.onKeyDown,
|
45
45
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
46
46
|
onSecondaryButtonClick = _ref.onSecondaryButtonClick,
|
47
47
|
_ref$overflowActions = _ref.overflowActions,
|
48
|
-
overflowActions = _ref$overflowActions ===
|
48
|
+
overflowActions = _ref$overflowActions === void 0 ? Object.freeze([]) : _ref$overflowActions,
|
49
49
|
overflowAriaLabel = _ref.overflowAriaLabel,
|
50
50
|
Pictogram = _ref.pictogram,
|
51
51
|
primaryButtonDisabled = _ref.primaryButtonDisabled,
|
52
52
|
primaryButtonHref = _ref.primaryButtonHref,
|
53
53
|
primaryButtonIcon = _ref.primaryButtonIcon,
|
54
54
|
_ref$primaryButtonKin = _ref.primaryButtonKind,
|
55
|
-
primaryButtonKind = _ref$primaryButtonKin ===
|
55
|
+
primaryButtonKind = _ref$primaryButtonKin === void 0 ? 'primary' : _ref$primaryButtonKin,
|
56
56
|
_ref$primaryButtonPla = _ref.primaryButtonPlacement,
|
57
|
-
primaryButtonPlacement = _ref$primaryButtonPla ===
|
57
|
+
primaryButtonPlacement = _ref$primaryButtonPla === void 0 ? 'bottom' : _ref$primaryButtonPla,
|
58
58
|
primaryButtonText = _ref.primaryButtonText,
|
59
59
|
_ref$productive = _ref.productive,
|
60
|
-
productive = _ref$productive ===
|
60
|
+
productive = _ref$productive === void 0 ? false : _ref$productive,
|
61
61
|
secondaryButtonDisabled = _ref.secondaryButtonDisabled,
|
62
62
|
secondaryButtonHref = _ref.secondaryButtonHref,
|
63
63
|
secondaryButtonIcon = _ref.secondaryButtonIcon,
|
64
64
|
_ref$secondaryButtonK = _ref.secondaryButtonKind,
|
65
|
-
secondaryButtonKind = _ref$secondaryButtonK ===
|
65
|
+
secondaryButtonKind = _ref$secondaryButtonK === void 0 ? 'secondary' : _ref$secondaryButtonK,
|
66
66
|
_ref$secondaryButtonP = _ref.secondaryButtonPlacement,
|
67
|
-
secondaryButtonPlacement = _ref$secondaryButtonP ===
|
67
|
+
secondaryButtonPlacement = _ref$secondaryButtonP === void 0 ? 'bottom' : _ref$secondaryButtonP,
|
68
68
|
secondaryButtonText = _ref.secondaryButtonText,
|
69
69
|
slug = _ref.slug,
|
70
70
|
status = _ref.status,
|
71
71
|
sequence = _ref.sequence,
|
72
72
|
title = _ref.title,
|
73
73
|
_ref$titleSize = _ref.titleSize,
|
74
|
-
titleSize = _ref$titleSize ===
|
74
|
+
titleSize = _ref$titleSize === void 0 ? 'default' : _ref$titleSize,
|
75
75
|
_ref$iconDescription = _ref.iconDescription,
|
76
|
-
iconDescription = _ref$iconDescription ===
|
76
|
+
iconDescription = _ref$iconDescription === void 0 ? 'Options' : _ref$iconDescription,
|
77
77
|
rest = _objectWithoutProperties(_ref, _excluded);
|
78
78
|
var getIcons = function getIcons() {
|
79
79
|
return getStarted ? metadata : actionIcons;
|
@@ -171,7 +171,7 @@ var Card = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
171
171
|
var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
|
172
172
|
var cardProps = _objectSpread2(_objectSpread2({}, rest), {}, {
|
173
173
|
ref: ref,
|
174
|
-
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-decorator"), !!decorator && ((_decorator$type = decorator['type']) === null || _decorator$type ===
|
174
|
+
className: cx(blockClass, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__disabled"), disabled), "".concat(blockClass, "__get-started"), getStarted), "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), "".concat(blockClass, "--has-slug"), !!slug), "".concat(blockClass, "--has-decorator"), !!decorator && ((_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) !== 'AILabel'), "".concat(blockClass, "--has-ai-label"), !!decorator && ((_decorator$type2 = decorator['type']) === null || _decorator$type2 === void 0 ? void 0 : _decorator$type2.displayName) === 'AILabel'), className)
|
175
175
|
}, clickable && clickableProps);
|
176
176
|
return cardProps;
|
177
177
|
};
|
@@ -20,7 +20,7 @@ var defaults = {
|
|
20
20
|
productive: false};
|
21
21
|
var CardFooter = function CardFooter(_ref) {
|
22
22
|
var _ref$actions = _ref.actions,
|
23
|
-
actions = _ref$actions ===
|
23
|
+
actions = _ref$actions === void 0 ? defaults.actions : _ref$actions,
|
24
24
|
disabled = _ref.disabled,
|
25
25
|
FooterActionIcon = _ref.footerActionIcon,
|
26
26
|
hasActions = _ref.hasActions,
|
@@ -31,16 +31,16 @@ var CardFooter = function CardFooter(_ref) {
|
|
31
31
|
primaryButtonHref = _ref.primaryButtonHref,
|
32
32
|
primaryButtonIcon = _ref.primaryButtonIcon,
|
33
33
|
_ref$primaryButtonKin = _ref.primaryButtonKind,
|
34
|
-
primaryButtonKind = _ref$primaryButtonKin ===
|
34
|
+
primaryButtonKind = _ref$primaryButtonKin === void 0 ? 'primary' : _ref$primaryButtonKin,
|
35
35
|
primaryButtonPlacement = _ref.primaryButtonPlacement,
|
36
36
|
primaryButtonText = _ref.primaryButtonText,
|
37
37
|
_ref$productive = _ref.productive,
|
38
|
-
productive = _ref$productive ===
|
38
|
+
productive = _ref$productive === void 0 ? defaults.productive : _ref$productive,
|
39
39
|
secondaryButtonDisabled = _ref.secondaryButtonDisabled,
|
40
40
|
secondaryButtonHref = _ref.secondaryButtonHref,
|
41
41
|
secondaryButtonIcon = _ref.secondaryButtonIcon,
|
42
42
|
_ref$secondaryButtonK = _ref.secondaryButtonKind,
|
43
|
-
secondaryButtonKind = _ref$secondaryButtonK ===
|
43
|
+
secondaryButtonKind = _ref$secondaryButtonK === void 0 ? 'secondary' : _ref$secondaryButtonK,
|
44
44
|
secondaryButtonPlacement = _ref.secondaryButtonPlacement,
|
45
45
|
secondaryButtonText = _ref.secondaryButtonText;
|
46
46
|
var blockClass = "".concat(pkg.prefix, "--card");
|
@@ -28,7 +28,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
28
28
|
primaryButtonDisabled = _ref.primaryButtonDisabled,
|
29
29
|
description = _ref.description,
|
30
30
|
_ref$hasActions = _ref.hasActions,
|
31
|
-
hasActions = _ref$hasActions ===
|
31
|
+
hasActions = _ref$hasActions === void 0 ? defaults.hasActions : _ref$hasActions,
|
32
32
|
inClickableCard = _ref.inClickableCard,
|
33
33
|
label = _ref.label,
|
34
34
|
secondaryButtonDisabled = _ref.secondaryButtonDisabled,
|
@@ -39,7 +39,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
39
39
|
slug = _ref.slug,
|
40
40
|
title = _ref.title,
|
41
41
|
_ref$titleSize = _ref.titleSize,
|
42
|
-
titleSize = _ref$titleSize ===
|
42
|
+
titleSize = _ref$titleSize === void 0 ? 'default' : _ref$titleSize;
|
43
43
|
var carbonPrefix = usePrefix();
|
44
44
|
var blockClass = "".concat(pkg.prefix, "--card");
|
45
45
|
var headerClass = "".concat(blockClass, "__header");
|
@@ -46,12 +46,12 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
46
46
|
var children = props.children,
|
47
47
|
className = props.className,
|
48
48
|
_props$disableArrowSc = props.disableArrowScroll,
|
49
|
-
disableArrowScroll = _props$disableArrowSc ===
|
49
|
+
disableArrowScroll = _props$disableArrowSc === void 0 ? defaults.disableArrowScroll : _props$disableArrowSc,
|
50
50
|
fadedEdgeColor = props.fadedEdgeColor,
|
51
51
|
_props$onChangeIsScro = props.onChangeIsScrollable,
|
52
|
-
onChangeIsScrollable = _props$onChangeIsScro ===
|
52
|
+
onChangeIsScrollable = _props$onChangeIsScro === void 0 ? defaults.onChangeIsScrollable : _props$onChangeIsScro,
|
53
53
|
_props$onScroll = props.onScroll,
|
54
|
-
onScroll = _props$onScroll ===
|
54
|
+
onScroll = _props$onScroll === void 0 ? defaults.onScroll : _props$onScroll,
|
55
55
|
rest = _objectWithoutProperties(props, _excluded);
|
56
56
|
var carouselRef = useRef(null);
|
57
57
|
var scrollRef = useRef(null);
|
@@ -59,8 +59,8 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
59
59
|
var rightFadedEdgeRef = useRef(null);
|
60
60
|
// Array of refs used to reference this component's children DOM elements
|
61
61
|
var childElementsRef = useRef(Array(React__default.Children.count(children)).fill(useRef(null)));
|
62
|
-
var leftFadedEdgeColor = _typeof(fadedEdgeColor) === 'object' ? fadedEdgeColor === null || fadedEdgeColor ===
|
63
|
-
var rightFadedEdgeColor = _typeof(fadedEdgeColor) === 'object' ? fadedEdgeColor === null || fadedEdgeColor ===
|
62
|
+
var leftFadedEdgeColor = _typeof(fadedEdgeColor) === 'object' ? fadedEdgeColor === null || fadedEdgeColor === void 0 ? void 0 : fadedEdgeColor.left : fadedEdgeColor;
|
63
|
+
var rightFadedEdgeColor = _typeof(fadedEdgeColor) === 'object' ? fadedEdgeColor === null || fadedEdgeColor === void 0 ? void 0 : fadedEdgeColor.right : fadedEdgeColor;
|
64
64
|
|
65
65
|
// Trigger callbacks to report state of the carousel
|
66
66
|
var handleOnScroll = useCallback(function () {
|
@@ -70,11 +70,11 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
70
70
|
}
|
71
71
|
|
72
72
|
// viewport's width
|
73
|
-
var clientWidth = (_scrollRef$current = scrollRef.current) === null || _scrollRef$current ===
|
73
|
+
var clientWidth = (_scrollRef$current = scrollRef.current) === null || _scrollRef$current === void 0 ? void 0 : _scrollRef$current.clientWidth;
|
74
74
|
// scroll position
|
75
|
-
var scrollLeft = parseInt("".concat((_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 ===
|
75
|
+
var scrollLeft = parseInt("".concat((_scrollRef$current2 = scrollRef.current) === null || _scrollRef$current2 === void 0 ? void 0 : _scrollRef$current2.scrollLeft), 10);
|
76
76
|
// scrollable width
|
77
|
-
var scrollWidth = (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 ===
|
77
|
+
var scrollWidth = (_scrollRef$current3 = scrollRef.current) === null || _scrollRef$current3 === void 0 ? void 0 : _scrollRef$current3.scrollWidth;
|
78
78
|
|
79
79
|
// The maximum scrollLeft achievable is the scrollable width - the viewport width.
|
80
80
|
var scrollLeftMax = scrollWidth - clientWidth;
|
@@ -100,7 +100,7 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
100
100
|
// Get all elements that are visible in the container.
|
101
101
|
var getElementsInView = useCallback(function () {
|
102
102
|
var _scrollRef$current4;
|
103
|
-
var containerRect = scrollRef === null || scrollRef ===
|
103
|
+
var containerRect = scrollRef === null || scrollRef === void 0 || (_scrollRef$current4 = scrollRef.current) === null || _scrollRef$current4 === void 0 ? void 0 : _scrollRef$current4.getBoundingClientRect();
|
104
104
|
var inViewElements = childElementsRef.current.filter(function (el) {
|
105
105
|
return getElementInView(containerRect, el.getBoundingClientRect());
|
106
106
|
});
|
@@ -111,7 +111,7 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
111
111
|
var getContainerAndChildRectData = useCallback(function () {
|
112
112
|
var _scrollRef$current5;
|
113
113
|
// Get the rect of the container
|
114
|
-
var containerRect = scrollRef === null || scrollRef ===
|
114
|
+
var containerRect = scrollRef === null || scrollRef === void 0 || (_scrollRef$current5 = scrollRef.current) === null || _scrollRef$current5 === void 0 ? void 0 : _scrollRef$current5.getBoundingClientRect();
|
115
115
|
// Get all child elements that are in view of the container, and return their bounding rects.
|
116
116
|
var elementRectsInView = getElementsInView().map(function (el) {
|
117
117
|
return el.getBoundingClientRect();
|
@@ -136,7 +136,7 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
136
136
|
containerRect = _getContainerAndChild.containerRect,
|
137
137
|
visibleWidth = _getContainerAndChild.visibleWidth;
|
138
138
|
// Set the scrollValue to the visibleWidth, but if the visibleWidth value is 0, set it to the container's width
|
139
|
-
var scrollValue = visibleWidth > 0 ? visibleWidth : containerRect === null || containerRect ===
|
139
|
+
var scrollValue = visibleWidth > 0 ? visibleWidth : containerRect === null || containerRect === void 0 ? void 0 : containerRect.width;
|
140
140
|
// Increment the scrollLeft of the container
|
141
141
|
scrollRef.current.scrollLeft += scrollValue;
|
142
142
|
}, [getContainerAndChildRectData]);
|
@@ -151,7 +151,7 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
151
151
|
visibleWidth = _getContainerAndChild2.visibleWidth;
|
152
152
|
// Set the scrollValue to the visibleWidth minus the first child's left value,
|
153
153
|
// but if the visibleWidth value is 0, set it to the container's width plus the container's left value
|
154
|
-
var scrollValue = visibleWidth > 0 ? visibleWidth - elementRectsInView[0].left : ((_containerRect$width = containerRect === null || containerRect ===
|
154
|
+
var scrollValue = visibleWidth > 0 ? visibleWidth - elementRectsInView[0].left : ((_containerRect$width = containerRect === null || containerRect === void 0 ? void 0 : containerRect.width) !== null && _containerRect$width !== void 0 ? _containerRect$width : 0) + ((_containerRect$left = containerRect === null || containerRect === void 0 ? void 0 : containerRect.left) !== null && _containerRect$left !== void 0 ? _containerRect$left : 0);
|
155
155
|
|
156
156
|
// Decrement the scrollLeft of the container
|
157
157
|
scrollRef.current.scrollLeft -= scrollValue;
|
@@ -204,9 +204,9 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
204
204
|
handleOnScroll();
|
205
205
|
};
|
206
206
|
var scrollDiv = scrollRef.current;
|
207
|
-
scrollDiv === null || scrollDiv ===
|
207
|
+
scrollDiv === null || scrollDiv === void 0 || scrollDiv.addEventListener('scrollend', handleScrollend);
|
208
208
|
return function () {
|
209
|
-
return scrollDiv === null || scrollDiv ===
|
209
|
+
return scrollDiv === null || scrollDiv === void 0 ? void 0 : scrollDiv.removeEventListener('scrollend', handleScrollend);
|
210
210
|
};
|
211
211
|
}, [handleOnScroll]);
|
212
212
|
|
@@ -268,12 +268,12 @@ var Carousel = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
268
268
|
};
|
269
269
|
}, [handleScrollNext, handleScrollPrev, handleScrollReset, handleScrollToView]);
|
270
270
|
useIsomorphicEffect(function () {
|
271
|
-
if (leftFadedEdgeRef !== null && leftFadedEdgeRef !==
|
271
|
+
if (leftFadedEdgeRef !== null && leftFadedEdgeRef !== void 0 && leftFadedEdgeRef.current && leftFadedEdgeRef.current.style) {
|
272
272
|
leftFadedEdgeRef.current.style.background = "linear-gradient(90deg, ".concat(leftFadedEdgeColor, ", transparent)");
|
273
273
|
}
|
274
274
|
}, [leftFadedEdgeRef, leftFadedEdgeColor]);
|
275
275
|
useIsomorphicEffect(function () {
|
276
|
-
if (rightFadedEdgeRef !== null && rightFadedEdgeRef !==
|
276
|
+
if (rightFadedEdgeRef !== null && rightFadedEdgeRef !== void 0 && rightFadedEdgeRef.current && rightFadedEdgeRef.current.style) {
|
277
277
|
rightFadedEdgeRef.current.style.background = "linear-gradient(270deg, ".concat(rightFadedEdgeColor, ", transparent)");
|
278
278
|
}
|
279
279
|
}, [rightFadedEdgeRef, rightFadedEdgeColor]);
|
@@ -32,7 +32,7 @@ var Cascade = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
32
32
|
var children = props.children,
|
33
33
|
className = props.className,
|
34
34
|
_props$grid = props.grid,
|
35
|
-
grid = _props$grid ===
|
35
|
+
grid = _props$grid === void 0 ? defaults.grid : _props$grid,
|
36
36
|
rest = _objectWithoutProperties(props, _excluded);
|
37
37
|
var childProps = _objectSpread2(_objectSpread2({}, rest), {}, {
|
38
38
|
className: cx(blockClass, className),
|
@@ -53,7 +53,7 @@ var Cascade = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
53
53
|
var colIdx = 0;
|
54
54
|
var gridElm = React__default.Children.map(children, function (row) {
|
55
55
|
if (/*#__PURE__*/React__default.isValidElement(row)) {
|
56
|
-
var cols = React__default.Children.map(row === null || row ===
|
56
|
+
var cols = React__default.Children.map(row === null || row === void 0 ? void 0 : row.props.children, function (col) {
|
57
57
|
if (/*#__PURE__*/React__default.isValidElement(col)) {
|
58
58
|
colIdx = colIdx + 1;
|
59
59
|
var colClassnames = cx(col.props.className, "".concat(blockClass, "__col"), "".concat(blockClass, "__col-").concat(colIdx));
|
@@ -58,27 +58,27 @@ var Checklist = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
58
58
|
var chartValue = _ref.chartValue,
|
59
59
|
chartLabel = _ref.chartLabel,
|
60
60
|
_ref$checklistAriaLab = _ref.checklistAriaLabel,
|
61
|
-
checklistAriaLabel = _ref$checklistAriaLab ===
|
61
|
+
checklistAriaLabel = _ref$checklistAriaLab === void 0 ? defaults.checklistAriaLabel : _ref$checklistAriaLab,
|
62
62
|
_ref$checklistToggleA = _ref.checklistToggleAriaLabel,
|
63
|
-
checklistToggleAriaLabel = _ref$checklistToggleA ===
|
63
|
+
checklistToggleAriaLabel = _ref$checklistToggleA === void 0 ? defaults.checklistToggleAriaLabel : _ref$checklistToggleA,
|
64
64
|
className = _ref.className,
|
65
65
|
_ref$onClickViewAll = _ref.onClickViewAll,
|
66
|
-
onClickViewAll = _ref$onClickViewAll ===
|
66
|
+
onClickViewAll = _ref$onClickViewAll === void 0 ? defaults.onClickViewAll : _ref$onClickViewAll,
|
67
67
|
_ref$onToggle = _ref.onToggle,
|
68
|
-
onToggle = _ref$onToggle ===
|
68
|
+
onToggle = _ref$onToggle === void 0 ? defaults.onToggle : _ref$onToggle,
|
69
69
|
_ref$open = _ref.open,
|
70
|
-
open = _ref$open ===
|
70
|
+
open = _ref$open === void 0 ? defaults.open : _ref$open,
|
71
71
|
_ref$enableToggle = _ref.enableToggle,
|
72
|
-
enableToggle = _ref$enableToggle ===
|
72
|
+
enableToggle = _ref$enableToggle === void 0 ? defaults.enableToggle : _ref$enableToggle,
|
73
73
|
_ref$taskLists = _ref.taskLists,
|
74
|
-
taskLists = _ref$taskLists ===
|
74
|
+
taskLists = _ref$taskLists === void 0 ? defaults.taskLists : _ref$taskLists,
|
75
75
|
_ref$theme = _ref.theme,
|
76
|
-
theme = _ref$theme ===
|
76
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
77
77
|
title = _ref.title,
|
78
78
|
_ref$toggleLabel = _ref.toggleLabel,
|
79
|
-
toggleLabel = _ref$toggleLabel ===
|
79
|
+
toggleLabel = _ref$toggleLabel === void 0 ? defaults.toggleLabel : _ref$toggleLabel,
|
80
80
|
_ref$toggleLabelAlign = _ref.toggleLabelAlign,
|
81
|
-
toggleLabelAlign = _ref$toggleLabelAlign ===
|
81
|
+
toggleLabelAlign = _ref$toggleLabelAlign === void 0 ? 'top' : _ref$toggleLabelAlign,
|
82
82
|
viewAllLabel = _ref.viewAllLabel,
|
83
83
|
rest = _objectWithoutProperties(_ref, _excluded);
|
84
84
|
var _useState = useState(open),
|
@@ -173,7 +173,7 @@ var Checklist = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
173
173
|
className: cx("".concat(blockClass, "__button"), _defineProperty({}, "".concat(blockClass, "__button--error"), item.kind === 'error')),
|
174
174
|
onClick: function onClick() {
|
175
175
|
var _item$onClick;
|
176
|
-
(_item$onClick = item.onClick) === null || _item$onClick ===
|
176
|
+
(_item$onClick = item.onClick) === null || _item$onClick === void 0 || _item$onClick.call(item, item);
|
177
177
|
},
|
178
178
|
size: "sm",
|
179
179
|
title: item.label
|
@@ -33,7 +33,7 @@ function (_ref, ref) {
|
|
33
33
|
var className = _ref.className,
|
34
34
|
value = _ref.value,
|
35
35
|
_ref$theme = _ref.theme,
|
36
|
-
theme = _ref$theme ===
|
36
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
37
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
38
38
|
var numDegrees = clamp(value * 360, 0, 360);
|
39
39
|
var circleColor = theme === Themes.light ? gray20 : gray70; // $ui-03 (-ish)
|
@@ -47,7 +47,7 @@ function (_ref, ref) {
|
|
47
47
|
var className = _ref.className,
|
48
48
|
kind = _ref.kind,
|
49
49
|
_ref$theme = _ref.theme,
|
50
|
-
theme = _ref$theme ===
|
50
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
51
51
|
rest = _objectWithoutProperties(_ref, _excluded);
|
52
52
|
var Icon;
|
53
53
|
switch (kind) {
|
@@ -41,23 +41,23 @@ var defaults = {
|
|
41
41
|
|
42
42
|
var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
43
43
|
var _ref$align = _ref.align,
|
44
|
-
align = _ref$align ===
|
44
|
+
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
45
45
|
autoAlign = _ref.autoAlign,
|
46
46
|
children = _ref.children,
|
47
47
|
className = _ref.className,
|
48
48
|
_ref$onClose = _ref.onClose,
|
49
|
-
onClose = _ref$onClose ===
|
49
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
50
50
|
overlayClassName = _ref.overlayClassName,
|
51
51
|
_ref$overlayKind = _ref.overlayKind,
|
52
|
-
overlayKind = _ref$overlayKind ===
|
52
|
+
overlayKind = _ref$overlayKind === void 0 ? defaults.overlayKind : _ref$overlayKind,
|
53
53
|
overlayRef = _ref.overlayRef,
|
54
54
|
positionTune = _ref.positionTune,
|
55
55
|
portalTarget = _ref.portalTarget,
|
56
56
|
target = _ref.target,
|
57
57
|
_ref$theme = _ref.theme,
|
58
|
-
theme = _ref$theme ===
|
58
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
59
59
|
_ref$isOpenByDefault = _ref.isOpenByDefault,
|
60
|
-
isOpenByDefault = _ref$isOpenByDefault ===
|
60
|
+
isOpenByDefault = _ref$isOpenByDefault === void 0 ? defaults.isOpenByDefault : _ref$isOpenByDefault,
|
61
61
|
rest = _objectWithoutProperties(_ref, _excluded);
|
62
62
|
var isBeacon = overlayKind === COACHMARK_OVERLAY_KIND.TOOLTIP;
|
63
63
|
var isStacked = overlayKind === COACHMARK_OVERLAY_KIND.STACKED;
|
@@ -88,7 +88,7 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
88
88
|
var popoverRef = useRef(null);
|
89
89
|
useIsomorphicEffect(function () {
|
90
90
|
var _document$querySelect, _document, _document2, _document3;
|
91
|
-
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document ===
|
91
|
+
portalNode.current = portalTarget ? (_document$querySelect = (_document = document) === null || _document === void 0 ? void 0 : _document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.querySelector('body') : (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.querySelector('body');
|
92
92
|
}, [portalTarget]);
|
93
93
|
var closeOverlay = function closeOverlay() {
|
94
94
|
setIsOpen(false);
|
@@ -164,8 +164,8 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
164
164
|
useIsomorphicEffect(function () {
|
165
165
|
var _positionTune$y, _positionTune$x;
|
166
166
|
var overlayPositionStyle = {
|
167
|
-
top: "".concat(((_positionTune$y = positionTune === null || positionTune ===
|
168
|
-
left: "".concat(((_positionTune$x = positionTune === null || positionTune ===
|
167
|
+
top: "".concat(((_positionTune$y = positionTune === null || positionTune === void 0 ? void 0 : positionTune.y) !== null && _positionTune$y !== void 0 ? _positionTune$y : 0) - 16, "px"),
|
168
|
+
left: "".concat(((_positionTune$x = positionTune === null || positionTune === void 0 ? void 0 : positionTune.x) !== null && _positionTune$x !== void 0 ? _positionTune$x : 0) - 16, "px")
|
169
169
|
};
|
170
170
|
if (popoverRef.current && popoverRef.current.style && overlayPositionStyle) {
|
171
171
|
var combinedStyle = _objectSpread2({
|
@@ -194,7 +194,7 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
194
194
|
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
195
195
|
className: cx(blockClass, "".concat(blockClass, "__").concat(theme), className),
|
196
196
|
ref: _coachmarkRef
|
197
|
-
}, rest, getDevtoolsProps(componentName)), overlayKind !== 'tooltip' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, target, isOpen && (portalNode === null || portalNode ===
|
197
|
+
}, rest, getDevtoolsProps(componentName)), overlayKind !== 'tooltip' ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, target, isOpen && (portalNode === null || portalNode === void 0 ? void 0 : portalNode.current) && /*#__PURE__*/createPortal(/*#__PURE__*/React__default.createElement(CoachmarkOverlay, {
|
198
198
|
ref: _overlayRef,
|
199
199
|
fixedIsVisible: false,
|
200
200
|
kind: overlayKind,
|
@@ -202,7 +202,7 @@ var Coachmark = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
202
202
|
theme: theme,
|
203
203
|
className: cx(overlayClassName, "".concat(overlayBlockClass, "--is-visible"))
|
204
204
|
}, children), // Default to `document.body` when `portalNode` is `null`
|
205
|
-
portalNode === null || portalNode ===
|
205
|
+
portalNode === null || portalNode === void 0 ? void 0 : portalNode.current)) : /*#__PURE__*/React__default.createElement(Popover, {
|
206
206
|
highContrast: true,
|
207
207
|
caret: true,
|
208
208
|
ref: popoverRef,
|
@@ -38,15 +38,15 @@ var defaults = {
|
|
38
38
|
var CoachmarkDragbar = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
39
39
|
var a11yKeyboardHandler = _ref.a11yKeyboardHandler,
|
40
40
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
41
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
41
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
42
42
|
_ref$onClose = _ref.onClose,
|
43
|
-
onClose = _ref$onClose ===
|
43
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
44
44
|
_ref$onDrag = _ref.onDrag,
|
45
|
-
onDrag = _ref$onDrag ===
|
45
|
+
onDrag = _ref$onDrag === void 0 ? defaults.onDrag : _ref$onDrag,
|
46
46
|
_ref$showCloseButton = _ref.showCloseButton,
|
47
|
-
showCloseButton = _ref$showCloseButton ===
|
47
|
+
showCloseButton = _ref$showCloseButton === void 0 ? defaults.showCloseButton : _ref$showCloseButton,
|
48
48
|
_ref$theme = _ref.theme,
|
49
|
-
theme = _ref$theme ===
|
49
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
50
50
|
rest = _objectWithoutProperties(_ref, _excluded);
|
51
51
|
var _useState = useState(false),
|
52
52
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -32,13 +32,13 @@ var defaults = {
|
|
32
32
|
*/
|
33
33
|
var CoachmarkHeader = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
34
34
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
35
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
35
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
36
36
|
_ref$onClose = _ref.onClose,
|
37
|
-
onClose = _ref$onClose ===
|
37
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
38
38
|
_ref$showCloseButton = _ref.showCloseButton,
|
39
|
-
showCloseButton = _ref$showCloseButton ===
|
39
|
+
showCloseButton = _ref$showCloseButton === void 0 ? defaults.showCloseButton : _ref$showCloseButton,
|
40
40
|
_ref$theme = _ref.theme,
|
41
|
-
theme = _ref$theme ===
|
41
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
42
42
|
rest = _objectWithoutProperties(_ref, _excluded);
|
43
43
|
return /*#__PURE__*/React__default.createElement("header", _extends({}, rest, {
|
44
44
|
className: cx(blockClass, "".concat(blockClass, "__").concat(theme)),
|
@@ -41,9 +41,9 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
41
41
|
fixedIsVisible = _ref.fixedIsVisible,
|
42
42
|
className = _ref.className,
|
43
43
|
_ref$kind = _ref.kind,
|
44
|
-
kind = _ref$kind ===
|
44
|
+
kind = _ref$kind === void 0 ? defaults.kind : _ref$kind,
|
45
45
|
_ref$theme = _ref.theme,
|
46
|
-
theme = _ref$theme ===
|
46
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
47
47
|
rest = _objectWithoutProperties(_ref, _excluded);
|
48
48
|
var _useWindowDimensions = useWindowDimensions(),
|
49
49
|
winHeight = _useWindowDimensions.winHeight,
|
@@ -56,7 +56,7 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
56
56
|
var coachmark = useCoachmark();
|
57
57
|
var isBeacon = kind === COACHMARK_OVERLAY_KIND.TOOLTIP;
|
58
58
|
var isDraggable = kind === COACHMARK_OVERLAY_KIND.FLOATING;
|
59
|
-
var isVisible = className === null || className ===
|
59
|
+
var isVisible = className === null || className === void 0 ? void 0 : className.includes('is-visible');
|
60
60
|
var handleKeyPress = function handleKeyPress(event) {
|
61
61
|
var shiftKey = event.shiftKey,
|
62
62
|
key = event.key;
|
@@ -147,7 +147,7 @@ var CoachmarkOverlay = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
147
147
|
useIsomorphicEffect(function () {
|
148
148
|
if (overlayRef.current) {
|
149
149
|
var _overlayRef$current;
|
150
|
-
var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current ===
|
150
|
+
var currentStyle = (_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.style;
|
151
151
|
Object.keys(styledTune).forEach(function (key) {
|
152
152
|
var value = styledTune[key];
|
153
153
|
currentStyle.setProperty(key, "".concat(value, "px"));
|
@@ -32,11 +32,11 @@ var defaults = {
|
|
32
32
|
*/
|
33
33
|
var CoachmarkTagline = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
34
34
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
35
|
-
closeIconDescription = _ref$closeIconDescrip ===
|
35
|
+
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
36
36
|
_ref$onClose = _ref.onClose,
|
37
|
-
onClose = _ref$onClose ===
|
37
|
+
onClose = _ref$onClose === void 0 ? defaults.onClose : _ref$onClose,
|
38
38
|
_ref$theme = _ref.theme,
|
39
|
-
theme = _ref$theme ===
|
39
|
+
theme = _ref$theme === void 0 ? defaults.theme : _ref$theme,
|
40
40
|
title = _ref.title,
|
41
41
|
rest = _objectWithoutProperties(_ref, _excluded);
|
42
42
|
var coachmark = useCoachmark();
|
@@ -30,7 +30,7 @@ var CoachmarkBeacon = /*#__PURE__*/React__default.forwardRef(function (_ref, ref
|
|
30
30
|
var label = _ref.label,
|
31
31
|
className = _ref.className,
|
32
32
|
_ref$kind = _ref.kind,
|
33
|
-
kind = _ref$kind ===
|
33
|
+
kind = _ref$kind === void 0 ? defaults.kind : _ref$kind,
|
34
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
35
35
|
var coachmark = useCoachmark();
|
36
36
|
if (!coachmark) {
|