@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
@@ -21,12 +21,20 @@ var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
|
|
21
21
|
require("../../global/js/utils/props-helper");
|
22
22
|
var _excluded = ["breadcrumbs", "className", "maxVisible", "noTrailingSlash", "overflowAriaLabel"],
|
23
23
|
_excluded2 = ["label", "key", "title", "id"],
|
24
|
-
_excluded3 = ["className", "key", "label", "title"];
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
_excluded3 = ["className", "key", "label", "title"]; //
|
25
|
+
// Copyright IBM Corp. 2020, 2021
|
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; }
|
35
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
36
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
37
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
30
38
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
31
39
|
var blockClass = "".concat(_settings.pkg.prefix, "--breadcrumb-with-overflow");
|
32
40
|
var componentName = 'BreadcrumbWithOverflow';
|
@@ -36,7 +44,7 @@ var componentName = 'BreadcrumbWithOverflow';
|
|
36
44
|
/**
|
37
45
|
* The BreadcrumbWithOverflow is used internally by the PageHeader to wrap BreadcrumbItems.
|
38
46
|
*/
|
39
|
-
var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
47
|
+
var BreadcrumbWithOverflow = exports.BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
40
48
|
var _backItem, _backItem2, _backItem3;
|
41
49
|
var breadcrumbs = _ref.breadcrumbs,
|
42
50
|
className = _ref.className,
|
@@ -87,7 +95,7 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
87
95
|
// create hidden sizing items
|
88
96
|
(0, _react.useEffect)(function () {
|
89
97
|
// Hidden action bar and items used to calculate sizes
|
90
|
-
setHiddenSizingItems(
|
98
|
+
setHiddenSizingItems(/*#__PURE__*/_react.default.createElement("div", {
|
91
99
|
className: "".concat(blockClass, "__breadcrumb-container ").concat(blockClass, "__breadcrumb-container--hidden"),
|
92
100
|
"aria-hidden": true,
|
93
101
|
ref: sizingContainerRef
|
@@ -163,7 +171,6 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
163
171
|
return itemCount - index; // count down from itemCount - 2 to 1
|
164
172
|
}
|
165
173
|
};
|
166
|
-
|
167
174
|
if (maxVisible <= 1) {
|
168
175
|
setDisplayCount(1);
|
169
176
|
} else {
|
@@ -266,7 +273,6 @@ var BreadcrumbWithOverflow = function BreadcrumbWithOverflow(_ref) {
|
|
266
273
|
};
|
267
274
|
|
268
275
|
// Return a placeholder if not released and not enabled by feature flag
|
269
|
-
exports.BreadcrumbWithOverflow = BreadcrumbWithOverflow;
|
270
276
|
exports.BreadcrumbWithOverflow = BreadcrumbWithOverflow = _settings.pkg.checkComponentEnabled(BreadcrumbWithOverflow, componentName);
|
271
277
|
BreadcrumbWithOverflow.propTypes = {
|
272
278
|
breadcrumbs: _propTypes.default.arrayOf(_propTypes.default.shape({
|
@@ -14,6 +14,15 @@ var _settings = require("../../settings");
|
|
14
14
|
var _carbonComponentsReact = require("carbon-components-react");
|
15
15
|
var _getNodeTextContent = require("../../global/js/utils/getNodeTextContent");
|
16
16
|
var _excluded = ["children", "className", "iconDescription", "kind", "label", "menuAriaLabel", "menuOptionsClass", "renderIcon", "size"];
|
17
|
+
/**
|
18
|
+
* Copyright IBM Corp. 2021, 2021
|
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.
|
25
|
+
// Carbon and package components we use.
|
17
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
18
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--button-menu");
|
19
28
|
var componentName = 'ButtonMenu';
|
@@ -33,7 +42,7 @@ var defaults = {
|
|
33
42
|
* zero to many ButtonMenuItem, which is identical to the carbon
|
34
43
|
* OverflowMenuItem component.
|
35
44
|
*/
|
36
|
-
var ButtonMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
45
|
+
var ButtonMenu = exports.ButtonMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
37
46
|
var _ref2;
|
38
47
|
var children = _ref.children,
|
39
48
|
className = _ref.className,
|
@@ -53,7 +62,6 @@ var ButtonMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
53
62
|
// Apply the block class to the main HTML element
|
54
63
|
className // Apply any supplied class names to the main HTML element.
|
55
64
|
),
|
56
|
-
|
57
65
|
menuOptionsClass: (0, _classnames.default)("".concat(blockClass, "__options"), menuOptionsClass),
|
58
66
|
size: size,
|
59
67
|
ariaLabel: (_ref2 = menuAriaLabel !== null && menuAriaLabel !== void 0 ? menuAriaLabel : (0, _getNodeTextContent.getNodeTextContent)(label)) !== null && _ref2 !== void 0 ? _ref2 : undefined,
|
@@ -71,7 +79,6 @@ var ButtonMenu = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
71
79
|
});
|
72
80
|
|
73
81
|
// Return a placeholder if not released and not enabled by feature flag
|
74
|
-
exports.ButtonMenu = ButtonMenu;
|
75
82
|
exports.ButtonMenu = ButtonMenu = _settings.pkg.checkComponentEnabled(ButtonMenu, componentName);
|
76
83
|
|
77
84
|
// The display name of the component, used by React. Note that displayName
|
@@ -30,13 +30,12 @@ var componentName = 'ButtonMenuItem';
|
|
30
30
|
* A menu item to include in a button menu component. This component has the
|
31
31
|
* same props and behaviors as carbon OverflowMenuItem.
|
32
32
|
*/
|
33
|
-
var ButtonMenuItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
33
|
+
var ButtonMenuItem = exports.ButtonMenuItem = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
34
34
|
return /*#__PURE__*/_react.default.createElement(_carbonComponentsReact.OverflowMenuItem, (0, _extends2.default)({}, props, {
|
35
35
|
ref: ref
|
36
36
|
}));
|
37
37
|
});
|
38
38
|
|
39
39
|
// Return a placeholder if not released and not enabled by feature flag
|
40
|
-
exports.ButtonMenuItem = ButtonMenuItem;
|
41
40
|
exports.ButtonMenuItem = ButtonMenuItem = _settings.pkg.checkComponentEnabled(ButtonMenuItem, componentName);
|
42
41
|
ButtonMenuItem.propTypes = _carbonComponentsReact.OverflowMenuItem.propTypes;
|
@@ -22,17 +22,22 @@ var _excluded = ["buttons"],
|
|
22
22
|
_excluded2 = ["label", "key", "kind"],
|
23
23
|
_excluded3 = ["buttons"],
|
24
24
|
_excluded4 = ["label", "key", "kind"];
|
25
|
-
function _getRequireWildcardCache(
|
26
|
-
function _interopRequireWildcard(
|
27
|
-
function ownKeys(
|
28
|
-
function _objectSpread(
|
29
|
-
function _createForOfIteratorHelper(
|
30
|
-
function _unsupportedIterableToArray(
|
31
|
-
function _arrayLikeToArray(
|
25
|
+
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); }
|
26
|
+
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; }
|
27
|
+
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; }
|
28
|
+
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; }
|
29
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
30
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
31
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; } //
|
32
|
+
// Copyright IBM Corp. 2020, 2021
|
33
|
+
//
|
34
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
35
|
+
// LICENSE file in the root directory of this source tree.
|
36
|
+
//
|
32
37
|
var blockClass = "".concat(_settings.pkg.prefix, "--button-set-with-overflow");
|
33
38
|
var componentName = 'ButtonSetWithOverflow';
|
34
39
|
var buttonSize = 'md';
|
35
|
-
var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
40
|
+
var ButtonSetWithOverflow = exports.ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
36
41
|
var buttons = _ref.buttons,
|
37
42
|
className = _ref.className,
|
38
43
|
onWidthChange = _ref.onWidthChange,
|
@@ -169,7 +174,6 @@ var ButtonSetWithOverflow = function ButtonSetWithOverflow(_ref) {
|
|
169
174
|
buttons: buttons
|
170
175
|
}));
|
171
176
|
};
|
172
|
-
exports.ButtonSetWithOverflow = ButtonSetWithOverflow;
|
173
177
|
ButtonSetWithOverflow.propTypes = {
|
174
178
|
/**
|
175
179
|
* buttonSetOverflowLabel - used when button set is shown as combo button
|
@@ -18,11 +18,16 @@ var _CardFooter = require("./CardFooter");
|
|
18
18
|
var _settings = require("../../settings");
|
19
19
|
var _excluded = ["actionIcons", "actionsPlacement", "children", "className", "clickZone", "description", "label", "media", "mediaPosition", "onClick", "onKeyDown", "onPrimaryButtonClick", "overflowActions", "onSecondaryButtonClick", "pictogram", "primaryButtonHref", "primaryButtonIcon", "primaryButtonKind", "primaryButtonPlacement", "primaryButtonText", "productive", "secondaryButtonHref", "secondaryButtonIcon", "secondaryButtonKind", "secondaryButtonText", "title", "titleSize"],
|
20
20
|
_excluded2 = ["id"],
|
21
|
-
_excluded3 = ["id", "icon", "onClick", "iconDescription", "onKeyDown", "href"];
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
_excluded3 = ["id", "icon", "onClick", "iconDescription", "onKeyDown", "href"]; //
|
22
|
+
// Copyright IBM Corp. 2020, 2021
|
23
|
+
//
|
24
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
25
|
+
// LICENSE file in the root directory of this source tree.
|
26
|
+
//
|
27
|
+
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); }
|
28
|
+
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; }
|
29
|
+
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; }
|
30
|
+
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; }
|
26
31
|
var componentName = 'Card';
|
27
32
|
|
28
33
|
// Default values for props
|
@@ -38,7 +43,7 @@ var defaults = {
|
|
38
43
|
secondaryButtonKind: 'secondary',
|
39
44
|
titleSize: 'default'
|
40
45
|
};
|
41
|
-
var Card = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
46
|
+
var Card = exports.Card = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
42
47
|
var _ref$actionIcons = _ref.actionIcons,
|
43
48
|
actionIcons = _ref$actionIcons === void 0 ? defaults.actionIcons : _ref$actionIcons,
|
44
49
|
_ref$actionsPlacement = _ref.actionsPlacement,
|
@@ -151,11 +156,10 @@ var Card = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
151
156
|
return icons;
|
152
157
|
};
|
153
158
|
var getCardProps = function getCardProps() {
|
154
|
-
var _cx;
|
155
159
|
var clickable = hasClickEvent && !productive || hasClickEvent && productive && clickZone === 'one';
|
156
160
|
var cardProps = _objectSpread(_objectSpread({}, rest), {}, {
|
157
161
|
ref: ref,
|
158
|
-
className: (0, _classnames.default)(blockClass, (
|
162
|
+
className: (0, _classnames.default)(blockClass, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(blockClass, "__productive"), productive), "".concat(blockClass, "__clickable"), clickable), "".concat(blockClass, "__media-left"), mediaPosition === 'left'), className)
|
159
163
|
}, clickable && clickableProps);
|
160
164
|
return cardProps;
|
161
165
|
};
|
@@ -219,7 +223,6 @@ var Card = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
219
223
|
className: "".concat(blockClass, "__content-container")
|
220
224
|
}, /*#__PURE__*/_react.default.createElement("div", getHeaderBodyProps(), /*#__PURE__*/_react.default.createElement(_CardHeader.CardHeader, getHeaderProps()), /*#__PURE__*/_react.default.createElement("div", getBodyProps(), children)), hasBottomBar && /*#__PURE__*/_react.default.createElement(_CardFooter.CardFooter, getFooterProps())));
|
221
225
|
});
|
222
|
-
exports.Card = Card;
|
223
226
|
Card.propTypes = {
|
224
227
|
actionIcons: _propTypes.default.arrayOf(_propTypes.default.shape({
|
225
228
|
id: _propTypes.default.string,
|
@@ -25,7 +25,7 @@ var defaults = {
|
|
25
25
|
productive: false,
|
26
26
|
secondaryButtonKind: 'secondary'
|
27
27
|
};
|
28
|
-
var CardFooter = function CardFooter(_ref) {
|
28
|
+
var CardFooter = exports.CardFooter = function CardFooter(_ref) {
|
29
29
|
var _ref$actions = _ref.actions,
|
30
30
|
actions = _ref$actions === void 0 ? defaults.actions : _ref$actions,
|
31
31
|
hasActions = _ref.hasActions,
|
@@ -66,7 +66,6 @@ var CardFooter = function CardFooter(_ref) {
|
|
66
66
|
className: "".concat(blockClass, "__actions")
|
67
67
|
}, actions));
|
68
68
|
};
|
69
|
-
exports.CardFooter = CardFooter;
|
70
69
|
CardFooter.propTypes = {
|
71
70
|
actions: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.node]),
|
72
71
|
hasActions: _propTypes.default.bool,
|
@@ -23,8 +23,7 @@ var defaults = {
|
|
23
23
|
hasActions: false,
|
24
24
|
titleSize: 'default'
|
25
25
|
};
|
26
|
-
var CardHeader = function CardHeader(_ref) {
|
27
|
-
var _cx;
|
26
|
+
var CardHeader = exports.CardHeader = function CardHeader(_ref) {
|
28
27
|
var actions = _ref.actions,
|
29
28
|
noActionIcons = _ref.noActionIcons,
|
30
29
|
onPrimaryButtonClick = _ref.onPrimaryButtonClick,
|
@@ -40,7 +39,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
40
39
|
titleSize = _ref$titleSize === void 0 ? defaults.titleSize : _ref$titleSize;
|
41
40
|
var blockClass = "".concat(_settings.pkg.prefix, "--card");
|
42
41
|
var headerClass = "".concat(blockClass, "__header");
|
43
|
-
var headerClasses = (0, _classnames.default)(headerClass, (
|
42
|
+
var headerClasses = (0, _classnames.default)(headerClass, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(headerClass, "-label-only"), label && !title && !description), "".concat(headerClass, "-has-label"), !!label), "".concat(blockClass, "__title-lg"), titleSize === 'large'));
|
44
43
|
var actionGhostButton = "".concat(blockClass, "__actions-header-ghost-button");
|
45
44
|
var actionGhostButtonClass = (0, _classnames.default)(actionGhostButton, (0, _defineProperty2.default)({}, "".concat(actionGhostButton, "--only"), noActionIcons));
|
46
45
|
return /*#__PURE__*/_react.default.createElement("div", {
|
@@ -65,7 +64,6 @@ var CardHeader = function CardHeader(_ref) {
|
|
65
64
|
className: actionGhostButtonClass
|
66
65
|
}, primaryButtonText))));
|
67
66
|
};
|
68
|
-
exports.CardHeader = CardHeader;
|
69
67
|
CardHeader.propTypes = {
|
70
68
|
actions: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.node]),
|
71
69
|
description: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.node]),
|
@@ -15,8 +15,14 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
var _devtools = require("../../global/js/utils/devtools");
|
16
16
|
var _settings = require("../../settings");
|
17
17
|
var _excluded = ["children", "className", "disableArrowScroll", "fadedEdgeColor", "onChangeIsScrollable", "onScroll"];
|
18
|
-
|
19
|
-
|
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
|
+
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); }
|
25
|
+
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; }
|
20
26
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
21
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--carousel");
|
22
28
|
var componentName = 'Carousel';
|
@@ -44,7 +50,7 @@ var defaults = {
|
|
44
50
|
* 2. From the right-aligned position, when scrolling left,
|
45
51
|
* the left-most item should again be left-aligned.
|
46
52
|
*/
|
47
|
-
var Carousel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
53
|
+
var Carousel = exports.Carousel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
48
54
|
var children = _ref.children,
|
49
55
|
className = _ref.className,
|
50
56
|
_ref$disableArrowScro = _ref.disableArrowScroll,
|
@@ -281,7 +287,6 @@ var Carousel = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
281
287
|
}
|
282
288
|
})));
|
283
289
|
});
|
284
|
-
exports.Carousel = Carousel;
|
285
290
|
Carousel.displayName = componentName;
|
286
291
|
|
287
292
|
// The types and DocGen commentary for the component props,
|
@@ -13,6 +13,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
var _devtools = require("../../global/js/utils/devtools");
|
14
14
|
var _settings = require("../../settings");
|
15
15
|
var _excluded = ["children", "className"];
|
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
|
+
// Other standard imports.
|
16
23
|
// Carbon and package components we use.
|
17
24
|
/* TODO: @import(s) of carbon components and other package components. */
|
18
25
|
|
@@ -23,7 +30,7 @@ var componentName = 'CarouselItem';
|
|
23
30
|
/**
|
24
31
|
* TODO: A description of the component.
|
25
32
|
*/
|
26
|
-
var CarouselItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
33
|
+
var CarouselItem = exports.CarouselItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
27
34
|
var children = _ref.children,
|
28
35
|
className = _ref.className,
|
29
36
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
@@ -33,7 +40,6 @@ var CarouselItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
33
40
|
ref: ref
|
34
41
|
}), children);
|
35
42
|
});
|
36
|
-
exports.CarouselItem = CarouselItem;
|
37
43
|
CarouselItem.displayName = componentName;
|
38
44
|
// The types and DocGen commentary for the component props,
|
39
45
|
// in alphabetical order (for consistency).
|
@@ -14,17 +14,22 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
15
15
|
var _settings = require("../../settings");
|
16
16
|
var _devtools = require("../../global/js/utils/devtools");
|
17
|
-
var _excluded = ["children", "className", "grid"];
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
var _excluded = ["children", "className", "grid"]; //
|
18
|
+
// Copyright IBM Corp. 20201, 2021
|
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
|
+
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); }
|
24
|
+
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
|
+
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; }
|
26
|
+
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; }
|
22
27
|
var blockClass = "".concat(_settings.pkg.prefix, "--cascade");
|
23
28
|
var componentName = 'Cascade';
|
24
29
|
var defaults = {
|
25
30
|
grid: false
|
26
31
|
};
|
27
|
-
var Cascade = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
32
|
+
var Cascade = exports.Cascade = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
28
33
|
var children = _ref.children,
|
29
34
|
className = _ref.className,
|
30
35
|
_ref$grid = _ref.grid,
|
@@ -63,7 +68,6 @@ var Cascade = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
63
68
|
}
|
64
69
|
return /*#__PURE__*/_react.default.createElement("div", props, getModifiedChildren());
|
65
70
|
});
|
66
|
-
exports.Cascade = Cascade;
|
67
71
|
exports.Cascade = Cascade = _settings.pkg.checkComponentEnabled(Cascade, componentName);
|
68
72
|
Cascade.displayName = componentName;
|
69
73
|
Cascade.propTypes = {
|
@@ -21,8 +21,24 @@ var _iconsReact = require("@carbon/icons-react");
|
|
21
21
|
var _ChecklistIcon = require("./ChecklistIcon");
|
22
22
|
var _ChecklistChart = require("./ChecklistChart");
|
23
23
|
var _excluded = ["chartValue", "chartLabel", "checklistAriaLabel", "checklistToggleAriaLabel", "className", "onClickViewAll", "onToggle", "open", "showToggle", "taskLists", "theme", "title", "viewAllLabel"];
|
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
|
+
/**
|
31
|
+
* TODO: Breakdown titles, icons, clickable items into sub-components
|
32
|
+
* See
|
33
|
+
* ModifiedTabs (ModifiedTabLabelNew, ModifiedTabLabelWithClose)
|
34
|
+
* PageHeader (PageHeaderTitle, PageHeaderUtils)
|
35
|
+
*/
|
36
|
+
// Import portions of React that are needed.
|
37
|
+
// Other standard imports.
|
38
|
+
// Carbon and package components we use.
|
39
|
+
/* TODO: @import(s) of carbon components and other package components. */
|
40
|
+
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); }
|
41
|
+
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
42
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
27
43
|
var blockClass = "".concat(_settings.pkg.prefix, "--checklist");
|
28
44
|
var componentName = 'Checklist';
|
@@ -53,7 +69,7 @@ var defaults = {
|
|
53
69
|
/**
|
54
70
|
* TODO: A description of the component.
|
55
71
|
*/
|
56
|
-
var Checklist = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
72
|
+
var Checklist = exports.Checklist = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
57
73
|
var chartValue = _ref.chartValue,
|
58
74
|
chartLabel = _ref.chartLabel,
|
59
75
|
_ref$checklistAriaLab = _ref.checklistAriaLabel,
|
@@ -183,7 +199,6 @@ var Checklist = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
183
199
|
});
|
184
200
|
|
185
201
|
// Return a placeholder if not released and not enabled by feature flag
|
186
|
-
exports.Checklist = Checklist;
|
187
202
|
exports.Checklist = Checklist = _settings.pkg.checkComponentEnabled(Checklist, componentName);
|
188
203
|
|
189
204
|
// The display name of the component, used by React. Note that displayName
|
@@ -14,6 +14,20 @@ var _devtools = require("../../global/js/utils/devtools");
|
|
14
14
|
var _settings = require("../../settings");
|
15
15
|
var _clamp = _interopRequireDefault(require("lodash/clamp"));
|
16
16
|
var _excluded = ["className", "value", "theme"];
|
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
|
+
/**
|
24
|
+
* TODO: Breakdown titles, icons, clickable items into sub-components
|
25
|
+
* See
|
26
|
+
* ModifiedTabs (ModifiedTabLabelNew, ModifiedTabLabelWithClose)
|
27
|
+
* PageHeader (PageHeaderTitle, PageHeaderUtils)
|
28
|
+
*/
|
29
|
+
// Import portions of React that are needed.
|
30
|
+
// Other standard imports.
|
17
31
|
// Carbon and package components we use.
|
18
32
|
/* TODO: @import(s) of carbon components and other package components. */
|
19
33
|
|
@@ -40,7 +54,7 @@ var defaults = {
|
|
40
54
|
/**
|
41
55
|
* TODO: A description of the component.
|
42
56
|
*/
|
43
|
-
var ChecklistChart = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
57
|
+
var ChecklistChart = exports.ChecklistChart = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
44
58
|
var className = _ref.className,
|
45
59
|
value = _ref.value,
|
46
60
|
_ref$theme = _ref.theme,
|
@@ -71,7 +85,6 @@ var ChecklistChart = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
71
85
|
// The types and DocGen commentary for the component props,
|
72
86
|
// in alphabetical order (for consistency).
|
73
87
|
// See https://www.npmjs.com/package/prop-types#usage.
|
74
|
-
exports.ChecklistChart = ChecklistChart;
|
75
88
|
ChecklistChart.propTypes = {
|
76
89
|
/**
|
77
90
|
* Optional class name for this component.
|
@@ -14,6 +14,22 @@ var _devtools = require("../../global/js/utils/devtools");
|
|
14
14
|
var _settings = require("../../settings");
|
15
15
|
var _iconsReact = require("@carbon/icons-react");
|
16
16
|
var _excluded = ["className", "kind", "theme"];
|
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
|
+
/**
|
24
|
+
* TODO: Breakdown titles, icons, clickable items into sub-components
|
25
|
+
* See
|
26
|
+
* ModifiedTabs (ModifiedTabLabelNew, ModifiedTabLabelWithClose)
|
27
|
+
* PageHeader (PageHeaderTitle, PageHeaderUtils)
|
28
|
+
*/
|
29
|
+
// Import portions of React that are needed.
|
30
|
+
// Other standard imports.
|
31
|
+
// Carbon and package components we use.
|
32
|
+
/* TODO: @import(s) of carbon components and other package components. */
|
17
33
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
18
34
|
var blockClass = "".concat(_settings.pkg.prefix, "--checklist__icon");
|
19
35
|
var componentName = 'ChecklistIcon';
|
@@ -37,7 +53,7 @@ var defaults = {
|
|
37
53
|
/**
|
38
54
|
* TODO: A description of the component.
|
39
55
|
*/
|
40
|
-
var ChecklistIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
56
|
+
var ChecklistIcon = exports.ChecklistIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
41
57
|
var className = _ref.className,
|
42
58
|
kind = _ref.kind,
|
43
59
|
_ref$theme = _ref.theme,
|
@@ -75,7 +91,6 @@ var ChecklistIcon = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
75
91
|
// The types and DocGen commentary for the component props,
|
76
92
|
// in alphabetical order (for consistency).
|
77
93
|
// See https://www.npmjs.com/package/prop-types#usage.
|
78
|
-
exports.ChecklistIcon = ChecklistIcon;
|
79
94
|
ChecklistIcon.propTypes = {
|
80
95
|
/**
|
81
96
|
* Provide an optional class to be applied to the containing node.
|
@@ -21,8 +21,14 @@ var _devtools = require("../../global/js/utils/devtools");
|
|
21
21
|
var _settings = require("../../settings");
|
22
22
|
var _lodash = require("lodash");
|
23
23
|
var _excluded = ["align", "children", "className", "onClose", "overlayClassName", "overlayKind", "overlayRef", "portalTarget", "positionTune", "target", "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
|
+
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
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
27
33
|
var blockClass = "".concat(_settings.pkg.prefix, "--coachmark");
|
28
34
|
var overlayBlockClass = "".concat(blockClass, "-overlay");
|
@@ -40,7 +46,7 @@ var defaults = {
|
|
40
46
|
* user to gain understanding of the product's main value and discover new use cases.
|
41
47
|
*/
|
42
48
|
|
43
|
-
var Coachmark = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
49
|
+
var Coachmark = exports.Coachmark = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
44
50
|
var _document$querySelect;
|
45
51
|
var _ref$align = _ref.align,
|
46
52
|
align = _ref$align === void 0 ? defaults.align : _ref$align,
|
@@ -174,7 +180,7 @@ var Coachmark = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
174
180
|
}, /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
|
175
181
|
className: (0, _classnames.default)(blockClass, "".concat(blockClass, "__").concat(theme), className),
|
176
182
|
ref: _coachmarkRef
|
177
|
-
}, rest, (0, _devtools.getDevtoolsProps)(componentName)), target, isOpen && /*#__PURE__*/(0, _reactDom.createPortal)(
|
183
|
+
}, rest, (0, _devtools.getDevtoolsProps)(componentName)), target, isOpen && /*#__PURE__*/(0, _reactDom.createPortal)(/*#__PURE__*/_react.default.createElement(_CoachmarkOverlay.CoachmarkOverlay, {
|
178
184
|
ref: _overlayRef,
|
179
185
|
fixedIsVisible: false,
|
180
186
|
kind: overlayKind,
|
@@ -185,7 +191,6 @@ var Coachmark = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
185
191
|
});
|
186
192
|
|
187
193
|
// Return a placeholder if not released and not enabled by feature flag
|
188
|
-
exports.Coachmark = Coachmark;
|
189
194
|
exports.Coachmark = Coachmark = _settings.pkg.checkComponentEnabled(Coachmark, componentName);
|
190
195
|
|
191
196
|
// The display name of the component, used by React. Note that displayName
|
@@ -17,8 +17,16 @@ var _carbonComponentsReact = require("carbon-components-react");
|
|
17
17
|
var _devtools = require("../../global/js/utils/devtools");
|
18
18
|
var _settings = require("../../settings");
|
19
19
|
var _excluded = ["a11yKeyboardHandler", "closeIconDescription", "onClose", "onDrag", "showCloseButton", "theme"];
|
20
|
-
|
21
|
-
|
20
|
+
/**
|
21
|
+
* Copyright IBM Corp. 2023, 2023
|
22
|
+
*
|
23
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
25
|
+
*/
|
26
|
+
// Import portions of React that are needed.
|
27
|
+
// Other standard imports.
|
28
|
+
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); }
|
29
|
+
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; }
|
22
30
|
// Carbon and package components we use.
|
23
31
|
/* TODO: @import(s) of carbon components and other package components. */
|
24
32
|
|
@@ -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 CoachmarkDragbar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
49
|
+
var CoachmarkDragbar = exports.CoachmarkDragbar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
42
50
|
var a11yKeyboardHandler = _ref.a11yKeyboardHandler,
|
43
51
|
_ref$closeIconDescrip = _ref.closeIconDescription,
|
44
52
|
closeIconDescription = _ref$closeIconDescrip === void 0 ? defaults.closeIconDescription : _ref$closeIconDescrip,
|
@@ -105,7 +113,6 @@ var CoachmarkDragbar = /*#__PURE__*/_react.default.forwardRef(function (_ref, re
|
|
105
113
|
});
|
106
114
|
|
107
115
|
// Return a placeholder if not released and not enabled by feature flag
|
108
|
-
exports.CoachmarkDragbar = CoachmarkDragbar;
|
109
116
|
exports.CoachmarkDragbar = CoachmarkDragbar = _settings.pkg.checkComponentEnabled(CoachmarkDragbar, componentName);
|
110
117
|
|
111
118
|
// The display name of the component, used by React. Note that displayName
|