@atlaskit/reactions 20.0.0 → 20.1.0
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 +6 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/client/MockReactionsClient.js +1 -1
- package/dist/cjs/components/Counter.js +5 -3
- package/dist/cjs/components/FlashAnimation.js +9 -7
- package/dist/cjs/components/Reaction.js +8 -6
- package/dist/cjs/components/ReactionPicker.js +5 -7
- package/dist/cjs/components/ReactionTooltip.js +4 -2
- package/dist/cjs/components/Reactions.js +1 -1
- package/dist/cjs/components/Selector.js +1 -1
- package/dist/cjs/components/ShowMore.js +4 -2
- package/dist/cjs/components/utils.js +1 -1
- package/dist/cjs/i18n/index.js +36 -36
- package/dist/cjs/index.js +16 -16
- package/dist/cjs/reaction-store/index.js +4 -4
- package/dist/cjs/reaction-store/utils.js +2 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Counter.js +3 -2
- package/dist/es2019/components/FlashAnimation.js +7 -6
- package/dist/es2019/components/Reaction.js +7 -6
- package/dist/es2019/components/ReactionPicker.js +4 -7
- package/dist/es2019/components/ReactionTooltip.js +3 -2
- package/dist/es2019/components/ShowMore.js +3 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Counter.js +3 -2
- package/dist/esm/components/FlashAnimation.js +7 -6
- package/dist/esm/components/Reaction.js +7 -6
- package/dist/esm/components/ReactionPicker.js +4 -7
- package/dist/esm/components/ReactionTooltip.js +3 -2
- package/dist/esm/components/ShowMore.js +3 -2
- package/dist/esm/version.json +1 -1
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 20.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e82f9588eff`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e82f9588eff) - Instrumented `@atlaskit/reactions` with the new theming package, `@atlaskit/tokens`. New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
8
|
+
|
|
3
9
|
## 20.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.createRestSucceededEvent = exports.createRestFailedEvent = exports.createReactionsRenderedEvent = exports.createReactionSelectionEvent = exports.createReactionHoveredEvent = exports.createReactionClickedEvent = exports.createPickerMoreClickedEvent = exports.createPickerCancelledEvent = exports.createPickerButtonClickedEvent = exports.createAndFireSafe = exports.createAndFireEventInElementsChannel = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.user = exports.reaction = exports.containerAri = exports.ari = exports.MockReactionsClient = void 0;
|
|
9
9
|
|
|
10
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.slideUpStyle = exports.slideDownStyle = exports.highlightStyle = exports.countStyle = exports.containerStyle = exports.Counter = void 0;
|
|
9
9
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
|
|
@@ -23,6 +23,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
23
23
|
|
|
24
24
|
var _colors = require("@atlaskit/theme/colors");
|
|
25
25
|
|
|
26
|
+
var _tokens = require("@atlaskit/tokens");
|
|
27
|
+
|
|
26
28
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
27
29
|
|
|
28
30
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -40,14 +42,14 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
40
42
|
var animationTime = 300;
|
|
41
43
|
var countStyle = (0, _typestyle.style)({
|
|
42
44
|
fontSize: '11px',
|
|
43
|
-
color: _colors.N90,
|
|
45
|
+
color: (0, _tokens.token)('color.text.lowEmphasis', _colors.N90),
|
|
44
46
|
overflow: 'hidden',
|
|
45
47
|
height: "".concat(_utils.akHeight, "px"),
|
|
46
48
|
transition: "width ".concat(animationTime, "ms ease-in-out")
|
|
47
49
|
});
|
|
48
50
|
exports.countStyle = countStyle;
|
|
49
51
|
var highlightStyle = (0, _typestyle.style)({
|
|
50
|
-
color: _colors.B400,
|
|
52
|
+
color: (0, _tokens.token)('color.text.selected', _colors.B400),
|
|
51
53
|
fontWeight: 600
|
|
52
54
|
});
|
|
53
55
|
exports.highlightStyle = highlightStyle;
|
|
@@ -5,12 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.flashStyle = exports.FlashAnimation = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
|
|
14
|
+
var _tokens = require("@atlaskit/tokens");
|
|
15
|
+
|
|
14
16
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
17
|
|
|
16
18
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -27,16 +29,16 @@ var flashAnimation = (0, _typestyle.keyframes)({
|
|
|
27
29
|
backgroundColor: 'transparent'
|
|
28
30
|
},
|
|
29
31
|
'20%': {
|
|
30
|
-
backgroundColor: _colors.B75,
|
|
31
|
-
borderColor: _colors.B300
|
|
32
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.pressed', _colors.B75),
|
|
33
|
+
borderColor: (0, _tokens.token)('color.iconBorder.brand', _colors.B300)
|
|
32
34
|
},
|
|
33
35
|
'75%': {
|
|
34
|
-
backgroundColor: _colors.B75,
|
|
35
|
-
borderColor: _colors.B300
|
|
36
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.pressed', _colors.B75),
|
|
37
|
+
borderColor: (0, _tokens.token)('color.iconBorder.brand', _colors.B300)
|
|
36
38
|
},
|
|
37
39
|
'100%': {
|
|
38
|
-
backgroundColor: _colors.B75,
|
|
39
|
-
borderColor: _colors.B300
|
|
40
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.pressed', _colors.B75),
|
|
41
|
+
borderColor: (0, _tokens.token)('color.iconBorder.brand', _colors.B300)
|
|
40
42
|
}
|
|
41
43
|
});
|
|
42
44
|
var flashStyle = (0, _typestyle.style)({
|
|
@@ -29,6 +29,8 @@ var _element = require("@atlaskit/emoji/element");
|
|
|
29
29
|
|
|
30
30
|
var _colors = require("@atlaskit/theme/colors");
|
|
31
31
|
|
|
32
|
+
var _tokens = require("@atlaskit/tokens");
|
|
33
|
+
|
|
32
34
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
33
35
|
|
|
34
36
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -71,26 +73,26 @@ var reactionStyle = (0, _typestyle.style)({
|
|
|
71
73
|
minWidth: '36px',
|
|
72
74
|
height: "".concat(_utils.akHeight, "px"),
|
|
73
75
|
background: 'transparent',
|
|
74
|
-
border: "1px solid ".concat(_colors.N40),
|
|
76
|
+
border: "1px solid ".concat((0, _tokens.token)('color.border.neutral', _colors.N40)),
|
|
75
77
|
boxSizing: 'border-box',
|
|
76
78
|
borderRadius: '20px',
|
|
77
|
-
color: "".concat(_colors.N400),
|
|
79
|
+
color: "".concat((0, _tokens.token)('color.text.mediumEmphasis', _colors.N400)),
|
|
78
80
|
cursor: 'pointer',
|
|
79
81
|
margin: 0,
|
|
80
82
|
padding: 0,
|
|
81
83
|
transition: '200ms ease-in-out',
|
|
82
84
|
$nest: {
|
|
83
85
|
'&:hover': {
|
|
84
|
-
background: "".concat(_colors.N20)
|
|
86
|
+
background: "".concat((0, _tokens.token)('color.background.transparentNeutral.hover', _colors.N20))
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
});
|
|
88
90
|
var reactedStyle = (0, _typestyle.style)({
|
|
89
|
-
backgroundColor: _colors.B50,
|
|
90
|
-
borderColor: _colors.B300,
|
|
91
|
+
backgroundColor: (0, _tokens.token)('color.background.selected.resting', _colors.B50),
|
|
92
|
+
borderColor: (0, _tokens.token)('color.iconBorder.brand', _colors.B300),
|
|
91
93
|
$nest: {
|
|
92
94
|
'&:hover': {
|
|
93
|
-
background: "".concat(_colors.B75)
|
|
95
|
+
background: "".concat((0, _tokens.token)('color.background.selected.hover', _colors.B75))
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
});
|
|
@@ -31,6 +31,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
31
31
|
|
|
32
32
|
var _colors = require("@atlaskit/theme/colors");
|
|
33
33
|
|
|
34
|
+
var _tokens = require("@atlaskit/tokens");
|
|
35
|
+
|
|
34
36
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
35
37
|
|
|
36
38
|
var _react = _interopRequireWildcard(require("react"));
|
|
@@ -55,10 +57,6 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
55
57
|
|
|
56
58
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
57
59
|
|
|
58
|
-
var akBorderRadius = "".concat((0, _constants.borderRadius)(), "px");
|
|
59
|
-
var akColorN0 = _colors.N0;
|
|
60
|
-
var akColorN50A = _colors.N50A;
|
|
61
|
-
var akColorN60A = _colors.N60A;
|
|
62
60
|
var pickerStyle = (0, _typestyle.style)({
|
|
63
61
|
verticalAlign: 'middle',
|
|
64
62
|
$nest: {
|
|
@@ -72,9 +70,9 @@ var contentStyle = (0, _typestyle.style)({
|
|
|
72
70
|
display: 'flex'
|
|
73
71
|
});
|
|
74
72
|
var popupStyle = (0, _typestyle.style)({
|
|
75
|
-
background:
|
|
76
|
-
borderRadius:
|
|
77
|
-
boxShadow: "0 4px 8px -2px ".concat(
|
|
73
|
+
background: (0, _tokens.token)('color.background.overlay', _colors.N0),
|
|
74
|
+
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
75
|
+
boxShadow: (0, _tokens.token)('shadow.overlay', "0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A)),
|
|
78
76
|
$nest: {
|
|
79
77
|
'&> div': {
|
|
80
78
|
boxShadow: undefined
|
|
@@ -17,6 +17,8 @@ var _reactIntl = require("react-intl");
|
|
|
17
17
|
|
|
18
18
|
var _typestyle = require("typestyle");
|
|
19
19
|
|
|
20
|
+
var _tokens = require("@atlaskit/tokens");
|
|
21
|
+
|
|
20
22
|
var _colors = require("@atlaskit/theme/colors");
|
|
21
23
|
|
|
22
24
|
var _i18n = require("./i18n");
|
|
@@ -44,11 +46,11 @@ var tooltipStyle = (0, _typestyle.style)({
|
|
|
44
46
|
});
|
|
45
47
|
var emojiNameStyle = (0, _typestyle.style)({
|
|
46
48
|
textTransform: 'capitalize',
|
|
47
|
-
color: _colors.N90,
|
|
49
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.N90),
|
|
48
50
|
fontWeight: 600
|
|
49
51
|
});
|
|
50
52
|
var footerStyle = (0, _typestyle.style)({
|
|
51
|
-
color: _colors.N90,
|
|
53
|
+
color: (0, _tokens.token)('color.text.mediumEmphasis', _colors.N90),
|
|
52
54
|
fontWeight: 300
|
|
53
55
|
});
|
|
54
56
|
var TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.ReactionsWithoutAnalytics = exports.Reactions = void 0;
|
|
9
9
|
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.revealStyle = exports.isDefaultReaction = exports.defaultReactionsByShortName = exports.defaultReactions = exports.Selector = void 0;
|
|
11
11
|
|
|
12
12
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
13
|
|
|
@@ -25,6 +25,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
25
25
|
|
|
26
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
27
27
|
|
|
28
|
+
var _tokens = require("@atlaskit/tokens");
|
|
29
|
+
|
|
28
30
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
29
31
|
|
|
30
32
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -57,12 +59,12 @@ var moreButtonStyle = (0, _typestyle.style)({
|
|
|
57
59
|
verticalAlign: 'top',
|
|
58
60
|
$nest: {
|
|
59
61
|
'&:hover': {
|
|
60
|
-
backgroundColor: _colors.N30A
|
|
62
|
+
backgroundColor: (0, _tokens.token)('color.background.transparentNeutral.hover', _colors.N30A)
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
});
|
|
64
66
|
var separatorStyle = (0, _typestyle.style)({
|
|
65
|
-
backgroundColor: _colors.N30A,
|
|
67
|
+
backgroundColor: (0, _tokens.token)('color.border.neutral', _colors.N30A),
|
|
66
68
|
margin: '8px 8px 8px 4px',
|
|
67
69
|
width: '1px',
|
|
68
70
|
height: '60%',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.isLeftClick = exports.equalEmojiId = exports.akHeight = void 0;
|
|
7
7
|
var akHeight = 24;
|
|
8
8
|
exports.akHeight = akHeight;
|
|
9
9
|
|
package/dist/cjs/i18n/index.js
CHANGED
|
@@ -5,34 +5,40 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "cs", {
|
|
9
9
|
enumerable: true,
|
|
10
10
|
get: function get() {
|
|
11
|
-
return
|
|
11
|
+
return _cs.default;
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
14
|
+
Object.defineProperty(exports, "da", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function get() {
|
|
17
|
-
return
|
|
17
|
+
return _da.default;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "de", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function get() {
|
|
23
|
-
return
|
|
23
|
+
return _de.default;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "en", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function get() {
|
|
29
|
-
return
|
|
29
|
+
return _en.default;
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "en_GB", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function get() {
|
|
35
|
-
return
|
|
35
|
+
return _en_GB.default;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "es", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function get() {
|
|
41
|
+
return _es.default;
|
|
36
42
|
}
|
|
37
43
|
});
|
|
38
44
|
Object.defineProperty(exports, "et", {
|
|
@@ -53,16 +59,16 @@ Object.defineProperty(exports, "fr", {
|
|
|
53
59
|
return _fr.default;
|
|
54
60
|
}
|
|
55
61
|
});
|
|
56
|
-
Object.defineProperty(exports, "
|
|
62
|
+
Object.defineProperty(exports, "hu", {
|
|
57
63
|
enumerable: true,
|
|
58
64
|
get: function get() {
|
|
59
|
-
return
|
|
65
|
+
return _hu.default;
|
|
60
66
|
}
|
|
61
67
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
68
|
+
Object.defineProperty(exports, "is", {
|
|
63
69
|
enumerable: true,
|
|
64
70
|
get: function get() {
|
|
65
|
-
return
|
|
71
|
+
return _is.default;
|
|
66
72
|
}
|
|
67
73
|
});
|
|
68
74
|
Object.defineProperty(exports, "it", {
|
|
@@ -89,6 +95,12 @@ Object.defineProperty(exports, "nb", {
|
|
|
89
95
|
return _nb.default;
|
|
90
96
|
}
|
|
91
97
|
});
|
|
98
|
+
Object.defineProperty(exports, "nl", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function get() {
|
|
101
|
+
return _nl.default;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
92
104
|
Object.defineProperty(exports, "pl", {
|
|
93
105
|
enumerable: true,
|
|
94
106
|
get: function get() {
|
|
@@ -107,22 +119,22 @@ Object.defineProperty(exports, "pt_PT", {
|
|
|
107
119
|
return _pt_PT.default;
|
|
108
120
|
}
|
|
109
121
|
});
|
|
110
|
-
Object.defineProperty(exports, "
|
|
122
|
+
Object.defineProperty(exports, "ro", {
|
|
111
123
|
enumerable: true,
|
|
112
124
|
get: function get() {
|
|
113
|
-
return
|
|
125
|
+
return _ro.default;
|
|
114
126
|
}
|
|
115
127
|
});
|
|
116
|
-
Object.defineProperty(exports, "
|
|
128
|
+
Object.defineProperty(exports, "ru", {
|
|
117
129
|
enumerable: true,
|
|
118
130
|
get: function get() {
|
|
119
|
-
return
|
|
131
|
+
return _ru.default;
|
|
120
132
|
}
|
|
121
133
|
});
|
|
122
|
-
Object.defineProperty(exports, "
|
|
134
|
+
Object.defineProperty(exports, "sk", {
|
|
123
135
|
enumerable: true,
|
|
124
136
|
get: function get() {
|
|
125
|
-
return
|
|
137
|
+
return _sk.default;
|
|
126
138
|
}
|
|
127
139
|
});
|
|
128
140
|
Object.defineProperty(exports, "sv", {
|
|
@@ -155,28 +167,16 @@ Object.defineProperty(exports, "vi", {
|
|
|
155
167
|
return _vi.default;
|
|
156
168
|
}
|
|
157
169
|
});
|
|
158
|
-
Object.defineProperty(exports, "
|
|
159
|
-
enumerable: true,
|
|
160
|
-
get: function get() {
|
|
161
|
-
return _en.default;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(exports, "en_GB", {
|
|
165
|
-
enumerable: true,
|
|
166
|
-
get: function get() {
|
|
167
|
-
return _en_GB.default;
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
Object.defineProperty(exports, "is", {
|
|
170
|
+
Object.defineProperty(exports, "zh", {
|
|
171
171
|
enumerable: true,
|
|
172
172
|
get: function get() {
|
|
173
|
-
return
|
|
173
|
+
return _zh.default;
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
|
-
Object.defineProperty(exports, "
|
|
176
|
+
Object.defineProperty(exports, "zh_TW", {
|
|
177
177
|
enumerable: true,
|
|
178
178
|
get: function get() {
|
|
179
|
-
return
|
|
179
|
+
return _zh_TW.default;
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -3,52 +3,52 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "ConnectedReactionPicker", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _containers.ConnectedReactionPicker;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "ConnectedReactionsView", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _containers.ConnectedReactionsView;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "MemoryReactionsStore", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _reactionStore.MemoryReactionsStore;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "Reaction", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function get() {
|
|
27
|
-
return _components.
|
|
27
|
+
return _components.Reaction;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "ReactionConsumer", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return
|
|
33
|
+
return _reactionStore.ReactionConsumer;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "ReactionPicker", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function get() {
|
|
39
|
-
return
|
|
39
|
+
return _components.ReactionPicker;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "ReactionServiceClient", {
|
|
43
43
|
enumerable: true,
|
|
44
44
|
get: function get() {
|
|
45
|
-
return
|
|
45
|
+
return _client.ReactionServiceClient;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
Object.defineProperty(exports, "
|
|
48
|
+
Object.defineProperty(exports, "Reactions", {
|
|
49
49
|
enumerable: true,
|
|
50
50
|
get: function get() {
|
|
51
|
-
return
|
|
51
|
+
return _components.Reactions;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "MemoryReactionsStore", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _ReactionsStore.MemoryReactionsStore;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "ReactionConsumer", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return
|
|
15
|
+
return _ReactionConsumer.ReactionConsumer;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -5,8 +5,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
+
exports.getReactionsSortFunction = exports.flattenAris = exports.compareEmojiId = exports.byEmojiId = exports.addOne = void 0;
|
|
8
9
|
exports.isRealErrorFromService = isRealErrorFromService;
|
|
9
|
-
exports.
|
|
10
|
+
exports.updateByEmojiId = exports.sortByRelevance = exports.sortByPreviousPosition = exports.removeOne = exports.readyState = void 0;
|
|
10
11
|
|
|
11
12
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
13
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { N90, B400 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { CSSTransition } from 'react-transition-group';
|
|
@@ -8,13 +9,13 @@ import { akHeight } from './utils';
|
|
|
8
9
|
const animationTime = 300;
|
|
9
10
|
export const countStyle = style({
|
|
10
11
|
fontSize: '11px',
|
|
11
|
-
color: N90,
|
|
12
|
+
color: token('color.text.lowEmphasis', N90),
|
|
12
13
|
overflow: 'hidden',
|
|
13
14
|
height: `${akHeight}px`,
|
|
14
15
|
transition: `width ${animationTime}ms ease-in-out`
|
|
15
16
|
});
|
|
16
17
|
export const highlightStyle = style({
|
|
17
|
-
color: B400,
|
|
18
|
+
color: token('color.text.selected', B400),
|
|
18
19
|
fontWeight: 600
|
|
19
20
|
});
|
|
20
21
|
export const containerStyle = style({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { B75, B300 } from '@atlaskit/theme/colors';
|
|
2
|
+
import { token } from '@atlaskit/tokens';
|
|
2
3
|
import cx from 'classnames';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
import { keyframes, style } from 'typestyle';
|
|
@@ -12,16 +13,16 @@ const flashAnimation = keyframes({
|
|
|
12
13
|
backgroundColor: 'transparent'
|
|
13
14
|
},
|
|
14
15
|
'20%': {
|
|
15
|
-
backgroundColor: B75,
|
|
16
|
-
borderColor: B300
|
|
16
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
17
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
17
18
|
},
|
|
18
19
|
'75%': {
|
|
19
|
-
backgroundColor: B75,
|
|
20
|
-
borderColor: B300
|
|
20
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
21
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
21
22
|
},
|
|
22
23
|
'100%': {
|
|
23
|
-
backgroundColor: B75,
|
|
24
|
-
borderColor: B300
|
|
24
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
25
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
export const flashStyle = style({
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
3
3
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
4
4
|
import { B50, B75, B300, N20, N40, N400 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import cx from 'classnames';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { PureComponent } from 'react';
|
|
@@ -30,26 +31,26 @@ const reactionStyle = style({
|
|
|
30
31
|
minWidth: '36px',
|
|
31
32
|
height: `${akHeight}px`,
|
|
32
33
|
background: 'transparent',
|
|
33
|
-
border: `1px solid ${N40}`,
|
|
34
|
+
border: `1px solid ${token('color.border.neutral', N40)}`,
|
|
34
35
|
boxSizing: 'border-box',
|
|
35
36
|
borderRadius: '20px',
|
|
36
|
-
color: `${N400}`,
|
|
37
|
+
color: `${token('color.text.mediumEmphasis', N400)}`,
|
|
37
38
|
cursor: 'pointer',
|
|
38
39
|
margin: 0,
|
|
39
40
|
padding: 0,
|
|
40
41
|
transition: '200ms ease-in-out',
|
|
41
42
|
$nest: {
|
|
42
43
|
'&:hover': {
|
|
43
|
-
background: `${N20}`
|
|
44
|
+
background: `${token('color.background.transparentNeutral.hover', N20)}`
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
48
|
const reactedStyle = style({
|
|
48
|
-
backgroundColor: B50,
|
|
49
|
-
borderColor: B300,
|
|
49
|
+
backgroundColor: token('color.background.selected.resting', B50),
|
|
50
|
+
borderColor: token('color.iconBorder.brand', B300),
|
|
50
51
|
$nest: {
|
|
51
52
|
'&:hover': {
|
|
52
|
-
background: `${B75}`
|
|
53
|
+
background: `${token('color.background.selected.hover', B75)}`
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
});
|
|
@@ -3,6 +3,7 @@ import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
|
3
3
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
4
4
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
5
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
import cx from 'classnames';
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import { PureComponent } from 'react';
|
|
@@ -11,10 +12,6 @@ import { style } from 'typestyle';
|
|
|
11
12
|
import { Selector } from './Selector';
|
|
12
13
|
import { Trigger } from './Trigger';
|
|
13
14
|
import { layers } from '@atlaskit/theme/constants';
|
|
14
|
-
const akBorderRadius = `${borderRadius()}px`;
|
|
15
|
-
const akColorN0 = N0;
|
|
16
|
-
const akColorN50A = N50A;
|
|
17
|
-
const akColorN60A = N60A;
|
|
18
15
|
const pickerStyle = style({
|
|
19
16
|
verticalAlign: 'middle',
|
|
20
17
|
$nest: {
|
|
@@ -28,9 +25,9 @@ const contentStyle = style({
|
|
|
28
25
|
display: 'flex'
|
|
29
26
|
});
|
|
30
27
|
const popupStyle = style({
|
|
31
|
-
background:
|
|
32
|
-
borderRadius:
|
|
33
|
-
boxShadow: `0 4px 8px -2px ${
|
|
28
|
+
background: token('color.background.overlay', N0),
|
|
29
|
+
borderRadius: `${borderRadius()}px`,
|
|
30
|
+
boxShadow: token('shadow.overlay', `0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`),
|
|
34
31
|
$nest: {
|
|
35
32
|
'&> div': {
|
|
36
33
|
boxShadow: undefined
|
|
@@ -3,6 +3,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { style } from 'typestyle';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
import { N90 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { messages } from './i18n';
|
|
8
9
|
const verticalMargin = 5;
|
|
@@ -28,11 +29,11 @@ const tooltipStyle = style({
|
|
|
28
29
|
});
|
|
29
30
|
const emojiNameStyle = style({
|
|
30
31
|
textTransform: 'capitalize',
|
|
31
|
-
color: N90,
|
|
32
|
+
color: token('color.text.mediumEmphasis', N90),
|
|
32
33
|
fontWeight: 600
|
|
33
34
|
});
|
|
34
35
|
const footerStyle = style({
|
|
35
|
-
color: N90,
|
|
36
|
+
color: token('color.text.mediumEmphasis', N90),
|
|
36
37
|
fontWeight: 300
|
|
37
38
|
});
|
|
38
39
|
const TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
3
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
4
4
|
import { N30A } from '@atlaskit/theme/colors';
|
|
5
|
+
import { token } from '@atlaskit/tokens';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
7
|
import cx from 'classnames';
|
|
7
8
|
import React from 'react';
|
|
@@ -24,12 +25,12 @@ const moreButtonStyle = style({
|
|
|
24
25
|
verticalAlign: 'top',
|
|
25
26
|
$nest: {
|
|
26
27
|
'&:hover': {
|
|
27
|
-
backgroundColor: N30A
|
|
28
|
+
backgroundColor: token('color.background.transparentNeutral.hover', N30A)
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
const separatorStyle = style({
|
|
32
|
-
backgroundColor: N30A,
|
|
33
|
+
backgroundColor: token('color.border.neutral', N30A),
|
|
33
34
|
margin: '8px 8px 8px 4px',
|
|
34
35
|
width: '1px',
|
|
35
36
|
height: '60%',
|
package/dist/es2019/version.json
CHANGED
|
@@ -11,6 +11,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
13
|
import { N90, B400 } from '@atlaskit/theme/colors';
|
|
14
|
+
import { token } from '@atlaskit/tokens';
|
|
14
15
|
import cx from 'classnames';
|
|
15
16
|
import React from 'react';
|
|
16
17
|
import { CSSTransition } from 'react-transition-group';
|
|
@@ -19,13 +20,13 @@ import { akHeight } from './utils';
|
|
|
19
20
|
var animationTime = 300;
|
|
20
21
|
export var countStyle = style({
|
|
21
22
|
fontSize: '11px',
|
|
22
|
-
color: N90,
|
|
23
|
+
color: token('color.text.lowEmphasis', N90),
|
|
23
24
|
overflow: 'hidden',
|
|
24
25
|
height: "".concat(akHeight, "px"),
|
|
25
26
|
transition: "width ".concat(animationTime, "ms ease-in-out")
|
|
26
27
|
});
|
|
27
28
|
export var highlightStyle = style({
|
|
28
|
-
color: B400,
|
|
29
|
+
color: token('color.text.selected', B400),
|
|
29
30
|
fontWeight: 600
|
|
30
31
|
});
|
|
31
32
|
export var containerStyle = style({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { B75, B300 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { token } from '@atlaskit/tokens';
|
|
3
4
|
import cx from 'classnames';
|
|
4
5
|
import React from 'react';
|
|
5
6
|
import { keyframes, style } from 'typestyle';
|
|
@@ -13,16 +14,16 @@ var flashAnimation = keyframes({
|
|
|
13
14
|
backgroundColor: 'transparent'
|
|
14
15
|
},
|
|
15
16
|
'20%': {
|
|
16
|
-
backgroundColor: B75,
|
|
17
|
-
borderColor: B300
|
|
17
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
18
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
18
19
|
},
|
|
19
20
|
'75%': {
|
|
20
|
-
backgroundColor: B75,
|
|
21
|
-
borderColor: B300
|
|
21
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
22
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
22
23
|
},
|
|
23
24
|
'100%': {
|
|
24
|
-
backgroundColor: B75,
|
|
25
|
-
borderColor: B300
|
|
25
|
+
backgroundColor: token('color.background.selected.pressed', B75),
|
|
26
|
+
borderColor: token('color.iconBorder.brand', B300)
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
export var flashStyle = style({
|
|
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
14
14
|
import { ResourcedEmoji } from '@atlaskit/emoji/element';
|
|
15
15
|
import { B50, B75, B300, N20, N40, N400 } from '@atlaskit/theme/colors';
|
|
16
|
+
import { token } from '@atlaskit/tokens';
|
|
16
17
|
import cx from 'classnames';
|
|
17
18
|
import React from 'react';
|
|
18
19
|
import { PureComponent } from 'react';
|
|
@@ -41,26 +42,26 @@ var reactionStyle = style({
|
|
|
41
42
|
minWidth: '36px',
|
|
42
43
|
height: "".concat(akHeight, "px"),
|
|
43
44
|
background: 'transparent',
|
|
44
|
-
border: "1px solid ".concat(N40),
|
|
45
|
+
border: "1px solid ".concat(token('color.border.neutral', N40)),
|
|
45
46
|
boxSizing: 'border-box',
|
|
46
47
|
borderRadius: '20px',
|
|
47
|
-
color: "".concat(N400),
|
|
48
|
+
color: "".concat(token('color.text.mediumEmphasis', N400)),
|
|
48
49
|
cursor: 'pointer',
|
|
49
50
|
margin: 0,
|
|
50
51
|
padding: 0,
|
|
51
52
|
transition: '200ms ease-in-out',
|
|
52
53
|
$nest: {
|
|
53
54
|
'&:hover': {
|
|
54
|
-
background: "".concat(N20)
|
|
55
|
+
background: "".concat(token('color.background.transparentNeutral.hover', N20))
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
var reactedStyle = style({
|
|
59
|
-
backgroundColor: B50,
|
|
60
|
-
borderColor: B300,
|
|
60
|
+
backgroundColor: token('color.background.selected.resting', B50),
|
|
61
|
+
borderColor: token('color.iconBorder.brand', B300),
|
|
61
62
|
$nest: {
|
|
62
63
|
'&:hover': {
|
|
63
|
-
background: "".concat(B75)
|
|
64
|
+
background: "".concat(token('color.background.selected.hover', B75))
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
});
|
|
@@ -18,6 +18,7 @@ import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
|
18
18
|
import { Manager, Popper, Reference } from '@atlaskit/popper';
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
21
|
+
import { token } from '@atlaskit/tokens';
|
|
21
22
|
import cx from 'classnames';
|
|
22
23
|
import React from 'react';
|
|
23
24
|
import { PureComponent } from 'react';
|
|
@@ -26,10 +27,6 @@ import { style } from 'typestyle';
|
|
|
26
27
|
import { Selector } from './Selector';
|
|
27
28
|
import { Trigger } from './Trigger';
|
|
28
29
|
import { layers } from '@atlaskit/theme/constants';
|
|
29
|
-
var akBorderRadius = "".concat(borderRadius(), "px");
|
|
30
|
-
var akColorN0 = N0;
|
|
31
|
-
var akColorN50A = N50A;
|
|
32
|
-
var akColorN60A = N60A;
|
|
33
30
|
var pickerStyle = style({
|
|
34
31
|
verticalAlign: 'middle',
|
|
35
32
|
$nest: {
|
|
@@ -43,9 +40,9 @@ var contentStyle = style({
|
|
|
43
40
|
display: 'flex'
|
|
44
41
|
});
|
|
45
42
|
var popupStyle = style({
|
|
46
|
-
background:
|
|
47
|
-
borderRadius:
|
|
48
|
-
boxShadow: "0 4px 8px -2px ".concat(
|
|
43
|
+
background: token('color.background.overlay', N0),
|
|
44
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
45
|
+
boxShadow: token('shadow.overlay', "0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A)),
|
|
49
46
|
$nest: {
|
|
50
47
|
'&> div': {
|
|
51
48
|
boxShadow: undefined
|
|
@@ -3,6 +3,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
5
|
import { style } from 'typestyle';
|
|
6
|
+
import { token } from '@atlaskit/tokens';
|
|
6
7
|
import { N90 } from '@atlaskit/theme/colors';
|
|
7
8
|
import { messages } from './i18n';
|
|
8
9
|
var verticalMargin = 5;
|
|
@@ -28,11 +29,11 @@ var tooltipStyle = style({
|
|
|
28
29
|
});
|
|
29
30
|
var emojiNameStyle = style({
|
|
30
31
|
textTransform: 'capitalize',
|
|
31
|
-
color: N90,
|
|
32
|
+
color: token('color.text.mediumEmphasis', N90),
|
|
32
33
|
fontWeight: 600
|
|
33
34
|
});
|
|
34
35
|
var footerStyle = style({
|
|
35
|
-
color: N90,
|
|
36
|
+
color: token('color.text.mediumEmphasis', N90),
|
|
36
37
|
fontWeight: 300
|
|
37
38
|
});
|
|
38
39
|
var TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -12,6 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
13
13
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
14
14
|
import { N30A } from '@atlaskit/theme/colors';
|
|
15
|
+
import { token } from '@atlaskit/tokens';
|
|
15
16
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
17
|
import cx from 'classnames';
|
|
17
18
|
import React from 'react';
|
|
@@ -34,12 +35,12 @@ var moreButtonStyle = style({
|
|
|
34
35
|
verticalAlign: 'top',
|
|
35
36
|
$nest: {
|
|
36
37
|
'&:hover': {
|
|
37
|
-
backgroundColor: N30A
|
|
38
|
+
backgroundColor: token('color.background.transparentNeutral.hover', N30A)
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
});
|
|
41
42
|
var separatorStyle = style({
|
|
42
|
-
backgroundColor: N30A,
|
|
43
|
+
backgroundColor: token('color.border.neutral', N30A),
|
|
43
44
|
margin: '8px 8px 8px 4px',
|
|
44
45
|
width: '1px',
|
|
45
46
|
height: '60%',
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/reactions",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"@atlaskit/icon": "^21.9.0",
|
|
34
34
|
"@atlaskit/popper": "^5.0.0",
|
|
35
35
|
"@atlaskit/theme": "^12.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^0.4.0",
|
|
36
37
|
"@atlaskit/tooltip": "^17.5.0",
|
|
37
38
|
"@atlaskit/util-service-support": "^6.0.0",
|
|
38
39
|
"@babel/runtime": "^7.0.0",
|
|
@@ -68,6 +69,9 @@
|
|
|
68
69
|
"ui"
|
|
69
70
|
],
|
|
70
71
|
"techstack": {
|
|
72
|
+
"@repo/internal": {
|
|
73
|
+
"theming": "tokens"
|
|
74
|
+
},
|
|
71
75
|
"@atlassian/frontend": {
|
|
72
76
|
"tree-shaking": []
|
|
73
77
|
}
|