@atlaskit/media-avatar-picker 26.4.9 → 26.4.10
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/avatar-list/index.compiled.css +2 -2
- package/dist/cjs/avatar-list/index.js +1 -6
- package/dist/cjs/avatar-picker-dialog/custom-spinner.js +1 -1
- package/dist/cjs/image-cropper/index.js +1 -1
- package/dist/cjs/image-navigator/dragZone.compiled.css +4 -4
- package/dist/cjs/image-navigator/dragZone.js +1 -1
- package/dist/cjs/image-navigator/index.compiled.css +5 -5
- package/dist/cjs/image-navigator/index.js +4 -9
- package/dist/cjs/image-placer/imagePlacerErrorWrapper.compiled.css +1 -1
- package/dist/cjs/image-placer/imagePlacerErrorWrapper.js +1 -5
- package/dist/cjs/image-placer/margin.compiled.css +1 -1
- package/dist/cjs/image-placer/margin.js +3 -3
- package/dist/cjs/predefined-avatar-view/index.compiled.css +2 -2
- package/dist/cjs/predefined-avatar-view/index.js +1 -6
- package/dist/es2019/avatar-list/index.compiled.css +2 -2
- package/dist/es2019/avatar-list/index.js +1 -2
- package/dist/es2019/avatar-picker-dialog/custom-spinner.js +1 -1
- package/dist/es2019/image-cropper/index.js +1 -1
- package/dist/es2019/image-navigator/dragZone.compiled.css +4 -4
- package/dist/es2019/image-navigator/dragZone.js +1 -1
- package/dist/es2019/image-navigator/index.compiled.css +5 -5
- package/dist/es2019/image-navigator/index.js +4 -5
- package/dist/es2019/image-placer/imagePlacerErrorWrapper.compiled.css +1 -1
- package/dist/es2019/image-placer/imagePlacerErrorWrapper.js +1 -2
- package/dist/es2019/image-placer/margin.compiled.css +1 -1
- package/dist/es2019/image-placer/margin.js +3 -3
- package/dist/es2019/predefined-avatar-view/index.compiled.css +2 -2
- package/dist/es2019/predefined-avatar-view/index.js +1 -2
- package/dist/esm/avatar-list/index.compiled.css +2 -2
- package/dist/esm/avatar-list/index.js +1 -6
- package/dist/esm/avatar-picker-dialog/custom-spinner.js +1 -1
- package/dist/esm/image-cropper/index.js +1 -1
- package/dist/esm/image-navigator/dragZone.compiled.css +4 -4
- package/dist/esm/image-navigator/dragZone.js +1 -1
- package/dist/esm/image-navigator/index.compiled.css +5 -5
- package/dist/esm/image-navigator/index.js +4 -9
- package/dist/esm/image-placer/imagePlacerErrorWrapper.compiled.css +1 -1
- package/dist/esm/image-placer/imagePlacerErrorWrapper.js +1 -5
- package/dist/esm/image-placer/margin.compiled.css +1 -1
- package/dist/esm/image-placer/margin.js +3 -3
- package/dist/esm/predefined-avatar-view/index.compiled.css +2 -2
- package/dist/esm/predefined-avatar-view/index.js +1 -6
- package/example-helpers/samples/index.ts +2 -1
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/media-avatar-picker
|
|
2
2
|
|
|
3
|
+
## 26.4.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`715629fc18fc8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/715629fc18fc8) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 26.4.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}.
|
|
4
|
-
.
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
4
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
5
5
|
._18m915vq{overflow-y:hidden}
|
|
6
6
|
._19bvidpf{padding-left:0}
|
|
7
7
|
._1bsb1jfw{width:var(--ds-space-500,40px)}
|
|
@@ -15,7 +15,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _reactIntlNext = require("react-intl-next");
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
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; }
|
|
21
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; }
|
|
@@ -67,11 +66,7 @@ var AvatarList = exports.AvatarList = function AvatarList(_ref) {
|
|
|
67
66
|
}), /*#__PURE__*/React.createElement("img", {
|
|
68
67
|
src: avatar.dataURI,
|
|
69
68
|
alt: "",
|
|
70
|
-
className: (0, _runtime.ax)(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "
|
|
71
|
-
style: {
|
|
72
|
-
"--_5tra1i": (0, _runtime.ix)("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-selected, ".concat(_colors.B200, ")"))),
|
|
73
|
-
"--_zp4yxx": (0, _runtime.ix)("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-focused, ".concat(_colors.B100, ")")))
|
|
74
|
-
}
|
|
69
|
+
className: (0, _runtime.ax)(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
75
70
|
}));
|
|
76
71
|
});
|
|
77
72
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
10
10
|
var CustomSpinner = exports.CustomSpinner = function CustomSpinner() {
|
|
11
11
|
return /*#__PURE__*/_react.default.createElement(_mediaUi.ModalSpinner, {
|
|
12
|
-
blankedColor: "var(--ds-blanket,
|
|
12
|
+
blankedColor: "var(--ds-blanket, #050C1F75)",
|
|
13
13
|
invertSpinnerColor: false
|
|
14
14
|
});
|
|
15
15
|
};
|
|
@@ -47,7 +47,7 @@ var maskStyles = {
|
|
|
47
47
|
left: "".concat(CONTAINER_PADDING, "px"),
|
|
48
48
|
right: "".concat(CONTAINER_PADDING, "px"),
|
|
49
49
|
opacity: "var(--ds-opacity-disabled, 0.4)",
|
|
50
|
-
boxShadow: "0 0 0 100px ".concat("var(--ds-surface-overlay,
|
|
50
|
+
boxShadow: "0 0 0 100px ".concat("var(--ds-surface-overlay, #FFFFFF)")
|
|
51
51
|
};
|
|
52
52
|
var offscreenStyles = {
|
|
53
53
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
._14mj1rr0:after{border-radius:var(--ds-radius-full,9999px)}
|
|
2
|
-
.
|
|
2
|
+
._1yt4pxbi{padding:var(--ds-space-200,1pc)}
|
|
3
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
4
4
|
._eq43glyw:after{border:none}
|
|
5
5
|
._qc5o1qgh:after{transition:border-color .3s cubic-bezier(.19,1,.22,1)}
|
|
6
6
|
._v5641ggo{transition:background-color .3s cubic-bezier(.215,.61,.355,1)}
|
|
7
7
|
._1tv3gq9o:after{border-style:dashed}
|
|
8
8
|
._39yq1dm9:after{border-width:var(--ds-border-width-selected,2px)}
|
|
9
|
-
.
|
|
10
|
-
.
|
|
9
|
+
._8l3m1l7x:after{border-color:var(--ds-border,#0b120e24)}
|
|
10
|
+
._8l3mvbh5:after{border-color:var(--ds-border-information,#357de8)}
|
|
11
11
|
._15l2idpf:after{top:0}
|
|
12
12
|
._18f312c5:after{animation-iteration-count:infinite}
|
|
13
13
|
._18lgp3kn:after{animation-timing-function:linear}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
._4cvr1h6o{align-items:center}
|
|
23
23
|
._4t3iuuw1{height:200px}
|
|
24
24
|
._aetrb3bt:after{content:""}
|
|
25
|
-
.
|
|
25
|
+
._bfhk86z5{background-color:var(--ds-background-information-hovered,#cfe1fd)}
|
|
26
26
|
._kqswh2mm{position:relative}
|
|
27
27
|
._kwc012me:after{animation-duration:8s}
|
|
28
28
|
._re8d1dpy{display-name:DragZone}
|
|
@@ -27,6 +27,6 @@ var DragZone = exports.DragZone = function DragZone(_ref) {
|
|
|
27
27
|
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
28
28
|
"data-testid": "dragzone"
|
|
29
29
|
}, props, {
|
|
30
|
-
className: (0, _runtime.ax)(["
|
|
30
|
+
className: (0, _runtime.ax)(["_1yt4pxbi _2rko1rr0 _v5641ggo _1bsbuuw1 _4t3iuuw1 _1e0c1txw _2lx21bp4 _4cvr1h6o _1bah1h6o _kqswh2mm _re8d1dpy _14mj1rr0 _qc5o1qgh _aetrb3bt _18postnw _15l2idpf _19doidpf _z0ai1osq _1qdg1osq", isDroppingFile && "", isDroppingFile && "_bfhk86z5 _8l3mvbh5 _19ohtakz _kwc012me _18lgp3kn _18f312c5", showBorder && "_39yq1dm9 _1tv3gq9o _8l3m1l7x", !showBorder && "_eq43glyw"])
|
|
31
31
|
}), children);
|
|
32
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._154iidpf{top:0}
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
4
|
+
._19pk1a66{margin-top:var(--ds-space-100,8px)!important}
|
|
5
5
|
._19pkidpf{margin-top:0}
|
|
6
6
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
7
|
._1bah1h6o{justify-content:center}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
._1qtqidpf input{padding-bottom:0}
|
|
17
17
|
._1rquusvi *{box-sizing:border-box}
|
|
18
18
|
._1xi2idpf{right:0}
|
|
19
|
-
.
|
|
19
|
+
._2hwxutpp{margin-right:var(--ds-space-150,9pt)}
|
|
20
20
|
._2lx21bp4{flex-direction:column}
|
|
21
21
|
._2lx2vrvc{flex-direction:row}
|
|
22
22
|
._40631ntv input{box-sizing:content-box}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
._kqswstnw{position:absolute}
|
|
32
32
|
._n9z4idpf input{padding-left:0}
|
|
33
33
|
._ogxmidpf input{padding-right:0}
|
|
34
|
-
.
|
|
34
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
35
35
|
._otyrv47k{margin-bottom:var(--ds-space-250,20px)}
|
|
36
|
-
.
|
|
36
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
37
37
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
38
38
|
._v69yidpf input{padding-top:0}
|
|
39
39
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -19,7 +19,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
19
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
21
|
var _react = _interopRequireWildcard(require("react"));
|
|
22
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
23
22
|
var _reactIntlNext = require("react-intl-next");
|
|
24
23
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
25
24
|
var _imageCropper = _interopRequireDefault(require("../image-cropper"));
|
|
@@ -238,9 +237,8 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
|
|
|
238
237
|
className: (0, _runtime.ax)(["_1bsb53f4"])
|
|
239
238
|
}), !!errorMessage ? /*#__PURE__*/_react.default.createElement("div", {
|
|
240
239
|
id: "drag-zone-text",
|
|
241
|
-
className: (0, _runtime.ax)(["_y3gn1h6o
|
|
240
|
+
className: (0, _runtime.ax)(["_y3gn1h6o _syaz1rpy", "_1bsb6aa1"]),
|
|
242
241
|
style: {
|
|
243
|
-
"--_vrm7dk": (0, _runtime.ix)("var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
244
242
|
"--_19s8yqa": (0, _runtime.ix)("calc(".concat(AVATAR_DIALOG_WIDTH, " - ", "var(--ds-space-100, 8px)", " * 8)px"))
|
|
245
243
|
}
|
|
246
244
|
}, /*#__PURE__*/_react.default.createElement(_mediaUi.Ellipsify, {
|
|
@@ -248,10 +246,7 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
|
|
|
248
246
|
lines: 3
|
|
249
247
|
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
250
248
|
id: "drag-zone-text",
|
|
251
|
-
className: (0, _runtime.ax)(["_y3gn1h6o
|
|
252
|
-
style: {
|
|
253
|
-
"--_vrm7dk": (0, _runtime.ix)("var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
254
|
-
}
|
|
249
|
+
className: (0, _runtime.ax)(["_y3gn1h6o _syaz1rpy", "_1bsb1wug"])
|
|
255
250
|
}, /*#__PURE__*/_react.default.createElement(_mediaUi.Ellipsify, {
|
|
256
251
|
text: dragZoneText,
|
|
257
252
|
lines: 3
|
|
@@ -360,10 +355,10 @@ var ImageNavigator = exports.ImageNavigator = /*#__PURE__*/function (_Component)
|
|
|
360
355
|
isLoading = _this$props3.isLoading;
|
|
361
356
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
362
357
|
id: "image-uploader",
|
|
363
|
-
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf
|
|
358
|
+
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf _2hwxutpp _otyrv47k _18u0utpp"])
|
|
364
359
|
}, this.renderDragZone(), isLoading ? null : /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", {
|
|
365
360
|
id: "padded-break",
|
|
366
|
-
className: (0, _runtime.ax)(["
|
|
361
|
+
className: (0, _runtime.ax)(["_19pk1a66 _otyru2gc _y3gn1h6o"])
|
|
367
362
|
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, errorMessage ? _mediaUi.messages.try_again : _mediaUi.messages.or)), /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
368
363
|
onClick: this.onUploadButtonClick,
|
|
369
364
|
isDisabled: isLoading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._1bsb1osq{width:100%}
|
|
2
2
|
._4t3i1osq{height:100%}
|
|
3
|
-
.
|
|
3
|
+
._bfhkybec{background-color:var(--ds-background-danger-bold,#c9372c)}
|
|
4
4
|
._ca0qmko7{padding-top:45%}
|
|
5
5
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
6
6
|
._y3gn1h6o{text-align:center}
|
|
@@ -9,15 +9,11 @@ exports.ImagePlacerErrorWrapper = void 0;
|
|
|
9
9
|
require("./imagePlacerErrorWrapper.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
13
|
var imagePlacerErrorWrapperStyles = null;
|
|
15
14
|
var ImagePlacerErrorWrapper = exports.ImagePlacerErrorWrapper = function ImagePlacerErrorWrapper(_ref) {
|
|
16
15
|
var children = _ref.children;
|
|
17
16
|
return /*#__PURE__*/React.createElement("div", {
|
|
18
|
-
className: (0, _runtime.ax)(["
|
|
19
|
-
style: {
|
|
20
|
-
"--_vkg0y2": (0, _runtime.ix)("var(--ds-background-danger-bold, ".concat(_colors.R500, ")"))
|
|
21
|
-
}
|
|
17
|
+
className: (0, _runtime.ax)(["_bfhkybec _syaz15cr _1bsb1osq _4t3i1osq _y3gn1h6o _ca0qmko7"])
|
|
22
18
|
}, children);
|
|
23
19
|
};
|
|
@@ -47,9 +47,9 @@ var Margin = exports.Margin = /*#__PURE__*/function (_React$Component) {
|
|
|
47
47
|
top: "".concat(size, "px"),
|
|
48
48
|
width: "".concat(width, "px"),
|
|
49
49
|
height: "".concat(height, "px"),
|
|
50
|
-
boxShadow: "0px 0px 0px ".concat(Math.max(width, height), "px ", "var(--ds-surface-overlay,
|
|
50
|
+
boxShadow: "0px 0px 0px ".concat(Math.max(width, height), "px ", "var(--ds-surface-overlay, #FFFFFF)")
|
|
51
51
|
},
|
|
52
|
-
className: (0, _runtime.ax)(["_2rko1rr0 _1sb2b3bt _kqswstnw
|
|
52
|
+
className: (0, _runtime.ax)(["_2rko1rr0 _1sb2b3bt _kqswstnw _tzy42wxo"])
|
|
53
53
|
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
54
54
|
style: {
|
|
55
55
|
borderWidth: "".concat(size, "px"),
|
|
@@ -57,7 +57,7 @@ var Margin = exports.Margin = /*#__PURE__*/function (_React$Component) {
|
|
|
57
57
|
height: "".concat(height, "px")
|
|
58
58
|
},
|
|
59
59
|
id: id,
|
|
60
|
-
className: (0, _runtime.ax)(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf
|
|
60
|
+
className: (0, _runtime.ax)(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf _tzy42wxo"])
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}]);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
3
|
._2rko1i7s{border-radius:var(--ds-radius-full,1pc)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
6
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._18m915vq{overflow-y:hidden}
|
|
8
8
|
._18m91wug{overflow-y:auto}
|
|
9
9
|
._18u0idpf{margin-left:0}
|
|
@@ -17,7 +17,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
17
17
|
var _mediaUi = require("@atlaskit/media-ui");
|
|
18
18
|
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/arrow-left"));
|
|
19
19
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
20
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
21
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
21
|
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; }
|
|
23
22
|
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; }
|
|
@@ -74,11 +73,7 @@ var PredefinedAvatarView = exports.PredefinedAvatarView = /*#__PURE__*/(0, _reac
|
|
|
74
73
|
}), /*#__PURE__*/React.createElement("img", {
|
|
75
74
|
src: avatar.dataURI,
|
|
76
75
|
alt: "",
|
|
77
|
-
className: (0, _runtime.ax)(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "
|
|
78
|
-
style: {
|
|
79
|
-
"--_5tra1i": (0, _runtime.ix)("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-selected, ".concat(_colors.B200, ")"))),
|
|
80
|
-
"--_zp4yxx": (0, _runtime.ix)("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-focused, ".concat(_colors.B100, ")")))
|
|
81
|
-
}
|
|
76
|
+
className: (0, _runtime.ax)(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
82
77
|
}));
|
|
83
78
|
});
|
|
84
79
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}.
|
|
4
|
-
.
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
4
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
5
5
|
._18m915vq{overflow-y:hidden}
|
|
6
6
|
._19bvidpf{padding-left:0}
|
|
7
7
|
._1bsb1jfw{width:var(--ds-space-500,40px)}
|
|
@@ -4,7 +4,6 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { useIntl } from 'react-intl-next';
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
|
-
import { B200, B100 } from '@atlaskit/theme/colors';
|
|
8
7
|
import { useState } from 'react';
|
|
9
8
|
const smallAvatarImageStyles = null;
|
|
10
9
|
const avatarListWrapperStyles = null;
|
|
@@ -49,7 +48,7 @@ export const AvatarList = ({
|
|
|
49
48
|
}), /*#__PURE__*/React.createElement("img", {
|
|
50
49
|
src: avatar.dataURI,
|
|
51
50
|
alt: "",
|
|
52
|
-
className: ax(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "
|
|
51
|
+
className: ax(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
53
52
|
}));
|
|
54
53
|
});
|
|
55
54
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ModalSpinner } from '@atlaskit/media-ui';
|
|
3
3
|
export const CustomSpinner = () => {
|
|
4
4
|
return /*#__PURE__*/React.createElement(ModalSpinner, {
|
|
5
|
-
blankedColor: `${"var(--ds-blanket,
|
|
5
|
+
blankedColor: `${"var(--ds-blanket, #050C1F75)"}`,
|
|
6
6
|
invertSpinnerColor: false
|
|
7
7
|
});
|
|
8
8
|
};
|
|
@@ -30,7 +30,7 @@ const maskStyles = {
|
|
|
30
30
|
left: `${CONTAINER_PADDING}px`,
|
|
31
31
|
right: `${CONTAINER_PADDING}px`,
|
|
32
32
|
opacity: "var(--ds-opacity-disabled, 0.4)",
|
|
33
|
-
boxShadow: `0 0 0 100px ${"var(--ds-surface-overlay,
|
|
33
|
+
boxShadow: `0 0 0 100px ${"var(--ds-surface-overlay, #FFFFFF)"}`
|
|
34
34
|
};
|
|
35
35
|
const offscreenStyles = {
|
|
36
36
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
._14mj1rr0:after{border-radius:var(--ds-radius-full,9999px)}
|
|
2
|
-
.
|
|
2
|
+
._1yt4pxbi{padding:var(--ds-space-200,1pc)}
|
|
3
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
4
4
|
._eq43glyw:after{border:none}
|
|
5
5
|
._qc5o1qgh:after{transition:border-color .3s cubic-bezier(.19,1,.22,1)}
|
|
6
6
|
._v5641ggo{transition:background-color .3s cubic-bezier(.215,.61,.355,1)}
|
|
7
7
|
._1tv3gq9o:after{border-style:dashed}
|
|
8
8
|
._39yq1dm9:after{border-width:var(--ds-border-width-selected,2px)}
|
|
9
|
-
.
|
|
10
|
-
.
|
|
9
|
+
._8l3m1l7x:after{border-color:var(--ds-border,#0b120e24)}
|
|
10
|
+
._8l3mvbh5:after{border-color:var(--ds-border-information,#357de8)}
|
|
11
11
|
._15l2idpf:after{top:0}
|
|
12
12
|
._18f312c5:after{animation-iteration-count:infinite}
|
|
13
13
|
._18lgp3kn:after{animation-timing-function:linear}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
._4cvr1h6o{align-items:center}
|
|
23
23
|
._4t3iuuw1{height:200px}
|
|
24
24
|
._aetrb3bt:after{content:""}
|
|
25
|
-
.
|
|
25
|
+
._bfhk86z5{background-color:var(--ds-background-information-hovered,#cfe1fd)}
|
|
26
26
|
._kqswh2mm{position:relative}
|
|
27
27
|
._kwc012me:after{animation-duration:8s}
|
|
28
28
|
._re8d1dpy{display-name:DragZone}
|
|
@@ -16,5 +16,5 @@ export const DragZone = ({
|
|
|
16
16
|
}) => /*#__PURE__*/React.createElement("div", _extends({
|
|
17
17
|
"data-testid": "dragzone"
|
|
18
18
|
}, props, {
|
|
19
|
-
className: ax(["
|
|
19
|
+
className: ax(["_1yt4pxbi _2rko1rr0 _v5641ggo _1bsbuuw1 _4t3iuuw1 _1e0c1txw _2lx21bp4 _4cvr1h6o _1bah1h6o _kqswh2mm _re8d1dpy _14mj1rr0 _qc5o1qgh _aetrb3bt _18postnw _15l2idpf _19doidpf _z0ai1osq _1qdg1osq", isDroppingFile && "", isDroppingFile && "_bfhk86z5 _8l3mvbh5 _19ohtakz _kwc012me _18lgp3kn _18f312c5", showBorder && "_39yq1dm9 _1tv3gq9o _8l3m1l7x", !showBorder && "_eq43glyw"])
|
|
20
20
|
}), children);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._154iidpf{top:0}
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
4
|
+
._19pk1a66{margin-top:var(--ds-space-100,8px)!important}
|
|
5
5
|
._19pkidpf{margin-top:0}
|
|
6
6
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
7
|
._1bah1h6o{justify-content:center}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
._1qtqidpf input{padding-bottom:0}
|
|
17
17
|
._1rquusvi *{box-sizing:border-box}
|
|
18
18
|
._1xi2idpf{right:0}
|
|
19
|
-
.
|
|
19
|
+
._2hwxutpp{margin-right:var(--ds-space-150,9pt)}
|
|
20
20
|
._2lx21bp4{flex-direction:column}
|
|
21
21
|
._2lx2vrvc{flex-direction:row}
|
|
22
22
|
._40631ntv input{box-sizing:content-box}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
._kqswstnw{position:absolute}
|
|
32
32
|
._n9z4idpf input{padding-left:0}
|
|
33
33
|
._ogxmidpf input{padding-right:0}
|
|
34
|
-
.
|
|
34
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
35
35
|
._otyrv47k{margin-bottom:var(--ds-space-250,20px)}
|
|
36
|
-
.
|
|
36
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
37
37
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
38
38
|
._v69yidpf input{padding-top:0}
|
|
39
39
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -3,7 +3,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import "./index.compiled.css";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
7
6
|
import { Component } from 'react';
|
|
8
7
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
9
8
|
import Button from '@atlaskit/button/standard-button';
|
|
@@ -230,13 +229,13 @@ export class ImageNavigator extends Component {
|
|
|
230
229
|
className: ax(["_1bsb53f4"])
|
|
231
230
|
}), !!errorMessage ? /*#__PURE__*/React.createElement("div", {
|
|
232
231
|
id: "drag-zone-text",
|
|
233
|
-
className: ax(["_y3gn1h6o
|
|
232
|
+
className: ax(["_y3gn1h6o _syaz1rpy", "_1bsb1vr8"])
|
|
234
233
|
}, /*#__PURE__*/React.createElement(Ellipsify, {
|
|
235
234
|
text: dragZoneText,
|
|
236
235
|
lines: 3
|
|
237
236
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
238
237
|
id: "drag-zone-text",
|
|
239
|
-
className: ax(["_y3gn1h6o
|
|
238
|
+
className: ax(["_y3gn1h6o _syaz1rpy", "_1bsb1wug"])
|
|
240
239
|
}, /*#__PURE__*/React.createElement(Ellipsify, {
|
|
241
240
|
text: dragZoneText,
|
|
242
241
|
lines: 3
|
|
@@ -317,10 +316,10 @@ export class ImageNavigator extends Component {
|
|
|
317
316
|
} = this.props;
|
|
318
317
|
return /*#__PURE__*/React.createElement("div", {
|
|
319
318
|
id: "image-uploader",
|
|
320
|
-
className: ax(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf
|
|
319
|
+
className: ax(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf _2hwxutpp _otyrv47k _18u0utpp"])
|
|
321
320
|
}, this.renderDragZone(), isLoading ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
322
321
|
id: "padded-break",
|
|
323
|
-
className: ax(["
|
|
322
|
+
className: ax(["_19pk1a66 _otyru2gc _y3gn1h6o"])
|
|
324
323
|
}, /*#__PURE__*/React.createElement(FormattedMessage, errorMessage ? messages.try_again : messages.or)), /*#__PURE__*/React.createElement(Button, {
|
|
325
324
|
onClick: this.onUploadButtonClick,
|
|
326
325
|
isDisabled: isLoading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._1bsb1osq{width:100%}
|
|
2
2
|
._4t3i1osq{height:100%}
|
|
3
|
-
.
|
|
3
|
+
._bfhkybec{background-color:var(--ds-background-danger-bold,#c9372c)}
|
|
4
4
|
._ca0qmko7{padding-top:45%}
|
|
5
5
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
6
6
|
._y3gn1h6o{text-align:center}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import "./imagePlacerErrorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { R500 } from '@atlaskit/theme/colors';
|
|
6
5
|
const imagePlacerErrorWrapperStyles = null;
|
|
7
6
|
export const ImagePlacerErrorWrapper = ({
|
|
8
7
|
children
|
|
9
8
|
}) => /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: ax(["
|
|
9
|
+
className: ax(["_bfhkybec _syaz15cr _1bsb1osq _4t3i1osq _y3gn1h6o _ca0qmko7"])
|
|
11
10
|
}, children);
|
|
@@ -27,9 +27,9 @@ export class Margin extends React.Component {
|
|
|
27
27
|
top: `${size}px`,
|
|
28
28
|
width: `${width}px`,
|
|
29
29
|
height: `${height}px`,
|
|
30
|
-
boxShadow: `0px 0px 0px ${Math.max(width, height)}px ${"var(--ds-surface-overlay,
|
|
30
|
+
boxShadow: `0px 0px 0px ${Math.max(width, height)}px ${"var(--ds-surface-overlay, #FFFFFF)"}`
|
|
31
31
|
},
|
|
32
|
-
className: ax(["_2rko1rr0 _1sb2b3bt _kqswstnw
|
|
32
|
+
className: ax(["_2rko1rr0 _1sb2b3bt _kqswstnw _tzy42wxo"])
|
|
33
33
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
34
34
|
style: {
|
|
35
35
|
borderWidth: `${size}px`,
|
|
@@ -37,7 +37,7 @@ export class Margin extends React.Component {
|
|
|
37
37
|
height: `${height}px`
|
|
38
38
|
},
|
|
39
39
|
id: id,
|
|
40
|
-
className: ax(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf
|
|
40
|
+
className: ax(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf _tzy42wxo"])
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
3
|
._2rko1i7s{border-radius:var(--ds-radius-full,1pc)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
6
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._18m915vq{overflow-y:hidden}
|
|
8
8
|
._18m91wug{overflow-y:auto}
|
|
9
9
|
._18u0idpf{margin-left:0}
|
|
@@ -6,7 +6,6 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
6
6
|
import { messages } from '@atlaskit/media-ui';
|
|
7
7
|
import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
|
|
8
8
|
import Button from '@atlaskit/button/standard-button';
|
|
9
|
-
import { B200, B100 } from '@atlaskit/theme/colors';
|
|
10
9
|
import { forwardRef, useState } from 'react';
|
|
11
10
|
const largeAvatarImageStyles = null;
|
|
12
11
|
const largeAvatarImageCheckedStyles = null;
|
|
@@ -58,7 +57,7 @@ export const PredefinedAvatarView = /*#__PURE__*/forwardRef(({
|
|
|
58
57
|
}), /*#__PURE__*/React.createElement("img", {
|
|
59
58
|
src: avatar.dataURI,
|
|
60
59
|
alt: "",
|
|
61
|
-
className: ax(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "
|
|
60
|
+
className: ax(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
62
61
|
}));
|
|
63
62
|
});
|
|
64
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
|
-
._2rkofajl{border-radius:var(--ds-radius-small,3px)}.
|
|
4
|
-
.
|
|
3
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
4
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
5
5
|
._18m915vq{overflow-y:hidden}
|
|
6
6
|
._19bvidpf{padding-left:0}
|
|
7
7
|
._1bsb1jfw{width:var(--ds-space-500,40px)}
|
|
@@ -8,7 +8,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
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) { _defineProperty(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; }
|
|
9
9
|
import { useIntl } from 'react-intl-next';
|
|
10
10
|
import { messages } from '@atlaskit/media-ui';
|
|
11
|
-
import { B200, B100 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { useState } from 'react';
|
|
13
12
|
var smallAvatarImageStyles = null;
|
|
14
13
|
var avatarListWrapperStyles = null;
|
|
@@ -58,11 +57,7 @@ export var AvatarList = function AvatarList(_ref) {
|
|
|
58
57
|
}), /*#__PURE__*/React.createElement("img", {
|
|
59
58
|
src: avatar.dataURI,
|
|
60
59
|
alt: "",
|
|
61
|
-
className: ax(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "
|
|
62
|
-
style: {
|
|
63
|
-
"--_5tra1i": ix("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-selected, ".concat(B200, ")"))),
|
|
64
|
-
"--_zp4yxx": ix("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-focused, ".concat(B100, ")")))
|
|
65
|
-
}
|
|
60
|
+
className: ax(["_2rkofajl _80omtlke _1bsb1jfw _4t3i1jfw", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
66
61
|
}));
|
|
67
62
|
});
|
|
68
63
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ModalSpinner } from '@atlaskit/media-ui';
|
|
3
3
|
export var CustomSpinner = function CustomSpinner() {
|
|
4
4
|
return /*#__PURE__*/React.createElement(ModalSpinner, {
|
|
5
|
-
blankedColor: "var(--ds-blanket,
|
|
5
|
+
blankedColor: "var(--ds-blanket, #050C1F75)",
|
|
6
6
|
invertSpinnerColor: false
|
|
7
7
|
});
|
|
8
8
|
};
|
|
@@ -39,7 +39,7 @@ var maskStyles = {
|
|
|
39
39
|
left: "".concat(CONTAINER_PADDING, "px"),
|
|
40
40
|
right: "".concat(CONTAINER_PADDING, "px"),
|
|
41
41
|
opacity: "var(--ds-opacity-disabled, 0.4)",
|
|
42
|
-
boxShadow: "0 0 0 100px ".concat("var(--ds-surface-overlay,
|
|
42
|
+
boxShadow: "0 0 0 100px ".concat("var(--ds-surface-overlay, #FFFFFF)")
|
|
43
43
|
};
|
|
44
44
|
var offscreenStyles = {
|
|
45
45
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
._14mj1rr0:after{border-radius:var(--ds-radius-full,9999px)}
|
|
2
|
-
.
|
|
2
|
+
._1yt4pxbi{padding:var(--ds-space-200,1pc)}
|
|
3
3
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
4
4
|
._eq43glyw:after{border:none}
|
|
5
5
|
._qc5o1qgh:after{transition:border-color .3s cubic-bezier(.19,1,.22,1)}
|
|
6
6
|
._v5641ggo{transition:background-color .3s cubic-bezier(.215,.61,.355,1)}
|
|
7
7
|
._1tv3gq9o:after{border-style:dashed}
|
|
8
8
|
._39yq1dm9:after{border-width:var(--ds-border-width-selected,2px)}
|
|
9
|
-
.
|
|
10
|
-
.
|
|
9
|
+
._8l3m1l7x:after{border-color:var(--ds-border,#0b120e24)}
|
|
10
|
+
._8l3mvbh5:after{border-color:var(--ds-border-information,#357de8)}
|
|
11
11
|
._15l2idpf:after{top:0}
|
|
12
12
|
._18f312c5:after{animation-iteration-count:infinite}
|
|
13
13
|
._18lgp3kn:after{animation-timing-function:linear}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
._4cvr1h6o{align-items:center}
|
|
23
23
|
._4t3iuuw1{height:200px}
|
|
24
24
|
._aetrb3bt:after{content:""}
|
|
25
|
-
.
|
|
25
|
+
._bfhk86z5{background-color:var(--ds-background-information-hovered,#cfe1fd)}
|
|
26
26
|
._kqswh2mm{position:relative}
|
|
27
27
|
._kwc012me:after{animation-duration:8s}
|
|
28
28
|
._re8d1dpy{display-name:DragZone}
|
|
@@ -18,6 +18,6 @@ export var DragZone = function DragZone(_ref) {
|
|
|
18
18
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
19
19
|
"data-testid": "dragzone"
|
|
20
20
|
}, props, {
|
|
21
|
-
className: ax(["
|
|
21
|
+
className: ax(["_1yt4pxbi _2rko1rr0 _v5641ggo _1bsbuuw1 _4t3iuuw1 _1e0c1txw _2lx21bp4 _4cvr1h6o _1bah1h6o _kqswh2mm _re8d1dpy _14mj1rr0 _qc5o1qgh _aetrb3bt _18postnw _15l2idpf _19doidpf _z0ai1osq _1qdg1osq", isDroppingFile && "", isDroppingFile && "_bfhk86z5 _8l3mvbh5 _19ohtakz _kwc012me _18lgp3kn _18f312c5", showBorder && "_39yq1dm9 _1tv3gq9o _8l3m1l7x", !showBorder && "_eq43glyw"])
|
|
22
22
|
}), children);
|
|
23
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._154iidpf{top:0}
|
|
3
|
-
.
|
|
4
|
-
.
|
|
3
|
+
._18u0utpp{margin-left:var(--ds-space-150,9pt)}
|
|
4
|
+
._19pk1a66{margin-top:var(--ds-space-100,8px)!important}
|
|
5
5
|
._19pkidpf{margin-top:0}
|
|
6
6
|
._19pku2gc{margin-top:var(--ds-space-100,8px)}
|
|
7
7
|
._1bah1h6o{justify-content:center}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
._1qtqidpf input{padding-bottom:0}
|
|
17
17
|
._1rquusvi *{box-sizing:border-box}
|
|
18
18
|
._1xi2idpf{right:0}
|
|
19
|
-
.
|
|
19
|
+
._2hwxutpp{margin-right:var(--ds-space-150,9pt)}
|
|
20
20
|
._2lx21bp4{flex-direction:column}
|
|
21
21
|
._2lx2vrvc{flex-direction:row}
|
|
22
22
|
._40631ntv input{box-sizing:content-box}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
._kqswstnw{position:absolute}
|
|
32
32
|
._n9z4idpf input{padding-left:0}
|
|
33
33
|
._ogxmidpf input{padding-right:0}
|
|
34
|
-
.
|
|
34
|
+
._otyru2gc{margin-bottom:var(--ds-space-100,8px)}
|
|
35
35
|
._otyrv47k{margin-bottom:var(--ds-space-250,20px)}
|
|
36
|
-
.
|
|
36
|
+
._syaz1rpy{color:var(--ds-text-subtlest,#6b6e76)}
|
|
37
37
|
._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
|
|
38
38
|
._v69yidpf input{padding-top:0}
|
|
39
39
|
._vchhusvi{box-sizing:border-box}
|
|
@@ -13,7 +13,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
13
13
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
17
16
|
import { Component } from 'react';
|
|
18
17
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
19
18
|
import Button from '@atlaskit/button/standard-button';
|
|
@@ -230,9 +229,8 @@ export var ImageNavigator = /*#__PURE__*/function (_Component) {
|
|
|
230
229
|
className: ax(["_1bsb53f4"])
|
|
231
230
|
}), !!errorMessage ? /*#__PURE__*/React.createElement("div", {
|
|
232
231
|
id: "drag-zone-text",
|
|
233
|
-
className: ax(["_y3gn1h6o
|
|
232
|
+
className: ax(["_y3gn1h6o _syaz1rpy", "_1bsb6aa1"]),
|
|
234
233
|
style: {
|
|
235
|
-
"--_vrm7dk": ix("var(--ds-text-subtlest, ".concat(N200, ")")),
|
|
236
234
|
"--_19s8yqa": ix("calc(".concat(AVATAR_DIALOG_WIDTH, " - ", "var(--ds-space-100, 8px)", " * 8)px"))
|
|
237
235
|
}
|
|
238
236
|
}, /*#__PURE__*/React.createElement(Ellipsify, {
|
|
@@ -240,10 +238,7 @@ export var ImageNavigator = /*#__PURE__*/function (_Component) {
|
|
|
240
238
|
lines: 3
|
|
241
239
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
242
240
|
id: "drag-zone-text",
|
|
243
|
-
className: ax(["_y3gn1h6o
|
|
244
|
-
style: {
|
|
245
|
-
"--_vrm7dk": ix("var(--ds-text-subtlest, ".concat(N200, ")"))
|
|
246
|
-
}
|
|
241
|
+
className: ax(["_y3gn1h6o _syaz1rpy", "_1bsb1wug"])
|
|
247
242
|
}, /*#__PURE__*/React.createElement(Ellipsify, {
|
|
248
243
|
text: dragZoneText,
|
|
249
244
|
lines: 3
|
|
@@ -352,10 +347,10 @@ export var ImageNavigator = /*#__PURE__*/function (_Component) {
|
|
|
352
347
|
isLoading = _this$props3.isLoading;
|
|
353
348
|
return /*#__PURE__*/React.createElement("div", {
|
|
354
349
|
id: "image-uploader",
|
|
355
|
-
className: ax(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf
|
|
350
|
+
className: ax(["_1e0c1txw _2lx21bp4 _1bah1h6o _4cvr1h6o _19pkidpf _2hwxutpp _otyrv47k _18u0utpp"])
|
|
356
351
|
}, this.renderDragZone(), isLoading ? null : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
|
357
352
|
id: "padded-break",
|
|
358
|
-
className: ax(["
|
|
353
|
+
className: ax(["_19pk1a66 _otyru2gc _y3gn1h6o"])
|
|
359
354
|
}, /*#__PURE__*/React.createElement(FormattedMessage, errorMessage ? messages.try_again : messages.or)), /*#__PURE__*/React.createElement(Button, {
|
|
360
355
|
onClick: this.onUploadButtonClick,
|
|
361
356
|
isDisabled: isLoading,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._1bsb1osq{width:100%}
|
|
2
2
|
._4t3i1osq{height:100%}
|
|
3
|
-
.
|
|
3
|
+
._bfhkybec{background-color:var(--ds-background-danger-bold,#c9372c)}
|
|
4
4
|
._ca0qmko7{padding-top:45%}
|
|
5
5
|
._syaz15cr{color:var(--ds-text-inverse,#fff)}
|
|
6
6
|
._y3gn1h6o{text-align:center}
|
|
@@ -2,14 +2,10 @@
|
|
|
2
2
|
import "./imagePlacerErrorWrapper.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { R500 } from '@atlaskit/theme/colors';
|
|
6
5
|
var imagePlacerErrorWrapperStyles = null;
|
|
7
6
|
export var ImagePlacerErrorWrapper = function ImagePlacerErrorWrapper(_ref) {
|
|
8
7
|
var children = _ref.children;
|
|
9
8
|
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className: ax(["
|
|
11
|
-
style: {
|
|
12
|
-
"--_vkg0y2": ix("var(--ds-background-danger-bold, ".concat(R500, ")"))
|
|
13
|
-
}
|
|
9
|
+
className: ax(["_bfhkybec _syaz15cr _1bsb1osq _4t3i1osq _y3gn1h6o _ca0qmko7"])
|
|
14
10
|
}, children);
|
|
15
11
|
};
|
|
@@ -40,9 +40,9 @@ export var Margin = /*#__PURE__*/function (_React$Component) {
|
|
|
40
40
|
top: "".concat(size, "px"),
|
|
41
41
|
width: "".concat(width, "px"),
|
|
42
42
|
height: "".concat(height, "px"),
|
|
43
|
-
boxShadow: "0px 0px 0px ".concat(Math.max(width, height), "px ", "var(--ds-surface-overlay,
|
|
43
|
+
boxShadow: "0px 0px 0px ".concat(Math.max(width, height), "px ", "var(--ds-surface-overlay, #FFFFFF)")
|
|
44
44
|
},
|
|
45
|
-
className: ax(["_2rko1rr0 _1sb2b3bt _kqswstnw
|
|
45
|
+
className: ax(["_2rko1rr0 _1sb2b3bt _kqswstnw _tzy42wxo"])
|
|
46
46
|
})) : /*#__PURE__*/React.createElement("div", {
|
|
47
47
|
style: {
|
|
48
48
|
borderWidth: "".concat(size, "px"),
|
|
@@ -50,7 +50,7 @@ export var Margin = /*#__PURE__*/function (_React$Component) {
|
|
|
50
50
|
height: "".concat(height, "px")
|
|
51
51
|
},
|
|
52
52
|
id: id,
|
|
53
|
-
className: ax(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf
|
|
53
|
+
className: ax(["_1dqonqa1 _1h6d1bhr _kqswstnw _1ltvidpf _154iidpf _tzy42wxo"])
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}]);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
._19itidpf{border:0}
|
|
3
3
|
._2rko1i7s{border-radius:var(--ds-radius-full,1pc)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
5
|
+
._16qs1941{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-selected,#1868db)}
|
|
6
|
+
._16qsgwzo{box-shadow:0 0 0 1px var(--ds-border-inverse,#fff),0 0 0 3px var(--ds-border-focused,#4688ec)}
|
|
7
7
|
._18m915vq{overflow-y:hidden}
|
|
8
8
|
._18m91wug{overflow-y:auto}
|
|
9
9
|
._18u0idpf{margin-left:0}
|
|
@@ -10,7 +10,6 @@ import { FormattedMessage, useIntl } from 'react-intl-next';
|
|
|
10
10
|
import { messages } from '@atlaskit/media-ui';
|
|
11
11
|
import ArrowLeftIcon from '@atlaskit/icon/core/arrow-left';
|
|
12
12
|
import Button from '@atlaskit/button/standard-button';
|
|
13
|
-
import { B200, B100 } from '@atlaskit/theme/colors';
|
|
14
13
|
import { forwardRef, useState } from 'react';
|
|
15
14
|
var largeAvatarImageStyles = null;
|
|
16
15
|
var largeAvatarImageCheckedStyles = null;
|
|
@@ -65,11 +64,7 @@ export var PredefinedAvatarView = /*#__PURE__*/forwardRef(function (_ref, goBack
|
|
|
65
64
|
}), /*#__PURE__*/React.createElement("img", {
|
|
66
65
|
src: avatar.dataURI,
|
|
67
66
|
alt: "",
|
|
68
|
-
className: ax(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "
|
|
69
|
-
style: {
|
|
70
|
-
"--_5tra1i": ix("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-selected, ".concat(B200, ")"))),
|
|
71
|
-
"--_zp4yxx": ix("0px 0px 0px 1px ".concat("var(--ds-border-inverse, white)", ", 0px 0px 0px 3px ", "var(--ds-border-focused, ".concat(B100, ")")))
|
|
72
|
-
}
|
|
67
|
+
className: ax(["_2rkofajl _80omtlke _1bsbt9kd _4t3it9kd", avatar === selectedAvatar && "_16qs1941", isFocused[avatar.dataURI] && "_16qsgwzo"])
|
|
73
68
|
}));
|
|
74
69
|
});
|
|
75
70
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -25,7 +25,7 @@ import av24 from './avatar-24.svg';
|
|
|
25
25
|
import av25 from './avatar-25.svg';
|
|
26
26
|
import av26 from './avatar-26.svg';
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const _default_1: string[] = [
|
|
29
29
|
av1,
|
|
30
30
|
av2,
|
|
31
31
|
av3,
|
|
@@ -53,3 +53,4 @@ export default [
|
|
|
53
53
|
av25,
|
|
54
54
|
av26,
|
|
55
55
|
];
|
|
56
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/media-avatar-picker",
|
|
3
|
-
"version": "26.4.
|
|
3
|
+
"version": "26.4.10",
|
|
4
4
|
"description": "A component to select, drag and resize image avatars. It also provides a default list of predefined avatars.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,17 +33,16 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/button": "^23.10.0",
|
|
35
35
|
"@atlaskit/css": "^0.19.0",
|
|
36
|
-
"@atlaskit/flag": "^17.
|
|
37
|
-
"@atlaskit/form": "^15.
|
|
38
|
-
"@atlaskit/icon": "^33.
|
|
36
|
+
"@atlaskit/flag": "^17.9.0",
|
|
37
|
+
"@atlaskit/form": "^15.5.0",
|
|
38
|
+
"@atlaskit/icon": "^33.1.0",
|
|
39
39
|
"@atlaskit/media-ui": "^28.7.0",
|
|
40
|
-
"@atlaskit/modal-dialog": "^14.
|
|
41
|
-
"@atlaskit/primitives": "^18.
|
|
40
|
+
"@atlaskit/modal-dialog": "^14.13.0",
|
|
41
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
42
42
|
"@atlaskit/range": "^10.0.0",
|
|
43
43
|
"@atlaskit/spinner": "^19.0.0",
|
|
44
44
|
"@atlaskit/textfield": "^8.2.0",
|
|
45
|
-
"@atlaskit/
|
|
46
|
-
"@atlaskit/tokens": "^11.1.0",
|
|
45
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
47
46
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
48
47
|
"@babel/runtime": "^7.0.0",
|
|
49
48
|
"@compiled/react": "^0.20.0",
|