@atlaskit/media-card 77.12.1 → 77.12.3
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 +18 -0
- package/compass.yml +6 -3
- package/dist/cjs/card/card.js +1 -1
- package/dist/cjs/card/cardView.js +1 -1
- package/dist/cjs/card/inlinePlayerWrapper.js +4 -1
- package/dist/cjs/card/inlinePlayerWrapperStyles.js +1 -1
- 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 +1 -1
- 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 +18 -4
- package/dist/cjs/card/v2/svgView/errors.js +16 -0
- package/dist/cjs/card/v2/svgView/svgView.js +12 -1
- package/dist/cjs/inline/loader.js +1 -1
- package/dist/cjs/utils/analytics/analytics.js +3 -0
- 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 +1 -1
- package/dist/es2019/card/cardView.js +1 -0
- package/dist/es2019/card/inlinePlayerWrapper.js +4 -1
- package/dist/es2019/card/inlinePlayerWrapperStyles.js +1 -0
- 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 +1 -0
- 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 +18 -4
- package/dist/es2019/card/v2/svgView/errors.js +10 -0
- package/dist/es2019/card/v2/svgView/svgView.js +12 -1
- package/dist/es2019/inline/loader.js +1 -1
- package/dist/es2019/utils/analytics/analytics.js +3 -0
- 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 +1 -1
- package/dist/esm/card/cardView.js +1 -0
- package/dist/esm/card/inlinePlayerWrapper.js +4 -1
- package/dist/esm/card/inlinePlayerWrapperStyles.js +1 -0
- 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 +1 -0
- 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 +18 -4
- package/dist/esm/card/v2/svgView/errors.js +10 -0
- package/dist/esm/card/v2/svgView/svgView.js +12 -1
- package/dist/esm/inline/loader.js +1 -1
- package/dist/esm/utils/analytics/analytics.js +3 -0
- 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/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types/card/v2/svgView/errors.d.ts +3 -0
- package/dist/types/card/v2/svgView/svgView.d.ts +4 -3
- package/dist/types/errors.d.ts +2 -1
- package/dist/types/utils/analytics/analytics.d.ts +2 -1
- package/dist/types-ts4.5/card/ui/openMediaViewerButton/openMediaViewerButton.d.ts +0 -1
- package/dist/types-ts4.5/card/v2/svgView/errors.d.ts +3 -0
- package/dist/types-ts4.5/card/v2/svgView/svgView.d.ts +4 -3
- package/dist/types-ts4.5/errors.d.ts +2 -1
- package/dist/types-ts4.5/utils/analytics/analytics.d.ts +2 -1
- package/example-helpers/cardViewWrapper.tsx +2 -0
- package/example-helpers/styles.ts +24 -0
- package/example-helpers/svg-helpers/cardContainer.tsx +7 -0
- package/example-helpers/svg-helpers/index.ts +1 -1
- package/example-helpers/svg-helpers/mediaApiTweaks.ts +64 -0
- package/example-helpers/svg-helpers/svgContainer.tsx +1 -0
- package/package.json +122 -120
- package/example-helpers/svg-helpers/delayApiResponses.ts +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/media-card
|
|
2
2
|
|
|
3
|
+
## 77.12.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cd38da52e02b7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cd38da52e02b7) -
|
|
8
|
+
Media Card handles SVG errors and logs extra info for monitoring
|
|
9
|
+
|
|
10
|
+
## 77.12.2
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#113192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113192)
|
|
15
|
+
[`80dfa651ba955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80dfa651ba955) -
|
|
16
|
+
Migration of native HTML buttons to new Pressable primitive.
|
|
17
|
+
- [#113192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113192)
|
|
18
|
+
[`80dfa651ba955`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80dfa651ba955) -
|
|
19
|
+
Migration of native HTML buttons to new Pressable primitive.
|
|
20
|
+
|
|
3
21
|
## 77.12.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/compass.yml
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
name: Media Card
|
|
2
2
|
id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/6d687ccf-d7c3-4faf-90a7-7397622c140f'
|
|
3
|
-
description:
|
|
3
|
+
description:
|
|
4
|
+
This package provides the capability to display a preview of a file that has been already
|
|
5
|
+
uploaded. It leverages the returned id opon a successful file upload and does all the work
|
|
6
|
+
required to show the preview. Additionaly it also takes care of displaying the upload status of
|
|
7
|
+
the file.
|
|
4
8
|
configVersion: 1
|
|
5
9
|
typeId: UI_ELEMENT
|
|
6
10
|
ownerId: 'ari:cloud:teams::team/ef910622-ce0a-44a0-b441-ba89efe7891b'
|
|
@@ -44,6 +48,5 @@ links:
|
|
|
44
48
|
relationships:
|
|
45
49
|
DEPENDS_ON:
|
|
46
50
|
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/652381b6-c323-4b50-bf31-c94941a0b6ef'
|
|
47
|
-
|
|
48
51
|
# Learn more about formatting compass.yml:
|
|
49
|
-
# https://go.atlassian.com/compass-yml-format
|
|
52
|
+
# https://go.atlassian.com/compass-yml-format
|
package/dist/cjs/card/card.js
CHANGED
|
@@ -50,7 +50,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
50
50
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
51
51
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
52
52
|
var packageName = "@atlaskit/media-card";
|
|
53
|
-
var packageVersion = "77.12.
|
|
53
|
+
var packageVersion = "77.12.3";
|
|
54
54
|
var CardBase = exports.CardBase = /*#__PURE__*/function (_Component) {
|
|
55
55
|
(0, _inherits2.default)(CardBase, _Component);
|
|
56
56
|
var _super = _createSuper(CardBase);
|
|
@@ -42,7 +42,7 @@ var _openMediaViewerButton = _interopRequireDefault(require("./ui/openMediaViewe
|
|
|
42
42
|
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; }
|
|
43
43
|
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; }
|
|
44
44
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
45
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
45
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
46
46
|
/**
|
|
47
47
|
* This is classic vanilla CardView class. To create an instance of class one would need to supply
|
|
48
48
|
* `createAnalyticsEvent` prop to satisfy it's Analytics Events needs.
|
|
@@ -7,6 +7,7 @@ exports.InlinePlayerWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _inlinePlayerWrapperStyles = require("./inlinePlayerWrapperStyles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWrapper(props) {
|
|
12
13
|
var testId = props.testId,
|
|
@@ -19,7 +20,9 @@ var InlinePlayerWrapper = exports.InlinePlayerWrapper = function InlinePlayerWra
|
|
|
19
20
|
"data-testid": testId
|
|
20
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
21
22
|
,
|
|
22
|
-
className: _inlinePlayerWrapperStyles.inlinePlayerClassName
|
|
23
|
+
className: _inlinePlayerWrapperStyles.inlinePlayerClassName
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
|
+
,
|
|
23
26
|
css: (0, _inlinePlayerWrapperStyles.inlinePlayerWrapperStyles)({
|
|
24
27
|
selected: selected,
|
|
25
28
|
dimensions: dimensions
|
|
@@ -10,7 +10,7 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
var _getDimensionsWithDefault = require("../utils/lightCards/getDimensionsWithDefault");
|
|
12
12
|
var _selection = require("@atlaskit/editor-shared-styles/selection");
|
|
13
|
-
var _templateObject;
|
|
13
|
+
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
14
|
/*
|
|
15
15
|
* Used to display the blue border around a selected card without
|
|
16
16
|
* shrinking the image OR growing the card size
|
|
@@ -90,7 +90,7 @@ var WrappedMediaCardAnalyticsErrorBoundary = /*#__PURE__*/function (_React$Compo
|
|
|
90
90
|
}(_react.default.Component);
|
|
91
91
|
(0, _defineProperty2.default)(WrappedMediaCardAnalyticsErrorBoundary, "displayName", 'MediaCardAnalyticsErrorBoundary');
|
|
92
92
|
var packageName = "@atlaskit/media-card";
|
|
93
|
-
var packageVersion = "77.12.
|
|
93
|
+
var packageVersion = "77.12.3";
|
|
94
94
|
var MediaCardAnalyticsErrorBoundary = (0, _mediaCommon.withMediaAnalyticsContext)({
|
|
95
95
|
packageVersion: packageVersion,
|
|
96
96
|
packageName: packageName,
|
|
@@ -7,10 +7,13 @@ exports.ActionsBarWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var ActionsBarWrapper = exports.ActionsBarWrapper = function ActionsBarWrapper(props) {
|
|
12
13
|
return (0, _react.jsx)("div", {
|
|
13
|
-
id: "actionsBarWrapper"
|
|
14
|
+
id: "actionsBarWrapper"
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
+
,
|
|
14
17
|
css: (0, _styles.wrapperStyles)(props.isFixed)
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
19
|
,
|
|
@@ -11,11 +11,15 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _styles = require("./styles");
|
|
12
12
|
/**@jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
14
16
|
var CardActionButton = exports.CardActionButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
15
17
|
return (0, _react2.jsx)("button", (0, _extends2.default)({}, props, {
|
|
16
18
|
id: "cardActionButton",
|
|
17
19
|
"data-testid": "media-card-primary-action",
|
|
18
|
-
"aria-label": props.label
|
|
20
|
+
"aria-label": props.label
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
+
,
|
|
19
23
|
css: (0, _styles.cardActionButtonStyles)(props)
|
|
20
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
21
25
|
,
|
|
@@ -19,7 +19,7 @@ var _preventClickThrough = require("../../../../utils/preventClickThrough");
|
|
|
19
19
|
var _analytics = require("../../../../utils/analytics");
|
|
20
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**@jsx jsx */
|
|
22
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**@jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
var CardActionIconButtonWithProps = function CardActionIconButtonWithProps(props) {
|
|
24
24
|
return (0, _react.jsx)(_cardActionIconButton.CardActionIconButton, props);
|
|
25
25
|
};
|
|
@@ -9,9 +9,13 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
9
9
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
10
10
|
var _styles = require("../../styles");
|
|
11
11
|
var _constants = require("@atlaskit/theme/constants");
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
15
|
var wrapperStyles = exports.wrapperStyles = (0, _react.css)({
|
|
13
16
|
boxSizing: 'border-box',
|
|
14
17
|
fontFamily: (0, _constants.fontFamily)(),
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
19
|
'*': {
|
|
16
20
|
boxSizing: 'border-box'
|
|
17
21
|
},
|
|
@@ -32,10 +36,18 @@ var cardActionButtonStyles = exports.cardActionButtonStyles = function cardActio
|
|
|
32
36
|
return (0, _react.css)({
|
|
33
37
|
appearance: 'none',
|
|
34
38
|
border: 'none'
|
|
35
|
-
},
|
|
39
|
+
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
_mediaUi.center,
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
|
+
_mediaUi.borderRadius,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
|
+
(0, _mediaUi.size)(26), {
|
|
36
46
|
color: "var(--ds-icon, ".concat(_colors.N500, ")"),
|
|
37
47
|
'&:hover': {
|
|
38
48
|
cursor: 'pointer'
|
|
39
49
|
}
|
|
40
|
-
},
|
|
50
|
+
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
|
+
getVariantStyles(variant));
|
|
41
53
|
};
|
|
@@ -6,16 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.wrapperStyles = exports.fixedActionBarStyles = exports.actionsBarClassName = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("../styles");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
9
11
|
var actionsBarClassName = exports.actionsBarClassName = 'media-card-actions-bar';
|
|
10
12
|
var fixedActionBarStyles = exports.fixedActionBarStyles = "opacity: 1;";
|
|
11
13
|
var wrapperStyles = exports.wrapperStyles = function wrapperStyles(isFixed) {
|
|
12
|
-
return (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
return (
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
16
|
+
(0, _react.css)(isFixed ? fixedActionBarStyles : 'opacity: 0;', (0, _styles.transition)(), {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
top: "var(--ds-space-100, 8px)",
|
|
19
|
+
right: "var(--ds-space-100, 8px)",
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexFlow: 'row nowrap',
|
|
22
|
+
alignItems: 'center'
|
|
23
|
+
})
|
|
24
|
+
);
|
|
20
25
|
};
|
|
21
26
|
wrapperStyles.displayName = 'ActionsBarWrapper';
|
|
@@ -7,10 +7,12 @@ exports.Blanket = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var Blanket = exports.Blanket = function Blanket(props) {
|
|
12
13
|
var isFixed = props.isFixed;
|
|
13
14
|
return (0, _react.jsx)("div", {
|
|
15
|
+
// 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
16
|
css: (0, _styles.blanketStyles)(isFixed)
|
|
15
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
16
18
|
,
|
|
@@ -7,10 +7,14 @@ exports.fixedBlanketStyles = exports.blanketStyles = exports.blanketClassName =
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("../styles");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
10
12
|
var blanketClassName = exports.blanketClassName = 'media-card-blanket';
|
|
11
13
|
var fixedBlanketStyles = exports.fixedBlanketStyles = "background-color: ".concat("var(--ds-blanket, ".concat(_colors.N90A, ")"), ";");
|
|
12
14
|
var blanketStyles = exports.blanketStyles = function blanketStyles(isFixed) {
|
|
13
|
-
return (0, _react.css)(
|
|
15
|
+
return (0, _react.css)(
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
|
+
(0, _styles.transition)(), {
|
|
14
18
|
position: 'absolute',
|
|
15
19
|
width: '100%',
|
|
16
20
|
height: '100%',
|
|
@@ -18,6 +22,8 @@ var blanketStyles = exports.blanketStyles = function blanketStyles(isFixed) {
|
|
|
18
22
|
maxWidth: '100%',
|
|
19
23
|
left: 0,
|
|
20
24
|
top: 0
|
|
21
|
-
},
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
isFixed ? fixedBlanketStyles : '');
|
|
22
28
|
};
|
|
23
29
|
blanketStyles.displayName = 'Blanket';
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.IconMessageWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
/**@jsx jsx */
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
12
|
|
|
10
13
|
var breatheAnimation = (0, _react.keyframes)({
|
|
11
14
|
'0%': {
|
|
@@ -7,12 +7,15 @@ exports.IconWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var IconWrapper = exports.IconWrapper = function IconWrapper(props) {
|
|
12
13
|
var breakpoint = props.breakpoint,
|
|
13
14
|
hasTitleBox = props.hasTitleBox;
|
|
14
15
|
return (0, _react.jsx)("div", {
|
|
15
|
-
id: "iconWrapper"
|
|
16
|
+
id: "iconWrapper"
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
18
|
+
,
|
|
16
19
|
css: (0, _styles.iconWrapperStyles)({
|
|
17
20
|
breakpoint: breakpoint,
|
|
18
21
|
hasTitleBox: hasTitleBox
|
|
@@ -7,6 +7,8 @@ exports.iconWrapperStyles = void 0;
|
|
|
7
7
|
exports.titleBoxHeight = titleBoxHeight;
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
var _common = require("../common");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
10
12
|
function titleBoxHeight(hasTitleBox, breakpoint) {
|
|
11
13
|
// there is no titlebox
|
|
12
14
|
if (!hasTitleBox) {
|
|
@@ -23,6 +25,7 @@ var iconWrapperStyles = exports.iconWrapperStyles = function iconWrapperStyles(_
|
|
|
23
25
|
return (0, _react.css)({
|
|
24
26
|
position: 'absolute',
|
|
25
27
|
width: '100%',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
29
|
height: "calc(100% - ".concat(titleBoxHeight(hasTitleBox, breakpoint), ")"),
|
|
27
30
|
display: 'flex',
|
|
28
31
|
flexDirection: 'column',
|
|
@@ -4,41 +4,30 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.default = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react = require("
|
|
11
|
-
var _react2 = _interopRequireDefault(require("react"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
11
|
var _reactIntlNext = require("react-intl-next");
|
|
13
12
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
13
|
+
var _primitives = require("@atlaskit/primitives");
|
|
14
|
+
var _visuallyHidden = _interopRequireDefault(require("@atlaskit/visually-hidden"));
|
|
14
15
|
var _excluded = ["fileName", "innerRef"];
|
|
15
|
-
/** @jsx jsx */
|
|
16
|
-
var visuallyHiddenStyles = exports.visuallyHiddenStyles = (0, _react.css)({
|
|
17
|
-
width: '1px',
|
|
18
|
-
height: '1px',
|
|
19
|
-
padding: 0,
|
|
20
|
-
position: 'absolute',
|
|
21
|
-
border: 0,
|
|
22
|
-
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
23
|
-
overflow: 'hidden',
|
|
24
|
-
whiteSpace: 'nowrap'
|
|
25
|
-
});
|
|
26
16
|
var OpenMediaViewerButton = function OpenMediaViewerButton(_ref) {
|
|
27
17
|
var fileName = _ref.fileName,
|
|
28
18
|
innerRef = _ref.innerRef,
|
|
29
19
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
30
20
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
31
|
-
return (
|
|
32
|
-
ref: innerRef
|
|
33
|
-
css: visuallyHiddenStyles
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_visuallyHidden.default, null, /*#__PURE__*/_react.default.createElement(_primitives.Pressable, (0, _extends2.default)({
|
|
22
|
+
ref: innerRef
|
|
34
23
|
}, props), intl.formatMessage(_mediaUi.messages.open_file_in_viewer, {
|
|
35
24
|
name: fileName
|
|
36
|
-
}));
|
|
25
|
+
})));
|
|
37
26
|
};
|
|
38
27
|
var OpenMediaViewerButtonWrapper = function OpenMediaViewerButtonWrapper(props) {
|
|
39
|
-
return props.intl ?
|
|
28
|
+
return props.intl ? /*#__PURE__*/_react.default.createElement(OpenMediaViewerButton, props) : /*#__PURE__*/_react.default.createElement(_reactIntlNext.IntlProvider, {
|
|
40
29
|
locale: "en"
|
|
41
|
-
},
|
|
30
|
+
}, /*#__PURE__*/_react.default.createElement(OpenMediaViewerButton, props));
|
|
42
31
|
};
|
|
43
32
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(OpenMediaViewerButtonWrapper, {
|
|
44
33
|
enforceContext: false
|
|
@@ -7,9 +7,10 @@ exports.PlayButtonBackground = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var PlayButtonBackground = exports.PlayButtonBackground = function PlayButtonBackground() {
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
13
|
+
// 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
|
|
13
14
|
return (0, _react.jsx)("div", {
|
|
14
15
|
css: _styles.backgroundStyles,
|
|
15
16
|
className: _styles.bkgClassName
|
|
@@ -7,10 +7,11 @@ exports.PlayButtonWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var PlayButtonWrapper = exports.PlayButtonWrapper = function PlayButtonWrapper(props) {
|
|
12
13
|
return (
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
14
|
+
// 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
|
|
14
15
|
(0, _react.jsx)("div", {
|
|
15
16
|
css: _styles.playButtonWrapperStyles,
|
|
16
17
|
className: _styles.playButtonClassName
|
|
@@ -6,11 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.playButtonWrapperStyles = exports.playButtonClassName = exports.fixedPlayButtonStyles = exports.bkgClassName = exports.backgroundStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
+
|
|
9
11
|
var playButtonClassName = exports.playButtonClassName = 'media-card-play-button';
|
|
10
12
|
var bkgClassName = exports.bkgClassName = 'play-icon-background';
|
|
11
13
|
var discSize = 48;
|
|
12
14
|
var discSizeHover = 56;
|
|
13
15
|
var fixedPlayButtonStyles = exports.fixedPlayButtonStyles = "\n .".concat(bkgClassName, " {\n width: ").concat(discSizeHover, "px;\n height: ").concat(discSizeHover, "px;\n }\n");
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
18
|
var playButtonWrapperStyles = exports.playButtonWrapperStyles = (0, _react.css)({
|
|
15
19
|
position: 'absolute',
|
|
16
20
|
top: 0,
|
|
@@ -21,10 +25,13 @@ var playButtonWrapperStyles = exports.playButtonWrapperStyles = (0, _react.css)(
|
|
|
21
25
|
alignItems: 'center',
|
|
22
26
|
justifyContent: 'center',
|
|
23
27
|
color: "var(--ds-icon-inverse, ".concat(_colors.N0, ")"),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
29
|
span: {
|
|
25
30
|
position: 'absolute'
|
|
26
31
|
}
|
|
27
32
|
});
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
35
|
var backgroundStyles = exports.backgroundStyles = (0, _react.css)({
|
|
29
36
|
transitionProperty: 'width, height',
|
|
30
37
|
transitionDuration: '0.1s',
|
|
@@ -7,6 +7,7 @@ exports.StyledBar = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/**@jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var StyledBar = exports.StyledBar = function StyledBar(props) {
|
|
12
13
|
var progress = props.progress,
|
|
@@ -16,7 +17,9 @@ var StyledBar = exports.StyledBar = function StyledBar(props) {
|
|
|
16
17
|
return (0, _react.jsx)("div", {
|
|
17
18
|
id: "styledBar",
|
|
18
19
|
role: "progressbar",
|
|
19
|
-
"aria-valuenow": progress
|
|
20
|
+
"aria-valuenow": progress
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
22
|
+
,
|
|
20
23
|
css: (0, _styles.styledBarStyles)({
|
|
21
24
|
progress: progress,
|
|
22
25
|
breakpoint: breakpoint,
|
|
@@ -10,6 +10,8 @@ var _mediaUi = require("@atlaskit/media-ui");
|
|
|
10
10
|
var _styles = require("../styles");
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _common = require("../common");
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
+
|
|
13
15
|
var height = 3;
|
|
14
16
|
var padding = 1;
|
|
15
17
|
var width = 95; // %
|
|
@@ -40,6 +42,7 @@ var getStyledBarStylesBasedOnProps = function getStyledBarStylesBasedOnProps(_re
|
|
|
40
42
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
41
43
|
|
|
42
44
|
var styledBarStyles = exports.styledBarStyles = function styledBarStyles(props) {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
46
|
return (0, _react.css)(getStyledBarStylesBasedOnProps(props));
|
|
44
47
|
};
|
|
45
48
|
styledBarStyles.displayName = 'StyledProgressBar';
|
|
@@ -9,12 +9,17 @@ var _styles = require("./styles");
|
|
|
9
9
|
var _styles2 = require("../styles");
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
/**@jsx jsx */
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
|
|
13
16
|
var getSelectedStyles = function getSelectedStyles(selected) {
|
|
14
17
|
return selected ? "background-color: ".concat("var(--ds-icon-information, ".concat(_colors.B200, ")"), ";\n color: ", "var(--ds-icon-inverse, white)", ";") : "";
|
|
15
18
|
};
|
|
16
19
|
var wrapperStyles = function wrapperStyles(selected) {
|
|
17
|
-
return (0, _react.css)(
|
|
20
|
+
return (0, _react.css)(
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
_styles2.transition && (0, _styles2.transition)(), {
|
|
18
23
|
fontSize: '14px',
|
|
19
24
|
width: '14px',
|
|
20
25
|
height: '14px',
|
|
@@ -23,18 +28,24 @@ var wrapperStyles = function wrapperStyles(selected) {
|
|
|
23
28
|
left: "var(--ds-space-075, 7px)",
|
|
24
29
|
borderRadius: '20px',
|
|
25
30
|
color: 'transparent',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
32
|
span: {
|
|
27
33
|
display: 'block',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
35
|
svg: {
|
|
29
36
|
height: '14px'
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
|
-
},
|
|
39
|
+
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
+
getSelectedStyles(selected));
|
|
33
42
|
};
|
|
34
43
|
wrapperStyles.displayName = 'TickBoxWrapper';
|
|
35
44
|
var TickBoxWrapper = exports.TickBoxWrapper = function TickBoxWrapper(props) {
|
|
36
45
|
return (0, _react.jsx)("div", {
|
|
37
|
-
id: "tickBoxWrapper"
|
|
46
|
+
id: "tickBoxWrapper"
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
48
|
+
,
|
|
38
49
|
css: wrapperStyles(props.selected)
|
|
39
50
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
40
51
|
,
|
|
@@ -8,6 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _common = require("../common");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
var _styles = require("../styles");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
var generateResponsiveStyles = function generateResponsiveStyles() {
|
|
12
14
|
var breakpoint = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _common.Breakpoint.SMALL;
|
|
13
15
|
var setting = _common.responsiveSettings[breakpoint];
|
|
@@ -24,14 +26,18 @@ var titleBoxWrapperStyles = exports.titleBoxWrapperStyles = function titleBoxWra
|
|
|
24
26
|
position: 'absolute',
|
|
25
27
|
bottom: 0,
|
|
26
28
|
width: '100%',
|
|
27
|
-
backgroundColor: "var(--ds-surface, ".concat(
|
|
29
|
+
backgroundColor: "var(--ds-surface, ".concat(
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
31
|
+
(0, _styles.rgba)(titleBoxBgColor && HEX_REGEX.test(titleBoxBgColor) ? titleBoxBgColor : _colors.N0, 1), ")"),
|
|
28
32
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
29
33
|
cursor: 'inherit',
|
|
30
34
|
pointerEvents: 'none',
|
|
31
35
|
display: 'flex',
|
|
32
36
|
flexDirection: 'column',
|
|
33
37
|
justifyContent: 'center'
|
|
34
|
-
},
|
|
38
|
+
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
|
+
generateResponsiveStyles(breakpoint));
|
|
35
41
|
};
|
|
36
42
|
titleBoxWrapperStyles.displayName = 'TitleBoxWrapper';
|
|
37
43
|
var infoStyles = "white-space: nowrap;overflow: hidden;";
|
|
@@ -40,27 +46,41 @@ var titleBoxHeaderStyles = exports.titleBoxHeaderStyles = function titleBoxHeade
|
|
|
40
46
|
var hasIconOverlap = _ref2.hasIconOverlap;
|
|
41
47
|
return (0, _react.css)({
|
|
42
48
|
fontWeight: 600
|
|
43
|
-
},
|
|
49
|
+
},
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
|
+
infoStyles,
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
|
+
hasIconOverlap && iconOverlapStyles);
|
|
44
54
|
};
|
|
45
55
|
titleBoxHeaderStyles.displayName = 'FailedTitleBoxHeader';
|
|
46
56
|
var titleBoxFooterStyles = exports.titleBoxFooterStyles = function titleBoxFooterStyles(_ref3) {
|
|
47
57
|
var hasIconOverlap = _ref3.hasIconOverlap;
|
|
48
58
|
return (0, _react.css)({
|
|
49
59
|
textOverflow: 'ellipsis'
|
|
50
|
-
},
|
|
60
|
+
},
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
|
+
infoStyles,
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
+
hasIconOverlap && iconOverlapStyles);
|
|
51
65
|
};
|
|
52
66
|
titleBoxFooterStyles.displayName = 'TitleBoxFooter';
|
|
67
|
+
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
53
69
|
var titleBoxIconStyles = exports.titleBoxIconStyles = (0, _react.css)({
|
|
54
70
|
position: 'absolute',
|
|
55
71
|
right: "var(--ds-space-050, 4px)",
|
|
56
72
|
bottom: '0px'
|
|
57
73
|
});
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
58
76
|
var errorMessageWrapperStyles = exports.errorMessageWrapperStyles = (0, _react.css)({
|
|
59
77
|
display: 'flex',
|
|
60
78
|
alignItems: 'center',
|
|
61
79
|
justifyContent: 'flex-start',
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
81
|
span: {
|
|
63
82
|
verticalAlign: 'middle',
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
64
84
|
':nth-child(2)': {
|
|
65
85
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
66
86
|
marginRight: "var(--ds-space-050, 4px)"
|