@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
@@ -1,11 +1,9 @@
|
|
1
|
-
export function Error403SVG({ className
|
1
|
+
export function Error403SVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace Error403SVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var Error403SVG = function Error403SVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 750 570",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_0_2401)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -710,8 +709,7 @@ var Error403SVG = function Error403SVG(_ref) {
|
|
710
709
|
// in alphabetical order (for consistency).
|
711
710
|
// See https://www.npmjs.com/package/prop-types#usage.
|
712
711
|
Error403SVG.propTypes = {
|
713
|
-
className: propTypesExports.string
|
714
|
-
title: propTypesExports.string
|
712
|
+
className: propTypesExports.string
|
715
713
|
};
|
716
714
|
|
717
715
|
export { Error403SVG };
|
@@ -1,11 +1,9 @@
|
|
1
|
-
export function Error404SVG({ className
|
1
|
+
export function Error404SVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace Error404SVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var Error404SVG = function Error404SVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 751 549",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_0_2285)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -619,8 +618,7 @@ var Error404SVG = function Error404SVG(_ref) {
|
|
619
618
|
// in alphabetical order (for consistency).
|
620
619
|
// See https://www.npmjs.com/package/prop-types#usage.
|
621
620
|
Error404SVG.propTypes = {
|
622
|
-
className: propTypesExports.string
|
623
|
-
title: propTypesExports.string
|
621
|
+
className: propTypesExports.string
|
624
622
|
};
|
625
623
|
|
626
624
|
export { Error404SVG };
|
@@ -1,11 +1,9 @@
|
|
1
|
-
export function ErrorGenericSVG({ className
|
1
|
+
export function ErrorGenericSVG({ className }: {
|
2
2
|
className: any;
|
3
|
-
title: any;
|
4
3
|
}): React.JSX.Element;
|
5
4
|
export namespace ErrorGenericSVG {
|
6
5
|
namespace propTypes {
|
7
6
|
export { string as className };
|
8
|
-
export { string as title };
|
9
7
|
}
|
10
8
|
}
|
11
9
|
import React from 'react';
|
@@ -10,14 +10,13 @@ import { p as propTypesExports } from '../../../_virtual/index.js';
|
|
10
10
|
|
11
11
|
var _g, _defs;
|
12
12
|
var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
|
13
|
-
var className = _ref.className
|
14
|
-
title = _ref.title;
|
13
|
+
var className = _ref.className;
|
15
14
|
return /*#__PURE__*/React__default.createElement("svg", {
|
16
15
|
viewBox: "0 0 750 506",
|
17
16
|
fill: "none",
|
18
17
|
className: className,
|
19
|
-
|
20
|
-
"
|
18
|
+
"aria-hidden": "true",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
21
20
|
}, _g || (_g = /*#__PURE__*/React__default.createElement("g", {
|
22
21
|
clipPath: "url(#clip0_203_144)"
|
23
22
|
}, /*#__PURE__*/React__default.createElement("path", {
|
@@ -710,8 +709,7 @@ var ErrorGenericSVG = function ErrorGenericSVG(_ref) {
|
|
710
709
|
// in alphabetical order (for consistency).
|
711
710
|
// See https://www.npmjs.com/package/prop-types#usage.
|
712
711
|
ErrorGenericSVG.propTypes = {
|
713
|
-
className: propTypesExports.string
|
714
|
-
title: propTypesExports.string
|
712
|
+
className: propTypesExports.string
|
715
713
|
};
|
716
714
|
|
717
715
|
export { ErrorGenericSVG };
|
@@ -48,7 +48,7 @@ var HTTPError403 = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
48
48
|
/**@ts-ignore*/
|
49
49
|
HTTPError403.deprecated = {
|
50
50
|
level: 'warn',
|
51
|
-
details: "
|
51
|
+
details: "".concat(componentName, " is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write")
|
52
52
|
};
|
53
53
|
|
54
54
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -48,7 +48,7 @@ var HTTPError404 = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
48
48
|
/**@ts-ignore*/
|
49
49
|
HTTPError404.deprecated = {
|
50
50
|
level: 'warn',
|
51
|
-
details: "
|
51
|
+
details: "".concat(componentName, " is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write")
|
52
52
|
};
|
53
53
|
|
54
54
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -48,7 +48,7 @@ var HTTPErrorOther = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
|
|
48
48
|
/**@ts-ignore*/
|
49
49
|
HTTPErrorOther.deprecated = {
|
50
50
|
level: 'warn',
|
51
|
-
details: "
|
51
|
+
details: "".concat(componentName, " is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write")
|
52
52
|
};
|
53
53
|
|
54
54
|
// 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.
|
@@ -18,7 +18,7 @@ import { pkg } from '../../settings.js';
|
|
18
18
|
import uuidv4 from '../../global/js/utils/uuidv4.js';
|
19
19
|
|
20
20
|
var _Close, _Idea, _Crossroads;
|
21
|
-
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
21
|
+
var _excluded = ["action", "children", "className", "closeIconDescription", "collapsible", "collapseButtonLabel", "expandButtonLabel", "media", "renderMedia", "narrow", "onClick", "onClose", "tertiaryButtonLabel", "title", "withLeftGutter"];
|
22
22
|
|
23
23
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
24
24
|
var blockClass = "".concat(pkg.prefix, "--inline-tip");
|
@@ -56,6 +56,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
56
56
|
_ref$expandButtonLabe = _ref.expandButtonLabel,
|
57
57
|
expandButtonLabel = _ref$expandButtonLabe === void 0 ? defaults.expandButtonLabel : _ref$expandButtonLabe,
|
58
58
|
media = _ref.media,
|
59
|
+
renderMedia = _ref.renderMedia,
|
59
60
|
_ref$narrow = _ref.narrow,
|
60
61
|
narrow = _ref$narrow === void 0 ? defaults.narrow : _ref$narrow,
|
61
62
|
onClick = _ref.onClick,
|
@@ -66,6 +67,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
66
67
|
_ref$withLeftGutter = _ref.withLeftGutter,
|
67
68
|
withLeftGutter = _ref$withLeftGutter === void 0 ? defaults.withLeftGutter : _ref$withLeftGutter,
|
68
69
|
rest = _objectWithoutProperties(_ref, _excluded);
|
70
|
+
var hasMedia = renderMedia || media;
|
69
71
|
var _useState = useState(collapsible),
|
70
72
|
_useState2 = _slicedToArray(_useState, 2),
|
71
73
|
isCollapsed = _useState2[0],
|
@@ -75,7 +77,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
75
77
|
return getComponentText(React__default.Children.toArray(children));
|
76
78
|
}, [children]);
|
77
79
|
var childrenToRender = children;
|
78
|
-
if (!
|
80
|
+
if (!hasMedia && collapsible && isCollapsed) {
|
79
81
|
childrenToRender = /*#__PURE__*/React__default.createElement("p", {
|
80
82
|
className: "".concat(blockClass, "__preview-text")
|
81
83
|
}, previewText);
|
@@ -87,7 +89,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
87
89
|
}, [collapsible]);
|
88
90
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
89
91
|
"aria-labelledby": labelId,
|
90
|
-
className: cx(blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"),
|
92
|
+
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")),
|
91
93
|
ref: ref,
|
92
94
|
role: "complementary"
|
93
95
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("div", {
|
@@ -100,7 +102,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
100
102
|
size: "lg"
|
101
103
|
}, _Close || (_Close = /*#__PURE__*/React__default.createElement(Close, {
|
102
104
|
size: 16
|
103
|
-
})))), (!
|
105
|
+
})))), (!hasMedia && narrow || !narrow) && /*#__PURE__*/React__default.createElement("div", {
|
104
106
|
className: "".concat(blockClass, "__icon-idea"),
|
105
107
|
tabIndex: -1
|
106
108
|
}, _Idea || (_Idea = /*#__PURE__*/React__default.createElement(Idea, {
|
@@ -116,7 +118,7 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
116
118
|
className: "".concat(blockClass, "__secondary-btn")
|
117
119
|
}, action)), (collapsible || tertiaryButtonLabel) && /*#__PURE__*/React__default.createElement("footer", {
|
118
120
|
className: "".concat(blockClass, "__footer")
|
119
|
-
}, collapsible && !
|
121
|
+
}, collapsible && !hasMedia && /*#__PURE__*/React__default.createElement(Button, {
|
120
122
|
className: "".concat(blockClass, "__toggle-btn"),
|
121
123
|
kind: "ghost",
|
122
124
|
size: "md",
|
@@ -135,12 +137,14 @@ var InlineTip = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
135
137
|
size: 16
|
136
138
|
}));
|
137
139
|
}
|
138
|
-
}, tertiaryButtonLabel))),
|
140
|
+
}, tertiaryButtonLabel))), hasMedia && (media === null || media === void 0 ? void 0 : media.render) && /*#__PURE__*/React__default.createElement("div", {
|
139
141
|
className: "".concat(blockClass, "__media")
|
140
|
-
}, media.render()) : /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
142
|
+
}, media.render()), hasMedia && (media === null || media === void 0 ? void 0 : media.filePaths) && /*#__PURE__*/React__default.createElement(SteppedAnimatedMedia, {
|
141
143
|
className: "".concat(blockClass, "__media"),
|
142
144
|
filePaths: media.filePaths
|
143
|
-
})
|
145
|
+
}), hasMedia && renderMedia && /*#__PURE__*/React__default.createElement("div", {
|
146
|
+
className: "".concat(blockClass, "__media")
|
147
|
+
}, renderMedia()));
|
144
148
|
});
|
145
149
|
InlineTip = pkg.checkComponentEnabled(InlineTip, componentName);
|
146
150
|
InlineTip.displayName = componentName;
|
@@ -186,6 +190,7 @@ InlineTip.propTypes = {
|
|
186
190
|
* - If a stepped animation is required, use `{filePaths}`.
|
187
191
|
*
|
188
192
|
* Enabling `media` disables the `collapsible` feature.
|
193
|
+
* @deprecated please use the `renderMedia` prop
|
189
194
|
*/
|
190
195
|
/**@ts-ignore*/
|
191
196
|
media: PropTypes.oneOfType([PropTypes.shape({
|
@@ -206,6 +211,10 @@ InlineTip.propTypes = {
|
|
206
211
|
* Function to call when the InlineTip is closed via the "X" button.
|
207
212
|
*/
|
208
213
|
onClose: PropTypes.func,
|
214
|
+
/**
|
215
|
+
* Optional prop to render any media like images or animated media.
|
216
|
+
*/
|
217
|
+
renderMedia: PropTypes.func,
|
209
218
|
/**
|
210
219
|
* Defining the label will show a the tertiary button with the crossroads icon.
|
211
220
|
* You will still need to define the `onClose` method to trigger a callback.
|
@@ -184,14 +184,13 @@ var InterstitialScreen = /*#__PURE__*/React__default.forwardRef(function (_ref,
|
|
184
184
|
className // Apply any supplied class names to the main HTML element.
|
185
185
|
),
|
186
186
|
size: "lg",
|
187
|
-
onClose:
|
187
|
+
onClose: handleClose,
|
188
188
|
open: isOpen,
|
189
189
|
ref: _forwardedRef,
|
190
190
|
"aria-label": interstitialAriaLabel
|
191
191
|
}, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement(ModalHeader, {
|
192
192
|
className: cx(headerBlockClass, headerTitle && "".concat(headerBlockClass, "--has-title"), headerClassName),
|
193
|
-
iconDescription: closeIconDescription
|
194
|
-
buttonOnClick: handleClose
|
193
|
+
iconDescription: closeIconDescription
|
195
194
|
}, headerTitle && (_h || (_h = /*#__PURE__*/React__default.createElement("h2", null, headerTitle))), !hideProgressIndicator && /*#__PURE__*/React__default.createElement("div", {
|
196
195
|
className: "".concat(blockClass, "--progress")
|
197
196
|
}, /*#__PURE__*/React__default.createElement(ProgressIndicator, {
|
package/es/components/Nav/Nav.js
CHANGED
@@ -17,6 +17,10 @@ import { pkg } from '../../settings.js';
|
|
17
17
|
var _excluded = ["activeHref", "className", "children", "heading", "label"];
|
18
18
|
var componentName = 'Nav';
|
19
19
|
var blockClass = "".concat(pkg.prefix, "--nav");
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @deprecated This component is deprecated
|
23
|
+
*/
|
20
24
|
var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
21
25
|
var activeHref = _ref.activeHref,
|
22
26
|
className = _ref.className,
|
@@ -121,6 +125,10 @@ var Nav = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
121
125
|
return (child === null || child === void 0 || (_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === NavList.displayName ? buildNewListChild(child, index) : buildNewItemChild(child, index);
|
122
126
|
})));
|
123
127
|
});
|
128
|
+
Nav.deprecated = {
|
129
|
+
level: 'warn',
|
130
|
+
details: "This component is deprecated"
|
131
|
+
};
|
124
132
|
Nav.propTypes = {
|
125
133
|
/**
|
126
134
|
* Hypertext reference for active page.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
*/
|
7
7
|
|
8
8
|
import { objectSpread2 as _objectSpread2, objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, defineProperty as _defineProperty, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
-
import { Button, Tooltip, Tag, usePrefix, FlexGrid, Row, Column } from '@carbon/react';
|
9
|
+
import { Button, Tooltip, Tag, usePrefix, FlexGrid, Row, Column, DefinitionTooltip } from '@carbon/react';
|
10
10
|
import React__default, { useState, useRef, useEffect } from 'react';
|
11
11
|
import { string_required_if_more_than_10_tags, TagSet } from '../TagSet/TagSet.js';
|
12
12
|
import { spacing, baseFontSize, breakpoints } from '@carbon/layout';
|
@@ -19,6 +19,7 @@ import cx from 'classnames';
|
|
19
19
|
import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
|
20
20
|
import { pkg } from '../../settings.js';
|
21
21
|
import { useResizeObserver } from '../../global/js/hooks/useResizeObserver.js';
|
22
|
+
import { checkHeightOverflow } from '../../global/js/utils/checkForOverflow.js';
|
22
23
|
import { useNearestScroll } from '../../global/js/hooks/useWindowScroll.js';
|
23
24
|
import { useWindowResize } from '../../global/js/hooks/useWindowResize.js';
|
24
25
|
import { BreadcrumbWithOverflow } from '../BreadcrumbWithOverflow/BreadcrumbWithOverflow.js';
|
@@ -361,6 +362,12 @@ var PageHeader = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
361
362
|
}
|
362
363
|
};
|
363
364
|
var displayedBreadcrumbs = getBreadcrumbs();
|
365
|
+
var subtitleRef = useRef(null);
|
366
|
+
var isOverflowing = checkHeightOverflow(subtitleRef.current);
|
367
|
+
var subtitleContent = /*#__PURE__*/React__default.createElement("span", {
|
368
|
+
ref: subtitleRef,
|
369
|
+
className: "".concat(blockClass, "__subtitle-text")
|
370
|
+
}, subtitle);
|
364
371
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
365
372
|
className: "".concat(blockClass, "--offset-top-measuring-element"),
|
366
373
|
ref: offsetTopMeasuringRef
|
@@ -412,11 +419,14 @@ var PageHeader = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
412
419
|
blockClass: blockClass,
|
413
420
|
hasBreadcrumbRow: hasBreadcrumbRow,
|
414
421
|
title: title
|
415
|
-
}) : null), thePageActions(false, pageActionsInBreadcrumbRow)) : null, subtitle
|
422
|
+
}) : null), thePageActions(false, pageActionsInBreadcrumbRow)) : null, subtitle && /*#__PURE__*/React__default.createElement(Row, {
|
416
423
|
className: "".concat(blockClass, "__subtitle-row")
|
417
424
|
}, /*#__PURE__*/React__default.createElement(Column, {
|
418
425
|
className: "".concat(blockClass, "__subtitle")
|
419
|
-
},
|
426
|
+
}, isOverflowing ? /*#__PURE__*/React__default.createElement(DefinitionTooltip, {
|
427
|
+
definition: subtitle,
|
428
|
+
className: "".concat(blockClass, "__subtitle-tooltip")
|
429
|
+
}, subtitleContent) : subtitleContent)), children ? /*#__PURE__*/React__default.createElement(Row, {
|
420
430
|
className: "".concat(blockClass, "__available-row")
|
421
431
|
}, /*#__PURE__*/React__default.createElement(Column, {
|
422
432
|
className: "".concat(blockClass, "__available-column")
|
@@ -5,12 +5,13 @@
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*/
|
7
7
|
|
8
|
-
import { objectWithoutProperties as _objectWithoutProperties,
|
9
|
-
import React__default, {
|
8
|
+
import { objectWithoutProperties as _objectWithoutProperties, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
|
9
|
+
import React__default, { useRef } from 'react';
|
10
10
|
import PropTypes from '../../_virtual/index.js';
|
11
11
|
import cx from 'classnames';
|
12
12
|
import { SkeletonText, DefinitionTooltip } from '@carbon/react';
|
13
13
|
import { EditInPlace } from '../EditInPlace/EditInPlace.js';
|
14
|
+
import { checkWidthOverflow } from '../../global/js/utils/checkForOverflow.js';
|
14
15
|
|
15
16
|
var _excluded = ["text", "content", "loading", "icon", "asText", "onChange", "onSave", "editDescription", "editableLabel", "cancelDescription", "saveDescription", "tooltipAlignment"];
|
16
17
|
|
@@ -43,31 +44,18 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
|
|
43
44
|
rest = _objectWithoutProperties(title, _excluded);
|
44
45
|
var titleText;
|
45
46
|
var isEditable = !!onSave;
|
46
|
-
var
|
47
|
-
|
48
|
-
isEllipsisApplied = _useState2[0],
|
49
|
-
setIsEllipsisApplied = _useState2[1];
|
50
|
-
var longTitleRef = useRef(undefined);
|
51
|
-
var titleRef = useRef(undefined);
|
52
|
-
useLayoutEffect(function () {
|
53
|
-
setIsEllipsisApplied(isEllipsisActive());
|
54
|
-
}, [longTitleRef, titleRef, title]);
|
55
|
-
var isEllipsisActive = function isEllipsisActive() {
|
56
|
-
if (longTitleRef.current) {
|
57
|
-
var _longTitleRef$current, _longTitleRef$current2;
|
58
|
-
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);
|
59
|
-
} else if (titleRef.current) {
|
60
|
-
var _titleRef$current, _titleRef$current2;
|
61
|
-
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);
|
62
|
-
}
|
63
|
-
return false;
|
64
|
-
};
|
47
|
+
var titleRef = useRef();
|
48
|
+
var isEllipsisApplied = checkWidthOverflow(titleRef.current);
|
65
49
|
if (text || !content) {
|
66
50
|
if (text === undefined && typeof title === 'string') {
|
67
51
|
text = title;
|
68
52
|
asText = title;
|
69
53
|
}
|
70
54
|
var TitleIcon = icon;
|
55
|
+
var titleContent = /*#__PURE__*/React__default.createElement("span", {
|
56
|
+
ref: titleRef,
|
57
|
+
className: "".concat(blockClass, "__titleText")
|
58
|
+
}, text);
|
71
59
|
titleInnards = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon && !loading ? /*#__PURE__*/React__default.createElement("span", {
|
72
60
|
className: "".concat(blockClass, "__title-icon-wrapper")
|
73
61
|
}, /*#__PURE__*/React__default.createElement(TitleIcon, {
|
@@ -90,14 +78,7 @@ var PageHeaderTitle = function PageHeaderTitle(_ref) {
|
|
90
78
|
align: tooltipAlignment,
|
91
79
|
definition: text,
|
92
80
|
className: "".concat(blockClass, "__tooltip")
|
93
|
-
},
|
94
|
-
ref: longTitleRef,
|
95
|
-
className: "".concat(blockClass, "__titleText")
|
96
|
-
}, text)) : /*#__PURE__*/React__default.createElement("span", {
|
97
|
-
ref: titleRef,
|
98
|
-
className: "".concat(blockClass, "__titleText"),
|
99
|
-
title: !loading ? asText : null
|
100
|
-
}, text));
|
81
|
+
}, titleContent) : titleContent);
|
101
82
|
} else {
|
102
83
|
titleInnards = content;
|
103
84
|
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
|
}
|
@@ -13,16 +13,14 @@ import { pkg } from '../../settings.js';
|
|
13
13
|
import { prepareProps } from '../../global/js/utils/props-helper.js';
|
14
14
|
import { Card } from '../Card/Card.js';
|
15
15
|
|
16
|
-
var _excluded = ["actionsPlacement"
|
16
|
+
var _excluded = ["actionsPlacement"];
|
17
17
|
var componentName = 'ProductiveCard';
|
18
18
|
var ProductiveCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
19
19
|
var _ref$actionsPlacement = _ref.actionsPlacement,
|
20
20
|
actionsPlacement = _ref$actionsPlacement === void 0 ? 'top' : _ref$actionsPlacement,
|
21
|
-
iconDescription = _ref.iconDescription,
|
22
21
|
rest = _objectWithoutProperties(_ref, _excluded);
|
23
22
|
var validProps = prepareProps(rest, ['media', 'mediaPosition', 'pictogram', 'primaryButtonClick', 'productive', 'secondaryButtonKind']);
|
24
23
|
return /*#__PURE__*/React__default.createElement(Card, _extends({}, _objectSpread2(_objectSpread2({}, validProps), {}, {
|
25
|
-
iconDescription: iconDescription,
|
26
24
|
actionsPlacement: actionsPlacement,
|
27
25
|
ref: ref,
|
28
26
|
productive: true
|
@@ -48,10 +46,6 @@ ProductiveCard.propTypes = {
|
|
48
46
|
* Determines if the action icons are on the top or bottom of the card
|
49
47
|
*/
|
50
48
|
actionsPlacement: PropTypes.oneOf(['top', 'bottom']),
|
51
|
-
/**
|
52
|
-
* 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.
|
53
|
-
*/
|
54
|
-
aiLabel: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
55
49
|
/**
|
56
50
|
* Content that shows in the body of the card
|
57
51
|
*/
|
@@ -64,12 +58,19 @@ ProductiveCard.propTypes = {
|
|
64
58
|
* Designates which zones of the card are clickable. Refer to design documentation for implementation guidelines
|
65
59
|
*/
|
66
60
|
clickZone: PropTypes.oneOf(['one', 'two', 'three']),
|
61
|
+
/**
|
62
|
+
* Optional prop that allows you to pass any component.
|
63
|
+
*/
|
64
|
+
decorator: PropTypes.oneOfType([PropTypes.node, PropTypes.bool]),
|
67
65
|
/**
|
68
66
|
* Optional header description
|
69
67
|
*/
|
70
68
|
description: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.node]),
|
71
69
|
/**
|
72
|
-
*
|
70
|
+
* Sets the text for the OverflowMenu trigger button tooltip and OverflowMenu aria label,
|
71
|
+
* gets overridden by the `overflowAriaLabel` prop.
|
72
|
+
*
|
73
|
+
* @deprecated Please use the `overflowAriaLabel` prop instead.
|
73
74
|
*/
|
74
75
|
iconDescription: PropTypes.string,
|
75
76
|
/**
|
@@ -99,7 +100,8 @@ ProductiveCard.propTypes = {
|
|
99
100
|
onKeyDown: PropTypes.func
|
100
101
|
})),
|
101
102
|
/**
|
102
|
-
*
|
103
|
+
* Sets the text for the OverflowMenu aria label and the OverflowMenu trigger button tooltip.
|
104
|
+
* Overrides `iconDescription` prop.
|
103
105
|
*/
|
104
106
|
overflowAriaLabel: PropTypes.string,
|
105
107
|
/**
|
@@ -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
|
*/
|