@carbon/ibm-products 1.73.1 → 1.73.3
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 +33 -55
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -14
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +24 -41
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -12
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +26 -49
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -14
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +30 -53
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -14
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.js +3 -3
- package/es/components/AboutModal/AboutModal.js +2 -2
- package/es/components/ActionBar/ActionBar.js +4 -4
- package/es/components/ActionBar/ActionBarItem.js +2 -2
- package/es/components/ActionSet/ActionSet.js +5 -6
- package/es/components/AddSelect/AddSelectBody.js +4 -4
- package/es/components/AddSelect/AddSelectColumn.js +5 -4
- package/es/components/AddSelect/AddSelectFilter.js +2 -2
- package/es/components/AddSelect/AddSelectList.js +2 -3
- package/es/components/AddSelect/AddSelectSidebar.js +1 -1
- package/es/components/AddSelect/add-select-utils.js +7 -6
- package/es/components/AddSelect/hooks/usePath.js +2 -2
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +4 -5
- package/es/components/ButtonMenu/ButtonMenu.js +0 -1
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +5 -5
- package/es/components/Card/Card.js +3 -4
- package/es/components/Card/CardHeader.js +1 -2
- package/es/components/Cascade/Cascade.js +2 -2
- package/es/components/Coachmark/Coachmark.js +1 -1
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +2 -3
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -2
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +1 -1
- package/es/components/ComboButton/ComboButton.js +2 -2
- package/es/components/CreateFullPage/CreateFullPageStep.js +3 -4
- package/es/components/CreateInfluencer/CreateInfluencer.js +0 -1
- package/es/components/CreateModal/CreateModal.js +1 -1
- package/es/components/CreateSidePanel/CreateSidePanel.js +2 -2
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +3 -4
- package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -1
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -5
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +7 -8
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +4 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +2 -3
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +5 -5
- package/es/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +4 -4
- package/es/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +4 -4
- package/es/components/DataSpreadsheet/utils/createActiveCellFn.js +1 -2
- package/es/components/DataSpreadsheet/utils/createCellSelectionArea.js +0 -1
- package/es/components/DataSpreadsheet/utils/generateData.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleCellDeletion.js +4 -4
- package/es/components/DataSpreadsheet/utils/handleEditSubmit.js +2 -4
- package/es/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +2 -2
- package/es/components/DataSpreadsheet/utils/handleMultipleKeys.js +2 -2
- package/es/components/DataSpreadsheet/utils/selectAllCells.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +4 -5
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridRow.js +15 -16
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +2 -3
- package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +3 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +11 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +11 -11
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +3 -3
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +5 -5
- package/es/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +0 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +5 -5
- package/es/components/Datagrid/Datagrid.stories/common.js +5 -5
- package/es/components/Datagrid/useActionsColumn.js +3 -5
- package/es/components/Datagrid/useColumnCenterAlign.js +2 -2
- package/es/components/Datagrid/useColumnRightAlign.js +2 -2
- package/es/components/Datagrid/useCustomizeColumns.js +2 -2
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +2 -2
- package/es/components/Datagrid/useDisableSelectRows.js +4 -4
- package/es/components/Datagrid/useExpandedRow.js +2 -2
- package/es/components/Datagrid/useFiltering.js +7 -8
- package/es/components/Datagrid/useFloatingScroll.js +1 -1
- package/es/components/Datagrid/useInitialColumnSort.js +1 -1
- package/es/components/Datagrid/useInlineEdit.js +2 -2
- package/es/components/Datagrid/useNestedRowExpander.js +3 -4
- package/es/components/Datagrid/useNestedRows.js +1 -2
- package/es/components/Datagrid/useRowExpander.js +2 -2
- package/es/components/Datagrid/useRowIsMouseOver.js +2 -2
- package/es/components/Datagrid/useRowRenderer.js +3 -3
- package/es/components/Datagrid/useRowSize.js +2 -2
- package/es/components/Datagrid/useSelectRows.js +4 -5
- package/es/components/Datagrid/useSortableColumns.js +3 -4
- package/es/components/Datagrid/useStickyColumn.js +5 -7
- package/es/components/Datagrid/utils/DatagridPagination.js +0 -1
- package/es/components/Datagrid/utils/filterPropsForTesting.js +2 -3
- package/es/components/Datagrid/utils/makeData.js +5 -5
- package/es/components/EditInPlace/EditInPlace.js +2 -2
- package/es/components/EditSidePanel/EditSidePanel.js +2 -2
- package/es/components/EditTearsheet/EditTearsheetForm.js +1 -2
- package/es/components/EmptyStates/EmptyState.js +2 -2
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -2
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +2 -2
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -2
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -2
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -2
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -2
- package/es/components/ExampleComponent/ExampleComponent.js +2 -2
- package/es/components/ExportModal/ExportModal.js +5 -5
- package/es/components/FilterSummary/FilterSummary.js +3 -3
- package/es/components/HTTPErrors/HTTPErrorContent.js +2 -2
- package/es/components/ImportModal/ImportModal.js +3 -3
- package/es/components/InlineEdit/InlineEdit.js +2 -2
- package/es/components/InlineEditV1/InlineEditV1.js +5 -4
- package/es/components/InlineEditV2/InlineEditV2.js +3 -4
- package/es/components/InlineTip/utils.js +6 -5
- package/es/components/InterstitialScreen/InterstitialScreen.js +4 -5
- package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +0 -1
- package/es/components/NotificationsPanel/NotificationsPanel.js +2 -3
- package/es/components/PageHeader/PageHeader.js +11 -13
- package/es/components/PageHeader/PageHeaderUtils.js +2 -2
- package/es/components/ProductiveCard/ProductiveCard.js +2 -2
- package/es/components/RemoveModal/RemoveModal.js +2 -2
- package/es/components/Saving/Saving.js +6 -6
- package/es/components/SidePanel/SidePanel.js +17 -18
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +2 -2
- package/es/components/TagSet/TagSet.js +4 -4
- package/es/components/TagSet/TagSetModal.js +5 -5
- package/es/components/TagSet/TagSetOverflow.js +1 -2
- package/es/components/Tearsheet/Tearsheet.js +2 -2
- package/es/components/Tearsheet/TearsheetNarrow.js +2 -2
- package/es/components/Tearsheet/TearsheetShell.js +10 -11
- package/es/components/WebTerminal/WebTerminal.js +3 -4
- package/es/global/js/hooks/useCreateComponentFocus.js +1 -1
- package/es/global/js/hooks/useCreateComponentStepChange.js +3 -3
- package/es/global/js/hooks/useFocus.js +4 -4
- package/es/global/js/hooks/useWindowResize.js +2 -2
- package/es/global/js/package-settings.js +2 -3
- package/es/global/js/utils/Wrap.js +3 -3
- package/es/global/js/utils/deepCloneObject.js +4 -3
- package/es/global/js/utils/getNodeTextContent.js +6 -5
- package/es/global/js/utils/motionConstants.js +0 -1
- package/es/global/js/utils/props-helper.js +3 -3
- package/es/global/js/utils/scrollableAncestor.js +3 -3
- package/es/global/js/utils/test-helper.js +1 -1
- package/es/global/js/utils/unwrap-if-fragment.js +6 -6
- package/lib/components/APIKeyModal/APIKeyDownloader.js +4 -5
- package/lib/components/APIKeyModal/APIKeyModal.js +12 -8
- package/lib/components/AboutModal/AboutModal.js +14 -6
- package/lib/components/ActionBar/ActionBar.js +16 -9
- package/lib/components/ActionBar/ActionBarItem.js +12 -5
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -4
- package/lib/components/ActionSet/ActionSet.js +15 -8
- package/lib/components/ActionSet/actions.js +4 -7
- package/lib/components/AddSelect/AddSelect.js +9 -5
- package/lib/components/AddSelect/AddSelectBody.js +13 -9
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +1 -2
- package/lib/components/AddSelect/AddSelectColumn.js +12 -8
- package/lib/components/AddSelect/AddSelectFilter.js +10 -6
- package/lib/components/AddSelect/AddSelectList.js +3 -5
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -4
- package/lib/components/AddSelect/AddSelectSidebar.js +8 -4
- package/lib/components/AddSelect/AddSelectSort.js +1 -2
- package/lib/components/AddSelect/add-select-utils.js +10 -14
- package/lib/components/AddSelect/hooks/useItemSort.js +2 -3
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/lib/components/AddSelect/hooks/usePath.js +8 -4
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +16 -10
- package/lib/components/ButtonMenu/ButtonMenu.js +10 -3
- package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +13 -9
- package/lib/components/Card/Card.js +12 -9
- package/lib/components/Card/CardFooter.js +1 -2
- package/lib/components/Card/CardHeader.js +2 -4
- package/lib/components/Carousel/Carousel.js +9 -4
- package/lib/components/Carousel/CarouselItem.js +8 -2
- package/lib/components/Cascade/Cascade.js +11 -7
- package/lib/components/Checklist/Checklist.js +19 -4
- package/lib/components/Checklist/ChecklistChart.js +15 -2
- package/lib/components/Checklist/ChecklistIcon.js +17 -2
- package/lib/components/Coachmark/Coachmark.js +10 -5
- package/lib/components/Coachmark/CoachmarkDragbar.js +11 -4
- package/lib/components/Coachmark/CoachmarkHeader.js +9 -2
- package/lib/components/Coachmark/CoachmarkOverlay.js +11 -4
- package/lib/components/Coachmark/CoachmarkTagline.js +9 -2
- package/lib/components/Coachmark/utils/constants.js +2 -3
- package/lib/components/Coachmark/utils/context.js +3 -5
- package/lib/components/Coachmark/utils/enums.js +4 -7
- package/lib/components/Coachmark/utils/hooks.js +2 -3
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +11 -5
- package/lib/components/CoachmarkButton/CoachmarkButton.js +9 -2
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +12 -6
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +9 -2
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +11 -4
- package/lib/components/CoachmarkStack/CoachmarkStack.js +9 -4
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +10 -5
- package/lib/components/ComboButton/ComboButton.js +11 -6
- package/lib/components/ComboButton/ComboButtonItem/index.js +1 -2
- package/lib/components/CreateFullPage/CreateFullPage.js +14 -8
- package/lib/components/CreateFullPage/CreateFullPageStep.js +12 -8
- package/lib/components/CreateInfluencer/CreateInfluencer.js +1 -3
- package/lib/components/CreateModal/CreateModal.js +10 -3
- package/lib/components/CreateSidePanel/CreateSidePanel.js +12 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +11 -8
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +9 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +12 -8
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +11 -5
- package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +4 -5
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +10 -3
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +14 -9
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +15 -12
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +12 -9
- package/lib/components/DataSpreadsheet/hooks/useMoveActiveCell.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useMultipleKeyTracking.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useResetSpreadsheetFocus.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetEdit.js +4 -6
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +7 -8
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +11 -7
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetOutsideClick.js +2 -3
- package/lib/components/DataSpreadsheet/utils/checkActiveHeaderCell.js +2 -3
- package/lib/components/DataSpreadsheet/utils/checkSelectedHeaderCell.js +6 -7
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +3 -5
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +2 -4
- package/lib/components/DataSpreadsheet/utils/generateData.js +4 -5
- package/lib/components/DataSpreadsheet/utils/getCellSize.js +2 -3
- package/lib/components/DataSpreadsheet/utils/getSelectionAreaPoints.js +2 -3
- package/lib/components/DataSpreadsheet/utils/getSpreadsheetWidth.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionEnter.js +9 -5
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +6 -7
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +9 -7
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +4 -5
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +11 -9
- package/lib/components/DataSpreadsheet/utils/moveColumnIndicatorLine.js +2 -3
- package/lib/components/DataSpreadsheet/utils/removeCellSelections.js +2 -3
- package/lib/components/DataSpreadsheet/utils/selectAllCells.js +9 -5
- package/lib/components/Datagrid/Datagrid/Datagrid.js +7 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +4 -6
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +12 -9
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +21 -18
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +11 -6
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +10 -7
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +2 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +9 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +10 -6
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +8 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +9 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -8
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +12 -10
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +15 -30
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +19 -15
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/motion/variants.js +4 -7
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditButton/InlineEditButton.js +3 -5
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +19 -15
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +11 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +10 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +12 -8
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +10 -5
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +3 -6
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +16 -16
- package/lib/components/Datagrid/Datagrid.stories/CustomizeColumnStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/RowSizeDropdownStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/SelectAllWithToggleStory.js +2 -3
- package/lib/components/Datagrid/Datagrid.stories/common.js +9 -12
- package/lib/components/Datagrid/common-column-ids.js +1 -2
- package/lib/components/Datagrid/useActionsColumn.js +10 -7
- package/lib/components/Datagrid/useColumnCenterAlign.js +8 -4
- package/lib/components/Datagrid/useColumnOrder.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +8 -4
- package/lib/components/Datagrid/useCustomizeColumns.js +10 -6
- package/lib/components/Datagrid/useDatagrid.js +9 -4
- package/lib/components/Datagrid/useDefaultStringRenderer.js +9 -4
- package/lib/components/Datagrid/useDisableSelectRows.js +5 -6
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +8 -4
- package/lib/components/Datagrid/useFiltering.js +13 -10
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +2 -3
- package/lib/components/Datagrid/useFocusRowExpander.js +2 -3
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInitialColumnSort.js +3 -4
- package/lib/components/Datagrid/useInlineEdit.js +5 -6
- package/lib/components/Datagrid/useNestedRowExpander.js +11 -8
- package/lib/components/Datagrid/useNestedRows.js +2 -4
- package/lib/components/Datagrid/useOnRowClick.js +1 -2
- package/lib/components/Datagrid/useParentDimensions.js +1 -2
- package/lib/components/Datagrid/useResizeTable.js +1 -2
- package/lib/components/Datagrid/useRowExpander.js +10 -6
- package/lib/components/Datagrid/useRowIsMouseOver.js +9 -4
- package/lib/components/Datagrid/useRowRenderer.js +4 -5
- package/lib/components/Datagrid/useRowSize.js +9 -4
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -4
- package/lib/components/Datagrid/useSelectRows.js +12 -9
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +10 -8
- package/lib/components/Datagrid/useStickyColumn.js +11 -9
- package/lib/components/Datagrid/utils/DatagridActions.js +4 -5
- package/lib/components/Datagrid/utils/DatagridPagination.js +2 -4
- package/lib/components/Datagrid/utils/Wrapper.js +2 -3
- package/lib/components/Datagrid/utils/filterPropsForTesting.js +5 -8
- package/lib/components/Datagrid/utils/getArgTypes.js +2 -3
- package/lib/components/Datagrid/utils/getAutoSizedColumnWidth.js +2 -3
- package/lib/components/Datagrid/utils/getInlineEditColumns.js +3 -5
- package/lib/components/Datagrid/utils/handleFilterTagLabelText.js +2 -3
- package/lib/components/Datagrid/utils/makeData.js +13 -11
- package/lib/components/EditFullPage/EditFullPage.js +9 -2
- package/lib/components/EditInPlace/EditInPlace.js +11 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +12 -4
- package/lib/components/EditTearsheet/EditTearsheet.js +11 -8
- package/lib/components/EditTearsheet/EditTearsheetForm.js +10 -6
- package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +4 -5
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +9 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +9 -2
- package/lib/components/EmptyStates/EmptyState.js +12 -6
- package/lib/components/EmptyStates/EmptyStateContent.js +10 -4
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +11 -4
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +11 -4
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +11 -4
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +11 -4
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +11 -4
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +11 -4
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +9 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +9 -2
- package/lib/components/ExampleComponent/ExampleComponent.js +14 -6
- package/lib/components/ExampleComponent/useExample.js +1 -2
- package/lib/components/ExportModal/ExportModal.js +14 -10
- package/lib/components/ExpressiveCard/ExpressiveCard.js +3 -4
- package/lib/components/FilterSummary/FilterSummary.js +12 -7
- package/lib/components/Guidebanner/Guidebanner.js +11 -4
- package/lib/components/Guidebanner/GuidebannerElement.js +9 -2
- package/lib/components/Guidebanner/GuidebannerElementButton.js +9 -2
- package/lib/components/Guidebanner/GuidebannerElementLink.js +9 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +9 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +9 -2
- package/lib/components/HTTPErrors/HTTPErrorContent.js +10 -4
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +9 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg403.js +1 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvg404.js +1 -2
- package/lib/components/HTTPErrors/assets/HTTPErrorSvgOther.js +1 -2
- package/lib/components/ImportModal/ImportModal.js +12 -8
- package/lib/components/InlineEdit/InlineEdit.js +11 -6
- package/lib/components/InlineEditV1/InlineEditV1.js +18 -8
- package/lib/components/InlineEditV2/InlineEditV2.js +13 -10
- package/lib/components/InlineTip/InlineTip.js +11 -4
- package/lib/components/InlineTip/InlineTipButton.js +9 -2
- package/lib/components/InlineTip/InlineTipLink.js +9 -2
- package/lib/components/InlineTip/utils.js +5 -6
- package/lib/components/InterstitialScreen/InterstitialScreen.js +15 -9
- package/lib/components/InterstitialScreen/assets/index.js +4 -8
- package/lib/components/InterstitialScreenView/InterstitialScreenView.js +9 -2
- package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +9 -3
- package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +1 -2
- package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +1 -2
- package/lib/components/ModifiedTabs/ModifiedTabs.js +3 -4
- package/lib/components/MultiAddSelect/MultiAddSelect.js +3 -4
- package/lib/components/NonLinearReading/NonLinearReading.js +9 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +14 -7
- package/lib/components/NotificationsPanel/NotificationsPanel_data.js +1 -2
- package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -3
- package/lib/components/NotificationsPanel/utils.js +1 -2
- package/lib/components/OptionsTile/OptionsTile.js +12 -4
- package/lib/components/PageHeader/PageHeader.js +21 -20
- package/lib/components/PageHeader/PageHeaderDemo.data.js +3 -4
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -4
- package/lib/components/PageHeader/PageHeaderUtils.js +12 -11
- package/lib/components/ProductiveCard/ProductiveCard.js +11 -7
- package/lib/components/RemoveModal/RemoveModal.js +11 -7
- package/lib/components/Saving/Saving.js +15 -10
- package/lib/components/SidePanel/SidePanel.js +29 -22
- package/lib/components/SidePanel/constants.js +2 -3
- package/lib/components/SidePanel/motion/variants.js +3 -5
- package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -4
- package/lib/components/StatusIcon/StatusIcon.js +7 -2
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +13 -6
- package/lib/components/SteppedAnimatedMedia/assets/index.js +3 -6
- package/lib/components/TagSet/TagSet.js +15 -13
- package/lib/components/TagSet/TagSetModal.js +14 -10
- package/lib/components/TagSet/TagSetOverflow.js +10 -7
- package/lib/components/Tearsheet/Tearsheet.js +13 -6
- package/lib/components/Tearsheet/TearsheetNarrow.js +13 -6
- package/lib/components/Tearsheet/TearsheetShell.js +26 -23
- package/lib/components/Toolbar/Toolbar.js +12 -10
- package/lib/components/Toolbar/ToolbarButton.js +10 -6
- package/lib/components/Toolbar/ToolbarGroup.js +9 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +10 -2
- package/lib/components/WebTerminal/WebTerminal.js +15 -8
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +9 -2
- package/lib/components/WebTerminal/hooks/index.js +6 -9
- package/lib/components/WebTerminal/preview-components/Navigation.js +1 -2
- package/lib/components/WebTerminal/preview-components/documentationLinks.js +2 -3
- package/lib/components/_Canary/Canary.js +11 -2
- package/lib/global/js/hooks/useActiveElement.js +2 -3
- package/lib/global/js/hooks/useClickOutside.js +2 -3
- package/lib/global/js/hooks/useCreateComponentFocus.js +3 -4
- package/lib/global/js/hooks/useCreateComponentStepChange.js +5 -6
- package/lib/global/js/hooks/useFocus.js +6 -7
- package/lib/global/js/hooks/useIsomorphicEffect.js +1 -2
- package/lib/global/js/hooks/usePrefix.js +2 -3
- package/lib/global/js/hooks/usePreviousValue.js +2 -3
- package/lib/global/js/hooks/useResetCreateComponent.js +2 -3
- package/lib/global/js/hooks/useResizeObserver.js +2 -3
- package/lib/global/js/hooks/useRetrieveStepData.js +2 -3
- package/lib/global/js/hooks/useValidCreateStepCount.js +2 -3
- package/lib/global/js/hooks/useWindowResize.js +4 -5
- package/lib/global/js/package-settings.js +9 -6
- package/lib/global/js/utils/ClickListener.js +3 -4
- package/lib/global/js/utils/DisplayBox.js +1 -2
- package/lib/global/js/utils/Wrap.js +12 -5
- package/lib/global/js/utils/deepCloneObject.js +3 -4
- package/lib/global/js/utils/devtools.js +1 -2
- package/lib/global/js/utils/getBezierValues.js +2 -3
- package/lib/global/js/utils/getFocusableElements.js +2 -3
- package/lib/global/js/utils/getNodeTextContent.js +5 -6
- package/lib/global/js/utils/getNumberOfHiddenSteps.js +2 -3
- package/lib/global/js/utils/getScrollbarWidth.js +2 -3
- package/lib/global/js/utils/keyboardNavigation.js +4 -8
- package/lib/global/js/utils/lastIndexInArray.js +2 -3
- package/lib/global/js/utils/motionConstants.js +3 -5
- package/lib/global/js/utils/pconsole.js +8 -15
- package/lib/global/js/utils/props-helper.js +15 -17
- package/lib/global/js/utils/rangeWithCallback.js +2 -3
- package/lib/global/js/utils/scrollableAncestor.js +5 -6
- package/lib/global/js/utils/story-helper.js +6 -11
- package/lib/global/js/utils/test-helper.js +15 -28
- package/lib/global/js/utils/unwrap-if-fragment.js +7 -8
- package/lib/global/js/utils/uuidv4.js +1 -2
- package/lib/global/js/utils/wait.js +1 -2
- package/lib/global/js/utils/wrapFocus.js +1 -2
- package/lib/settings.js +2 -4
- package/package.json +13 -13
- package/scss/components/AboutModal/_about-modal.scss +1 -2
- package/scss/components/Checklist/_checklist.scss +0 -1
- package/scss/components/Coachmark/styles/_coachmark-tagline.scss +1 -4
- package/scss/components/Datagrid/_datagrid.scss +0 -1
- package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
- package/scss/components/SidePanel/_side-panel.scss +1 -4
@@ -15,6 +15,14 @@ var _carbonComponentsReact = require("carbon-components-react");
|
|
15
15
|
var _devtools = require("../../global/js/utils/devtools");
|
16
16
|
var _settings = require("../../settings");
|
17
17
|
var _excluded = ["closeIconDescription", "onClose", "showCloseButton", "theme"];
|
18
|
+
/**
|
19
|
+
* Copyright IBM Corp. 2023, 2023
|
20
|
+
*
|
21
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
23
|
+
*/
|
24
|
+
// Import portions of React that are needed.
|
25
|
+
// Other standard imports.
|
18
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
19
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-header");
|
20
28
|
var overlayBlockClass = "".concat(_settings.pkg.prefix, "--coachmark-overlay");
|
@@ -30,7 +38,7 @@ var defaults = {
|
|
30
38
|
* DO NOT USE. This component is for the exclusive use
|
31
39
|
* of other Novice to Pro components.
|
32
40
|
*/
|
33
|
-
var CoachmarkHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
41
|
+
var CoachmarkHeader = exports.CoachmarkHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
34
42
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
35
43
|
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
36
44
|
_ref$onClose = _ref.onClose,
|
@@ -56,7 +64,6 @@ var CoachmarkHeader = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
56
64
|
});
|
57
65
|
|
58
66
|
// Return a placeholder if not released and not enabled by feature flag
|
59
|
-
exports.CoachmarkHeader = CoachmarkHeader;
|
60
67
|
exports.CoachmarkHeader = CoachmarkHeader = _settings.pkg.checkComponentEnabled(CoachmarkHeader, componentName);
|
61
68
|
|
62
69
|
// The display name of the component, used by React. Note that displayName
|
@@ -21,8 +21,16 @@ var _constants = require("./utils/constants");
|
|
21
21
|
var _context = require("./utils/context");
|
22
22
|
var _enums = require("./utils/enums");
|
23
23
|
var _excluded = ["children", "onClose", "fixedIsVisible", "className", "kind", "theme"];
|
24
|
-
|
25
|
-
|
24
|
+
/**
|
25
|
+
* Copyright IBM Corp. 2023, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
// Import portions of React that are needed.
|
31
|
+
// Other standard imports.
|
32
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
34
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
27
35
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-overlay");
|
28
36
|
var componentName = 'CoachmarkOverlay';
|
@@ -38,7 +46,7 @@ var defaults = {
|
|
38
46
|
* DO NOT USE. This component is for the exclusive use
|
39
47
|
* of other Novice to Pro components.
|
40
48
|
*/
|
41
|
-
var CoachmarkOverlay = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
49
|
+
var CoachmarkOverlay = exports.CoachmarkOverlay = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
42
50
|
var children = _ref.children,
|
43
51
|
onClose = _ref.onClose,
|
44
52
|
fixedIsVisible = _ref.fixedIsVisible,
|
@@ -169,7 +177,6 @@ var CoachmarkOverlay = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
|
|
169
177
|
className: "".concat(blockClass, "__caret")
|
170
178
|
}));
|
171
179
|
});
|
172
|
-
exports.CoachmarkOverlay = CoachmarkOverlay;
|
173
180
|
function getWindowDimensions() {
|
174
181
|
var _window = window,
|
175
182
|
winWidth = _window.innerWidth,
|
@@ -16,6 +16,14 @@ var _context = require("./utils/context");
|
|
16
16
|
var _devtools = require("../../global/js/utils/devtools");
|
17
17
|
var _settings = require("../../settings");
|
18
18
|
var _excluded = ["closeIconDescription", "onClose", "theme", "title"];
|
19
|
+
/**
|
20
|
+
* Copyright IBM Corp. 2023, 2023
|
21
|
+
*
|
22
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
23
|
+
* LICENSE file in the root directory of this source tree.
|
24
|
+
*/
|
25
|
+
// Import portions of React that are needed.
|
26
|
+
// Other standard imports.
|
19
27
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
20
28
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-tagline");
|
21
29
|
var componentName = 'CoachmarkTagline';
|
@@ -29,7 +37,7 @@ var defaults = {
|
|
29
37
|
* DO NOT USE. This component is for the exclusive use
|
30
38
|
* of other Novice to Pro components.
|
31
39
|
*/
|
32
|
-
var CoachmarkTagline = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
40
|
+
var CoachmarkTagline = exports.CoachmarkTagline = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
33
41
|
var _ref$closeIconDescrip = _ref.closeIconDescription,
|
34
42
|
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
35
43
|
_ref$onClose = _ref.onClose,
|
@@ -60,7 +68,6 @@ var CoachmarkTagline = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
60
68
|
});
|
61
69
|
|
62
70
|
// Return a placeholder if not released and not enabled by feature flag
|
63
|
-
exports.CoachmarkTagline = CoachmarkTagline;
|
64
71
|
exports.CoachmarkTagline = CoachmarkTagline = _settings.pkg.checkComponentEnabled(CoachmarkTagline, componentName);
|
65
72
|
|
66
73
|
// The display name of the component, used by React. Note that displayName
|
@@ -13,7 +13,7 @@ var _enums = require("./enums");
|
|
13
13
|
* @returns {object} {top:number, left:number}
|
14
14
|
*/
|
15
15
|
|
16
|
-
var getOffsetTune = function getOffsetTune(coachmark, kind) {
|
16
|
+
var getOffsetTune = exports.getOffsetTune = function getOffsetTune(coachmark, kind) {
|
17
17
|
// for future reference
|
18
18
|
// const coachmarkTarget = {
|
19
19
|
// x: coachmark.targetOffset.x,
|
@@ -78,5 +78,4 @@ var getOffsetTune = function getOffsetTune(coachmark, kind) {
|
|
78
78
|
top: top,
|
79
79
|
left: left
|
80
80
|
};
|
81
|
-
};
|
82
|
-
exports.getOffsetTune = getOffsetTune;
|
81
|
+
};
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.useCoachmark = exports.CoachmarkContext = void 0;
|
7
7
|
var _react = require("react");
|
8
|
-
var CoachmarkContext = /*#__PURE__*/(0, _react.createContext)();
|
9
|
-
exports.
|
10
|
-
var useCoachmark = function useCoachmark() {
|
8
|
+
var CoachmarkContext = exports.CoachmarkContext = /*#__PURE__*/(0, _react.createContext)();
|
9
|
+
var useCoachmark = exports.useCoachmark = function useCoachmark() {
|
11
10
|
return (0, _react.useContext)(CoachmarkContext);
|
12
|
-
};
|
13
|
-
exports.useCoachmark = useCoachmark;
|
11
|
+
};
|
@@ -9,7 +9,7 @@ exports.COACHMARK_OVERLAY_KIND = exports.COACHMARK_ALIGNMENT = exports.BEACON_KI
|
|
9
9
|
/**
|
10
10
|
* Reserved for future expansion, i.e. "RING".
|
11
11
|
*/
|
12
|
-
var BEACON_KIND = {
|
12
|
+
var BEACON_KIND = exports.BEACON_KIND = {
|
13
13
|
DEFAULT: 'default'
|
14
14
|
};
|
15
15
|
|
@@ -20,8 +20,7 @@ var BEACON_KIND = {
|
|
20
20
|
* @param FIXED is fixed to the bottom-right of the viewport.
|
21
21
|
* @param STACKED is fixed to the bottom-right of the viewport, includes links to show more, stackable Coachmarks if included.
|
22
22
|
*/
|
23
|
-
exports.
|
24
|
-
var COACHMARK_OVERLAY_KIND = {
|
23
|
+
var COACHMARK_OVERLAY_KIND = exports.COACHMARK_OVERLAY_KIND = {
|
25
24
|
TOOLTIP: 'tooltip',
|
26
25
|
FLOATING: 'floating',
|
27
26
|
FIXED: 'fixed',
|
@@ -31,8 +30,7 @@ var COACHMARK_OVERLAY_KIND = {
|
|
31
30
|
* Where to render the Coachmark relative to its target.
|
32
31
|
* Applies only to Floating and Tooltip Coachmarks.
|
33
32
|
*/
|
34
|
-
exports.
|
35
|
-
var COACHMARK_ALIGNMENT = {
|
33
|
+
var COACHMARK_ALIGNMENT = exports.COACHMARK_ALIGNMENT = {
|
36
34
|
BOTTOM: 'bottom',
|
37
35
|
BOTTOM_LEFT: 'bottom-left',
|
38
36
|
BOTTOM_RIGHT: 'bottom-right',
|
@@ -45,5 +43,4 @@ var COACHMARK_ALIGNMENT = {
|
|
45
43
|
TOP: 'top',
|
46
44
|
TOP_LEFT: 'top-left',
|
47
45
|
TOP_RIGHT: 'top-right'
|
48
|
-
};
|
49
|
-
exports.COACHMARK_ALIGNMENT = COACHMARK_ALIGNMENT;
|
46
|
+
};
|
@@ -40,7 +40,7 @@ function useClickOutsideElement(coachmarkRef, overlayRef, overlayKind, callback)
|
|
40
40
|
};
|
41
41
|
}, [coachmarkRef, overlayRef, isTooltip]);
|
42
42
|
}
|
43
|
-
var useWindowEvent = function useWindowEvent(eventName, callback) {
|
43
|
+
var useWindowEvent = exports.useWindowEvent = function useWindowEvent(eventName, callback) {
|
44
44
|
var savedCallback = (0, _react.useRef)(null);
|
45
45
|
(0, _react.useEffect)(function () {
|
46
46
|
savedCallback.current = callback;
|
@@ -56,5 +56,4 @@ var useWindowEvent = function useWindowEvent(eventName, callback) {
|
|
56
56
|
window.removeEventListener(eventName, handler);
|
57
57
|
};
|
58
58
|
}, [eventName]);
|
59
|
-
};
|
60
|
-
exports.useWindowEvent = useWindowEvent;
|
59
|
+
};
|
@@ -14,6 +14,14 @@ var _Coachmark = require("../Coachmark");
|
|
14
14
|
var _devtools = require("../../global/js/utils/devtools");
|
15
15
|
var _settings = require("../../settings");
|
16
16
|
var _excluded = ["label", "className", "kind"];
|
17
|
+
/**
|
18
|
+
* Copyright IBM Corp. 2023, 2023
|
19
|
+
*
|
20
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
22
|
+
*/
|
23
|
+
// Import portions of React that are needed.
|
24
|
+
// Other standard imports.
|
17
25
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
18
26
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-beacon");
|
19
27
|
var componentName = 'CoachmarkBeacon';
|
@@ -24,7 +32,7 @@ var defaults = {
|
|
24
32
|
/**
|
25
33
|
* Use beacon for the target prop of a Coachmark component.
|
26
34
|
*/
|
27
|
-
var CoachmarkBeacon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
35
|
+
var CoachmarkBeacon = exports.CoachmarkBeacon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
28
36
|
var _coachmark$positionTu, _coachmark$positionTu2, _coachmark$positionTu3, _coachmark$positionTu4;
|
29
37
|
var label = _ref.label,
|
30
38
|
className = _ref.className,
|
@@ -52,9 +60,8 @@ var CoachmarkBeacon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
52
60
|
"aria-label": label,
|
53
61
|
className: "".concat(blockClass, "__target")
|
54
62
|
}), /*#__PURE__*/_react.default.createElement("svg", {
|
55
|
-
className: "".concat(blockClass, "__center")
|
56
|
-
|
57
|
-
}, /*#__PURE__*/_react.default.createElement("circle", {
|
63
|
+
className: "".concat(blockClass, "__center")
|
64
|
+
}, /*#__PURE__*/_react.default.createElement("title", null, label), /*#__PURE__*/_react.default.createElement("circle", {
|
58
65
|
r: 1,
|
59
66
|
cx: 38,
|
60
67
|
cy: 38
|
@@ -62,7 +69,6 @@ var CoachmarkBeacon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
62
69
|
});
|
63
70
|
|
64
71
|
// Return a placeholder if not released and not enabled by feature flag
|
65
|
-
exports.CoachmarkBeacon = CoachmarkBeacon;
|
66
72
|
exports.CoachmarkBeacon = CoachmarkBeacon = _settings.pkg.checkComponentEnabled(CoachmarkBeacon, componentName);
|
67
73
|
|
68
74
|
// The display name of the component, used by React. Note that displayName
|
@@ -15,6 +15,14 @@ var _Coachmark = require("../Coachmark");
|
|
15
15
|
var _devtools = require("../../global/js/utils/devtools");
|
16
16
|
var _settings = require("../../settings");
|
17
17
|
var _excluded = ["className", "label"];
|
18
|
+
/**
|
19
|
+
* Copyright IBM Corp. 2023, 2023
|
20
|
+
*
|
21
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
23
|
+
*/
|
24
|
+
// Import portions of React that are needed.
|
25
|
+
// Other standard imports.
|
18
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
19
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-button");
|
20
28
|
var componentName = 'CoachmarkButton';
|
@@ -22,7 +30,7 @@ var componentName = 'CoachmarkButton';
|
|
22
30
|
/**
|
23
31
|
* Use CoachmarkButton for the target prop of a Coachmark component.
|
24
32
|
*/
|
25
|
-
var CoachmarkButton = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
33
|
+
var CoachmarkButton = exports.CoachmarkButton = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
26
34
|
var className = _ref.className,
|
27
35
|
label = _ref.label,
|
28
36
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
@@ -47,7 +55,6 @@ var CoachmarkButton = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref
|
|
47
55
|
});
|
48
56
|
|
49
57
|
// Return a placeholder if not released and not enabled by feature flag
|
50
|
-
exports.CoachmarkButton = CoachmarkButton;
|
51
58
|
exports.CoachmarkButton = CoachmarkButton = _settings.pkg.checkComponentEnabled(CoachmarkButton, componentName);
|
52
59
|
|
53
60
|
// The display name of the component, used by React. Note that displayName
|
@@ -20,8 +20,16 @@ var _enums = require("../Coachmark/utils/enums");
|
|
20
20
|
var _devtools = require("../../global/js/utils/devtools");
|
21
21
|
var _settings = require("../../settings");
|
22
22
|
var _excluded = ["children", "className", "onClose", "portalTarget", "tagline", "theme"];
|
23
|
-
|
24
|
-
|
23
|
+
/**
|
24
|
+
* Copyright IBM Corp. 2023, 2023
|
25
|
+
*
|
26
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
28
|
+
*/
|
29
|
+
// Import portions of React that are needed.
|
30
|
+
// Other standard imports.
|
31
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
32
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
25
33
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
26
34
|
var coachmarkClass = "".concat(_settings.pkg.prefix, "--coachmark");
|
27
35
|
var blockClass = "".concat(coachmarkClass, "-fixed");
|
@@ -39,7 +47,7 @@ var defaults = {
|
|
39
47
|
* user to gain understanding of the product's main value and discover new use cases.
|
40
48
|
* This variant allows the a coachmark overlay to be displayed by interacting with the tagline.
|
41
49
|
*/
|
42
|
-
var CoachmarkFixed = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
50
|
+
var CoachmarkFixed = exports.CoachmarkFixed = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
43
51
|
var _document$querySelect;
|
44
52
|
var children = _ref.children,
|
45
53
|
className = _ref.className,
|
@@ -158,12 +166,11 @@ var CoachmarkFixed = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
158
166
|
className: (0, _classnames.default)(blockClass, // Apply the block class to the main HTML element
|
159
167
|
"".concat(blockClass, "__").concat(theme), className // Apply any supplied class names to the main HTML element.
|
160
168
|
),
|
161
|
-
|
162
169
|
ref: ref
|
163
170
|
}, (0, _devtools.getDevtoolsProps)(componentName)), /*#__PURE__*/_react.default.createElement(_CoachmarkTagline.CoachmarkTagline, {
|
164
171
|
title: tagline,
|
165
172
|
onClose: onClose
|
166
|
-
}), isOpen && /*#__PURE__*/(0, _reactDom.createPortal)(
|
173
|
+
}), isOpen && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_CoachmarkOverlay.CoachmarkOverlay, {
|
167
174
|
ref: overlayRef,
|
168
175
|
fixedIsVisible: fixedIsVisible,
|
169
176
|
kind: _enums.COACHMARK_OVERLAY_KIND.FIXED,
|
@@ -175,7 +182,6 @@ var CoachmarkFixed = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
175
182
|
});
|
176
183
|
|
177
184
|
// Return a placeholder if not released and not enabled by feature flag
|
178
|
-
exports.CoachmarkFixed = CoachmarkFixed;
|
179
185
|
exports.CoachmarkFixed = CoachmarkFixed = _settings.pkg.checkComponentEnabled(CoachmarkFixed, componentName);
|
180
186
|
|
181
187
|
// The display name of the component, used by React. Note that displayName
|
@@ -13,6 +13,14 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _devtools = require("../../global/js/utils/devtools");
|
14
14
|
var _settings = require("../../settings");
|
15
15
|
var _excluded = ["button", "className", "description", "title"];
|
16
|
+
/**
|
17
|
+
* Copyright IBM Corp. 2023, 2023
|
18
|
+
*
|
19
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
21
|
+
*/
|
22
|
+
// Import portions of React that are needed.
|
23
|
+
// Other standard imports.
|
16
24
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
17
25
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-overlay-element");
|
18
26
|
var componentName = 'CoachmarkOverlayElement';
|
@@ -22,7 +30,7 @@ var componentName = 'CoachmarkOverlayElement';
|
|
22
30
|
* Can be used 1 to N number, to display content in a Coachmark's overlay
|
23
31
|
* in a carousel fashion.
|
24
32
|
*/
|
25
|
-
var CoachmarkOverlayElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
33
|
+
var CoachmarkOverlayElement = exports.CoachmarkOverlayElement = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
26
34
|
var button = _ref.button,
|
27
35
|
className = _ref.className,
|
28
36
|
description = _ref.description,
|
@@ -52,7 +60,6 @@ var CoachmarkOverlayElement = /*#__PURE__*/_react.default.forwardRef(function (_
|
|
52
60
|
});
|
53
61
|
|
54
62
|
// Return a placeholder if not released and not enabled by feature flag
|
55
|
-
exports.CoachmarkOverlayElement = CoachmarkOverlayElement;
|
56
63
|
exports.CoachmarkOverlayElement = CoachmarkOverlayElement = _settings.pkg.checkComponentEnabled(CoachmarkOverlayElement, componentName);
|
57
64
|
|
58
65
|
// The display name of the component, used by React. Note that displayName
|
@@ -21,8 +21,16 @@ var _SteppedAnimatedMedia = require("../SteppedAnimatedMedia");
|
|
21
21
|
var _devtools = require("../../global/js/utils/devtools");
|
22
22
|
var _settings = require("../../settings");
|
23
23
|
var _excluded = ["className", "children", "isVisible", "media", "nextButtonText", "previousButtonLabel", "closeButtonLabel"];
|
24
|
-
|
25
|
-
|
24
|
+
/**
|
25
|
+
* Copyright IBM Corp. 2023, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
//TODO THIS PATH WILL NEED TO BE UPDATED ONCE IN IBM PRODUCTS
|
31
|
+
//TODO THIS PATH WILL NEED TO BE UPDATED ONCE IN IBM PRODUCTS
|
32
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
33
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
34
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
27
35
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-overlay-elements");
|
28
36
|
var componentName = 'CoachmarkOverlayElements';
|
@@ -37,7 +45,7 @@ var defaults = {
|
|
37
45
|
* Composable container to allow for the displaying of CoachmarkOverlayElement
|
38
46
|
* components in a carousel fashion.
|
39
47
|
*/
|
40
|
-
var CoachmarkOverlayElements = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
48
|
+
var CoachmarkOverlayElements = exports.CoachmarkOverlayElements = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
41
49
|
var className = _ref.className,
|
42
50
|
children = _ref.children,
|
43
51
|
_ref$isVisible = _ref.isVisible,
|
@@ -148,7 +156,6 @@ var CoachmarkOverlayElements = /*#__PURE__*/_react.default.forwardRef(function (
|
|
148
156
|
});
|
149
157
|
|
150
158
|
// Return a placeholder if not released and not enabled by feature flag
|
151
|
-
exports.CoachmarkOverlayElements = CoachmarkOverlayElements;
|
152
159
|
exports.CoachmarkOverlayElements = CoachmarkOverlayElements = _settings.pkg.checkComponentEnabled(CoachmarkOverlayElements, componentName);
|
153
160
|
|
154
161
|
// The display name of the component, used by React. Note that displayName
|
@@ -21,8 +21,14 @@ var _CoachmarkTagline = require("../Coachmark/CoachmarkTagline");
|
|
21
21
|
var _context = require("../Coachmark/utils/context");
|
22
22
|
var _enums = require("../Coachmark/utils/enums");
|
23
23
|
var _excluded = ["children", "className", "onClose", "description", "media", "navLinkLabels", "portalTarget", "closeButtonLabel", "tagline", "theme", "title"];
|
24
|
-
|
25
|
-
|
24
|
+
/**
|
25
|
+
* Copyright IBM Corp. 2023, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
31
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
32
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark-stack");
|
27
33
|
var elementBlockClass = "".concat(_settings.pkg.prefix, "--coachmark-stack-element");
|
28
34
|
var componentName = 'CoachmarkStack';
|
@@ -45,7 +51,7 @@ var defaults = {
|
|
45
51
|
* user to gain understanding of the product's main value and discover new use cases.
|
46
52
|
* This variant allows the stacking of multiple coachmark overlays to be displayed by interacting with the tagline.
|
47
53
|
*/
|
48
|
-
var CoachmarkStack = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
54
|
+
var CoachmarkStack = exports.CoachmarkStack = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
49
55
|
var _document$querySelect;
|
50
56
|
var children = _ref.children,
|
51
57
|
className = _ref.className,
|
@@ -209,7 +215,6 @@ var CoachmarkStack = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
209
215
|
});
|
210
216
|
|
211
217
|
// Return a placeholder if not released and not enabled by feature flag
|
212
|
-
exports.CoachmarkStack = CoachmarkStack;
|
213
218
|
exports.CoachmarkStack = CoachmarkStack = _settings.pkg.checkComponentEnabled(CoachmarkStack, componentName);
|
214
219
|
|
215
220
|
// The display name of the component, used by React. Note that displayName
|
@@ -21,8 +21,14 @@ var _reactDom = require("react-dom");
|
|
21
21
|
var _CoachmarkHeader = require("../Coachmark/CoachmarkHeader");
|
22
22
|
var _SteppedAnimatedMedia = require("../SteppedAnimatedMedia");
|
23
23
|
var _excluded = ["className", "description", "isOpen", "media", "navLinkLabels", "onClickNavItem", "onClose", "portalTarget", "closeButtonLabel", "title"];
|
24
|
-
|
25
|
-
|
24
|
+
/**
|
25
|
+
* Copyright IBM Corp. 2023, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
31
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
32
|
// Carbon and package components we use.
|
27
33
|
/* TODO: @import(s) of carbon components and other package components. */
|
28
34
|
|
@@ -35,7 +41,7 @@ var componentName = 'CoachmarkStackHome';
|
|
35
41
|
* DO NOT USE. This component is for the exclusive use
|
36
42
|
* of other Novice to Pro components.
|
37
43
|
*/
|
38
|
-
var CoachmarkStackHome = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
44
|
+
var CoachmarkStackHome = exports.CoachmarkStackHome = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
39
45
|
var _document$querySelect;
|
40
46
|
var className = _ref.className,
|
41
47
|
description = _ref.description,
|
@@ -64,7 +70,7 @@ var CoachmarkStackHome = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
64
70
|
return _pconsole.default.warn("".concat(componentName, " is a Novice to Pro internal component and is not intended for general use."));
|
65
71
|
}
|
66
72
|
var portalNode = portalTarget ? (_document$querySelect = document.querySelector(portalTarget)) !== null && _document$querySelect !== void 0 ? _document$querySelect : document.querySelector('body') : document.querySelector('body');
|
67
|
-
return /*#__PURE__*/(0, _reactDom.createPortal)(
|
73
|
+
return /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
68
74
|
className: (0, _classnames.default)(blockClass, className),
|
69
75
|
ref: ref,
|
70
76
|
role: "main"
|
@@ -123,7 +129,6 @@ var CoachmarkStackHome = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref
|
|
123
129
|
});
|
124
130
|
|
125
131
|
// Return a placeholder if not released and not enabled by feature flag
|
126
|
-
exports.CoachmarkStackHome = CoachmarkStackHome;
|
127
132
|
exports.CoachmarkStackHome = CoachmarkStackHome = _settings.pkg.checkComponentEnabled(CoachmarkStackHome, componentName);
|
128
133
|
|
129
134
|
// The display name of the component, used by React. Note that displayName
|
@@ -20,16 +20,22 @@ var _react = _interopRequireWildcard(require("react"));
|
|
20
20
|
var _excluded = ["children", "className", "overflowMenu"],
|
21
21
|
_excluded2 = ["children"],
|
22
22
|
_excluded3 = ["children", "renderIcon"];
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
/**
|
24
|
+
* Copyright IBM Corp. 2020, 2021
|
25
|
+
*
|
26
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
28
|
+
*/
|
29
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
30
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
31
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
32
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
27
33
|
var blockClass = 'security--combo-button';
|
28
34
|
|
29
35
|
/**
|
30
36
|
* The combo button consolidates similar actions, while exposing the most commonly used one.
|
31
37
|
*/
|
32
|
-
var ComboButton = function ComboButton(_ref) {
|
38
|
+
var ComboButton = exports.ComboButton = function ComboButton(_ref) {
|
33
39
|
var children = _ref.children,
|
34
40
|
className = _ref.className,
|
35
41
|
overflowMenu = _ref.overflowMenu,
|
@@ -85,7 +91,6 @@ var ComboButton = function ComboButton(_ref) {
|
|
85
91
|
}));
|
86
92
|
})));
|
87
93
|
};
|
88
|
-
exports.ComboButton = ComboButton;
|
89
94
|
ComboButton.propTypes = {
|
90
95
|
/** Provide the contents of the `ComboButton` */
|
91
96
|
children: _propTypes.node.isRequired,
|
@@ -19,11 +19,10 @@ var _react = _interopRequireDefault(require("react"));
|
|
19
19
|
/**
|
20
20
|
* The combo button item provides additional actions a user can take.
|
21
21
|
*/
|
22
|
-
var ComboButtonItem = function ComboButtonItem(_ref) {
|
22
|
+
var ComboButtonItem = exports.ComboButtonItem = function ComboButtonItem(_ref) {
|
23
23
|
var rest = (0, _extends2.default)({}, ((0, _objectDestructuringEmpty2.default)(_ref), _ref));
|
24
24
|
return /*#__PURE__*/_react.default.createElement("span", rest);
|
25
25
|
};
|
26
|
-
exports.ComboButtonItem = ComboButtonItem;
|
27
26
|
ComboButtonItem.propTypes = {
|
28
27
|
/** Provide the contents of the `ComboButtonItem` */
|
29
28
|
children: _propTypes.node.isRequired,
|
@@ -21,22 +21,29 @@ var _hooks = require("../../global/js/hooks");
|
|
21
21
|
var _lastIndexInArray = require("../../global/js/utils/lastIndexInArray");
|
22
22
|
var _getNumberOfHiddenSteps = require("../../global/js/utils/getNumberOfHiddenSteps");
|
23
23
|
var _excluded = ["backButtonText", "cancelButtonText", "children", "className", "initialStep", "modalDangerButtonText", "modalDescription", "modalSecondaryButtonText", "modalTitle", "nextButtonText", "onClose", "onRequestSubmit", "firstFocusElement", "submitButtonText", "title"];
|
24
|
-
|
25
|
-
|
24
|
+
/**
|
25
|
+
* Copyright IBM Corp. 2021, 2023
|
26
|
+
*
|
27
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
29
|
+
*/
|
30
|
+
// Import portions of React that are needed.
|
31
|
+
// Other standard imports.
|
32
|
+
// Carbon and package components we use.
|
33
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
34
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
26
35
|
var blockClass = "".concat(_settings.pkg.prefix, "--create-full-page");
|
27
36
|
var componentName = 'CreateFullPage';
|
28
37
|
|
29
38
|
// This is a general context for the steps container
|
30
39
|
// containing information about the state of the container
|
31
40
|
// and providing some callback methods for steps to use
|
32
|
-
var StepsContext = /*#__PURE__*/(0, _react.createContext)(null);
|
41
|
+
var StepsContext = exports.StepsContext = /*#__PURE__*/(0, _react.createContext)(null);
|
33
42
|
|
34
43
|
// This is a context supplied separately to each step in the container
|
35
44
|
// to let it know what number it is in the sequence of steps
|
36
|
-
exports.
|
37
|
-
var
|
38
|
-
exports.StepNumberContext = StepNumberContext;
|
39
|
-
var CreateFullPage = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
45
|
+
var StepNumberContext = exports.StepNumberContext = /*#__PURE__*/(0, _react.createContext)(-1);
|
46
|
+
var CreateFullPage = exports.CreateFullPage = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
40
47
|
var backButtonText = _ref.backButtonText,
|
41
48
|
cancelButtonText = _ref.cancelButtonText,
|
42
49
|
children = _ref.children,
|
@@ -228,7 +235,6 @@ var CreateFullPage = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
228
235
|
});
|
229
236
|
|
230
237
|
// Return a placeholder if not released and not enabled by feature flag.
|
231
|
-
exports.CreateFullPage = CreateFullPage;
|
232
238
|
exports.CreateFullPage = CreateFullPage = _settings.pkg.checkComponentEnabled(CreateFullPage, componentName);
|
233
239
|
|
234
240
|
// The display name of the component, used by React. Note that displayName
|