@carbon/ibm-products 2.12.1 → 2.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +3482 -3232
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -10
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +464 -696
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -4
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +1040 -988
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -8
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +1415 -1431
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -8
- package/css/index.min.css.map +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +7 -5
- package/es/components/APIKeyModal/APIKeyModal.js +7 -5
- package/es/components/Checklist/Checklist.docs-page.js +13 -0
- package/es/components/Checklist/Checklist.js +292 -0
- package/es/components/Checklist/ChecklistChart.js +98 -0
- package/es/components/Checklist/ChecklistIcon.js +107 -0
- package/es/components/Checklist/index.js +8 -0
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +20 -6
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +5 -4
- package/es/components/ImportModal/ImportModal.js +7 -5
- package/es/components/PageHeader/PageHeader.js +1 -1
- package/es/components/index.js +2 -1
- package/es/global/js/hooks/useCreateComponentFocus.js +7 -5
- package/es/global/js/hooks/useCreateComponentStepChange.js +28 -17
- package/es/global/js/package-settings.js +4 -2
- package/es/global/js/utils/story-helper.js +2 -1
- package/es/global/js/utils/test-helper.js +28 -17
- package/lib/components/APIKeyModal/APIKeyDownloader.js +10 -9
- package/lib/components/APIKeyModal/APIKeyModal.docs-page.js +3 -4
- package/lib/components/APIKeyModal/APIKeyModal.js +10 -9
- package/lib/components/AboutModal/AboutModal.docs-page.js +3 -4
- package/lib/components/AboutModal/AboutModal.js +3 -4
- package/lib/components/ActionBar/ActionBar.js +3 -4
- package/lib/components/ActionBar/ActionBarItem.js +1 -2
- package/lib/components/ActionBar/ActionBarOverflowItems.js +3 -4
- package/lib/components/ActionSet/ActionSet.js +1 -2
- package/lib/components/ActionSet/actions.js +4 -7
- package/lib/components/AddSelect/AddSelect.js +3 -4
- package/lib/components/AddSelect/AddSelectBody.js +3 -4
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +1 -2
- package/lib/components/AddSelect/AddSelectColumn.js +3 -4
- package/lib/components/AddSelect/AddSelectFilter.js +3 -4
- package/lib/components/AddSelect/AddSelectFormControl.js +1 -2
- package/lib/components/AddSelect/AddSelectList.js +1 -2
- package/lib/components/AddSelect/AddSelectMetaPanel.js +3 -4
- package/lib/components/AddSelect/AddSelectRow.js +3 -4
- package/lib/components/AddSelect/AddSelectSidebar.js +1 -2
- package/lib/components/AddSelect/AddSelectSort.js +1 -2
- package/lib/components/AddSelect/add-select-utils.js +5 -9
- package/lib/components/AddSelect/hooks/useFocus.js +1 -2
- 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 +1 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +3 -4
- package/lib/components/ButtonMenu/ButtonMenu.js +1 -2
- package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -4
- package/lib/components/Card/Card.js +3 -4
- package/lib/components/Card/CardFooter.js +1 -2
- package/lib/components/Card/CardHeader.js +1 -2
- package/lib/components/Cascade/Cascade.docs-page.js +3 -4
- package/lib/components/Cascade/Cascade.js +3 -4
- package/lib/components/Checklist/Checklist.docs-page.js +23 -0
- package/lib/components/Checklist/Checklist.js +297 -0
- package/lib/components/Checklist/ChecklistChart.js +99 -0
- package/lib/components/Checklist/ChecklistIcon.js +109 -0
- package/lib/components/Checklist/index.js +12 -0
- package/lib/components/ComboButton/ComboButton.js +3 -4
- package/lib/components/ComboButton/ComboButtonItem/index.js +1 -2
- package/lib/components/CreateFullPage/CreateFullPage.docs-page.js +3 -4
- package/lib/components/CreateFullPage/CreateFullPage.js +5 -8
- package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -4
- package/lib/components/CreateInfluencer/CreateInfluencer.js +1 -2
- package/lib/components/CreateModal/CreateModal.docs-page.js +3 -4
- package/lib/components/CreateModal/CreateModal.js +1 -2
- package/lib/components/CreateSidePanel/CreateSidePanel.docs-page.js +3 -4
- package/lib/components/CreateSidePanel/CreateSidePanel.js +1 -2
- package/lib/components/CreateTearsheet/CreateTearsheet.docs-page.js +3 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +5 -8
- package/lib/components/CreateTearsheet/CreateTearsheetDivider.js +3 -4
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +3 -4
- package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +4 -5
- package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +4 -5
- package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.js +1 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +3 -4
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +3 -4
- 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 +2 -3
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseMove.js +2 -3
- package/lib/components/DataSpreadsheet/hooks/useSpreadsheetMouseUp.js +2 -3
- 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 +2 -3
- package/lib/components/DataSpreadsheet/utils/createActiveCellFn.js +2 -3
- package/lib/components/DataSpreadsheet/utils/createCellSelectionArea.js +2 -3
- package/lib/components/DataSpreadsheet/utils/generateData.js +2 -3
- 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 +2 -3
- package/lib/components/DataSpreadsheet/utils/handleActiveCellInSelectionTab.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleCellDeletion.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleEditSubmit.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleHeaderCellSelection.js +2 -3
- package/lib/components/DataSpreadsheet/utils/handleMultipleKeys.js +4 -7
- 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 +2 -3
- package/lib/components/Datagrid/Datagrid/Datagrid.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +3 -4
- 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 +3 -4
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -5
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +3 -4
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +4 -5
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -4
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/common.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +5 -8
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/constants.js +13 -26
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +4 -6
- 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 +1 -2
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +3 -4
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/InlineEditContext.js +4 -6
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/getCellIdAsObject.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditContext/returnUpdatedActiveCell.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridFocus.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleGridKeyPress.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/InlineEdit/handleMultipleKeys.js +2 -3
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +26 -13
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +9 -6
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +5 -9
- package/lib/components/Datagrid/Datagrid.docs-page.js +4 -5
- 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 +4 -7
- package/lib/components/Datagrid/Extensions/ColumnAlignment/ColumnAlignment.docs-page.js +2 -3
- package/lib/components/Datagrid/Extensions/ColumnCustomization/ColumnCustomization.docs-page.js +2 -3
- package/lib/components/Datagrid/Extensions/EditableCell/EditableCell.docs-page.js +2 -3
- package/lib/components/Datagrid/Extensions/ExpandableRow/ExpandableRow.docs-page.js +2 -3
- package/lib/components/Datagrid/Extensions/Filtering/Filtering.docs-page.js +2 -3
- package/lib/components/Datagrid/Extensions/RowActionButtons/RowActionButtons.docs-page.js +2 -3
- package/lib/components/Datagrid/common-column-ids.js +1 -2
- package/lib/components/Datagrid/useActionsColumn.js +3 -4
- package/lib/components/Datagrid/useColumnCenterAlign.js +1 -2
- package/lib/components/Datagrid/useColumnOrder.js +1 -2
- package/lib/components/Datagrid/useColumnRightAlign.js +1 -2
- package/lib/components/Datagrid/useCustomizeColumns.js +3 -4
- package/lib/components/Datagrid/useDatagrid.js +1 -2
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/lib/components/Datagrid/useDisableSelectRows.js +1 -2
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useExpandedRow.js +1 -2
- package/lib/components/Datagrid/useFiltering.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +1 -2
- package/lib/components/Datagrid/useInfiniteScroll.js +1 -2
- package/lib/components/Datagrid/useInlineEdit.js +3 -4
- package/lib/components/Datagrid/useNestedRowExpander.js +3 -4
- package/lib/components/Datagrid/useNestedRows.js +1 -2
- 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 +3 -4
- package/lib/components/Datagrid/useRowIsMouseOver.js +1 -2
- package/lib/components/Datagrid/useRowRenderer.js +1 -2
- package/lib/components/Datagrid/useRowSize.js +1 -2
- package/lib/components/Datagrid/useSelectAllToggle.js +3 -4
- package/lib/components/Datagrid/useSelectRows.js +3 -4
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/Datagrid/useSortableColumns.js +1 -2
- package/lib/components/Datagrid/useStickyColumn.js +1 -2
- package/lib/components/Datagrid/utils/DatagridActions.js +4 -5
- package/lib/components/Datagrid/utils/DatagridPagination.js +2 -3
- package/lib/components/Datagrid/utils/Wrapper.js +2 -3
- 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/makeData.js +3 -6
- package/lib/components/EditFullPage/EditFullPage.docs-page.js +3 -4
- package/lib/components/EditFullPage/EditFullPage.js +1 -2
- package/lib/components/EditInPlace/EditInPlace.js +4 -6
- package/lib/components/EditSidePanel/EditSidePanel.js +1 -2
- package/lib/components/EditTearsheet/EditTearsheet.docs-page.js +3 -4
- package/lib/components/EditTearsheet/EditTearsheet.js +5 -8
- package/lib/components/EditTearsheet/EditTearsheetForm.js +3 -4
- package/lib/components/EditTearsheet/preview-components/MultiFormEditTearsheet.js +4 -5
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +1 -2
- package/lib/components/EditUpdateCards/EditUpdateCards.js +1 -2
- package/lib/components/EmptyStates/EmptyState.js +2 -4
- package/lib/components/EmptyStates/EmptyStateContent.js +1 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -2
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -2
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -2
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -2
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +1 -2
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +1 -2
- package/lib/components/ExampleComponent/ExampleComponent.docs-page.js +3 -4
- package/lib/components/ExampleComponent/ExampleComponent.js +3 -4
- package/lib/components/ExampleComponent/ExampleDeprecatedComponent.js +1 -2
- package/lib/components/ExampleComponent/useExample.js +1 -2
- package/lib/components/ExportModal/ExportModal.js +3 -4
- package/lib/components/ExpressiveCard/ExpressiveCard.js +3 -4
- package/lib/components/FilterSummary/FilterSummary.js +1 -2
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -2
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -2
- package/lib/components/HTTPErrors/HTTPErrorContent.js +1 -2
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -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.docs-page.js +1 -2
- package/lib/components/ImportModal/ImportModal.js +10 -9
- package/lib/components/MultiAddSelect/MultiAddSelect.docs-page.js +1 -2
- package/lib/components/MultiAddSelect/MultiAddSelect.js +3 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -4
- 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 +3 -4
- package/lib/components/PageHeader/PageHeader.js +5 -7
- package/lib/components/PageHeader/PageHeaderDemo.data.js +3 -4
- package/lib/components/PageHeader/PageHeaderTitle.js +2 -4
- package/lib/components/PageHeader/PageHeaderUtils.js +5 -9
- package/lib/components/ProductiveCard/ProductiveCard.js +3 -4
- package/lib/components/RemoveModal/RemoveModal.docs-page.js +1 -2
- package/lib/components/RemoveModal/RemoveModal.js +3 -4
- package/lib/components/Saving/Saving.js +3 -4
- package/lib/components/SidePanel/SidePanel.js +3 -4
- package/lib/components/SidePanel/constants.js +2 -3
- package/lib/components/SidePanel/motion/variants.js +3 -5
- package/lib/components/SimpleHeader/SimpleHeader.docs-page.js +3 -4
- package/lib/components/SimpleHeader/SimpleHeader.js +4 -6
- package/lib/components/SingleAddSelect/SingleAddSelect.docs-page.js +1 -2
- package/lib/components/SingleAddSelect/SingleAddSelect.js +3 -4
- package/lib/components/StatusIcon/StatusIcon.docs-page.js +3 -4
- package/lib/components/StatusIcon/StatusIcon.js +3 -4
- package/lib/components/TagSet/TagSet.js +5 -8
- package/lib/components/TagSet/TagSetModal.js +3 -4
- package/lib/components/TagSet/TagSetOverflow.js +3 -4
- package/lib/components/TagSet/constants.js +2 -3
- package/lib/components/Tearsheet/Tearsheet.js +2 -4
- package/lib/components/Tearsheet/TearsheetNarrow.js +2 -4
- package/lib/components/Tearsheet/TearsheetShell.js +8 -14
- package/lib/components/Toolbar/Toolbar.docs-page.js +3 -4
- package/lib/components/Toolbar/Toolbar.js +6 -10
- package/lib/components/Toolbar/ToolbarButton.js +4 -6
- package/lib/components/Toolbar/ToolbarGroup.js +3 -4
- package/lib/components/TooltipTrigger/TooltipTrigger.js +1 -2
- package/lib/components/TooltipTrigger/useExample.js +1 -2
- package/lib/components/UserProfileImage/UserProfileImage.docs-page.js +3 -4
- package/lib/components/UserProfileImage/UserProfileImage.js +1 -2
- package/lib/components/WebTerminal/WebTerminal.docs-page.js +3 -4
- package/lib/components/WebTerminal/WebTerminal.js +3 -4
- package/lib/components/WebTerminal/WebTerminalContentWrapper.js +1 -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 +1 -2
- package/lib/components/index.js +8 -1
- package/lib/global/decorators/sidePanelDecorator.js +2 -3
- 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 +9 -8
- package/lib/global/js/hooks/useCreateComponentStepChange.js +30 -20
- package/lib/global/js/hooks/usePortalTarget.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/useRetrieveFormTitles.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 +2 -3
- package/lib/global/js/package-settings.js +6 -5
- package/lib/global/js/utils/ClickListener.js +3 -4
- package/lib/global/js/utils/DisplayBox.js +1 -2
- package/lib/global/js/utils/StoryDocsPage.js +2 -4
- package/lib/global/js/utils/Wrap.js +1 -2
- package/lib/global/js/utils/deepCloneObject.js +2 -3
- 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 +2 -3
- 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 +4 -5
- package/lib/global/js/utils/pconsole.js +8 -15
- package/lib/global/js/utils/props-helper.js +7 -14
- package/lib/global/js/utils/rangeWithCallback.js +2 -3
- package/lib/global/js/utils/scrollableAncestor.js +2 -3
- package/lib/global/js/utils/story-helper.js +15 -26
- package/lib/global/js/utils/test-helper.js +39 -42
- package/lib/global/js/utils/unwrap-if-fragment.js +1 -2
- 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 +6 -6
- package/scss/components/AboutModal/_about-modal.scss +1 -2
- package/scss/components/Checklist/_checklist.scss +217 -0
- package/scss/components/Checklist/_index.scss +8 -0
- package/scss/components/Checklist/_storybook-styles.scss +13 -0
- package/scss/components/CreateFullPage/_storybook-styles.scss +1 -1
- package/scss/components/Datagrid/_datagrid.scss +1 -0
- package/scss/components/Datagrid/styles/_datagrid.scss +1 -2
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +5 -0
- package/scss/components/_index.scss +2 -1
@@ -23,10 +23,9 @@ export var useCreateComponentFocus = function useCreateComponentFocus(_ref) {
|
|
23
23
|
}
|
24
24
|
}, [onMount]);
|
25
25
|
useEffect(function () {
|
26
|
-
var _ref2;
|
27
26
|
// because of how handleStackChange.claimFocus in TearsheetShell works a timeout is required to focus on specific elements
|
28
|
-
var awaitFocus = function
|
29
|
-
|
27
|
+
var awaitFocus = /*#__PURE__*/function () {
|
28
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(elm) {
|
30
29
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
31
30
|
while (1) switch (_context.prev = _context.next) {
|
32
31
|
case 0:
|
@@ -39,8 +38,11 @@ export var useCreateComponentFocus = function useCreateComponentFocus(_ref) {
|
|
39
38
|
return _context.stop();
|
40
39
|
}
|
41
40
|
}, _callee);
|
42
|
-
}))
|
43
|
-
|
41
|
+
}));
|
42
|
+
return function awaitFocus(_x) {
|
43
|
+
return _ref2.apply(this, arguments);
|
44
|
+
};
|
45
|
+
}();
|
44
46
|
if ((previousState === null || previousState === void 0 ? void 0 : previousState.currentStep) !== currentStep && currentStep > 0) {
|
45
47
|
if (firstFocusElement) {
|
46
48
|
var elm = document.querySelector(firstFocusElement);
|
@@ -64,7 +64,6 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
64
64
|
|
65
65
|
// useEffect to handle multi step logic
|
66
66
|
useEffect(function () {
|
67
|
-
var _ref2, _ref3, _ref4, _ref5;
|
68
67
|
var onUnmount = function onUnmount() {
|
69
68
|
if (componentName !== 'CreateFullPage') {
|
70
69
|
setCurrentStep(0);
|
@@ -72,8 +71,8 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
72
71
|
setIsSubmitting(false);
|
73
72
|
onClose();
|
74
73
|
};
|
75
|
-
var handleOnRequestSubmit = function
|
76
|
-
|
74
|
+
var handleOnRequestSubmit = /*#__PURE__*/function () {
|
75
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
77
76
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
78
77
|
while (1) switch (_context.prev = _context.next) {
|
79
78
|
case 0:
|
@@ -94,10 +93,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
94
93
|
return _context.stop();
|
95
94
|
}
|
96
95
|
}, _callee, null, [[0, 6]]);
|
97
|
-
}))
|
98
|
-
|
99
|
-
|
100
|
-
|
96
|
+
}));
|
97
|
+
return function handleOnRequestSubmit() {
|
98
|
+
return _ref2.apply(this, arguments);
|
99
|
+
};
|
100
|
+
}();
|
101
|
+
var handlePrevious = /*#__PURE__*/function () {
|
102
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
|
101
103
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
102
104
|
while (1) switch (_context2.prev = _context2.next) {
|
103
105
|
case 0:
|
@@ -127,10 +129,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
127
129
|
return _context2.stop();
|
128
130
|
}
|
129
131
|
}, _callee2, null, [[2, 8]]);
|
130
|
-
}))
|
131
|
-
|
132
|
-
|
133
|
-
|
132
|
+
}));
|
133
|
+
return function handlePrevious() {
|
134
|
+
return _ref3.apply(this, arguments);
|
135
|
+
};
|
136
|
+
}();
|
137
|
+
var handleNext = /*#__PURE__*/function () {
|
138
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
134
139
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
135
140
|
while (1) switch (_context3.prev = _context3.next) {
|
136
141
|
case 0:
|
@@ -161,10 +166,13 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
161
166
|
return _context3.stop();
|
162
167
|
}
|
163
168
|
}, _callee3, null, [[2, 8]]);
|
164
|
-
}))
|
165
|
-
|
166
|
-
|
167
|
-
|
169
|
+
}));
|
170
|
+
return function handleNext() {
|
171
|
+
return _ref4.apply(this, arguments);
|
172
|
+
};
|
173
|
+
}();
|
174
|
+
var handleSubmit = /*#__PURE__*/function () {
|
175
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
168
176
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
169
177
|
while (1) switch (_context4.prev = _context4.next) {
|
170
178
|
case 0:
|
@@ -199,8 +207,11 @@ export var useCreateComponentStepChange = function useCreateComponentStepChange(
|
|
199
207
|
return _context4.stop();
|
200
208
|
}
|
201
209
|
}, _callee4, null, [[2, 9]]);
|
202
|
-
}))
|
203
|
-
|
210
|
+
}));
|
211
|
+
return function handleSubmit() {
|
212
|
+
return _ref5.apply(this, arguments);
|
213
|
+
};
|
214
|
+
}();
|
204
215
|
if ((stepData === null || stepData === void 0 ? void 0 : stepData.length) > 0) {
|
205
216
|
var buttons = [];
|
206
217
|
if ((stepData === null || stepData === void 0 ? void 0 : stepData.length) > 1) {
|
@@ -68,10 +68,12 @@ var defaults = {
|
|
68
68
|
EditTearsheetForm: false,
|
69
69
|
EditTearsheetNarrow: false,
|
70
70
|
EditFullPage: false,
|
71
|
-
EditUpdateCards: false
|
71
|
+
EditUpdateCards: false,
|
72
72
|
/* new component flags here - comment used by generate CLI */
|
73
|
-
},
|
74
73
|
|
74
|
+
// Novice to pro components not yet reviewed and released:
|
75
|
+
Checklist: false
|
76
|
+
},
|
75
77
|
// feature level flags
|
76
78
|
feature: {
|
77
79
|
'default-portal-target-body': true,
|
@@ -205,6 +205,7 @@ export var storyDocsGuidelines = function storyDocsGuidelines(csfFile) {
|
|
205
205
|
* @returns "dark" or "light"
|
206
206
|
*/
|
207
207
|
export var getSelectedCarbonTheme = function getSelectedCarbonTheme() {
|
208
|
-
var
|
208
|
+
var _document$querySelect;
|
209
|
+
var themeId = (_document$querySelect = document.querySelector('[storybook-carbon-theme]')) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.getAttribute('storybook-carbon-theme');
|
209
210
|
return themeId === 'g90' || themeId === 'g100' ? 'dark' : 'light';
|
210
211
|
};
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
3
|
-
var _ref, _ref2, _ref4, _ref5;
|
4
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
5
4
|
//
|
6
5
|
// Copyright IBM Corp. 2021, 2021
|
@@ -133,8 +132,8 @@ export var expectWarn = function expectWarn(message, test) {
|
|
133
132
|
* An async version of expectWarn which awaits the test function and expects the call
|
134
133
|
* to console.warn to have been made.
|
135
134
|
*/
|
136
|
-
export var expectWarnAsync = function
|
137
|
-
|
135
|
+
export var expectWarnAsync = /*#__PURE__*/function () {
|
136
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(message, test) {
|
138
137
|
var _expect;
|
139
138
|
var warn;
|
140
139
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
@@ -152,8 +151,11 @@ export var expectWarnAsync = function expectWarnAsync(_x, _x2) {
|
|
152
151
|
return _context.stop();
|
153
152
|
}
|
154
153
|
}, _callee);
|
155
|
-
}))
|
156
|
-
|
154
|
+
}));
|
155
|
+
return function expectWarnAsync(_x, _x2) {
|
156
|
+
return _ref.apply(this, arguments);
|
157
|
+
};
|
158
|
+
}();
|
157
159
|
|
158
160
|
/**
|
159
161
|
* A helper function to enable a test to expect multiple calls to
|
@@ -169,8 +171,8 @@ export var expectWarnAsync = function expectWarnAsync(_x, _x2) {
|
|
169
171
|
* @param {Function} test the test function to call, during which the calls to
|
170
172
|
* console.warn will be expected.
|
171
173
|
*/
|
172
|
-
export var expectMultipleWarn = function
|
173
|
-
|
174
|
+
export var expectMultipleWarn = /*#__PURE__*/function () {
|
175
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(messages, test) {
|
174
176
|
var warn, result;
|
175
177
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
176
178
|
while (1) switch (_context2.prev = _context2.next) {
|
@@ -192,8 +194,11 @@ export var expectMultipleWarn = function expectMultipleWarn(_x3, _x4) {
|
|
192
194
|
return _context2.stop();
|
193
195
|
}
|
194
196
|
}, _callee2);
|
195
|
-
}))
|
196
|
-
|
197
|
+
}));
|
198
|
+
return function expectMultipleWarn(_x3, _x4) {
|
199
|
+
return _ref2.apply(this, arguments);
|
200
|
+
};
|
201
|
+
}();
|
197
202
|
export var checkLogging = function checkLogging(mockedThing, message) {
|
198
203
|
if (message) {
|
199
204
|
expect(mockedThing).toBeCalled();
|
@@ -215,8 +220,8 @@ export var checkLogging = function checkLogging(mockedThing, message) {
|
|
215
220
|
* @param {Function} test the test function to call, during which the call to
|
216
221
|
* console.error will be expected.
|
217
222
|
*/
|
218
|
-
export var expectLogging = function
|
219
|
-
|
223
|
+
export var expectLogging = /*#__PURE__*/function () {
|
224
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(_ref3, test) {
|
220
225
|
var errors, warnings, error, warn, result;
|
221
226
|
return _regeneratorRuntime.wrap(function _callee3$(_context3) {
|
222
227
|
while (1) switch (_context3.prev = _context3.next) {
|
@@ -238,8 +243,11 @@ export var expectLogging = function expectLogging(_x5, _x6) {
|
|
238
243
|
return _context3.stop();
|
239
244
|
}
|
240
245
|
}, _callee3);
|
241
|
-
}))
|
242
|
-
|
246
|
+
}));
|
247
|
+
return function expectLogging(_x5, _x6) {
|
248
|
+
return _ref4.apply(this, arguments);
|
249
|
+
};
|
250
|
+
}();
|
243
251
|
|
244
252
|
/**
|
245
253
|
* A helper function to enable a test to expect a single call to
|
@@ -276,8 +284,8 @@ export var expectError = function expectError(message, test) {
|
|
276
284
|
* @param {Function} test the test function to call, during which the calls to
|
277
285
|
* console.error will be expected.
|
278
286
|
*/
|
279
|
-
export var expectMultipleError = function
|
280
|
-
|
287
|
+
export var expectMultipleError = /*#__PURE__*/function () {
|
288
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(messages, test) {
|
281
289
|
var error, result;
|
282
290
|
return _regeneratorRuntime.wrap(function _callee4$(_context4) {
|
283
291
|
while (1) switch (_context4.prev = _context4.next) {
|
@@ -304,8 +312,11 @@ export var expectMultipleError = function expectMultipleError(_x7, _x8) {
|
|
304
312
|
return _context4.stop();
|
305
313
|
}
|
306
314
|
}, _callee4);
|
307
|
-
}))
|
308
|
-
|
315
|
+
}));
|
316
|
+
return function expectMultipleError(_x7, _x8) {
|
317
|
+
return _ref5.apply(this, arguments);
|
318
|
+
};
|
319
|
+
}();
|
309
320
|
|
310
321
|
/**
|
311
322
|
* Return an expect matcher for a prop deprecation, suitable to pass to expectWarn
|
@@ -13,8 +13,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
15
15
|
var _settings = require("../../settings");
|
16
|
-
function _getRequireWildcardCache(
|
17
|
-
function _interopRequireWildcard(
|
16
|
+
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); }
|
17
|
+
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 && Object.prototype.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; }
|
18
18
|
/**
|
19
19
|
* Copyright IBM Corp. 2021, 2021
|
20
20
|
*
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
23
23
|
*/
|
24
24
|
|
25
25
|
var componentName = 'APIKeyDownloader';
|
26
|
-
var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
26
|
+
var APIKeyDownloader = exports.APIKeyDownloader = function APIKeyDownloader(_ref) {
|
27
27
|
var apiKey = _ref.apiKey,
|
28
28
|
body = _ref.body,
|
29
29
|
fileName = _ref.fileName,
|
@@ -34,9 +34,8 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
|
34
34
|
linkProps = _useState2[0],
|
35
35
|
setLinkProps = _useState2[1];
|
36
36
|
(0, _react.useEffect)(function () {
|
37
|
-
var
|
38
|
-
|
39
|
-
return (_ref2 = _ref2 || (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
37
|
+
var generateLinkProps = /*#__PURE__*/function () {
|
38
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
40
39
|
var data, blob, href, download, props;
|
41
40
|
return _regenerator.default.wrap(function _callee$(_context) {
|
42
41
|
while (1) switch (_context.prev = _context.next) {
|
@@ -62,8 +61,11 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
|
62
61
|
return _context.stop();
|
63
62
|
}
|
64
63
|
}, _callee);
|
65
|
-
}))
|
66
|
-
|
64
|
+
}));
|
65
|
+
return function generateLinkProps() {
|
66
|
+
return _ref2.apply(this, arguments);
|
67
|
+
};
|
68
|
+
}();
|
67
69
|
generateLinkProps();
|
68
70
|
}, [apiKey, fileName, fileType]);
|
69
71
|
return /*#__PURE__*/_react.default.createElement("div", {
|
@@ -74,7 +76,6 @@ var APIKeyDownloader = function APIKeyDownloader(_ref) {
|
|
74
76
|
className: "".concat(_settings.pkg.prefix, "--apikey-modal__download-link")
|
75
77
|
}), linkText)));
|
76
78
|
};
|
77
|
-
exports.APIKeyDownloader = APIKeyDownloader;
|
78
79
|
APIKeyDownloader.displayName = componentName;
|
79
80
|
APIKeyDownloader.propTypes = {
|
80
81
|
/**
|
@@ -11,8 +11,8 @@ var _StoryDocsPage = require("../../global/js/utils/StoryDocsPage");
|
|
11
11
|
var _blocks = require("@storybook/blocks");
|
12
12
|
var _storyHelper = require("../../global/js/utils/story-helper");
|
13
13
|
var stories = _interopRequireWildcard(require("./APIKeyModal.stories"));
|
14
|
-
function _getRequireWildcardCache(
|
15
|
-
function _interopRequireWildcard(
|
14
|
+
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); }
|
15
|
+
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 && Object.prototype.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; }
|
16
16
|
var DocsPage = function DocsPage() {
|
17
17
|
var _useOf = (0, _blocks.useOf)('meta', ['meta']),
|
18
18
|
csfFile = _useOf.csfFile;
|
@@ -33,5 +33,4 @@ var DocsPage = function DocsPage() {
|
|
33
33
|
}]
|
34
34
|
});
|
35
35
|
};
|
36
|
-
var _default = DocsPage;
|
37
|
-
exports.default = _default;
|
36
|
+
var _default = exports.default = DocsPage;
|
@@ -29,8 +29,8 @@ var _excluded = ["apiKey", "apiKeyLabel", "apiKeyName", "body", "className", "cl
|
|
29
29
|
// This source code is licensed under the Apache-2.0 license found in the
|
30
30
|
// LICENSE file in the root directory of this source tree.
|
31
31
|
//
|
32
|
-
function _getRequireWildcardCache(
|
33
|
-
function _interopRequireWildcard(
|
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 && Object.prototype.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; }
|
34
34
|
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; }
|
35
35
|
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; }
|
36
36
|
var componentName = 'APIKeyModal';
|
@@ -40,8 +40,7 @@ var defaults = {
|
|
40
40
|
apiKeyName: '',
|
41
41
|
customSteps: Object.freeze([])
|
42
42
|
};
|
43
|
-
var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
44
|
-
var _ref2;
|
43
|
+
var APIKeyModal = exports.APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
45
44
|
var apiKey = _ref.apiKey,
|
46
45
|
apiKeyLabel = _ref.apiKeyLabel,
|
47
46
|
_ref$apiKeyName = _ref.apiKeyName,
|
@@ -176,8 +175,8 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
176
175
|
setCurrentStep(0);
|
177
176
|
onClose();
|
178
177
|
};
|
179
|
-
var submitHandler = function
|
180
|
-
|
178
|
+
var submitHandler = /*#__PURE__*/function () {
|
179
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
181
180
|
return _regenerator.default.wrap(function _callee$(_context) {
|
182
181
|
while (1) switch (_context.prev = _context.next) {
|
183
182
|
case 0:
|
@@ -227,8 +226,11 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
227
226
|
return _context.stop();
|
228
227
|
}
|
229
228
|
}, _callee, null, [[10, 15]]);
|
230
|
-
}))
|
231
|
-
|
229
|
+
}));
|
230
|
+
return function submitHandler(_x) {
|
231
|
+
return _ref2.apply(this, arguments);
|
232
|
+
};
|
233
|
+
}();
|
232
234
|
var onBackHandler = function onBackHandler() {
|
233
235
|
if (hasPreviousStep && !apiKeyLoaded) {
|
234
236
|
setCurrentStep(currentStep - 1);
|
@@ -313,7 +315,6 @@ var APIKeyModal = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
313
315
|
disabled: isPrimaryButtonDisabled()
|
314
316
|
}), getPrimaryButtonText()))));
|
315
317
|
});
|
316
|
-
exports.APIKeyModal = APIKeyModal;
|
317
318
|
var customStepsRequiredProps = function customStepsRequiredProps(type) {
|
318
319
|
return (0, _propsHelper.isRequiredIf)(type, function (_ref3) {
|
319
320
|
var customSteps = _ref3.customSteps;
|
@@ -9,8 +9,8 @@ exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
10
10
|
var _StoryDocsPage = require("../../global/js/utils/StoryDocsPage");
|
11
11
|
var stories = _interopRequireWildcard(require("./AboutModal.stories"));
|
12
|
-
function _getRequireWildcardCache(
|
13
|
-
function _interopRequireWildcard(
|
12
|
+
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); }
|
13
|
+
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 && Object.prototype.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; }
|
14
14
|
var DocsPage = function DocsPage() {
|
15
15
|
return /*#__PURE__*/_react.default.createElement(_StoryDocsPage.StoryDocsPage, {
|
16
16
|
guidelinesHref: "https://pages.github.ibm.com/cdai-design/pal/patterns/about-modal/usage",
|
@@ -28,5 +28,4 @@ var DocsPage = function DocsPage() {
|
|
28
28
|
}]
|
29
29
|
});
|
30
30
|
};
|
31
|
-
var _default = DocsPage;
|
32
|
-
exports.default = _default;
|
31
|
+
var _default = exports.default = DocsPage;
|
@@ -29,8 +29,8 @@ var _excluded = ["additionalInfo", "className", "closeIconDescription", "copyrig
|
|
29
29
|
// Import portions of React that are needed.
|
30
30
|
// Other standard imports.
|
31
31
|
// Carbon and package components we use.
|
32
|
-
function _getRequireWildcardCache(
|
33
|
-
function _interopRequireWildcard(
|
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 && Object.prototype.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; }
|
34
34
|
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; }
|
35
35
|
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; }
|
36
36
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -46,7 +46,7 @@ var componentName = 'AboutModal';
|
|
46
46
|
* should be immediately apparent to the user, with a clear and obvious path
|
47
47
|
* to completion.
|
48
48
|
*/
|
49
|
-
var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
49
|
+
var AboutModal = exports.AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
50
50
|
var additionalInfo = _ref.additionalInfo,
|
51
51
|
className = _ref.className,
|
52
52
|
closeIconDescription = _ref.closeIconDescription,
|
@@ -133,7 +133,6 @@ var AboutModal = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
133
133
|
});
|
134
134
|
|
135
135
|
// Return a placeholder if not released and not enabled by feature flag
|
136
|
-
exports.AboutModal = AboutModal;
|
137
136
|
exports.AboutModal = AboutModal = _settings.pkg.checkComponentEnabled(AboutModal, componentName);
|
138
137
|
AboutModal.displayName = componentName;
|
139
138
|
|
@@ -31,8 +31,8 @@ var _excluded = ["actions", "className", "maxVisible", "menuOptionsClass", "onWi
|
|
31
31
|
// Import portions of React that are needed.
|
32
32
|
// Other standard imports.
|
33
33
|
// Carbon and package components we use.
|
34
|
-
function _getRequireWildcardCache(
|
35
|
-
function _interopRequireWildcard(
|
34
|
+
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); }
|
35
|
+
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 && Object.prototype.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; }
|
36
36
|
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; }
|
37
37
|
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; }
|
38
38
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
@@ -44,7 +44,7 @@ var componentName = 'ActionBar';
|
|
44
44
|
/**
|
45
45
|
* The ActionBar is used internally by the PageHeader to wrap ActionBarItems.
|
46
46
|
*/
|
47
|
-
var ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
47
|
+
var ActionBar = exports.ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
48
48
|
var actions = _ref.actions,
|
49
49
|
className = _ref.className,
|
50
50
|
maxVisible = _ref.maxVisible,
|
@@ -202,7 +202,6 @@ var ActionBar = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
202
202
|
className: (0, _classnames.default)(["".concat(blockClass, "__displayed-items"), (0, _defineProperty2.default)({}, "".concat(blockClass, "__displayed-items--right"), rightAlign)])
|
203
203
|
}, displayedItems));
|
204
204
|
});
|
205
|
-
exports.ActionBar = ActionBar;
|
206
205
|
ActionBar.displayName = componentName;
|
207
206
|
ActionBar.propTypes = {
|
208
207
|
/**
|
@@ -32,7 +32,7 @@ var blockClass = "".concat(_settings.pkg.prefix, "--action-bar-item");
|
|
32
32
|
/**
|
33
33
|
* The ActionBarItem is used in the page header to populate the action bar
|
34
34
|
*/
|
35
|
-
var ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
35
|
+
var ActionBarItem = exports.ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
36
36
|
var label = _ref.label,
|
37
37
|
className = _ref.className,
|
38
38
|
renderIcon = _ref.renderIcon,
|
@@ -50,7 +50,6 @@ var ActionBarItem = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref)
|
|
50
50
|
});
|
51
51
|
|
52
52
|
// Return a placeholder if not released and not enabled by feature flag
|
53
|
-
exports.ActionBarItem = ActionBarItem;
|
54
53
|
exports.ActionBarItem = ActionBarItem = _settings.pkg.checkComponentEnabled(ActionBarItem, componentName);
|
55
54
|
|
56
55
|
// Props the user cannot change
|
@@ -12,8 +12,8 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
12
|
var _react2 = require("@carbon/react");
|
13
13
|
var _uuidv = _interopRequireDefault(require("../../global/js/utils/uuidv4"));
|
14
14
|
var _settings = require("../../settings");
|
15
|
-
function _getRequireWildcardCache(
|
16
|
-
function _interopRequireWildcard(
|
15
|
+
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); }
|
16
|
+
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 && Object.prototype.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; }
|
17
17
|
//
|
18
18
|
// Copyright IBM Corp. 2020, 2023
|
19
19
|
//
|
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
31
31
|
|
32
32
|
var blockClass = "".concat(_settings.pkg.prefix, "--action-bar-overflow-items");
|
33
33
|
var componentName = 'ActionBar';
|
34
|
-
var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
34
|
+
var ActionBarOverflowItems = exports.ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
35
35
|
var className = _ref.className,
|
36
36
|
menuOptionsClass = _ref.menuOptionsClass,
|
37
37
|
overflowItems = _ref.overflowItems,
|
@@ -63,7 +63,6 @@ var ActionBarOverflowItems = function ActionBarOverflowItems(_ref) {
|
|
63
63
|
});
|
64
64
|
}));
|
65
65
|
};
|
66
|
-
exports.ActionBarOverflowItems = ActionBarOverflowItems;
|
67
66
|
ActionBarOverflowItems.displayName = componentName;
|
68
67
|
ActionBarOverflowItems.propTypes = {
|
69
68
|
// expects action bar item as array or in fragment,
|
@@ -78,7 +78,7 @@ var defaults = {
|
|
78
78
|
* it appears at the left side. If there is a primary button it appears at the
|
79
79
|
* right.
|
80
80
|
*/
|
81
|
-
var ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
|
81
|
+
var ActionSet = exports.ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
|
82
82
|
var _actions$slice, _cx;
|
83
83
|
var actions = _ref3.actions,
|
84
84
|
buttonSize = _ref3.buttonSize,
|
@@ -121,7 +121,6 @@ var ActionSet = /*#__PURE__*/_react.default.forwardRef(function (_ref3, ref) {
|
|
121
121
|
}));
|
122
122
|
}));
|
123
123
|
});
|
124
|
-
exports.ActionSet = ActionSet;
|
125
124
|
ActionSet.displayName = componentName;
|
126
125
|
|
127
126
|
/**
|
@@ -11,9 +11,8 @@ exports.actionsOptions = exports.actionsMapping = exports.actionsLabels = void 0
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
12
12
|
*/
|
13
13
|
|
14
|
-
var actionsOptions = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
15
|
-
exports.
|
16
|
-
var actionsLabels = {
|
14
|
+
var actionsOptions = exports.actionsOptions = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
15
|
+
var actionsLabels = exports.actionsLabels = {
|
17
16
|
0: 'None',
|
18
17
|
1: 'One button',
|
19
18
|
2: 'A danger button',
|
@@ -26,8 +25,7 @@ var actionsLabels = {
|
|
26
25
|
9: 'Four buttons with one ghost',
|
27
26
|
10: 'Four buttons with two danger'
|
28
27
|
};
|
29
|
-
exports.
|
30
|
-
var actionsMapping = function actionsMapping(labels, action) {
|
28
|
+
var actionsMapping = exports.actionsMapping = function actionsMapping(labels, action) {
|
31
29
|
var _labels$primary, _labels$danger, _labels$secondary, _labels$secondary2, _labels$dangerGhost, _labels$ghost;
|
32
30
|
var act = function act(label, kind, key) {
|
33
31
|
var actionCall = action && action("Click on '".concat(label, "'"));
|
@@ -60,5 +58,4 @@ var actionsMapping = function actionsMapping(labels, action) {
|
|
60
58
|
9: [primary, secondary, secondary2, ghost],
|
61
59
|
10: [danger, secondary, secondary2, dangerGhost]
|
62
60
|
};
|
63
|
-
};
|
64
|
-
exports.actionsMapping = actionsMapping;
|
61
|
+
};
|
@@ -19,10 +19,10 @@ var _excluded = ["items", "globalFilters"]; //
|
|
19
19
|
// This source code is licensed under the Apache-2.0 license found in the
|
20
20
|
// LICENSE file in the root directory of this source tree.
|
21
21
|
//
|
22
|
-
function _getRequireWildcardCache(
|
23
|
-
function _interopRequireWildcard(
|
22
|
+
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); }
|
23
|
+
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 && Object.prototype.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; }
|
24
24
|
var componentName = 'AddSelect';
|
25
|
-
var AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
25
|
+
var AddSelect = exports.AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
26
26
|
var items = _ref.items,
|
27
27
|
globalFilters = _ref.globalFilters,
|
28
28
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
@@ -46,7 +46,6 @@ var AddSelect = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
46
46
|
defaultModifiers: defaultModifiers
|
47
47
|
}));
|
48
48
|
});
|
49
|
-
exports.AddSelect = AddSelect;
|
50
49
|
AddSelect.propTypes = {
|
51
50
|
className: _propTypes.default.string,
|
52
51
|
clearFiltersText: _propTypes.default.string,
|