@atlaskit/media-card 79.16.6 → 79.16.7
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 +8 -0
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +4 -4
- package/dist/cjs/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +7 -8
- package/dist/cjs/card/ui/actionsBar/cardActions/styles.js +2 -4
- package/dist/cjs/card/ui/blanket/blanket-compiled.compiled.css +1 -1
- package/dist/cjs/card/ui/blanket/blanket-compiled.js +3 -7
- package/dist/cjs/card/ui/blanket/styles.js +1 -2
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +1 -1
- package/dist/cjs/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
- package/dist/cjs/card/ui/playButton/playButtonBackground-compiled.compiled.css +1 -1
- package/dist/cjs/card/ui/playButton/playButtonBackground-compiled.js +2 -4
- package/dist/cjs/card/ui/playButton/playButtonWrapper-compiled.compiled.css +1 -1
- package/dist/cjs/card/ui/playButton/playButtonWrapper-compiled.js +1 -5
- package/dist/cjs/card/ui/playButton/styles.js +2 -3
- package/dist/cjs/card/ui/styles.js +1 -2
- package/dist/cjs/card/ui/tickBox/styles.js +1 -2
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +3 -3
- package/dist/cjs/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -5
- package/dist/cjs/card/ui/titleBox/failedTitleBox.js +1 -2
- package/dist/cjs/card/ui/titleBox/styles.js +3 -9
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +1 -1
- package/dist/cjs/card/ui/titleBox/titleBoxComponents-compiled.js +4 -3
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +2 -2
- package/dist/cjs/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +4 -10
- package/dist/cjs/card/ui/wrapper/styles.js +1 -2
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.compiled.css +7 -7
- package/dist/cjs/card/ui/wrapper/wrapper-compiled.js +6 -12
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/inline/mediaInlineAnalyticsErrorBoundary.js +4 -5
- package/dist/cjs/utils/lightCards/errorIcon/styles.js +1 -1
- package/dist/cjs/utils/lightCards/styles.js +2 -3
- package/dist/cjs/utils/ufoExperiences.js +1 -1
- package/dist/es2019/card/card.js +1 -1
- package/dist/es2019/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +4 -4
- package/dist/es2019/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +3 -4
- package/dist/es2019/card/ui/actionsBar/cardActions/styles.js +4 -6
- package/dist/es2019/card/ui/blanket/blanket-compiled.compiled.css +1 -1
- package/dist/es2019/card/ui/blanket/blanket-compiled.js +2 -3
- package/dist/es2019/card/ui/blanket/styles.js +1 -2
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +1 -1
- package/dist/es2019/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
- package/dist/es2019/card/ui/playButton/playButtonBackground-compiled.compiled.css +1 -1
- package/dist/es2019/card/ui/playButton/playButtonBackground-compiled.js +1 -2
- package/dist/es2019/card/ui/playButton/playButtonWrapper-compiled.js +0 -1
- package/dist/es2019/card/ui/playButton/styles.js +2 -3
- package/dist/es2019/card/ui/styles.js +1 -2
- package/dist/es2019/card/ui/tickBox/styles.js +2 -3
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +3 -3
- package/dist/es2019/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -2
- package/dist/es2019/card/ui/titleBox/failedTitleBox.js +1 -2
- package/dist/es2019/card/ui/titleBox/styles.js +3 -9
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +1 -1
- package/dist/es2019/card/ui/titleBox/titleBoxComponents-compiled.js +2 -2
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +2 -2
- package/dist/es2019/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +2 -3
- package/dist/es2019/card/ui/wrapper/styles.js +2 -3
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.compiled.css +6 -6
- package/dist/es2019/card/ui/wrapper/wrapper-compiled.js +4 -5
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/inline/mediaInlineAnalyticsErrorBoundary.js +4 -5
- package/dist/es2019/utils/lightCards/errorIcon/styles.js +1 -1
- package/dist/es2019/utils/lightCards/styles.js +2 -3
- package/dist/es2019/utils/ufoExperiences.js +1 -1
- package/dist/esm/card/card.js +1 -1
- package/dist/esm/card/media-card-analytics-error-boundary.js +1 -1
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-compiled.compiled.css +4 -4
- package/dist/esm/card/ui/actionsBar/cardActions/cardActionButton-compiled.js +7 -8
- package/dist/esm/card/ui/actionsBar/cardActions/styles.js +2 -4
- package/dist/esm/card/ui/blanket/blanket-compiled.compiled.css +1 -1
- package/dist/esm/card/ui/blanket/blanket-compiled.js +3 -7
- package/dist/esm/card/ui/blanket/styles.js +1 -2
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper-compiled.compiled.css +1 -1
- package/dist/esm/card/ui/iconMessage/iconMessageWrapper-compiled.js +1 -1
- package/dist/esm/card/ui/playButton/playButtonBackground-compiled.compiled.css +1 -1
- package/dist/esm/card/ui/playButton/playButtonBackground-compiled.js +2 -4
- package/dist/esm/card/ui/playButton/playButtonWrapper-compiled.compiled.css +1 -1
- package/dist/esm/card/ui/playButton/playButtonWrapper-compiled.js +1 -5
- package/dist/esm/card/ui/playButton/styles.js +2 -3
- package/dist/esm/card/ui/styles.js +1 -2
- package/dist/esm/card/ui/tickBox/styles.js +1 -2
- package/dist/esm/card/ui/tickBox/tickBoxWrapper-compiled.compiled.css +3 -3
- package/dist/esm/card/ui/tickBox/tickBoxWrapper-compiled.js +1 -5
- package/dist/esm/card/ui/titleBox/failedTitleBox.js +1 -2
- package/dist/esm/card/ui/titleBox/styles.js +3 -9
- package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.compiled.css +1 -1
- package/dist/esm/card/ui/titleBox/titleBoxComponents-compiled.js +5 -4
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.compiled.css +2 -2
- package/dist/esm/card/ui/unhandledErrorCard/unhandledErrorCard-compiled.js +4 -10
- package/dist/esm/card/ui/wrapper/styles.js +1 -2
- package/dist/esm/card/ui/wrapper/wrapper-compiled.compiled.css +7 -7
- package/dist/esm/card/ui/wrapper/wrapper-compiled.js +6 -12
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/inline/mediaInlineAnalyticsErrorBoundary.js +4 -5
- package/dist/esm/utils/lightCards/errorIcon/styles.js +1 -1
- package/dist/esm/utils/lightCards/styles.js +2 -3
- package/dist/esm/utils/ufoExperiences.js +1 -1
- package/dist/types/card/ui/titleBox/styles.d.ts +1 -1
- package/dist/types-ts4.5/card/ui/titleBox/styles.d.ts +1 -1
- package/example-helpers/styles.ts +26 -32
- package/package.json +1 -1
|
@@ -13,7 +13,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
17
16
|
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
18
17
|
var _analytics = require("../utils/analytics");
|
|
19
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -25,7 +24,7 @@ var ErrorBoundaryComponent = function ErrorBoundaryComponent(_ref) {
|
|
|
25
24
|
isSelected = _ref.isSelected;
|
|
26
25
|
var selectedStyle = {
|
|
27
26
|
cursor: 'pointer',
|
|
28
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
27
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #1868DB)"),
|
|
29
28
|
outline: 'none',
|
|
30
29
|
userSelect: 'none',
|
|
31
30
|
borderColor: 'transparent'
|
|
@@ -55,8 +54,8 @@ var ErrorBoundaryComponent = function ErrorBoundaryComponent(_ref) {
|
|
|
55
54
|
alignItems: 'center',
|
|
56
55
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
57
56
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
58
|
-
color: "var(--ds-text,
|
|
59
|
-
backgroundColor: "var(--ds-background-neutral,
|
|
57
|
+
color: "var(--ds-text, #292A2E)",
|
|
58
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
60
59
|
userSelect: 'text',
|
|
61
60
|
transition: 'all 0.1s ease-in-out 0s',
|
|
62
61
|
cursor: 'pointer'
|
|
@@ -70,7 +69,7 @@ var ErrorBoundaryComponent = function ErrorBoundaryComponent(_ref) {
|
|
|
70
69
|
style: style
|
|
71
70
|
}, /*#__PURE__*/_react.default.createElement(_statusWarning.default, {
|
|
72
71
|
label: "error",
|
|
73
|
-
color: "var(--ds-icon-danger,
|
|
72
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
74
73
|
size: "small"
|
|
75
74
|
}), message)
|
|
76
75
|
);
|
|
@@ -10,5 +10,5 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var errorIconWrapperStyles = exports.errorIconWrapperStyles = (0, _react.css)({
|
|
12
12
|
display: 'flex',
|
|
13
|
-
color: "var(--ds-icon-warning, #
|
|
13
|
+
color: "var(--ds-icon-warning, #E06C00)"
|
|
14
14
|
});
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.wrapperStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
9
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
10
|
|
|
12
11
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
@@ -14,8 +13,8 @@ var wrapperStyles = exports.wrapperStyles = function wrapperStyles(_ref) {
|
|
|
14
13
|
return (0, _react.css)(
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
16
15
|
_mediaUi.center, {
|
|
17
|
-
background: "var(--ds-background-neutral,
|
|
18
|
-
color: "var(--ds-icon,
|
|
16
|
+
background: "var(--ds-background-neutral, #0515240F)",
|
|
17
|
+
color: "var(--ds-icon, #292A2E)"
|
|
19
18
|
},
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
20
|
_mediaUi.borderRadius, {
|
|
@@ -19,7 +19,7 @@ var _globalScope = require("./globalScope/globalScope");
|
|
|
19
19
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
20
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
21
|
var packageName = "@atlaskit/media-card";
|
|
22
|
-
var packageVersion = "79.16.
|
|
22
|
+
var packageVersion = "79.16.6";
|
|
23
23
|
var SAMPLE_RATE = 0.05;
|
|
24
24
|
|
|
25
25
|
/**
|
package/dist/es2019/card/card.js
CHANGED
|
@@ -9,7 +9,7 @@ import { startResourceObserver, setAnalyticsContext } from '../utils/mediaPerfor
|
|
|
9
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
10
10
|
import UFOLabel from '@atlaskit/react-ufo/label';
|
|
11
11
|
const packageName = "@atlaskit/media-card";
|
|
12
|
-
const packageVersion = "79.16.
|
|
12
|
+
const packageVersion = "79.16.6";
|
|
13
13
|
export const CardBase = ({
|
|
14
14
|
identifier,
|
|
15
15
|
...otherProps
|
|
@@ -66,7 +66,7 @@ class WrappedMediaCardAnalyticsErrorBoundary extends React.Component {
|
|
|
66
66
|
}
|
|
67
67
|
_defineProperty(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
68
68
|
const packageName = "@atlaskit/media-card";
|
|
69
|
-
const packageVersion = "79.16.
|
|
69
|
+
const packageVersion = "79.16.6";
|
|
70
70
|
|
|
71
71
|
// @ts-ignore: [PIT-1685] Fails in post-office due to backwards incompatibility issue with React 18
|
|
72
72
|
const MediaCardAnalyticsErrorBoundary = withMediaAnalyticsContext({
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
._1e0c1txw{display:flex}
|
|
6
6
|
._4cvr1h6o{align-items:center}
|
|
7
7
|
._4t3i1ou6{height:26px}
|
|
8
|
-
.
|
|
8
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
9
9
|
._r06hglyw{-webkit-appearance:none;appearance:none}
|
|
10
|
-
.
|
|
10
|
+
._syaz1q3r{color:var(--ds-icon,#292a2e)}
|
|
11
11
|
._d0altlke:hover{cursor:pointer}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
12
|
+
._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
|
|
13
|
+
._irr36o2t:hover{background-color:var(--ds-surface-overlay-hovered,#f0f1f2)}
|
|
@@ -7,10 +7,9 @@ import { forwardRef } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
11
10
|
const variantStyleMap = {
|
|
12
|
-
filled: "
|
|
13
|
-
default: "
|
|
11
|
+
filled: "_bfhk1bhr _irr36o2t",
|
|
12
|
+
default: "_irr31dpa"
|
|
14
13
|
};
|
|
15
14
|
const cardActionButtonStyles = null;
|
|
16
15
|
export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
@@ -29,6 +28,6 @@ export const CardActionButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
29
28
|
onClick: props.onClick,
|
|
30
29
|
onMouseDown: props.onMouseDown,
|
|
31
30
|
ref: ref,
|
|
32
|
-
className: ax(["_19itglyw _2rkofajl _r06hglyw _1e0c1txw _4cvr1h6o _1bah1h6o _1bsb1ou6 _4t3i1ou6
|
|
31
|
+
className: ax(["_19itglyw _2rkofajl _r06hglyw _1e0c1txw _4cvr1h6o _1bah1h6o _1bsb1ou6 _4t3i1ou6 _syaz1q3r _d0altlke", variantStyleMap[(_props$variant = props.variant) !== null && _props$variant !== void 0 ? _props$variant : 'default']])
|
|
33
32
|
}), props.children);
|
|
34
33
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N500, N0 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { borderRadius, size, center } from '@atlaskit/media-ui';
|
|
5
|
-
import { rgba } from '../../styles';
|
|
6
4
|
export let CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconButtonVariant) {
|
|
7
5
|
CardActionIconButtonVariant["default"] = "default";
|
|
8
6
|
CardActionIconButtonVariant["filled"] = "filled";
|
|
@@ -10,14 +8,14 @@ export let CardActionIconButtonVariant = /*#__PURE__*/function (CardActionIconBu
|
|
|
10
8
|
}({});
|
|
11
9
|
const getVariantStyles = variant => {
|
|
12
10
|
return variant === 'filled' ? `
|
|
13
|
-
background-color: ${
|
|
11
|
+
background-color: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
14
12
|
|
|
15
13
|
&:hover {
|
|
16
|
-
background-color: ${
|
|
14
|
+
background-color: ${"var(--ds-surface-overlay-hovered, #F0F1F2)"}
|
|
17
15
|
}
|
|
18
16
|
` : `
|
|
19
17
|
&:hover {
|
|
20
|
-
background-color: ${"var(--ds-background-neutral-subtle-hovered,
|
|
18
|
+
background-color: ${"var(--ds-background-neutral-subtle-hovered, #0515240F)"};
|
|
21
19
|
}
|
|
22
20
|
`;
|
|
23
21
|
};
|
|
@@ -33,7 +31,7 @@ center,
|
|
|
33
31
|
borderRadius,
|
|
34
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
33
|
size(26), {
|
|
36
|
-
color:
|
|
34
|
+
color: "var(--ds-icon, #292A2E)",
|
|
37
35
|
'&:hover': {
|
|
38
36
|
cursor: 'pointer'
|
|
39
37
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
._1bsb1osq{width:100%}
|
|
4
4
|
._1ltvidpf{left:0}
|
|
5
5
|
._4t3i1osq{height:100%}
|
|
6
|
-
.
|
|
6
|
+
._bfhk1i5c{background-color:var(--ds-blanket,#050c1f75)}
|
|
7
7
|
._c71l1osq{max-height:100%}
|
|
8
8
|
._kqswstnw{position:absolute}
|
|
9
9
|
._p12f1osq{max-width:100%}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import "./blanket-compiled.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { N90A } from '@atlaskit/theme/colors';
|
|
6
5
|
export const blanketClassName = 'media-card-blanket';
|
|
7
|
-
export const fixedBlanketStyles = `background-color: ${
|
|
6
|
+
export const fixedBlanketStyles = `background-color: ${"var(--ds-blanket, #050C1F75)"};`;
|
|
8
7
|
const blanketStyles = null;
|
|
9
8
|
const fixedBlanketStyle = null;
|
|
10
9
|
export const Blanket = props => {
|
|
@@ -13,7 +12,7 @@ export const Blanket = props => {
|
|
|
13
12
|
} = props;
|
|
14
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
|
-
className: ax(["_v564ybtr _kqswstnw _1bsb1osq _4t3i1osq _c71l1osq _p12f1osq _1ltvidpf _154iidpf", isFixed && "
|
|
15
|
+
className: ax(["_v564ybtr _kqswstnw _1bsb1osq _4t3i1osq _c71l1osq _p12f1osq _1ltvidpf _154iidpf", isFixed && "_bfhk1i5c", blanketClassName]),
|
|
17
16
|
"data-testid": "media-card-blanket"
|
|
18
17
|
});
|
|
19
18
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { transition } from '../styles';
|
|
4
|
-
import { N90A } from '@atlaskit/theme/colors';
|
|
5
4
|
export const blanketClassName = 'media-card-blanket';
|
|
6
|
-
export const fixedBlanketStyles = `background-color: ${
|
|
5
|
+
export const fixedBlanketStyles = `background-color: ${"var(--ds-blanket, #050C1F75)"};`;
|
|
7
6
|
export const blanketStyles = isFixed => css(
|
|
8
7
|
// 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
8
|
transition(), {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
._j7hqq7op{animation-name:k1o0pcpo}
|
|
8
8
|
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
9
9
|
._otyr1d21{margin-bottom:-1em}
|
|
10
|
-
.
|
|
10
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
11
11
|
._tip812c5{animation-iteration-count:infinite}
|
|
12
12
|
._tzy4kb7n{opacity:1}
|
|
13
13
|
._y3gn1h6o{text-align:center}
|
|
@@ -12,6 +12,6 @@ export const IconMessageWrapper = props => {
|
|
|
12
12
|
return /*#__PURE__*/React.createElement("div", {
|
|
13
13
|
id: "iconMessageWrapper",
|
|
14
14
|
"data-testid": "icon-message-wrapper",
|
|
15
|
-
className: ax(["_1reo15vq _18m915vq _1rjc1b66 _18zru2gc _tzy4kb7n _k48p1wq8
|
|
15
|
+
className: ax(["_1reo15vq _18m915vq _1rjc1b66 _18zru2gc _tzy4kb7n _k48p1wq8 _syaz1rpy _y3gn1h6o _otyr1d21", animated && "", animated && "_j7hqq7op _5sag1nwe _1pgl1ytf _tip812c5"])
|
|
16
16
|
}, props.children);
|
|
17
17
|
};
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}._1bsbckbl{width:3pc}
|
|
3
3
|
._1oec1yx9{transition-duration:.1s}
|
|
4
4
|
._4t3ickbl{height:3pc}
|
|
5
|
-
.
|
|
5
|
+
._bfhk1aqn{background-color:var(--ds-background-neutral-bold,#292a2e)}
|
|
6
6
|
._k8m0jofv{transition-property:width,height}
|
|
7
7
|
._kqswstnw{position:absolute}
|
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
import "./playButtonBackground-compiled.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { N90A } from '@atlaskit/theme/colors';
|
|
6
5
|
import { bkgClassName } from './styles';
|
|
7
6
|
const discSize = 48;
|
|
8
7
|
const backgroundStyles = null;
|
|
9
8
|
export const PlayButtonBackground = () => {
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop
|
|
11
10
|
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: ax(["_2rko1rr0 _k8m0jofv _1oec1yx9 _kqswstnw _1bsbckbl _4t3ickbl
|
|
11
|
+
className: ax(["_2rko1rr0 _k8m0jofv _1oec1yx9 _kqswstnw _1bsbckbl _4t3ickbl _bfhk1aqn", bkgClassName])
|
|
13
12
|
});
|
|
14
13
|
};
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import "./playButtonWrapper-compiled.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
6
5
|
import { playButtonClassName } from './styles';
|
|
7
6
|
const playButtonWrapperStyles = null;
|
|
8
7
|
export const PlayButtonWrapper = props => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N0, N90A } from '@atlaskit/theme/colors';
|
|
4
3
|
export const playButtonClassName = 'media-card-play-button';
|
|
5
4
|
export const bkgClassName = 'play-icon-background';
|
|
6
5
|
const discSize = 48;
|
|
@@ -22,7 +21,7 @@ export const playButtonWrapperStyles = css({
|
|
|
22
21
|
display: 'flex',
|
|
23
22
|
alignItems: 'center',
|
|
24
23
|
justifyContent: 'center',
|
|
25
|
-
color:
|
|
24
|
+
color: "var(--ds-icon-inverse, #FFFFFF)",
|
|
26
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
26
|
span: {
|
|
28
27
|
position: 'absolute'
|
|
@@ -36,6 +35,6 @@ export const backgroundStyles = css({
|
|
|
36
35
|
position: 'absolute',
|
|
37
36
|
width: `${discSize}px`,
|
|
38
37
|
height: `${discSize}px`,
|
|
39
|
-
background:
|
|
38
|
+
background: "var(--ds-background-neutral-bold, #292A2E)",
|
|
40
39
|
borderRadius: "var(--ds-radius-full, 9999px)"
|
|
41
40
|
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { N60A } from '@atlaskit/theme/colors';
|
|
2
1
|
import { akEditorSelectedBoxShadow } from '@atlaskit/editor-shared-styles/consts';
|
|
3
2
|
import { getCSSUnitValue } from '../../utils/getCSSUnitValue';
|
|
4
3
|
import { getDefaultCardDimensions } from '../../utils/cardDimensions';
|
|
@@ -39,7 +38,7 @@ export const getWrapperDimensions = (dimensions, appearance) => {
|
|
|
39
38
|
// This is a trick to simulate the blue border without affecting the dimensions.
|
|
40
39
|
// CSS outline has no 'radius', therefore we can't achieve the same effect with it
|
|
41
40
|
export const getWrapperShadow = (disableOverlay, selected) => {
|
|
42
|
-
const withOverlayShadow = !disableOverlay ? `${
|
|
41
|
+
const withOverlayShadow = !disableOverlay ? `${"var(--ds-shadow-raised, 0px 1px 1px #1E1F2140, 0px 0px 1px #1E1F214f)"}` : '';
|
|
43
42
|
const selectedShadow = selected ? akEditorSelectedBoxShadow : '';
|
|
44
43
|
const shadow = [selectedShadow, withOverlayShadow].filter(Boolean).join(', ');
|
|
45
44
|
return shadow ? `box-shadow: ${shadow};` : '';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { N0, N100 } from '@atlaskit/theme/colors';
|
|
2
1
|
export const tickBoxClassName = 'media-card-tickbox';
|
|
3
2
|
export const tickboxFixedStyles = `
|
|
4
|
-
background-color: ${
|
|
5
|
-
color: ${
|
|
3
|
+
background-color: ${"var(--ds-background-input, #FFFFFF)"};
|
|
4
|
+
color: ${"var(--ds-icon-subtle, #505258)"};
|
|
6
5
|
`;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rkov47k{border-radius:var(--ds-space-250,20px)}
|
|
3
3
|
._v564ybtr{transition:all .3s}
|
|
4
|
-
.
|
|
4
|
+
._154i12x7{top:var(--ds-space-075,6px)}
|
|
5
5
|
._1b941ule span{display:block}
|
|
6
6
|
._1bsbpxbi{width:var(--ds-space-200,1pc)}
|
|
7
7
|
._1e0c11p5{display:grid}
|
|
8
|
-
.
|
|
8
|
+
._1ltv12x7{left:var(--ds-space-075,6px)}
|
|
9
9
|
._4cvr1h6o{align-items:center}
|
|
10
10
|
._4t3ipxbi{height:var(--ds-space-200,1pc)}
|
|
11
11
|
._6a6z1h6o{justify-items:center}
|
|
12
|
-
.
|
|
12
|
+
._bfhkyhbg{background-color:var(--ds-icon-information,#357de8)}
|
|
13
13
|
._kqswstnw{position:absolute}
|
|
14
14
|
._syaz1j28{color:transparent}
|
|
15
15
|
._syaz5w2r{color:var(--ds-icon-inverse,#fff)}
|
|
@@ -3,14 +3,13 @@ import "./tickBoxWrapper-compiled.compiled.css";
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { tickBoxClassName } from './styles';
|
|
6
|
-
import { B200 } from '@atlaskit/theme/colors';
|
|
7
6
|
const selectedStyles = null;
|
|
8
7
|
const wrapperStyles = null;
|
|
9
8
|
export const TickBoxWrapper = props => {
|
|
10
9
|
return /*#__PURE__*/React.createElement("div", {
|
|
11
10
|
id: "tickBoxWrapper",
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
13
|
-
className: ax(["_11c8fhey _2rkov47k _4cvr1h6o _6a6z1h6o _v564ybtr _1bsbpxbi _4t3ipxbi _kqswstnw
|
|
12
|
+
className: ax(["_11c8fhey _2rkov47k _4cvr1h6o _6a6z1h6o _v564ybtr _1bsbpxbi _4t3ipxbi _kqswstnw _154i12x7 _1ltv12x7 _syaz1j28 _1e0c11p5 _1b941ule", props.selected && "_bfhkyhbg _syaz5w2r", tickBoxClassName])
|
|
14
13
|
}, props.children);
|
|
15
14
|
};
|
|
16
15
|
TickBoxWrapper.displayName = 'TickBoxWrapper';
|
|
@@ -5,7 +5,6 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import EditorWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
7
7
|
import { messages } from '@atlaskit/media-ui';
|
|
8
|
-
import { R300 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { ErrorMessageWrapper, TitleBoxWrapper } from './titleBoxComponents';
|
|
10
9
|
const errorMessageWrapperStyles = null;
|
|
11
10
|
export const FailedTitleBox = ({
|
|
@@ -16,7 +15,7 @@ export const FailedTitleBox = ({
|
|
|
16
15
|
breakpoint: breakpoint
|
|
17
16
|
}, /*#__PURE__*/React.createElement(ErrorMessageWrapper, null, /*#__PURE__*/React.createElement(EditorWarningIcon, {
|
|
18
17
|
label: 'Warning',
|
|
19
|
-
color:
|
|
18
|
+
color: "var(--ds-text-danger, #AE2E24)",
|
|
20
19
|
size: "small"
|
|
21
20
|
}), /*#__PURE__*/React.createElement("span", {
|
|
22
21
|
className: ax(["_s7n4nkob _18u01b66 _2hwx1b66"])
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { responsiveSettings, getTitleBoxHeight, Breakpoint } from '../common';
|
|
4
|
-
import { N0, N800 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { rgba } from '../styles';
|
|
6
4
|
const generateResponsiveStyles = (breakpoint = Breakpoint.SMALL) => {
|
|
7
5
|
const setting = responsiveSettings[breakpoint];
|
|
8
6
|
const verticalPadding = setting.titleBox.verticalPadding;
|
|
@@ -11,19 +9,15 @@ const generateResponsiveStyles = (breakpoint = Breakpoint.SMALL) => {
|
|
|
11
9
|
return `height: ${height}px;
|
|
12
10
|
padding: ${verticalPadding}px ${horizontalPadding}px;`;
|
|
13
11
|
};
|
|
14
|
-
const HEX_REGEX = /^#[0-9A-F]{6}$/i;
|
|
15
12
|
export const titleBoxWrapperStyles = ({
|
|
16
13
|
breakpoint,
|
|
17
|
-
display = 'flex'
|
|
18
|
-
titleBoxBgColor
|
|
14
|
+
display = 'flex'
|
|
19
15
|
}) => css({
|
|
20
16
|
position: 'absolute',
|
|
21
17
|
bottom: 0,
|
|
22
18
|
width: '100%',
|
|
23
|
-
backgroundColor:
|
|
24
|
-
|
|
25
|
-
rgba(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : N0, 1)})`,
|
|
26
|
-
color: `var(--ds-text, ${N800})`,
|
|
19
|
+
backgroundColor: "var(--ds-surface, #FFFFFF)",
|
|
20
|
+
color: "var(--ds-text, #292A2E)",
|
|
27
21
|
cursor: 'inherit',
|
|
28
22
|
pointerEvents: 'none',
|
|
29
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
._n3td1y44{padding-bottom:4px}
|
|
27
27
|
._n3tdftgi{padding-bottom:8px}
|
|
28
28
|
._o5721q9c{white-space:nowrap}
|
|
29
|
-
.
|
|
29
|
+
._syazi7uo{color:var(--ds-text,#292a2e)}
|
|
30
30
|
._u5f319bv{padding-right:10px}
|
|
31
31
|
._u5f31crf{padding-right:9pt}
|
|
32
32
|
._u5f3ftgi{padding-right:8px}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./titleBoxComponents-compiled.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { N0
|
|
5
|
+
import { N0 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { rgba } from '../styles';
|
|
7
7
|
const smallLineHeight = 14;
|
|
8
8
|
const smallVerticalPadding = 4;
|
|
@@ -33,7 +33,7 @@ export const TitleBoxWrapper = props => {
|
|
|
33
33
|
}
|
|
34
34
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
35
35
|
,
|
|
36
|
-
className: ax(["_kqswstnw _94n5idpf _1bsb1osq _bfhkvuon
|
|
36
|
+
className: ax(["_kqswstnw _94n5idpf _1bsb1osq _bfhkvuon _syazi7uo _80om1kw7 _lcxvglyw _1e0c1txw _2lx21bp4 _1bah1h6o", responsiveStyleMap[breakpoint]])
|
|
37
37
|
}, props.children);
|
|
38
38
|
};
|
|
39
39
|
TitleBoxWrapper.displayName = 'TitleBoxWrapper';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
._2lx21bp4{flex-direction:column}
|
|
6
6
|
._31ku1h6o p{text-align:center}
|
|
7
7
|
._4cvr1h6o{align-items:center}
|
|
8
|
-
.
|
|
8
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
9
9
|
._c71l1osq{max-height:100%}
|
|
10
10
|
._p12f1osq{max-width:100%}
|
|
11
|
-
.
|
|
11
|
+
._syazazsu{color:var(--ds-text-subtle,#505258)}
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Component } from 'react';
|
|
6
6
|
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
7
|
-
import { N20, N800, Y500 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { defaultImageCardDimensions } from '../../../utils';
|
|
9
8
|
import { ContentLoadingErrorMessage } from './contentLoadingErrorMessage';
|
|
10
9
|
const isPercentage = value => /^\d+(\.\d+)?%$/.test(value);
|
|
@@ -45,10 +44,10 @@ export class UnhandledErrorCard extends Component {
|
|
|
45
44
|
style: convertedDimensions,
|
|
46
45
|
onClick: onClick,
|
|
47
46
|
"data-testid": "unhandled-error-card",
|
|
48
|
-
className: ax(["_2rkofajl _1e0c1txw _4cvr1h6o _1bah1h6o
|
|
47
|
+
className: ax(["_2rkofajl _1e0c1txw _4cvr1h6o _1bah1h6o _bfhki8nm _syazazsu _c71l1osq _p12f1osq _2lx21bp4 _1i7vfhey _31ku1h6o"])
|
|
49
48
|
}, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
50
49
|
label: "Error",
|
|
51
|
-
color:
|
|
50
|
+
color: "var(--ds-icon-warning, #E06C00)",
|
|
52
51
|
spacing: "spacious"
|
|
53
52
|
}), /*#__PURE__*/React.createElement(ContentLoadingErrorMessage, {
|
|
54
53
|
isHidden: hideText
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { borderRadius } from '@atlaskit/media-ui';
|
|
4
|
-
import { N20, B100 } from '@atlaskit/theme/colors';
|
|
5
4
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
6
5
|
import { transition } from '../styles';
|
|
7
6
|
import { fixedBlanketStyles, blanketClassName } from '../blanket/styles';
|
|
@@ -27,7 +26,7 @@ export const wrapperStyles = ({
|
|
|
27
26
|
position: relative;
|
|
28
27
|
font-family: ${"var(--ds-font-family-body, \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)"};
|
|
29
28
|
${getWrapperDimensions(dimensions, appearance)}
|
|
30
|
-
${displayBackground && `background: ${
|
|
29
|
+
${displayBackground && `background: ${"var(--ds-background-neutral, #0515240F)"};`}
|
|
31
30
|
${borderRadius}
|
|
32
31
|
${getCursorStyle(mediaCardCursor)}
|
|
33
32
|
${getWrapperShadow(disableOverlay, selected)}
|
|
@@ -48,7 +47,7 @@ export const wrapperStyles = ({
|
|
|
48
47
|
${shouldDisplayTooltip && `> div { width: 100%; height: 100%; }`}
|
|
49
48
|
|
|
50
49
|
button:focus + & {
|
|
51
|
-
outline: solid 2px ${
|
|
50
|
+
outline: solid 2px ${"var(--ds-border-focused, #4688EC)"};
|
|
52
51
|
}
|
|
53
52
|
`;
|
|
54
53
|
wrapperStyles.displayName = 'NewFileExperienceWrapper';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
._2rko18qm{border-radius:var(--ds-radius-large,3px)}
|
|
3
|
-
button:focus+.
|
|
3
|
+
button:focus+._1hlmd0i9{outline:solid var(--ds-border-width-focused,2px) var(--ds-border-focused,#4688ec)}._10pb1osq>div{height:100%}
|
|
4
4
|
._14r11j28::-moz-selection{background-color:transparent}
|
|
5
|
-
.
|
|
6
|
-
._16qs64c8{box-shadow:var(--ds-shadow-raised,0 1px 1px rgba(9,30,66,.31),0 0 1px 0 rgba(9,30,66,.31))}
|
|
5
|
+
._16qsio5t{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db),var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
|
|
7
6
|
._16qsr4us{box-shadow:0 0 0 1px var(--ds-border-selected,#1868db)}
|
|
7
|
+
._16qst7xp{box-shadow:var(--ds-shadow-raised,0 1px 1px #1e1f2140,0 0 1px #1e1f214f)}
|
|
8
8
|
._19zy8vuz:hover .media-card-play-button .play-icon-background{height:56px}
|
|
9
9
|
._1bsb1qmm{width:var(--media-wrapper-width)}
|
|
10
10
|
._1np21j28 ::-moz-selection{background-color:transparent}
|
|
@@ -12,16 +12,16 @@ button:focus+._1hlmjc5g{outline:solid var(--ds-border-width-focused,2px) var(--d
|
|
|
12
12
|
._1p1y1j28::selection{background-color:transparent}
|
|
13
13
|
._1rk81j28 ::selection{background-color:transparent}
|
|
14
14
|
._1rquusvi *{box-sizing:border-box}
|
|
15
|
-
.
|
|
15
|
+
._1xp5dgkc:hover .media-card-tickbox{color:var(--ds-icon-subtle,#505258)}
|
|
16
16
|
._1y898vuz:hover .media-card-play-button .play-icon-background{width:56px}
|
|
17
17
|
._1yf91j9a:hover .media-card-tickbox{background-color:var(--ds-background-input,#fff)}
|
|
18
18
|
._4t3ine4n{height:var(--media-wrapper-height)}
|
|
19
19
|
._5sb1v00u [data-cursor=wait]{cursor:wait}
|
|
20
20
|
._9m3z1osq>div{width:100%}
|
|
21
|
-
.
|
|
21
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
22
22
|
._c71l1osq{max-height:100%}
|
|
23
23
|
._ect4ttxp{font-family:var(--ds-font-family-body,"Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
24
|
-
.
|
|
24
|
+
._eg541i5c:hover .media-card-blanket{background-color:var(--ds-blanket,#050c1f75)}
|
|
25
25
|
._kqswh2mm{position:relative}
|
|
26
26
|
._mts3kb7n:focus-within .media-card-actions-bar{opacity:1}
|
|
27
27
|
._p12f1osq{max-width:100%}
|
|
@@ -5,20 +5,19 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { newFileExperienceClassName } from '../../cardConstants';
|
|
7
7
|
import { VcMediaWrapperProps } from '@atlaskit/react-ufo/vc-media';
|
|
8
|
-
import { N0, N100, N20, N60A, N90A, B100 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { getDefaultCardDimensions } from '../../../utils/cardDimensions';
|
|
10
9
|
import { getCSSUnitValue } from '../../../utils/getCSSUnitValue';
|
|
11
10
|
import UFOCustomData from '@atlaskit/react-ufo/custom-data';
|
|
12
11
|
export const LOCAL_WIDTH_VARIABLE = '--media-wrapper-width';
|
|
13
12
|
export const LOCAL_HEIGHT_VARIABLE = '--media-wrapper-height';
|
|
14
13
|
const wrapperStyles = {
|
|
15
|
-
default: "_2rko18qm _vchhusvi _kqswh2mm _ect4ttxp _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n
|
|
14
|
+
default: "_2rko18qm _vchhusvi _kqswh2mm _ect4ttxp _p12f1osq _c71l1osq _1bsb1qmm _4t3ine4n _1hlmd0i9 _1rquusvi _eg541i5c _mts3kb7n _1ntskb7n"
|
|
16
15
|
};
|
|
17
16
|
const backgroundStyle = null;
|
|
18
17
|
const shadowStyleMap = {
|
|
19
|
-
withOverlay: "
|
|
18
|
+
withOverlay: "_16qst7xp",
|
|
20
19
|
selected: "_16qsr4us",
|
|
21
|
-
selectedWithOverlay: "
|
|
20
|
+
selectedWithOverlay: "_16qsio5t"
|
|
22
21
|
};
|
|
23
22
|
const getShadowKey = (disableOverlay, selected) => {
|
|
24
23
|
if (!disableOverlay && selected) {
|
|
@@ -73,7 +72,7 @@ export const Wrapper = props => {
|
|
|
73
72
|
id: "newFileExperienceWrapper"
|
|
74
73
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
75
74
|
,
|
|
76
|
-
className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "
|
|
75
|
+
className: ax([wrapperStyles.default, "_yfmhtlke _5sb1v00u", displayBackground && "_bfhki8nm", wrapperShadowKey && shadowStyleMap[wrapperShadowKey], selected && "_1p1y1j28 _1rk81j28 _14r11j28 _1np21j28", isPlayButtonClickable && "_1y898vuz _19zy8vuz", isTickBoxSelectable && "_1yf91j9a _1xp5dgkc", shouldDisplayTooltip && "_9m3z1osq _10pb1osq", newFileExperienceClassName]),
|
|
77
76
|
"data-testid": testId,
|
|
78
77
|
style: {
|
|
79
78
|
[LOCAL_WIDTH_VARIABLE]: width,
|
|
@@ -37,7 +37,7 @@ export default class MediaInlineCardLoader extends React.PureComponent {
|
|
|
37
37
|
} = this.state;
|
|
38
38
|
const analyticsContext = {
|
|
39
39
|
packageVersion: "@atlaskit/media-card",
|
|
40
|
-
packageName: "79.16.
|
|
40
|
+
packageName: "79.16.6",
|
|
41
41
|
componentName: 'mediaInlineCard',
|
|
42
42
|
component: 'mediaInlineCard'
|
|
43
43
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
4
|
-
import { B300, R300, N30A, N900 } from '@atlaskit/theme/colors';
|
|
5
4
|
import WarningIcon from '@atlaskit/icon/core/status-warning';
|
|
6
5
|
import { fireMediaCardEvent } from '../utils/analytics';
|
|
7
6
|
const ErrorBoundaryComponent = ({
|
|
@@ -10,7 +9,7 @@ const ErrorBoundaryComponent = ({
|
|
|
10
9
|
}) => {
|
|
11
10
|
const selectedStyle = {
|
|
12
11
|
cursor: 'pointer',
|
|
13
|
-
boxShadow: `0 0 0 1px ${
|
|
12
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-selected, #1868DB)"}`,
|
|
14
13
|
outline: 'none',
|
|
15
14
|
userSelect: 'none',
|
|
16
15
|
borderColor: 'transparent'
|
|
@@ -40,8 +39,8 @@ const ErrorBoundaryComponent = ({
|
|
|
40
39
|
alignItems: 'center',
|
|
41
40
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
42
41
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
43
|
-
color:
|
|
44
|
-
backgroundColor:
|
|
42
|
+
color: "var(--ds-text, #292A2E)",
|
|
43
|
+
backgroundColor: "var(--ds-background-neutral, #0515240F)",
|
|
45
44
|
userSelect: 'text',
|
|
46
45
|
transition: 'all 0.1s ease-in-out 0s',
|
|
47
46
|
cursor: 'pointer',
|
|
@@ -58,7 +57,7 @@ const ErrorBoundaryComponent = ({
|
|
|
58
57
|
style: style
|
|
59
58
|
}, /*#__PURE__*/React.createElement(WarningIcon, {
|
|
60
59
|
label: "error",
|
|
61
|
-
color:
|
|
60
|
+
color: "var(--ds-icon-danger, #C9372C)",
|
|
62
61
|
size: "small"
|
|
63
62
|
}), message)
|
|
64
63
|
);
|
|
@@ -4,5 +4,5 @@ import { css } from '@emotion/react';
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
5
|
export const errorIconWrapperStyles = css({
|
|
6
6
|
display: 'flex',
|
|
7
|
-
color: "var(--ds-icon-warning, #
|
|
7
|
+
color: "var(--ds-icon-warning, #E06C00)"
|
|
8
8
|
});
|