@atlaskit/reactions 22.7.0 → 22.7.2
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 +1184 -1178
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Counter/Counter.js +18 -4
- package/dist/cjs/components/Counter/styles.js +8 -0
- package/dist/cjs/components/EmojiButton/EmojiButton.js +21 -5
- package/dist/cjs/components/FlashAnimation/FlashAnimation.js +6 -1
- package/dist/cjs/components/FlashAnimation/styles.js +8 -0
- package/dist/cjs/components/Reaction/Reaction.js +45 -8
- package/dist/cjs/components/Reaction/styles.js +12 -0
- package/dist/cjs/components/ReactionDialog/ReactionView.js +40 -28
- package/dist/cjs/components/ReactionDialog/ReactionsDialog.js +2 -0
- package/dist/cjs/components/ReactionDialog/ReactionsList.js +6 -1
- package/dist/cjs/components/ReactionDialog/styles.js +40 -1
- package/dist/cjs/components/ReactionParticleEffect/ReactionParticleEffect.js +20 -12
- package/dist/cjs/components/ReactionParticleEffect/styles.js +9 -0
- package/dist/cjs/components/ReactionPicker/ReactionPicker.js +19 -10
- package/dist/cjs/components/ReactionPicker/styles.js +13 -0
- package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +6 -1
- package/dist/cjs/components/ReactionTooltip/styles.js +12 -0
- package/dist/cjs/components/Reactions/Reactions.js +57 -44
- package/dist/cjs/components/Reactions/styles.js +7 -0
- package/dist/cjs/components/Selector/Selector.js +60 -31
- package/dist/cjs/components/Selector/styles.js +13 -20
- package/dist/cjs/components/ShowMore/ShowMore.js +13 -31
- package/dist/cjs/components/ShowMore/index.js +0 -6
- package/dist/cjs/components/Trigger/Trigger.js +6 -1
- package/dist/cjs/components/Trigger/styles.js +3 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Counter/Counter.js +17 -4
- package/dist/es2019/components/Counter/styles.js +8 -0
- package/dist/es2019/components/EmojiButton/EmojiButton.js +20 -5
- package/dist/es2019/components/FlashAnimation/FlashAnimation.js +5 -1
- package/dist/es2019/components/FlashAnimation/styles.js +8 -0
- package/dist/es2019/components/Reaction/Reaction.js +45 -9
- package/dist/es2019/components/Reaction/styles.js +12 -0
- package/dist/es2019/components/ReactionDialog/ReactionView.js +39 -28
- package/dist/es2019/components/ReactionDialog/ReactionsDialog.js +1 -0
- package/dist/es2019/components/ReactionDialog/ReactionsList.js +5 -1
- package/dist/es2019/components/ReactionDialog/styles.js +40 -1
- package/dist/es2019/components/ReactionParticleEffect/ReactionParticleEffect.js +15 -9
- package/dist/es2019/components/ReactionParticleEffect/styles.js +9 -0
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +19 -9
- package/dist/es2019/components/ReactionPicker/styles.js +13 -0
- package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +5 -1
- package/dist/es2019/components/ReactionTooltip/styles.js +12 -0
- package/dist/es2019/components/Reactions/Reactions.js +55 -43
- package/dist/es2019/components/Reactions/styles.js +7 -0
- package/dist/es2019/components/Selector/Selector.js +55 -24
- package/dist/es2019/components/Selector/styles.js +12 -16
- package/dist/es2019/components/ShowMore/ShowMore.js +9 -25
- package/dist/es2019/components/ShowMore/index.js +1 -1
- package/dist/es2019/components/Trigger/Trigger.js +5 -1
- package/dist/es2019/components/Trigger/styles.js +5 -0
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Counter/Counter.js +17 -4
- package/dist/esm/components/Counter/styles.js +8 -0
- package/dist/esm/components/EmojiButton/EmojiButton.js +20 -5
- package/dist/esm/components/FlashAnimation/FlashAnimation.js +5 -1
- package/dist/esm/components/FlashAnimation/styles.js +8 -0
- package/dist/esm/components/Reaction/Reaction.js +45 -9
- package/dist/esm/components/Reaction/styles.js +12 -0
- package/dist/esm/components/ReactionDialog/ReactionView.js +39 -28
- package/dist/esm/components/ReactionDialog/ReactionsDialog.js +1 -0
- package/dist/esm/components/ReactionDialog/ReactionsList.js +5 -1
- package/dist/esm/components/ReactionDialog/styles.js +40 -1
- package/dist/esm/components/ReactionParticleEffect/ReactionParticleEffect.js +19 -12
- package/dist/esm/components/ReactionParticleEffect/styles.js +9 -0
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +19 -9
- package/dist/esm/components/ReactionPicker/styles.js +13 -0
- package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +5 -1
- package/dist/esm/components/ReactionTooltip/styles.js +12 -0
- package/dist/esm/components/Reactions/Reactions.js +56 -44
- package/dist/esm/components/Reactions/styles.js +7 -0
- package/dist/esm/components/Selector/Selector.js +61 -33
- package/dist/esm/components/Selector/styles.js +13 -19
- package/dist/esm/components/ShowMore/ShowMore.js +10 -28
- package/dist/esm/components/ShowMore/index.js +1 -1
- package/dist/esm/components/Trigger/Trigger.js +5 -1
- package/dist/esm/components/Trigger/styles.js +3 -0
- package/dist/types/MockReactionsClient.d.ts +1 -1
- package/dist/types/analytics/index.d.ts +3 -3
- package/dist/types/client/ReactionServiceClient.d.ts +1 -1
- package/dist/types/components/EmojiButton/EmojiButton.d.ts +2 -2
- package/dist/types/components/FlashAnimation/FlashAnimation.d.ts +1 -1
- package/dist/types/components/Reaction/Reaction.d.ts +1 -5
- package/dist/types/components/ReactionDialog/ReactionView.d.ts +3 -3
- package/dist/types/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
- package/dist/types/components/ReactionDialog/ReactionsList.d.ts +2 -2
- package/dist/types/components/ReactionDialog/styles.d.ts +1 -1
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +5 -5
- package/dist/types/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
- package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
- package/dist/types/components/ReactionTooltip/index.d.ts +1 -1
- package/dist/types/components/Selector/Selector.d.ts +2 -2
- package/dist/types/components/Selector/styles.d.ts +0 -7
- package/dist/types/components/ShowMore/ShowMore.d.ts +3 -21
- package/dist/types/components/ShowMore/index.d.ts +1 -1
- package/dist/types/components/Trigger/Trigger.d.ts +2 -2
- package/dist/types/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
- package/dist/types/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
- package/dist/types/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types/containers/index.d.ts +1 -1
- package/dist/types/hooks/useCloseManager.d.ts +1 -1
- package/dist/types/hooks/useFocusTrap.d.ts +1 -1
- package/dist/types/shared/constants.d.ts +1 -1
- package/dist/types/shared/utils.d.ts +1 -1
- package/dist/types/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types/store/ReactionConsumer.d.ts +1 -1
- package/dist/types/store/utils.d.ts +1 -1
- package/dist/types/types/client.d.ts +1 -1
- package/dist/types/types/reaction.d.ts +2 -2
- package/dist/types/types/store.d.ts +3 -3
- package/dist/types-ts4.5/MockReactionsClient.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +3 -3
- package/dist/types-ts4.5/client/ReactionServiceClient.d.ts +1 -1
- package/dist/types-ts4.5/components/EmojiButton/EmojiButton.d.ts +2 -2
- package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +1 -1
- package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +1 -5
- package/dist/types-ts4.5/components/ReactionDialog/ReactionView.d.ts +3 -3
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsDialog.d.ts +3 -3
- package/dist/types-ts4.5/components/ReactionDialog/ReactionsList.d.ts +2 -2
- package/dist/types-ts4.5/components/ReactionDialog/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +5 -5
- package/dist/types-ts4.5/components/ReactionPicker/RepositionOnUpdate.d.ts +1 -1
- package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +2 -2
- package/dist/types-ts4.5/components/ReactionTooltip/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Selector/Selector.d.ts +2 -2
- package/dist/types-ts4.5/components/Selector/styles.d.ts +0 -7
- package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +3 -21
- package/dist/types-ts4.5/components/ShowMore/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +2 -2
- package/dist/types-ts4.5/components/UfoErrorBoundary/UfoErrorBoundary.d.ts +3 -3
- package/dist/types-ts4.5/containers/ConnectedReactionPicker/ConnectedReactionPicker.d.ts +2 -2
- package/dist/types-ts4.5/containers/ConnectedReactionsView/ConnectedReactionsView.d.ts +2 -2
- package/dist/types-ts4.5/containers/index.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useCloseManager.d.ts +1 -1
- package/dist/types-ts4.5/hooks/useFocusTrap.d.ts +1 -1
- package/dist/types-ts4.5/shared/constants.d.ts +1 -1
- package/dist/types-ts4.5/shared/utils.d.ts +1 -1
- package/dist/types-ts4.5/store/MemoryReactionsStore.d.ts +1 -1
- package/dist/types-ts4.5/store/ReactionConsumer.d.ts +1 -1
- package/dist/types-ts4.5/store/utils.d.ts +1 -1
- package/dist/types-ts4.5/types/client.d.ts +1 -1
- package/dist/types-ts4.5/types/reaction.d.ts +2 -2
- package/dist/types-ts4.5/types/store.d.ts +3 -3
- package/docs/0-intro.tsx +42 -48
- package/docs/1-connected-reaction-picker.tsx +25 -25
- package/docs/2-connected-reactions-view.tsx +25 -25
- package/docs/3-reactions-store.tsx +29 -30
- package/docs/4-reaction-service-client.tsx +5 -5
- package/docs/5-graphql-support.tsx +24 -26
- package/local-config-example.ts +3 -3
- package/package.json +109 -110
- package/report.api.md +241 -273
- package/dist/cjs/components/EmojiButton/styles.js +0 -23
- package/dist/cjs/components/ShowMore/styles.js +0 -36
- package/dist/es2019/components/EmojiButton/styles.js +0 -16
- package/dist/es2019/components/ShowMore/styles.js +0 -29
- package/dist/esm/components/EmojiButton/styles.js +0 -16
- package/dist/esm/components/ShowMore/styles.js +0 -29
- package/dist/types/components/EmojiButton/styles.d.ts +0 -1
- package/dist/types/components/ShowMore/styles.d.ts +0 -3
- package/dist/types-ts4.5/components/EmojiButton/styles.d.ts +0 -1
- package/dist/types-ts4.5/components/ShowMore/styles.d.ts +0 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { B400, N500, N800 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../../shared/constants';
|
|
@@ -16,23 +17,30 @@ border blue below the reaction. Setting Border Width based on number of reaction
|
|
|
16
17
|
in case the container overflows */
|
|
17
18
|
export const containerStyle = reactionsBorderWidth => css({
|
|
18
19
|
overflow: 'hidden',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
maxWidth: `${CONTAINER_WIDTH}px`,
|
|
20
22
|
height: '100%',
|
|
21
23
|
display: 'flex',
|
|
22
24
|
justifyContent: 'start',
|
|
23
25
|
position: 'relative',
|
|
24
26
|
scrollBehavior: 'smooth',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
25
28
|
'&:after': {
|
|
26
29
|
content: '""',
|
|
27
30
|
zIndex: 0,
|
|
28
31
|
display: 'block',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
33
|
minWidth: `${reactionsBorderWidth}%`,
|
|
30
34
|
bottom: '0px',
|
|
31
35
|
position: 'absolute'
|
|
32
36
|
}
|
|
33
37
|
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
34
40
|
export const titleStyle = css({
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
42
|
'& > h1': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
36
44
|
fontSize: '24px!important',
|
|
37
45
|
color: `${`var(--ds-text, ${N800})`}`
|
|
38
46
|
}
|
|
@@ -46,13 +54,17 @@ export const counterStyle = isSelected => css({
|
|
|
46
54
|
alignSelf: 'center',
|
|
47
55
|
lineHeight: '14px',
|
|
48
56
|
fontSize: '11px',
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
58
|
fontWeight: isSelected ? 700 : 400,
|
|
50
59
|
paddingRight: '0px',
|
|
51
60
|
marginTop: "var(--ds-space-075, 6px)",
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
62
|
'> div': {
|
|
53
63
|
width: '100%',
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
54
65
|
padding: `${"var(--ds-space-0, 0px)"}!important`,
|
|
55
66
|
//Counter component has its own styles overriding them to match designs
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
68
|
color: isSelected ? `${`var(--ds-text, ${B400})`}!important` : `2px solid ${`var(--ds-text, ${N500})`}!important`
|
|
57
69
|
}
|
|
58
70
|
});
|
|
@@ -64,7 +76,9 @@ const fadedCss = (edge, theme) => css({
|
|
|
64
76
|
width: `${REACTIONS_CONTAINER_WIDTH}px`,
|
|
65
77
|
height: `${REACTION_CONTAINER_HEIGHT}px`,
|
|
66
78
|
zIndex: 0,
|
|
67
|
-
background:
|
|
79
|
+
background:
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
81
|
+
theme === 'dark' ? `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(34, 39, 43, 0.95) 40.23%, rgba(34, 39, 43, 0.55) 58.33%, rgba(34, 39, 43, 0) 77.49%)` : `linear-gradient(${containerEdgeAngle[edge]}deg, rgba(255, 255, 255, 0.95) 40.23%, rgba(255, 255, 255, 0.55) 58.33%, rgba(255, 255, 255, 0) 77.49%)`
|
|
68
82
|
});
|
|
69
83
|
export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
|
|
70
84
|
flexShrink: 0,
|
|
@@ -78,19 +92,25 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
|
|
|
78
92
|
marginRight: REACTION_RIGHT_MARGIN_TOKEN,
|
|
79
93
|
boxSizing: 'border-box',
|
|
80
94
|
position: 'relative',
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
81
96
|
'> div': {
|
|
82
97
|
minWidth: `${REACTIONS_CONTAINER_WIDTH}px`,
|
|
83
98
|
minHeight: `${REACTION_CONTAINER_HEIGHT}px`,
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
84
100
|
padding: '0px !important',
|
|
85
101
|
alignItems: 'center',
|
|
86
102
|
justifyContent: 'center'
|
|
87
103
|
},
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
88
105
|
'& > span': {
|
|
89
106
|
minHeight: '16px',
|
|
90
107
|
minWidth: '16px'
|
|
91
108
|
},
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
92
110
|
'&.disabled:after': fadedCss('rightEdge', theme),
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
93
112
|
'&.disabled + &.disabled:after': fadedCss('leftEdge', theme),
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
94
114
|
'&:after': isSelected ? {
|
|
95
115
|
content: '""',
|
|
96
116
|
borderBottom: `2px solid ${`var(--ds-text, ${B400})`}`,
|
|
@@ -109,18 +129,25 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
|
|
|
109
129
|
zIndex: 1
|
|
110
130
|
}
|
|
111
131
|
});
|
|
132
|
+
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
112
134
|
export const navigationContainerStyle = css({
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
113
136
|
'> button': {
|
|
114
137
|
cursor: 'pointer'
|
|
115
138
|
},
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
116
140
|
'button:last-child': {
|
|
117
141
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
118
142
|
}
|
|
119
143
|
});
|
|
144
|
+
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
120
146
|
export const reactionViewStyle = css({
|
|
121
147
|
marginTop: "var(--ds-space-300, 24px)",
|
|
122
148
|
display: 'flex',
|
|
123
149
|
flexDirection: 'column',
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
124
151
|
p: {
|
|
125
152
|
margin: 0,
|
|
126
153
|
color: `${`var(--ds-text, ${N800})`}`,
|
|
@@ -128,40 +155,52 @@ export const reactionViewStyle = css({
|
|
|
128
155
|
fontWeight: 600,
|
|
129
156
|
fontSize: 16,
|
|
130
157
|
lineHeight: '20px',
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
131
159
|
'> span': {
|
|
132
160
|
marginRight: "var(--ds-space-100, 8px)"
|
|
133
161
|
}
|
|
134
162
|
}
|
|
135
163
|
});
|
|
164
|
+
|
|
165
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
136
166
|
export const userListStyle = css({
|
|
137
167
|
listStyle: 'none',
|
|
138
168
|
marginTop: "var(--ds-space-200, 16px)",
|
|
139
169
|
padding: 0,
|
|
140
170
|
textAlign: 'left',
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
141
172
|
li: {
|
|
142
173
|
color: `${`var(--ds-text, ${N500})`}`,
|
|
143
174
|
fontSize: 14
|
|
144
175
|
}
|
|
145
176
|
});
|
|
177
|
+
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
146
179
|
export const userStyle = css({
|
|
147
180
|
display: 'flex',
|
|
148
181
|
alignItems: 'center',
|
|
149
182
|
padding: `${"var(--ds-space-100, 8px)"} 0px ${"var(--ds-space-100, 8px)"} 0px`,
|
|
183
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
150
184
|
'> span': {
|
|
151
185
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
152
186
|
}
|
|
153
187
|
});
|
|
188
|
+
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
154
190
|
export const customTabListStyles = css({
|
|
155
191
|
overflow: 'auto',
|
|
156
192
|
scrollBehavior: 'smooth',
|
|
157
193
|
display: 'flex',
|
|
158
194
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
159
196
|
'div[role=tablist]': {
|
|
160
197
|
flexGrow: 1,
|
|
161
198
|
// paddingInline exists to maintain styling prior to @atlaskit/tabs update that removed baked in horizontal padding
|
|
162
199
|
paddingInline: "var(--ds-space-100, 8px)"
|
|
163
200
|
}
|
|
164
201
|
});
|
|
202
|
+
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
165
204
|
export const centerSpinner = css({
|
|
166
205
|
display: 'flex',
|
|
167
206
|
justifyContent: 'center',
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ResourcedEmoji } from '@atlaskit/emoji';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { containerStyle, reactionParticleStyle } from './styles';
|
|
5
6
|
export const PARTICLE_COUNT = 4;
|
|
6
7
|
export const ReactionParticleEffect = ({
|
|
7
8
|
emojiProvider,
|
|
8
9
|
emojiId
|
|
9
|
-
}) =>
|
|
10
|
+
}) =>
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
|
+
jsx("div", {
|
|
10
13
|
css: containerStyle
|
|
11
14
|
}, [...Array(PARTICLE_COUNT)].map((_, index) => {
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
return (
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
|
+
jsx("div", {
|
|
18
|
+
key: index,
|
|
19
|
+
css: reactionParticleStyle
|
|
20
|
+
}, jsx(ResourcedEmoji, {
|
|
21
|
+
emojiProvider: emojiProvider,
|
|
22
|
+
emojiId: emojiId,
|
|
23
|
+
fitToHeight: 16
|
|
24
|
+
}))
|
|
25
|
+
);
|
|
20
26
|
}));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { layers } from '@atlaskit/theme/constants';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
4
|
import { css, keyframes } from '@emotion/react';
|
|
3
5
|
const fade = keyframes({
|
|
4
6
|
'0%': {
|
|
@@ -22,12 +24,16 @@ const float = keyframes({
|
|
|
22
24
|
transform: 'translateY(-120px) scale(1.7)'
|
|
23
25
|
}
|
|
24
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
29
|
export const containerStyle = css({
|
|
26
30
|
position: 'relative',
|
|
27
31
|
left: 8,
|
|
28
32
|
// Ensure the effect displays above tooltips
|
|
29
33
|
zIndex: layers.tooltip() + 1
|
|
30
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
31
37
|
export const reactionParticleStyle = css({
|
|
32
38
|
position: 'absolute',
|
|
33
39
|
top: 0,
|
|
@@ -37,14 +43,17 @@ export const reactionParticleStyle = css({
|
|
|
37
43
|
animation: `${fade} ease-in-out, ${float} ease`,
|
|
38
44
|
animationDuration: '700ms',
|
|
39
45
|
// Override position and delay for each particle
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
40
47
|
':nth-child(2)': {
|
|
41
48
|
left: -5,
|
|
42
49
|
animationDelay: '0.15s'
|
|
43
50
|
},
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
44
52
|
':nth-child(3)': {
|
|
45
53
|
left: 8,
|
|
46
54
|
animationDelay: '0.3s'
|
|
47
55
|
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
57
|
':nth-child(4)': {
|
|
49
58
|
left: -1,
|
|
50
59
|
animationDelay: '0.45s'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback, useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
6
|
import { EmojiPicker } from '@atlaskit/emoji/picker';
|
|
@@ -30,11 +31,11 @@ export const RENDER_REACTIONPICKERPANEL_TESTID = 'reactionPickerPanel-testid';
|
|
|
30
31
|
const PICKER_CONTROL_ID = 'emoji-picker';
|
|
31
32
|
const popperModifiers = [
|
|
32
33
|
/**
|
|
33
|
-
|
|
34
|
-
https://popper.js.org/docs/v1/#modifiers
|
|
35
|
-
https://popper.js.org/docs/v1/#modifiers..applyStyle
|
|
36
|
-
{ name: 'applyStyle', enabled: false },
|
|
37
|
-
|
|
34
|
+
Removing this applyStyle modifier as it throws client errors ref:
|
|
35
|
+
https://popper.js.org/docs/v1/#modifiers
|
|
36
|
+
https://popper.js.org/docs/v1/#modifiers..applyStyle
|
|
37
|
+
{ name: 'applyStyle', enabled: false },
|
|
38
|
+
*/
|
|
38
39
|
{
|
|
39
40
|
name: 'hide',
|
|
40
41
|
enabled: false
|
|
@@ -167,7 +168,10 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
167
168
|
(_updatePopper$current = updatePopper.current) === null || _updatePopper$current === void 0 ? void 0 : _updatePopper$current.call(updatePopper);
|
|
168
169
|
}, [settings]);
|
|
169
170
|
return jsx("div", {
|
|
170
|
-
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
172
|
+
className: wrapperClassName
|
|
173
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
174
|
+
,
|
|
171
175
|
css: pickerStyle,
|
|
172
176
|
"data-testid": RENDER_REACTIONPICKER_TESTID,
|
|
173
177
|
ref: wrapperRef
|
|
@@ -200,7 +204,9 @@ export const ReactionPicker = /*#__PURE__*/React.memo(props => {
|
|
|
200
204
|
emojiProvider: emojiProvider,
|
|
201
205
|
onSelection: onEmojiSelected,
|
|
202
206
|
size: emojiPickerSize
|
|
203
|
-
}) :
|
|
207
|
+
}) :
|
|
208
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
209
|
+
jsx("div", {
|
|
204
210
|
css: contentStyle
|
|
205
211
|
}, jsx(Selector, {
|
|
206
212
|
emojiProvider: emojiProvider,
|
|
@@ -233,7 +239,9 @@ const PopperWrapper = props => {
|
|
|
233
239
|
}) => {
|
|
234
240
|
return jsx("div", {
|
|
235
241
|
id: PICKER_CONTROL_ID,
|
|
236
|
-
"data-testid": RENDER_REACTIONPICKERPANEL_TESTID
|
|
242
|
+
"data-testid": RENDER_REACTIONPICKERPANEL_TESTID
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
244
|
+
,
|
|
237
245
|
style: {
|
|
238
246
|
zIndex: layers.layer(),
|
|
239
247
|
...style
|
|
@@ -247,7 +255,9 @@ const PopperWrapper = props => {
|
|
|
247
255
|
}
|
|
248
256
|
setPopupRef(node);
|
|
249
257
|
}
|
|
250
|
-
}
|
|
258
|
+
}
|
|
259
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
260
|
+
,
|
|
251
261
|
css: popupWrapperStyle,
|
|
252
262
|
tabIndex: 0
|
|
253
263
|
}, jsx(RepositionOnUpdate, {
|
|
@@ -1,26 +1,39 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
4
5
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
7
|
export const pickerStyle = css({
|
|
6
8
|
verticalAlign: 'middle',
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
10
|
'&.miniMode': {
|
|
8
11
|
display: 'inline-block'
|
|
9
12
|
}
|
|
10
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
16
|
export const contentStyle = css({
|
|
12
17
|
display: 'flex'
|
|
13
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
14
21
|
export const popupWrapperStyle = css({
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
15
23
|
':focus': {
|
|
16
24
|
outline: 'none'
|
|
17
25
|
}
|
|
18
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
29
|
export const popupStyle = css({
|
|
20
30
|
background: `var(--ds-surface-overlay, ${N0})`,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
32
|
borderRadius: `${borderRadius()}px`,
|
|
22
33
|
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N50A}, 0 0 1px ${N60A}`})`,
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
35
|
'&> div': {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
37
|
boxShadow: undefined,
|
|
25
38
|
marginTop: "var(--ds-space-050, 4px)",
|
|
26
39
|
marginBottom: "var(--ds-space-050, 4px)"
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { jsx } from '@emotion/react';
|
|
5
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
@@ -27,7 +28,9 @@ export const ReactionTooltip = ({
|
|
|
27
28
|
/**
|
|
28
29
|
* Render list of users in the tooltip box
|
|
29
30
|
*/
|
|
30
|
-
const content = !users || users.length === 0 || !isEnabled ? null :
|
|
31
|
+
const content = !users || users.length === 0 || !isEnabled ? null :
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
+
jsx("div", {
|
|
31
34
|
css: tooltipStyle,
|
|
32
35
|
tabIndex: 0
|
|
33
36
|
}, jsx("ul", null, emojiName ? jsx("li", {
|
|
@@ -37,6 +40,7 @@ export const ReactionTooltip = ({
|
|
|
37
40
|
key: user.id
|
|
38
41
|
}, user.displayName);
|
|
39
42
|
}), jsx("li", {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
44
|
css: allowUserDialog ? [footerStyle, underlineStyle] : footerStyle,
|
|
41
45
|
onClick: () => {
|
|
42
46
|
if (allowUserDialog && handleUserListClick) {
|
|
@@ -1,37 +1,49 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { N90, N800, N0 } from '@atlaskit/theme/colors';
|
|
4
5
|
export const verticalMargin = 5;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
8
|
export const tooltipStyle = css({
|
|
6
9
|
maxWidth: '150px',
|
|
7
10
|
textOverflow: 'ellipsis',
|
|
8
11
|
whiteSpace: 'nowrap',
|
|
9
12
|
overflow: 'hidden',
|
|
10
13
|
marginBottom: verticalMargin,
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
15
|
ul: {
|
|
12
16
|
listStyle: 'none',
|
|
13
17
|
margin: 0,
|
|
14
18
|
padding: 0,
|
|
15
19
|
textAlign: 'left'
|
|
16
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
22
|
li: {
|
|
18
23
|
overflow: 'hidden',
|
|
19
24
|
textOverflow: 'ellipsis',
|
|
20
25
|
marginTop: verticalMargin
|
|
21
26
|
}
|
|
22
27
|
});
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
23
30
|
export const emojiNameStyle = css({
|
|
24
31
|
textTransform: 'capitalize',
|
|
25
32
|
color: `var(--ds-text-inverse, ${N90})`,
|
|
26
33
|
fontWeight: 600
|
|
27
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
37
|
export const footerStyle = css({
|
|
29
38
|
color: `var(--ds-text-inverse, ${N90})`,
|
|
30
39
|
fontWeight: 300
|
|
31
40
|
});
|
|
41
|
+
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
32
43
|
export const underlineStyle = css({
|
|
33
44
|
cursor: 'pointer',
|
|
34
45
|
textDecoration: 'underline',
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
35
47
|
':hover': {
|
|
36
48
|
backgroundColor: `var(--ds-background-neutral-bold, ${N800})`,
|
|
37
49
|
color: `var(--ds-text-inverse, ${N0})`
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
6
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
7
|
import { ModalTransition } from '@atlaskit/modal-dialog';
|
|
7
|
-
import Button from '@atlaskit/button';
|
|
8
|
+
import Button from '@atlaskit/button/standard-button';
|
|
8
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
9
10
|
import { createAndFireSafe, createPickerButtonClickedEvent, createPickerCancelledEvent, createPickerMoreClickedEvent, createReactionsRenderedEvent, createReactionSelectionEvent, isSampled } from '../../analytics';
|
|
10
11
|
import { SAMPLING_RATE_REACTIONS_RENDERED_EXP } from '../../shared/constants';
|
|
@@ -231,46 +232,57 @@ export const Reactions = /*#__PURE__*/React.memo(({
|
|
|
231
232
|
});
|
|
232
233
|
return reactions.concat(items);
|
|
233
234
|
}, [quickReactionEmojis, reactions]);
|
|
234
|
-
return
|
|
235
|
-
css
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
reaction
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
235
|
+
return (
|
|
236
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
237
|
+
jsx("div", {
|
|
238
|
+
css: wrapperStyle,
|
|
239
|
+
"data-testid": RENDER_REACTIONS_TESTID
|
|
240
|
+
}, memorizedReactions.map(reaction => jsx(Reaction, {
|
|
241
|
+
key: reaction.emojiId,
|
|
242
|
+
reaction: reaction,
|
|
243
|
+
emojiProvider: emojiProvider,
|
|
244
|
+
onClick: onReactionClick,
|
|
245
|
+
onMouseEnter: handleReactionMouseEnter,
|
|
246
|
+
onFocused: handleReactionFocused,
|
|
247
|
+
flash: flash[reaction.emojiId],
|
|
248
|
+
handleUserListClick: handleOpenReactionsDialog,
|
|
249
|
+
allowUserDialog: allowUserDialog,
|
|
250
|
+
showParticleEffect: particleEffectByEmoji[reaction.emojiId]
|
|
251
|
+
})), jsx(ReactionPicker
|
|
252
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
253
|
+
, {
|
|
254
|
+
css: reactionPickerStyle,
|
|
255
|
+
emojiProvider: emojiProvider,
|
|
256
|
+
allowAllEmojis: allowAllEmojis,
|
|
257
|
+
pickerQuickReactionEmojiIds: pickerQuickReactionEmojiIds,
|
|
258
|
+
disabled: status !== ReactionStatus.ready,
|
|
259
|
+
onSelection: handleOnSelection,
|
|
260
|
+
onOpen: handlePickerOpen,
|
|
261
|
+
onCancel: handleOnCancel,
|
|
262
|
+
onShowMore: handleOnMore,
|
|
263
|
+
tooltipContent: getTooltip(status, errorMessage),
|
|
264
|
+
emojiPickerSize: emojiPickerSize,
|
|
265
|
+
miniMode: miniMode
|
|
266
|
+
}), allowUserDialog && reactions.length > 0 && jsx(Tooltip, {
|
|
267
|
+
content: jsx(FormattedMessage, messages.seeWhoReactedTooltip),
|
|
268
|
+
hideTooltipOnClick: true
|
|
269
|
+
}, jsx(Button
|
|
270
|
+
// TODO: (from codemod) "link" and "subtle-link" appearances are only available in LinkButton, please either provide a href prop then migrate to LinkButton, or remove the appearance from the default button.
|
|
271
|
+
// https://product-fabric.atlassian.net/browse/DSP-18982
|
|
272
|
+
, {
|
|
273
|
+
appearance: "subtle-link",
|
|
274
|
+
onClick: handleOpenAllReactionsDialog
|
|
275
|
+
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
276
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
277
|
+
,
|
|
278
|
+
css: seeWhoReactedStyle,
|
|
279
|
+
testId: RENDER_VIEWALL_REACTED_USERS_DIALOG
|
|
280
|
+
}, jsx(FormattedMessage, messages.seeWhoReacted))), jsx(ModalTransition, null, !!selectedEmojiId && jsx(ReactionsDialog, {
|
|
281
|
+
selectedEmojiId: selectedEmojiId,
|
|
282
|
+
reactions: memorizedReactions,
|
|
283
|
+
emojiProvider: emojiProvider,
|
|
284
|
+
handleCloseReactionsDialog: handleCloseReactionsDialog,
|
|
285
|
+
handleSelectReaction: handleSelectReactionInDialog
|
|
286
|
+
})))
|
|
287
|
+
);
|
|
276
288
|
});
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
5
|
export const reactionPickerStyle = css({
|
|
4
6
|
display: 'inline-block',
|
|
5
7
|
marginTop: "var(--ds-space-050, 4px)"
|
|
6
8
|
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
7
11
|
export const seeWhoReactedStyle = css({
|
|
8
12
|
height: '24px',
|
|
9
13
|
lineHeight: '24px',
|
|
@@ -12,6 +16,8 @@ export const seeWhoReactedStyle = css({
|
|
|
12
16
|
marginTop: "var(--ds-space-050, 4px)",
|
|
13
17
|
marginLeft: "var(--ds-space-050, 4px)"
|
|
14
18
|
});
|
|
19
|
+
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
21
|
export const wrapperStyle = css({
|
|
16
22
|
display: 'flex',
|
|
17
23
|
flexWrap: 'wrap',
|
|
@@ -19,6 +25,7 @@ export const wrapperStyle = css({
|
|
|
19
25
|
alignItems: 'center',
|
|
20
26
|
borderRadius: '15px',
|
|
21
27
|
marginTop: "var(--ds-space-negative-050, -4px)",
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
22
29
|
'> :first-of-type > :first-of-type': {
|
|
23
30
|
marginLeft: 0
|
|
24
31
|
}
|