@atlaskit/smart-card 39.0.0 → 39.2.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 +20 -0
- package/dist/cjs/utils/analytics/analytics.js +1 -1
- package/dist/cjs/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/cjs/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/cjs/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/cjs/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/cjs/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/cjs/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/cjs/view/EmbedCard/components/ExpandedFrame.js +35 -109
- package/dist/cjs/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/cjs/view/EmbedCard/components/styled.js +12 -176
- package/dist/cjs/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/cjs/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/cjs/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +2 -2
- package/dist/cjs/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/cjs/view/FlexibleCard/components/blocks/block/index.js +1 -12
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/cjs/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/cjs/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/cjs/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/cjs/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/cjs/view/FlexibleCard/components/container/index.js +10 -77
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -7
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -57
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-icon-element/index.js +3 -3
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -5
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/cjs/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/cjs/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/cjs/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/cjs/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/cjs/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/cjs/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/cjs/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/cjs/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/cjs/view/InlineCard/ForbiddenView/index.js +19 -58
- package/dist/cjs/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/cjs/view/InlineCard/Frame/styled.js +4 -8
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/index.js +38 -132
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/cjs/view/InlineCard/IconAndTitleLayout/styled.js +3 -155
- package/dist/cjs/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/cjs/view/LinkUrl/index.js +1 -1
- package/dist/cjs/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/cjs/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/cjs/view/common/ai-summary/index.js +1 -3
- package/dist/es2019/utils/analytics/analytics.js +1 -1
- package/dist/es2019/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/es2019/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/es2019/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/es2019/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/es2019/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/es2019/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/es2019/view/EmbedCard/components/ExpandedFrame.js +37 -111
- package/dist/es2019/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/es2019/view/EmbedCard/components/styled.js +1 -166
- package/dist/es2019/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/es2019/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/es2019/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +2 -2
- package/dist/es2019/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/es2019/view/FlexibleCard/components/blocks/block/index.js +1 -13
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/es2019/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/es2019/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/es2019/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/es2019/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/es2019/view/FlexibleCard/components/container/index.js +10 -76
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -8
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -7
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-badge-element/index.js +2 -58
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-icon-element/index.js +2 -4
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -6
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/es2019/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/es2019/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/es2019/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/es2019/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/es2019/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/es2019/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/es2019/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/es2019/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/es2019/view/InlineCard/ForbiddenView/index.js +20 -59
- package/dist/es2019/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/es2019/view/InlineCard/Frame/styled.js +4 -8
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/index.js +18 -110
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/es2019/view/InlineCard/IconAndTitleLayout/styled.js +0 -172
- package/dist/es2019/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/es2019/view/LinkUrl/index.js +1 -1
- package/dist/es2019/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/es2019/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/es2019/view/common/ai-summary/index.js +1 -3
- package/dist/esm/utils/analytics/analytics.js +1 -1
- package/dist/esm/view/BlockCard/views/ForbiddenView.js +1 -2
- package/dist/esm/view/BlockCard/views/NotFoundView.js +1 -2
- package/dist/esm/view/BlockCard/views/ResolvedView.compiled.css +1 -6
- package/dist/esm/view/BlockCard/views/ResolvedView.js +2 -9
- package/dist/esm/view/BlockCard/views/UnauthorisedView.compiled.css +0 -2
- package/dist/esm/view/BlockCard/views/UnauthorisedView.js +1 -3
- package/dist/esm/view/BlockCard/views/unresolved-view/index.compiled.css +0 -2
- package/dist/esm/view/BlockCard/views/unresolved-view/index.js +3 -6
- package/dist/esm/view/EmbedCard/components/ExpandedFrame.js +37 -111
- package/dist/esm/view/EmbedCard/components/styled.compiled.css +3 -83
- package/dist/esm/view/EmbedCard/components/styled.js +12 -176
- package/dist/esm/view/EmbedModal/components/link-info/index.compiled.css +2 -20
- package/dist/esm/view/EmbedModal/components/link-info/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/actions/action/action-button/index.js +4 -8
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.compiled.css +0 -2
- package/dist/esm/view/FlexibleCard/components/actions/action/action-icon/index.js +2 -9
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.compiled.css +1 -3
- package/dist/esm/view/FlexibleCard/components/actions/action/action-stack-item/action-button.js +2 -7
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.compiled.css +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/action-footer/index.js +7 -27
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-block/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/action-group/index.js +1 -4
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/icons/info/index.js +2 -2
- package/dist/esm/view/FlexibleCard/components/blocks/ai-footer-block/resolved/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.compiled.css +1 -14
- package/dist/esm/view/FlexibleCard/components/blocks/block/index.js +1 -13
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.compiled.css +1 -8
- package/dist/esm/view/FlexibleCard/components/blocks/element-group/index.js +1 -19
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/blocks/footer-block/resolved/index.js +4 -6
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.compiled.css +1 -3
- package/dist/esm/view/FlexibleCard/components/blocks/metadata-block/index.js +3 -9
- package/dist/esm/view/FlexibleCard/components/blocks/preview-block/resolved/index.js +1 -2
- package/dist/esm/view/FlexibleCard/components/container/index.compiled.css +0 -22
- package/dist/esm/view/FlexibleCard/components/container/index.js +10 -77
- package/dist/esm/view/FlexibleCard/components/elements/common/base-atlaskit-badge-element/index.js +3 -7
- package/dist/esm/view/FlexibleCard/components/elements/common/base-avatar-group-element/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.compiled.css +1 -27
- package/dist/esm/view/FlexibleCard/components/elements/common/base-badge-element/index.js +1 -57
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.compiled.css +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-date-time-element/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-icon-element/index.js +3 -3
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.compiled.css +1 -2
- package/dist/esm/view/FlexibleCard/components/elements/common/base-lozenge-element/index.js +3 -5
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.compiled.css +0 -1
- package/dist/esm/view/FlexibleCard/components/elements/common/base-text-element/index.js +1 -3
- package/dist/esm/view/FlexibleCard/components/elements/snippet-element/index.js +1 -5
- package/dist/esm/view/HoverCard/components/ImagePreview.js +1 -2
- package/dist/esm/view/HoverCard/components/views/forbidden/index.compiled.css +0 -1
- package/dist/esm/view/HoverCard/components/views/forbidden/index.js +4 -8
- package/dist/esm/view/HoverCard/components/views/resolved/index.compiled.css +1 -11
- package/dist/esm/view/HoverCard/components/views/resolved/index.js +3 -11
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.compiled.css +1 -4
- package/dist/esm/view/HoverCard/components/views/unauthorised/index.js +3 -7
- package/dist/esm/view/InlineCard/ErroredView/index.js +6 -44
- package/dist/esm/view/InlineCard/ForbiddenView/index.js +20 -59
- package/dist/esm/view/InlineCard/Frame/styled.compiled.css +1 -3
- package/dist/esm/view/InlineCard/Frame/styled.js +4 -8
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/IconAndTitleLayout/index.js +40 -134
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.compiled.css +1 -34
- package/dist/esm/view/InlineCard/IconAndTitleLayout/styled.js +2 -154
- package/dist/esm/view/InlineCard/ResolvingView/index.js +3 -12
- package/dist/esm/view/InlineCard/UnauthorisedView/index.js +5 -38
- package/dist/esm/view/LinkUrl/index.js +1 -1
- package/dist/esm/view/common/UnauthorisedViewContent.js +1 -15
- package/dist/esm/view/common/ai-summary/index.compiled.css +0 -1
- package/dist/esm/view/common/ai-summary/index.js +1 -3
- package/dist/types/common/ui/icons/types.d.ts +2 -2
- package/dist/types/state/flexible-ui-context/index.d.ts +1 -1
- package/dist/types/view/EmbedCard/components/styled.d.ts +0 -7
- package/dist/types/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +1 -1
- package/dist/types/view/FlexibleCard/components/elements/index.d.ts +1 -1
- package/dist/types/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -8
- package/dist/types-ts4.5/common/ui/icons/types.d.ts +2 -2
- package/dist/types-ts4.5/state/flexible-ui-context/index.d.ts +1 -1
- package/dist/types-ts4.5/view/EmbedCard/components/styled.d.ts +0 -7
- package/dist/types-ts4.5/view/FlexibleCard/components/actions/action/action-icon/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/common/atlaskit-icon/types.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/common/base-link-element/index.d.ts +1 -1
- package/dist/types-ts4.5/view/FlexibleCard/components/elements/index.d.ts +1 -1
- package/dist/types-ts4.5/view/InlineCard/IconAndTitleLayout/styled.d.ts +0 -8
- package/package.json +4 -7
- package/dist/cjs/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/cjs/view/InlineCard/ResolvingView/styled.js +0 -34
- package/dist/cjs/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/cjs/view/InlineCard/styled.compiled.css +0 -21
- package/dist/cjs/view/InlineCard/styled.js +0 -35
- package/dist/es2019/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/es2019/view/InlineCard/ResolvingView/styled.js +0 -24
- package/dist/es2019/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/es2019/view/InlineCard/styled.compiled.css +0 -21
- package/dist/es2019/view/InlineCard/styled.js +0 -24
- package/dist/esm/view/InlineCard/ErroredView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/ResolvingView/styled.compiled.css +0 -5
- package/dist/esm/view/InlineCard/ResolvingView/styled.js +0 -26
- package/dist/esm/view/InlineCard/UnauthorisedView/index.compiled.css +0 -1
- package/dist/esm/view/InlineCard/styled.compiled.css +0 -21
- package/dist/esm/view/InlineCard/styled.js +0 -26
- package/dist/types/view/InlineCard/ResolvingView/styled.d.ts +0 -2
- package/dist/types/view/InlineCard/styled.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/ResolvingView/styled.d.ts +0 -2
- package/dist/types-ts4.5/view/InlineCard/styled.d.ts +0 -2
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._zulp5l1i{gap:.5rem .5rem}
|
|
3
2
|
._zulpu2gc{gap:var(--ds-space-100,8px)}
|
|
4
3
|
._13mh1pd9 [data-smart-element=Title]{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
|
-
._19pkcxkx{margin-top:var(--ds-space-100,.5rem)}
|
|
6
4
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
|
-
._1bahesu3{justify-content:flex-end}
|
|
8
|
-
._bpsp1wq8 a{font-weight:var(--ds-font-weight-medium,500)}
|
|
5
|
+
._1bahesu3{justify-content:flex-end}
|
|
@@ -6,7 +6,6 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
6
6
|
import { useCallback, useMemo } from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
8
|
import { extractSmartLinkProvider } from '@atlaskit/link-extractors';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { useAnalyticsEvents } from '../../../../../common/analytics/generated/use-analytics-events';
|
|
11
10
|
import { ActionName, CardDisplay } from '../../../../../constants';
|
|
12
11
|
import { messages } from '../../../../../messages';
|
|
@@ -17,11 +16,8 @@ import FlexibleCard from '../../../../FlexibleCard';
|
|
|
17
16
|
import { CustomBlock } from '../../../../FlexibleCard/components/blocks';
|
|
18
17
|
import ActionGroup from '../../../../FlexibleCard/components/blocks/action-group';
|
|
19
18
|
import { LinkIcon } from '../../../../FlexibleCard/components/elements';
|
|
20
|
-
var connectButtonStylesOld = null;
|
|
21
19
|
var connectButtonStyles = null;
|
|
22
|
-
var titleBlockStylesOld = null;
|
|
23
20
|
var titleBlockStyles = null;
|
|
24
|
-
var mainTextStylesOld = null;
|
|
25
21
|
var mainTextStyles = null;
|
|
26
22
|
var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
27
23
|
var _extractSmartLinkProv;
|
|
@@ -59,20 +55,20 @@ var HoverCardUnauthorisedView = function HoverCardUnauthorisedView(_ref) {
|
|
|
59
55
|
testId: testId
|
|
60
56
|
}), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
61
57
|
testId: "".concat(testId, "-title"),
|
|
62
|
-
className: ax([
|
|
58
|
+
className: ax(["_zulpu2gc _13mh1pd9"])
|
|
63
59
|
}, /*#__PURE__*/React.createElement(LinkIcon, null), /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.connect_link_account_card_name, {
|
|
64
60
|
values: {
|
|
65
61
|
context: providerName
|
|
66
62
|
}
|
|
67
63
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
68
64
|
testId: "".concat(testId, "-content"),
|
|
69
|
-
className: ax([
|
|
65
|
+
className: ax(["_11c8dcr7 _19pku2gc"])
|
|
70
66
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(UnauthorisedViewContent, {
|
|
71
67
|
providerName: providerName,
|
|
72
68
|
isProductIntegrationSupported: isProductIntegrationSupported
|
|
73
69
|
}))), /*#__PURE__*/React.createElement(CustomBlock, {
|
|
74
70
|
testId: "".concat(testId, "-button"),
|
|
75
|
-
className: ax([
|
|
71
|
+
className: ax(["_1bahesu3 _19pku2gc"])
|
|
76
72
|
}, /*#__PURE__*/React.createElement(ActionGroup, {
|
|
77
73
|
items: actions,
|
|
78
74
|
appearance: "primary"
|
|
@@ -1,41 +1,20 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import "./index.compiled.css";
|
|
3
2
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
3
|
import React from 'react';
|
|
5
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import ButtonOld from '@atlaskit/button';
|
|
7
5
|
import ErrorIcon from '@atlaskit/icon/core/migration/error';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
6
|
import { messages } from '../../../messages';
|
|
11
7
|
import { HoverCard } from '../../HoverCard';
|
|
12
8
|
import { ActionButton } from '../common/action-button';
|
|
13
9
|
import { Frame } from '../Frame';
|
|
14
10
|
import { IconAndTitleLayout } from '../IconAndTitleLayout';
|
|
15
|
-
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
16
|
-
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
17
|
-
var styles = {
|
|
18
|
-
iconWrapper: "_2hwx1i6y"
|
|
19
|
-
};
|
|
20
11
|
var fallbackIcon = function fallbackIcon() {
|
|
21
|
-
|
|
22
|
-
return /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
23
|
-
color: "var(--ds-icon-danger, #C9372C)",
|
|
24
|
-
label: "error",
|
|
25
|
-
LEGACY_size: "small",
|
|
26
|
-
testId: "errored-view-default-icon"
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
30
|
-
as: "span",
|
|
31
|
-
xcss: styles.iconWrapper
|
|
32
|
-
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
12
|
+
return /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
33
13
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
34
14
|
label: "error",
|
|
35
15
|
LEGACY_size: "small",
|
|
36
|
-
testId: "errored-view-default-icon"
|
|
37
|
-
|
|
38
|
-
}));
|
|
16
|
+
testId: "errored-view-default-icon"
|
|
17
|
+
});
|
|
39
18
|
};
|
|
40
19
|
export var InlineCardErroredView = function InlineCardErroredView(_ref) {
|
|
41
20
|
var url = _ref.url,
|
|
@@ -58,17 +37,11 @@ export var InlineCardErroredView = function InlineCardErroredView(_ref) {
|
|
|
58
37
|
}
|
|
59
38
|
}, [onRetry]);
|
|
60
39
|
var renderActionButton = React.useCallback(function () {
|
|
61
|
-
|
|
62
|
-
return onRetry && (fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(ActionButton, {
|
|
40
|
+
return onRetry && /*#__PURE__*/React.createElement(ActionButton, {
|
|
63
41
|
onClick: handleRetry
|
|
64
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again))
|
|
65
|
-
spacing: "none",
|
|
66
|
-
component: IconStyledButtonOldVisualRefresh,
|
|
67
|
-
onClick: handleRetry,
|
|
68
|
-
role: "button"
|
|
69
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again)));
|
|
42
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.try_again));
|
|
70
43
|
}, [handleRetry, onRetry]);
|
|
71
|
-
var content =
|
|
44
|
+
var content = /*#__PURE__*/React.createElement(Frame, {
|
|
72
45
|
link: hashAction ? undefined : url,
|
|
73
46
|
onClick: hashAction ? undefined : onClick,
|
|
74
47
|
isSelected: isSelected,
|
|
@@ -81,17 +54,6 @@ export var InlineCardErroredView = function InlineCardErroredView(_ref) {
|
|
|
81
54
|
title: url,
|
|
82
55
|
onClick: hashAction ? onClick : undefined,
|
|
83
56
|
rightSide: message
|
|
84
|
-
}), renderActionButton()) : /*#__PURE__*/React.createElement(Frame, {
|
|
85
|
-
testId: testId,
|
|
86
|
-
isSelected: isSelected,
|
|
87
|
-
ref: frameRef,
|
|
88
|
-
truncateInline: truncateInline
|
|
89
|
-
}, /*#__PURE__*/React.createElement(IconAndTitleLayout, {
|
|
90
|
-
icon: icon || fallbackIcon(),
|
|
91
|
-
link: url,
|
|
92
|
-
title: url,
|
|
93
|
-
onClick: onClick,
|
|
94
|
-
rightSide: message
|
|
95
57
|
}), renderActionButton());
|
|
96
58
|
if (showHoverPreview) {
|
|
97
59
|
return /*#__PURE__*/React.createElement(HoverCard, {
|
|
@@ -5,12 +5,11 @@ import "./index.compiled.css";
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
8
|
-
import ButtonOld from '@atlaskit/button';
|
|
9
8
|
import LockLockedIcon from '@atlaskit/icon/core/lock-locked';
|
|
10
9
|
import LegacyLockIcon from '@atlaskit/icon/glyph/lock-filled';
|
|
11
10
|
import Lozenge from '@atlaskit/lozenge';
|
|
12
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import {
|
|
12
|
+
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
14
13
|
import { N500 } from '@atlaskit/theme/colors';
|
|
15
14
|
import { messages } from '../../../messages';
|
|
16
15
|
import { HoverCard } from '../../HoverCard';
|
|
@@ -18,33 +17,19 @@ import { ActionButton } from '../common/action-button';
|
|
|
18
17
|
import InlineLozenge from '../common/inline-lozenge';
|
|
19
18
|
import { Frame } from '../Frame';
|
|
20
19
|
import { IconAndTitleLayout, LozengeWrapper } from '../IconAndTitleLayout';
|
|
21
|
-
import { IconStyledButtonOldVisualRefresh } from '../styled';
|
|
22
|
-
import withFrameStyleControl from '../utils/withFrameStyleControl';
|
|
23
20
|
var styles = {
|
|
24
21
|
iconWrapper: "_2hwx1i6y _1e0cbu77",
|
|
25
22
|
actionButtonLozengeStyleOld: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t",
|
|
26
23
|
actionButtonLozengeStyleNew: "_2rkogqwt _bfhksm61 _ca0qze3t _u5f3ze3t _n3tdze3t _19bvze3t _p12f1osq"
|
|
27
24
|
};
|
|
28
25
|
var fallbackForbiddenIcon = function fallbackForbiddenIcon() {
|
|
29
|
-
|
|
30
|
-
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
31
|
-
label: "error",
|
|
32
|
-
color: "var(--ds-icon-danger, #C9372C)",
|
|
33
|
-
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
34
|
-
LEGACY_size: "small",
|
|
35
|
-
testId: "forbidden-view-fallback-icon"
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return /*#__PURE__*/React.createElement(Box, {
|
|
39
|
-
as: "span",
|
|
40
|
-
xcss: styles.iconWrapper
|
|
41
|
-
}, /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
26
|
+
return /*#__PURE__*/React.createElement(LockLockedIcon, {
|
|
42
27
|
label: "error",
|
|
43
28
|
color: "var(--ds-icon-danger, #C9372C)",
|
|
44
29
|
LEGACY_fallbackIcon: LegacyLockIcon,
|
|
45
30
|
LEGACY_size: "small",
|
|
46
31
|
testId: "forbidden-view-fallback-icon"
|
|
47
|
-
})
|
|
32
|
+
});
|
|
48
33
|
};
|
|
49
34
|
export var InlineCardForbiddenView = function InlineCardForbiddenView(_ref) {
|
|
50
35
|
var url = _ref.url,
|
|
@@ -86,60 +71,36 @@ export var InlineCardForbiddenView = function InlineCardForbiddenView(_ref) {
|
|
|
86
71
|
});
|
|
87
72
|
}, [context, requestAccessContext]);
|
|
88
73
|
var renderActionButton = React.useCallback(function () {
|
|
89
|
-
var Button = withFrameStyleControl(ButtonOld, frameRef);
|
|
90
74
|
var accessType = requestAccessContext === null || requestAccessContext === void 0 ? void 0 : requestAccessContext.accessType;
|
|
91
75
|
if (hasRequestAccessContextMessage) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
isDisabled: isDisabled,
|
|
96
|
-
onClick: handleRetry,
|
|
97
|
-
testId: "button-connect-other-account"
|
|
98
|
-
}, renderForbiddenAccessMessage());
|
|
99
|
-
}
|
|
100
|
-
return /*#__PURE__*/React.createElement(Button, {
|
|
101
|
-
spacing: "none",
|
|
76
|
+
var isDisabled = accessType === 'PENDING_REQUEST_EXISTS';
|
|
77
|
+
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
78
|
+
isDisabled: isDisabled,
|
|
102
79
|
onClick: handleRetry,
|
|
103
|
-
|
|
104
|
-
testId: "button-connect-other-account",
|
|
105
|
-
role: "button",
|
|
106
|
-
isDisabled: accessType === 'PENDING_REQUEST_EXISTS'
|
|
80
|
+
testId: "button-connect-other-account"
|
|
107
81
|
}, renderForbiddenAccessMessage());
|
|
108
82
|
}
|
|
109
83
|
if (onAuthorise) {
|
|
110
|
-
if (fg('platform-linking-visual-refresh-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
xcss: styles.actionButtonLozengeStyleNew,
|
|
114
|
-
onClick: handleRetry,
|
|
115
|
-
style: {
|
|
116
|
-
font: "inherit"
|
|
117
|
-
},
|
|
118
|
-
testId: "button-connect-other-account"
|
|
119
|
-
}, /*#__PURE__*/React.createElement(InlineLozenge, _extends({
|
|
120
|
-
appearance: "moved"
|
|
121
|
-
}, fg('platform-component-visual-refresh') ? {
|
|
122
|
-
isBold: true
|
|
123
|
-
} : undefined), renderForbiddenAccessMessage()));
|
|
124
|
-
}
|
|
125
|
-
return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
126
|
-
xcss: styles.actionButtonLozengeStyleOld,
|
|
84
|
+
if (fg('platform-linking-visual-refresh-inline-lozenge')) {
|
|
85
|
+
return /*#__PURE__*/React.createElement(Pressable, {
|
|
86
|
+
xcss: styles.actionButtonLozengeStyleNew,
|
|
127
87
|
onClick: handleRetry,
|
|
88
|
+
style: {
|
|
89
|
+
font: "inherit"
|
|
90
|
+
},
|
|
128
91
|
testId: "button-connect-other-account"
|
|
129
|
-
}, /*#__PURE__*/React.createElement(
|
|
92
|
+
}, /*#__PURE__*/React.createElement(InlineLozenge, _extends({
|
|
130
93
|
appearance: "moved"
|
|
131
94
|
}, fg('platform-component-visual-refresh') ? {
|
|
132
95
|
isBold: true
|
|
133
|
-
} : undefined), renderForbiddenAccessMessage()))
|
|
96
|
+
} : undefined), renderForbiddenAccessMessage()));
|
|
134
97
|
}
|
|
135
|
-
return /*#__PURE__*/React.createElement(
|
|
136
|
-
|
|
98
|
+
return /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Pressable, {
|
|
99
|
+
xcss: styles.actionButtonLozengeStyleOld,
|
|
137
100
|
onClick: handleRetry,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}, /*#__PURE__*/React.createElement(LozengeWrapper, null, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
142
|
-
appearance: 'moved'
|
|
101
|
+
testId: "button-connect-other-account"
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Lozenge, _extends({
|
|
103
|
+
appearance: "moved"
|
|
143
104
|
}, fg('platform-component-visual-refresh') ? {
|
|
144
105
|
isBold: true
|
|
145
106
|
} : undefined), renderForbiddenAccessMessage())));
|
|
@@ -30,8 +30,6 @@
|
|
|
30
30
|
._u5f3idpf{padding-right:0}
|
|
31
31
|
._uizt1kdv{-webkit-user-select:text;-ms-user-select:text;user-select:text}
|
|
32
32
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
33
|
-
._vwz4183y{line-height:21px}
|
|
34
|
-
._vwz4qslr{line-height:22px}
|
|
35
33
|
._1372tlke:focus{cursor:pointer}
|
|
36
34
|
._1a3b1r31:focus{text-decoration-color:currentColor}
|
|
37
35
|
._1hvw1o36:focus{outline-width:medium}
|
|
@@ -50,4 +48,4 @@
|
|
|
50
48
|
._1iohnqa1:active{text-decoration-style:solid}
|
|
51
49
|
._1nrm1r31:active{text-decoration-color:currentColor}
|
|
52
50
|
._c2waglyw:active{text-decoration-line:none}
|
|
53
|
-
@supports not (-webkit-line-clamp:1){.
|
|
51
|
+
@supports not (-webkit-line-clamp:1){._nr8z1o8l{display:inline-block}._1voyv77o{padding-top:var(--ds-space-025,2px)}._3kwxidpf{padding-right:0}._jqg5v77o{padding-bottom:var(--ds-space-025,2px)}._6vwiidpf{padding-left:0}}
|
|
@@ -6,9 +6,7 @@ var _excluded = ["truncateInline", "withoutBackground", "isHovered", "isInteract
|
|
|
6
6
|
import "./styled.compiled.css";
|
|
7
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
8
8
|
import React, { forwardRef } from 'react';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { B100, B200, B400, B50, N40 } from '@atlaskit/theme/colors';
|
|
11
|
-
var lineHeight = 22;
|
|
12
10
|
export var WrapperSpan = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13
11
|
var truncateInline = _ref.truncateInline,
|
|
14
12
|
withoutBackground = _ref.withoutBackground,
|
|
@@ -20,7 +18,7 @@ export var WrapperSpan = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
20
18
|
return /*#__PURE__*/React.createElement("span", _extends({
|
|
21
19
|
ref: ref
|
|
22
20
|
}, props, {
|
|
23
|
-
className: ax([
|
|
21
|
+
className: ax(["_1yt4x7n9 _2rkoiti9 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv"])
|
|
24
22
|
}), props.children);
|
|
25
23
|
});
|
|
26
24
|
export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -35,11 +33,10 @@ export var WrapperAnchor = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
35
33
|
href: href,
|
|
36
34
|
ref: ref
|
|
37
35
|
}, props, {
|
|
38
|
-
className: ax([
|
|
36
|
+
className: ax(["_1yt4x7n9 _2rkoiti9 _v56415x0 _1e0c1nu9 _16d9qvcn _syaz1y58 _1rkwglyw _4cvxmr28", truncateInline && "_1reo15vq _18m915vq _ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _1bto1l2s _1nmz9jpi _1e0c1abx _1yyjkb7n _sudp1e54 _nr8z1o8l _1voyv77o _3kwxidpf _jqg5v77o _6vwiidpf", withoutBackground ? "_19bvidpf _18u01i6y" : "_19ith6cr _bfhkhp5a _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _1nrm1r31 _c2waglyw _1iohnqa1", isHovered && "_1h6dmr28", isHovered && !withoutBackground && "_4bfu1r31 _1hmsglyw _ajmmnqa1", isSelected ? "_12ji1r31 _1qu2glyw _12y31o36 _80omtlke _16qscw00 _uiztglyw _1a3b1r31 _4fprglyw _5goinqa1 _9oik1r31 _1bnxglyw _jf4cnqa1 _bfw7h6cr _1nrm1r31 _c2waglyw _1iohnqa1" : "_uizt1kdv", isInteractive && "_nt751r31 _49pcglyw _1hvw1o36 _1372tlke _7ehicw00 _1j5pglyw _1di629zg"])
|
|
39
37
|
}), props.children);
|
|
40
38
|
});
|
|
41
|
-
var
|
|
42
|
-
var baseWrapperStylesOld = null;
|
|
39
|
+
var baseWrapperStyles = null;
|
|
43
40
|
|
|
44
41
|
// if the parent instruct the wrapper to be interactive, and the wrapper is in focus, apply selectedStyles
|
|
45
42
|
var interactiveStyles = null;
|
|
@@ -47,7 +44,6 @@ var hoveredStyles = null;
|
|
|
47
44
|
var hoveredWithBackgroundStyles = null;
|
|
48
45
|
var withoutBackgroundStyles = null;
|
|
49
46
|
var withBackgroundStyles = null;
|
|
50
|
-
var
|
|
51
|
-
var truncateStylesOld = null;
|
|
47
|
+
var truncateStyles = null;
|
|
52
48
|
var notSelectedStyle = null;
|
|
53
49
|
var selectedStyles = null;
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
._p12f7vkz{max-width:1pc}
|
|
28
28
|
._s7n4t94y{vertical-align:1px}
|
|
29
29
|
._syaz131l{color:var(--ds-text-subtlest,#626f86)}
|
|
30
|
-
._syaz1wmz{color:var(--ds-text-subtlest,#6b778c)}
|
|
31
30
|
._syaz1y58{color:var(--ds-link,#0052cc)}
|
|
32
31
|
._t9ec1ooe{transform:translate(-50%,-50%)}
|
|
33
32
|
._tzy4idpf{opacity:0}
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["as", "style"],
|
|
5
|
-
_excluded2 = ["as", "style"]
|
|
6
|
-
_excluded3 = ["as", "style"],
|
|
7
|
-
_excluded4 = ["as", "style"];
|
|
5
|
+
_excluded2 = ["as", "style"];
|
|
8
6
|
import "./index.compiled.css";
|
|
9
7
|
import { forwardRef } from 'react';
|
|
10
8
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -14,10 +12,9 @@ import ImageLoader from 'react-render-image';
|
|
|
14
12
|
import LinkIcon from '@atlaskit/icon/core/migration/link';
|
|
15
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
14
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
17
|
-
import { B400
|
|
15
|
+
import { B400 } from '@atlaskit/theme/colors';
|
|
18
16
|
import { isProfileType } from '../../../utils';
|
|
19
|
-
import {
|
|
20
|
-
import { EmojiWrapperOldVisualRefresh, IconEmptyWrapperOldVisualRefresh, IconPositionWrapperOldVisualRefresh, IconWrapperOldVisualRefresh, TitleWrapperClassNameOldVisualRefresh } from './styled';
|
|
17
|
+
import { Shimmer } from '../Icon';
|
|
21
18
|
var iconWrapperStyle = null;
|
|
22
19
|
var iconImageStyle = null;
|
|
23
20
|
var styles = {
|
|
@@ -28,28 +25,12 @@ var styles = {
|
|
|
28
25
|
noLinkAppearanceStyle: "_syaz131l _18u01b66",
|
|
29
26
|
roundImageStyle: "_2rko14q2"
|
|
30
27
|
};
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
32
|
-
var
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled,@atlaskit/design-system/no-html-anchor -- Ignored via go/DSP-18766
|
|
29
|
+
var LinkAppearance = forwardRef(function (_ref, __cmplr) {
|
|
33
30
|
var _ref$as = _ref.as,
|
|
34
|
-
C = _ref$as === void 0 ? "
|
|
31
|
+
C = _ref$as === void 0 ? "a" : _ref$as,
|
|
35
32
|
__cmpls = _ref.style,
|
|
36
33
|
__cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
38
|
-
style: __cmpls,
|
|
39
|
-
ref: __cmplr,
|
|
40
|
-
className: ax(["_syaz1wmz _18u01b66", __cmplp.className])
|
|
41
|
-
}));
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled -- Ignored via go/DSP-18766
|
|
45
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
46
|
-
NoLinkAppearanceOldVisualRefresh.displayName = 'NoLinkAppearanceOldVisualRefresh';
|
|
47
|
-
}
|
|
48
|
-
var LinkAppearance = forwardRef(function (_ref2, __cmplr) {
|
|
49
|
-
var _ref2$as = _ref2.as,
|
|
50
|
-
C = _ref2$as === void 0 ? "a" : _ref2$as,
|
|
51
|
-
__cmpls = _ref2.style,
|
|
52
|
-
__cmplp = _objectWithoutProperties(_ref2, _excluded2);
|
|
53
34
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
54
35
|
style: __cmpls,
|
|
55
36
|
ref: __cmplr,
|
|
@@ -59,66 +40,42 @@ var LinkAppearance = forwardRef(function (_ref2, __cmplr) {
|
|
|
59
40
|
if (process.env.NODE_ENV !== 'production') {
|
|
60
41
|
LinkAppearance.displayName = 'LinkAppearance';
|
|
61
42
|
}
|
|
62
|
-
export var IconAndTitleLayout = function IconAndTitleLayout(
|
|
63
|
-
var icon =
|
|
64
|
-
emoji =
|
|
65
|
-
defaultIcon =
|
|
66
|
-
onClick =
|
|
67
|
-
children =
|
|
68
|
-
title =
|
|
69
|
-
titleColor =
|
|
70
|
-
titleTextColor =
|
|
71
|
-
link =
|
|
72
|
-
rightSide =
|
|
73
|
-
|
|
74
|
-
testId =
|
|
75
|
-
type =
|
|
43
|
+
export var IconAndTitleLayout = function IconAndTitleLayout(_ref2) {
|
|
44
|
+
var icon = _ref2.icon,
|
|
45
|
+
emoji = _ref2.emoji,
|
|
46
|
+
defaultIcon = _ref2.defaultIcon,
|
|
47
|
+
onClick = _ref2.onClick,
|
|
48
|
+
children = _ref2.children,
|
|
49
|
+
title = _ref2.title,
|
|
50
|
+
titleColor = _ref2.titleColor,
|
|
51
|
+
titleTextColor = _ref2.titleTextColor,
|
|
52
|
+
link = _ref2.link,
|
|
53
|
+
rightSide = _ref2.rightSide,
|
|
54
|
+
_ref2$testId = _ref2.testId,
|
|
55
|
+
testId = _ref2$testId === void 0 ? 'inline-card-icon-and-title' : _ref2$testId,
|
|
56
|
+
type = _ref2.type;
|
|
76
57
|
var renderAtlaskitIcon = React.useCallback(function () {
|
|
77
58
|
if (emoji) {
|
|
78
|
-
|
|
79
|
-
return emoji;
|
|
80
|
-
}
|
|
81
|
-
return /*#__PURE__*/React.createElement(EmojiWrapperOldVisualRefresh, null, emoji);
|
|
59
|
+
return emoji;
|
|
82
60
|
}
|
|
83
61
|
if (!icon || typeof icon === 'string') {
|
|
84
62
|
return null;
|
|
85
63
|
}
|
|
86
|
-
|
|
87
|
-
return icon;
|
|
88
|
-
}
|
|
89
|
-
return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, icon);
|
|
64
|
+
return icon;
|
|
90
65
|
}, [emoji, icon]);
|
|
91
66
|
var profileType = fg('platform-linking-visual-refresh-v2') ? isProfileType(type) : false;
|
|
92
67
|
var renderImageIcon = React.useCallback(function (errored, testId) {
|
|
93
68
|
if (!icon || typeof icon !== 'string') {
|
|
94
69
|
return null;
|
|
95
70
|
}
|
|
96
|
-
if (fg('platform-linking-visual-refresh-v1')) {
|
|
97
|
-
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
98
|
-
src: icon,
|
|
99
|
-
loaded: /*#__PURE__*/React.createElement("img", {
|
|
100
|
-
src: icon,
|
|
101
|
-
"data-testid": "".concat(testId, "-image"),
|
|
102
|
-
alt: "",
|
|
103
|
-
className: ax(["_c71l7vkz _p12f7vkz _1bsb1osq", profileType && styles.roundImageStyle])
|
|
104
|
-
}),
|
|
105
|
-
errored: errored,
|
|
106
|
-
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
107
|
-
testId: "".concat(testId, "-loading")
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
var removedProps = !fg('platform-linking-visual-refresh-v2') ? {
|
|
112
|
-
className: 'smart-link-icon'
|
|
113
|
-
} : {};
|
|
114
71
|
return /*#__PURE__*/React.createElement(ImageLoader, {
|
|
115
72
|
src: icon,
|
|
116
|
-
loaded: /*#__PURE__*/React.createElement(
|
|
73
|
+
loaded: /*#__PURE__*/React.createElement("img", {
|
|
117
74
|
src: icon,
|
|
118
75
|
"data-testid": "".concat(testId, "-image"),
|
|
119
76
|
alt: "",
|
|
120
|
-
className: ax([profileType && styles.roundImageStyle])
|
|
121
|
-
})
|
|
77
|
+
className: ax(["_c71l7vkz _p12f7vkz _1bsb1osq", profileType && styles.roundImageStyle])
|
|
78
|
+
}),
|
|
122
79
|
errored: errored,
|
|
123
80
|
loading: /*#__PURE__*/React.createElement(Shimmer, {
|
|
124
81
|
testId: "".concat(testId, "-loading")
|
|
@@ -126,23 +83,12 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
126
83
|
});
|
|
127
84
|
}, [icon, profileType]);
|
|
128
85
|
var renderIconPlaceholder = React.useCallback(function (testId) {
|
|
129
|
-
|
|
130
|
-
return defaultIcon || /*#__PURE__*/React.createElement(LinkIcon, {
|
|
131
|
-
label: "link",
|
|
132
|
-
LEGACY_size: "small",
|
|
133
|
-
testId: "".concat(testId, "-default"),
|
|
134
|
-
color: "currentColor"
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
if (defaultIcon) {
|
|
138
|
-
return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, defaultIcon);
|
|
139
|
-
}
|
|
140
|
-
return /*#__PURE__*/React.createElement(IconWrapperOldVisualRefresh, null, /*#__PURE__*/React.createElement(LinkIcon, {
|
|
86
|
+
return defaultIcon || /*#__PURE__*/React.createElement(LinkIcon, {
|
|
141
87
|
label: "link",
|
|
142
88
|
LEGACY_size: "small",
|
|
143
89
|
testId: "".concat(testId, "-default"),
|
|
144
90
|
color: "currentColor"
|
|
145
|
-
})
|
|
91
|
+
});
|
|
146
92
|
}, [defaultIcon]);
|
|
147
93
|
var renderIcon = React.useCallback(function (testId) {
|
|
148
94
|
var icon = renderAtlaskitIcon();
|
|
@@ -172,7 +118,7 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
172
118
|
}, [onClick]);
|
|
173
119
|
|
|
174
120
|
// maybe consider memoising this after clean up
|
|
175
|
-
var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
121
|
+
var titlePart = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
176
122
|
as: "span"
|
|
177
123
|
// EDM-12119: This is set here to help with the positioning of the icon to be in the middle of inline display.
|
|
178
124
|
// We cannot set the fix font because inline is taking the parent container font size into account.
|
|
@@ -190,24 +136,13 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
190
136
|
}), /*#__PURE__*/React.createElement("span", {
|
|
191
137
|
"data-testId": "icon-wrapper",
|
|
192
138
|
className: ax(["_11c81o8v _2rkoyh40 _1e0c116y _kqswstnw _2hwx1b66 _4t3i7vkz _1bsb7vkz _154i1ssb _1ltv1ssb _t9ec1ooe _uiztglyw"])
|
|
193
|
-
}, renderIcon(testId))))
|
|
194
|
-
"data-testid": "icon-position-wrapper"
|
|
195
|
-
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapperOldVisualRefresh, {
|
|
196
|
-
"data-testid": "icon-empty-wrapper"
|
|
197
|
-
}), renderIcon(testId))), fg('platform-linking-visual-refresh-v1') ? /*#__PURE__*/React.createElement(Box, {
|
|
139
|
+
}, renderIcon(testId)))), /*#__PURE__*/React.createElement(Box, {
|
|
198
140
|
as: "span",
|
|
199
141
|
style: {
|
|
200
142
|
color: titleTextColor
|
|
201
143
|
}
|
|
202
|
-
}, title) : /*#__PURE__*/React.createElement("span", {
|
|
203
|
-
style: {
|
|
204
|
-
color: titleTextColor
|
|
205
|
-
}
|
|
206
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
207
|
-
,
|
|
208
|
-
className: TitleWrapperClassNameOldVisualRefresh
|
|
209
144
|
}, title));
|
|
210
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
145
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconTitleWrapper, {
|
|
211
146
|
style: {
|
|
212
147
|
color: titleColor
|
|
213
148
|
},
|
|
@@ -220,50 +155,21 @@ export var IconAndTitleLayout = function IconAndTitleLayout(_ref3) {
|
|
|
220
155
|
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(Box, {
|
|
221
156
|
as: "span",
|
|
222
157
|
xcss: styles.noLinkAppearanceStyle
|
|
223
|
-
}, rightSide) : null)
|
|
224
|
-
style: {
|
|
225
|
-
color: titleColor
|
|
226
|
-
},
|
|
227
|
-
"data-testid": testId
|
|
228
|
-
}, link ? /*#__PURE__*/React.createElement(LinkAppearance, {
|
|
229
|
-
href: link,
|
|
230
|
-
onClick: handleClick,
|
|
231
|
-
onKeyPress: handleKeyPress
|
|
232
|
-
}, titlePart) : titlePart, rightSide ? /*#__PURE__*/React.createElement(NoLinkAppearanceOldVisualRefresh, null, rightSide) : null));
|
|
158
|
+
}, rightSide) : null));
|
|
233
159
|
};
|
|
234
|
-
|
|
235
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
236
|
-
var IconTitleWrapperOldVisualRefresh = forwardRef(function (_ref4, __cmplr) {
|
|
237
|
-
var _ref4$as = _ref4.as,
|
|
238
|
-
C = _ref4$as === void 0 ? "span" : _ref4$as,
|
|
239
|
-
__cmpls = _ref4.style,
|
|
240
|
-
__cmplp = _objectWithoutProperties(_ref4, _excluded3);
|
|
241
|
-
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
242
|
-
style: __cmpls,
|
|
243
|
-
ref: __cmplr,
|
|
244
|
-
className: ax(["_o5721jtm _1nmz9jpi _16d9qvcn _ca0qv77o _u5f31b66 _n3tdv77o _19bv1b66", __cmplp.className])
|
|
245
|
-
}));
|
|
246
|
-
});
|
|
247
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
248
|
-
IconTitleWrapperOldVisualRefresh.displayName = 'IconTitleWrapperOldVisualRefresh';
|
|
249
|
-
}
|
|
250
160
|
export var IconTitleWrapper = function IconTitleWrapper(props) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}, props));
|
|
256
|
-
}
|
|
257
|
-
// note: This is just to get the types to work due to compiled css weirdness.
|
|
258
|
-
return /*#__PURE__*/React.createElement(IconTitleWrapperOldVisualRefresh, props);
|
|
161
|
+
return /*#__PURE__*/React.createElement(Box, _extends({
|
|
162
|
+
as: "span",
|
|
163
|
+
xcss: styles.iconTitleWrapperStyle
|
|
164
|
+
}, props));
|
|
259
165
|
};
|
|
260
166
|
|
|
261
167
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled
|
|
262
|
-
var LozengeWrapperOldVisualRefresh = forwardRef(function (
|
|
263
|
-
var
|
|
264
|
-
C =
|
|
265
|
-
__cmpls =
|
|
266
|
-
__cmplp = _objectWithoutProperties(
|
|
168
|
+
var LozengeWrapperOldVisualRefresh = forwardRef(function (_ref3, __cmplr) {
|
|
169
|
+
var _ref3$as = _ref3.as,
|
|
170
|
+
C = _ref3$as === void 0 ? "span" : _ref3$as,
|
|
171
|
+
__cmpls = _ref3.style,
|
|
172
|
+
__cmplp = _objectWithoutProperties(_ref3, _excluded2);
|
|
267
173
|
return /*#__PURE__*/React.createElement(C, _extends({}, __cmplp, {
|
|
268
174
|
style: __cmpls,
|
|
269
175
|
ref: __cmplr,
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
._15x0stnw>*>span>svg{position:absolute}
|
|
2
|
-
._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
|
|
3
|
-
._17047vkz>*>span{height:1pc}
|
|
4
|
-
._18lx1ooe>span>svg{transform:translate(-50%,-50%)}
|
|
5
1
|
._18u0v77o{margin-left:var(--ds-space-025,2px)}
|
|
6
|
-
._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
7
|
-
._19pkidpf{margin-top:0}
|
|
8
|
-
._1bsb7vkz{width:1pc}
|
|
9
2
|
._1e0c1o8l{display:inline-block}
|
|
10
|
-
.
|
|
11
|
-
._1fqgstnw>span>svg{position:absolute}
|
|
12
|
-
._1gx11ssb>span>svg{left:50%}
|
|
13
|
-
._1nmz9jpi{word-break:break-all}
|
|
14
|
-
._1tr81ssb>*>span>svg{left:50%}
|
|
15
|
-
._1yg7idpf>*>span{left:0}
|
|
16
|
-
._2hwx1b66{margin-right:var(--ds-space-050,4px)}
|
|
17
|
-
._2hwxv77o{margin-right:var(--ds-space-025,2px)}
|
|
18
|
-
._3g5ridpf>span{left:0}
|
|
19
|
-
._4d7tstnw>span{position:absolute}
|
|
20
|
-
._4t3i1osq{height:100%}
|
|
21
|
-
._ca0qv77o{padding-top:var(--ds-space-025,2px)}
|
|
22
|
-
._d1gw1ssb>span>svg{top:50%}
|
|
23
|
-
._iibf7vkz>*>span{width:1pc}
|
|
24
|
-
._k9fw1ssb>*>span>svg{top:50%}
|
|
25
|
-
._kqswh2mm{position:relative}
|
|
26
|
-
._lacastnw>*>span{position:absolute}
|
|
27
|
-
._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
|
|
28
|
-
._nbgx7vkz>span{width:1pc}
|
|
29
|
-
._o5721jtm{white-space:pre-wrap}
|
|
30
|
-
._o5fv1l7b>span{top:3px}
|
|
31
|
-
._otyridpf{margin-bottom:0}
|
|
32
|
-
._q3v31ooe>*>span>svg{transform:translate(-50%,-50%)}
|
|
33
|
-
._s7n4t94y{vertical-align:1px}
|
|
34
|
-
._tzy4idpf{opacity:0}
|
|
35
|
-
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
36
|
-
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
3
|
+
._kqswh2mm{position:relative}
|