@atlaskit/media-ui 23.0.4 → 23.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/MediaInlineCard/Icon.js +2 -2
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/index.js +3 -1
- package/dist/cjs/MediaInlineCard/IconAndTitleLayout/styled.js +8 -10
- package/dist/cjs/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/cjs/customMediaPlayer/index.js +1 -1
- package/dist/cjs/customMediaPlayer/styled.js +18 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/MediaInlineCard/Icon.js +2 -3
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/index.js +4 -2
- package/dist/es2019/MediaInlineCard/IconAndTitleLayout/styled.js +8 -14
- package/dist/es2019/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/es2019/customMediaPlayer/index.js +1 -1
- package/dist/es2019/customMediaPlayer/styled.js +18 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/MediaInlineCard/Icon.js +2 -3
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/index.js +4 -2
- package/dist/esm/MediaInlineCard/IconAndTitleLayout/styled.js +7 -9
- package/dist/esm/MediaInlineCard/LoadingView/styled.js +1 -1
- package/dist/esm/customMediaPlayer/index.js +1 -1
- package/dist/esm/customMediaPlayer/styled.js +18 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/MediaInlineCard/IconAndTitleLayout/styled.d.ts +0 -4
- package/dist/types-ts4.5/MediaInlineCard/IconAndTitleLayout/styled.d.ts +0 -4
- package/example-helpers/styled.ts +9 -4
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/media-ui
|
|
2
2
|
|
|
3
|
+
## 23.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`48e4a655534`](https://bitbucket.org/atlassian/atlassian-frontend/commits/48e4a655534) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
9
|
+
## 23.0.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`da9024f099f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/da9024f099f) - MEX-2432 Enable range selection on MediaInline component
|
|
14
|
+
|
|
3
15
|
## 23.0.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -13,11 +13,11 @@ var _templateObject, _templateObject2;
|
|
|
13
13
|
// Current rationale: vertically positioned at the top of
|
|
14
14
|
// the smart card container (when set to 0). Offset this
|
|
15
15
|
// to position it with appropriate whitespace from the top.
|
|
16
|
-
var Icon = _styled.default.img(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 14px;\n width: 14px;\n margin-right:
|
|
16
|
+
var Icon = _styled.default.img(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 14px;\n width: 14px;\n margin-right: ", ";\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])), "var(--ds-space-050, 4px)");
|
|
17
17
|
|
|
18
18
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
19
19
|
// are less than that in height/width.
|
|
20
20
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
21
21
|
exports.Icon = Icon;
|
|
22
|
-
var AKIconWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: -
|
|
22
|
+
var AKIconWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: calc(-1 * ", ");\n"])), "var(--ds-space-025, 2px)");
|
|
23
23
|
exports.AKIconWrapper = AKIconWrapper;
|
|
@@ -96,7 +96,9 @@ var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
96
96
|
style: titleColor ? {
|
|
97
97
|
color: titleColor
|
|
98
98
|
} : undefined
|
|
99
|
-
}, /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapper, null, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/_react.default.createElement(
|
|
99
|
+
}, /*#__PURE__*/_react.default.createElement(_styled.IconPositionWrapper, null, children || /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styled.IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/_react.default.createElement("span", {
|
|
100
|
+
"data-test-id": "title"
|
|
101
|
+
}, title)));
|
|
100
102
|
}
|
|
101
103
|
}]);
|
|
102
104
|
return IconAndTitleLayout;
|
|
@@ -4,10 +4,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.RightIconPositionWrapper = exports.LozengeWrapper = exports.LozengeBlockWrapper = exports.IconWrapper = exports.IconTitleWrapper = exports.IconPositionWrapper = exports.IconOverrides = exports.IconObjectOverrides = exports.IconEmptyWrapper = exports.EmojiWrapper = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
11
11
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
12
12
|
var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
13
13
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
@@ -25,7 +25,7 @@ var IconWrapper = _styled.default.span(_templateObject || (_templateObject = (0,
|
|
|
25
25
|
|
|
26
26
|
// Wraps all emoji in Inline Links similar to icon
|
|
27
27
|
exports.IconWrapper = IconWrapper;
|
|
28
|
-
var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right:
|
|
28
|
+
var EmojiWrapper = _styled.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n margin-right: ", ";\n user-select: none;\n ", "\n ", "\n"])), "var(--ds-space-025, 2px)", IconOverrides, IconObjectOverrides);
|
|
29
29
|
|
|
30
30
|
// The main 'wrapping' element, title of the content.
|
|
31
31
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
@@ -35,20 +35,18 @@ var IconTitleWrapper = _styled.default.span(_templateObject3 || (_templateObject
|
|
|
35
35
|
|
|
36
36
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
37
37
|
exports.IconTitleWrapper = IconTitleWrapper;
|
|
38
|
-
var LozengeWrapper = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left:
|
|
38
|
+
var LozengeWrapper = _styled.default.span(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
39
39
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
40
40
|
exports.LozengeWrapper = LozengeWrapper;
|
|
41
|
-
var LozengeBlockWrapper = _styled.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > span {\n margin-left:
|
|
41
|
+
var LozengeBlockWrapper = _styled.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
42
42
|
exports.LozengeBlockWrapper = LozengeBlockWrapper;
|
|
43
|
-
var RightIconPositionWrapper = _styled.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-left:
|
|
43
|
+
var RightIconPositionWrapper = _styled.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)");
|
|
44
44
|
|
|
45
45
|
// The following components are used to absolutely position icons in the vertical center.
|
|
46
46
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
47
47
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
48
48
|
exports.RightIconPositionWrapper = RightIconPositionWrapper;
|
|
49
|
-
var IconPositionWrapper = _styled.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-right:
|
|
49
|
+
var IconPositionWrapper = _styled.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-050, 4px)");
|
|
50
50
|
exports.IconPositionWrapper = IconPositionWrapper;
|
|
51
51
|
var IconEmptyWrapper = _styled.default.span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n width: 14px;\n height: 100%;\n display: inline-block;\n opacity: 0;\n"])));
|
|
52
|
-
exports.IconEmptyWrapper = IconEmptyWrapper;
|
|
53
|
-
var TitleWrapper = _styled.default.span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n ::selection {\n background: none;\n }\n"])));
|
|
54
|
-
exports.TitleWrapper = TitleWrapper;
|
|
52
|
+
exports.IconEmptyWrapper = IconEmptyWrapper;
|
|
@@ -9,5 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
10
|
var _styled2 = require("../IconAndTitleLayout/styled");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n vertical-align: baseline;\n margin-left:
|
|
12
|
+
var SpinnerWrapper = (0, _styled.default)(_styled2.IconTitleWrapper)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n vertical-align: baseline;\n margin-left: ", ";\n"])), "var(--ds-space-025, 2px)");
|
|
13
13
|
exports.SpinnerWrapper = SpinnerWrapper;
|
|
@@ -51,7 +51,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
51
51
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */ // Keep media player components used in media-viewer to use static colors from the new color palette to
|
|
52
52
|
// support the hybrid theming in media viewer https://product-fabric.atlassian.net/browse/DSP-6067
|
|
53
53
|
var packageName = "@atlaskit/media-ui";
|
|
54
|
-
var packageVersion = "23.0.
|
|
54
|
+
var packageVersion = "23.0.6";
|
|
55
55
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
56
56
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
57
57
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -13,14 +13,21 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
13
13
|
var CustomVideoWrapper = _styled.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n user-select: none;\n"])));
|
|
14
14
|
exports.CustomVideoWrapper = CustomVideoWrapper;
|
|
15
15
|
var VideoWrapper = _styled.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n"])));
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
16
18
|
exports.VideoWrapper = VideoWrapper;
|
|
17
19
|
var TimebarWrapper = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: white;\n position: absolute;\n width: 100%;\n bottom: 10px;\n"])));
|
|
18
20
|
exports.TimebarWrapper = TimebarWrapper;
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
22
|
var VolumeWrapper = _styled.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n width: 35px;\n overflow: hidden;\n transition: width 0.3s;\n align-items: center;\n bottom: 0px;\n left: 43px;\n\n ", "\n"])), function (props) {
|
|
20
23
|
return props.showSlider ? "\n &:hover,\n &:active {\n width: 150px;\n transition: width 0.3s ease-out;\n }\n " : '';
|
|
21
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
22
27
|
exports.VolumeWrapper = VolumeWrapper;
|
|
23
|
-
var TimeWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0
|
|
28
|
+
var TimeWrapper = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0 ", " 10px ", ";\n margin-bottom: 44px;\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)");
|
|
29
|
+
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
31
|
exports.TimeWrapper = TimeWrapper;
|
|
25
32
|
var CurrentTime = _styled.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #c7d1db;\n user-select: none;\n margin-right: 10px;\n white-space: nowrap;\n"])));
|
|
26
33
|
exports.CurrentTime = CurrentTime;
|
|
@@ -31,24 +38,33 @@ exports.CurrentTimeLine = CurrentTimeLine;
|
|
|
31
38
|
var Thumb = _styled.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n pointer-events: none;\n width: 14px;\n height: 14px;\n border-radius: 100%;\n background-color: white;\n border: 1px solid #666;\n position: absolute;\n right: 0;\n top: 50%;\n\n transform: translate(7px, -50%) scale(0);\n transition: all 0.1s;\n transition-delay: 1s;\n\n &:hover .current-time-tooltip {\n opacity: 1;\n }\n"])));
|
|
32
39
|
exports.Thumb = Thumb;
|
|
33
40
|
var BufferedTime = _styled.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #8696a7;\n height: inherit;\n border-radius: inherit;\n width: 0;\n"])));
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
34
43
|
exports.BufferedTime = BufferedTime;
|
|
35
44
|
var LeftControls = _styled.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: 10px;\n"])));
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
36
47
|
exports.LeftControls = LeftControls;
|
|
37
48
|
var RightControls = _styled.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n margin-right: 10px;\n color: '#c7d1db';\n"])));
|
|
38
49
|
exports.RightControls = RightControls;
|
|
39
50
|
var ControlsWrapper = _styled.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n bottom: 0;\n left: 0;\n width: 100%;\n height: auto;\n background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));\n position: absolute;\n"])));
|
|
51
|
+
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
40
53
|
exports.ControlsWrapper = ControlsWrapper;
|
|
41
54
|
var VolumeToggleWrapper = _styled.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n margin-right: 13px;\n\n button {\n width: 36px !important;\n color: ", ";\n }\n"])), function (_ref) {
|
|
42
55
|
var isMuted = _ref.isMuted;
|
|
43
56
|
return isMuted ? "#EF5C48 !important;" : '';
|
|
44
57
|
});
|
|
45
58
|
exports.VolumeToggleWrapper = VolumeToggleWrapper;
|
|
46
|
-
var VolumeTimeRangeWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-right:
|
|
59
|
+
var VolumeTimeRangeWrapper = _styled.default.div(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n margin-right: ", ";\n"])), "var(--ds-space-250, 20px)");
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
47
62
|
exports.VolumeTimeRangeWrapper = VolumeTimeRangeWrapper;
|
|
48
63
|
var MutedIndicator = _styled.default.div(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n width: 29px;\n height: 2px;\n position: absolute;\n top: 10px;\n left: 9px;\n z-index: 2;\n background: ", ";\n transform: rotate(32deg) translateY(10px);\n opacity: 0;\n pointer-events: none;\n\n ", ";\n"])), _colors.R300, function (props) {
|
|
49
64
|
return props.isMuted ? "\n opacity: 1;\n " : '';
|
|
50
65
|
});
|
|
51
66
|
exports.MutedIndicator = MutedIndicator;
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
52
68
|
var CurrentTimeTooltip = _styled.default.div(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n user-select: none;\n top: -28px;\n background-color: #182c4c;\n color: #eff1f3;\n font-size: 12px;\n padding: 3px 7px;\n border-radius: 3px;\n left: 50%;\n transform: translateX(-50%);\n opacity: ", ";\n transition: opacity 0.3s;\n word-break: keep-all;\n"])), function (props) {
|
|
53
69
|
return props.isDragging ? '1' : '0';
|
|
54
70
|
});
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
2
|
// TODO: Figure out a more scalable/responsive solution
|
|
4
3
|
// for vertical alignment.
|
|
5
4
|
// Current rationale: vertically positioned at the top of
|
|
@@ -8,7 +7,7 @@ import styled from '@emotion/styled';
|
|
|
8
7
|
export const Icon = styled.img`
|
|
9
8
|
height: 14px;
|
|
10
9
|
width: 14px;
|
|
11
|
-
margin-right: 4px;
|
|
10
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
12
11
|
border-radius: 2px;
|
|
13
12
|
user-select: none;
|
|
14
13
|
position: absolute;
|
|
@@ -21,5 +20,5 @@ export const Icon = styled.img`
|
|
|
21
20
|
// are less than that in height/width.
|
|
22
21
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
23
22
|
export const AKIconWrapper = styled.span`
|
|
24
|
-
margin-right: -2px;
|
|
23
|
+
margin-right: calc(-1 * ${"var(--ds-space-025, 2px)"});
|
|
25
24
|
`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ImageLoader from 'react-render-image';
|
|
3
3
|
import { Icon } from '../Icon';
|
|
4
|
-
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper,
|
|
4
|
+
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, EmojiWrapper } from './styled';
|
|
5
5
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
6
6
|
export class IconAndTitleLayout extends React.Component {
|
|
7
7
|
renderAtlaskitIcon() {
|
|
@@ -71,6 +71,8 @@ export class IconAndTitleLayout extends React.Component {
|
|
|
71
71
|
style: titleColor ? {
|
|
72
72
|
color: titleColor
|
|
73
73
|
} : undefined
|
|
74
|
-
}, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement(
|
|
74
|
+
}, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement("span", {
|
|
75
|
+
"data-test-id": "title"
|
|
76
|
+
}, title)));
|
|
75
77
|
}
|
|
76
78
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import styled from '@emotion/styled';
|
|
2
|
-
|
|
3
2
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
4
3
|
export const IconObjectOverrides = `
|
|
5
4
|
& > span {
|
|
@@ -49,7 +48,7 @@ export const IconWrapper = styled.span`
|
|
|
49
48
|
// Wraps all emoji in Inline Links similar to icon
|
|
50
49
|
export const EmojiWrapper = styled.span`
|
|
51
50
|
display: inline-block;
|
|
52
|
-
margin-right: 2px;
|
|
51
|
+
margin-right: ${"var(--ds-space-025, 2px)"};
|
|
53
52
|
user-select: none;
|
|
54
53
|
${IconOverrides}
|
|
55
54
|
${IconObjectOverrides}
|
|
@@ -68,20 +67,20 @@ export const LozengeWrapper = styled.span`
|
|
|
68
67
|
display: inline-block;
|
|
69
68
|
vertical-align: 1px;
|
|
70
69
|
& > span {
|
|
71
|
-
margin-left: 4px;
|
|
72
|
-
padding: 2px 0 2px 0;
|
|
70
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
71
|
+
padding: ${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"} 0;
|
|
73
72
|
}
|
|
74
73
|
`;
|
|
75
74
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
76
75
|
export const LozengeBlockWrapper = styled.span`
|
|
77
76
|
& > span {
|
|
78
|
-
margin-left: 4px;
|
|
79
|
-
padding: 2px 0 2px 0;
|
|
77
|
+
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
78
|
+
padding: ${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-025, 2px)"} 0;
|
|
80
79
|
}
|
|
81
80
|
`;
|
|
82
81
|
export const RightIconPositionWrapper = styled.span`
|
|
83
|
-
margin-left: 2px;
|
|
84
|
-
margin-right: 4px;
|
|
82
|
+
margin-left: ${"var(--ds-space-025, 2px)"};
|
|
83
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
85
84
|
position: relative;
|
|
86
85
|
display: inline-block;
|
|
87
86
|
`;
|
|
@@ -90,7 +89,7 @@ export const RightIconPositionWrapper = styled.span`
|
|
|
90
89
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
91
90
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
92
91
|
export const IconPositionWrapper = styled.span`
|
|
93
|
-
margin-right: 4px;
|
|
92
|
+
margin-right: ${"var(--ds-space-050, 4px)"};
|
|
94
93
|
position: relative;
|
|
95
94
|
display: inline-block;
|
|
96
95
|
`;
|
|
@@ -99,9 +98,4 @@ export const IconEmptyWrapper = styled.span`
|
|
|
99
98
|
height: 100%;
|
|
100
99
|
display: inline-block;
|
|
101
100
|
opacity: 0;
|
|
102
|
-
`;
|
|
103
|
-
export const TitleWrapper = styled.span`
|
|
104
|
-
::selection {
|
|
105
|
-
background: none;
|
|
106
|
-
}
|
|
107
101
|
`;
|
|
@@ -34,7 +34,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
34
34
|
import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
35
35
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
36
36
|
const packageName = "@atlaskit/media-ui";
|
|
37
|
-
const packageVersion = "23.0.
|
|
37
|
+
const packageVersion = "23.0.6";
|
|
38
38
|
const MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
39
39
|
const SMALL_VIDEO_MAX_WIDTH = 160;
|
|
40
40
|
const MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -12,6 +12,8 @@ export const VideoWrapper = styled.div`
|
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
`;
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
15
17
|
export const TimebarWrapper = styled.div`
|
|
16
18
|
display: flex;
|
|
17
19
|
align-items: center;
|
|
@@ -21,6 +23,7 @@ export const TimebarWrapper = styled.div`
|
|
|
21
23
|
width: 100%;
|
|
22
24
|
bottom: 10px;
|
|
23
25
|
`;
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
27
|
export const VolumeWrapper = styled.div`
|
|
25
28
|
display: flex;
|
|
26
29
|
width: 35px;
|
|
@@ -38,10 +41,14 @@ export const VolumeWrapper = styled.div`
|
|
|
38
41
|
}
|
|
39
42
|
` : ''}
|
|
40
43
|
`;
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
41
46
|
export const TimeWrapper = styled.div`
|
|
42
|
-
margin: 0 20px 10px 20px;
|
|
47
|
+
margin: 0 ${"var(--ds-space-250, 20px)"} 10px ${"var(--ds-space-250, 20px)"};
|
|
43
48
|
margin-bottom: 44px;
|
|
44
49
|
`;
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
45
52
|
export const CurrentTime = styled.div`
|
|
46
53
|
color: #c7d1db;
|
|
47
54
|
user-select: none;
|
|
@@ -90,10 +97,14 @@ export const BufferedTime = styled.div`
|
|
|
90
97
|
border-radius: inherit;
|
|
91
98
|
width: 0;
|
|
92
99
|
`;
|
|
100
|
+
|
|
101
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
93
102
|
export const LeftControls = styled.div`
|
|
94
103
|
display: flex;
|
|
95
104
|
margin-left: 10px;
|
|
96
105
|
`;
|
|
106
|
+
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
97
108
|
export const RightControls = styled.div`
|
|
98
109
|
display: flex;
|
|
99
110
|
align-items: center;
|
|
@@ -108,6 +119,8 @@ export const ControlsWrapper = styled.div`
|
|
|
108
119
|
background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));
|
|
109
120
|
position: absolute;
|
|
110
121
|
`;
|
|
122
|
+
|
|
123
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
111
124
|
export const VolumeToggleWrapper = styled.div`
|
|
112
125
|
position: relative;
|
|
113
126
|
margin-right: 13px;
|
|
@@ -121,8 +134,10 @@ export const VolumeToggleWrapper = styled.div`
|
|
|
121
134
|
`;
|
|
122
135
|
export const VolumeTimeRangeWrapper = styled.div`
|
|
123
136
|
width: 100%;
|
|
124
|
-
margin-right: 20px;
|
|
137
|
+
margin-right: ${"var(--ds-space-250, 20px)"};
|
|
125
138
|
`;
|
|
139
|
+
|
|
140
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
126
141
|
export const MutedIndicator = styled.div`
|
|
127
142
|
width: 29px;
|
|
128
143
|
height: 2px;
|
|
@@ -139,6 +154,7 @@ export const MutedIndicator = styled.div`
|
|
|
139
154
|
opacity: 1;
|
|
140
155
|
` : ''};
|
|
141
156
|
`;
|
|
157
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
142
158
|
export const CurrentTimeTooltip = styled.div`
|
|
143
159
|
position: absolute;
|
|
144
160
|
user-select: none;
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
|
|
5
4
|
// TODO: Figure out a more scalable/responsive solution
|
|
6
5
|
// for vertical alignment.
|
|
7
6
|
// Current rationale: vertically positioned at the top of
|
|
8
7
|
// the smart card container (when set to 0). Offset this
|
|
9
8
|
// to position it with appropriate whitespace from the top.
|
|
10
|
-
export var Icon = styled.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right:
|
|
9
|
+
export var Icon = styled.img(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 14px;\n width: 14px;\n margin-right: ", ";\n border-radius: 2px;\n user-select: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n"])), "var(--ds-space-050, 4px)");
|
|
11
10
|
|
|
12
11
|
// Used for 'untrue' icons which claim to be 16x16 but
|
|
13
12
|
// are less than that in height/width.
|
|
14
13
|
// TODO: Replace this override with proper AtlasKit solution.
|
|
15
|
-
export var AKIconWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: -
|
|
14
|
+
export var AKIconWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: calc(-1 * ", ");\n"])), "var(--ds-space-025, 2px)");
|
|
@@ -8,7 +8,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import ImageLoader from 'react-render-image';
|
|
10
10
|
import { Icon } from '../Icon';
|
|
11
|
-
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper,
|
|
11
|
+
import { IconEmptyWrapper, IconPositionWrapper, IconTitleWrapper, IconWrapper, EmojiWrapper } from './styled';
|
|
12
12
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
13
13
|
export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
14
14
|
_inherits(IconAndTitleLayout, _React$Component);
|
|
@@ -89,7 +89,9 @@ export var IconAndTitleLayout = /*#__PURE__*/function (_React$Component) {
|
|
|
89
89
|
style: titleColor ? {
|
|
90
90
|
color: titleColor
|
|
91
91
|
} : undefined
|
|
92
|
-
}, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement(
|
|
92
|
+
}, /*#__PURE__*/React.createElement(IconPositionWrapper, null, children || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconEmptyWrapper, null), this.renderIcon(testId))), /*#__PURE__*/React.createElement("span", {
|
|
93
|
+
"data-test-id": "title"
|
|
94
|
+
}, title)));
|
|
93
95
|
}
|
|
94
96
|
}]);
|
|
95
97
|
return IconAndTitleLayout;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8
|
|
2
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
|
|
5
4
|
// TODO: remove this override behaviour for @atlaskit/icon-object
|
|
6
5
|
export var IconObjectOverrides = "\n & > span {\n height: 16px;\n width: 14px;\n position: absolute;\n top: 0;\n left: 0;\n line-height: 14px;\n & > svg {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n }\n";
|
|
7
6
|
// TODO: remove this override behaviour for @atlaskit/icon
|
|
@@ -16,7 +15,7 @@ export var IconOverrides = "\n & > * > span {\n height: 16px;\n width: 14
|
|
|
16
15
|
export var IconWrapper = styled.span(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n user-select: none;\n ", "\n ", "\n"])), IconOverrides, IconObjectOverrides);
|
|
17
16
|
|
|
18
17
|
// Wraps all emoji in Inline Links similar to icon
|
|
19
|
-
export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right:
|
|
18
|
+
export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: inline-block;\n margin-right: ", ";\n user-select: none;\n ", "\n ", "\n"])), "var(--ds-space-025, 2px)", IconOverrides, IconObjectOverrides);
|
|
20
19
|
|
|
21
20
|
// The main 'wrapping' element, title of the content.
|
|
22
21
|
// NB: `white-space` adds little whitespace before wrapping.
|
|
@@ -24,14 +23,13 @@ export var EmojiWrapper = styled.span(_templateObject2 || (_templateObject2 = _t
|
|
|
24
23
|
export var IconTitleWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: pre-wrap;\n word-break: break-all;\n"])));
|
|
25
24
|
|
|
26
25
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
27
|
-
export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left:
|
|
26
|
+
export var LozengeWrapper = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n vertical-align: 1px;\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
28
27
|
// TODO: Replace overrides with proper AtlasKit solution.
|
|
29
|
-
export var LozengeBlockWrapper = styled.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > span {\n margin-left:
|
|
30
|
-
export var RightIconPositionWrapper = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left:
|
|
28
|
+
export var LozengeBlockWrapper = styled.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n & > span {\n margin-left: ", ";\n padding: ", " 0 ", " 0;\n }\n"])), "var(--ds-space-050, 4px)", "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)");
|
|
29
|
+
export var RightIconPositionWrapper = styled.span(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-left: ", ";\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-025, 2px)", "var(--ds-space-050, 4px)");
|
|
31
30
|
|
|
32
31
|
// The following components are used to absolutely position icons in the vertical center.
|
|
33
32
|
// - IconPositionWrapper: the `relative` parent which has no height in itself.
|
|
34
33
|
// - IconEmptyWrapper: the child which forces `IconPositionWrapper` to have a height.
|
|
35
|
-
export var IconPositionWrapper = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right:
|
|
36
|
-
export var IconEmptyWrapper = styled.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 14px;\n height: 100%;\n display: inline-block;\n opacity: 0;\n"])));
|
|
37
|
-
export var TitleWrapper = styled.span(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n ::selection {\n background: none;\n }\n"])));
|
|
34
|
+
export var IconPositionWrapper = styled.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-right: ", ";\n position: relative;\n display: inline-block;\n"])), "var(--ds-space-050, 4px)");
|
|
35
|
+
export var IconEmptyWrapper = styled.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n width: 14px;\n height: 100%;\n display: inline-block;\n opacity: 0;\n"])));
|
|
@@ -2,4 +2,4 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import { IconTitleWrapper } from '../IconAndTitleLayout/styled';
|
|
5
|
-
export var SpinnerWrapper = styled(IconTitleWrapper)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n vertical-align: baseline;\n margin-left:
|
|
5
|
+
export var SpinnerWrapper = styled(IconTitleWrapper)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n vertical-align: baseline;\n margin-left: ", ";\n"])), "var(--ds-space-025, 2px)");
|
|
@@ -44,7 +44,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
44
44
|
import { SkipTenBackwardIcon, SkipTenForwardIcon } from './icons';
|
|
45
45
|
import { getControlsWrapperClassName } from './getControlsWrapperClassName';
|
|
46
46
|
var packageName = "@atlaskit/media-ui";
|
|
47
|
-
var packageVersion = "23.0.
|
|
47
|
+
var packageVersion = "23.0.6";
|
|
48
48
|
var MEDIUM_VIDEO_MAX_WIDTH = 400;
|
|
49
49
|
var SMALL_VIDEO_MAX_WIDTH = 160;
|
|
50
50
|
var MINIMUM_DURATION_BEFORE_SAVING_TIME = 60;
|
|
@@ -5,27 +5,43 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import { R300 } from '@atlaskit/theme/colors';
|
|
6
6
|
export var CustomVideoWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n user-select: none;\n"])));
|
|
7
7
|
export var VideoWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n"])));
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
8
10
|
export var TimebarWrapper = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: white;\n position: absolute;\n width: 100%;\n bottom: 10px;\n"])));
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
9
12
|
export var VolumeWrapper = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n width: 35px;\n overflow: hidden;\n transition: width 0.3s;\n align-items: center;\n bottom: 0px;\n left: 43px;\n\n ", "\n"])), function (props) {
|
|
10
13
|
return props.showSlider ? "\n &:hover,\n &:active {\n width: 150px;\n transition: width 0.3s ease-out;\n }\n " : '';
|
|
11
14
|
});
|
|
12
|
-
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
17
|
+
export var TimeWrapper = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 ", " 10px ", ";\n margin-bottom: 44px;\n"])), "var(--ds-space-250, 20px)", "var(--ds-space-250, 20px)");
|
|
18
|
+
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
13
20
|
export var CurrentTime = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: #c7d1db;\n user-select: none;\n margin-right: 10px;\n white-space: nowrap;\n"])));
|
|
14
21
|
export var TimeLine = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 100%;\n height: 2px;\n transition-delay: 1s;\n transition: all 0.1s;\n background-color: #596773;\n border-radius: 5px;\n position: relative;\n"])));
|
|
15
22
|
export var CurrentTimeLine = styled.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background-color: #05c;\n border-radius: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n max-width: 100%;\n"])));
|
|
16
23
|
export var Thumb = styled.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n pointer-events: none;\n width: 14px;\n height: 14px;\n border-radius: 100%;\n background-color: white;\n border: 1px solid #666;\n position: absolute;\n right: 0;\n top: 50%;\n\n transform: translate(7px, -50%) scale(0);\n transition: all 0.1s;\n transition-delay: 1s;\n\n &:hover .current-time-tooltip {\n opacity: 1;\n }\n"])));
|
|
17
24
|
export var BufferedTime = styled.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background-color: #8696a7;\n height: inherit;\n border-radius: inherit;\n width: 0;\n"])));
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
18
27
|
export var LeftControls = styled.div(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n display: flex;\n margin-left: 10px;\n"])));
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
30
|
export var RightControls = styled.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-right: 10px;\n color: '#c7d1db';\n"])));
|
|
20
31
|
export var ControlsWrapper = styled.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n bottom: 0;\n left: 0;\n width: 100%;\n height: auto;\n background: linear-gradient(to top, #101214, rgba(14, 22, 36, 0));\n position: absolute;\n"])));
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
21
34
|
export var VolumeToggleWrapper = styled.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: relative;\n margin-right: 13px;\n\n button {\n width: 36px !important;\n color: ", ";\n }\n"])), function (_ref) {
|
|
22
35
|
var isMuted = _ref.isMuted;
|
|
23
36
|
return isMuted ? "#EF5C48 !important;" : '';
|
|
24
37
|
});
|
|
25
|
-
export var VolumeTimeRangeWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n margin-right:
|
|
38
|
+
export var VolumeTimeRangeWrapper = styled.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: 100%;\n margin-right: ", ";\n"])), "var(--ds-space-250, 20px)");
|
|
39
|
+
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
26
41
|
export var MutedIndicator = styled.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 29px;\n height: 2px;\n position: absolute;\n top: 10px;\n left: 9px;\n z-index: 2;\n background: ", ";\n transform: rotate(32deg) translateY(10px);\n opacity: 0;\n pointer-events: none;\n\n ", ";\n"])), R300, function (props) {
|
|
27
42
|
return props.isMuted ? "\n opacity: 1;\n " : '';
|
|
28
43
|
});
|
|
44
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
29
45
|
export var CurrentTimeTooltip = styled.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n position: absolute;\n user-select: none;\n top: -28px;\n background-color: #182c4c;\n color: #eff1f3;\n font-size: 12px;\n padding: 3px 7px;\n border-radius: 3px;\n left: 50%;\n transform: translateX(-50%);\n opacity: ", ";\n transition: opacity 0.3s;\n word-break: keep-all;\n"])), function (props) {
|
|
30
46
|
return props.isDragging ? '1' : '0';
|
|
31
47
|
});
|
package/dist/esm/version.json
CHANGED
|
@@ -33,7 +33,3 @@ export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent
|
|
|
33
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
34
|
as?: import("react").ElementType<any> | undefined;
|
|
35
35
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
36
|
-
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
37
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
-
as?: import("react").ElementType<any> | undefined;
|
|
39
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -33,7 +33,3 @@ export declare const IconEmptyWrapper: import("@emotion/styled").StyledComponent
|
|
|
33
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
34
|
as?: import("react").ElementType<any> | undefined;
|
|
35
35
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
36
|
-
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
37
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
-
as?: import("react").ElementType<any> | undefined;
|
|
39
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -3,7 +3,7 @@ import { N900 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
|
|
5
5
|
export const InputWrapper = styled.div`
|
|
6
|
-
margin: 20px 0;
|
|
6
|
+
margin: ${token('space.250', '20px')} 0;
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
export const PreviewList = styled.ul`
|
|
@@ -16,6 +16,7 @@ export const PreviewInfo = styled.pre`
|
|
|
16
16
|
font-size: 80%;
|
|
17
17
|
`;
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
19
20
|
export const PreviewItem = styled.li`
|
|
20
21
|
border-radius: 10px;
|
|
21
22
|
border: 1px solid ${token('color.border', '#ccc')};
|
|
@@ -26,6 +27,7 @@ export const PreviewItem = styled.li`
|
|
|
26
27
|
margin-bottom: 10px;
|
|
27
28
|
`;
|
|
28
29
|
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
29
31
|
export const Code = styled.code`
|
|
30
32
|
padding: 5px;
|
|
31
33
|
border-radius: 5px;
|
|
@@ -34,6 +36,7 @@ export const Code = styled.code`
|
|
|
34
36
|
font-size: 80%;
|
|
35
37
|
`;
|
|
36
38
|
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
37
40
|
export const CloseButton = styled.button`
|
|
38
41
|
position: absolute;
|
|
39
42
|
top: 5px;
|
|
@@ -41,18 +44,19 @@ export const CloseButton = styled.button`
|
|
|
41
44
|
cursor: pointer;
|
|
42
45
|
`;
|
|
43
46
|
|
|
47
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
44
48
|
export const PreviewImageContainer = styled.div`
|
|
45
49
|
margin-top: 10px;
|
|
46
50
|
margin-bottom: 10px;
|
|
47
51
|
`;
|
|
48
52
|
|
|
49
53
|
export const OrientationSelectWrapper = styled.label`
|
|
50
|
-
margin-bottom: 20px;
|
|
54
|
+
margin-bottom: ${token('space.250', '20px')};
|
|
51
55
|
display: block;
|
|
52
56
|
`;
|
|
53
57
|
|
|
54
58
|
export const TimeRangeWrapper = styled.div`
|
|
55
|
-
margin-top: 40px;
|
|
59
|
+
margin-top: ${token('space.500', '40px')};
|
|
56
60
|
`;
|
|
57
61
|
|
|
58
62
|
export const Container = styled.div`
|
|
@@ -60,7 +64,8 @@ export const Container = styled.div`
|
|
|
60
64
|
flex-direction: row;
|
|
61
65
|
flex-wrap: wrap;
|
|
62
66
|
`;
|
|
67
|
+
|
|
63
68
|
export const Group = styled.div`
|
|
64
69
|
width: 250px;
|
|
65
|
-
padding: 20px;
|
|
70
|
+
padding: ${token('space.250', '20px')};
|
|
66
71
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-ui",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.6",
|
|
4
4
|
"description": "Includes common components and utilities used by other media packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -107,7 +107,8 @@
|
|
|
107
107
|
},
|
|
108
108
|
"@repo/internal": {
|
|
109
109
|
"design-tokens": [
|
|
110
|
-
"color"
|
|
110
|
+
"color",
|
|
111
|
+
"spacing"
|
|
111
112
|
]
|
|
112
113
|
}
|
|
113
114
|
},
|