@atlaskit/emoji 69.9.6 → 69.10.1
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 +15 -0
- package/dist/cjs/components/common/DeleteButton.js +0 -1
- package/dist/cjs/components/common/EmojiActions.js +1 -3
- package/dist/cjs/components/common/EmojiDeletePreview.compiled.css +4 -7
- package/dist/cjs/components/common/EmojiDeletePreview.js +8 -8
- package/dist/cjs/components/common/EmojiErrorMessage.js +1 -3
- package/dist/cjs/components/common/EmojiUploadPicker.compiled.css +7 -9
- package/dist/cjs/components/common/EmojiUploadPicker.js +6 -7
- package/dist/cjs/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/cjs/components/common/EmojiUploadPreview.js +8 -13
- package/dist/cjs/components/picker/EmojiPickerListSearch.js +0 -1
- package/dist/cjs/util/analytics/analytics.js +1 -1
- package/dist/es2019/components/common/DeleteButton.js +0 -1
- package/dist/es2019/components/common/EmojiActions.js +1 -3
- package/dist/es2019/components/common/EmojiDeletePreview.compiled.css +4 -7
- package/dist/es2019/components/common/EmojiDeletePreview.js +8 -5
- package/dist/es2019/components/common/EmojiErrorMessage.js +1 -3
- package/dist/es2019/components/common/EmojiUploadPicker.compiled.css +7 -9
- package/dist/es2019/components/common/EmojiUploadPicker.js +6 -7
- package/dist/es2019/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/es2019/components/common/EmojiUploadPreview.js +8 -7
- package/dist/es2019/components/picker/EmojiPickerListSearch.js +0 -1
- package/dist/es2019/util/analytics/analytics.js +1 -1
- package/dist/esm/components/common/DeleteButton.js +0 -1
- package/dist/esm/components/common/EmojiActions.js +1 -3
- package/dist/esm/components/common/EmojiDeletePreview.compiled.css +4 -7
- package/dist/esm/components/common/EmojiDeletePreview.js +8 -8
- package/dist/esm/components/common/EmojiErrorMessage.js +1 -3
- package/dist/esm/components/common/EmojiUploadPicker.compiled.css +7 -9
- package/dist/esm/components/common/EmojiUploadPicker.js +6 -7
- package/dist/esm/components/common/EmojiUploadPreview.compiled.css +10 -10
- package/dist/esm/components/common/EmojiUploadPreview.js +8 -13
- package/dist/esm/components/picker/EmojiPickerListSearch.js +0 -1
- package/dist/esm/util/analytics/analytics.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/emoji
|
|
2
2
|
|
|
3
|
+
## 69.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`bdcd4b4374105`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bdcd4b4374105) -
|
|
8
|
+
Minor improvements to how styles are applied.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 69.10.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
16
|
+
Removed usages of LEGACY icon props
|
|
17
|
+
|
|
3
18
|
## 69.9.6
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -37,7 +37,6 @@ var DeleteButton = function DeleteButton(props) {
|
|
|
37
37
|
}, /*#__PURE__*/React.createElement(_crossCircle.default, {
|
|
38
38
|
label: _constants.deleteEmojiLabel,
|
|
39
39
|
color: "var(--ds-text-subtle, ".concat(_colors.N500, ")"),
|
|
40
|
-
LEGACY_size: "small",
|
|
41
40
|
size: "small"
|
|
42
41
|
})),
|
|
43
42
|
onClick: props.onClick
|
|
@@ -53,10 +53,8 @@ var AddOwnEmoji = function AddOwnEmoji(props) {
|
|
|
53
53
|
iconBefore: /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
54
54
|
xcss: styles.icon
|
|
55
55
|
}, /*#__PURE__*/React.createElement(_add.default, {
|
|
56
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-025, 2px)", " 0 ", "var(--ds-space-050, 4px)"),
|
|
57
56
|
color: "currentColor",
|
|
58
|
-
label: ""
|
|
59
|
-
LEGACY_size: "small"
|
|
57
|
+
label: ""
|
|
60
58
|
})),
|
|
61
59
|
appearance: "subtle"
|
|
62
60
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
3
|
-
._19bv19bv{padding-left:10px}
|
|
2
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
3
|
._19l3zwfg img{max-height:2pc}
|
|
5
4
|
._1bah1yb4{justify-content:space-between}
|
|
6
5
|
._1bahesu3{justify-content:flex-end}
|
|
@@ -12,10 +11,8 @@
|
|
|
12
11
|
._4t3i1ylp{height:40px}
|
|
13
12
|
._4t3i53f4{height:75pt}
|
|
14
13
|
._4t3ivbgk{height:4pc}
|
|
15
|
-
.
|
|
16
|
-
._jwwg7vkz:first-of-type{line-height:1pc}
|
|
14
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
17
15
|
._m73io7ol .emoji-submit-delete{width:84px}
|
|
18
|
-
.
|
|
19
|
-
._pnmb1vvm:first-of-type{color:var(--_bbz764)}
|
|
16
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
20
17
|
._rtyst9kd img{max-width:72px}
|
|
21
|
-
.
|
|
18
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -18,10 +18,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
21
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
22
21
|
var _reactIntlNext = require("react-intl-next");
|
|
23
22
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
24
23
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
24
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
25
25
|
var _reactFocusLock = _interopRequireDefault(require("react-focus-lock"));
|
|
26
26
|
var _i18n = require("../i18n");
|
|
27
27
|
var _CachingEmoji = _interopRequireDefault(require("./CachingEmoji"));
|
|
@@ -96,19 +96,19 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
noFocusGuards: true
|
|
97
97
|
}, /*#__PURE__*/React.createElement("div", {
|
|
98
98
|
"data-testid": emojiDeletePreviewTestId,
|
|
99
|
-
className: (0, _runtime.ax)(["
|
|
99
|
+
className: (0, _runtime.ax)(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
100
100
|
}, /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
className: (0, _runtime.ax)(["
|
|
102
|
-
style: {
|
|
103
|
-
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
104
|
-
}
|
|
101
|
+
className: (0, _runtime.ax)(["_4t3ivbgk"])
|
|
105
102
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
106
103
|
size: "xxsmall"
|
|
107
|
-
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
104
|
+
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(_compiled.Text, {
|
|
105
|
+
color: "color.text.subtle",
|
|
106
|
+
size: "small"
|
|
107
|
+
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.deleteEmojiDescription, {
|
|
108
108
|
values: {
|
|
109
109
|
emojiShortName: emoji.shortName
|
|
110
110
|
}
|
|
111
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
111
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
112
112
|
className: (0, _runtime.ax)(["_11c82smr _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
113
113
|
}, /*#__PURE__*/React.createElement(_CachingEmoji.default, {
|
|
114
114
|
emoji: emoji
|
|
@@ -41,7 +41,6 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
41
41
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
42
42
|
color: "currentColor",
|
|
43
43
|
label: formatMessage(_i18n.messages.error),
|
|
44
|
-
LEGACY_size: "medium",
|
|
45
44
|
spacing: "spacious",
|
|
46
45
|
testId: emojiErrorIconTestId
|
|
47
46
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -49,8 +48,7 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
49
48
|
className: (0, _runtime.ax)([errorMessageStyles[errorStyle]])
|
|
50
49
|
}, /*#__PURE__*/React.createElement(_statusError.default, {
|
|
51
50
|
color: "currentColor",
|
|
52
|
-
label: formatMessage(_i18n.messages.error)
|
|
53
|
-
LEGACY_size: "small"
|
|
51
|
+
label: formatMessage(_i18n.messages.error)
|
|
54
52
|
}), message);
|
|
55
53
|
return visualContent;
|
|
56
54
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._fqoxdcr7._fqoxdcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._scffidpf input{border:0}
|
|
4
|
-
._12r21pd9._12r21pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
4
|
._16jlkb7n{flex-grow:1}
|
|
6
|
-
.
|
|
5
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
7
6
|
._1bah1b1v{justify-content:space-around}
|
|
8
7
|
._1bah1yb4{justify-content:space-between}
|
|
9
8
|
._1e0c1txw{display:flex}
|
|
10
9
|
._1o9zkb7n{flex-shrink:1}
|
|
11
10
|
._1rwq1j28 input{background-color:transparent}
|
|
12
11
|
._1w901vvm._1w901vvm{color:var(--_bbz764)}
|
|
13
|
-
._2hwx14y2{margin-right:5px}
|
|
14
12
|
._2lx21bp4{flex-direction:column}
|
|
15
13
|
._34ir1o36 input{outline-width:medium}
|
|
16
14
|
._4cvresu3{align-items:flex-end}
|
|
17
|
-
._4t3icae7{height:78px}
|
|
18
15
|
._9bj2glyw input::-ms-clear{display:none}
|
|
19
|
-
.
|
|
16
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
20
17
|
._coc6glyw input:invalid{box-shadow:none}
|
|
21
18
|
._gxxuglyw input{outline-style:none}
|
|
19
|
+
._gy1p12x7{column-gap:var(--ds-space-075,6px)}
|
|
22
20
|
._i0dl1wug{flex-basis:auto}
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
21
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
22
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
23
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
26
24
|
._xmji1r31 input{outline-color:currentColor}
|
|
@@ -32,7 +32,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
32
32
|
var closeEmojiUploadButton = null;
|
|
33
33
|
var emojiUpload = null;
|
|
34
34
|
var emojiUploadTop = null;
|
|
35
|
-
var
|
|
35
|
+
var labelStyles = null;
|
|
36
36
|
var uploadChooseFileEmojiName = null;
|
|
37
37
|
var uploadChooseFileMessage = null;
|
|
38
38
|
var uploadChooseFileRow = null;
|
|
@@ -82,12 +82,12 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
82
82
|
var emojiChooseFileTitle = formatMessage(_i18n.messages.emojiChooseFileTitle);
|
|
83
83
|
return /*#__PURE__*/React.createElement("div", {
|
|
84
84
|
"data-testid": uploadEmojiComponentTestId,
|
|
85
|
-
className: (0, _runtime.ax)(["
|
|
85
|
+
className: (0, _runtime.ax)(["_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bah1b1v"])
|
|
86
86
|
}, /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: (0, _runtime.ax)(["_11c8dcr7
|
|
87
|
+
className: (0, _runtime.ax)(["_11c8dcr7 _n3tdu2gc _1e0c1txw _1bah1yb4 _4cvresu3"])
|
|
88
88
|
}, /*#__PURE__*/React.createElement("label", {
|
|
89
89
|
htmlFor: "new-emoji-name-input",
|
|
90
|
-
className: (0, _runtime.ax)(["_1w901vvm", "
|
|
90
|
+
className: (0, _runtime.ax)(["_1w901vvm", "_11c81o8v _k48p1pd9"]),
|
|
91
91
|
style: {
|
|
92
92
|
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
93
93
|
}
|
|
@@ -102,12 +102,11 @@ var ChooseEmojiFile = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
|
102
102
|
testId: cancelEmojiUploadPickerTestId
|
|
103
103
|
}, /*#__PURE__*/React.createElement(_cross.default, {
|
|
104
104
|
color: "currentColor",
|
|
105
|
-
LEGACY_size: "small",
|
|
106
105
|
label: cancelLabel
|
|
107
106
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
108
|
-
className: (0, _runtime.ax)(["_1e0c1txw _1bah1yb4
|
|
107
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
109
108
|
}, /*#__PURE__*/React.createElement("span", {
|
|
110
|
-
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
109
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
111
110
|
}, /*#__PURE__*/React.createElement(_textfield.default, {
|
|
112
111
|
placeholder: emojiPlaceholder,
|
|
113
112
|
"aria-label": emojiNameAriaLabel,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
5
5
|
._19l31ylp img{max-height:40px}
|
|
6
6
|
._19l3gktf img{max-height:20px}
|
|
7
7
|
._1bah1yb4{justify-content:space-between}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
._1e0c1txw{display:flex}
|
|
10
10
|
._2lx21bp4{flex-direction:column}
|
|
11
11
|
._4cvr1h6o{align-items:center}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
._n3td19bv{padding-bottom:10px}
|
|
12
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
13
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
14
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
15
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
16
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
18
17
|
._rtys12am img{max-width:50px}
|
|
19
18
|
._rtys53f4 img{max-width:75pt}
|
|
20
|
-
.
|
|
19
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
20
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
@@ -17,9 +17,9 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
17
17
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
18
18
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
19
19
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
20
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
21
20
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
22
21
|
var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
22
|
+
var _compiled = require("@atlaskit/primitives/compiled");
|
|
23
23
|
var _reactIntlNext = require("react-intl-next");
|
|
24
24
|
var _constants = require("../../util/constants");
|
|
25
25
|
var _i18n = require("../i18n");
|
|
@@ -76,22 +76,17 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
76
76
|
var uploading = uploadStatus === _internalTypes.UploadStatus.Uploading;
|
|
77
77
|
var retryableButtonLabel = errorMessage ? formatMessage(_i18n.messages.retryLabel) : formatMessage(_i18n.messages.addEmojiLabel);
|
|
78
78
|
return /*#__PURE__*/React.createElement("div", {
|
|
79
|
-
className: (0, _runtime.ax)(["
|
|
79
|
+
className: (0, _runtime.ax)(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
80
80
|
}, /*#__PURE__*/React.createElement("div", {
|
|
81
81
|
"data-testid": uploadPreviewTestId,
|
|
82
|
-
className: (0, _runtime.ax)(["_2rkofajl
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: (0, _runtime.ax)(["_1fztdcr7 _jl6w1vvm _avw21b66 _19l3gktf _rtys12am"]),
|
|
88
|
-
style: {
|
|
89
|
-
"--_bbz764": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N300, ")"))
|
|
90
|
-
}
|
|
82
|
+
className: (0, _runtime.ax)(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
83
|
+
}, /*#__PURE__*/React.createElement(_compiled.Stack, {
|
|
84
|
+
space: "space.050"
|
|
91
85
|
}, /*#__PURE__*/React.createElement(_heading.default, {
|
|
92
86
|
size: "xsmall"
|
|
93
87
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
94
|
-
id: addEmojiPreviewDescriptionId
|
|
88
|
+
id: addEmojiPreviewDescriptionId,
|
|
89
|
+
className: (0, _runtime.ax)(["_19l3gktf _rtys12am"])
|
|
95
90
|
}, /*#__PURE__*/React.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.emojiPreview, {
|
|
96
91
|
values: {
|
|
97
92
|
emoji: emojiComponent
|
|
@@ -99,7 +94,7 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
99
94
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
100
95
|
className: (0, _runtime.ax)(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
101
96
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
97
|
+
className: (0, _runtime.ax)(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
103
98
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(_EmojiErrorMessage.default, {
|
|
104
99
|
errorStyle: "preview",
|
|
105
100
|
message: errorMessage,
|
|
@@ -78,7 +78,6 @@ var EmojiPickerListSearch = exports.EmojiPickerListSearch = function EmojiPicker
|
|
|
78
78
|
elemBeforeInput: /*#__PURE__*/_react.default.createElement("span", {
|
|
79
79
|
className: (0, _runtime.ax)(["_tzy4105o _18u01i6y"])
|
|
80
80
|
}, /*#__PURE__*/_react.default.createElement(_search.default, {
|
|
81
|
-
LEGACY_margin: "0 0 0 2px",
|
|
82
81
|
color: "currentColor",
|
|
83
82
|
spacing: "spacious",
|
|
84
83
|
label: ""
|
|
@@ -20,7 +20,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
20
20
|
actionSubjectId: actionSubjectId,
|
|
21
21
|
attributes: _objectSpread({
|
|
22
22
|
packageName: "@atlaskit/emoji",
|
|
23
|
-
packageVersion: "
|
|
23
|
+
packageVersion: "69.10.0"
|
|
24
24
|
}, attributes)
|
|
25
25
|
};
|
|
26
26
|
};
|
|
@@ -27,7 +27,6 @@ const DeleteButton = props => /*#__PURE__*/React.createElement("span", {
|
|
|
27
27
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
28
28
|
label: deleteEmojiLabel,
|
|
29
29
|
color: `var(--ds-text-subtle, ${N500})`,
|
|
30
|
-
LEGACY_size: "small",
|
|
31
30
|
size: "small"
|
|
32
31
|
})),
|
|
33
32
|
onClick: props.onClick
|
|
@@ -44,10 +44,8 @@ const AddOwnEmoji = props => {
|
|
|
44
44
|
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
45
45
|
xcss: styles.icon
|
|
46
46
|
}, /*#__PURE__*/React.createElement(AddIcon, {
|
|
47
|
-
LEGACY_margin: `0 ${"var(--ds-space-025, 2px)"} 0 ${"var(--ds-space-050, 4px)"}`,
|
|
48
47
|
color: "currentColor",
|
|
49
|
-
label: ""
|
|
50
|
-
LEGACY_size: "small"
|
|
48
|
+
label: ""
|
|
51
49
|
})),
|
|
52
50
|
appearance: "subtle"
|
|
53
51
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
3
|
-
._19bv19bv{padding-left:10px}
|
|
2
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
3
|
._19l3zwfg img{max-height:2pc}
|
|
5
4
|
._1bah1yb4{justify-content:space-between}
|
|
6
5
|
._1bahesu3{justify-content:flex-end}
|
|
@@ -12,10 +11,8 @@
|
|
|
12
11
|
._4t3i1ylp{height:40px}
|
|
13
12
|
._4t3i53f4{height:75pt}
|
|
14
13
|
._4t3ivbgk{height:4pc}
|
|
15
|
-
.
|
|
16
|
-
._jwwg7vkz:first-of-type{line-height:1pc}
|
|
14
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
17
15
|
._m73io7ol .emoji-submit-delete{width:84px}
|
|
18
|
-
.
|
|
19
|
-
._pnmb1n3s:first-of-type{color:var(--ds-text-subtle,#5e6c84)}
|
|
16
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
20
17
|
._rtyst9kd img{max-width:72px}
|
|
21
|
-
.
|
|
18
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -5,10 +5,10 @@ import "./EmojiDeletePreview.compiled.css";
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ax, ix } from "@compiled/react/runtime";
|
|
7
7
|
import { Component } from 'react';
|
|
8
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
10
9
|
import AkButton from '@atlaskit/button/new';
|
|
11
10
|
import Heading from '@atlaskit/heading';
|
|
11
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
12
12
|
import FocusLock from 'react-focus-lock';
|
|
13
13
|
import { messages } from '../i18n';
|
|
14
14
|
import CachingEmoji from './CachingEmoji';
|
|
@@ -77,16 +77,19 @@ class EmojiDeletePreview extends Component {
|
|
|
77
77
|
noFocusGuards: true
|
|
78
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
79
79
|
"data-testid": emojiDeletePreviewTestId,
|
|
80
|
-
className: ax(["
|
|
80
|
+
className: ax(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
81
81
|
}, /*#__PURE__*/React.createElement("div", {
|
|
82
|
-
className: ax(["
|
|
82
|
+
className: ax(["_4t3ivbgk"])
|
|
83
83
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
84
84
|
size: "xxsmall"
|
|
85
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
85
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(Text, {
|
|
86
|
+
color: "color.text.subtle",
|
|
87
|
+
size: "small"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
86
89
|
values: {
|
|
87
90
|
emojiShortName: emoji.shortName
|
|
88
91
|
}
|
|
89
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
90
93
|
className: ax(["_11c82smr _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
91
94
|
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
92
95
|
emoji: emoji
|
|
@@ -35,7 +35,6 @@ const EmojiErrorMessage = props => {
|
|
|
35
35
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
36
36
|
color: "currentColor",
|
|
37
37
|
label: formatMessage(messages.error),
|
|
38
|
-
LEGACY_size: "medium",
|
|
39
38
|
spacing: "spacious",
|
|
40
39
|
testId: emojiErrorIconTestId
|
|
41
40
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -43,8 +42,7 @@ const EmojiErrorMessage = props => {
|
|
|
43
42
|
className: ax([errorMessageStyles[errorStyle]])
|
|
44
43
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
45
44
|
color: "currentColor",
|
|
46
|
-
label: formatMessage(messages.error)
|
|
47
|
-
LEGACY_size: "small"
|
|
45
|
+
label: formatMessage(messages.error)
|
|
48
46
|
}), message);
|
|
49
47
|
return visualContent;
|
|
50
48
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._fqoxdcr7._fqoxdcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._scffidpf input{border:0}
|
|
4
|
-
._12r21pd9._12r21pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
4
|
._16jlkb7n{flex-grow:1}
|
|
6
|
-
.
|
|
5
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
7
6
|
._1bah1b1v{justify-content:space-around}
|
|
8
7
|
._1bah1yb4{justify-content:space-between}
|
|
9
8
|
._1e0c1txw{display:flex}
|
|
10
9
|
._1o9zkb7n{flex-shrink:1}
|
|
11
10
|
._1rwq1j28 input{background-color:transparent}
|
|
12
11
|
._1w901n3s._1w901n3s{color:var(--ds-text-subtle,#5e6c84)}
|
|
13
|
-
._2hwx14y2{margin-right:5px}
|
|
14
12
|
._2lx21bp4{flex-direction:column}
|
|
15
13
|
._34ir1o36 input{outline-width:medium}
|
|
16
14
|
._4cvresu3{align-items:flex-end}
|
|
17
|
-
._4t3icae7{height:78px}
|
|
18
15
|
._9bj2glyw input::-ms-clear{display:none}
|
|
19
|
-
.
|
|
16
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
20
17
|
._coc6glyw input:invalid{box-shadow:none}
|
|
21
18
|
._gxxuglyw input{outline-style:none}
|
|
19
|
+
._gy1p12x7{column-gap:var(--ds-space-075,6px)}
|
|
22
20
|
._i0dl1wug{flex-basis:auto}
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
21
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
22
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
23
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
26
24
|
._xmji1r31 input{outline-color:currentColor}
|
|
@@ -20,7 +20,7 @@ import { UploadStatus } from './internal-types';
|
|
|
20
20
|
const closeEmojiUploadButton = null;
|
|
21
21
|
const emojiUpload = null;
|
|
22
22
|
const emojiUploadTop = null;
|
|
23
|
-
const
|
|
23
|
+
const labelStyles = null;
|
|
24
24
|
const uploadChooseFileEmojiName = null;
|
|
25
25
|
const uploadChooseFileMessage = null;
|
|
26
26
|
const uploadChooseFileRow = null;
|
|
@@ -73,12 +73,12 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
73
73
|
const emojiChooseFileTitle = formatMessage(messages.emojiChooseFileTitle);
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
75
75
|
"data-testid": uploadEmojiComponentTestId,
|
|
76
|
-
className: ax(["
|
|
76
|
+
className: ax(["_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bah1b1v"])
|
|
77
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax(["_11c8dcr7
|
|
78
|
+
className: ax(["_11c8dcr7 _n3tdu2gc _1e0c1txw _1bah1yb4 _4cvresu3"])
|
|
79
79
|
}, /*#__PURE__*/React.createElement("label", {
|
|
80
80
|
htmlFor: "new-emoji-name-input",
|
|
81
|
-
className: ax(["_1w901n3s", "
|
|
81
|
+
className: ax(["_1w901n3s", "_11c81o8v _k48p1pd9"])
|
|
82
82
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.addCustomEmojiLabel)), /*#__PURE__*/React.createElement("div", {
|
|
83
83
|
className: ax(["_1e0c1txw"])
|
|
84
84
|
}, /*#__PURE__*/React.createElement(AkButton, {
|
|
@@ -90,12 +90,11 @@ const ChooseEmojiFile = /*#__PURE__*/memo(props => {
|
|
|
90
90
|
testId: cancelEmojiUploadPickerTestId
|
|
91
91
|
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
92
92
|
color: "currentColor",
|
|
93
|
-
LEGACY_size: "small",
|
|
94
93
|
label: cancelLabel
|
|
95
94
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
96
|
-
className: ax(["_1e0c1txw _1bah1yb4
|
|
95
|
+
className: ax(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
97
96
|
}, /*#__PURE__*/React.createElement("span", {
|
|
98
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
97
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
99
98
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
100
99
|
placeholder: emojiPlaceholder,
|
|
101
100
|
"aria-label": emojiNameAriaLabel,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
5
5
|
._19l31ylp img{max-height:40px}
|
|
6
6
|
._19l3gktf img{max-height:20px}
|
|
7
7
|
._1bah1yb4{justify-content:space-between}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
._1e0c1txw{display:flex}
|
|
10
10
|
._2lx21bp4{flex-direction:column}
|
|
11
11
|
._4cvr1h6o{align-items:center}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
._n3td19bv{padding-bottom:10px}
|
|
12
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
13
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
14
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
15
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
16
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
18
17
|
._rtys12am img{max-width:50px}
|
|
19
18
|
._rtys53f4 img{max-width:75pt}
|
|
20
|
-
.
|
|
19
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
20
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
@@ -4,9 +4,9 @@ import "./EmojiUploadPreview.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { PureComponent } from 'react';
|
|
7
|
-
import { N20, N300 } from '@atlaskit/theme/colors';
|
|
8
7
|
import AkButton from '@atlaskit/button/standard-button';
|
|
9
8
|
import Heading from '@atlaskit/heading';
|
|
9
|
+
import { Stack } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
11
11
|
import { customCategory } from '../../util/constants';
|
|
12
12
|
import { messages } from '../i18n';
|
|
@@ -56,16 +56,17 @@ class EmojiUploadPreview extends PureComponent {
|
|
|
56
56
|
const uploading = uploadStatus === UploadStatus.Uploading;
|
|
57
57
|
const retryableButtonLabel = errorMessage ? formatMessage(messages.retryLabel) : formatMessage(messages.addEmojiLabel);
|
|
58
58
|
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: ax(["
|
|
59
|
+
className: ax(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
60
60
|
}, /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
"data-testid": uploadPreviewTestId,
|
|
62
|
-
className: ax(["_2rkofajl
|
|
63
|
-
}, /*#__PURE__*/React.createElement(
|
|
64
|
-
|
|
62
|
+
className: ax(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
64
|
+
space: "space.050"
|
|
65
65
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
66
66
|
size: "xsmall"
|
|
67
67
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
68
|
-
id: addEmojiPreviewDescriptionId
|
|
68
|
+
id: addEmojiPreviewDescriptionId,
|
|
69
|
+
className: ax(["_19l3gktf _rtys12am"])
|
|
69
70
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.emojiPreview, {
|
|
70
71
|
values: {
|
|
71
72
|
emoji: emojiComponent
|
|
@@ -73,7 +74,7 @@ class EmojiUploadPreview extends PureComponent {
|
|
|
73
74
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
74
75
|
className: ax(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
75
76
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
77
|
+
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
77
78
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
78
79
|
errorStyle: "preview",
|
|
79
80
|
message: errorMessage,
|
|
@@ -65,7 +65,6 @@ export const EmojiPickerListSearch = props => {
|
|
|
65
65
|
elemBeforeInput: /*#__PURE__*/React.createElement("span", {
|
|
66
66
|
className: ax(["_tzy4105o _18u01i6y"])
|
|
67
67
|
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
68
|
-
LEGACY_margin: "0 0 0 2px",
|
|
69
68
|
color: "currentColor",
|
|
70
69
|
spacing: "spacious",
|
|
71
70
|
label: ""
|
|
@@ -28,7 +28,6 @@ var DeleteButton = function DeleteButton(props) {
|
|
|
28
28
|
}, /*#__PURE__*/React.createElement(CrossCircleIcon, {
|
|
29
29
|
label: deleteEmojiLabel,
|
|
30
30
|
color: "var(--ds-text-subtle, ".concat(N500, ")"),
|
|
31
|
-
LEGACY_size: "small",
|
|
32
31
|
size: "small"
|
|
33
32
|
})),
|
|
34
33
|
onClick: props.onClick
|
|
@@ -44,10 +44,8 @@ var AddOwnEmoji = function AddOwnEmoji(props) {
|
|
|
44
44
|
iconBefore: /*#__PURE__*/React.createElement(Box, {
|
|
45
45
|
xcss: styles.icon
|
|
46
46
|
}, /*#__PURE__*/React.createElement(AddIcon, {
|
|
47
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-025, 2px)", " 0 ", "var(--ds-space-050, 4px)"),
|
|
48
47
|
color: "currentColor",
|
|
49
|
-
label: ""
|
|
50
|
-
LEGACY_size: "small"
|
|
48
|
+
label: ""
|
|
51
49
|
})),
|
|
52
50
|
appearance: "subtle"
|
|
53
51
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
.
|
|
3
|
-
._19bv19bv{padding-left:10px}
|
|
2
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
3
|
._19l3zwfg img{max-height:2pc}
|
|
5
4
|
._1bah1yb4{justify-content:space-between}
|
|
6
5
|
._1bahesu3{justify-content:flex-end}
|
|
@@ -12,10 +11,8 @@
|
|
|
12
11
|
._4t3i1ylp{height:40px}
|
|
13
12
|
._4t3i53f4{height:75pt}
|
|
14
13
|
._4t3ivbgk{height:4pc}
|
|
15
|
-
.
|
|
16
|
-
._jwwg7vkz:first-of-type{line-height:1pc}
|
|
14
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
17
15
|
._m73io7ol .emoji-submit-delete{width:84px}
|
|
18
|
-
.
|
|
19
|
-
._pnmb1vvm:first-of-type{color:var(--_bbz764)}
|
|
16
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
20
17
|
._rtyst9kd img{max-width:72px}
|
|
21
|
-
.
|
|
18
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
@@ -12,10 +12,10 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
12
12
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
14
|
import { Component } from 'react';
|
|
15
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
17
16
|
import AkButton from '@atlaskit/button/new';
|
|
18
17
|
import Heading from '@atlaskit/heading';
|
|
18
|
+
import { Text } from '@atlaskit/primitives/compiled';
|
|
19
19
|
import FocusLock from 'react-focus-lock';
|
|
20
20
|
import { messages } from '../i18n';
|
|
21
21
|
import CachingEmoji from './CachingEmoji';
|
|
@@ -87,19 +87,19 @@ var EmojiDeletePreview = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
noFocusGuards: true
|
|
88
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
"data-testid": emojiDeletePreviewTestId,
|
|
90
|
-
className: ax(["
|
|
90
|
+
className: ax(["_4t3i53f4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bahesu3"])
|
|
91
91
|
}, /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
className: ax(["
|
|
93
|
-
style: {
|
|
94
|
-
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
95
|
-
}
|
|
92
|
+
className: ax(["_4t3ivbgk"])
|
|
96
93
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
97
94
|
size: "xxsmall"
|
|
98
|
-
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(
|
|
95
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.deleteEmojiTitle)), /*#__PURE__*/React.createElement(Text, {
|
|
96
|
+
color: "color.text.subtle",
|
|
97
|
+
size: "small"
|
|
98
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.deleteEmojiDescription, {
|
|
99
99
|
values: {
|
|
100
100
|
emojiShortName: emoji.shortName
|
|
101
101
|
}
|
|
102
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
103
103
|
className: ax(["_11c82smr _1e0c1txw _4t3i1ylp _4cvr1h6o _1bah1yb4 _19l3zwfg _rtyst9kd _m73io7ol _1txf1igg _1qz31b66"])
|
|
104
104
|
}, /*#__PURE__*/React.createElement(CachingEmoji, {
|
|
105
105
|
emoji: emoji
|
|
@@ -32,7 +32,6 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
32
32
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
33
33
|
color: "currentColor",
|
|
34
34
|
label: formatMessage(messages.error),
|
|
35
|
-
LEGACY_size: "medium",
|
|
36
35
|
spacing: "spacious",
|
|
37
36
|
testId: emojiErrorIconTestId
|
|
38
37
|
}))) : /*#__PURE__*/React.createElement("div", {
|
|
@@ -40,8 +39,7 @@ var EmojiErrorMessage = function EmojiErrorMessage(props) {
|
|
|
40
39
|
className: ax([errorMessageStyles[errorStyle]])
|
|
41
40
|
}, /*#__PURE__*/React.createElement(ErrorIcon, {
|
|
42
41
|
color: "currentColor",
|
|
43
|
-
label: formatMessage(messages.error)
|
|
44
|
-
LEGACY_size: "small"
|
|
42
|
+
label: formatMessage(messages.error)
|
|
45
43
|
}), message);
|
|
46
44
|
return visualContent;
|
|
47
45
|
};
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
+
._11c81o8v{font:var(--ds-font-body-small,normal 400 11px/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
1
2
|
._11c8dcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
-
._fqoxdcr7._fqoxdcr7{font:var(--ds-font-body-UNSAFE_small,normal 400 9pt/1pc ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._scffidpf input{border:0}
|
|
4
|
-
._12r21pd9._12r21pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
5
4
|
._16jlkb7n{flex-grow:1}
|
|
6
|
-
.
|
|
5
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
7
6
|
._1bah1b1v{justify-content:space-around}
|
|
8
7
|
._1bah1yb4{justify-content:space-between}
|
|
9
8
|
._1e0c1txw{display:flex}
|
|
10
9
|
._1o9zkb7n{flex-shrink:1}
|
|
11
10
|
._1rwq1j28 input{background-color:transparent}
|
|
12
11
|
._1w901vvm._1w901vvm{color:var(--_bbz764)}
|
|
13
|
-
._2hwx14y2{margin-right:5px}
|
|
14
12
|
._2lx21bp4{flex-direction:column}
|
|
15
13
|
._34ir1o36 input{outline-width:medium}
|
|
16
14
|
._4cvresu3{align-items:flex-end}
|
|
17
|
-
._4t3icae7{height:78px}
|
|
18
15
|
._9bj2glyw input::-ms-clear{display:none}
|
|
19
|
-
.
|
|
16
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
20
17
|
._coc6glyw input:invalid{box-shadow:none}
|
|
21
18
|
._gxxuglyw input{outline-style:none}
|
|
19
|
+
._gy1p12x7{column-gap:var(--ds-space-075,6px)}
|
|
22
20
|
._i0dl1wug{flex-basis:auto}
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
21
|
+
._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
|
|
22
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
23
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
26
24
|
._xmji1r31 input{outline-color:currentColor}
|
|
@@ -23,7 +23,7 @@ import { UploadStatus } from './internal-types';
|
|
|
23
23
|
var closeEmojiUploadButton = null;
|
|
24
24
|
var emojiUpload = null;
|
|
25
25
|
var emojiUploadTop = null;
|
|
26
|
-
var
|
|
26
|
+
var labelStyles = null;
|
|
27
27
|
var uploadChooseFileEmojiName = null;
|
|
28
28
|
var uploadChooseFileMessage = null;
|
|
29
29
|
var uploadChooseFileRow = null;
|
|
@@ -73,12 +73,12 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
73
73
|
var emojiChooseFileTitle = formatMessage(messages.emojiChooseFileTitle);
|
|
74
74
|
return /*#__PURE__*/React.createElement("div", {
|
|
75
75
|
"data-testid": uploadEmojiComponentTestId,
|
|
76
|
-
className: ax(["
|
|
76
|
+
className: ax(["_ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc _1e0c1txw _2lx21bp4 _1bah1b1v"])
|
|
77
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax(["_11c8dcr7
|
|
78
|
+
className: ax(["_11c8dcr7 _n3tdu2gc _1e0c1txw _1bah1yb4 _4cvresu3"])
|
|
79
79
|
}, /*#__PURE__*/React.createElement("label", {
|
|
80
80
|
htmlFor: "new-emoji-name-input",
|
|
81
|
-
className: ax(["_1w901vvm", "
|
|
81
|
+
className: ax(["_1w901vvm", "_11c81o8v _k48p1pd9"]),
|
|
82
82
|
style: {
|
|
83
83
|
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
84
84
|
}
|
|
@@ -93,12 +93,11 @@ var ChooseEmojiFile = /*#__PURE__*/memo(function (props) {
|
|
|
93
93
|
testId: cancelEmojiUploadPickerTestId
|
|
94
94
|
}, /*#__PURE__*/React.createElement(CrossIcon, {
|
|
95
95
|
color: "currentColor",
|
|
96
|
-
LEGACY_size: "small",
|
|
97
96
|
label: cancelLabel
|
|
98
97
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
99
|
-
className: ax(["_1e0c1txw _1bah1yb4
|
|
98
|
+
className: ax(["_1e0c1txw _1bah1yb4 _n3tdu2gc _gy1p12x7"])
|
|
100
99
|
}, /*#__PURE__*/React.createElement("span", {
|
|
101
|
-
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug
|
|
100
|
+
className: ax(["_16jlkb7n _1o9zkb7n _i0dl1wug _1rwq1j28 _scffidpf _xmji1r31 _gxxuglyw _34ir1o36 _coc6glyw _9bj2glyw"])
|
|
102
101
|
}, /*#__PURE__*/React.createElement(TextField, {
|
|
103
102
|
placeholder: emojiPlaceholder,
|
|
104
103
|
"aria-label": emojiNameAriaLabel,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
3
|
-
.
|
|
4
|
-
.
|
|
2
|
+
._2rkofajl{border-radius:var(--ds-radius-small,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
|
|
3
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
|
+
._19bvutpp{padding-left:var(--ds-space-150,9pt)}
|
|
5
5
|
._19l31ylp img{max-height:40px}
|
|
6
6
|
._19l3gktf img{max-height:20px}
|
|
7
7
|
._1bah1yb4{justify-content:space-between}
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
._1e0c1txw{display:flex}
|
|
10
10
|
._2lx21bp4{flex-direction:column}
|
|
11
11
|
._4cvr1h6o{align-items:center}
|
|
12
|
-
.
|
|
13
|
-
.
|
|
14
|
-
.
|
|
15
|
-
.
|
|
16
|
-
.
|
|
17
|
-
._n3td19bv{padding-bottom:10px}
|
|
12
|
+
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
13
|
+
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
14
|
+
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
15
|
+
._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
|
|
16
|
+
._n3tdutpp{padding-bottom:var(--ds-space-150,9pt)}
|
|
18
17
|
._rtys12am img{max-width:50px}
|
|
19
18
|
._rtys53f4 img{max-width:75pt}
|
|
20
|
-
.
|
|
19
|
+
._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
|
|
20
|
+
._u5f3utpp{padding-right:var(--ds-space-150,9pt)}
|
|
@@ -11,9 +11,9 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { PureComponent } from 'react';
|
|
14
|
-
import { N20, N300 } from '@atlaskit/theme/colors';
|
|
15
14
|
import AkButton from '@atlaskit/button/standard-button';
|
|
16
15
|
import Heading from '@atlaskit/heading';
|
|
16
|
+
import { Stack } from '@atlaskit/primitives/compiled';
|
|
17
17
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
18
18
|
import { customCategory } from '../../util/constants';
|
|
19
19
|
import { messages } from '../i18n';
|
|
@@ -67,22 +67,17 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
67
67
|
var uploading = uploadStatus === UploadStatus.Uploading;
|
|
68
68
|
var retryableButtonLabel = errorMessage ? formatMessage(messages.retryLabel) : formatMessage(messages.addEmojiLabel);
|
|
69
69
|
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: ax(["
|
|
70
|
+
className: ax(["_1e0c1txw _2lx21bp4 _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvu2gc"])
|
|
71
71
|
}, /*#__PURE__*/React.createElement("div", {
|
|
72
72
|
"data-testid": uploadPreviewTestId,
|
|
73
|
-
className: ax(["_2rkofajl
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: ax(["_1fztdcr7 _jl6w1vvm _avw21b66 _19l3gktf _rtys12am"]),
|
|
79
|
-
style: {
|
|
80
|
-
"--_bbz764": ix("var(--ds-text-subtle, ".concat(N300, ")"))
|
|
81
|
-
}
|
|
73
|
+
className: ax(["_2rkofajl _1e0c1txw _1bah1yb4 _4cvr1h6o _bfhki8nm _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Stack, {
|
|
75
|
+
space: "space.050"
|
|
82
76
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
83
77
|
size: "xsmall"
|
|
84
78
|
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.emojiPreviewTitle)), /*#__PURE__*/React.createElement("div", {
|
|
85
|
-
id: addEmojiPreviewDescriptionId
|
|
79
|
+
id: addEmojiPreviewDescriptionId,
|
|
80
|
+
className: ax(["_19l3gktf _rtys12am"])
|
|
86
81
|
}, /*#__PURE__*/React.createElement(FormattedMessage, _extends({}, messages.emojiPreview, {
|
|
87
82
|
values: {
|
|
88
83
|
emoji: emojiComponent
|
|
@@ -90,7 +85,7 @@ var EmojiUploadPreview = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
85
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
91
86
|
className: ax(["_19bv1b66 _19l31ylp _rtys53f4"])
|
|
92
87
|
}, emojiComponent)), /*#__PURE__*/React.createElement("div", {
|
|
93
|
-
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o
|
|
88
|
+
className: ax(["_1e0c1txw _1bahesu3 _4cvr1h6o _ca0qu2gc"])
|
|
94
89
|
}, !uploading && errorMessage ? /*#__PURE__*/React.createElement(EmojiErrorMessage, {
|
|
95
90
|
errorStyle: "preview",
|
|
96
91
|
message: errorMessage,
|
|
@@ -69,7 +69,6 @@ export var EmojiPickerListSearch = function EmojiPickerListSearch(props) {
|
|
|
69
69
|
elemBeforeInput: /*#__PURE__*/React.createElement("span", {
|
|
70
70
|
className: ax(["_tzy4105o _18u01i6y"])
|
|
71
71
|
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
72
|
-
LEGACY_margin: "0 0 0 2px",
|
|
73
72
|
color: "currentColor",
|
|
74
73
|
spacing: "spacious",
|
|
75
74
|
label: ""
|
|
@@ -13,7 +13,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
13
13
|
actionSubjectId: actionSubjectId,
|
|
14
14
|
attributes: _objectSpread({
|
|
15
15
|
packageName: "@atlaskit/emoji",
|
|
16
|
-
packageVersion: "
|
|
16
|
+
packageVersion: "69.10.0"
|
|
17
17
|
}, attributes)
|
|
18
18
|
};
|
|
19
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/emoji",
|
|
3
|
-
"version": "69.
|
|
3
|
+
"version": "69.10.1",
|
|
4
4
|
"description": "Fabric emoji React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/button": "^23.9.0",
|
|
40
40
|
"@atlaskit/css": "^0.19.0",
|
|
41
41
|
"@atlaskit/heading": "^5.2.0",
|
|
42
|
-
"@atlaskit/icon": "^29.
|
|
42
|
+
"@atlaskit/icon": "^29.4.0",
|
|
43
43
|
"@atlaskit/media-client": "^35.7.0",
|
|
44
44
|
"@atlaskit/media-client-react": "^4.1.0",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
"@atlaskit/spinner": "^19.0.0",
|
|
48
48
|
"@atlaskit/textfield": "^8.2.0",
|
|
49
49
|
"@atlaskit/theme": "^21.0.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
51
|
-
"@atlaskit/tokens": "^9.
|
|
52
|
-
"@atlaskit/tooltip": "^20.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^16.12.0",
|
|
51
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.12.0",
|
|
53
53
|
"@atlaskit/ufo": "^0.4.0",
|
|
54
54
|
"@atlaskit/util-service-support": "^6.3.0",
|
|
55
55
|
"@atlaskit/visually-hidden": "^3.0.0",
|