@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,16 +1,50 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import React, { Fragment, useEffect, 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';
|
|
5
|
+
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
4
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
5
7
|
import { DefaultReactions } from '../../shared/constants';
|
|
6
8
|
import { EmojiButton } from '../EmojiButton';
|
|
7
9
|
import { ShowMore } from '../ShowMore';
|
|
8
|
-
import { emojiStyle, revealStyle
|
|
10
|
+
import { emojiStyle, revealStyle } from './styles';
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* Test id for wrapper Selector div
|
|
12
14
|
*/
|
|
13
15
|
export const RENDER_SELECTOR_TESTID = 'render-selector';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Delay for each emoji reveal animation, in ms
|
|
19
|
+
*/
|
|
20
|
+
const REVEAL_DELAY = 50;
|
|
21
|
+
const containerStyles = xcss({
|
|
22
|
+
padding: 'space.050'
|
|
23
|
+
});
|
|
24
|
+
const separatorStyles = xcss({
|
|
25
|
+
borderLeftColor: 'color.border',
|
|
26
|
+
borderLeftStyle: 'solid',
|
|
27
|
+
borderLeftWidth: 'border.width',
|
|
28
|
+
marginInlineStart: 'space.050',
|
|
29
|
+
marginInlineEnd: 'space.100',
|
|
30
|
+
height: '24px',
|
|
31
|
+
display: 'inline-block'
|
|
32
|
+
});
|
|
33
|
+
const Reveal = ({
|
|
34
|
+
children,
|
|
35
|
+
delay
|
|
36
|
+
}) => {
|
|
37
|
+
return jsx("div", {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
39
|
+
css: revealStyle
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
41
|
+
,
|
|
42
|
+
style: delay ? {
|
|
43
|
+
animationDelay: `${delay}ms`
|
|
44
|
+
} : undefined
|
|
45
|
+
}, children);
|
|
46
|
+
};
|
|
47
|
+
|
|
14
48
|
/**
|
|
15
49
|
* Reactions picker panel part of the <ReactionPicker /> component
|
|
16
50
|
*/
|
|
@@ -50,14 +84,6 @@ export const Selector = ({
|
|
|
50
84
|
setSelection(item);
|
|
51
85
|
};
|
|
52
86
|
|
|
53
|
-
/**
|
|
54
|
-
* custom css styling for the emoji icon
|
|
55
|
-
* @param index location of the emoji in the rendered list of items
|
|
56
|
-
*/
|
|
57
|
-
const emojiStyleAnimation = index => ({
|
|
58
|
-
animationDelay: `${index * 50}ms`
|
|
59
|
-
});
|
|
60
|
-
|
|
61
87
|
/**
|
|
62
88
|
* Render the default emoji icon
|
|
63
89
|
* @param emoji emoji item
|
|
@@ -65,11 +91,15 @@ export const Selector = ({
|
|
|
65
91
|
*/
|
|
66
92
|
const renderEmoji = (emoji, index) => {
|
|
67
93
|
var _emoji$id;
|
|
68
|
-
return jsx(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
94
|
+
return jsx(Reveal, {
|
|
95
|
+
delay: index * REVEAL_DELAY,
|
|
96
|
+
key: (_emoji$id = emoji.id) !== null && _emoji$id !== void 0 ? _emoji$id : emoji.shortName
|
|
97
|
+
}, jsx("div", {
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
99
|
+
className: emoji === selection ? 'selected' : undefined
|
|
100
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
101
|
+
,
|
|
102
|
+
css: emojiStyle,
|
|
73
103
|
"data-testid": RENDER_SELECTOR_TESTID
|
|
74
104
|
}, jsx(Tooltip, {
|
|
75
105
|
content: emoji.shortName
|
|
@@ -77,16 +107,17 @@ export const Selector = ({
|
|
|
77
107
|
emojiId: emoji,
|
|
78
108
|
emojiProvider: emojiProvider,
|
|
79
109
|
onClick: onSelected
|
|
80
|
-
})));
|
|
110
|
+
}))));
|
|
81
111
|
};
|
|
82
|
-
return jsx(
|
|
83
|
-
|
|
84
|
-
|
|
112
|
+
return jsx(Inline, {
|
|
113
|
+
alignBlock: "center",
|
|
114
|
+
xcss: containerStyles
|
|
115
|
+
}, pickerQuickReactionEmojiIds ? pickerQuickReactionEmojiIds.map(renderEmoji) : null, showMore ? jsx(Fragment, null, jsx(Box, {
|
|
116
|
+
xcss: separatorStyles
|
|
117
|
+
}), jsx(Reveal, {
|
|
118
|
+
delay: DefaultReactions.length * REVEAL_DELAY
|
|
119
|
+
}, jsx(ShowMore, {
|
|
85
120
|
key: "more",
|
|
86
|
-
buttonStyle: revealStyle,
|
|
87
|
-
style: {
|
|
88
|
-
button: emojiStyleAnimation(DefaultReactions.length)
|
|
89
|
-
},
|
|
90
121
|
onClick: onMoreClick
|
|
91
|
-
}) : null);
|
|
122
|
+
}))) : null);
|
|
92
123
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, keyframes } from '@emotion/react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
display: 'flex',
|
|
6
|
-
padding: 0
|
|
7
|
-
});
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
6
|
export const emojiStyle = css({
|
|
9
7
|
display: 'inline-block',
|
|
10
|
-
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
9
|
'&.selected': {
|
|
12
|
-
transition: 'transform 200ms ease-in-out
|
|
10
|
+
transition: 'transform 200ms ease-in-out',
|
|
13
11
|
transform: 'translateY(-48px) scale(2.667)'
|
|
14
12
|
}
|
|
15
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
16
16
|
export const revealAnimation = keyframes({
|
|
17
17
|
'0%': {
|
|
18
18
|
opacity: 1,
|
|
@@ -26,14 +26,10 @@ export const revealAnimation = keyframes({
|
|
|
26
26
|
transform: 'scale(1)'
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
|
-
export const revealStyle = css({
|
|
30
|
-
animation: `${revealAnimation} 150ms ease-in-out forwards`
|
|
31
|
-
});
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
animationDelay: `${index * 50}ms`
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
|
+
export const revealStyle = css({
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
|
+
animation: `${revealAnimation} 150ms ease-in-out forwards`,
|
|
34
|
+
opacity: 0
|
|
39
35
|
});
|
|
@@ -1,44 +1,28 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { jsx } from '@emotion/react';
|
|
4
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
+
import { IconButton } from '@atlaskit/button/new';
|
|
5
5
|
import EditorMoreIcon from '@atlaskit/icon/glyph/editor/more';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
7
|
import { messages } from '../../shared/i18n';
|
|
8
|
-
import { moreButtonStyle, moreEmojiContainerStyle, separatorStyle } from './styles';
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* Test id for wrapper button
|
|
12
11
|
*/
|
|
13
12
|
export const RENDER_SHOWMORE_TESTID = 'show-more-button';
|
|
14
|
-
export const RENDER_WRAPPER_TESTID = 'show-more-wrapper';
|
|
15
13
|
/**
|
|
16
14
|
* Show more custom emojis button
|
|
17
15
|
*/
|
|
18
16
|
export const ShowMore = ({
|
|
19
|
-
onClick
|
|
20
|
-
style = {},
|
|
21
|
-
className = {},
|
|
22
|
-
buttonStyle
|
|
17
|
+
onClick
|
|
23
18
|
}) => {
|
|
24
|
-
return jsx(
|
|
25
|
-
className: className.container,
|
|
26
|
-
css: moreEmojiContainerStyle,
|
|
27
|
-
style: style.container,
|
|
28
|
-
"data-testid": RENDER_WRAPPER_TESTID
|
|
29
|
-
}, jsx("div", {
|
|
30
|
-
css: separatorStyle
|
|
31
|
-
}), jsx(FormattedMessage, messages.moreEmoji, message => jsx(Tooltip, {
|
|
19
|
+
return jsx(FormattedMessage, messages.moreEmoji, message => jsx(Tooltip, {
|
|
32
20
|
content: message
|
|
33
|
-
}, jsx(
|
|
34
|
-
|
|
35
|
-
css: [moreButtonStyle, buttonStyle],
|
|
36
|
-
"aria-label": messages.moreEmoji.defaultMessage,
|
|
37
|
-
type: "button",
|
|
38
|
-
style: style.button,
|
|
21
|
+
}, jsx(IconButton, {
|
|
22
|
+
label: messages.moreEmoji.defaultMessage,
|
|
39
23
|
onClick: onClick,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})))
|
|
24
|
+
testId: RENDER_SHOWMORE_TESTID,
|
|
25
|
+
icon: EditorMoreIcon,
|
|
26
|
+
appearance: "subtle"
|
|
27
|
+
})));
|
|
44
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ShowMore, RENDER_SHOWMORE_TESTID
|
|
1
|
+
export { ShowMore, RENDER_SHOWMORE_TESTID } from './ShowMore';
|
|
@@ -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 Button from '@atlaskit/button/standard-button';
|
|
6
7
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -32,7 +33,10 @@ export const Trigger = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
32
33
|
testId: RENDER_TOOLTIP_TRIGGER_TESTID,
|
|
33
34
|
content: tooltipContent
|
|
34
35
|
}, jsx(Button, _extends({
|
|
35
|
-
testId: RENDER_TRIGGER_BUTTON_TESTID
|
|
36
|
+
testId: RENDER_TRIGGER_BUTTON_TESTID
|
|
37
|
+
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
36
40
|
css: triggerStyle({
|
|
37
41
|
miniMode,
|
|
38
42
|
disabled
|
|
@@ -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 { N70, N20, N40, B100 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -11,17 +12,21 @@ export const triggerStyle = ({
|
|
|
11
12
|
height: '24px',
|
|
12
13
|
padding: 0,
|
|
13
14
|
border: `1px solid ${`var(--ds-border, ${N40})`}`,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
16
|
borderRadius: '20px',
|
|
15
17
|
display: 'flex',
|
|
16
18
|
justifyContent: 'center',
|
|
17
19
|
alignItems: 'center',
|
|
18
20
|
lineHeight: '16px',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
22
|
...(miniMode && {
|
|
20
23
|
minWidth: '24px',
|
|
21
24
|
padding: "var(--ds-space-050, 4px)",
|
|
22
25
|
border: 'none',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
27
|
borderRadius: `${borderRadius()}px`
|
|
24
28
|
}),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
30
|
...(disabled && {
|
|
26
31
|
color: DISABLED_BUTTON_COLOR,
|
|
27
32
|
cursor: 'not-allowed'
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
5
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
6
6
|
var packageName = "@atlaskit/reactions";
|
|
7
|
-
var packageVersion = "22.7.
|
|
7
|
+
var packageVersion = "22.7.2";
|
|
8
8
|
/**
|
|
9
9
|
* TODO: move to utility package?
|
|
10
10
|
* A random sampling function
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect, useMemo, useRef } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx, css } from '@emotion/react';
|
|
4
5
|
import { SlideIn, ExitingPersistence, mediumDurationMs } from '@atlaskit/motion';
|
|
5
6
|
// eslint-disable-next-line @atlaskit/design-system/no-banned-imports
|
|
@@ -52,8 +53,11 @@ export var Counter = function Counter(_ref) {
|
|
|
52
53
|
return lastValue.current ? lastValue.current < value : false;
|
|
53
54
|
}, [value]);
|
|
54
55
|
return jsx("div", {
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
55
57
|
className: className,
|
|
56
|
-
"data-testid": RENDER_COMPONENT_WRAPPER
|
|
58
|
+
"data-testid": RENDER_COMPONENT_WRAPPER
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
60
|
+
,
|
|
57
61
|
css: countStyle
|
|
58
62
|
}, jsx(ExitingPersistence, null, jsx(SlideIn, {
|
|
59
63
|
enterFrom: isIncreasing ? 'top' : 'bottom',
|
|
@@ -63,13 +67,22 @@ export var Counter = function Counter(_ref) {
|
|
|
63
67
|
}, function (motion, direction) {
|
|
64
68
|
return jsx("div", {
|
|
65
69
|
ref: motion.ref,
|
|
66
|
-
css: [
|
|
70
|
+
css: [
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
72
|
+
containerStyle,
|
|
73
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
74
|
+
css({
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
76
|
position: direction === 'exiting' ? 'absolute' : undefined
|
|
68
|
-
})]
|
|
77
|
+
})]
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
79
|
+
,
|
|
69
80
|
className: motion.className,
|
|
70
81
|
"data-testid": RENDER_COUNTER_TESTID
|
|
71
82
|
}, jsx("span", {
|
|
72
|
-
"data-testid": RENDER_LABEL_TESTID
|
|
83
|
+
"data-testid": RENDER_LABEL_TESTID
|
|
84
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
85
|
+
,
|
|
73
86
|
css: highlight ? [counterLabelStyle, highlightStyle] : counterLabelStyle,
|
|
74
87
|
key: value
|
|
75
88
|
}, label));
|
|
@@ -1,6 +1,8 @@
|
|
|
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, B400 } from '@atlaskit/theme/colors';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
4
6
|
export var countStyle = css({
|
|
5
7
|
fontSize: 11,
|
|
6
8
|
color: "var(--ds-text-subtlest, ".concat(N90, ")"),
|
|
@@ -9,13 +11,19 @@ export var countStyle = css({
|
|
|
9
11
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)", " 0"),
|
|
10
12
|
lineHeight: '14px'
|
|
11
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
|
|
12
16
|
export var containerStyle = css({
|
|
13
17
|
display: 'flex',
|
|
14
18
|
flexDirection: 'column'
|
|
15
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
16
22
|
export var highlightStyle = css({
|
|
17
23
|
color: "var(--ds-text-selected, ".concat(B400, ")")
|
|
18
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
27
|
export var counterLabelStyle = css({
|
|
20
28
|
fontVariantNumeric: 'tabular-nums'
|
|
21
29
|
});
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
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 { ResourcedEmoji } from '@atlaskit/emoji';
|
|
7
|
+
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
6
8
|
import { messages } from '../../shared/i18n';
|
|
7
9
|
import { isLeftClick } from '../../shared/utils';
|
|
8
|
-
|
|
10
|
+
var emojiButtonStyles = xcss({
|
|
11
|
+
outline: 'none',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
backgroundColor: 'color.background.neutral.subtle',
|
|
14
|
+
border: 0,
|
|
15
|
+
borderRadius: 'border.radius',
|
|
16
|
+
margin: 'space.0',
|
|
17
|
+
padding: 'space.100',
|
|
18
|
+
// @ts-expect-error - Nested selectors not supported in XCSS
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
|
+
':hover > span': {
|
|
21
|
+
transition: 'transform cubic-bezier(0.23, 1, 0.32, 1) 200ms',
|
|
22
|
+
transform: 'scale(1.33)'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
9
25
|
export var RENDER_BUTTON_TESTID = 'button-emoji-id';
|
|
10
26
|
/**
|
|
11
27
|
* custom button to render the custom emoji selector inside the reaction picker
|
|
@@ -21,14 +37,13 @@ export var EmojiButton = function EmojiButton(_ref) {
|
|
|
21
37
|
}
|
|
22
38
|
};
|
|
23
39
|
var intl = useIntl();
|
|
24
|
-
return jsx(
|
|
25
|
-
|
|
40
|
+
return jsx(Pressable, {
|
|
41
|
+
testId: RENDER_BUTTON_TESTID,
|
|
26
42
|
onClick: onButtonClick,
|
|
27
43
|
"aria-label": intl.formatMessage(messages.reactWithEmoji, {
|
|
28
44
|
emoji: emojiId.shortName
|
|
29
45
|
}),
|
|
30
|
-
|
|
31
|
-
css: emojiButtonStyle
|
|
46
|
+
xcss: emojiButtonStyles
|
|
32
47
|
}, jsx(ResourcedEmoji, {
|
|
33
48
|
emojiProvider: emojiProvider,
|
|
34
49
|
emojiId: emojiId
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
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, flashStyle } from './styles';
|
|
5
6
|
/**
|
|
@@ -12,7 +13,10 @@ export var RENDER_FLASHANIMATION_TESTID = 'flash-animation';
|
|
|
12
13
|
*/
|
|
13
14
|
export var FlashAnimation = function FlashAnimation(props) {
|
|
14
15
|
return jsx("div", {
|
|
15
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
17
|
+
className: props.className
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
+
,
|
|
16
20
|
css: [containerStyle, props.flash && flashStyle],
|
|
17
21
|
"data-testid": RENDER_FLASHANIMATION_TESTID
|
|
18
22
|
}, props.children);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, keyframes } from '@emotion/react';
|
|
3
4
|
import { B75, B300 } from '@atlaskit/theme/colors';
|
|
4
5
|
var flashTime = 700;
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
5
8
|
export var flashAnimation = keyframes({
|
|
6
9
|
'0%': {
|
|
7
10
|
backgroundColor: 'transparent'
|
|
@@ -19,10 +22,15 @@ export var flashAnimation = keyframes({
|
|
|
19
22
|
borderColor: "var(--ds-border-selected, ".concat(B300, ")")
|
|
20
23
|
}
|
|
21
24
|
});
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
27
|
export var containerStyle = css({
|
|
23
28
|
width: '100%',
|
|
24
29
|
height: '100%'
|
|
25
30
|
});
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
26
33
|
export var flashStyle = css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
35
|
animation: "".concat(flashAnimation, " ").concat(flashTime, "ms ease-in-out")
|
|
28
36
|
});
|
|
@@ -4,9 +4,11 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
6
|
import { useIntl } from 'react-intl-next';
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
8
|
import { jsx } from '@emotion/react';
|
|
8
9
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
9
10
|
import { ResourcedEmoji } from '@atlaskit/emoji';
|
|
11
|
+
import { Box, Pressable, xcss } from '@atlaskit/primitives';
|
|
10
12
|
import { createAndFireSafe, createReactionClickedEvent, createReactionFocusedEvent, createReactionHoveredEvent } from '../../analytics';
|
|
11
13
|
import { Counter } from '../Counter';
|
|
12
14
|
import { FlashAnimation } from '../FlashAnimation';
|
|
@@ -14,11 +16,48 @@ import { ReactionParticleEffect } from '../ReactionParticleEffect';
|
|
|
14
16
|
import { ReactionTooltip } from '../ReactionTooltip';
|
|
15
17
|
import { messages } from '../../shared/i18n';
|
|
16
18
|
import { isLeftClick } from '../../shared/utils';
|
|
17
|
-
import {
|
|
19
|
+
import { emojiStyle, emojiNoReactionStyle, flashStyle } from './styles';
|
|
18
20
|
/**
|
|
19
21
|
* Test id for Reaction item wrapper div
|
|
20
22
|
*/
|
|
21
23
|
export var RENDER_REACTION_TESTID = 'render_reaction_wrapper';
|
|
24
|
+
var containerStyles = xcss({
|
|
25
|
+
position: 'relative'
|
|
26
|
+
});
|
|
27
|
+
var reactionStyles = xcss({
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
alignItems: 'flex-start',
|
|
31
|
+
minWidth: '36px',
|
|
32
|
+
height: '24px',
|
|
33
|
+
backgroundColor: 'color.background.neutral.subtle',
|
|
34
|
+
borderWidth: 'border.width',
|
|
35
|
+
borderStyle: 'solid',
|
|
36
|
+
borderColor: 'color.border',
|
|
37
|
+
borderRadius: 'border.radius.circle',
|
|
38
|
+
color: 'color.text.subtle',
|
|
39
|
+
marginBlockStart: 'space.050',
|
|
40
|
+
marginInlineEnd: 'space.050',
|
|
41
|
+
padding: 'space.0',
|
|
42
|
+
overflow: 'hidden',
|
|
43
|
+
':hover': {
|
|
44
|
+
backgroundColor: 'color.background.neutral.subtle.hovered'
|
|
45
|
+
},
|
|
46
|
+
':active': {
|
|
47
|
+
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var reactedStyles = xcss({
|
|
51
|
+
backgroundColor: 'color.background.selected',
|
|
52
|
+
borderColor: 'color.border.selected',
|
|
53
|
+
':hover': {
|
|
54
|
+
backgroundColor: 'color.background.selected.hovered'
|
|
55
|
+
},
|
|
56
|
+
':active': {
|
|
57
|
+
backgroundColor: 'color.background.selected.pressed'
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
22
61
|
/**
|
|
23
62
|
* Render an emoji reaction button
|
|
24
63
|
*/
|
|
@@ -30,7 +69,6 @@ export var Reaction = function Reaction(_ref) {
|
|
|
30
69
|
onMouseEnter = _ref$onMouseEnter === void 0 ? function () {} : _ref$onMouseEnter,
|
|
31
70
|
_ref$onFocused = _ref.onFocused,
|
|
32
71
|
onFocused = _ref$onFocused === void 0 ? function () {} : _ref$onFocused,
|
|
33
|
-
className = _ref.className,
|
|
34
72
|
_ref$flash = _ref.flash,
|
|
35
73
|
flash = _ref$flash === void 0 ? false : _ref$flash,
|
|
36
74
|
_ref$showParticleEffe = _ref.showParticleEffect,
|
|
@@ -113,8 +151,8 @@ export var Reaction = function Reaction(_ref) {
|
|
|
113
151
|
handleUserListClick(emojiId);
|
|
114
152
|
setIsTooltipEnabled(false);
|
|
115
153
|
};
|
|
116
|
-
return jsx(
|
|
117
|
-
|
|
154
|
+
return jsx(Box, {
|
|
155
|
+
xcss: containerStyles
|
|
118
156
|
}, showParticleEffect && jsx(ReactionParticleEffect, {
|
|
119
157
|
emojiId: emojiId,
|
|
120
158
|
emojiProvider: emojiProvider
|
|
@@ -124,15 +162,13 @@ export var Reaction = function Reaction(_ref) {
|
|
|
124
162
|
handleUserListClick: handleOpenReactionsDialog,
|
|
125
163
|
allowUserDialog: allowUserDialog,
|
|
126
164
|
isEnabled: isTooltipEnabled
|
|
127
|
-
}, jsx(
|
|
128
|
-
|
|
129
|
-
css: [reactionStyle, reaction.reacted && reactedStyle],
|
|
165
|
+
}, jsx(Pressable, {
|
|
166
|
+
xcss: [reactionStyles, reaction.reacted && reactedStyles],
|
|
130
167
|
"aria-label": intl.formatMessage(messages.reactWithEmoji, {
|
|
131
168
|
emoji: emojiName
|
|
132
169
|
}),
|
|
133
|
-
type: "button",
|
|
134
170
|
"data-emoji-id": reaction.emojiId,
|
|
135
|
-
|
|
171
|
+
testId: RENDER_REACTION_TESTID,
|
|
136
172
|
onClick: handleClick,
|
|
137
173
|
onMouseEnter: handleMouseEnter,
|
|
138
174
|
onFocus: handleFocused,
|
|
@@ -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 { B50, B75, B300, N20, N40, N400, B100 } from '@atlaskit/theme/colors';
|
|
4
5
|
/**
|
|
@@ -12,14 +13,19 @@ var akHeight = 24;
|
|
|
12
13
|
* of FlashAnimation b/c it otherwise throws off the flash styling
|
|
13
14
|
*/
|
|
14
15
|
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
17
|
export var containerStyle = css({
|
|
16
18
|
position: 'relative'
|
|
17
19
|
});
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
18
22
|
export var emojiStyle = css({
|
|
19
23
|
transformOrigin: 'center center 0',
|
|
20
24
|
lineHeight: '12px',
|
|
21
25
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-100, 8px)")
|
|
22
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
|
|
23
29
|
export var reactionStyle = css({
|
|
24
30
|
display: 'flex',
|
|
25
31
|
flexDirection: 'row',
|
|
@@ -47,6 +53,8 @@ export var reactionStyle = css({
|
|
|
47
53
|
},
|
|
48
54
|
overflow: 'hidden'
|
|
49
55
|
});
|
|
56
|
+
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
50
58
|
export var reactedStyle = css({
|
|
51
59
|
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
52
60
|
borderColor: "var(--ds-border-selected, ".concat(B300, ")"),
|
|
@@ -56,13 +64,17 @@ export var reactedStyle = css({
|
|
|
56
64
|
});
|
|
57
65
|
export var flashHeight = akHeight - 2; // height without the 1px border
|
|
58
66
|
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
59
68
|
export var flashStyle = css({
|
|
60
69
|
display: 'flex',
|
|
61
70
|
flexDirection: 'row',
|
|
62
71
|
alignItems: 'center',
|
|
63
72
|
borderRadius: '10px',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
74
|
height: "".concat(flashHeight, "px")
|
|
65
75
|
});
|
|
76
|
+
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
66
78
|
export var emojiNoReactionStyle = css({
|
|
67
79
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)", " 10px")
|
|
68
80
|
});
|