@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
@@ -15,8 +15,8 @@
|
|
15
15
|
* instead of many individual rules.
|
16
16
|
*/
|
17
17
|
|
18
|
-
/* stylelint-disable carbon/layout-
|
19
|
-
/* stylelint-disable carbon/theme-
|
18
|
+
/* stylelint-disable carbon/layout-use */
|
19
|
+
/* stylelint-disable carbon/theme-use */
|
20
20
|
/* stylelint-disable declaration-no-important */
|
21
21
|
/* stylelint-disable function-no-unknown */
|
22
22
|
/* stylelint-disable max-nesting-depth */
|
@@ -177,7 +177,7 @@ $purple: #7f3ae7;
|
|
177
177
|
}
|
178
178
|
|
179
179
|
.#{$block-class} .#{$block-class}__close-icon {
|
180
|
-
padding: to-rem(6px) 0 0
|
180
|
+
padding: to-rem(6px) 0 0;
|
181
181
|
block-size: $spacing-07;
|
182
182
|
color: $white-0;
|
183
183
|
inline-size: $spacing-07;
|
@@ -221,7 +221,7 @@ $purple: #7f3ae7;
|
|
221
221
|
// Repeating here.
|
222
222
|
svg {
|
223
223
|
position: absolute;
|
224
|
-
right:
|
224
|
+
right: $spacing-05;
|
225
225
|
width: 1rem;
|
226
226
|
height: 1rem;
|
227
227
|
flex-shrink: 0;
|
@@ -87,7 +87,7 @@ $one-grid-column: calc(100% / 16);
|
|
87
87
|
&--container {
|
88
88
|
min-width: 47rem;
|
89
89
|
max-width: 82rem;
|
90
|
-
margin: calc($spacing-10 * 2) auto; // stylelint-disable-line carbon/layout-
|
90
|
+
margin: calc($spacing-10 * 2) auto; // stylelint-disable-line carbon/layout-use
|
91
91
|
background-color: $background;
|
92
92
|
}
|
93
93
|
|
@@ -220,17 +220,17 @@ $one-grid-column: calc(100% / 16);
|
|
220
220
|
height: $spacing-09;
|
221
221
|
padding-left: $spacing-05;
|
222
222
|
border-bottom: 1px solid $border-subtle-01;
|
223
|
-
/* stylelint-disable-next-line carbon/theme-
|
223
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
224
224
|
background-color: $gray-100;
|
225
|
-
/* stylelint-disable-next-line carbon/theme-
|
225
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
226
226
|
color: $gray-10;
|
227
|
-
/* stylelint-disable-next-line carbon/type-
|
227
|
+
/* stylelint-disable-next-line carbon/type-use */
|
228
228
|
font-weight: normal !important; // overrides type style above
|
229
|
-
/* stylelint-disable-next-line carbon/type-
|
229
|
+
/* stylelint-disable-next-line carbon/type-use */
|
230
230
|
line-height: $spacing-09 !important;
|
231
231
|
|
232
232
|
b {
|
233
|
-
/* stylelint-disable-next-line carbon/type-
|
233
|
+
/* stylelint-disable-next-line carbon/type-use */
|
234
234
|
font-weight: 600;
|
235
235
|
}
|
236
236
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
/* stylelint-disable carbon/layout-
|
8
|
+
/* stylelint-disable carbon/layout-use */
|
9
9
|
/* stylelint-disable function-no-unknown */
|
10
10
|
|
11
11
|
// Standard imports.
|
@@ -70,7 +70,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--non-linear-reading;
|
|
70
70
|
}
|
71
71
|
// The "up" chevron
|
72
72
|
.#{$block-class} .#{$block-class}__keyword svg {
|
73
|
-
margin: to-rem(1px) 0 0
|
73
|
+
margin: to-rem(1px) 0 0;
|
74
74
|
vertical-align: text-top;
|
75
75
|
}
|
76
76
|
|
@@ -23,7 +23,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
23
23
|
@keyframes fade-in {
|
24
24
|
0% {
|
25
25
|
opacity: 0;
|
26
|
-
// stylelint-disable-next-line carbon/layout-
|
26
|
+
// stylelint-disable-next-line carbon/layout-use
|
27
27
|
transform: translateY(-38.5rem); // the height of the notification panel
|
28
28
|
}
|
29
29
|
|
@@ -41,7 +41,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
41
41
|
|
42
42
|
100% {
|
43
43
|
opacity: 0;
|
44
|
-
// stylelint-disable-next-line carbon/layout-
|
44
|
+
// stylelint-disable-next-line carbon/layout-use
|
45
45
|
transform: translateY(-38.5rem); // the height of the notification panel
|
46
46
|
}
|
47
47
|
}
|
@@ -93,7 +93,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--notifications-panel;
|
|
93
93
|
|
94
94
|
position: sticky;
|
95
95
|
z-index: 2;
|
96
|
-
// stylelint-disable-next-line carbon/layout-
|
96
|
+
// stylelint-disable-next-line carbon/layout-use
|
97
97
|
top: 4.8125rem;
|
98
98
|
padding: $spacing-03 $spacing-05;
|
99
99
|
background-color: $layer-01;
|
@@ -121,12 +121,12 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
121
121
|
}
|
122
122
|
|
123
123
|
.#{$block-class}__summary--warn svg path[fill='none'] {
|
124
|
-
/* stylelint-disable-next-line carbon/theme-
|
124
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
125
125
|
fill: $black-100;
|
126
126
|
}
|
127
127
|
|
128
128
|
.#{$block-class}__summary--warn svg path[fill='none'] {
|
129
|
-
/* stylelint-disable-next-line carbon/theme-
|
129
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
130
130
|
fill: $black-100;
|
131
131
|
}
|
132
132
|
|
@@ -134,7 +134,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
134
134
|
overflow: hidden;
|
135
135
|
height: max-content;
|
136
136
|
// spacing-05 + toggle width
|
137
|
-
// stylelint-disable-next-line carbon/layout-
|
137
|
+
// stylelint-disable-next-line carbon/layout-use
|
138
138
|
padding-right: calc(#{$spacing-05} + 2rem);
|
139
139
|
text-overflow: ellipsis;
|
140
140
|
white-space: nowrap;
|
@@ -149,7 +149,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
149
149
|
.#{$block-class}__content {
|
150
150
|
padding-right: $spacing-05;
|
151
151
|
// spacing-05 + chevron size + spacing-05
|
152
|
-
// stylelint-disable-next-line carbon/layout-
|
152
|
+
// stylelint-disable-next-line carbon/layout-use
|
153
153
|
padding-left: calc(#{$spacing-05} * 2 + 1rem);
|
154
154
|
}
|
155
155
|
|
@@ -208,14 +208,12 @@ $block-class: #{c4p-settings.$pkg-prefix}--options-tile;
|
|
208
208
|
|
209
209
|
.#{$block-class}--lg .#{$block-class}__toggle {
|
210
210
|
// "top" shouldn't be spacing token as it depends on the toggle size
|
211
|
-
|
212
|
-
top: 1rem;
|
211
|
+
top: $spacing-05;
|
213
212
|
}
|
214
213
|
|
215
214
|
.#{$block-class}--xl .#{$block-class}__toggle {
|
216
215
|
// "top" shouldn't be spacing token as it depends on the toggle size
|
217
|
-
|
218
|
-
top: 1.5rem;
|
216
|
+
top: $spacing-06;
|
219
217
|
}
|
220
218
|
|
221
219
|
.#{$block-class}--lg .#{$block-class}__summary {
|
@@ -38,27 +38,27 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
38
38
|
|
39
39
|
@keyframes background-appear {
|
40
40
|
from {
|
41
|
-
/* stylelint-disable-next-line carbon/theme-
|
41
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
42
42
|
background-color: var(--from-color);
|
43
43
|
}
|
44
44
|
|
45
45
|
to {
|
46
|
-
/* stylelint-disable-next-line carbon/theme-
|
46
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
47
47
|
background-color: var(--to-color);
|
48
48
|
}
|
49
49
|
}
|
50
50
|
@keyframes background-and-shadow-appear {
|
51
51
|
from {
|
52
|
-
/* stylelint-disable-next-line carbon/theme-
|
52
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
53
53
|
background-color: var(--from-color);
|
54
|
-
/* stylelint-disable-next-line carbon/theme-
|
54
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
55
55
|
box-shadow: 0 1px 0 var(--from-color);
|
56
56
|
}
|
57
57
|
|
58
58
|
to {
|
59
|
-
/* stylelint-disable-next-line carbon/theme-
|
59
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
60
60
|
background-color: var(--to-color);
|
61
|
-
/* stylelint-disable-next-line carbon/theme-
|
61
|
+
/* stylelint-disable-next-line carbon/theme-use */
|
62
62
|
box-shadow: 0 1px 0 var(--to-color-shadow);
|
63
63
|
}
|
64
64
|
}
|
@@ -69,11 +69,11 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
69
69
|
$to-color: $layer-01,
|
70
70
|
$to-color-shadow: $layer-accent-01
|
71
71
|
) {
|
72
|
-
// stylelint-disable-next-line carbon/theme-
|
72
|
+
// stylelint-disable-next-line carbon/theme-use
|
73
73
|
--from-color: #{$from-color};
|
74
|
-
// stylelint-disable-next-line carbon/theme-
|
74
|
+
// stylelint-disable-next-line carbon/theme-use
|
75
75
|
--to-color: #{$to-color};
|
76
|
-
// stylelint-disable-next-line carbon/theme-
|
76
|
+
// stylelint-disable-next-line carbon/theme-use
|
77
77
|
--to-color-shadow: #{$to-color-shadow};
|
78
78
|
|
79
79
|
position: absolute;
|
@@ -107,7 +107,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
107
107
|
/* z-index used to raise above any position relative content as per Carbon header */
|
108
108
|
/* dropped 1 below Carbon header so as not to overlay the side panel */
|
109
109
|
z-index: $z-index-header-minus;
|
110
|
-
/* stylelint-disable-next-line carbon/layout-
|
110
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
111
111
|
top: var(--#{$block-class}--header-top);
|
112
112
|
display: inline-block; /* cause top/bottom margin to reserve space */
|
113
113
|
width: 100%;
|
@@ -417,7 +417,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
417
417
|
|
418
418
|
.#{$block-class}__breadcrumb-row--has-breadcrumbs
|
419
419
|
+ .#{$block-class}__title-row--sticky {
|
420
|
-
// stylelint-disable-next-line carbon/layout-
|
420
|
+
// stylelint-disable-next-line carbon/layout-use
|
421
421
|
top: calc(
|
422
422
|
var(--#{$block-class}--breadcrumb-top) - var(--title-row-margin-top)
|
423
423
|
);
|
@@ -473,8 +473,10 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
473
473
|
|
474
474
|
.#{$block-class}__title-icon {
|
475
475
|
margin-right: $spacing-04;
|
476
|
-
// stylelint-disable-next-line carbon/layout-
|
477
|
-
transform: translateY(
|
476
|
+
// stylelint-disable-next-line carbon/layout-use
|
477
|
+
transform: translateY(
|
478
|
+
-$spacing-01
|
479
|
+
); // positional tweak requested by design review
|
478
480
|
|
479
481
|
vertical-align: middle;
|
480
482
|
}
|
@@ -536,14 +538,8 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
536
538
|
}
|
537
539
|
|
538
540
|
.#{$block-class}__subtitle-row {
|
539
|
-
display: -webkit-box;
|
540
|
-
overflow: hidden;
|
541
|
-
max-width: 100%;
|
542
541
|
margin-top: $spacing-03;
|
543
542
|
|
544
|
-
-webkit-box-orient: vertical;
|
545
|
-
-webkit-line-clamp: 2;
|
546
|
-
|
547
543
|
@include breakpoint-up('md') {
|
548
544
|
max-width: $left-section-std-width;
|
549
545
|
}
|
@@ -557,6 +553,24 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
557
553
|
@include type.type-style('body-01');
|
558
554
|
}
|
559
555
|
|
556
|
+
.#{$block-class}__subtitle-tooltip .#{$carbon-prefix}--definition-term {
|
557
|
+
border-bottom: 0;
|
558
|
+
letter-spacing: inherit;
|
559
|
+
}
|
560
|
+
|
561
|
+
// overwrites the existing styles to make the popover bigger because in some cases the narrow space can be too constricting for the header
|
562
|
+
.#{$block-class}__subtitle-tooltip
|
563
|
+
.#{$carbon-prefix}--popover-content.#{$carbon-prefix}--definition-tooltip {
|
564
|
+
max-inline-size: fit-content;
|
565
|
+
}
|
566
|
+
|
567
|
+
.#{$block-class}__subtitle-text {
|
568
|
+
display: -webkit-box;
|
569
|
+
overflow: hidden;
|
570
|
+
-webkit-box-orient: vertical;
|
571
|
+
-webkit-line-clamp: 2;
|
572
|
+
}
|
573
|
+
|
560
574
|
.#{$block-class}__available-row {
|
561
575
|
@include type.type-style('body-01');
|
562
576
|
|
@@ -667,3 +681,8 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
667
681
|
.#{$block-class}__button-set-menu-options.#{$carbon-prefix}--overflow-menu-options {
|
668
682
|
z-index: $z-index-header-minus;
|
669
683
|
}
|
684
|
+
|
685
|
+
.#{$block-class}__button-set-menu-options
|
686
|
+
> button.#{$carbon-prefix}--menu-button__trigger {
|
687
|
+
min-inline-size: 0;
|
688
|
+
}
|
@@ -52,9 +52,9 @@ $block-class: #{c4p-settings.$pkg-prefix}--card;
|
|
52
52
|
|
53
53
|
.#{$block-class}__actions-header-ghost-button {
|
54
54
|
min-height: $spacing-07;
|
55
|
-
// stylelint-disable-next-line carbon/layout-
|
55
|
+
// stylelint-disable-next-line carbon/layout-use
|
56
56
|
padding-right: calc($spacing-01 + $spacing-03);
|
57
|
-
// stylelint-disable-next-line carbon/layout-
|
57
|
+
// stylelint-disable-next-line carbon/layout-use
|
58
58
|
padding-left: calc($spacing-01 + $spacing-03);
|
59
59
|
|
60
60
|
/* stylelint-disable-next-line max-nesting-depth */
|
@@ -5,6 +5,9 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
+
@use 'sass:list';
|
9
|
+
@use 'sass:map';
|
10
|
+
|
8
11
|
// Other Carbon settings.
|
9
12
|
@use '@carbon/styles/scss/theme' as *;
|
10
13
|
@use '@carbon/styles/scss/spacing' as *;
|
@@ -22,12 +25,11 @@
|
|
22
25
|
// SidePanel uses the following IBM Products components:
|
23
26
|
// ActionSet
|
24
27
|
@use '../ActionSet/action-set';
|
25
|
-
@use 'sass:list';
|
26
28
|
|
27
29
|
$block-class: #{c4p-settings.$pkg-prefix}--side-panel;
|
28
30
|
$action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
29
31
|
|
30
|
-
@mixin setPanelSize($size: map
|
32
|
+
@mixin setPanelSize($size: map.get($side-panel-sizes, md)) {
|
31
33
|
/* any value is single value list */
|
32
34
|
width: list.nth($size, 1);
|
33
35
|
@if list.length($size) > 1 {
|
@@ -51,7 +53,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
51
53
|
@mixin setCommonTitleStyles() {
|
52
54
|
display: -webkit-box;
|
53
55
|
overflow: hidden;
|
54
|
-
/* stylelint-disable-next-line carbon/layout-
|
56
|
+
/* stylelint-disable-next-line carbon/layout-use -- custom css property set below */
|
55
57
|
padding-right: var(--#{$block-class}--title-padding-right);
|
56
58
|
-webkit-box-orient: vertical;
|
57
59
|
-webkit-line-clamp: 2;
|
@@ -110,7 +112,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
110
112
|
border-right: 1px solid $border-subtle-02;
|
111
113
|
}
|
112
114
|
&.#{$block-class}.#{$block-class}--has-slug,
|
113
|
-
&.#{$block-class}.#{$block-class}--has-ai-label
|
115
|
+
&.#{$block-class}.#{$block-class}--has-ai-label,
|
116
|
+
&.#{$block-class}.#{$block-class}--has-decorator {
|
114
117
|
border-color: transparent;
|
115
118
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
116
119
|
0 4px 10px 2px $ai-drop-shadow;
|
@@ -121,7 +124,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
121
124
|
|
122
125
|
position: sticky;
|
123
126
|
z-index: 4;
|
124
|
-
/* stylelint-disable-next-line carbon/layout-
|
127
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
125
128
|
top: calc(-1px * var(--#{$block-class}--scroll-animation-distance));
|
126
129
|
min-height: $spacing-08;
|
127
130
|
padding: $spacing-05;
|
@@ -197,14 +200,16 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
197
200
|
&.#{$block-class}:has(.#{$block-class}__action-toolbar),
|
198
201
|
&.#{$block-class}--has-action-toolbar,
|
199
202
|
&.#{$block-class}--has-slug,
|
200
|
-
&.#{$block-class}--has-ai-label
|
203
|
+
&.#{$block-class}--has-ai-label,
|
204
|
+
&.#{$block-class}--has-decorator {
|
201
205
|
--#{$block-class}--title-padding-right: #{$spacing-10};
|
202
206
|
}
|
203
207
|
|
204
208
|
&.#{$block-class}:has(.#{$block-class}__action-toolbar),
|
205
209
|
&.#{$block-class}--has-action-toolbar {
|
206
210
|
&.#{$block-class}--has-slug,
|
207
|
-
&.#{$block-class}--has-ai-label
|
211
|
+
&.#{$block-class}--has-ai-label,
|
212
|
+
&.#{$block-class}--has-decorator {
|
208
213
|
--#{$block-class}--title-padding-right: #{$spacing-11};
|
209
214
|
}
|
210
215
|
}
|
@@ -217,7 +222,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
217
222
|
.#{$block-class}__title {
|
218
223
|
position: sticky;
|
219
224
|
z-index: 4;
|
220
|
-
/* stylelint-disable-next-line carbon/layout-
|
225
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
221
226
|
top: var(--#{$block-class}--title-stop);
|
222
227
|
|
223
228
|
/* border-bottom used instead of padding which wrapped text shows through */
|
@@ -234,7 +239,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
234
239
|
}
|
235
240
|
|
236
241
|
.#{$block-class}__title--no-label .#{$block-class}__title-text {
|
237
|
-
/* stylelint-disable-next-line carbon/layout-
|
242
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
238
243
|
transform: translateY(
|
239
244
|
calc(
|
240
245
|
-1 * #{$spacing-05} * var(--#{$block-class}--scroll-animation-progress)
|
@@ -261,13 +266,12 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
261
266
|
@include setCommonTitleStyles();
|
262
267
|
|
263
268
|
position: absolute;
|
264
|
-
/* stylelint-disable-next-line carbon/layout-token-use */
|
265
269
|
top: 0;
|
266
270
|
opacity: var(--#{$block-class}--scroll-animation-progress);
|
267
271
|
}
|
268
272
|
|
269
273
|
.#{$block-class}__title--no-label .#{$block-class}__collapsed-title-text {
|
270
|
-
/* stylelint-disable-next-line carbon/layout-
|
274
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
271
275
|
transform: translateY(
|
272
276
|
calc(
|
273
277
|
#{$spacing-05} * (1 - var(--#{$block-class}--scroll-animation-progress))
|
@@ -312,7 +316,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
312
316
|
}
|
313
317
|
|
314
318
|
&.#{$block-class}--has-slug .#{$block-class}--scrolls,
|
315
|
-
&.#{$block-class}--has-ai-label .#{$block-class}--scrolls
|
319
|
+
&.#{$block-class}--has-ai-label .#{$block-class}--scrolls,
|
320
|
+
&.#{$block-class}--has-decorator .#{$block-class}--scrolls {
|
316
321
|
@include utilities.ai-popover-gradient('default', 0, 'layer');
|
317
322
|
|
318
323
|
box-shadow: inset 0 -80px 70px -65px $ai-inner-shadow,
|
@@ -367,7 +372,8 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
367
372
|
}
|
368
373
|
|
369
374
|
.#{$block-class}__slug-and-close,
|
370
|
-
.#{$block-class}__ai-label-and-close
|
375
|
+
.#{$block-class}__ai-label-and-close,
|
376
|
+
.#{$block-class}__decorator-and-close {
|
371
377
|
position: absolute;
|
372
378
|
z-index: 10; /* must be higher than title container border bottom */
|
373
379
|
top: 0;
|
@@ -409,7 +415,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
409
415
|
}
|
410
416
|
&.#{$block-class}.#{$block-class}--xs
|
411
417
|
.#{$block-class}__actions-container.#{$action-set-block-class}--sm {
|
412
|
-
@include setPanelSize(map
|
418
|
+
@include setPanelSize(map.get($side-panel-sizes, xs));
|
413
419
|
}
|
414
420
|
}
|
415
421
|
|
@@ -453,7 +459,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
453
459
|
height: 1px;
|
454
460
|
padding: 0;
|
455
461
|
border: 0;
|
456
|
-
// stylelint-disable-next-line carbon/layout-
|
462
|
+
// stylelint-disable-next-line carbon/layout-use
|
457
463
|
margin: -1px;
|
458
464
|
clip: rect(0, 0, 0, 0);
|
459
465
|
visibility: inherit;
|
@@ -469,8 +475,9 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
|
|
469
475
|
inset: 0;
|
470
476
|
}
|
471
477
|
|
478
|
+
/* stylelint-disable-next-line carbon/theme-token-use */
|
472
479
|
.#{$block-class}--has-slug + .#{$block-class}__overlay,
|
473
|
-
.#{$block-class}--has-ai-label + .#{$block-class}__overlay
|
474
|
-
|
480
|
+
.#{$block-class}--has-ai-label + .#{$block-class}__overlay,
|
481
|
+
.#{$block-class}--has-decorator + .#{$block-class}__overlay {
|
475
482
|
background-color: $ai-overlay;
|
476
483
|
}
|
@@ -5,6 +5,8 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
+
@use 'sass:map';
|
9
|
+
|
8
10
|
// Standard imports.
|
9
11
|
@use '@carbon/react/scss/colors' as *;
|
10
12
|
@use '../../global/styles/project-settings' as *;
|
@@ -74,8 +76,8 @@ $themes: ('light', 'dark');
|
|
74
76
|
$block-class: #{$pkg-prefix}--status-icon;
|
75
77
|
|
76
78
|
@function carbon-clr($name, $theme: light) {
|
77
|
-
// stylelint-disable-next-line carbon/theme-
|
78
|
-
$color: map
|
79
|
+
// stylelint-disable-next-line carbon/theme-use
|
80
|
+
$color: map.get(map.get($colors, $name), $theme);
|
79
81
|
@return $color;
|
80
82
|
}
|
81
83
|
|
@@ -96,7 +98,7 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
96
98
|
|
97
99
|
.#{$block-class}--light.#{$block-class}--light-minor-warning,
|
98
100
|
.#{$block-class}--dark.#{$block-class}--dark-minor-warning {
|
99
|
-
// stylelint-disable-next-line carbon/theme-
|
101
|
+
// stylelint-disable-next-line carbon/theme-use
|
100
102
|
fill: $yellow-20;
|
101
103
|
}
|
102
104
|
|
@@ -106,7 +108,7 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
106
108
|
.#{$block-class}--light.#{$block-class}--light-minor-warning
|
107
109
|
path:nth-of-type(1),
|
108
110
|
.#{$block-class}--dark.#{$block-class}--dark-minor-warning path:nth-of-type(1) {
|
109
|
-
// stylelint-disable-next-line carbon/theme-
|
111
|
+
// stylelint-disable-next-line carbon/theme-use
|
110
112
|
fill: $gray-100;
|
111
113
|
}
|
112
114
|
|
@@ -124,13 +126,13 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
124
126
|
}
|
125
127
|
// stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
|
126
128
|
animation: rotating 8000ms infinite linear;
|
127
|
-
// stylelint-disable-next-line carbon/theme-
|
129
|
+
// stylelint-disable-next-line carbon/theme-use
|
128
130
|
fill: carbon-clr($icon, $theme);
|
129
131
|
} @else if $icon == running {
|
130
|
-
// stylelint-disable-next-line carbon/theme-
|
132
|
+
// stylelint-disable-next-line carbon/theme-use
|
131
133
|
fill: carbon-clr($icon, $theme);
|
132
134
|
} @else {
|
133
|
-
// stylelint-disable-next-line carbon/theme-
|
135
|
+
// stylelint-disable-next-line carbon/theme-use
|
134
136
|
fill: carbon-clr($icon, $theme);
|
135
137
|
@media (prefers-reduced-motion) {
|
136
138
|
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-in-progress {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
$block-class: #{$pkg-prefix}--tearsheet;
|
24
24
|
|
25
|
-
// stylelint-disable-next-line carbon/theme-
|
25
|
+
// stylelint-disable-next-line carbon/theme-use
|
26
26
|
$motion-duration: $duration-moderate-02;
|
27
27
|
|
28
28
|
@include block-wrap($block-class) {
|
@@ -105,7 +105,7 @@ $motion-duration: $duration-moderate-02;
|
|
105
105
|
// viewport, capped at 500px to set an upper limit on the movement speed
|
106
106
|
// For the reason for calc() see https://github.com/sass/sass/issues/2849
|
107
107
|
// and https://github.com/sass/node-sass/issues/2815.
|
108
|
-
// stylelint-disable-next-line carbon/layout-
|
108
|
+
// stylelint-disable-next-line carbon/layout-use
|
109
109
|
transform: translate3d(0, calc(min(95vh, 500px)), 0);
|
110
110
|
}
|
111
111
|
|
@@ -289,7 +289,7 @@ $motion-duration: $duration-moderate-02;
|
|
289
289
|
&.#{$block-class}--wide.#{$block-class}--has-ai-label
|
290
290
|
.#{$block-class}__header.#{$block-class}__header--with-close-icon {
|
291
291
|
/* spacing 11 plus additional space for slug/close */
|
292
|
-
/* stylelint-disable-next-line carbon/layout-
|
292
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
293
293
|
padding-inline-end: calc(#{$spacing-11 + $spacing-09});
|
294
294
|
}
|
295
295
|
|
@@ -427,7 +427,6 @@ $motion-duration: $duration-moderate-02;
|
|
427
427
|
|
428
428
|
&.#{$block-class}--has-slug,
|
429
429
|
&.#{$block-class}--has-ai-label {
|
430
|
-
/* stylelint-disable-next-line carbon/theme-token-use */
|
431
430
|
--overlay-color: #{$ai-overlay};
|
432
431
|
}
|
433
432
|
|
@@ -436,7 +435,8 @@ $motion-duration: $duration-moderate-02;
|
|
436
435
|
&.#{$block-class}--has-ai-label:not(.#{$block-class}--has-close)
|
437
436
|
.#{$carbon-prefix}--slug {
|
438
437
|
inset-inline-end: 0;
|
438
|
+
/* stylelint-disable-next-line carbon/layout-use */
|
439
439
|
margin-block: 6px;
|
440
|
-
margin-inline-end:
|
440
|
+
margin-inline-end: $spacing-05;
|
441
441
|
}
|
442
442
|
}
|
@@ -5,6 +5,8 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
+
@use 'sass:map';
|
9
|
+
|
8
10
|
// Standard imports.
|
9
11
|
@use '../../global/styles/project-settings' as *;
|
10
12
|
@use '../../global/styles/mixins';
|
@@ -34,7 +36,7 @@ $sizes: (
|
|
34
36
|
);
|
35
37
|
|
36
38
|
@mixin size($size) {
|
37
|
-
$_size: map
|
39
|
+
$_size: map.get($sizes, $size);
|
38
40
|
|
39
41
|
width: $_size;
|
40
42
|
height: $_size;
|
@@ -60,7 +62,7 @@ $sizes: (
|
|
60
62
|
|
61
63
|
.#{$block-class}__tooltip {
|
62
64
|
&:focus-within .#{$block-class} {
|
63
|
-
// stylelint-disable-next-line carbon/theme-
|
65
|
+
// stylelint-disable-next-line carbon/theme-use
|
64
66
|
outline: 2px solid $focus;
|
65
67
|
outline-offset: 1px;
|
66
68
|
}
|
@@ -72,7 +74,7 @@ $sizes: (
|
|
72
74
|
}
|
73
75
|
|
74
76
|
@mixin setBgColor($color) {
|
75
|
-
// stylelint-disable-next-line carbon/theme-
|
77
|
+
// stylelint-disable-next-line carbon/theme-use
|
76
78
|
background-color: $color;
|
77
79
|
}
|
78
80
|
|
@@ -5,6 +5,8 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
+
@use 'sass:map';
|
9
|
+
|
8
10
|
// Standard imports.
|
9
11
|
@use '@carbon/styles/scss/theme' as *;
|
10
12
|
@use '@carbon/styles/scss/spacing' as *;
|
@@ -24,7 +26,7 @@ $sizes: (
|
|
24
26
|
);
|
25
27
|
|
26
28
|
@mixin size($size) {
|
27
|
-
$_size: map
|
29
|
+
$_size: map.get($sizes, $size);
|
28
30
|
|
29
31
|
width: $_size;
|
30
32
|
height: $_size;
|
@@ -45,9 +47,9 @@ $themes: (
|
|
45
47
|
$theme-keys: map-keys($themes);
|
46
48
|
|
47
49
|
@function carbon-get-background-color($color, $key, $contrast-key) {
|
48
|
-
@return map
|
50
|
+
@return map.get(
|
49
51
|
$carbon-colors,
|
50
|
-
#{$color}#{map
|
52
|
+
#{$color}#{map.get(map.get($themes, $key), #{$contrast-key}-contrast)}
|
51
53
|
);
|
52
54
|
}
|
53
55
|
|
@@ -58,7 +60,7 @@ $theme-keys: map-keys($themes);
|
|
58
60
|
@each $color in $base-colors {
|
59
61
|
@each $contrast-key in $theme-keys {
|
60
62
|
.#{$block-class}--#{$key}.#{$block-class}--#{$contrast-key}-#{$color} {
|
61
|
-
// stylelint-disable-next-line carbon/theme-
|
63
|
+
// stylelint-disable-next-line carbon/theme-use
|
62
64
|
background-color: carbon-get-background-color(
|
63
65
|
$color,
|
64
66
|
$key,
|
@@ -18,7 +18,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
18
18
|
@keyframes web-terminal-entrance {
|
19
19
|
from {
|
20
20
|
opacity: 0;
|
21
|
-
// stylelint-disable-next-line carbon/layout-
|
21
|
+
// stylelint-disable-next-line carbon/layout-use
|
22
22
|
transform: translateX(#{$web-terminal-width});
|
23
23
|
}
|
24
24
|
|
@@ -36,7 +36,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
36
36
|
|
37
37
|
to {
|
38
38
|
opacity: 0;
|
39
|
-
// stylelint-disable-next-line carbon/layout-
|
39
|
+
// stylelint-disable-next-line carbon/layout-use
|
40
40
|
transform: translateX(#{$web-terminal-width});
|
41
41
|
}
|
42
42
|
}
|