@carbon/ibm-products 2.43.2-canary.257 → 2.43.2-canary.261
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 +1 -0
- 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 +1 -0
- 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 +1 -0
- 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 +1 -0
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/ActionBar/ActionBarOverflowItems.js +5 -0
- package/es/components/AddSelect/AddSelectBody.js +1 -1
- package/es/components/BigNumbers/BigNumbers.js +1 -1
- package/es/components/Coachmark/utils/enums.js +1 -0
- package/es/components/ScrollGradient/ScrollGradient.js +1 -1
- package/es/components/StringFormatter/StringFormatter.js +1 -1
- package/es/global/js/utils/devtools.js +1 -2
- package/lib/_virtual/_commonjsHelpers.js +0 -2
- package/lib/_virtual/_rollupPluginBabelHelpers.js +2 -4
- package/lib/_virtual/index.js +0 -2
- package/lib/components/APIKeyModal/APIKeyDownloader.js +8 -14
- package/lib/components/APIKeyModal/APIKeyModal.js +70 -77
- package/lib/components/AboutModal/AboutModal.js +29 -36
- package/lib/components/ActionBar/ActionBar.js +26 -33
- package/lib/components/ActionBar/ActionBarItem.js +9 -16
- package/lib/components/ActionBar/ActionBarOverflowItems.js +23 -25
- package/lib/components/ActionSet/ActionSet.js +17 -24
- package/lib/components/AddSelect/AddSelect.js +62 -68
- package/lib/components/AddSelect/AddSelectBody.js +82 -89
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +6 -13
- package/lib/components/AddSelect/AddSelectColumn.js +29 -35
- package/lib/components/AddSelect/AddSelectFilter.js +30 -37
- package/lib/components/AddSelect/AddSelectFormControl.js +15 -21
- package/lib/components/AddSelect/AddSelectList.js +9 -16
- package/lib/components/AddSelect/AddSelectMetaPanel.js +16 -22
- package/lib/components/AddSelect/AddSelectRow.js +32 -39
- package/lib/components/AddSelect/AddSelectSidebar.js +29 -35
- package/lib/components/AddSelect/AddSelectSort.js +10 -16
- package/lib/components/AddSelect/add-select-utils.js +0 -2
- package/lib/components/AddSelect/hooks/useFocus.js +1 -1
- package/lib/components/AddSelect/hooks/useItemSort.js +0 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -1
- package/lib/components/AddSelect/hooks/usePath.js +1 -1
- package/lib/components/BigNumbers/BigNumbers.js +39 -46
- package/lib/components/BigNumbers/constants.js +0 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +35 -42
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +22 -29
- package/lib/components/Card/Card.js +73 -80
- package/lib/components/Card/CardFooter.js +28 -35
- package/lib/components/Card/CardHeader.js +37 -44
- package/lib/components/Carousel/Carousel.js +21 -28
- package/lib/components/Carousel/CarouselItem.js +5 -12
- package/lib/components/Cascade/Cascade.js +15 -22
- package/lib/components/Checklist/Checklist.js +50 -57
- package/lib/components/Checklist/Checklist.types.js +0 -2
- package/lib/components/Checklist/ChecklistChart.js +7 -15
- package/lib/components/Checklist/ChecklistIcon.js +7 -14
- package/lib/components/Coachmark/Coachmark.js +24 -31
- package/lib/components/Coachmark/CoachmarkDragbar.js +12 -19
- package/lib/components/Coachmark/CoachmarkHeader.js +9 -16
- package/lib/components/Coachmark/CoachmarkOverlay.js +14 -21
- package/lib/components/Coachmark/CoachmarkTagline.js +12 -19
- package/lib/components/Coachmark/utils/constants.js +0 -2
- package/lib/components/Coachmark/utils/context.js +0 -2
- package/lib/components/Coachmark/utils/enums.js +1 -2
- package/lib/components/Coachmark/utils/hooks.js +0 -2
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +10 -17
- package/lib/components/CoachmarkButton/CoachmarkButton.js +6 -13
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +13 -20
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +11 -18
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +25 -32
- package/lib/components/CoachmarkStack/CoachmarkStack.js +23 -30
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +29 -36
- package/lib/components/ComboButton/ComboButton.js +11 -18
- package/lib/components/ComboButton/ComboButtonItem/index.js +2 -8
- package/lib/components/ConditionBuilder/ConditionBlock/ConditionBlock.js +34 -39
- package/lib/components/ConditionBuilder/ConditionBuilder.js +49 -56
- package/lib/components/ConditionBuilder/ConditionBuilderActions/ConditionBuilderActions.js +18 -23
- package/lib/components/ConditionBuilder/ConditionBuilderAdd/ConditionBuilderAdd.js +15 -20
- package/lib/components/ConditionBuilder/ConditionBuilderButton/ConditionBuilderButton.js +20 -27
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/ConditionConnector.js +8 -12
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +4 -8
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +38 -42
- package/lib/components/ConditionBuilder/ConditionBuilderContext/ConditionBuilderProvider.js +25 -31
- package/lib/components/ConditionBuilder/ConditionBuilderContext/translationObject.js +0 -2
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItem.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemDate/ConditionBuilderItemDate.js +9 -15
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemNumber/ConditionBuilderItemNumber.js +5 -11
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +13 -19
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +17 -23
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemText/ConditionBuilderItemText.js +6 -12
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemTime/ConditionBuilderItemTime.js +9 -15
- package/lib/components/ConditionBuilder/ConditionGroupBuilder/ConditionGroupBuilder.js +27 -32
- package/lib/components/ConditionBuilder/ConditionPreview/ConditionPreview.js +25 -30
- package/lib/components/ConditionBuilder/utils/handleKeyboardEvents.js +0 -2
- package/lib/components/ConditionBuilder/utils/useDataConfigs.js +0 -2
- package/lib/components/ConditionBuilder/utils/useTranslations.js +0 -2
- package/lib/components/ConditionBuilder/utils/util.js +0 -2
- package/lib/components/CreateFullPage/CreateFullPage.js +44 -51
- package/lib/components/CreateFullPage/CreateFullPageStep.js +22 -29
- package/lib/components/CreateInfluencer/CreateInfluencer.js +15 -22
- package/lib/components/CreateModal/CreateModal.js +22 -29
- package/lib/components/CreateSidePanel/CreateSidePanel.js +24 -31
- package/lib/components/CreateTearsheet/CreateTearsheet.js +26 -33
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -10
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +31 -38
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +24 -31
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +37 -44
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +54 -61
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +37 -44
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +0 -2
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkForHoldingKey.js +0 -2
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +0 -2
- package/lib/components/DataSpreadsheet/utils/commonEventHandlers.js +1 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +0 -2
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +0 -2
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +0 -2
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +1 -3
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -4
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +0 -2
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +0 -2
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +1 -3
- package/lib/components/Datagrid/Datagrid/Datagrid.js +9 -16
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +43 -50
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +4 -8
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +6 -11
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +2 -6
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +12 -17
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -11
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +18 -23
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -8
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +14 -19
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +5 -9
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +17 -22
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +11 -12
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +10 -11
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +25 -31
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +18 -22
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +7 -13
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -7
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +1 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +34 -39
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +42 -47
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -11
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +11 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/handleCheckboxChange.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +16 -20
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +2 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +18 -25
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +32 -39
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +0 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +12 -17
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +11 -16
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.js +2 -8
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +0 -2
- package/lib/components/Datagrid/common-column-ids.js +0 -2
- package/lib/components/Datagrid/useActionsColumn.js +12 -17
- package/lib/components/Datagrid/useColumnCenterAlign.js +4 -9
- package/lib/components/Datagrid/useColumnRightAlign.js +4 -9
- package/lib/components/Datagrid/useCustomizeColumns.js +6 -7
- package/lib/components/Datagrid/useDatagrid.js +4 -8
- package/lib/components/Datagrid/useDefaultStringRenderer.js +5 -10
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -1
- package/lib/components/Datagrid/useEditableCell.js +2 -2
- package/lib/components/Datagrid/useExpandedRow.js +3 -3
- package/lib/components/Datagrid/useFiltering.js +5 -5
- package/lib/components/Datagrid/useFlexResize.js +1 -1
- package/lib/components/Datagrid/useFloatingScroll.js +2 -6
- package/lib/components/Datagrid/useFocusRowExpander.js +0 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +4 -8
- package/lib/components/Datagrid/useInitialColumnSort.js +0 -2
- package/lib/components/Datagrid/useInlineEdit.js +7 -12
- package/lib/components/Datagrid/useNestedRowExpander.js +5 -10
- package/lib/components/Datagrid/useNestedRows.js +3 -7
- package/lib/components/Datagrid/useOnRowClick.js +1 -1
- package/lib/components/Datagrid/useParentDimensions.js +1 -1
- package/lib/components/Datagrid/useResizeTable.js +1 -1
- package/lib/components/Datagrid/useRowExpander.js +5 -10
- package/lib/components/Datagrid/useRowIsMouseOver.js +2 -6
- package/lib/components/Datagrid/useRowRenderer.js +2 -2
- package/lib/components/Datagrid/useRowSize.js +2 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -8
- package/lib/components/Datagrid/useSelectRows.js +6 -11
- package/lib/components/Datagrid/useSkeletonRows.js +1 -1
- package/lib/components/Datagrid/useSortableColumns.js +8 -13
- package/lib/components/Datagrid/useStickyColumn.js +4 -9
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +0 -2
- package/lib/components/Decorator/Decorator.js +16 -22
- package/lib/components/DecoratorBase/DecoratorBase.js +41 -48
- package/lib/components/DecoratorBase/DecoratorIcon.js +6 -13
- package/lib/components/DecoratorBase/utils.js +0 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +21 -27
- package/lib/components/DecoratorLink/DecoratorLink.js +19 -25
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +19 -25
- package/lib/components/DelimitedList/DelimitedList.js +7 -14
- package/lib/components/DescriptionList/DescriptionList.js +8 -15
- package/lib/components/DescriptionList/DescriptionListBody.js +5 -12
- package/lib/components/DescriptionList/DescriptionListCell.js +5 -12
- package/lib/components/DescriptionList/DescriptionListRow.js +5 -12
- package/lib/components/DescriptionList/constants.js +0 -2
- package/lib/components/EditFullPage/EditFullPage.js +5 -12
- package/lib/components/EditInPlace/EditInPlace.js +35 -42
- package/lib/components/EditSidePanel/EditSidePanel.js +26 -33
- package/lib/components/EditTearsheet/EditTearsheet.js +24 -31
- package/lib/components/EditTearsheet/EditTearsheetForm.js +16 -23
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +5 -12
- package/lib/components/EditUpdateCards/EditUpdateCards.js +32 -39
- package/lib/components/EmptyStates/EmptyState.js +22 -29
- package/lib/components/EmptyStates/EmptyStateContent.js +18 -25
- package/lib/components/EmptyStates/EmptyStateIllustration.js +3 -7
- package/lib/components/EmptyStates/EmptyStateV2.js +25 -32
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +19 -26
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +19 -26
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +19 -26
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +19 -26
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +53 -58
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +43 -48
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +114 -119
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +84 -89
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +81 -86
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +74 -79
- package/lib/components/ExportModal/ExportModal.js +45 -52
- package/lib/components/ExpressiveCard/ExpressiveCard.js +28 -34
- package/lib/components/FeatureFlags/index.js +3 -9
- package/lib/components/FilterPanel/FilterPanel.js +7 -14
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +10 -17
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +13 -20
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +9 -16
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +17 -24
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +11 -18
- package/lib/components/FilterPanel/FilterPanelLabel/FilterPanelLabel.js +9 -16
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +9 -16
- package/lib/components/FilterSummary/FilterSummary.js +22 -28
- package/lib/components/FullPageError/FullPageError.js +21 -28
- package/lib/components/FullPageError/assets/Error403SVG.js +129 -135
- package/lib/components/FullPageError/assets/Error404SVG.js +114 -120
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +128 -134
- package/lib/components/GetStartedCard/GetStartedCard.js +16 -22
- package/lib/components/Guidebanner/Guidebanner.js +32 -39
- package/lib/components/Guidebanner/GuidebannerElement.js +10 -17
- package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -16
- package/lib/components/Guidebanner/GuidebannerElementLink.js +5 -12
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +5 -12
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +5 -12
- package/lib/components/HTTPErrors/HTTPErrorContent.js +5 -11
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +5 -12
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +358 -364
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +309 -315
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +321 -327
- package/lib/components/ImportModal/ImportModal.js +48 -55
- package/lib/components/InlineTip/InlineTip.js +38 -45
- package/lib/components/InlineTip/InlineTipButton.js +5 -12
- package/lib/components/InlineTip/InlineTipLink.js +6 -13
- package/lib/components/InlineTip/utils.js +2 -4
- package/lib/components/InterstitialScreen/InterstitialScreen.js +73 -80
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +6 -13
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +8 -15
- package/lib/components/MultiAddSelect/MultiAddSelect.js +45 -51
- package/lib/components/Nav/Nav.js +14 -21
- package/lib/components/Nav/NavItem.js +19 -24
- package/lib/components/Nav/NavItemLink.js +4 -8
- package/lib/components/Nav/NavList.js +12 -17
- package/lib/components/NonLinearReading/NonLinearReading.js +12 -19
- package/lib/components/NotificationsPanel/NotificationsPanel.js +91 -98
- package/lib/components/NotificationsPanel/utils.js +0 -2
- package/lib/components/OptionsTile/OptionsTile.js +40 -47
- package/lib/components/PageHeader/PageHeader.js +105 -112
- package/lib/components/PageHeader/PageHeaderTitle.js +23 -30
- package/lib/components/PageHeader/PageHeaderUtils.js +2 -9
- package/lib/components/ProductiveCard/ProductiveCard.js +36 -42
- package/lib/components/RemoveModal/RemoveModal.js +27 -34
- package/lib/components/Saving/Saving.js +27 -34
- package/lib/components/ScrollGradient/ScrollGradient.js +17 -24
- package/lib/components/ScrollGradient/constants.js +0 -2
- package/lib/components/SearchBar/SearchBar.js +22 -29
- package/lib/components/SidePanel/SidePanel.js +66 -73
- package/lib/components/SidePanel/constants.js +0 -2
- package/lib/components/SidePanel/motion/variants.js +0 -2
- package/lib/components/SimpleHeader/SimpleHeader.js +18 -25
- package/lib/components/SingleAddSelect/SingleAddSelect.js +21 -27
- package/lib/components/StatusIcon/StatusIcon.js +52 -59
- package/lib/components/StatusIndicator/StatusIndicator.js +13 -20
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +14 -21
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +8 -17
- package/lib/components/StringFormatter/StringFormatter.js +12 -19
- package/lib/components/StringFormatter/utils/enums.js +0 -2
- package/lib/components/TagOverflow/TagOverflow.js +26 -33
- package/lib/components/TagOverflow/TagOverflowModal.js +17 -24
- package/lib/components/TagOverflow/TagOverflowPopover.js +22 -29
- package/lib/components/TagOverflow/constants.js +0 -2
- package/lib/components/TagSet/TagSet.js +34 -41
- package/lib/components/TagSet/TagSetModal.js +16 -23
- package/lib/components/TagSet/TagSetOverflow.js +25 -32
- package/lib/components/Tearsheet/Tearsheet.js +23 -29
- package/lib/components/Tearsheet/TearsheetNarrow.js +18 -24
- package/lib/components/Tearsheet/TearsheetShell.js +55 -62
- package/lib/components/Toolbar/Toolbar.js +3 -10
- package/lib/components/Toolbar/ToolbarButton.js +3 -10
- package/lib/components/Toolbar/ToolbarGroup.js +2 -9
- package/lib/components/TooltipTrigger/TooltipTrigger.js +4 -11
- package/lib/components/TruncatedList/TruncatedList.js +15 -22
- package/lib/components/UserAvatar/UserAvatar.js +18 -25
- package/lib/components/UserProfileImage/UserProfileImage.js +24 -31
- package/lib/components/WebTerminal/WebTerminal.js +26 -33
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +4 -11
- package/lib/components/WebTerminal/hooks/index.js +2 -8
- package/lib/components/_Canary/Canary.js +7 -14
- package/lib/feature-flags.js +3 -4
- package/lib/global/js/hooks/useActiveElement.js +0 -2
- package/lib/global/js/hooks/useClickOutside.js +0 -2
- package/lib/global/js/hooks/useControllableState.js +2 -4
- package/lib/global/js/hooks/useCreateComponentFocus.js +1 -3
- package/lib/global/js/hooks/useCreateComponentStepChange.js +0 -2
- package/lib/global/js/hooks/useFocus.js +1 -3
- package/lib/global/js/hooks/useIsomorphicEffect.js +0 -2
- package/lib/global/js/hooks/usePortalTarget.js +0 -2
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -1
- package/lib/global/js/hooks/usePrefix.js +1 -3
- package/lib/global/js/hooks/usePreviousValue.js +0 -2
- package/lib/global/js/hooks/useResetCreateComponent.js +0 -2
- package/lib/global/js/hooks/useResizeObserver.js +0 -2
- package/lib/global/js/hooks/useRetrieveFormTitles.js +0 -2
- package/lib/global/js/hooks/useRetrieveStepData.js +0 -2
- package/lib/global/js/hooks/useValidCreateStepCount.js +0 -2
- package/lib/global/js/hooks/useWindowResize.js +1 -3
- package/lib/global/js/hooks/useWindowScroll.js +1 -3
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/Wrap.js +9 -15
- package/lib/global/js/utils/deepCloneObject.js +1 -3
- package/lib/global/js/utils/devtools.js +0 -2
- package/lib/global/js/utils/getBezierValues.js +0 -2
- package/lib/global/js/utils/getFocusableElements.js +0 -2
- package/lib/global/js/utils/getNodeTextContent.js +1 -3
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +0 -2
- package/lib/global/js/utils/getScrollbarWidth.js +0 -2
- package/lib/global/js/utils/keyboardNavigation.js +0 -2
- package/lib/global/js/utils/lastIndexInArray.js +0 -2
- package/lib/global/js/utils/motionConstants.js +0 -2
- package/lib/global/js/utils/pconsole.js +1 -1
- package/lib/global/js/utils/props-helper.js +10 -12
- package/lib/global/js/utils/rangeWithCallback.js +0 -2
- package/lib/global/js/utils/scrollableAncestor.js +1 -3
- package/lib/global/js/utils/uuidv4.js +1 -1
- package/lib/global/js/utils/wait.js +1 -1
- package/lib/global/js/utils/wrapFocus.js +1 -1
- package/lib/index.js +19 -21
- package/lib/node_modules/@carbon/colors/es/index.js +0 -2
- package/lib/node_modules/@carbon/icon-helpers/es/index.js +3 -5
- package/lib/node_modules/@carbon/icons-react/es/Icon.js +14 -18
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-2.js +525 -531
- package/lib/node_modules/@carbon/icons-react/es/generated/bucket-9.js +500 -506
- package/lib/node_modules/@carbon/icons-react/es/iconPropTypes-4cbeb95d.js +1 -3
- package/lib/node_modules/object-assign/index.js +0 -2
- package/lib/node_modules/prop-types/checkPropTypes.js +2 -4
- package/lib/node_modules/prop-types/factoryWithThrowingShims.js +0 -2
- package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +4 -10
- package/lib/node_modules/prop-types/index.js +2 -6
- package/lib/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -2
- package/lib/node_modules/prop-types/lib/has.js +0 -2
- package/lib/settings.js +9 -15
- package/package.json +4 -4
- package/scss/components/SidePanel/_side-panel.scss +1 -0
@@ -7,8 +7,6 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
10
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
11
|
var React = require('react');
|
14
12
|
var AddSelect = require('../AddSelect/AddSelect.js');
|
@@ -16,16 +14,12 @@ var index = require('../../node_modules/prop-types/index.js');
|
|
16
14
|
var devtools = require('../../global/js/utils/devtools.js');
|
17
15
|
var settings = require('../../settings.js');
|
18
16
|
|
19
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
20
|
-
|
21
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
22
|
-
|
23
17
|
var componentName = 'MultiAddSelect';
|
24
18
|
/**
|
25
19
|
* Used to add or select multiple or more items from larger lists or hierarchies.
|
26
20
|
*/
|
27
21
|
exports.MultiAddSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
28
|
-
return /*#__PURE__*/
|
22
|
+
return /*#__PURE__*/React.createElement(AddSelect.AddSelect, _rollupPluginBabelHelpers.extends({}, props, {
|
29
23
|
multi: true,
|
30
24
|
ref: ref
|
31
25
|
}, devtools.getDevtoolsProps(componentName)));
|
@@ -35,128 +29,128 @@ exports.MultiAddSelect.propTypes = {
|
|
35
29
|
/**
|
36
30
|
* optional class name
|
37
31
|
*/
|
38
|
-
className: index
|
32
|
+
className: index.default.string,
|
39
33
|
/**
|
40
34
|
* placeholder for column input filter
|
41
35
|
*/
|
42
|
-
columnInputPlaceholder: index
|
36
|
+
columnInputPlaceholder: index.default.string,
|
43
37
|
/**
|
44
38
|
* text description that appears under the title
|
45
39
|
*/
|
46
|
-
description: index
|
40
|
+
description: index.default.string,
|
47
41
|
/**
|
48
42
|
* options to display in the global filter box. values are generated
|
49
43
|
* from the id which should correlate with a specific property in an
|
50
44
|
* item entry
|
51
45
|
*/
|
52
46
|
/**@ts-ignore */
|
53
|
-
globalFilters: index
|
54
|
-
id: index
|
55
|
-
label: index
|
47
|
+
globalFilters: index.default.arrayOf(index.default.shape({
|
48
|
+
id: index.default.string,
|
49
|
+
label: index.default.string
|
56
50
|
})),
|
57
|
-
globalFiltersIconDescription: index
|
51
|
+
globalFiltersIconDescription: index.default.string,
|
58
52
|
/**
|
59
53
|
* placeholder text for the global filter dropdown
|
60
54
|
*/
|
61
|
-
globalFiltersPlaceholderText: index
|
55
|
+
globalFiltersPlaceholderText: index.default.string,
|
62
56
|
/**
|
63
57
|
* text for the global filter primary button
|
64
58
|
*/
|
65
|
-
globalFiltersPrimaryButtonText: index
|
59
|
+
globalFiltersPrimaryButtonText: index.default.string,
|
66
60
|
/**
|
67
61
|
* text for the global filter secondary button
|
68
62
|
*/
|
69
|
-
globalFiltersSecondaryButtonText: index
|
63
|
+
globalFiltersSecondaryButtonText: index.default.string,
|
70
64
|
/**
|
71
65
|
* label for global search input
|
72
66
|
*/
|
73
|
-
globalSearchLabel: index
|
67
|
+
globalSearchLabel: index.default.string,
|
74
68
|
/**
|
75
69
|
* placeholder for global search input
|
76
70
|
*/
|
77
|
-
globalSearchPlaceholder: index
|
71
|
+
globalSearchPlaceholder: index.default.string,
|
78
72
|
/**
|
79
73
|
* the theme for the empty state illustration
|
80
74
|
*/
|
81
|
-
illustrationTheme: index
|
75
|
+
illustrationTheme: index.default.oneOf(['light', 'dark']),
|
82
76
|
/**
|
83
77
|
* title that displays in the sidebar / influencer
|
84
78
|
*/
|
85
|
-
influencerTitle: index
|
79
|
+
influencerTitle: index.default.string,
|
86
80
|
/**
|
87
81
|
* object that contains the item data. for more information reference the
|
88
82
|
* "Structuring items" section in the docs tab
|
89
83
|
*/
|
90
84
|
/**@ts-ignore */
|
91
|
-
items: index
|
92
|
-
modifiers: index
|
93
|
-
label: index
|
94
|
-
options: index
|
85
|
+
items: index.default.shape({
|
86
|
+
modifiers: index.default.shape({
|
87
|
+
label: index.default.string,
|
88
|
+
options: index.default.array
|
95
89
|
}),
|
96
|
-
sortBy: index
|
97
|
-
filterBy: index
|
98
|
-
entries: index
|
99
|
-
avatar: index
|
100
|
-
alt: index
|
101
|
-
icon: index
|
102
|
-
src: index
|
103
|
-
theme: index
|
90
|
+
sortBy: index.default.array,
|
91
|
+
filterBy: index.default.array,
|
92
|
+
entries: index.default.arrayOf(index.default.shape({
|
93
|
+
avatar: index.default.shape({
|
94
|
+
alt: index.default.string,
|
95
|
+
icon: index.default.func,
|
96
|
+
src: index.default.string,
|
97
|
+
theme: index.default.oneOf(['light', 'dark'])
|
104
98
|
}),
|
105
|
-
children: index
|
106
|
-
icon: index
|
107
|
-
id: index
|
108
|
-
subtitle: index
|
109
|
-
title: index
|
110
|
-
value: index
|
99
|
+
children: index.default.object,
|
100
|
+
icon: index.default.func,
|
101
|
+
id: index.default.string.isRequired,
|
102
|
+
subtitle: index.default.string,
|
103
|
+
title: index.default.string.isRequired,
|
104
|
+
value: index.default.string.isRequired
|
111
105
|
}))
|
112
106
|
}),
|
113
107
|
/**
|
114
108
|
* label that display above the list of items
|
115
109
|
*/
|
116
|
-
itemsLabel: index
|
110
|
+
itemsLabel: index.default.string,
|
117
111
|
/**
|
118
112
|
* text to display when no results are found from the global search
|
119
113
|
*/
|
120
|
-
noResultsDescription: index
|
114
|
+
noResultsDescription: index.default.string,
|
121
115
|
/**
|
122
116
|
* title to display when no results are found from the global search
|
123
117
|
*/
|
124
|
-
noResultsTitle: index
|
118
|
+
noResultsTitle: index.default.string,
|
125
119
|
/**
|
126
120
|
* text body that displays in the sidebar when nothing is selected
|
127
121
|
*/
|
128
|
-
noSelectionDescription: index
|
122
|
+
noSelectionDescription: index.default.string,
|
129
123
|
/**
|
130
124
|
* title that displays in the sidebar when nothing is selected
|
131
125
|
*/
|
132
|
-
noSelectionTitle: index
|
126
|
+
noSelectionTitle: index.default.string,
|
133
127
|
/**
|
134
128
|
* function to call when the close button clicked
|
135
129
|
*/
|
136
|
-
onClose: index
|
130
|
+
onClose: index.default.func,
|
137
131
|
/**
|
138
132
|
* text for close button
|
139
133
|
*/
|
140
|
-
onCloseButtonText: index
|
134
|
+
onCloseButtonText: index.default.string,
|
141
135
|
/**
|
142
136
|
* function to call when the submit button is clicked. returns a selection
|
143
137
|
*/
|
144
|
-
onSubmit: index
|
138
|
+
onSubmit: index.default.func,
|
145
139
|
/**
|
146
140
|
* text for the submit button
|
147
141
|
*/
|
148
|
-
onSubmitButtonText: index
|
142
|
+
onSubmitButtonText: index.default.string,
|
149
143
|
/**
|
150
144
|
* specifies if the component is open or not
|
151
145
|
*/
|
152
|
-
open: index
|
146
|
+
open: index.default.bool,
|
153
147
|
/**
|
154
148
|
* text that displays when displaying filtered items
|
155
149
|
*/
|
156
|
-
searchResultsTitle: index
|
150
|
+
searchResultsTitle: index.default.string,
|
157
151
|
/**
|
158
152
|
* header text
|
159
153
|
*/
|
160
|
-
title: index
|
154
|
+
title: index.default.string
|
161
155
|
};
|
162
156
|
exports.MultiAddSelect.displayName = componentName;
|
@@ -7,8 +7,6 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
10
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
11
|
var React = require('react');
|
14
12
|
var index = require('../../node_modules/prop-types/index.js');
|
@@ -18,15 +16,10 @@ var NavItem = require('./NavItem.js');
|
|
18
16
|
var devtools = require('../../global/js/utils/devtools.js');
|
19
17
|
var settings = require('../../settings.js');
|
20
18
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
19
|
var _excluded = ["activeHref", "className", "children", "heading", "label"];
|
27
20
|
var componentName = 'Nav';
|
28
21
|
var blockClass = "".concat(settings.pkg.prefix, "--nav");
|
29
|
-
exports.Nav = /*#__PURE__*/
|
22
|
+
exports.Nav = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
30
23
|
var activeHref = _ref.activeHref,
|
31
24
|
className = _ref.className,
|
32
25
|
children = _ref.children,
|
@@ -55,7 +48,7 @@ exports.Nav = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
55
48
|
*/
|
56
49
|
var buildNewItemChild = function buildNewItemChild(child, index) {
|
57
50
|
var key = "".concat(NavItem.blockClass, "--").concat(index);
|
58
|
-
return /*#__PURE__*/
|
51
|
+
return /*#__PURE__*/React.createElement(NavItem.default, _rollupPluginBabelHelpers.extends({}, child.props, {
|
59
52
|
activeHref: _activeHref,
|
60
53
|
key: key,
|
61
54
|
onClick: function onClick(event, href) {
|
@@ -72,7 +65,7 @@ exports.Nav = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
72
65
|
*/
|
73
66
|
var buildNewListChild = function buildNewListChild(child, index) {
|
74
67
|
var key = "".concat(NavList.blockClass, "--").concat(index);
|
75
|
-
return /*#__PURE__*/
|
68
|
+
return /*#__PURE__*/React.createElement(NavList.default, _rollupPluginBabelHelpers.extends({}, child.props, {
|
76
69
|
activeHref: _activeHref,
|
77
70
|
id: key,
|
78
71
|
key: key,
|
@@ -116,41 +109,41 @@ exports.Nav = /*#__PURE__*/React__default["default"].forwardRef(function (_ref,
|
|
116
109
|
}
|
117
110
|
});
|
118
111
|
};
|
119
|
-
return /*#__PURE__*/
|
120
|
-
className:
|
112
|
+
return /*#__PURE__*/React.createElement("nav", _rollupPluginBabelHelpers.extends({
|
113
|
+
className: cx(blockClass, className),
|
121
114
|
"aria-label": label,
|
122
115
|
ref: ref
|
123
|
-
}, devtools.getDevtoolsProps(componentName), rest), heading && /*#__PURE__*/
|
116
|
+
}, devtools.getDevtoolsProps(componentName), rest), heading && /*#__PURE__*/React.createElement("h1", {
|
124
117
|
className: "".concat(blockClass, "__heading")
|
125
|
-
}, heading), /*#__PURE__*/
|
118
|
+
}, heading), /*#__PURE__*/React.createElement("ul", {
|
126
119
|
className: "".concat(blockClass, "__wrapper"),
|
127
120
|
role: "menubar"
|
128
|
-
},
|
121
|
+
}, React.Children.map(children, function (child, index) {
|
129
122
|
var _child$type;
|
130
|
-
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList
|
123
|
+
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.default.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
|
131
124
|
})));
|
132
125
|
});
|
133
126
|
exports.Nav.propTypes = {
|
134
127
|
/**
|
135
128
|
* Hypertext reference for active page.
|
136
129
|
*/
|
137
|
-
activeHref: index
|
130
|
+
activeHref: index.default.string,
|
138
131
|
/**
|
139
132
|
* Child elements.
|
140
133
|
*/
|
141
|
-
children: index
|
134
|
+
children: index.default.node,
|
142
135
|
/**
|
143
136
|
* Extra classes to add.
|
144
137
|
*/
|
145
|
-
className: index
|
138
|
+
className: index.default.string,
|
146
139
|
/**
|
147
140
|
* Heading.
|
148
141
|
*/
|
149
|
-
heading: index
|
142
|
+
heading: index.default.string,
|
150
143
|
/**
|
151
144
|
* Aria-label on the rendered `nav` element.
|
152
145
|
*/
|
153
|
-
label: index
|
146
|
+
label: index.default.string.isRequired
|
154
147
|
};
|
155
148
|
|
156
149
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -18,11 +18,6 @@ var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
|
18
18
|
var NavItemLink = require('./NavItemLink.js');
|
19
19
|
var bucket9 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-9.js');
|
20
20
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
21
|
var _excluded = ["activeHref", "children", "className", "current", "disabled", "element", "href", "id", "label", "onClick", "tabIndex"];
|
27
22
|
|
28
23
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -69,7 +64,7 @@ exports.NavItem = function NavItem(_ref) {
|
|
69
64
|
setHrefHasDifferentHost(true);
|
70
65
|
}
|
71
66
|
}, [href]);
|
72
|
-
var internalId = React.useRef(uuidv4
|
67
|
+
var internalId = React.useRef(uuidv4.default());
|
73
68
|
var instanceId = "".concat(blockClass, "__").concat(internalId.current);
|
74
69
|
var navItemId = id || instanceId;
|
75
70
|
var isAbsoluteLink = new RegExp('^([a-z]+://|//)', 'i');
|
@@ -84,8 +79,8 @@ exports.NavItem = function NavItem(_ref) {
|
|
84
79
|
rel: 'noopener noreferrer',
|
85
80
|
target: '_blank'
|
86
81
|
};
|
87
|
-
return /*#__PURE__*/
|
88
|
-
className:
|
82
|
+
return /*#__PURE__*/React.createElement("li", _rollupPluginBabelHelpers.extends({}, rest, {
|
83
|
+
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--active"), current !== null && current === navItemId || activeHref !== undefined && activeHref === href && !externalLink), "".concat(blockClass, "--disabled"), disabled)),
|
89
84
|
label: label,
|
90
85
|
onClick: function onClick(event) {
|
91
86
|
return handleDisabled(_onClick(event, href));
|
@@ -94,13 +89,13 @@ exports.NavItem = function NavItem(_ref) {
|
|
94
89
|
return handleDisabled(_onClick(event, href));
|
95
90
|
},
|
96
91
|
role: "menuitem"
|
97
|
-
}), /*#__PURE__*/
|
92
|
+
}), /*#__PURE__*/React.createElement(NavItemLink.default, _rollupPluginBabelHelpers.extends({
|
98
93
|
id: navItemId,
|
99
|
-
className:
|
94
|
+
className: cx(linkClassName, _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__link--external"), externalLink)),
|
100
95
|
element: element,
|
101
96
|
href: href,
|
102
97
|
tabIndex: navItemTabIndex
|
103
|
-
}, rest, externalLinkProps), children, externalLink && /*#__PURE__*/
|
98
|
+
}, rest, externalLinkProps), children, externalLink && /*#__PURE__*/React.createElement(bucket9.Launch, {
|
104
99
|
className: "".concat(blockClass, "__link--external__icon")
|
105
100
|
})));
|
106
101
|
};
|
@@ -116,51 +111,51 @@ exports.NavItem.propTypes = {
|
|
116
111
|
/**
|
117
112
|
* Hypertext reference for active page.
|
118
113
|
*/
|
119
|
-
activeHref: index
|
114
|
+
activeHref: index.default.string,
|
120
115
|
/**
|
121
116
|
* Provide the contents of the Nav.
|
122
117
|
*/
|
123
|
-
children: index
|
118
|
+
children: index.default.node.isRequired,
|
124
119
|
/**
|
125
120
|
* Provide an optional class to be applied to the containing node.
|
126
121
|
*/
|
127
|
-
className: index
|
122
|
+
className: index.default.string,
|
128
123
|
/**
|
129
124
|
* Currently selected item.
|
130
125
|
*/
|
131
|
-
current: index
|
126
|
+
current: index.default.string,
|
132
127
|
/**
|
133
128
|
* Whether the item is disabled.
|
134
129
|
*/
|
135
|
-
disabled: index
|
130
|
+
disabled: index.default.bool,
|
136
131
|
/**
|
137
132
|
* The base element to use to build the link. Defaults to `a`, can also accept alternative tag names or custom components like `Link` from `react-router`.
|
138
133
|
*/
|
139
|
-
element: index
|
134
|
+
element: index.default.elementType,
|
140
135
|
/**
|
141
136
|
* The href of the nav item.
|
142
137
|
*/
|
143
|
-
href: index
|
138
|
+
href: index.default.string,
|
144
139
|
/**
|
145
140
|
* Identifier.
|
146
141
|
*/
|
147
|
-
id: index
|
142
|
+
id: index.default.string,
|
148
143
|
/**
|
149
144
|
* Label of an item.
|
150
145
|
*/
|
151
|
-
label: index
|
146
|
+
label: index.default.string,
|
152
147
|
/**
|
153
148
|
* Whether the item is a link.
|
154
149
|
*/
|
155
|
-
link: index
|
150
|
+
link: index.default.bool,
|
156
151
|
/**
|
157
152
|
* Click handler of an item.
|
158
153
|
*/
|
159
|
-
onClick: index
|
154
|
+
onClick: index.default.func,
|
160
155
|
/**
|
161
156
|
* `tabindex` of an item.
|
162
157
|
*/
|
163
|
-
tabIndex: index
|
158
|
+
tabIndex: index.default.number
|
164
159
|
};
|
165
160
|
|
166
161
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -168,4 +163,4 @@ exports.NavItem = settings.pkg.checkComponentEnabled(exports.NavItem, componentN
|
|
168
163
|
var NavItem = exports.NavItem;
|
169
164
|
|
170
165
|
exports.blockClass = blockClass;
|
171
|
-
exports
|
166
|
+
exports.default = NavItem;
|
@@ -13,26 +13,22 @@ var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelper
|
|
13
13
|
var index = require('../../node_modules/prop-types/index.js');
|
14
14
|
var React = require('react');
|
15
15
|
|
16
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
17
|
-
|
18
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
19
|
-
|
20
16
|
var _excluded = ["element"];
|
21
|
-
var NavItemLink = /*#__PURE__*/
|
17
|
+
var NavItemLink = /*#__PURE__*/React.forwardRef(function NavItemLink(props, ref) {
|
22
18
|
var element = props.element,
|
23
19
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
24
|
-
return /*#__PURE__*/
|
20
|
+
return /*#__PURE__*/React.createElement(element, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, rest), {}, {
|
25
21
|
ref: ref
|
26
22
|
}));
|
27
23
|
});
|
28
24
|
NavItemLink.displayName = 'NavItemLink';
|
29
25
|
NavItemLink.propTypes = {
|
30
26
|
/** @type {elementType} The base element to use to build the link. Defaults to `a`, can also accept alternative tag names or custom components like `Link` from `react-router`. */
|
31
|
-
element: index
|
27
|
+
element: index.default.elementType
|
32
28
|
};
|
33
29
|
NavItemLink.defaultProps = {
|
34
30
|
element: 'a'
|
35
31
|
};
|
36
32
|
var NavItemLink$1 = NavItemLink;
|
37
33
|
|
38
|
-
exports
|
34
|
+
exports.default = NavItemLink$1;
|
@@ -17,11 +17,6 @@ var NavItem = require('./NavItem.js');
|
|
17
17
|
var settings = require('../../settings.js');
|
18
18
|
var bucket2 = require('../../node_modules/@carbon/icons-react/es/generated/bucket-2.js');
|
19
19
|
|
20
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
21
|
-
|
22
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
23
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
24
|
-
|
25
20
|
var componentName = 'NavList';
|
26
21
|
var blockClass = "".concat(settings.pkg.prefix, "--nav-list");
|
27
22
|
|
@@ -39,7 +34,7 @@ var defaults = {
|
|
39
34
|
icon: '',
|
40
35
|
navigationItemTitle: ''
|
41
36
|
};
|
42
|
-
exports.NavList = /*#__PURE__*/
|
37
|
+
exports.NavList = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
43
38
|
var _ref$activeHref = _ref.activeHref,
|
44
39
|
activeHref = _ref$activeHref === void 0 ? defaults.activeHref : _ref$activeHref,
|
45
40
|
_ref$children = _ref.children,
|
@@ -67,7 +62,7 @@ exports.NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
67
62
|
open = _useState2[0],
|
68
63
|
setOpen = _useState2[1];
|
69
64
|
React.useEffect(function () {
|
70
|
-
var hrefs =
|
65
|
+
var hrefs = React.Children.toArray(children).filter(function (_ref2) {
|
71
66
|
var childProps = _ref2.props;
|
72
67
|
return childProps.href && childProps.href.length > 0;
|
73
68
|
}).map(function (_ref3) {
|
@@ -111,8 +106,8 @@ exports.NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
111
106
|
isExpandedOnPageLoad: isExpandedOnPageLoad
|
112
107
|
};
|
113
108
|
});
|
114
|
-
var newChildren =
|
115
|
-
return /*#__PURE__*/
|
109
|
+
var newChildren = React.Children.map(children, function (child, index) {
|
110
|
+
return /*#__PURE__*/React.createElement(NavItem.default, _rollupPluginBabelHelpers.extends({}, child.props, {
|
116
111
|
key: "".concat(NavItem.blockClass, "--").concat(index),
|
117
112
|
onClick: function onClick(event, href) {
|
118
113
|
var _child$props$onClick, _child$props;
|
@@ -123,24 +118,24 @@ exports.NavList = /*#__PURE__*/React__default["default"].forwardRef(function (_r
|
|
123
118
|
tabIndex: open ? 0 : -1
|
124
119
|
}));
|
125
120
|
});
|
126
|
-
return /*#__PURE__*/
|
121
|
+
return /*#__PURE__*/React.createElement("li", {
|
127
122
|
ref: ref,
|
128
|
-
className:
|
123
|
+
className: cx(blockClass, className, _rollupPluginBabelHelpers.defineProperty({}, "".concat(NavItem.blockClass, "--expanded"), open)),
|
129
124
|
tabIndex: tabIndex,
|
130
125
|
onClick: toggle,
|
131
126
|
onKeyDown: toggle,
|
132
127
|
role: "menuitem"
|
133
|
-
}, /*#__PURE__*/
|
128
|
+
}, /*#__PURE__*/React.createElement("div", {
|
134
129
|
className: "".concat(NavItem.blockClass, "__link")
|
135
|
-
}, icon && /*#__PURE__*/
|
130
|
+
}, icon && /*#__PURE__*/React.createElement("img", {
|
136
131
|
alt: navigationItemTitle,
|
137
132
|
className: "".concat(NavItem.blockClass, "__img"),
|
138
133
|
src: icon
|
139
|
-
}), /*#__PURE__*/
|
134
|
+
}), /*#__PURE__*/React.createElement("div", {
|
140
135
|
className: "".concat(NavItem.blockClass, "__content")
|
141
|
-
}, title), /*#__PURE__*/
|
136
|
+
}, title), /*#__PURE__*/React.createElement(bucket2.ChevronDown, {
|
142
137
|
className: "".concat(blockClass, "__icon")
|
143
|
-
})), /*#__PURE__*/
|
138
|
+
})), /*#__PURE__*/React.createElement("ul", {
|
144
139
|
"aria-label": title,
|
145
140
|
"aria-hidden": !open,
|
146
141
|
className: "".concat(blockClass, " ").concat(blockClass, "--nested"),
|
@@ -178,4 +173,4 @@ exports.NavList = settings.pkg.checkComponentEnabled(exports.NavList, componentN
|
|
178
173
|
var NavList = exports.NavList;
|
179
174
|
|
180
175
|
exports.blockClass = blockClass;
|
181
|
-
exports
|
176
|
+
exports.default = NavList;
|
@@ -7,8 +7,6 @@
|
|
7
7
|
|
8
8
|
'use strict';
|
9
9
|
|
10
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
11
|
-
|
12
10
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
13
11
|
var React = require('react');
|
14
12
|
var icons = require('@carbon/react/icons');
|
@@ -18,11 +16,6 @@ var devtools = require('../../global/js/utils/devtools.js');
|
|
18
16
|
var settings = require('../../settings.js');
|
19
17
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
20
18
|
|
21
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
24
|
-
var cx__default = /*#__PURE__*/_interopDefaultLegacy(cx);
|
25
|
-
|
26
19
|
var _ChevronDown;
|
27
20
|
var _excluded = ["children", "className", "definition", "theme"];
|
28
21
|
|
@@ -34,7 +27,7 @@ var componentName = 'NonLinearReading';
|
|
34
27
|
* brief, at-a-glance, summary of a concept that may require
|
35
28
|
* more explanation for some users.
|
36
29
|
*/
|
37
|
-
exports.NonLinearReading = /*#__PURE__*/
|
30
|
+
exports.NonLinearReading = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
38
31
|
var children = _ref.children,
|
39
32
|
className = _ref.className,
|
40
33
|
definition = _ref.definition,
|
@@ -45,24 +38,24 @@ exports.NonLinearReading = /*#__PURE__*/React__default["default"].forwardRef(fun
|
|
45
38
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
46
39
|
isOpen = _useState2[0],
|
47
40
|
setOpen = _useState2[1];
|
48
|
-
var contentId = React.useRef(uuidv4
|
41
|
+
var contentId = React.useRef(uuidv4.default()).current;
|
49
42
|
var handleToggle = function handleToggle() {
|
50
43
|
setOpen(function (prevState) {
|
51
44
|
return !prevState;
|
52
45
|
});
|
53
46
|
};
|
54
|
-
return /*#__PURE__*/
|
55
|
-
className:
|
47
|
+
return /*#__PURE__*/React.createElement("span", _rollupPluginBabelHelpers.extends({}, rest, {
|
48
|
+
className: cx(blockClass, "".concat(blockClass, "__").concat(theme), className),
|
56
49
|
ref: ref
|
57
|
-
}, devtools.getDevtoolsProps(componentName)), ' ', /*#__PURE__*/
|
50
|
+
}, devtools.getDevtoolsProps(componentName)), ' ', /*#__PURE__*/React.createElement("button", {
|
58
51
|
type: "button",
|
59
52
|
"aria-controls": contentId,
|
60
53
|
"aria-expanded": isOpen,
|
61
|
-
className:
|
54
|
+
className: cx("".concat(blockClass, "__keyword"), [isOpen ? ["".concat(blockClass, "__keyword-open")] : ["".concat(blockClass, "__keyword-closed")]]),
|
62
55
|
onClick: handleToggle
|
63
|
-
}, children, _ChevronDown || (_ChevronDown = /*#__PURE__*/
|
56
|
+
}, children, _ChevronDown || (_ChevronDown = /*#__PURE__*/React.createElement(icons.ChevronDown, {
|
64
57
|
size: 16
|
65
|
-
}))), ' ', /*#__PURE__*/
|
58
|
+
}))), ' ', /*#__PURE__*/React.createElement("span", {
|
66
59
|
id: contentId,
|
67
60
|
className: "".concat(blockClass, "__body"),
|
68
61
|
hidden: !isOpen
|
@@ -77,17 +70,17 @@ exports.NonLinearReading.propTypes = {
|
|
77
70
|
* The keyword of the component appears as a pill.
|
78
71
|
*/
|
79
72
|
|
80
|
-
children: index
|
73
|
+
children: index.default.node.isRequired,
|
81
74
|
/**
|
82
75
|
* Provide an optional class to be applied to the containing node.
|
83
76
|
*/
|
84
|
-
className: index
|
77
|
+
className: index.default.string,
|
85
78
|
/**
|
86
79
|
* The content that appears when the keyword is toggled open.
|
87
80
|
*/
|
88
|
-
definition: index
|
81
|
+
definition: index.default.node.isRequired,
|
89
82
|
/**
|
90
83
|
* Determines the theme of the component.
|
91
84
|
*/
|
92
|
-
theme: index
|
85
|
+
theme: index.default.oneOf(['light', 'dark'])
|
93
86
|
};
|