@atlaskit/reactions 21.0.2 → 21.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/Counter.js +2 -2
- package/dist/cjs/components/FlashAnimation.js +6 -6
- package/dist/cjs/components/Reaction.js +6 -6
- package/dist/cjs/components/ReactionPicker.js +2 -2
- package/dist/cjs/components/ReactionTooltip.js +2 -2
- package/dist/cjs/components/ShowMore.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Counter.js +2 -2
- package/dist/es2019/components/FlashAnimation.js +6 -6
- package/dist/es2019/components/Reaction.js +6 -6
- package/dist/es2019/components/ReactionPicker.js +2 -2
- package/dist/es2019/components/ReactionTooltip.js +2 -2
- package/dist/es2019/components/ShowMore.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Counter.js +2 -2
- package/dist/esm/components/FlashAnimation.js +6 -6
- package/dist/esm/components/Reaction.js +6 -6
- package/dist/esm/components/ReactionPicker.js +2 -2
- package/dist/esm/components/ReactionTooltip.js +2 -2
- package/dist/esm/components/ShowMore.js +2 -2
- package/dist/esm/version.json +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -42,14 +42,14 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
42
42
|
var animationTime = 300;
|
|
43
43
|
var countStyle = (0, _typestyle.style)({
|
|
44
44
|
fontSize: '11px',
|
|
45
|
-
color: (0, _tokens.token)('color.text.
|
|
45
|
+
color: (0, _tokens.token)('color.text.subtlest', _colors.N90),
|
|
46
46
|
overflow: 'hidden',
|
|
47
47
|
height: "".concat(_utils.akHeight, "px"),
|
|
48
48
|
transition: "width ".concat(animationTime, "ms ease-in-out")
|
|
49
49
|
});
|
|
50
50
|
exports.countStyle = countStyle;
|
|
51
51
|
var highlightStyle = (0, _typestyle.style)({
|
|
52
|
-
color: (0, _tokens.token)('color.text.
|
|
52
|
+
color: (0, _tokens.token)('color.text.brand', _colors.B400),
|
|
53
53
|
fontWeight: 600
|
|
54
54
|
});
|
|
55
55
|
exports.highlightStyle = highlightStyle;
|
|
@@ -29,16 +29,16 @@ var flashAnimation = (0, _typestyle.keyframes)({
|
|
|
29
29
|
backgroundColor: 'transparent'
|
|
30
30
|
},
|
|
31
31
|
'20%': {
|
|
32
|
-
backgroundColor: (0, _tokens.token)('color.background.
|
|
33
|
-
borderColor: (0, _tokens.token)('color.
|
|
32
|
+
backgroundColor: (0, _tokens.token)('color.background.brand.pressed', _colors.B75),
|
|
33
|
+
borderColor: (0, _tokens.token)('color.icon.brand', _colors.B300)
|
|
34
34
|
},
|
|
35
35
|
'75%': {
|
|
36
|
-
backgroundColor: (0, _tokens.token)('color.background.
|
|
37
|
-
borderColor: (0, _tokens.token)('color.
|
|
36
|
+
backgroundColor: (0, _tokens.token)('color.background.brand.pressed', _colors.B75),
|
|
37
|
+
borderColor: (0, _tokens.token)('color.icon.brand', _colors.B300)
|
|
38
38
|
},
|
|
39
39
|
'100%': {
|
|
40
|
-
backgroundColor: (0, _tokens.token)('color.background.
|
|
41
|
-
borderColor: (0, _tokens.token)('color.
|
|
40
|
+
backgroundColor: (0, _tokens.token)('color.background.brand.pressed', _colors.B75),
|
|
41
|
+
borderColor: (0, _tokens.token)('color.icon.brand', _colors.B300)
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
var flashStyle = (0, _typestyle.style)({
|
|
@@ -73,26 +73,26 @@ var reactionStyle = (0, _typestyle.style)({
|
|
|
73
73
|
minWidth: '36px',
|
|
74
74
|
height: "".concat(_utils.akHeight, "px"),
|
|
75
75
|
background: 'transparent',
|
|
76
|
-
border: "1px solid ".concat((0, _tokens.token)('color.border
|
|
76
|
+
border: "1px solid ".concat((0, _tokens.token)('color.border', _colors.N40)),
|
|
77
77
|
boxSizing: 'border-box',
|
|
78
78
|
borderRadius: '20px',
|
|
79
|
-
color: "".concat((0, _tokens.token)('color.text.
|
|
79
|
+
color: "".concat((0, _tokens.token)('color.text.subtle', _colors.N400)),
|
|
80
80
|
cursor: 'pointer',
|
|
81
81
|
margin: 0,
|
|
82
82
|
padding: 0,
|
|
83
83
|
transition: '200ms ease-in-out',
|
|
84
84
|
$nest: {
|
|
85
85
|
'&:hover': {
|
|
86
|
-
background: "".concat((0, _tokens.token)('color.background.
|
|
86
|
+
background: "".concat((0, _tokens.token)('color.background.neutral.subtle.hovered', _colors.N20))
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
var reactedStyle = (0, _typestyle.style)({
|
|
91
|
-
backgroundColor: (0, _tokens.token)('color.background.
|
|
92
|
-
borderColor: (0, _tokens.token)('color.
|
|
91
|
+
backgroundColor: (0, _tokens.token)('color.background.brand', _colors.B50),
|
|
92
|
+
borderColor: (0, _tokens.token)('color.icon.brand', _colors.B300),
|
|
93
93
|
$nest: {
|
|
94
94
|
'&:hover': {
|
|
95
|
-
background: "".concat((0, _tokens.token)('color.background.
|
|
95
|
+
background: "".concat((0, _tokens.token)('color.background.brand.hovered', _colors.B75))
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
});
|
|
@@ -70,9 +70,9 @@ var contentStyle = (0, _typestyle.style)({
|
|
|
70
70
|
display: 'flex'
|
|
71
71
|
});
|
|
72
72
|
var popupStyle = (0, _typestyle.style)({
|
|
73
|
-
background: (0, _tokens.token)('
|
|
73
|
+
background: (0, _tokens.token)('elevation.surface.overlay', _colors.N0),
|
|
74
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)),
|
|
75
|
+
boxShadow: (0, _tokens.token)('elevation.shadow.overlay', "0 4px 8px -2px ".concat(_colors.N50A, ", 0 0 1px ").concat(_colors.N60A)),
|
|
76
76
|
$nest: {
|
|
77
77
|
'&> div': {
|
|
78
78
|
boxShadow: undefined
|
|
@@ -46,11 +46,11 @@ var tooltipStyle = (0, _typestyle.style)({
|
|
|
46
46
|
});
|
|
47
47
|
var emojiNameStyle = (0, _typestyle.style)({
|
|
48
48
|
textTransform: 'capitalize',
|
|
49
|
-
color: (0, _tokens.token)('color.text.
|
|
49
|
+
color: (0, _tokens.token)('color.text.inverse', _colors.N90),
|
|
50
50
|
fontWeight: 600
|
|
51
51
|
});
|
|
52
52
|
var footerStyle = (0, _typestyle.style)({
|
|
53
|
-
color: (0, _tokens.token)('color.text.
|
|
53
|
+
color: (0, _tokens.token)('color.text.inverse', _colors.N90),
|
|
54
54
|
fontWeight: 300
|
|
55
55
|
});
|
|
56
56
|
var TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -59,12 +59,12 @@ var moreButtonStyle = (0, _typestyle.style)({
|
|
|
59
59
|
verticalAlign: 'top',
|
|
60
60
|
$nest: {
|
|
61
61
|
'&:hover': {
|
|
62
|
-
backgroundColor: (0, _tokens.token)('color.background.
|
|
62
|
+
backgroundColor: (0, _tokens.token)('color.background.neutral.subtle.hovered', _colors.N30A)
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
var separatorStyle = (0, _typestyle.style)({
|
|
67
|
-
backgroundColor: (0, _tokens.token)('color.border
|
|
67
|
+
backgroundColor: (0, _tokens.token)('color.border', _colors.N30A),
|
|
68
68
|
margin: '8px 8px 8px 4px',
|
|
69
69
|
width: '1px',
|
|
70
70
|
height: '60%',
|
package/dist/cjs/version.json
CHANGED
|
@@ -9,13 +9,13 @@ import { akHeight } from './utils';
|
|
|
9
9
|
const animationTime = 300;
|
|
10
10
|
export const countStyle = style({
|
|
11
11
|
fontSize: '11px',
|
|
12
|
-
color: token('color.text.
|
|
12
|
+
color: token('color.text.subtlest', N90),
|
|
13
13
|
overflow: 'hidden',
|
|
14
14
|
height: `${akHeight}px`,
|
|
15
15
|
transition: `width ${animationTime}ms ease-in-out`
|
|
16
16
|
});
|
|
17
17
|
export const highlightStyle = style({
|
|
18
|
-
color: token('color.text.
|
|
18
|
+
color: token('color.text.brand', B400),
|
|
19
19
|
fontWeight: 600
|
|
20
20
|
});
|
|
21
21
|
export const containerStyle = style({
|
|
@@ -13,16 +13,16 @@ const flashAnimation = keyframes({
|
|
|
13
13
|
backgroundColor: 'transparent'
|
|
14
14
|
},
|
|
15
15
|
'20%': {
|
|
16
|
-
backgroundColor: token('color.background.
|
|
17
|
-
borderColor: token('color.
|
|
16
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
17
|
+
borderColor: token('color.icon.brand', B300)
|
|
18
18
|
},
|
|
19
19
|
'75%': {
|
|
20
|
-
backgroundColor: token('color.background.
|
|
21
|
-
borderColor: token('color.
|
|
20
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
21
|
+
borderColor: token('color.icon.brand', B300)
|
|
22
22
|
},
|
|
23
23
|
'100%': {
|
|
24
|
-
backgroundColor: token('color.background.
|
|
25
|
-
borderColor: token('color.
|
|
24
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
25
|
+
borderColor: token('color.icon.brand', B300)
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
export const flashStyle = style({
|
|
@@ -31,26 +31,26 @@ const reactionStyle = style({
|
|
|
31
31
|
minWidth: '36px',
|
|
32
32
|
height: `${akHeight}px`,
|
|
33
33
|
background: 'transparent',
|
|
34
|
-
border: `1px solid ${token('color.border
|
|
34
|
+
border: `1px solid ${token('color.border', N40)}`,
|
|
35
35
|
boxSizing: 'border-box',
|
|
36
36
|
borderRadius: '20px',
|
|
37
|
-
color: `${token('color.text.
|
|
37
|
+
color: `${token('color.text.subtle', N400)}`,
|
|
38
38
|
cursor: 'pointer',
|
|
39
39
|
margin: 0,
|
|
40
40
|
padding: 0,
|
|
41
41
|
transition: '200ms ease-in-out',
|
|
42
42
|
$nest: {
|
|
43
43
|
'&:hover': {
|
|
44
|
-
background: `${token('color.background.
|
|
44
|
+
background: `${token('color.background.neutral.subtle.hovered', N20)}`
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const reactedStyle = style({
|
|
49
|
-
backgroundColor: token('color.background.
|
|
50
|
-
borderColor: token('color.
|
|
49
|
+
backgroundColor: token('color.background.brand', B50),
|
|
50
|
+
borderColor: token('color.icon.brand', B300),
|
|
51
51
|
$nest: {
|
|
52
52
|
'&:hover': {
|
|
53
|
-
background: `${token('color.background.
|
|
53
|
+
background: `${token('color.background.brand.hovered', B75)}`
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
});
|
|
@@ -25,9 +25,9 @@ const contentStyle = style({
|
|
|
25
25
|
display: 'flex'
|
|
26
26
|
});
|
|
27
27
|
const popupStyle = style({
|
|
28
|
-
background: token('
|
|
28
|
+
background: token('elevation.surface.overlay', N0),
|
|
29
29
|
borderRadius: `${borderRadius()}px`,
|
|
30
|
-
boxShadow: token('shadow.overlay', `0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`),
|
|
30
|
+
boxShadow: token('elevation.shadow.overlay', `0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`),
|
|
31
31
|
$nest: {
|
|
32
32
|
'&> div': {
|
|
33
33
|
boxShadow: undefined
|
|
@@ -29,11 +29,11 @@ const tooltipStyle = style({
|
|
|
29
29
|
});
|
|
30
30
|
const emojiNameStyle = style({
|
|
31
31
|
textTransform: 'capitalize',
|
|
32
|
-
color: token('color.text.
|
|
32
|
+
color: token('color.text.inverse', N90),
|
|
33
33
|
fontWeight: 600
|
|
34
34
|
});
|
|
35
35
|
const footerStyle = style({
|
|
36
|
-
color: token('color.text.
|
|
36
|
+
color: token('color.text.inverse', N90),
|
|
37
37
|
fontWeight: 300
|
|
38
38
|
});
|
|
39
39
|
const TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -25,12 +25,12 @@ const moreButtonStyle = style({
|
|
|
25
25
|
verticalAlign: 'top',
|
|
26
26
|
$nest: {
|
|
27
27
|
'&:hover': {
|
|
28
|
-
backgroundColor: token('color.background.
|
|
28
|
+
backgroundColor: token('color.background.neutral.subtle.hovered', N30A)
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
const separatorStyle = style({
|
|
33
|
-
backgroundColor: token('color.border
|
|
33
|
+
backgroundColor: token('color.border', N30A),
|
|
34
34
|
margin: '8px 8px 8px 4px',
|
|
35
35
|
width: '1px',
|
|
36
36
|
height: '60%',
|
package/dist/es2019/version.json
CHANGED
|
@@ -20,13 +20,13 @@ import { akHeight } from './utils';
|
|
|
20
20
|
var animationTime = 300;
|
|
21
21
|
export var countStyle = style({
|
|
22
22
|
fontSize: '11px',
|
|
23
|
-
color: token('color.text.
|
|
23
|
+
color: token('color.text.subtlest', N90),
|
|
24
24
|
overflow: 'hidden',
|
|
25
25
|
height: "".concat(akHeight, "px"),
|
|
26
26
|
transition: "width ".concat(animationTime, "ms ease-in-out")
|
|
27
27
|
});
|
|
28
28
|
export var highlightStyle = style({
|
|
29
|
-
color: token('color.text.
|
|
29
|
+
color: token('color.text.brand', B400),
|
|
30
30
|
fontWeight: 600
|
|
31
31
|
});
|
|
32
32
|
export var containerStyle = style({
|
|
@@ -14,16 +14,16 @@ var flashAnimation = keyframes({
|
|
|
14
14
|
backgroundColor: 'transparent'
|
|
15
15
|
},
|
|
16
16
|
'20%': {
|
|
17
|
-
backgroundColor: token('color.background.
|
|
18
|
-
borderColor: token('color.
|
|
17
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
18
|
+
borderColor: token('color.icon.brand', B300)
|
|
19
19
|
},
|
|
20
20
|
'75%': {
|
|
21
|
-
backgroundColor: token('color.background.
|
|
22
|
-
borderColor: token('color.
|
|
21
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
22
|
+
borderColor: token('color.icon.brand', B300)
|
|
23
23
|
},
|
|
24
24
|
'100%': {
|
|
25
|
-
backgroundColor: token('color.background.
|
|
26
|
-
borderColor: token('color.
|
|
25
|
+
backgroundColor: token('color.background.brand.pressed', B75),
|
|
26
|
+
borderColor: token('color.icon.brand', B300)
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export var flashStyle = style({
|
|
@@ -42,26 +42,26 @@ var reactionStyle = style({
|
|
|
42
42
|
minWidth: '36px',
|
|
43
43
|
height: "".concat(akHeight, "px"),
|
|
44
44
|
background: 'transparent',
|
|
45
|
-
border: "1px solid ".concat(token('color.border
|
|
45
|
+
border: "1px solid ".concat(token('color.border', N40)),
|
|
46
46
|
boxSizing: 'border-box',
|
|
47
47
|
borderRadius: '20px',
|
|
48
|
-
color: "".concat(token('color.text.
|
|
48
|
+
color: "".concat(token('color.text.subtle', N400)),
|
|
49
49
|
cursor: 'pointer',
|
|
50
50
|
margin: 0,
|
|
51
51
|
padding: 0,
|
|
52
52
|
transition: '200ms ease-in-out',
|
|
53
53
|
$nest: {
|
|
54
54
|
'&:hover': {
|
|
55
|
-
background: "".concat(token('color.background.
|
|
55
|
+
background: "".concat(token('color.background.neutral.subtle.hovered', N20))
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
var reactedStyle = style({
|
|
60
|
-
backgroundColor: token('color.background.
|
|
61
|
-
borderColor: token('color.
|
|
60
|
+
backgroundColor: token('color.background.brand', B50),
|
|
61
|
+
borderColor: token('color.icon.brand', B300),
|
|
62
62
|
$nest: {
|
|
63
63
|
'&:hover': {
|
|
64
|
-
background: "".concat(token('color.background.
|
|
64
|
+
background: "".concat(token('color.background.brand.hovered', B75))
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
});
|
|
@@ -40,9 +40,9 @@ var contentStyle = style({
|
|
|
40
40
|
display: 'flex'
|
|
41
41
|
});
|
|
42
42
|
var popupStyle = style({
|
|
43
|
-
background: token('
|
|
43
|
+
background: token('elevation.surface.overlay', N0),
|
|
44
44
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
45
|
-
boxShadow: token('shadow.overlay', "0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A)),
|
|
45
|
+
boxShadow: token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(N50A, ", 0 0 1px ").concat(N60A)),
|
|
46
46
|
$nest: {
|
|
47
47
|
'&> div': {
|
|
48
48
|
boxShadow: undefined
|
|
@@ -29,11 +29,11 @@ var tooltipStyle = style({
|
|
|
29
29
|
});
|
|
30
30
|
var emojiNameStyle = style({
|
|
31
31
|
textTransform: 'capitalize',
|
|
32
|
-
color: token('color.text.
|
|
32
|
+
color: token('color.text.inverse', N90),
|
|
33
33
|
fontWeight: 600
|
|
34
34
|
});
|
|
35
35
|
var footerStyle = style({
|
|
36
|
-
color: token('color.text.
|
|
36
|
+
color: token('color.text.inverse', N90),
|
|
37
37
|
fontWeight: 300
|
|
38
38
|
});
|
|
39
39
|
var TOOLTIP_USERS_LIMIT = 5;
|
|
@@ -35,12 +35,12 @@ var moreButtonStyle = style({
|
|
|
35
35
|
verticalAlign: 'top',
|
|
36
36
|
$nest: {
|
|
37
37
|
'&:hover': {
|
|
38
|
-
backgroundColor: token('color.background.
|
|
38
|
+
backgroundColor: token('color.background.neutral.subtle.hovered', N30A)
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
var separatorStyle = style({
|
|
43
|
-
backgroundColor: token('color.border
|
|
43
|
+
backgroundColor: token('color.border', N30A),
|
|
44
44
|
margin: '8px 8px 8px 4px',
|
|
45
45
|
width: '1px',
|
|
46
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": "21.0.
|
|
3
|
+
"version": "21.0.3",
|
|
4
4
|
"description": "Reactions component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@atlaskit/analytics-namespaced-context": "^6.3.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
31
31
|
"@atlaskit/button": "^16.0.0",
|
|
32
|
-
"@atlaskit/emoji": "^64.
|
|
32
|
+
"@atlaskit/emoji": "^64.1.0",
|
|
33
33
|
"@atlaskit/icon": "^21.10.0",
|
|
34
34
|
"@atlaskit/popper": "^5.0.0",
|
|
35
35
|
"@atlaskit/theme": "^12.1.0",
|
|
36
|
-
"@atlaskit/tokens": "^0.
|
|
36
|
+
"@atlaskit/tokens": "^0.6.0",
|
|
37
37
|
"@atlaskit/tooltip": "^17.5.0",
|
|
38
|
-
"@atlaskit/util-service-support": "^6.
|
|
38
|
+
"@atlaskit/util-service-support": "^6.1.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"classnames": "^2.2.5",
|
|
41
41
|
"react-transition-group": "^4.4.1",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/editor-test-helpers": "^16.0.0",
|
|
53
53
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
54
54
|
"@atlaskit/tooltip": "^17.5.0",
|
|
55
|
-
"@atlaskit/util-data-test": "^17.
|
|
55
|
+
"@atlaskit/util-data-test": "^17.2.0",
|
|
56
56
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
57
57
|
"enzyme": "^3.10.0",
|
|
58
58
|
"enzyme-adapter-react-16": "^1.15.1",
|