@atlaskit/media-card 77.12.0 → 77.12.2
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 +19 -0
- package/compass.yml +6 -3
- package/dist/cjs/card/card.js +5 -5
- package/dist/cjs/card/cardView.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +4 -1
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +2 -2
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton.js +5 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionsView.js +1 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/cjs/card/ui/actionsBar/styles.js +13 -8
- package/dist/cjs/card/ui/blanket/blanket.js +2 -0
- package/dist/cjs/card/ui/blanket/styles.js +8 -2
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper.js +3 -0
- package/dist/cjs/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/cjs/card/ui/iconWrapper/styles.js +3 -0
- package/dist/cjs/card/ui/openMediaViewerButton/openMediaViewerButton.js +9 -20
- package/dist/cjs/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/cjs/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/cjs/card/ui/playButton/styles.js +7 -0
- package/dist/cjs/card/ui/progressBar/styledBar.js +4 -1
- package/dist/cjs/card/ui/progressBar/styles.js +3 -0
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper.js +14 -3
- package/dist/cjs/card/ui/titleBox/styles.js +24 -4
- package/dist/cjs/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/cjs/card/ui/unhandledErrorCard/index.js +22 -11
- package/dist/cjs/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/cjs/card/ui/wrapper/styles.js +2 -2
- package/dist/cjs/card/ui/wrapper/wrapper.js +4 -1
- package/dist/cjs/card/v2/cardV2.js +1 -1
- package/dist/cjs/card/v2/cardViewV2.js +1 -1
- package/dist/cjs/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/cjs/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/index.js +1 -0
- package/dist/cjs/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/cjs/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/cjs/card/v2/fileCard.js +1 -1
- package/dist/cjs/card/v2/svgView/svgView.js +1 -0
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/cjs/utils/lightCards/errorIcon/index.js +10 -7
- package/dist/cjs/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/cjs/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/cjs/utils/lightCards/styles.js +10 -2
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +5 -5
- package/dist/es2019/card/cardView.js +1 -0
- package/dist/es2019/card/inlinePlayerWrapper.js +4 -1
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +13 -12
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/es2019/card/ui/actionsBar/styles.js +4 -1
- package/dist/es2019/card/ui/blanket/blanket.js +2 -0
- package/dist/es2019/card/ui/blanket/styles.js +7 -2
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/es2019/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/es2019/card/ui/iconWrapper/styles.js +2 -0
- package/dist/es2019/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/es2019/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/es2019/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/es2019/card/ui/playButton/styles.js +6 -0
- package/dist/es2019/card/ui/progressBar/styledBar.js +4 -1
- package/dist/es2019/card/ui/progressBar/styles.js +2 -0
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/es2019/card/ui/titleBox/styles.js +23 -4
- package/dist/es2019/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/es2019/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/es2019/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/es2019/card/ui/wrapper/styles.js +22 -21
- package/dist/es2019/card/ui/wrapper/wrapper.js +4 -1
- package/dist/es2019/card/v2/cardV2.js +1 -1
- package/dist/es2019/card/v2/cardViewV2.js +1 -0
- package/dist/es2019/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/es2019/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/index.js +1 -0
- package/dist/es2019/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/es2019/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/es2019/card/v2/fileCard.js +1 -1
- package/dist/es2019/card/v2/svgView/svgView.js +1 -0
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/es2019/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/es2019/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/es2019/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/es2019/utils/lightCards/styles.js +9 -2
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +5 -5
- package/dist/esm/card/cardView.js +1 -0
- package/dist/esm/card/inlinePlayerWrapper.js +4 -1
- package/dist/esm/card/inlinePlayerWrapperStyles.js +2 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/actionsBarWrapper.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton.js +4 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionsView.js +1 -0
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +14 -2
- package/dist/esm/card/ui/actionsBar/styles.js +12 -8
- package/dist/esm/card/ui/blanket/blanket.js +2 -0
- package/dist/esm/card/ui/blanket/styles.js +7 -2
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper.js +2 -0
- package/dist/esm/card/ui/iconWrapper/iconWrapper.js +4 -1
- package/dist/esm/card/ui/iconWrapper/styles.js +2 -0
- package/dist/esm/card/ui/openMediaViewerButton/openMediaViewerButton.js +7 -18
- package/dist/esm/card/ui/playButton/playButtonBackground.js +2 -1
- package/dist/esm/card/ui/playButton/playButtonWrapper.js +2 -1
- package/dist/esm/card/ui/playButton/styles.js +6 -0
- package/dist/esm/card/ui/progressBar/styledBar.js +4 -1
- package/dist/esm/card/ui/progressBar/styles.js +2 -0
- package/dist/esm/card/ui/tickBox/tickBoxWrapper.js +13 -3
- package/dist/esm/card/ui/titleBox/styles.js +23 -4
- package/dist/esm/card/ui/titleBox/titleBoxComponents.js +30 -17
- package/dist/esm/card/ui/unhandledErrorCard/index.js +22 -10
- package/dist/esm/card/ui/wrapper/imageContainer.js +1 -0
- package/dist/esm/card/ui/wrapper/styles.js +2 -1
- package/dist/esm/card/ui/wrapper/wrapper.js +4 -1
- package/dist/esm/card/v2/cardV2.js +1 -1
- package/dist/esm/card/v2/cardViewV2.js +1 -0
- package/dist/esm/card/v2/cardviews/cardViewWrapper.js +1 -0
- package/dist/esm/card/v2/cardviews/errorCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/iconCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/imageCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/index.js +1 -0
- package/dist/esm/card/v2/cardviews/loadingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/processingCardView.js +1 -0
- package/dist/esm/card/v2/cardviews/videoCardView.js +1 -0
- package/dist/esm/card/v2/fileCard.js +1 -1
- package/dist/esm/card/v2/svgView/svgView.js +1 -0
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +11 -11
- package/dist/esm/utils/lightCards/errorIcon/index.js +10 -6
- package/dist/esm/utils/lightCards/errorIcon/styles.js +3 -0
- package/dist/esm/utils/lightCards/lightCardWrappers.js +9 -5
- package/dist/esm/utils/lightCards/styles.js +9 -2
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types/utils/preventClickThrough.d.ts +1 -1
- package/dist/types/utils/viewportDetector.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/iconWrapper/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/utils/preventClickThrough.d.ts +1 -1
- package/dist/types-ts4.5/utils/viewportDetector.d.ts +1 -1
- package/example-helpers/DelayedRender.tsx +19 -19
- package/example-helpers/cardViewWrapper.tsx +20 -22
- package/example-helpers/cards.tsx +268 -331
- package/example-helpers/developmentUseMessage.tsx +8 -9
- package/example-helpers/index.tsx +100 -124
- package/example-helpers/selectableCard.tsx +32 -35
- package/example-helpers/ssrHelpers.tsx +19 -29
- package/example-helpers/styles.ts +97 -73
- package/example-helpers/svg-helpers/cardContainer.tsx +22 -21
- package/example-helpers/svg-helpers/controls.tsx +11 -11
- package/example-helpers/svg-helpers/dimensionPicker.tsx +85 -93
- package/example-helpers/svg-helpers/svgContainer.tsx +19 -18
- package/example-helpers/svg-helpers/toggle.tsx +28 -29
- package/example-helpers/svg-helpers/uploader.ts +33 -33
- package/package.json +121 -120
- package/report.api.md +227 -232
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
4
5
|
import { rgba } from '../../styles';
|
|
5
6
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
9
|
export const wrapperStyles = css({
|
|
7
10
|
boxSizing: 'border-box',
|
|
8
11
|
fontFamily: fontFamily(),
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
13
|
'*': {
|
|
10
14
|
boxSizing: 'border-box'
|
|
11
15
|
},
|
|
@@ -41,9 +45,17 @@ export const cardActionButtonStyles = ({
|
|
|
41
45
|
}) => css({
|
|
42
46
|
appearance: 'none',
|
|
43
47
|
border: 'none'
|
|
44
|
-
},
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
+
center,
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
+
borderRadius,
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
54
|
+
size(26), {
|
|
45
55
|
color: `var(--ds-icon, ${N500})`,
|
|
46
56
|
'&:hover': {
|
|
47
57
|
cursor: 'pointer'
|
|
48
58
|
}
|
|
49
|
-
},
|
|
59
|
+
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
|
+
getVariantStyles(variant));
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { transition } from '../styles';
|
|
3
4
|
export const actionsBarClassName = 'media-card-actions-bar';
|
|
4
5
|
export const fixedActionBarStyles = `opacity: 1;`;
|
|
5
|
-
export const wrapperStyles = isFixed =>
|
|
6
|
+
export const wrapperStyles = isFixed =>
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
8
|
+
css(isFixed ? fixedActionBarStyles : 'opacity: 0;', transition(), {
|
|
6
9
|
position: 'absolute',
|
|
7
10
|
top: "var(--ds-space-100, 8px)",
|
|
8
11
|
right: "var(--ds-space-100, 8px)",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { blanketStyles, blanketClassName } from './styles';
|
|
4
5
|
export const Blanket = props => {
|
|
@@ -6,6 +7,7 @@ export const Blanket = props => {
|
|
|
6
7
|
isFixed
|
|
7
8
|
} = props;
|
|
8
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
|
|
9
11
|
css: blanketStyles(isFixed)
|
|
10
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
11
13
|
,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { transition } from '../styles';
|
|
3
4
|
import { N90A } from '@atlaskit/theme/colors';
|
|
4
5
|
export const blanketClassName = 'media-card-blanket';
|
|
5
6
|
export const fixedBlanketStyles = `background-color: ${`var(--ds-blanket, ${N90A})`};`;
|
|
6
|
-
export const blanketStyles = isFixed => css(
|
|
7
|
+
export const blanketStyles = isFixed => css(
|
|
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
|
+
transition(), {
|
|
7
10
|
position: 'absolute',
|
|
8
11
|
width: '100%',
|
|
9
12
|
height: '100%',
|
|
@@ -11,5 +14,7 @@ export const blanketStyles = isFixed => css(transition(), {
|
|
|
11
14
|
maxWidth: '100%',
|
|
12
15
|
left: 0,
|
|
13
16
|
top: 0
|
|
14
|
-
},
|
|
17
|
+
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
isFixed ? fixedBlanketStyles : '');
|
|
15
20
|
blanketStyles.displayName = 'Blanket';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { keyframes } from '@emotion/react';
|
|
4
6
|
const breatheAnimation = keyframes({
|
|
5
7
|
'0%': {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { iconWrapperStyles } from './styles';
|
|
4
5
|
export const IconWrapper = props => {
|
|
@@ -7,7 +8,9 @@ export const IconWrapper = props => {
|
|
|
7
8
|
hasTitleBox
|
|
8
9
|
} = props;
|
|
9
10
|
return jsx("div", {
|
|
10
|
-
id: "iconWrapper"
|
|
11
|
+
id: "iconWrapper"
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
13
|
+
,
|
|
11
14
|
css: iconWrapperStyles({
|
|
12
15
|
breakpoint,
|
|
13
16
|
hasTitleBox
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { getTitleBoxHeight } from '../common';
|
|
3
4
|
export function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
@@ -16,6 +17,7 @@ export const iconWrapperStyles = ({
|
|
|
16
17
|
}) => css({
|
|
17
18
|
position: 'absolute',
|
|
18
19
|
width: '100%',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
height: `calc(100% - ${titleBoxHeight(hasTitleBox, breakpoint)})`,
|
|
20
22
|
display: 'flex',
|
|
21
23
|
flexDirection: 'column',
|
|
@@ -1,36 +1,25 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
/** @jsx jsx */
|
|
3
|
-
import { jsx, css } from '@emotion/react';
|
|
4
2
|
import React from 'react';
|
|
5
3
|
import { injectIntl, IntlProvider, useIntl } from 'react-intl-next';
|
|
6
4
|
import { messages } from '@atlaskit/media-ui';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
height: '1px',
|
|
10
|
-
padding: 0,
|
|
11
|
-
position: 'absolute',
|
|
12
|
-
border: 0,
|
|
13
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
14
|
-
overflow: 'hidden',
|
|
15
|
-
whiteSpace: 'nowrap'
|
|
16
|
-
});
|
|
5
|
+
import { Pressable } from '@atlaskit/primitives';
|
|
6
|
+
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
17
7
|
const OpenMediaViewerButton = ({
|
|
18
8
|
fileName,
|
|
19
9
|
innerRef,
|
|
20
10
|
...props
|
|
21
11
|
}) => {
|
|
22
12
|
const intl = useIntl();
|
|
23
|
-
return
|
|
24
|
-
ref: innerRef
|
|
25
|
-
css: visuallyHiddenStyles
|
|
13
|
+
return /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
14
|
+
ref: innerRef
|
|
26
15
|
}, props), intl.formatMessage(messages.open_file_in_viewer, {
|
|
27
16
|
name: fileName
|
|
28
|
-
}));
|
|
17
|
+
})));
|
|
29
18
|
};
|
|
30
19
|
const OpenMediaViewerButtonWrapper = props => {
|
|
31
|
-
return props.intl ?
|
|
20
|
+
return props.intl ? /*#__PURE__*/React.createElement(OpenMediaViewerButton, props) : /*#__PURE__*/React.createElement(IntlProvider, {
|
|
32
21
|
locale: "en"
|
|
33
|
-
},
|
|
22
|
+
}, /*#__PURE__*/React.createElement(OpenMediaViewerButton, props));
|
|
34
23
|
};
|
|
35
24
|
export default injectIntl(OpenMediaViewerButtonWrapper, {
|
|
36
25
|
enforceContext: false
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { backgroundStyles, bkgClassName } from './styles';
|
|
4
5
|
export const PlayButtonBackground = () => {
|
|
5
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
6
7
|
return jsx("div", {
|
|
7
8
|
css: backgroundStyles,
|
|
8
9
|
className: bkgClassName
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { playButtonClassName, playButtonWrapperStyles } from './styles';
|
|
4
5
|
export const PlayButtonWrapper = props => {
|
|
5
6
|
return (
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
7
8
|
jsx("div", {
|
|
8
9
|
css: playButtonWrapperStyles,
|
|
9
10
|
className: playButtonClassName
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { N0, N90A } from '@atlaskit/theme/colors';
|
|
3
4
|
export const playButtonClassName = 'media-card-play-button';
|
|
@@ -10,6 +11,8 @@ export const fixedPlayButtonStyles = `
|
|
|
10
11
|
height: ${discSizeHover}px;
|
|
11
12
|
}
|
|
12
13
|
`;
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
export const playButtonWrapperStyles = css({
|
|
14
17
|
position: 'absolute',
|
|
15
18
|
top: 0,
|
|
@@ -20,10 +23,13 @@ export const playButtonWrapperStyles = css({
|
|
|
20
23
|
alignItems: 'center',
|
|
21
24
|
justifyContent: 'center',
|
|
22
25
|
color: `var(--ds-icon-inverse, ${N0})`,
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
27
|
span: {
|
|
24
28
|
position: 'absolute'
|
|
25
29
|
}
|
|
26
30
|
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
27
33
|
export const backgroundStyles = css({
|
|
28
34
|
transitionProperty: 'width, height',
|
|
29
35
|
transitionDuration: '0.1s',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { styledBarStyles } from './styles';
|
|
4
5
|
export const StyledBar = props => {
|
|
@@ -11,7 +12,9 @@ export const StyledBar = props => {
|
|
|
11
12
|
return jsx("div", {
|
|
12
13
|
id: "styledBar",
|
|
13
14
|
role: "progressbar",
|
|
14
|
-
"aria-valuenow": progress
|
|
15
|
+
"aria-valuenow": progress
|
|
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
|
|
17
|
+
,
|
|
15
18
|
css: styledBarStyles({
|
|
16
19
|
progress,
|
|
17
20
|
breakpoint,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
3
4
|
import { rgba } from '../styles';
|
|
@@ -53,6 +54,7 @@ ${generateResponsiveStyles(breakpoint, positionBottom, showOnTop)}
|
|
|
53
54
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
54
55
|
|
|
55
56
|
export const styledBarStyles = props => {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
58
|
return css(getStyledBarStylesBasedOnProps(props));
|
|
57
59
|
};
|
|
58
60
|
styledBarStyles.displayName = 'StyledProgressBar';
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { tickBoxClassName } from './styles';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css } from '@emotion/react';
|
|
5
7
|
import { transition } from '../styles';
|
|
6
8
|
import { B200 } from '@atlaskit/theme/colors';
|
|
7
9
|
const getSelectedStyles = selected => selected ? `background-color: ${`var(--ds-icon-information, ${B200})`};
|
|
8
10
|
color: ${"var(--ds-icon-inverse, white)"};` : ``;
|
|
9
|
-
const wrapperStyles = selected => css(
|
|
11
|
+
const wrapperStyles = selected => css(
|
|
12
|
+
// 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
|
+
transition && transition(), {
|
|
10
14
|
fontSize: '14px',
|
|
11
15
|
width: '14px',
|
|
12
16
|
height: '14px',
|
|
@@ -15,17 +19,23 @@ const wrapperStyles = selected => css(transition && transition(), {
|
|
|
15
19
|
left: "var(--ds-space-075, 7px)",
|
|
16
20
|
borderRadius: '20px',
|
|
17
21
|
color: 'transparent',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
span: {
|
|
19
24
|
display: 'block',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
26
|
svg: {
|
|
21
27
|
height: '14px'
|
|
22
28
|
}
|
|
23
29
|
}
|
|
24
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
getSelectedStyles(selected));
|
|
25
33
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
26
34
|
export const TickBoxWrapper = props => {
|
|
27
35
|
return jsx("div", {
|
|
28
|
-
id: "tickBoxWrapper"
|
|
36
|
+
id: "tickBoxWrapper"
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
|
+
,
|
|
29
39
|
css: wrapperStyles(props.selected)
|
|
30
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
31
41
|
,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
3
4
|
import { N0, N800 } from '@atlaskit/theme/colors';
|
|
@@ -18,14 +19,18 @@ export const titleBoxWrapperStyles = ({
|
|
|
18
19
|
position: 'absolute',
|
|
19
20
|
bottom: 0,
|
|
20
21
|
width: '100%',
|
|
21
|
-
backgroundColor: `var(--ds-surface, ${
|
|
22
|
+
backgroundColor: `var(--ds-surface, ${
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1)})`,
|
|
22
25
|
color: `var(--ds-text, ${N800})`,
|
|
23
26
|
cursor: 'inherit',
|
|
24
27
|
pointerEvents: 'none',
|
|
25
28
|
display: 'flex',
|
|
26
29
|
flexDirection: 'column',
|
|
27
30
|
justifyContent: 'center'
|
|
28
|
-
},
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
generateResponsiveStyles(breakpoint));
|
|
29
34
|
titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
|
|
30
35
|
const infoStyles = `white-space: nowrap;overflow: hidden;`;
|
|
31
36
|
const iconOverlapStyles = `padding-right: 10px;`;
|
|
@@ -33,25 +38,39 @@ export const titleBoxHeaderStyles = ({
|
|
|
33
38
|
hasIconOverlap
|
|
34
39
|
}) => css({
|
|
35
40
|
fontWeight: 600
|
|
36
|
-
},
|
|
41
|
+
},
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
+
infoStyles,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
hasIconOverlap && iconOverlapStyles);
|
|
37
46
|
titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
|
|
38
47
|
export const titleBoxFooterStyles = ({
|
|
39
48
|
hasIconOverlap
|
|
40
49
|
}) => css({
|
|
41
50
|
textOverflow: 'ellipsis'
|
|
42
|
-
},
|
|
51
|
+
},
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
+
infoStyles,
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
55
|
+
hasIconOverlap && iconOverlapStyles);
|
|
43
56
|
titleBoxFooterStyles.displayName = 'TitleBoxFooter';
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
44
59
|
export const titleBoxIconStyles = css({
|
|
45
60
|
position: 'absolute',
|
|
46
61
|
right: "var(--ds-space-050, 4px)",
|
|
47
62
|
bottom: '0px'
|
|
48
63
|
});
|
|
64
|
+
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
49
66
|
export const errorMessageWrapperStyles = css({
|
|
50
67
|
display: 'flex',
|
|
51
68
|
alignItems: 'center',
|
|
52
69
|
justifyContent: 'flex-start',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
71
|
span: {
|
|
54
72
|
verticalAlign: 'middle',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
74
|
':nth-child(2)': {
|
|
56
75
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
57
76
|
marginRight: "var(--ds-space-050, 4px)"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { errorMessageWrapperStyles, titleBoxFooterStyles, titleBoxHeaderStyles, titleBoxIconStyles, titleBoxWrapperStyles } from './styles';
|
|
4
5
|
export const TitleBoxWrapper = props => {
|
|
@@ -8,7 +9,9 @@ export const TitleBoxWrapper = props => {
|
|
|
8
9
|
} = props;
|
|
9
10
|
return jsx("div", {
|
|
10
11
|
id: "titleBoxWrapper",
|
|
11
|
-
"data-testid": "media-title-box"
|
|
12
|
+
"data-testid": "media-title-box"
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
|
+
,
|
|
12
15
|
css: titleBoxWrapperStyles({
|
|
13
16
|
breakpoint: breakpoint,
|
|
14
17
|
titleBoxBgColor: titleBoxBgColor
|
|
@@ -19,31 +22,41 @@ export const TitleBoxHeader = props => {
|
|
|
19
22
|
const {
|
|
20
23
|
hasIconOverlap
|
|
21
24
|
} = props;
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
return (
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
27
|
+
jsx("div", {
|
|
28
|
+
id: "titleBoxHeader",
|
|
29
|
+
css: titleBoxHeaderStyles({
|
|
30
|
+
hasIconOverlap
|
|
31
|
+
})
|
|
32
|
+
}, props.children)
|
|
33
|
+
);
|
|
28
34
|
};
|
|
29
35
|
export const TitleBoxFooter = props => {
|
|
30
36
|
const {
|
|
31
37
|
hasIconOverlap
|
|
32
38
|
} = props;
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
return (
|
|
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
|
|
41
|
+
jsx("div", {
|
|
42
|
+
id: "titleBoxFooter",
|
|
43
|
+
css: titleBoxFooterStyles({
|
|
44
|
+
hasIconOverlap
|
|
45
|
+
})
|
|
46
|
+
}, props.children)
|
|
47
|
+
);
|
|
39
48
|
};
|
|
40
49
|
export const TitleBoxIcon = props => {
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
return (
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
52
|
+
jsx("div", {
|
|
53
|
+
id: "titleBoxIcon",
|
|
54
|
+
css: titleBoxIconStyles
|
|
55
|
+
}, props.children)
|
|
56
|
+
);
|
|
45
57
|
};
|
|
46
58
|
export const ErrorMessageWrapper = props => {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
60
|
return jsx("div", {
|
|
48
61
|
css: errorMessageWrapperStyles
|
|
49
62
|
}, props.children);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Component } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import WarningIcon from '@atlaskit/icon/glyph/editor/warning';
|
|
5
6
|
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
@@ -32,17 +33,25 @@ const getConvertedDimension = dimensions => {
|
|
|
32
33
|
};
|
|
33
34
|
const wrapperStyles = (dimensions = defaultImageCardDimensions) => {
|
|
34
35
|
try {
|
|
35
|
-
return css(
|
|
36
|
+
return css(
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
|
+
center,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
+
borderRadius, {
|
|
36
41
|
background: `var(--ds-background-neutral, ${N20})`,
|
|
37
42
|
color: `var(--ds-text-subtle, ${N800})`,
|
|
38
43
|
maxHeight: '100%',
|
|
39
44
|
maxWidth: '100%'
|
|
40
|
-
},
|
|
45
|
+
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
|
+
getConvertedDimension(dimensions), {
|
|
41
48
|
display: 'flex',
|
|
42
49
|
flexDirection: 'column',
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
51
|
p: {
|
|
44
52
|
fontSize: `${fontSize()}px`,
|
|
45
53
|
textAlign: 'center',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
46
55
|
display: shouldShowText(getConvertedDimension(dimensions)) ? 'block' : 'none'
|
|
47
56
|
}
|
|
48
57
|
});
|
|
@@ -56,13 +65,16 @@ export class UnhandledErrorCard extends Component {
|
|
|
56
65
|
dimensions,
|
|
57
66
|
onClick
|
|
58
67
|
} = this.props;
|
|
59
|
-
return
|
|
60
|
-
css
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
68
|
+
return (
|
|
69
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
70
|
+
jsx("div", {
|
|
71
|
+
css: wrapperStyles(dimensions),
|
|
72
|
+
onClick: onClick
|
|
73
|
+
}, jsx(WarningIcon, {
|
|
74
|
+
label: "Error",
|
|
75
|
+
primaryColor: `var(--ds-icon-warning, ${Y500})`,
|
|
76
|
+
size: "medium"
|
|
77
|
+
}), jsx("p", null, "We couldn't load this content"))
|
|
78
|
+
);
|
|
67
79
|
}
|
|
68
80
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { fontFamily } from '@atlaskit/theme/constants';
|
|
3
4
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
@@ -19,36 +20,36 @@ export const wrapperStyles = ({
|
|
|
19
20
|
shouldDisplayTooltip,
|
|
20
21
|
mediaCardCursor
|
|
21
22
|
}) => css`
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
${transition()}
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
* {
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
position: relative;
|
|
29
|
+
font-family: ${fontFamily()};
|
|
30
|
+
${getWrapperDimensions(dimensions, appearance)}
|
|
31
|
+
${displayBackground && `background: ${`var(--ds-background-neutral, ${N20})`};`}
|
|
31
32
|
${borderRadius}
|
|
32
33
|
${getCursorStyle(mediaCardCursor)}
|
|
33
34
|
${getWrapperShadow(disableOverlay, selected)}
|
|
34
35
|
${generateResponsiveStyles(breakpoint)};
|
|
35
|
-
|
|
36
|
+
${hideNativeBrowserTextSelectionStyles}
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
/* We use classnames from here exceptionally to be able to handle styles when the Card is on hover */
|
|
38
39
|
${getClickablePlayButtonStyles(isPlayButtonClickable)}
|
|
39
40
|
${getSelectableTickBoxStyles(isTickBoxSelectable)}
|
|
40
41
|
&:hover .${blanketClassName} {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
${fixedBlanketStyles}
|
|
43
|
+
}
|
|
44
|
+
&:hover .${actionsBarClassName}, &:focus-within .${actionsBarClassName} {
|
|
45
|
+
${fixedActionBarStyles}
|
|
46
|
+
}
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
/* Tooltip does not support percentage dimensions. We enforce them here */
|
|
49
|
+
${shouldDisplayTooltip && `> div { width: 100%; height: 100%; }`}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
button:focus + & {
|
|
52
|
+
outline: solid 2px ${`var(--ds-border-focused, ${B100})`};
|
|
53
|
+
}
|
|
53
54
|
`;
|
|
54
55
|
wrapperStyles.displayName = 'NewFileExperienceWrapper';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**@jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { newFileExperienceClassName } from '../../cardConstants';
|
|
4
5
|
import { wrapperStyles } from './styles';
|
|
@@ -24,7 +25,9 @@ export const Wrapper = props => {
|
|
|
24
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
25
26
|
,
|
|
26
27
|
className: newFileExperienceClassName,
|
|
27
|
-
"data-testid": testId
|
|
28
|
+
"data-testid": testId
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
28
31
|
css: wrapperStyles({
|
|
29
32
|
breakpoint,
|
|
30
33
|
dimensions,
|
|
@@ -7,7 +7,7 @@ import { IntlProvider, injectIntl } from 'react-intl-next';
|
|
|
7
7
|
import { ExternalImageCard } from './externalImageCard';
|
|
8
8
|
import { FileCard } from './fileCard';
|
|
9
9
|
const packageName = "@atlaskit/media-card";
|
|
10
|
-
const packageVersion = "77.12.
|
|
10
|
+
const packageVersion = "77.12.2";
|
|
11
11
|
export const CardV2Base = ({
|
|
12
12
|
identifier,
|
|
13
13
|
...otherProps
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import React, { useEffect, useState, useRef } from 'react';
|
|
4
5
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { MimeTypeIcon } from '@atlaskit/media-ui/mime-type-icon';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { useEffect, useRef } from 'react';
|
|
5
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|