@atlaskit/smart-card 27.5.4 → 27.6.0
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/CHANGELOG.md +12 -0
- package/compass.yml +0 -1
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/components/Action.js +5 -3
- package/dist/cjs/view/BlockCard/components/ActionList.js +7 -5
- package/dist/cjs/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/cjs/view/BlockCard/components/Content.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/cjs/view/BlockCard/components/ContentHeader.js +8 -7
- package/dist/cjs/view/BlockCard/components/Emoji.js +11 -8
- package/dist/cjs/view/BlockCard/components/Frame.js +7 -1
- package/dist/cjs/view/BlockCard/components/Link.js +5 -4
- package/dist/cjs/view/BlockCard/components/Name.js +22 -16
- package/dist/cjs/view/BlockCard/components/Provider.js +25 -19
- package/dist/cjs/view/BlockCard/components/Thumbnail.js +7 -4
- package/dist/cjs/view/BlockCard/components/UnresolvedText.js +5 -4
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/cjs/view/BlockCard/views/ResolvingView.js +7 -6
- package/dist/cjs/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/cjs/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/cjs/view/BlockCard/views/styled.js +2 -1
- package/dist/cjs/view/EmbedCard/components/Frame.js +11 -10
- package/dist/cjs/view/EmbedCard/components/styled.js +47 -24
- package/dist/cjs/view/EmbedCard/views/ErroredView.js +16 -14
- package/dist/cjs/view/EmbedCard/views/unresolved-view/styled.js +10 -0
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/cjs/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/actions/view-related-links-action/index.js +30 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/cjs/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/cjs/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/cjs/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/cjs/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/cjs/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +10 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/cjs/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/cjs/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/cjs/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/cjs/view/FlexibleCard/components/utils.js +12 -0
- package/dist/cjs/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/cjs/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/cjs/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/cjs/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/cjs/view/HoverCard/components/views/resolving/styled.js +7 -0
- package/dist/cjs/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/cjs/view/HoverCard/styled.js +16 -7
- package/dist/cjs/view/InlineCard/Frame/styled.js +2 -2
- package/dist/cjs/view/InlineCard/Icon.js +2 -2
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/cjs/view/InlineCard/styled.js +7 -4
- package/dist/cjs/view/LinkUrl/LinkWarningModal/styled.js +1 -0
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/RelatedLinksModal/index.js +20 -0
- package/dist/cjs/view/RelatedLinksModal/types.js +1 -0
- package/dist/cjs/view/common/Byline.js +5 -1
- package/dist/cjs/view/common/Icon.js +8 -1
- package/dist/cjs/view/common/Metadata.js +18 -15
- package/dist/cjs/view/common/MetadataList.js +11 -9
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/cjs/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/cjs/view/common/ai-prism/index.js +4 -1
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/components/Action.js +6 -4
- package/dist/es2019/view/BlockCard/components/ActionList.js +8 -6
- package/dist/es2019/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/es2019/view/BlockCard/components/Content.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/es2019/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/es2019/view/BlockCard/components/Emoji.js +12 -9
- package/dist/es2019/view/BlockCard/components/Frame.js +7 -1
- package/dist/es2019/view/BlockCard/components/Link.js +6 -5
- package/dist/es2019/view/BlockCard/components/Name.js +33 -25
- package/dist/es2019/view/BlockCard/components/Provider.js +26 -20
- package/dist/es2019/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/es2019/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/es2019/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/es2019/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/es2019/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/es2019/view/BlockCard/views/styled.js +2 -1
- package/dist/es2019/view/EmbedCard/components/Frame.js +12 -11
- package/dist/es2019/view/EmbedCard/components/styled.js +47 -22
- package/dist/es2019/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/es2019/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/es2019/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/actions/view-related-links-action/index.js +20 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/es2019/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/es2019/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/es2019/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/elements/icon/index.js +9 -2
- package/dist/es2019/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/es2019/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/es2019/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/es2019/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/es2019/view/FlexibleCard/components/utils.js +12 -0
- package/dist/es2019/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/es2019/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/es2019/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/es2019/view/HoverCard/components/views/resolving/index.js +29 -26
- package/dist/es2019/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/es2019/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/es2019/view/HoverCard/styled.js +11 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +5 -2
- package/dist/es2019/view/InlineCard/Icon.js +2 -2
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/es2019/view/InlineCard/styled.js +7 -4
- package/dist/es2019/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/RelatedLinksModal/index.js +14 -0
- package/dist/es2019/view/RelatedLinksModal/types.js +0 -0
- package/dist/es2019/view/common/Byline.js +5 -1
- package/dist/es2019/view/common/Icon.js +8 -1
- package/dist/es2019/view/common/Metadata.js +19 -16
- package/dist/es2019/view/common/MetadataList.js +12 -10
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/es2019/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/es2019/view/common/ai-prism/index.js +4 -1
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/components/Action.js +6 -4
- package/dist/esm/view/BlockCard/components/ActionList.js +8 -6
- package/dist/esm/view/BlockCard/components/CollaboratorList.js +24 -21
- package/dist/esm/view/BlockCard/components/Content.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentFooter.js +2 -1
- package/dist/esm/view/BlockCard/components/ContentHeader.js +9 -8
- package/dist/esm/view/BlockCard/components/Emoji.js +12 -9
- package/dist/esm/view/BlockCard/components/Frame.js +7 -1
- package/dist/esm/view/BlockCard/components/Link.js +6 -5
- package/dist/esm/view/BlockCard/components/Name.js +23 -17
- package/dist/esm/view/BlockCard/components/Provider.js +26 -20
- package/dist/esm/view/BlockCard/components/Thumbnail.js +8 -5
- package/dist/esm/view/BlockCard/components/UnresolvedText.js +6 -5
- package/dist/esm/view/BlockCard/views/ResolvedView.js +1 -0
- package/dist/esm/view/BlockCard/views/ResolvingView.js +8 -7
- package/dist/esm/view/BlockCard/views/flexible/styled.js +13 -0
- package/dist/esm/view/BlockCard/views/flexible/utils/withFlexibleUIBlockCardStyle.js +6 -3
- package/dist/esm/view/BlockCard/views/styled.js +2 -1
- package/dist/esm/view/EmbedCard/components/Frame.js +12 -11
- package/dist/esm/view/EmbedCard/components/styled.js +47 -24
- package/dist/esm/view/EmbedCard/views/ErroredView.js +17 -15
- package/dist/esm/view/EmbedCard/views/unresolved-view/styled.js +11 -0
- package/dist/esm/view/EmbedModal/components/link-info/index.js +26 -21
- package/dist/esm/view/EmbedModal/components/link-info/styled.js +9 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +4 -0
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +8 -1
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +1 -0
- package/dist/esm/view/FlexibleCard/components/actions/view-related-links-action/index.js +25 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/ai-state-indicator/ai-state-done.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/feature-discovery/index.js +7 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-summary-block/resolved/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +19 -2
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/errored/index.js +12 -2
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/blocks/title-block/resolving/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/blocks/utils.js +7 -2
- package/dist/esm/view/FlexibleCard/components/common/loading-skeleton/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/container/index.js +11 -1
- package/dist/esm/view/FlexibleCard/components/container/layered-link/index.js +3 -0
- package/dist/esm/view/FlexibleCard/components/elements/atlaskit-badge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/avatar-group/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/badge/index.js +2 -1
- package/dist/esm/view/FlexibleCard/components/elements/date-time/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/elements/icon/index.js +22 -13
- package/dist/esm/view/FlexibleCard/components/elements/link/index.js +13 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/index.js +12 -7
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-error/styled.js +11 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-items-group/index.js +1 -1
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/lozenge-action-trigger/index.js +1 -0
- package/dist/esm/view/FlexibleCard/components/elements/lozenge/lozenge-action/styled.js +7 -1
- package/dist/esm/view/FlexibleCard/components/elements/media/index.js +2 -0
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +3 -1
- package/dist/esm/view/FlexibleCard/components/elements/text/index.js +4 -1
- package/dist/esm/view/FlexibleCard/components/utils.js +12 -0
- package/dist/esm/view/HoverCard/components/ContentContainer.js +6 -2
- package/dist/esm/view/HoverCard/components/CustomPopupContainer.js +5 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/styled.js +6 -0
- package/dist/esm/view/HoverCard/components/views/resolved/styled.js +5 -1
- package/dist/esm/view/HoverCard/components/views/resolving/index.js +31 -28
- package/dist/esm/view/HoverCard/components/views/resolving/styled.js +8 -0
- package/dist/esm/view/HoverCard/components/views/unauthorised/styled.js +7 -0
- package/dist/esm/view/HoverCard/styled.js +16 -7
- package/dist/esm/view/InlineCard/Frame/styled.js +2 -2
- package/dist/esm/view/InlineCard/Icon.js +2 -2
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +18 -10
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +1 -1
- package/dist/esm/view/InlineCard/styled.js +7 -4
- package/dist/esm/view/LinkUrl/LinkWarningModal/styled.js +2 -0
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/RelatedLinksModal/index.js +13 -0
- package/dist/esm/view/RelatedLinksModal/types.js +0 -0
- package/dist/esm/view/common/Byline.js +5 -1
- package/dist/esm/view/common/Icon.js +8 -1
- package/dist/esm/view/common/Metadata.js +19 -16
- package/dist/esm/view/common/MetadataList.js +12 -10
- package/dist/esm/view/common/ai-prism/ai-glowing-border/animated-svg-container.js +2 -0
- package/dist/esm/view/common/ai-prism/ai-glowing-border/index.js +3 -0
- package/dist/esm/view/common/ai-prism/index.js +4 -1
- package/dist/types/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types/view/RelatedLinksModal/types.d.ts +5 -0
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-stack-item/action-button.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/view-related-links-action/index.d.ts +1 -1
- package/dist/types-ts4.5/view/RelatedLinksModal/index.d.ts +4 -0
- package/dist/types-ts4.5/view/RelatedLinksModal/types.d.ts +5 -0
- package/package.json +183 -191
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export const triggerButtonStyles = css({
|
|
3
4
|
all: 'unset',
|
|
4
5
|
backgroundColor: 'transparent',
|
|
@@ -14,6 +15,7 @@ export const triggerButtonStyles = css({
|
|
|
14
15
|
textTransform: 'unset',
|
|
15
16
|
border: '2px solid transparent',
|
|
16
17
|
margin: "var(--ds-space-025, 2px)",
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
19
|
"&:focus-visible, &:focus-within, &[aria-expanded='true']": {
|
|
18
20
|
outline: 'none',
|
|
19
21
|
boxShadow: `0 0 0 2px ${"var(--ds-border-focused, #388BFF)"}`,
|
|
@@ -21,17 +23,21 @@ export const triggerButtonStyles = css({
|
|
|
21
23
|
}
|
|
22
24
|
});
|
|
23
25
|
|
|
24
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
27
|
export const triggerLozengeStyles = css({
|
|
26
28
|
alignItems: 'center',
|
|
27
29
|
display: 'flex',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
31
|
"span[role='img']": {
|
|
29
32
|
margin: `${"var(--ds-space-negative-050, -4px)"} ${"var(--ds-space-negative-100, -8px)"} ${"var(--ds-space-negative-050, -4px)"} -1px`
|
|
30
33
|
}
|
|
31
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
32
37
|
export const dropdownItemGroupStyles = css({
|
|
33
38
|
maxHeight: '300px',
|
|
34
39
|
overflowY: 'auto',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
41
|
button: {
|
|
36
42
|
padding: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
37
43
|
minHeight: '28px',
|
|
@@ -25,6 +25,7 @@ const styles = css({
|
|
|
25
25
|
position: 'relative',
|
|
26
26
|
overflow: 'hidden'
|
|
27
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
29
|
'> img, > span': {
|
|
29
30
|
minHeight: '100%',
|
|
30
31
|
minWidth: '100%',
|
|
@@ -62,6 +63,7 @@ const Media = ({
|
|
|
62
63
|
return null;
|
|
63
64
|
}
|
|
64
65
|
return jsx("div", {
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
65
67
|
css: [styles, overrideCss],
|
|
66
68
|
"data-smart-element": name,
|
|
67
69
|
"data-smart-element-media": type,
|
|
@@ -11,7 +11,9 @@ const getSnippetStyles = overrideCss => css({
|
|
|
11
11
|
MozUserSelect: 'text',
|
|
12
12
|
MsUserSelect: 'text',
|
|
13
13
|
userSelect: 'text'
|
|
14
|
-
},
|
|
14
|
+
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
overrideCss);
|
|
15
17
|
const SnippetElement = ({
|
|
16
18
|
content: overrideContent,
|
|
17
19
|
maxLines = SNIPPET_DEFAULT_MAX_LINES,
|
|
@@ -7,7 +7,9 @@ const getStyles = maxLines => css({
|
|
|
7
7
|
fontSize: '0.75rem',
|
|
8
8
|
lineHeight: '1rem',
|
|
9
9
|
whiteSpace: 'normal'
|
|
10
|
-
},
|
|
10
|
+
},
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
+
getTruncateStyles(maxLines));
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* A base element that displays some Text.
|
|
@@ -27,6 +29,7 @@ const Text = ({
|
|
|
27
29
|
return null;
|
|
28
30
|
}
|
|
29
31
|
return jsx("span", {
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
33
|
css: [getStyles(maxLines), overrideCss],
|
|
31
34
|
"data-separator": true,
|
|
32
35
|
"data-smart-element": name,
|
|
@@ -32,11 +32,17 @@ export const getFormattedMessageAsString = (intl, message, context) => {
|
|
|
32
32
|
}) : '';
|
|
33
33
|
};
|
|
34
34
|
const getIconDimensionStyles = value => css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
36
|
height: value,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
38
|
minHeight: value,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
40
|
maxHeight: value,
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
42
|
width: value,
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
44
|
minWidth: value,
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
46
|
maxWidth: value
|
|
41
47
|
});
|
|
42
48
|
export const getIconSizeStyles = width => {
|
|
@@ -92,6 +98,7 @@ export const getLinkSizeStyles = size => {
|
|
|
92
98
|
fontSize: '1.25rem',
|
|
93
99
|
fontWeight: 400,
|
|
94
100
|
letterSpacing: '-0.008em',
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
95
102
|
lineHeight: getLinkLineHeight(size)
|
|
96
103
|
});
|
|
97
104
|
case SmartLinkSize.Large:
|
|
@@ -100,6 +107,7 @@ export const getLinkSizeStyles = size => {
|
|
|
100
107
|
fontSize: '0.875rem',
|
|
101
108
|
fontWeight: 400,
|
|
102
109
|
letterSpacing: '-0.003em',
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
103
111
|
lineHeight: getLinkLineHeight(size)
|
|
104
112
|
});
|
|
105
113
|
case SmartLinkSize.Small:
|
|
@@ -108,6 +116,7 @@ export const getLinkSizeStyles = size => {
|
|
|
108
116
|
fontSize: '0.75rem',
|
|
109
117
|
fontWeight: 400,
|
|
110
118
|
letterSpacing: '0em',
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
111
120
|
lineHeight: getLinkLineHeight(size)
|
|
112
121
|
});
|
|
113
122
|
}
|
|
@@ -174,10 +183,13 @@ export const getTruncateStyles = (maxLines, lineHeight = '1rem', wordBreak = 'br
|
|
|
174
183
|
display: '-webkit-box',
|
|
175
184
|
overflow: 'hidden',
|
|
176
185
|
textOverflow: 'ellipsis',
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
177
187
|
wordBreak: wordBreak,
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
189
|
WebkitLineClamp: maxLines,
|
|
179
190
|
WebkitBoxOrient: 'vertical',
|
|
180
191
|
'@supports not (-webkit-line-clamp: 1)': {
|
|
192
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
193
|
maxHeight: `calc(${maxLines} * ${lineHeight})`
|
|
182
194
|
}
|
|
183
195
|
});
|
|
@@ -46,7 +46,9 @@ const ConnectedAIPrismContainer = ({
|
|
|
46
46
|
}, [status]);
|
|
47
47
|
const container = jsx("div", _extends({
|
|
48
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
49
|
-
className: hoverCardClassName
|
|
49
|
+
className: hoverCardClassName
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
51
|
+
,
|
|
50
52
|
css: [HoverCardContainer, !isAIEnabled ? popupContainerStyles : undefined],
|
|
51
53
|
"data-testid": testId
|
|
52
54
|
}, props), children);
|
|
@@ -71,7 +73,9 @@ const ContentContainer = ({
|
|
|
71
73
|
}
|
|
72
74
|
return jsx("div", _extends({
|
|
73
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
74
|
-
className: hoverCardClassName
|
|
76
|
+
className: hoverCardClassName
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
78
|
+
,
|
|
75
79
|
css: HoverCardContainer,
|
|
76
80
|
"data-testid": testId
|
|
77
81
|
}, props), children);
|
|
@@ -14,7 +14,11 @@ const CustomPopupContainer = /*#__PURE__*/React.forwardRef(({
|
|
|
14
14
|
children,
|
|
15
15
|
...props
|
|
16
16
|
}, ref) => jsx("div", _extends({
|
|
17
|
-
css:
|
|
17
|
+
css:
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
+
getBooleanFF('platform.linking-platform.smart-card.hover-card-ai-summaries') ? undefined :
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
21
|
+
popupContainerStyles
|
|
18
22
|
}, props, {
|
|
19
23
|
ref: ref
|
|
20
24
|
}), children));
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
const titleFontWeight = '600';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
5
|
export const titleBlockStyles = css({
|
|
4
6
|
justifyContent: 'center',
|
|
5
7
|
fontWeight: titleFontWeight,
|
|
6
8
|
marginTop: "var(--ds-space-100, 8px)"
|
|
7
9
|
});
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
12
|
export const mainTextStyles = css({
|
|
9
13
|
display: 'inline',
|
|
10
14
|
justifyContent: 'center',
|
|
@@ -12,6 +16,8 @@ export const mainTextStyles = css({
|
|
|
12
16
|
fontSize: '0.75rem',
|
|
13
17
|
textAlign: 'center'
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
21
|
export const connectButtonStyles = css({
|
|
16
22
|
justifyContent: 'center',
|
|
17
23
|
marginTop: "var(--ds-space-100, 8px)"
|
|
@@ -2,7 +2,7 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { separatorCss } from '../../../styled';
|
|
3
3
|
const elementGap = '0.5rem';
|
|
4
4
|
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
5
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
6
|
export const metadataBlockCss = css`
|
|
7
7
|
gap: 0px;
|
|
8
8
|
/* primary element group */
|
|
@@ -30,9 +30,13 @@ export const metadataBlockCss = css`
|
|
|
30
30
|
line-height: 1rem;
|
|
31
31
|
}
|
|
32
32
|
`;
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
33
35
|
export const footerBlockCss = css({
|
|
34
36
|
height: '1.5rem'
|
|
35
37
|
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
40
|
export const hiddenSnippetStyles = css({
|
|
37
41
|
visibility: 'hidden',
|
|
38
42
|
position: 'absolute'
|
|
@@ -22,31 +22,34 @@ const HoverCardLoadingView = ({
|
|
|
22
22
|
items: actions,
|
|
23
23
|
visibleButtonsNum: 2
|
|
24
24
|
});
|
|
25
|
-
return
|
|
26
|
-
css
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
return (
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
27
|
+
jsx("div", {
|
|
28
|
+
css: loadingViewContainer,
|
|
29
|
+
"data-testid": testId
|
|
30
|
+
}, jsx("div", {
|
|
31
|
+
css: skeletonContainer
|
|
32
|
+
}, jsx(CustomBlock, _extends({}, titleBlockProps, {
|
|
33
|
+
overrideCss: titleBlockStyles,
|
|
34
|
+
testId: `${testId}-title-block`
|
|
35
|
+
}), jsx(Icon, {
|
|
36
|
+
render: () => jsx(LoadingSkeleton, null),
|
|
37
|
+
size: size
|
|
38
|
+
}), jsx("span", {
|
|
39
|
+
css: getTitleStyles(lineHeightRem),
|
|
40
|
+
"data-testid": `${testId}-title`
|
|
41
|
+
}, jsx(LoadingSkeleton, {
|
|
42
|
+
height: lineHeightRem
|
|
43
|
+
})), actionGroup), jsx(LoadingSkeleton, {
|
|
44
|
+
width: skeletonWidth,
|
|
45
|
+
height: lineHeightRem
|
|
46
|
+
}), jsx(LoadingSkeleton, {
|
|
47
|
+
width: skeletonWidth,
|
|
48
|
+
height: lineHeightRem * 3
|
|
49
|
+
}), jsx(LoadingSkeleton, {
|
|
50
|
+
width: skeletonWidth,
|
|
51
|
+
height: lineHeightRem
|
|
52
|
+
})))
|
|
53
|
+
);
|
|
51
54
|
};
|
|
52
55
|
export default HoverCardLoadingView;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const loadingViewContainer = css({
|
|
3
5
|
display: 'flex',
|
|
4
6
|
flexDirection: 'column',
|
|
5
7
|
padding: "var(--ds-space-200, 1rem)"
|
|
6
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
7
11
|
export const skeletonContainer = css({
|
|
8
12
|
display: 'flex',
|
|
9
13
|
flexDirection: 'column',
|
|
@@ -14,12 +18,16 @@ export const skeletonContainer = css({
|
|
|
14
18
|
export const getTitleStyles = height => {
|
|
15
19
|
return css({
|
|
16
20
|
flex: '1 0 auto',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
22
|
height: `${height}rem`,
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
24
|
span: {
|
|
19
25
|
width: '100%'
|
|
20
26
|
}
|
|
21
27
|
});
|
|
22
28
|
};
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
31
|
export const titleBlockStyles = css({
|
|
24
32
|
width: '100%',
|
|
25
33
|
gap: "var(--ds-space-100, 0.5rem)"
|
|
@@ -2,16 +2,23 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
const blockGap = '0.5rem';
|
|
3
3
|
const iconGap = '0.5rem';
|
|
4
4
|
const titleFontWeight = '500';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
7
|
export const connectButtonStyles = css({
|
|
6
8
|
justifyContent: 'flex-end',
|
|
7
9
|
marginTop: blockGap
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
13
|
export const titleBlockStyles = css({
|
|
10
14
|
gap: `${blockGap} ${iconGap}`,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
16
|
a: {
|
|
12
17
|
fontWeight: titleFontWeight
|
|
13
18
|
}
|
|
14
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
22
|
export const mainTextStyles = css({
|
|
16
23
|
marginTop: blockGap,
|
|
17
24
|
fontSize: '0.75rem'
|
|
@@ -19,13 +19,16 @@ export const NEW_CARD_WIDTH_REM = 25;
|
|
|
19
19
|
export const CARD_GAP_PX = 10;
|
|
20
20
|
const blockGap = '0.5rem';
|
|
21
21
|
const elementGap = '0.5rem';
|
|
22
|
+
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
24
|
export const separatorCss = css({
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'[data-separator] + [data-separator]:before': {
|
|
24
27
|
marginRight: elementGap
|
|
25
28
|
}
|
|
26
29
|
});
|
|
27
30
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
29
32
|
export const HoverCardContainer = css`
|
|
30
33
|
background: none;
|
|
31
34
|
border-width: 0;
|
|
@@ -37,7 +40,7 @@ export const HoverCardContainer = css`
|
|
|
37
40
|
}
|
|
38
41
|
`;
|
|
39
42
|
|
|
40
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
41
44
|
export const titleBlockCss = css`
|
|
42
45
|
gap: ${blockGap};
|
|
43
46
|
|
|
@@ -62,14 +65,19 @@ export const titleBlockCss = css`
|
|
|
62
65
|
`;
|
|
63
66
|
export const getTransitionStyles = snippetHeight => css({
|
|
64
67
|
transition: 'height 300ms ease-in-out',
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
69
|
height: `${snippetHeight}px`
|
|
66
70
|
});
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
67
73
|
export const popupContainerStyles = css({
|
|
68
74
|
borderRadius: "var(--ds-border-radius-200, 8px)",
|
|
69
75
|
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
70
76
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px rgba(9, 30, 66, 0.15),0px 0px 1px rgba(9, 30, 66, 0.31))"
|
|
71
77
|
});
|
|
72
|
-
export const getPreviewBlockStyles = previewHeight =>
|
|
78
|
+
export const getPreviewBlockStyles = previewHeight =>
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
80
|
+
css(previewHeight ? `height: ${previewHeight}px;` : '', {
|
|
73
81
|
borderTopLeftRadius: "var(--ds-border-radius-200, 8px)",
|
|
74
82
|
borderTopRightRadius: "var(--ds-border-radius-200, 8px)",
|
|
75
83
|
marginBottom: blockGap
|
|
@@ -91,15 +91,18 @@ const baseWrapperStyles = props => ({
|
|
|
91
91
|
...(props.isHovered ? hoveredWihBorderStyles(props) : undefined)
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
95
95
|
export const WrapperAnchor = styled.a(props => ({
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
96
97
|
...baseWrapperStyles(props),
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
97
99
|
...isInteractive(props)
|
|
98
100
|
}));
|
|
99
101
|
WrapperAnchor.displayName = 'WrapperAnchor';
|
|
100
102
|
|
|
101
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
|
|
102
104
|
export const WrapperSpan = styled.span(props => ({
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
103
106
|
...baseWrapperStyles(props)
|
|
104
107
|
}));
|
|
105
108
|
WrapperSpan.displayName = 'WrapperSpan';
|
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
// Current rationale: vertically positioned at the top of
|
|
8
8
|
// the smart card container (when set to 0). Offset this
|
|
9
9
|
// to position it with appropriate whitespace from the top.
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
export const Icon = styled.img({
|
|
12
12
|
height: '14px',
|
|
13
13
|
width: '14px',
|
|
@@ -23,7 +23,7 @@ export const Icon = styled.img({
|
|
|
23
23
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
24
24
|
// are less than that in height/width.
|
|
25
25
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
27
|
export const AKIconWrapper = styled.span({
|
|
28
28
|
marginRight: "var(--ds-space-negative-025, -2px)"
|
|
29
29
|
});
|
|
@@ -39,23 +39,31 @@ export const IconOverrides = `
|
|
|
39
39
|
// - @atlaskit/icon-object: for object icons, e.g. repository, branch, etc.
|
|
40
40
|
// NB: the first set of overrides style icons imported from @atlaskit/icon-object correctly.
|
|
41
41
|
// NB: the second set of overrides style icons imported from @atlaskit/icon correctly.
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
43
|
export const IconWrapper = styled.span({
|
|
44
44
|
userSelect: 'none'
|
|
45
|
-
},
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
IconOverrides,
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
|
+
IconObjectOverrides);
|
|
46
50
|
|
|
47
51
|
// Wraps all emoji in Inline Links similar to icon
|
|
48
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
49
53
|
export const EmojiWrapper = styled.span({
|
|
50
54
|
display: 'inline-block',
|
|
51
55
|
marginRight: "var(--ds-space-025, 2px)",
|
|
52
56
|
userSelect: 'none'
|
|
53
|
-
},
|
|
57
|
+
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
|
+
IconOverrides,
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
+
IconObjectOverrides);
|
|
54
62
|
|
|
55
63
|
// The main 'wrapping' element, title of the content.
|
|
56
64
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
57
65
|
// NB: `word-break` line breaks as soon as an overflow takes place.
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
59
67
|
export const IconTitleWrapper = styled.span({
|
|
60
68
|
whiteSpace: 'pre-wrap',
|
|
61
69
|
wordBreak: 'break-all',
|
|
@@ -64,14 +72,14 @@ export const IconTitleWrapper = styled.span({
|
|
|
64
72
|
});
|
|
65
73
|
|
|
66
74
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
67
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
68
76
|
export const LozengeWrapper = styled.span({
|
|
69
77
|
display: 'inline-block',
|
|
70
78
|
verticalAlign: '1px',
|
|
71
79
|
margin: `0 ${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-025, 2px)"}`
|
|
72
80
|
});
|
|
73
81
|
|
|
74
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
83
|
export const RightIconPositionWrapper = styled.span({
|
|
76
84
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
77
85
|
position: 'relative',
|
|
@@ -81,14 +89,14 @@ export const RightIconPositionWrapper = styled.span({
|
|
|
81
89
|
// The following components are used to absolutely position icons in the vertical center.
|
|
82
90
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
83
91
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
84
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
85
93
|
export const IconPositionWrapper = styled.span({
|
|
86
94
|
marginRight: "var(--ds-space-050, 4px)",
|
|
87
95
|
position: 'relative',
|
|
88
96
|
display: 'inline-block'
|
|
89
97
|
});
|
|
90
98
|
|
|
91
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
92
100
|
export const IconEmptyWrapper = styled.span({
|
|
93
101
|
width: '14px',
|
|
94
102
|
height: '100%',
|
|
@@ -100,5 +108,5 @@ export const IconEmptyWrapper = styled.span({
|
|
|
100
108
|
// To achieve same result we use classname instead.
|
|
101
109
|
export const TitleWrapperClassName = 'smart-link-title-wrapper';
|
|
102
110
|
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-empty-styled-expression -- Ignored via go/DSP-18766
|
|
104
112
|
export const TitleWrapper = styled.span({});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
2
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const SpinnerWrapper = styled(IconTitleWrapper)({
|
|
6
6
|
verticalAlign: 'text-bottom',
|
|
7
7
|
padding: '0px'
|
|
@@ -2,8 +2,9 @@ import styled from '@emotion/styled';
|
|
|
2
2
|
import { B400, N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
// By default buttons will hide overflow and ellipsis content instead of wrapping.
|
|
4
4
|
// This basically turns the button back into inline content
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
6
|
export const IconStyledButton = styled.span({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
7
8
|
'&&&': {
|
|
8
9
|
textAlign: 'initial',
|
|
9
10
|
display: 'inline',
|
|
@@ -15,11 +16,13 @@ export const IconStyledButton = styled.span({
|
|
|
15
16
|
backgroundClip: 'padding-box',
|
|
16
17
|
boxDecorationBreak: 'clone'
|
|
17
18
|
},
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
20
|
'> span': {
|
|
19
21
|
display: 'inline',
|
|
20
22
|
overflow: 'initial',
|
|
21
23
|
textOverflow: 'initial',
|
|
22
24
|
whiteSpace: 'initial',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'> span': {
|
|
24
27
|
overflow: 'initial',
|
|
25
28
|
textOverflow: 'initial',
|
|
@@ -28,18 +31,18 @@ export const IconStyledButton = styled.span({
|
|
|
28
31
|
}
|
|
29
32
|
});
|
|
30
33
|
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
35
|
export const NoLinkAppearance = styled.span({
|
|
33
36
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
34
37
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
35
38
|
});
|
|
36
39
|
|
|
37
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
38
41
|
export const LowercaseAppearance = styled.span({
|
|
39
42
|
textTransform: 'lowercase'
|
|
40
43
|
});
|
|
41
44
|
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled --
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
43
46
|
export const LinkAppearance = styled.a({
|
|
44
47
|
color: `var(--ds-link, ${B400})`,
|
|
45
48
|
'&:hover': {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const breakWordsCss = css({
|
|
3
5
|
whiteSpace: 'pre-line',
|
|
4
6
|
wordBreak: 'break-all'
|
|
@@ -7,7 +7,7 @@ import { useLinkWarningModal } from './LinkWarningModal/hooks/use-link-warning-m
|
|
|
7
7
|
import LinkWarningModal from './LinkWarningModal';
|
|
8
8
|
const PACKAGE_DATA = {
|
|
9
9
|
packageName: "@atlaskit/smart-card",
|
|
10
|
-
packageVersion: "27.
|
|
10
|
+
packageVersion: "27.6.0",
|
|
11
11
|
componentName: 'linkUrl'
|
|
12
12
|
};
|
|
13
13
|
const Link = withLinkClickedEvent('a');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import RelatedLinksBaseModal from './components/RelatedLinksBaseModal';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { RelatedLinksUnavailableView } from './views/unavailable';
|
|
4
|
+
const RelatedLinksModal = ({
|
|
5
|
+
onClose,
|
|
6
|
+
showModal,
|
|
7
|
+
url
|
|
8
|
+
}) => {
|
|
9
|
+
return /*#__PURE__*/React.createElement(RelatedLinksBaseModal, {
|
|
10
|
+
onClose: onClose,
|
|
11
|
+
showModal: showModal
|
|
12
|
+
}, /*#__PURE__*/React.createElement(RelatedLinksUnavailableView, null));
|
|
13
|
+
};
|
|
14
|
+
export default RelatedLinksModal;
|
|
File without changes
|
|
@@ -8,12 +8,15 @@ export const Byline = ({
|
|
|
8
8
|
testId,
|
|
9
9
|
className
|
|
10
10
|
}) => jsx("span", {
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
12
|
css: mq({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
14
|
fontSize: gs(1.5),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
16
|
lineHeight: gs(2.5),
|
|
14
17
|
color: `${`var(--ds-text-subtlest, ${N300})`}`,
|
|
15
18
|
fontWeight: 'normal',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
20
|
marginTop: gs(0.5),
|
|
18
21
|
// Spec: only allow two lines MAX to be shown.
|
|
19
22
|
display: '-webkit-box',
|
|
@@ -23,6 +26,7 @@ export const Byline = ({
|
|
|
23
26
|
WebkitBoxOrient: 'vertical',
|
|
24
27
|
wordBreak: 'break-word',
|
|
25
28
|
// Fallback options.
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
30
|
maxHeight: gs(5),
|
|
27
31
|
whiteSpace: 'pre-line',
|
|
28
32
|
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|