@carbon/ibm-products 2.54.0-canary.8 → 2.54.0-canary.80
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 +1399 -690
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon-released-only.css +987 -64
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +1 -1
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +610 -562
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +692 -567
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.d.ts +1 -1
- package/es/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/es/components/APIKeyModal/APIKeyModal.d.ts +13 -0
- package/es/components/APIKeyModal/APIKeyModal.js +85 -38
- package/es/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
- package/es/components/AboutModal/AboutModal.js +3 -6
- package/es/components/AddSelect/hooks/useFocus.js +1 -2
- package/es/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/es/components/AddSelect/hooks/usePath.js +1 -2
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +18 -9
- package/es/components/Card/Card.d.ts +3 -3
- package/es/components/Card/Card.js +12 -12
- package/es/components/Card/CardHeader.d.ts +7 -7
- package/es/components/Card/CardHeader.js +14 -12
- package/es/components/Checklist/Checklist.js +1 -1
- package/es/components/Checklist/ChecklistIcon.js +1 -1
- package/es/components/Coachmark/Coachmark.d.ts +5 -0
- package/es/components/Coachmark/Coachmark.js +11 -3
- package/es/components/Coachmark/CoachmarkOverlay.js +4 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +17 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +57 -12
- package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- package/es/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +9 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/es/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/es/components/ConditionBuilder/utils/util.js +0 -4
- package/es/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/es/components/CreateTearsheet/CreateTearsheet.js +4 -3
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +6 -3
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +31 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +2 -3
- package/es/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useShouldDisableButtons.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useSubscribeToEventEmitter.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/es/components/Datagrid/useCustomizeColumns.js +4 -4
- package/es/components/Datagrid/useDatagrid.js +2 -2
- package/es/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/es/components/Datagrid/useEditableCell.js +1 -2
- package/es/components/Datagrid/useFlexResize.js +1 -2
- package/es/components/Datagrid/useFloatingScroll.js +1 -2
- package/es/components/Datagrid/useNestedRowExpander.js +1 -2
- package/es/components/Datagrid/useParentDimensions.js +1 -2
- package/es/components/Datagrid/useResizeTable.js +1 -2
- package/es/components/Datagrid/useRowExpander.js +1 -2
- package/es/components/Datagrid/useRowRenderer.js +1 -2
- package/es/components/Datagrid/useRowSize.js +1 -2
- package/es/components/Datagrid/useSkeletonRows.js +1 -2
- package/es/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/es/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/es/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/es/components/DecoratorLink/DecoratorLink.js +5 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/es/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/es/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/es/components/DescriptionList/DescriptionList.js +5 -0
- package/es/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/es/components/EditFullPage/EditFullPage.js +8 -0
- package/es/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/es/components/EditSidePanel/EditSidePanel.js +8 -0
- package/es/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/es/components/EditTearsheet/EditTearsheet.js +8 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/es/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/es/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/es/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/es/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/es/components/EmptyStates/EmptyStateV2.js +7 -0
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/es/components/EmptyStates/assets/ErrorIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NoDataIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NoTagsIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NotFoundIllustration.js +3 -5
- package/es/components/EmptyStates/assets/NotificationsIllustration.js +3 -5
- package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +3 -5
- package/es/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/es/components/ExpressiveCard/ExpressiveCard.js +5 -5
- package/es/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanel.js +6 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/es/components/FilterSummary/FilterSummary.js +1 -1
- package/es/components/FullPageError/FullPageError.js +7 -7
- package/es/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error403SVG.js +4 -6
- package/es/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/es/components/FullPageError/assets/Error404SVG.js +4 -6
- package/es/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/es/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/es/components/InlineTip/InlineTip.d.ts +5 -0
- package/es/components/InlineTip/InlineTip.js +17 -8
- package/es/components/InterstitialScreen/InterstitialScreen.js +2 -3
- package/es/components/Nav/Nav.d.ts +3 -0
- package/es/components/Nav/Nav.js +8 -0
- package/es/components/Nav/NavItemLink.js +1 -2
- package/es/components/PageHeader/PageHeader.js +13 -3
- package/es/components/PageHeader/PageHeaderTitle.js +10 -29
- package/es/components/ProductiveCard/ProductiveCard.d.ts +9 -5
- package/es/components/ProductiveCard/ProductiveCard.js +11 -9
- package/es/components/SidePanel/SidePanel.d.ts +6 -1
- package/es/components/SidePanel/SidePanel.js +27 -14
- package/es/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicator.js +5 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/es/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- package/es/components/TagOverflow/TagOverflow.js +2 -5
- package/es/components/Tearsheet/TearsheetShell.d.ts +4 -0
- package/es/components/Tearsheet/TearsheetShell.js +7 -60
- package/es/global/js/hooks/useFocus.d.ts +1 -0
- package/es/global/js/hooks/useFocus.js +24 -1
- package/es/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/es/global/js/package-settings.d.ts +1 -1
- package/es/global/js/package-settings.js +1 -1
- package/es/global/js/utils/checkForOverflow.d.ts +5 -0
- package/es/global/js/utils/checkForOverflow.js +31 -0
- package/es/index.js +1 -1
- package/es/settings.d.ts +1 -1
- package/lib/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.d.ts +1 -1
- package/lib/components/APIKeyModal/APIKeyDownloader.js +1 -1
- package/lib/components/APIKeyModal/APIKeyModal.d.ts +13 -0
- package/lib/components/APIKeyModal/APIKeyModal.js +83 -34
- package/lib/components/APIKeyModal/APIKeyModal.types.d.ts +21 -3
- package/lib/components/AboutModal/AboutModal.js +2 -5
- package/lib/components/AddSelect/hooks/useFocus.js +1 -2
- package/lib/components/AddSelect/hooks/useParentSelect.js +1 -2
- package/lib/components/AddSelect/hooks/usePath.js +1 -2
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +17 -8
- package/lib/components/Card/Card.d.ts +3 -3
- package/lib/components/Card/Card.js +12 -12
- package/lib/components/Card/CardHeader.d.ts +7 -7
- package/lib/components/Card/CardHeader.js +14 -12
- package/lib/components/Checklist/ChecklistChart.js +7 -7
- package/lib/components/Coachmark/Coachmark.d.ts +5 -0
- package/lib/components/Coachmark/Coachmark.js +11 -3
- package/lib/components/Coachmark/CoachmarkOverlay.js +4 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.d.ts +17 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +56 -11
- package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +4 -0
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +18 -6
- package/lib/components/ConditionBuilder/ConditionBuilderConnector/GroupConnector.js +1 -2
- package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +9 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOption.js +1 -5
- package/lib/components/ConditionBuilder/ConditionBuilderItem/ConditionBuilderItemOption/ItemOptionForValueField.js +5 -5
- package/lib/components/ConditionBuilder/utils/util.js +0 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.d.ts +1 -1
- package/lib/components/CreateTearsheet/CreateTearsheet.js +4 -3
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +5 -2
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +30 -1
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Actions.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/OverflowCheckboxes.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilterContext.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +1 -2
- 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/RowSize/RowSizeDropdown.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +1 -2
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +1 -1
- package/lib/components/Datagrid/useColumnOrder.js +1 -1
- package/lib/components/Datagrid/useDefaultStringRenderer.js +1 -2
- package/lib/components/Datagrid/useEditableCell.js +1 -2
- package/lib/components/Datagrid/useFlexResize.js +1 -2
- package/lib/components/Datagrid/useFloatingScroll.js +1 -2
- package/lib/components/Datagrid/useNestedRowExpander.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 +1 -2
- package/lib/components/Datagrid/useRowRenderer.js +1 -2
- package/lib/components/Datagrid/useRowSize.js +1 -2
- package/lib/components/Datagrid/useSkeletonRows.js +1 -2
- package/lib/components/DecoratorDualButton/DecoratorDualButton.d.ts +1 -0
- package/lib/components/DecoratorDualButton/DecoratorDualButton.js +5 -0
- package/lib/components/DecoratorLink/DecoratorLink.d.ts +1 -0
- package/lib/components/DecoratorLink/DecoratorLink.js +5 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.d.ts +1 -0
- package/lib/components/DecoratorSingleButton/DecoratorSingleButton.js +5 -0
- package/lib/components/DescriptionList/DescriptionList.d.ts +1 -0
- package/lib/components/DescriptionList/DescriptionList.js +5 -0
- package/lib/components/EditFullPage/EditFullPage.d.ts +2 -0
- package/lib/components/EditFullPage/EditFullPage.js +8 -0
- package/lib/components/EditSidePanel/EditSidePanel.d.ts +2 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +8 -0
- package/lib/components/EditTearsheet/EditTearsheet.d.ts +2 -0
- package/lib/components/EditTearsheet/EditTearsheet.js +8 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.d.ts +2 -0
- package/lib/components/EditTearsheetNarrow/EditTearsheetNarrow.js +8 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +2 -0
- package/lib/components/EditUpdateCards/EditUpdateCards.js +8 -0
- package/lib/components/EmptyStates/EmptyStateIllustration.js +1 -2
- package/lib/components/EmptyStates/EmptyStateV2.d.ts +1 -0
- package/lib/components/EmptyStates/EmptyStateV2.js +7 -0
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
- package/lib/components/EmptyStates/assets/ErrorIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NoDataIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NoTagsIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NotFoundIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/NotificationsIllustration.js +2 -4
- package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +2 -4
- package/lib/components/ExpressiveCard/ExpressiveCard.d.ts +5 -5
- package/lib/components/ExpressiveCard/ExpressiveCard.js +5 -5
- package/lib/components/FilterPanel/FilterPanel.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanel.js +6 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +5 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +5 -1
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +5 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelGroup/FilterPanelGroup.js +5 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +1 -0
- package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +5 -1
- package/lib/components/FilterSummary/FilterSummary.js +1 -1
- package/lib/components/FullPageError/FullPageError.js +7 -7
- package/lib/components/FullPageError/assets/Error403SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error403SVG.js +4 -6
- package/lib/components/FullPageError/assets/Error404SVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/Error404SVG.js +4 -6
- package/lib/components/FullPageError/assets/ErrorGenericSVG.d.ts +1 -3
- package/lib/components/FullPageError/assets/ErrorGenericSVG.js +4 -6
- package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
- package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
- package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
- package/lib/components/InlineTip/InlineTip.d.ts +5 -0
- package/lib/components/InlineTip/InlineTip.js +17 -8
- package/lib/components/InterstitialScreen/InterstitialScreen.js +2 -3
- package/lib/components/Nav/Nav.d.ts +3 -0
- package/lib/components/Nav/Nav.js +8 -0
- package/lib/components/Nav/NavItemLink.js +1 -2
- package/lib/components/PageHeader/PageHeader.js +12 -2
- package/lib/components/PageHeader/PageHeaderTitle.js +8 -27
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +9 -5
- package/lib/components/ProductiveCard/ProductiveCard.js +11 -9
- package/lib/components/SidePanel/SidePanel.d.ts +6 -1
- package/lib/components/SidePanel/SidePanel.js +27 -14
- package/lib/components/StatusIndicator/StatusIndicator.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.d.ts +1 -0
- package/lib/components/StatusIndicator/StatusIndicatorStep.js +5 -0
- package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +3 -1
- package/lib/components/TagOverflow/TagOverflow.js +1 -4
- package/lib/components/Tearsheet/TearsheetShell.d.ts +4 -0
- package/lib/components/Tearsheet/TearsheetShell.js +6 -59
- package/lib/global/js/hooks/useFocus.d.ts +1 -0
- package/lib/global/js/hooks/useFocus.js +24 -0
- package/lib/global/js/hooks/usePrefersReducedMotion.js +1 -2
- package/lib/global/js/package-settings.d.ts +1 -1
- package/lib/global/js/package-settings.js +1 -1
- package/lib/global/js/utils/checkForOverflow.d.ts +5 -0
- package/lib/global/js/utils/checkForOverflow.js +34 -0
- package/lib/index.js +109 -109
- package/lib/settings.d.ts +1 -1
- package/package.json +11 -11
- package/scss/components/APIKeyModal/_api-key-modal.scss +4 -0
- package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +3 -3
- package/scss/components/Card/_card.scss +19 -5
- package/scss/components/Coachmark/_coachmark-overlay.scss +2 -2
- package/scss/components/Coachmark/_coachmark-tagline.scss +1 -1
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +3 -3
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +2 -2
- package/scss/components/ConditionBuilder/styles/_conditionBuilderItem.scss +7 -7
- package/scss/components/CreateInfluencer/_create-influencer.scss +2 -2
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +1 -2
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +4 -4
- package/scss/components/Datagrid/styles/_datagrid.scss +21 -14
- package/scss/components/Datagrid/styles/_draggableElement.scss +2 -2
- package/scss/components/Datagrid/styles/_useColumnRightAlign.scss +1 -1
- package/scss/components/Datagrid/styles/_useExpandedRow.scss +1 -1
- package/scss/components/Datagrid/styles/_useInlineEdit.scss +1 -1
- package/scss/components/Datagrid/styles/_useNestedRows.scss +2 -2
- package/scss/components/Datagrid/styles/_useStickyColumn.scss +2 -2
- package/scss/components/Datagrid/styles/addons/_CustomizeColumnsTearsheet.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +1 -1
- package/scss/components/Datagrid/styles/addons/_RowSizeDropdown.scss +1 -2
- package/scss/components/DecoratorBase/_decorator-base-mixins.scss +1 -1
- package/scss/components/DecoratorBase/_decorator-base.scss +3 -3
- package/scss/components/DecoratorDualButton/_decorator-dual-button.scss +1 -1
- package/scss/components/DecoratorSingleButton/_decorator-single-button.scss +1 -1
- package/scss/components/EditTearsheet/_edit-tearsheet.scss +1 -2
- package/scss/components/EditUpdateCards/_edit-update-cards.scss +7 -7
- package/scss/components/FullPageError/_full-page-error.scss +1 -1
- package/scss/components/GetStartedCard/_get-started-card.scss +1 -1
- package/scss/components/Guidebanner/_guidebanner.scss +4 -4
- package/scss/components/HTTPErrors/_http-errors.scss +1 -1
- package/scss/components/InlineTip/_inline-tip.scss +4 -4
- package/scss/components/InterstitialScreen/_interstitial-screen.scss +6 -6
- package/scss/components/NonLinearReading/_non-linear-reading.scss +2 -2
- package/scss/components/NotificationsPanel/_notifications-panel.scss +3 -3
- package/scss/components/OptionsTile/_options-tile.scss +6 -8
- package/scss/components/PageHeader/_page-header.scss +38 -19
- package/scss/components/ProductiveCard/_productive-card.scss +2 -2
- package/scss/components/SidePanel/_side-panel.scss +24 -17
- package/scss/components/StatusIcon/_status-icon.scss +9 -7
- package/scss/components/StatusIndicator/_status-indicator.scss +1 -1
- package/scss/components/Tearsheet/_tearsheet.scss +5 -5
- package/scss/components/UserAvatar/_user-avatar.scss +5 -3
- package/scss/components/UserProfileImage/_user-profile-image.scss +6 -4
- package/scss/components/WebTerminal/_web-terminal.scss +2 -2
- package/scss/components/_index-released-only.scss +1 -0
- package/telemetry.yml +3 -0
@@ -50,7 +50,7 @@ exports.HTTPErrorOther = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
50
50
|
/**@ts-ignore*/
|
51
51
|
exports.HTTPErrorOther.deprecated = {
|
52
52
|
level: 'warn',
|
53
|
-
details: "
|
53
|
+
details: "".concat(componentName, " is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write")
|
54
54
|
};
|
55
55
|
|
56
56
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -51,8 +51,13 @@ export interface InlineTipProps {
|
|
51
51
|
* - If a stepped animation is required, use `{filePaths}`.
|
52
52
|
*
|
53
53
|
* Enabling `media` disables the `collapsible` feature.
|
54
|
+
* @deprecated please use the `renderMedia` prop
|
54
55
|
*/
|
55
56
|
media?: MediaType;
|
57
|
+
/**
|
58
|
+
* Optional prop to render any media like images or any animated media.
|
59
|
+
*/
|
60
|
+
renderMedia?: () => ReactNode;
|
56
61
|
/**
|
57
62
|
* Set to `true` to arrange the information in a format
|
58
63
|
* that is easier to read in a limited space.
|
@@ -20,7 +20,7 @@ var settings = require('../../settings.js');
|
|
20
20
|
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
21
21
|
|
22
22
|
var _Close, _Idea, _Crossroads;
|
23
|
-
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
23
|
+
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "renderMedia", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
24
24
|
|
25
25
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
26
26
|
var blockClass = "".concat(settings.pkg.prefix, "--inline-tip");
|
@@ -58,6 +58,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
58
58
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
59
59
|
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
60
60
|
media = _ref.media,
|
61
|
+
renderMedia = _ref.renderMedia,
|
61
62
|
_ref$narrow = _ref.narrow,
|
62
63
|
narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
|
63
64
|
onClick = _ref.onClick,
|
@@ -68,6 +69,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
68
69
|
_ref$withLeftGutter = _ref.withLeftGutter,
|
69
70
|
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
70
71
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
72
|
+
var hasMedia = renderMedia || media;
|
71
73
|
var _useState = React.useState(collapsible),
|
72
74
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
73
75
|
isCollapsed = _useState2[0],
|
@@ -77,7 +79,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
77
79
|
return utils.getComponentText(React.Children.toArray(children));
|
78
80
|
}, [children]);
|
79
81
|
var childrenToRender = children;
|
80
|
-
if (!
|
82
|
+
if (!hasMedia && collapsible && isCollapsed) {
|
81
83
|
childrenToRender = /*#__PURE__*/React.createElement("p", {
|
82
84
|
className: "".concat(blockClass, "__preview-text")
|
83
85
|
}, previewText);
|
@@ -89,7 +91,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
89
91
|
}, [collapsible]);
|
90
92
|
return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({}, rest, {
|
91
93
|
"aria-labelledby": labelId,
|
92
|
-
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"),
|
94
|
+
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), hasMedia && "".concat(blockClass, "__has-media"), [narrow ? "".concat(blockClass, "__narrow") : "".concat(blockClass, "__wide")], withLeftGutter && !narrow && "".concat(blockClass, "__with-left-gutter")),
|
93
95
|
ref: ref,
|
94
96
|
role: "complementary"
|
95
97
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement("div", {
|
@@ -102,7 +104,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
102
104
|
size: "lg"
|
103
105
|
}, _Close || (_Close = /*#__PURE__*/React.createElement(icons.Close, {
|
104
106
|
size: 16
|
105
|
-
})))), (!
|
107
|
+
})))), (!hasMedia && narrow || !narrow) && /*#__PURE__*/React.createElement("div", {
|
106
108
|
className: "".concat(blockClass, "__icon-idea"),
|
107
109
|
tabIndex: -1
|
108
110
|
}, _Idea || (_Idea = /*#__PURE__*/React.createElement(icons.Idea, {
|
@@ -118,7 +120,7 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
118
120
|
className: "".concat(blockClass, "__secondary-btn")
|
119
121
|
}, action)), (collapsible || tertiaryButtonLabel) && /*#__PURE__*/React.createElement("footer", {
|
120
122
|
className: "".concat(blockClass, "__footer")
|
121
|
-
}, collapsible && !
|
123
|
+
}, collapsible && !hasMedia && /*#__PURE__*/React.createElement(react.Button, {
|
122
124
|
className: "".concat(blockClass, "__toggle-btn"),
|
123
125
|
kind: "ghost",
|
124
126
|
size: "md",
|
@@ -137,12 +139,14 @@ exports.InlineTip = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
137
139
|
size: 16
|
138
140
|
}));
|
139
141
|
}
|
140
|
-
}, tertiaryButtonLabel))),
|
142
|
+
}, tertiaryButtonLabel))), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && /*#__PURE__*/React.createElement("div", {
|
141
143
|
className: "".concat(blockClass, "__media")
|
142
|
-
}, media.render()) : /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
144
|
+
}, media.render()), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React.createElement(SteppedAnimatedMedia.SteppedAnimatedMedia, {
|
143
145
|
className: "".concat(blockClass, "__media"),
|
144
146
|
filePaths: media.filePaths
|
145
|
-
})
|
147
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React.createElement("div", {
|
148
|
+
className: "".concat(blockClass, "__media")
|
149
|
+
}, renderMedia()));
|
146
150
|
});
|
147
151
|
exports.InlineTip = settings.pkg.checkComponentEnabled(exports.InlineTip, componentName);
|
148
152
|
exports.InlineTip.displayName = componentName;
|
@@ -188,6 +192,7 @@ exports.InlineTip.propTypes = {
|
|
188
192
|
* - If a stepped animation is required, use `{filePaths}`.
|
189
193
|
*
|
190
194
|
* Enabling `media` disables the `collapsible` feature.
|
195
|
+
* @deprecated please use the `renderMedia` prop
|
191
196
|
*/
|
192
197
|
/**@ts-ignore*/
|
193
198
|
media: index.default.oneOfType([index.default.shape({
|
@@ -208,6 +213,10 @@ exports.InlineTip.propTypes = {
|
|
208
213
|
* Function to call when the InlineTip is closed via the "X" button.
|
209
214
|
*/
|
210
215
|
onClose: index.default.func,
|
216
|
+
/**
|
217
|
+
* Optional prop to render any media like images or animated media.
|
218
|
+
*/
|
219
|
+
renderMedia: index.default.func,
|
211
220
|
/**
|
212
221
|
* Defining the label will show a the tertiary button with the crossroads icon.
|
213
222
|
* You will still need to define the `onClose` method to trigger a callback.
|
@@ -186,14 +186,13 @@ exports.InterstitialScreen = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
186
186
|
className // Apply any supplied class names to the main HTML element.
|
187
187
|
),
|
188
188
|
size: "lg",
|
189
|
-
onClose:
|
189
|
+
onClose: handleClose,
|
190
190
|
open: isOpen,
|
191
191
|
ref: _forwardedRef,
|
192
192
|
"aria-label": interstitialAriaLabel
|
193
193
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React.createElement(react.ModalHeader, {
|
194
194
|
className: cx(headerBlockClass, headerTitle && "".concat(headerBlockClass, "--has-title"), headerClassName),
|
195
|
-
iconDescription: closeIconDescription
|
196
|
-
buttonOnClick: handleClose
|
195
|
+
iconDescription: closeIconDescription
|
197
196
|
}, headerTitle && (_h || (_h = /*#__PURE__*/React.createElement("h2", null, headerTitle))), !hideProgressIndicator && /*#__PURE__*/React.createElement("div", {
|
198
197
|
className: "".concat(blockClass, "--progress")
|
199
198
|
}, /*#__PURE__*/React.createElement(react.ProgressIndicator, {
|
@@ -19,6 +19,10 @@ var settings = require('../../settings.js');
|
|
19
19
|
var _excluded = ["activeHref", "className", "children", "heading", "label"];
|
20
20
|
var componentName = 'Nav';
|
21
21
|
var blockClass = "".concat(settings.pkg.prefix, "--nav");
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @deprecated This component is deprecated
|
25
|
+
*/
|
22
26
|
exports.Nav = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
23
27
|
var activeHref = _ref.activeHref,
|
24
28
|
className = _ref.className,
|
@@ -123,6 +127,10 @@ exports.Nav = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
123
127
|
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.default.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
|
124
128
|
})));
|
125
129
|
});
|
130
|
+
exports.Nav.deprecated = {
|
131
|
+
level: 'warn',
|
132
|
+
details: "This component is deprecated"
|
133
|
+
};
|
126
134
|
exports.Nav.propTypes = {
|
127
135
|
/**
|
128
136
|
* Hypertext reference for active page.
|
@@ -21,6 +21,7 @@ var cx = require('classnames');
|
|
21
21
|
var devtools = require('../../global/js/utils/devtools.js');
|
22
22
|
var settings = require('../../settings.js');
|
23
23
|
var useResizeObserver = require('../../global/js/hooks/useResizeObserver.js');
|
24
|
+
var checkForOverflow = require('../../global/js/utils/checkForOverflow.js');
|
24
25
|
var useWindowScroll = require('../../global/js/hooks/useWindowScroll.js');
|
25
26
|
var useWindowResize = require('../../global/js/hooks/useWindowResize.js');
|
26
27
|
var BreadcrumbWithOverflow = require('../BreadcrumbWithOverflow/BreadcrumbWithOverflow.js');
|
@@ -363,6 +364,12 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
363
364
|
}
|
364
365
|
};
|
365
366
|
var displayedBreadcrumbs = getBreadcrumbs();
|
367
|
+
var subtitleRef = React.useRef(null);
|
368
|
+
var isOverflowing = checkForOverflow.checkHeightOverflow(subtitleRef.current);
|
369
|
+
var subtitleContent = /*#__PURE__*/React.createElement("span", {
|
370
|
+
ref: subtitleRef,
|
371
|
+
className: "".concat(PageHeaderUtils.blockClass, "__subtitle-text")
|
372
|
+
}, subtitle);
|
366
373
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
367
374
|
className: "".concat(PageHeaderUtils.blockClass, "--offset-top-measuring-element"),
|
368
375
|
ref: offsetTopMeasuringRef
|
@@ -414,11 +421,14 @@ exports.PageHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
414
421
|
blockClass: PageHeaderUtils.blockClass,
|
415
422
|
hasBreadcrumbRow: hasBreadcrumbRow,
|
416
423
|
title: title
|
417
|
-
}) : null), thePageActions(false, pageActionsInBreadcrumbRow)) : null, subtitle
|
424
|
+
}) : null), thePageActions(false, pageActionsInBreadcrumbRow)) : null, subtitle && /*#__PURE__*/React.createElement(react.Row, {
|
418
425
|
className: "".concat(PageHeaderUtils.blockClass, "__subtitle-row")
|
419
426
|
}, /*#__PURE__*/React.createElement(react.Column, {
|
420
427
|
className: "".concat(PageHeaderUtils.blockClass, "__subtitle")
|
421
|
-
},
|
428
|
+
}, isOverflowing ? /*#__PURE__*/React.createElement(react.DefinitionTooltip, {
|
429
|
+
definition: subtitle,
|
430
|
+
className: "".concat(PageHeaderUtils.blockClass, "__subtitle-tooltip")
|
431
|
+
}, subtitleContent) : subtitleContent)), children ? /*#__PURE__*/React.createElement(react.Row, {
|
422
432
|
className: "".concat(PageHeaderUtils.blockClass, "__available-row")
|
423
433
|
}, /*#__PURE__*/React.createElement(react.Column, {
|
424
434
|
className: "".concat(PageHeaderUtils.blockClass, "__available-column")
|
@@ -13,6 +13,7 @@ var index = require('../../_virtual/index.js');
|
|
13
13
|
var cx = require('classnames');
|
14
14
|
var react = require('@carbon/react');
|
15
15
|
var EditInPlace = require('../EditInPlace/EditInPlace.js');
|
16
|
+
var checkForOverflow = require('../../global/js/utils/checkForOverflow.js');
|
16
17
|
|
17
18
|
var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "onSave", "editDescription", "editableLabel", "cancelDescription", "saveDescription", "tooltipAlignment"];
|
18
19
|
|
@@ -45,31 +46,18 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
|
|
45
46
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(title, _excluded);
|
46
47
|
var titleText;
|
47
48
|
var isEditable = !!onSave;
|
48
|
-
var
|
49
|
-
|
50
|
-
isEllipsisApplied = _useState2[0],
|
51
|
-
setIsEllipsisApplied = _useState2[1];
|
52
|
-
var longTitleRef = React.useRef(undefined);
|
53
|
-
var titleRef = React.useRef(undefined);
|
54
|
-
React.useLayoutEffect(function () {
|
55
|
-
setIsEllipsisApplied(isEllipsisActive());
|
56
|
-
}, [longTitleRef, titleRef, title]);
|
57
|
-
var isEllipsisActive = function isEllipsisActive() {
|
58
|
-
if (longTitleRef.current) {
|
59
|
-
var _longTitleRef$current, _longTitleRef$current2;
|
60
|
-
return ((_longTitleRef$current = longTitleRef.current) === null || _longTitleRef$current === void 0 ? void 0 : _longTitleRef$current.offsetWidth) < ((_longTitleRef$current2 = longTitleRef.current) === null || _longTitleRef$current2 === void 0 ? void 0 : _longTitleRef$current2.scrollWidth);
|
61
|
-
} else if (titleRef.current) {
|
62
|
-
var _titleRef$current, _titleRef$current2;
|
63
|
-
return ((_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.offsetWidth) < ((_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === void 0 ? void 0 : _titleRef$current2.scrollWidth);
|
64
|
-
}
|
65
|
-
return false;
|
66
|
-
};
|
49
|
+
var titleRef = React.useRef();
|
50
|
+
var isEllipsisApplied = checkForOverflow.checkWidthOverflow(titleRef.current);
|
67
51
|
if (text || !content) {
|
68
52
|
if (text === undefined && typeof title === 'string') {
|
69
53
|
text = title;
|
70
54
|
asText = title;
|
71
55
|
}
|
72
56
|
var TitleIcon = icon;
|
57
|
+
var titleContent = /*#__PURE__*/React.createElement("span", {
|
58
|
+
ref: titleRef,
|
59
|
+
className: "".concat(blockClass, "__titleText")
|
60
|
+
}, text);
|
73
61
|
titleInnards = /*#__PURE__*/React.createElement(React.Fragment, null, icon && !loading ? /*#__PURE__*/React.createElement("span", {
|
74
62
|
className: "".concat(blockClass, "__title-icon-wrapper")
|
75
63
|
}, /*#__PURE__*/React.createElement(TitleIcon, {
|
@@ -92,14 +80,7 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
|
|
92
80
|
align: tooltipAlignment,
|
93
81
|
definition: text,
|
94
82
|
className: "".concat(blockClass, "__tooltip")
|
95
|
-
},
|
96
|
-
ref: longTitleRef,
|
97
|
-
className: "".concat(blockClass, "__titleText")
|
98
|
-
}, text)) : /*#__PURE__*/React.createElement("span", {
|
99
|
-
ref: titleRef,
|
100
|
-
className: "".concat(blockClass, "__titleText"),
|
101
|
-
title: !loading ? asText : null
|
102
|
-
}, text));
|
83
|
+
}, titleContent) : titleContent);
|
103
84
|
} else {
|
104
85
|
titleInnards = content;
|
105
86
|
titleText = asText;
|
@@ -22,9 +22,9 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
22
22
|
*/
|
23
23
|
actionIcons?: ActionIcon[];
|
24
24
|
/**
|
25
|
-
* Optional prop that
|
25
|
+
* Optional prop that allows you to pass any component.
|
26
26
|
*/
|
27
|
-
|
27
|
+
decorator?: ReactNode | boolean;
|
28
28
|
/**
|
29
29
|
* Determines if the action icons are on the top or bottom of the card
|
30
30
|
*/
|
@@ -66,7 +66,8 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
66
66
|
*/
|
67
67
|
overflowActions?: overflowAction[];
|
68
68
|
/**
|
69
|
-
*
|
69
|
+
* Sets the text for the OverflowMenu aria label and the OverflowMenu trigger button tooltip.
|
70
|
+
* Overrides `iconDescription` prop.
|
70
71
|
*/
|
71
72
|
overflowAriaLabel?: string;
|
72
73
|
/**
|
@@ -108,7 +109,7 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
108
109
|
/**
|
109
110
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
110
111
|
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
111
|
-
* @deprecated please use the `
|
112
|
+
* @deprecated please use the `decorator` prop
|
112
113
|
*/
|
113
114
|
slug?: ReactNode | boolean;
|
114
115
|
/**
|
@@ -120,7 +121,10 @@ export interface ProductiveCardProps extends PropsWithChildren {
|
|
120
121
|
*/
|
121
122
|
titleSize?: 'default' | 'large';
|
122
123
|
/**
|
123
|
-
*
|
124
|
+
* Sets the text for the OverflowMenu trigger button tooltip and OverflowMenu aria label,
|
125
|
+
* gets overridden by the `overflowAriaLabel` prop.
|
126
|
+
*
|
127
|
+
* @deprecated Please use the `overflowAriaLabel` prop instead.
|
124
128
|
*/
|
125
129
|
iconDescription?: string;
|
126
130
|
}
|
@@ -15,16 +15,14 @@ var settings = require('../../settings.js');
|
|
15
15
|
var propsHelper = require('../../global/js/utils/props-helper.js');
|
16
16
|
var Card = require('../Card/Card.js');
|
17
17
|
|
18
|
-
var _excluded = ["actionsPlacement"
|
18
|
+
var _excluded = ["actionsPlacement"];
|
19
19
|
var componentName = 'ProductiveCard';
|
20
20
|
exports.ProductiveCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
21
21
|
var _ref$actionsPlacement = _ref.actionsPlacement,
|
22
22
|
actionsPlacement = _ref$actionsPlacement === void 0 ? 'top' : _ref$actionsPlacement,
|
23
|
-
iconDescription = _ref.iconDescription,
|
24
23
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
25
24
|
var validProps = propsHelper.prepareProps(rest, ['media', 'mediaPosition', 'pictogram', 'primaryButtonClick', 'productive', 'secondaryButtonKind']);
|
26
25
|
return /*#__PURE__*/React.createElement(Card.Card, _rollupPluginBabelHelpers.extends({}, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, validProps), {}, {
|
27
|
-
iconDescription: iconDescription,
|
28
26
|
actionsPlacement: actionsPlacement,
|
29
27
|
ref: ref,
|
30
28
|
productive: true
|
@@ -50,10 +48,6 @@ exports.ProductiveCard.propTypes = {
|
|
50
48
|
* Determines if the action icons are on the top or bottom of the card
|
51
49
|
*/
|
52
50
|
actionsPlacement: index.default.oneOf(['top', 'bottom']),
|
53
|
-
/**
|
54
|
-
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
55
|
-
*/
|
56
|
-
aiLabel: index.default.oneOfType([index.default.node, index.default.bool]),
|
57
51
|
/**
|
58
52
|
* Content that shows in the body of the card
|
59
53
|
*/
|
@@ -66,12 +60,19 @@ exports.ProductiveCard.propTypes = {
|
|
66
60
|
* Designates which zones of the card are clickable. Refer to design documentation for implementation guidelines
|
67
61
|
*/
|
68
62
|
clickZone: index.default.oneOf(['one', 'two', 'three']),
|
63
|
+
/**
|
64
|
+
* Optional prop that allows you to pass any component.
|
65
|
+
*/
|
66
|
+
decorator: index.default.oneOfType([index.default.node, index.default.bool]),
|
69
67
|
/**
|
70
68
|
* Optional header description
|
71
69
|
*/
|
72
70
|
description: index.default.oneOfType([index.default.string, index.default.object, index.default.node]),
|
73
71
|
/**
|
74
|
-
*
|
72
|
+
* Sets the text for the OverflowMenu trigger button tooltip and OverflowMenu aria label,
|
73
|
+
* gets overridden by the `overflowAriaLabel` prop.
|
74
|
+
*
|
75
|
+
* @deprecated Please use the `overflowAriaLabel` prop instead.
|
75
76
|
*/
|
76
77
|
iconDescription: index.default.string,
|
77
78
|
/**
|
@@ -101,7 +102,8 @@ exports.ProductiveCard.propTypes = {
|
|
101
102
|
onKeyDown: index.default.func
|
102
103
|
})),
|
103
104
|
/**
|
104
|
-
*
|
105
|
+
* Sets the text for the OverflowMenu aria label and the OverflowMenu trigger button tooltip.
|
106
|
+
* Overrides `iconDescription` prop.
|
105
107
|
*/
|
106
108
|
overflowAriaLabel: index.default.string,
|
107
109
|
/**
|
@@ -110,14 +110,19 @@ type SidePanelBaseProps = {
|
|
110
110
|
*/
|
111
111
|
slideIn?: boolean;
|
112
112
|
/**
|
113
|
-
* @deprecated please use the `
|
113
|
+
* @deprecated please use the `decorator` instead
|
114
114
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
115
115
|
*/
|
116
116
|
slug?: ReactNode;
|
117
117
|
/**
|
118
|
+
* @deprecated please use the `decorator` instead
|
118
119
|
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
119
120
|
*/
|
120
121
|
aiLabel?: ReactNode;
|
122
|
+
/**
|
123
|
+
* Provide a `decorator` component to be rendered inside the `SidePanel` component
|
124
|
+
*/
|
125
|
+
decorator?: ReactNode;
|
121
126
|
/**
|
122
127
|
* Sets the subtitle text
|
123
128
|
*/
|
@@ -26,7 +26,7 @@ var usePrefersReducedMotion = require('../../global/js/hooks/usePrefersReducedMo
|
|
26
26
|
var useFocus = require('../../global/js/hooks/useFocus.js');
|
27
27
|
var usePreviousValue = require('../../global/js/hooks/usePreviousValue.js');
|
28
28
|
|
29
|
-
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
29
|
+
var _excluded = ["actionToolbarButtons", "actions", "aiLabel", "animateTitle", "children", "className", "closeIconDescription", "condensedActions", "currentStep", "decorator", "id", "includeOverlay", "labelText", "navigationBackIconDescription", "onNavigationBack", "onRequestClose", "onUnmount", "open", "placement", "preventCloseOnClickOutside", "selectorPageContent", "selectorPrimaryFocus", "size", "slideIn", "slug", "subtitle", "title", "launcherButtonRef"],
|
30
30
|
_excluded2 = ["label", "kind", "hasIconOnly", "icon", "renderIcon", "tooltipPosition", "tooltipAlignment", "leading", "disabled", "className", "onClick"];
|
31
31
|
var blockClass = "".concat(settings.pkg.prefix, "--side-panel");
|
32
32
|
var componentName = 'SidePanel';
|
@@ -59,6 +59,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
59
59
|
condensedActions = _ref.condensedActions,
|
60
60
|
_ref$currentStep = _ref.currentStep,
|
61
61
|
currentStep = _ref$currentStep === void 0 ? defaults.currentStep : _ref$currentStep,
|
62
|
+
decorator = _ref.decorator,
|
62
63
|
_ref$id = _ref.id,
|
63
64
|
id = _ref$id === void 0 ? blockClass : _ref$id,
|
64
65
|
includeOverlay = _ref.includeOverlay,
|
@@ -337,7 +338,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
337
338
|
}
|
338
339
|
}, [animationComplete, firstElement, open, selectorPrimaryFocus, sidePanelRef, slideIn]);
|
339
340
|
var primaryActionContainerClassNames = cx(["".concat(blockClass, "__actions-container"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__actions-container--condensed"), condensedActions)]);
|
340
|
-
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-ai-label"),
|
341
|
+
var mainPanelClassNames = cx([blockClass, className, "".concat(blockClass), "".concat(blockClass, "--").concat(size), _rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty(_rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "--right-placement"), placement === 'right'), "".concat(blockClass, "--left-placement"), placement === 'left'), "".concat(blockClass, "--slide-in"), slideIn), "".concat(blockClass, "--has-decorator"), decorator), "".concat(blockClass, "--has-slug"), slug), "".concat(blockClass, "--has-ai-label"), aiLabel), "".concat(blockClass, "--condensed-actions"), condensedActions), "".concat(blockClass, "--has-overlay"), includeOverlay)]);
|
341
342
|
var renderTitle = function renderTitle() {
|
342
343
|
return /*#__PURE__*/React.createElement("div", {
|
343
344
|
className: cx("".concat(blockClass, "__title"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__title--no-label"), !labelTextRef.current)),
|
@@ -353,23 +354,29 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
353
354
|
}, title));
|
354
355
|
};
|
355
356
|
var renderHeader = function renderHeader() {
|
356
|
-
var _slug$type, _aiLabel$type;
|
357
|
-
var
|
358
|
-
var
|
357
|
+
var _slug$type, _aiLabel$type, _decorator$type;
|
358
|
+
var closeSize = actions && actions.length && /l/.test(size) ? 'md' : 'sm';
|
359
|
+
var normalizedDecorator;
|
359
360
|
/**
|
360
361
|
* slug is deprecated
|
361
362
|
* can remove this condition in future release
|
362
363
|
*/
|
363
|
-
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === '
|
364
|
-
|
364
|
+
if (slug && ((_slug$type = slug['type']) === null || _slug$type === void 0 ? void 0 : _slug$type.displayName) === 'AILabel') {
|
365
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(slug, {
|
365
366
|
// slug size is sm unless actions and size > md
|
366
|
-
size:
|
367
|
+
size: closeSize
|
367
368
|
});
|
368
369
|
}
|
369
370
|
if (aiLabel && ((_aiLabel$type = aiLabel['type']) === null || _aiLabel$type === void 0 ? void 0 : _aiLabel$type.displayName) === 'AILabel') {
|
370
|
-
|
371
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(aiLabel, {
|
371
372
|
// aiLabel size is sm unless actions and size > md
|
372
|
-
size:
|
373
|
+
size: closeSize
|
374
|
+
});
|
375
|
+
}
|
376
|
+
if ((decorator === null || decorator === void 0 || (_decorator$type = decorator['type']) === null || _decorator$type === void 0 ? void 0 : _decorator$type.displayName) === 'AILabel') {
|
377
|
+
normalizedDecorator = /*#__PURE__*/React.cloneElement(decorator, {
|
378
|
+
// decorator size is sm unless actions and size > md
|
379
|
+
size: closeSize
|
373
380
|
});
|
374
381
|
}
|
375
382
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -377,7 +384,7 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
377
384
|
ref: headerRef
|
378
385
|
}, currentStep > 0 && /*#__PURE__*/React.createElement(react.Button, {
|
379
386
|
kind: "ghost",
|
380
|
-
size:
|
387
|
+
size: closeSize,
|
381
388
|
disabled: false,
|
382
389
|
renderIcon: function renderIcon(props) {
|
383
390
|
return /*#__PURE__*/React.createElement(icons.ArrowLeft, _rollupPluginBabelHelpers.extends({
|
@@ -391,8 +398,8 @@ exports.SidePanel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
391
398
|
className: "".concat(blockClass, "__label-text"),
|
392
399
|
ref: labelTextRef
|
393
400
|
}, labelText), title && title.length && renderTitle(), /*#__PURE__*/React.createElement("div", {
|
394
|
-
className: "".concat(blockClass, "
|
395
|
-
},
|
401
|
+
className: "".concat(blockClass, "__decorator-and-close")
|
402
|
+
}, normalizedDecorator, /*#__PURE__*/React.createElement(react.IconButton, {
|
396
403
|
className: "".concat(blockClass, "__close-button"),
|
397
404
|
label: closeIconDescription,
|
398
405
|
onClick: onRequestClose,
|
@@ -495,7 +502,13 @@ var deprecatedProps = {
|
|
495
502
|
* **deprecated**
|
496
503
|
* **Experimental:** Provide a `Slug` component to be rendered inside the `SidePanel` component
|
497
504
|
*/
|
498
|
-
slug: index.default.node
|
505
|
+
slug: index.default.node,
|
506
|
+
/**
|
507
|
+
* **deprecated**
|
508
|
+
* Please use the `decorator` instead
|
509
|
+
* Optional prop that is intended for any scenario where something is being generated by AI to reinforce AI transparency, accountability, and explainability at the UI level.
|
510
|
+
*/
|
511
|
+
aiLabel: index.default.node
|
499
512
|
};
|
500
513
|
exports.SidePanel.propTypes = _rollupPluginBabelHelpers.objectSpread2({
|
501
514
|
/**
|
@@ -29,6 +29,7 @@ var defaults = {
|
|
29
29
|
|
30
30
|
/**
|
31
31
|
* A list of icon/description pairs used to show multiple states of progress.
|
32
|
+
* @deprecated This component is deprecated
|
32
33
|
*/
|
33
34
|
exports.StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
34
35
|
var children = _ref.children,
|
@@ -59,6 +60,10 @@ exports.StatusIndicator = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
59
60
|
}
|
60
61
|
}, retryLabel));
|
61
62
|
});
|
63
|
+
exports.StatusIndicator.deprecated = {
|
64
|
+
level: 'warn',
|
65
|
+
details: "This component is deprecated"
|
66
|
+
};
|
62
67
|
|
63
68
|
// Return a placeholder if not released and not enabled by feature flag
|
64
69
|
exports.StatusIndicator = settings.pkg.checkComponentEnabled(exports.StatusIndicator, componentName);
|
@@ -28,6 +28,7 @@ var defaults = {
|
|
28
28
|
|
29
29
|
/**
|
30
30
|
* An icon/description pair that describes one step of the `StatusIndicator`.
|
31
|
+
* @deprecated This component is deprecated
|
31
32
|
*/
|
32
33
|
exports.StatusIndicatorStep = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
33
34
|
var className = _ref.className,
|
@@ -56,6 +57,10 @@ exports.StatusIndicatorStep = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
56
57
|
className: "".concat(blockClass, "__error-message")
|
57
58
|
}, errorMessage));
|
58
59
|
});
|
60
|
+
exports.StatusIndicatorStep.deprecated = {
|
61
|
+
level: 'warn',
|
62
|
+
details: "This component is deprecated"
|
63
|
+
};
|
59
64
|
|
60
65
|
// Return a placeholder if not released and not enabled by feature flag
|
61
66
|
exports.StatusIndicatorStep = settings.pkg.checkComponentEnabled(exports.StatusIndicatorStep, componentName);
|
@@ -45,6 +45,7 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
45
45
|
var backupRef = React.useRef(null);
|
46
46
|
var localRef = ref !== null && ref !== void 0 ? ref : backupRef;
|
47
47
|
var localRefValue = localRef.current;
|
48
|
+
var filePathStr = filePaths === null || filePaths === void 0 ? void 0 : filePaths.join(); //converting the array to string will avoid unwanted useEffect trigger.
|
48
49
|
// load animation source
|
49
50
|
React.useEffect(function () {
|
50
51
|
var isJsonFile = function isJsonFile(filePath) {
|
@@ -87,7 +88,8 @@ var SteppedAnimatedMedia = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
87
88
|
return _loadArtifact.apply(this, arguments);
|
88
89
|
}
|
89
90
|
loadArtifact();
|
90
|
-
|
91
|
+
// eslint-disable-next-line
|
92
|
+
}, [filePathStr]);
|
91
93
|
React.useEffect(function () {
|
92
94
|
var _window;
|
93
95
|
var prefersReducedMotion = (_window = window) !== null && _window !== void 0 && _window.matchMedia ? window.matchMedia('(prefers-reduced-motion: reduce)').matches : true;
|
@@ -191,9 +191,6 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
191
191
|
return itemRefHandler(id, node);
|
192
192
|
},
|
193
193
|
key: id
|
194
|
-
}, /*#__PURE__*/React.createElement(react.Tooltip, {
|
195
|
-
align: overflowAlign,
|
196
|
-
label: label
|
197
194
|
}, typeof _onClose === 'function' || filter ? /*#__PURE__*/React.createElement(react.DismissibleTag, _rollupPluginBabelHelpers.extends({}, other, {
|
198
195
|
className: "".concat(blockClass, "__item--tag"),
|
199
196
|
type: tagType,
|
@@ -204,7 +201,7 @@ exports.TagOverflow = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
204
201
|
})) : /*#__PURE__*/React.createElement(react.Tag, _rollupPluginBabelHelpers.extends({}, other, {
|
205
202
|
className: "".concat(blockClass, "__item--tag"),
|
206
203
|
type: tagType
|
207
|
-
}), label))
|
204
|
+
}), label));
|
208
205
|
}
|
209
206
|
}), /*#__PURE__*/React.createElement("span", {
|
210
207
|
className: "".concat(blockClass, "__indicator"),
|
@@ -19,6 +19,10 @@ interface TearsheetShellProps extends PropsWithChildren {
|
|
19
19
|
* An optional class or classes to be added to the outermost element.
|
20
20
|
*/
|
21
21
|
className?: string;
|
22
|
+
/**
|
23
|
+
* Used to track the current step on components which use `StepsContext` and `TearsheetShell`
|
24
|
+
*/
|
25
|
+
currentStep?: number;
|
22
26
|
/**
|
23
27
|
* A description of the flow, displayed in the header area of the tearsheet.
|
24
28
|
*/
|