@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
|
@@ -16,7 +16,9 @@ const getImageStyles = isFlexibleUi => {
|
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
return css({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
20
|
height: gs(2),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
22
|
width: gs(2)
|
|
21
23
|
});
|
|
22
24
|
};
|
|
@@ -25,7 +27,9 @@ const getSpanStyles = isFlexibleUi => {
|
|
|
25
27
|
return;
|
|
26
28
|
}
|
|
27
29
|
return css({
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
31
|
height: gs(2.5),
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
33
|
width: gs(2),
|
|
30
34
|
display: 'flex',
|
|
31
35
|
alignItems: 'center',
|
|
@@ -45,7 +49,9 @@ export const Icon = ({
|
|
|
45
49
|
testId: `${testId}-default`
|
|
46
50
|
});
|
|
47
51
|
const image = url && jsx(ImageLoader, {
|
|
48
|
-
src: url
|
|
52
|
+
src: url
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
|
+
,
|
|
49
55
|
loaded: jsx("img", {
|
|
50
56
|
css: getImageStyles(isFlexibleUi),
|
|
51
57
|
src: url,
|
|
@@ -54,6 +60,7 @@ export const Icon = ({
|
|
|
54
60
|
errored: placeholder
|
|
55
61
|
});
|
|
56
62
|
return jsx("span", {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
57
64
|
css: getSpanStyles(isFlexibleUi),
|
|
58
65
|
"data-testid": testId
|
|
59
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import Tooltip from '@atlaskit/tooltip';
|
|
4
4
|
import { N300 } from '@atlaskit/theme/colors';
|
|
5
|
+
const wrapperStyles = css({
|
|
6
|
+
display: 'flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
marginRight: "var(--ds-space-050, 4px)"
|
|
9
|
+
});
|
|
10
|
+
const imgStyles = css({
|
|
11
|
+
width: "var(--ds-space-100, 8px)",
|
|
12
|
+
height: "var(--ds-space-100, 8px)"
|
|
13
|
+
});
|
|
14
|
+
const textStyles = css({
|
|
15
|
+
fontSize: "var(--ds-space-150, 12px)",
|
|
16
|
+
color: `${`var(--ds-text-subtlest, ${N300})`}`,
|
|
17
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
18
|
+
marginLeft: "var(--ds-space-025, 2px)"
|
|
19
|
+
});
|
|
5
20
|
export const Metadata = ({
|
|
6
21
|
text,
|
|
7
22
|
icon,
|
|
@@ -12,25 +27,13 @@ export const Metadata = ({
|
|
|
12
27
|
if (!metadataIcon && iconUrl) {
|
|
13
28
|
metadataIcon = jsx("img", {
|
|
14
29
|
src: iconUrl,
|
|
15
|
-
css:
|
|
16
|
-
width: "var(--ds-space-100, 8px)",
|
|
17
|
-
height: "var(--ds-space-100, 8px)"
|
|
18
|
-
}
|
|
30
|
+
css: imgStyles
|
|
19
31
|
});
|
|
20
32
|
}
|
|
21
33
|
const metadata = jsx("div", {
|
|
22
|
-
css:
|
|
23
|
-
display: 'flex',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
marginRight: "var(--ds-space-050, 4px)"
|
|
26
|
-
}
|
|
34
|
+
css: wrapperStyles
|
|
27
35
|
}, metadataIcon, jsx("span", {
|
|
28
|
-
css:
|
|
29
|
-
fontSize: "var(--ds-space-150, 12px)",
|
|
30
|
-
color: `${`var(--ds-text-subtlest, ${N300})`}`,
|
|
31
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
32
|
-
marginLeft: "var(--ds-space-025, 2px)"
|
|
33
|
-
}
|
|
36
|
+
css: textStyles
|
|
34
37
|
}, text));
|
|
35
38
|
if (tooltip) {
|
|
36
39
|
return jsx(Tooltip, {
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { Metadata } from './Metadata';
|
|
5
5
|
import { gs } from './utils';
|
|
6
6
|
export const metadataListClassName = 'smart-link-metadata-list';
|
|
7
|
+
const wrapperStyles = css({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
|
+
marginTop: gs(0.5),
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
|
+
'&:last-child': {
|
|
14
|
+
marginRight: '0px'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
7
17
|
export const MetadataList = ({
|
|
8
18
|
items,
|
|
9
19
|
testId
|
|
10
20
|
}) => {
|
|
11
21
|
return jsx("div", {
|
|
12
|
-
css:
|
|
13
|
-
display: 'flex',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
15
|
-
marginTop: gs(0.5),
|
|
16
|
-
alignItems: 'center',
|
|
17
|
-
'&:last-child': {
|
|
18
|
-
marginRight: '0px'
|
|
19
|
-
}
|
|
20
|
-
},
|
|
22
|
+
css: wrapperStyles,
|
|
21
23
|
"data-testid": testId
|
|
22
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
23
25
|
,
|
|
@@ -5,6 +5,7 @@ import { OUTER_BORDER_RADIUS } from '../constants';
|
|
|
5
5
|
let namespaceUUID = 0;
|
|
6
6
|
const svgStyles = css({
|
|
7
7
|
position: 'absolute',
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
9
|
borderRadius: OUTER_BORDER_RADIUS
|
|
9
10
|
});
|
|
10
11
|
const blurredStyles = css({
|
|
@@ -61,6 +62,7 @@ const AnimatedSvgContainer = ({
|
|
|
61
62
|
return undefined;
|
|
62
63
|
}, [isMoving]);
|
|
63
64
|
return jsx("svg", {
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
64
66
|
css: [svgStyles, isGlowing ? blurredStyles : notBlurredStyles, additionalCss],
|
|
65
67
|
ref: svgRef,
|
|
66
68
|
viewBox: "0 0 24 24",
|
|
@@ -9,7 +9,10 @@ const borderContainerStyles = css({
|
|
|
9
9
|
padding: "var(--ds-space-025, 2px)",
|
|
10
10
|
width: 'fit-content'
|
|
11
11
|
});
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
14
|
export const borderContentStyles = css({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
borderRadius: INNER_BORDER_RADIUS,
|
|
14
17
|
flexGrow: 1,
|
|
15
18
|
zIndex: 1 // needs to be more than the svg container at least
|
|
@@ -27,6 +27,7 @@ const AIPrism = ({
|
|
|
27
27
|
return jsx(AIGlowingBorder, {
|
|
28
28
|
additionalCss: {
|
|
29
29
|
animatedSvgContainer: css({
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
31
|
opacity: isVisible ? 1 : 0,
|
|
31
32
|
transition: 'opacity 0.5s ease'
|
|
32
33
|
})
|
|
@@ -36,7 +37,9 @@ const AIPrism = ({
|
|
|
36
37
|
isMoving: isMoving,
|
|
37
38
|
testId: testId
|
|
38
39
|
}, jsx("div", {
|
|
39
|
-
css: [
|
|
40
|
+
css: [
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
|
+
popupContainerStyles, contentStyles, isVisible ? contentStylesPrismVisible : undefined]
|
|
40
43
|
}, children));
|
|
41
44
|
};
|
|
42
45
|
export default AIPrism;
|
|
@@ -15,7 +15,7 @@ export var ANALYTICS_CHANNEL = 'media';
|
|
|
15
15
|
export var context = {
|
|
16
16
|
componentName: 'smart-cards',
|
|
17
17
|
packageName: "@atlaskit/smart-card",
|
|
18
|
-
packageVersion: "27.
|
|
18
|
+
packageVersion: "27.6.0"
|
|
19
19
|
};
|
|
20
20
|
export var TrackQuickActionType = /*#__PURE__*/function (TrackQuickActionType) {
|
|
21
21
|
TrackQuickActionType["StatusUpdate"] = "StatusUpdate";
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
6
|
import { ActionIcon } from './ActionIcon';
|
|
7
7
|
export var spinnerDelay = 1000;
|
|
8
|
+
var baseTextStyles = css({
|
|
9
|
+
transition: 'opacity 0.3s'
|
|
10
|
+
});
|
|
8
11
|
export var Action = function Action(_ref) {
|
|
9
12
|
var promise = _ref.promise,
|
|
10
13
|
text = _ref.text,
|
|
@@ -37,10 +40,9 @@ export var Action = function Action(_ref) {
|
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
}, jsx("div", {
|
|
40
|
-
css: {
|
|
41
|
-
transition: 'opacity 0.3s',
|
|
43
|
+
css: [baseTextStyles, {
|
|
42
44
|
opacity: state !== 'init' ? 0 : 1
|
|
43
|
-
}
|
|
45
|
+
}]
|
|
44
46
|
}, text), jsx(ActionIcon, {
|
|
45
47
|
state: state
|
|
46
48
|
}));
|
|
@@ -2,7 +2,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
var _excluded = ["triggerRef"];
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
7
7
|
import Button from '@atlaskit/button/standard-button';
|
|
8
8
|
import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdown-menu';
|
|
@@ -10,14 +10,18 @@ import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
|
10
10
|
import { Action } from './Action';
|
|
11
11
|
import { gs, mq } from '../../common/utils';
|
|
12
12
|
import { di } from 'react-magnetic-di';
|
|
13
|
+
var buttonStyles = css({
|
|
14
|
+
height: 'auto'
|
|
15
|
+
});
|
|
13
16
|
export var ActionList = function ActionList(_ref) {
|
|
14
17
|
var items = _ref.items;
|
|
15
18
|
var actionsToShow = items.slice(0, 2);
|
|
16
19
|
var actionsToList = items.slice(2, items.length);
|
|
17
20
|
return jsx("div", {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
22
|
css: mq({
|
|
19
23
|
display: 'flex',
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
24
|
+
// 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
|
|
21
25
|
marginTop: [gs(2), 0]
|
|
22
26
|
})
|
|
23
27
|
}, jsx(ButtonGroup, null, actionsToShow.map(function (action) {
|
|
@@ -25,7 +29,7 @@ export var ActionList = function ActionList(_ref) {
|
|
|
25
29
|
key: action.id
|
|
26
30
|
}, action));
|
|
27
31
|
})), actionsToList.length ?
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
29
33
|
jsx("div", {
|
|
30
34
|
css: {
|
|
31
35
|
marginLeft: gs(0.5)
|
|
@@ -39,9 +43,7 @@ export var ActionList = function ActionList(_ref) {
|
|
|
39
43
|
label: "more"
|
|
40
44
|
}),
|
|
41
45
|
ref: triggerRef,
|
|
42
|
-
css:
|
|
43
|
-
height: 'auto'
|
|
44
|
-
},
|
|
46
|
+
css: buttonStyles,
|
|
45
47
|
testId: "dropdown-trigger"
|
|
46
48
|
}));
|
|
47
49
|
},
|
|
@@ -13,25 +13,28 @@ export var CollaboratorList = function CollaboratorList(_ref) {
|
|
|
13
13
|
if (items.length === 0) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
return
|
|
17
|
-
css
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
event
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
event
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
16
|
+
return (
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
|
+
jsx("span", {
|
|
19
|
+
css: mq({
|
|
20
|
+
display: ['none', 'inherit']
|
|
21
|
+
})
|
|
22
|
+
}, jsx(AvatarGroup, {
|
|
23
|
+
maxCount: 4,
|
|
24
|
+
appearance: "stack",
|
|
25
|
+
size: "small",
|
|
26
|
+
data: items,
|
|
27
|
+
onAvatarClick: function onAvatarClick(event) {
|
|
28
|
+
event.stopPropagation();
|
|
29
|
+
event.preventDefault();
|
|
30
|
+
handleAvatarClick(event);
|
|
31
|
+
},
|
|
32
|
+
onMoreClick: function onMoreClick(event) {
|
|
33
|
+
event.stopPropagation();
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
handleMoreAvatarsClick(event);
|
|
36
|
+
},
|
|
37
|
+
testId: testId
|
|
38
|
+
}))
|
|
39
|
+
);
|
|
37
40
|
};
|
|
@@ -13,8 +13,9 @@ export var Content = function Content(_ref) {
|
|
|
13
13
|
_ref$isCompact = _ref.isCompact,
|
|
14
14
|
isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
|
|
15
15
|
return jsx("div", {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
17
|
css: mq({
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
18
|
+
// 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
|
|
18
19
|
padding: isCompact ? gs(1) : gs(2),
|
|
19
20
|
display: 'flex',
|
|
20
21
|
flexDirection: 'column',
|
|
@@ -7,13 +7,14 @@ export var ContentFooter = function ContentFooter(_ref) {
|
|
|
7
7
|
_ref$hasSpaceBetween = _ref.hasSpaceBetween,
|
|
8
8
|
hasSpaceBetween = _ref$hasSpaceBetween === void 0 ? false : _ref$hasSpaceBetween;
|
|
9
9
|
return jsx("div", {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
10
11
|
css: mq({
|
|
11
12
|
display: 'flex',
|
|
12
13
|
flexDirection: ['column', 'row'],
|
|
13
14
|
flexGrow: [1, 'unset'],
|
|
14
15
|
justifyContent: [hasSpaceBetween ? 'space-between' : 'flex-end', 'space-between'],
|
|
15
16
|
alignItems: ['unset', 'center'],
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
17
|
+
// 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
18
|
marginTop: [gs(1), gs(1.5)]
|
|
18
19
|
})
|
|
19
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
4
4
|
/**
|
|
5
5
|
* Class name for selecting non-flexible block card header
|
|
@@ -8,6 +8,13 @@ import { useMouseDownEvent } from '../../../state/analytics/useLinkClicked';
|
|
|
8
8
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
9
9
|
*/
|
|
10
10
|
export var blockCardContentHeaderClassName = 'block-card-content-header';
|
|
11
|
+
var styles = css({
|
|
12
|
+
display: 'flex',
|
|
13
|
+
alignItems: 'flex-start',
|
|
14
|
+
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
15
|
+
// due to HTML its unwrapping behaviour on paste.
|
|
16
|
+
MozUserSelect: 'none'
|
|
17
|
+
});
|
|
11
18
|
export var ContentHeader = function ContentHeader(_ref) {
|
|
12
19
|
var onClick = _ref.onClick,
|
|
13
20
|
link = _ref.link,
|
|
@@ -18,13 +25,7 @@ export var ContentHeader = function ContentHeader(_ref) {
|
|
|
18
25
|
onMouseDown: onMouseDown,
|
|
19
26
|
href: link,
|
|
20
27
|
target: "_blank",
|
|
21
|
-
css:
|
|
22
|
-
display: 'flex',
|
|
23
|
-
alignItems: 'flex-start',
|
|
24
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
25
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
26
|
-
MozUserSelect: 'none'
|
|
27
|
-
},
|
|
28
|
+
css: styles,
|
|
28
29
|
"data-trello-do-not-use-override": "block-card-content-header"
|
|
29
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
31
|
,
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { gs } from '../../common/utils';
|
|
5
|
+
var styles = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
7
|
+
height: gs(2.5),
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
+
width: gs(2),
|
|
10
|
+
display: 'flex',
|
|
11
|
+
alignItems: 'center',
|
|
12
|
+
justifyContent: 'center',
|
|
13
|
+
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
14
|
+
});
|
|
5
15
|
export var Emoji = function Emoji(_ref) {
|
|
6
16
|
var emoji = _ref.emoji;
|
|
7
17
|
return jsx("span", {
|
|
8
|
-
css:
|
|
9
|
-
height: gs(2.5),
|
|
10
|
-
width: gs(2),
|
|
11
|
-
display: 'flex',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
justifyContent: 'center',
|
|
14
|
-
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
15
|
-
}
|
|
18
|
+
css: styles
|
|
16
19
|
}, emoji);
|
|
17
20
|
};
|
|
@@ -28,13 +28,16 @@ export var ExpandedFrame = function ExpandedFrame(_ref) {
|
|
|
28
28
|
className = _ref.className,
|
|
29
29
|
isFluidHeight = _ref.isFluidHeight;
|
|
30
30
|
return jsx("div", {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
32
|
css: mq(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
32
33
|
'&:hover': isHoverable ? {
|
|
33
34
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4064
|
|
34
35
|
backgroundColor: "var(--ds-background-neutral-subtle-hovered, ".concat(N20A, ")"),
|
|
35
36
|
cursor: 'pointer'
|
|
36
37
|
} : undefined,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
39
|
minHeight: isFluidHeight ? 0 : [gs(21), gs(15)],
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
41
|
borderRadius: isSelected ? br() : br(0.5),
|
|
39
42
|
border: "2px solid ".concat(isSelected ? "var(--ds-border-selected, ".concat(B200, ")") : 'transparent'),
|
|
40
43
|
justifyContent: 'space-between',
|
|
@@ -56,18 +59,21 @@ export var CompactFrame = function CompactFrame(_ref2) {
|
|
|
56
59
|
className = _ref2.className,
|
|
57
60
|
inheritDimensions = _ref2.inheritDimensions;
|
|
58
61
|
return jsx("div", {
|
|
62
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
59
63
|
css: mq(_objectSpread(_objectSpread({}, sharedFrameStyles), {}, {
|
|
60
64
|
'&:hover': isHoverable ? {
|
|
61
65
|
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(N30A, ")")
|
|
62
66
|
} : undefined,
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
63
68
|
borderRadius: isSelected ? br() : br(0.5),
|
|
64
69
|
border: isSelected ? "2px solid ".concat("var(--ds-border-selected, ".concat(B200, ")")) : '',
|
|
65
70
|
justifyContent: 'center',
|
|
66
71
|
alignItems: 'center',
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
73
|
height: inheritDimensions ? '100%' : gs(5),
|
|
68
74
|
backgroundColor: "var(--ds-background-neutral, ".concat(N20A, ")"),
|
|
69
75
|
width: ['calc(100% - 16px)', '100%'],
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
76
|
+
// 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
|
|
71
77
|
padding: ["0px ".concat(gs(1)), '0']
|
|
72
78
|
})),
|
|
73
79
|
"data-testid": testId
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { B400 } from '@atlaskit/theme/colors';
|
|
4
|
+
var styles = css({
|
|
5
|
+
color: "var(--ds-link, ".concat(B400, ")"),
|
|
6
|
+
wordBreak: 'break-all'
|
|
7
|
+
});
|
|
4
8
|
export var Link = function Link(_ref) {
|
|
5
9
|
var url = _ref.url,
|
|
6
10
|
_ref$testId = _ref.testId,
|
|
@@ -11,9 +15,6 @@ export var Link = function Link(_ref) {
|
|
|
11
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
12
16
|
,
|
|
13
17
|
className: className,
|
|
14
|
-
css:
|
|
15
|
-
color: "var(--ds-link, ".concat(B400, ")"),
|
|
16
|
-
wordBreak: 'break-all'
|
|
17
|
-
}
|
|
18
|
+
css: styles
|
|
18
19
|
}, url);
|
|
19
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { gs } from '../../common/utils';
|
|
5
5
|
/**
|
|
@@ -9,6 +9,22 @@ import { gs } from '../../common/utils';
|
|
|
9
9
|
* Using this selctor is deprecated as once the flexible block card feature flag is removed, this class will no longer be used.
|
|
10
10
|
*/
|
|
11
11
|
export var blockCardContentHeaderNameClassName = 'block-card-content-header-name';
|
|
12
|
+
var baseStyles = css({
|
|
13
|
+
fontSize: "".concat(fontSize(), "px"),
|
|
14
|
+
fontWeight: 500,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
lineHeight: gs(2.5),
|
|
17
|
+
// Spec: show max two lines.
|
|
18
|
+
display: '-webkit-box',
|
|
19
|
+
overflow: 'hidden',
|
|
20
|
+
textOverflow: 'ellipsis',
|
|
21
|
+
wordBreak: 'break-word',
|
|
22
|
+
WebkitLineClamp: 2,
|
|
23
|
+
WebkitBoxOrient: 'vertical',
|
|
24
|
+
// Fallback options.
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
+
maxHeight: gs(6)
|
|
27
|
+
});
|
|
12
28
|
export var Name = function Name(_ref) {
|
|
13
29
|
var name = _ref.name,
|
|
14
30
|
_ref$isLeftPadded = _ref.isLeftPadded,
|
|
@@ -16,23 +32,13 @@ export var Name = function Name(_ref) {
|
|
|
16
32
|
testId = _ref.testId,
|
|
17
33
|
textColor = _ref.textColor;
|
|
18
34
|
return jsx("span", {
|
|
19
|
-
css:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// eslint-disable-next-line @atlaskit/
|
|
35
|
+
css: [baseStyles,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
|
+
{
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
39
|
marginLeft: isLeftPadded ? gs(1) : '0',
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
display: '-webkit-box',
|
|
27
|
-
overflow: 'hidden',
|
|
28
|
-
textOverflow: 'ellipsis',
|
|
29
|
-
wordBreak: 'break-word',
|
|
30
|
-
WebkitLineClamp: 2,
|
|
31
|
-
WebkitBoxOrient: 'vertical',
|
|
32
|
-
color: textColor ? textColor : 'inherit',
|
|
33
|
-
// Fallback options.
|
|
34
|
-
maxHeight: gs(6)
|
|
35
|
-
},
|
|
40
|
+
color: textColor ? textColor : 'inherit'
|
|
41
|
+
}],
|
|
36
42
|
"data-testid": testId,
|
|
37
43
|
"data-trello-do-not-use-override": "block-card-content-header-name"
|
|
38
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { N300 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { gs } from '../../common/utils';
|
|
5
|
+
var wrapperStyles = css({
|
|
6
|
+
display: 'flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
+
fontSize: gs(1.5),
|
|
10
|
+
whiteSpace: 'normal'
|
|
11
|
+
});
|
|
12
|
+
var imgStyles = css({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
|
+
height: gs(1.5),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
|
+
width: gs(1.5)
|
|
17
|
+
});
|
|
18
|
+
var textStyles = css({
|
|
19
|
+
color: "var(--ds-text-subtlest, ".concat(N300, ")"),
|
|
20
|
+
margin: 0,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
marginLeft: gs(0.5),
|
|
23
|
+
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
24
|
+
// due to HTML its unwrapping behaviour on paste.
|
|
25
|
+
MozUserSelect: 'none'
|
|
26
|
+
});
|
|
5
27
|
export var Provider = function Provider(_ref) {
|
|
6
28
|
var name = _ref.name,
|
|
7
29
|
icon = _ref.icon;
|
|
@@ -10,29 +32,13 @@ export var Provider = function Provider(_ref) {
|
|
|
10
32
|
iconToRender = jsx("img", {
|
|
11
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
12
34
|
className: "smart-link-icon",
|
|
13
|
-
css:
|
|
14
|
-
height: gs(1.5),
|
|
15
|
-
width: gs(1.5)
|
|
16
|
-
},
|
|
35
|
+
css: imgStyles,
|
|
17
36
|
src: icon
|
|
18
37
|
});
|
|
19
38
|
}
|
|
20
39
|
return jsx("div", {
|
|
21
|
-
css:
|
|
22
|
-
display: 'flex',
|
|
23
|
-
alignItems: 'center',
|
|
24
|
-
fontSize: gs(1.5),
|
|
25
|
-
whiteSpace: 'normal'
|
|
26
|
-
}
|
|
40
|
+
css: wrapperStyles
|
|
27
41
|
}, iconToRender, jsx("span", {
|
|
28
|
-
css:
|
|
29
|
-
color: "var(--ds-text-subtlest, ".concat(N300, ")"),
|
|
30
|
-
margin: 0,
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
32
|
-
marginLeft: gs(0.5),
|
|
33
|
-
// EDM-713: fixes copy-paste from renderer to editor for Firefox
|
|
34
|
-
// due to HTML its unwrapping behaviour on paste.
|
|
35
|
-
MozUserSelect: 'none'
|
|
36
|
-
}
|
|
42
|
+
css: textStyles
|
|
37
43
|
}, name));
|
|
38
44
|
};
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
/** @jsx jsx */
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { gs, mq } from '../../common/utils';
|
|
7
7
|
export var Thumbnail = function Thumbnail(props) {
|
|
8
8
|
return props.color ? jsx(ThumbnailWithBackground, props) : jsx(ThumbnailDefault, props);
|
|
@@ -17,6 +17,7 @@ export var ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
|
17
17
|
var src = _ref.src,
|
|
18
18
|
testId = _ref.testId;
|
|
19
19
|
return jsx("div", {
|
|
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
|
|
20
21
|
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
21
22
|
backgroundSize: 'cover',
|
|
22
23
|
backgroundRepeat: 'no-repeat',
|
|
@@ -27,11 +28,16 @@ export var ThumbnailDefault = function ThumbnailDefault(_ref) {
|
|
|
27
28
|
"data-trello-do-not-use-override": testId
|
|
28
29
|
});
|
|
29
30
|
};
|
|
31
|
+
var thumbnailImgStyles = css({
|
|
32
|
+
height: '90px',
|
|
33
|
+
width: '90px'
|
|
34
|
+
});
|
|
30
35
|
export var ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
31
36
|
var src = _ref2.src,
|
|
32
37
|
color = _ref2.color,
|
|
33
38
|
testId = _ref2.testId;
|
|
34
39
|
return jsx("div", {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
41
|
css: mq(_objectSpread(_objectSpread({}, sharedStyles), {}, {
|
|
36
42
|
backgroundColor: color,
|
|
37
43
|
display: 'flex',
|
|
@@ -42,9 +48,6 @@ export var ThumbnailWithBackground = function ThumbnailWithBackground(_ref2) {
|
|
|
42
48
|
"data-trello-do-not-use-override": testId
|
|
43
49
|
}, jsx("img", {
|
|
44
50
|
src: src,
|
|
45
|
-
css:
|
|
46
|
-
height: '90px',
|
|
47
|
-
width: '90px'
|
|
48
|
-
}
|
|
51
|
+
css: thumbnailImgStyles
|
|
49
52
|
}));
|
|
50
53
|
};
|