@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
package/afm-cc/tsconfig.json
CHANGED
|
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
|
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
12
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var packageName = "@atlaskit/reactions";
|
|
14
|
-
var packageVersion = "22.7.
|
|
14
|
+
var packageVersion = "22.7.2";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -11,6 +11,8 @@ var _utils = require("../../shared/utils");
|
|
|
11
11
|
var _styles = require("./styles");
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
14
16
|
// eslint-disable-next-line @atlaskit/design-system/no-banned-imports
|
|
15
17
|
|
|
16
18
|
/**
|
|
@@ -58,8 +60,11 @@ var Counter = exports.Counter = function Counter(_ref) {
|
|
|
58
60
|
return lastValue.current ? lastValue.current < value : false;
|
|
59
61
|
}, [value]);
|
|
60
62
|
return (0, _react2.jsx)("div", {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
61
64
|
className: className,
|
|
62
|
-
"data-testid": RENDER_COMPONENT_WRAPPER
|
|
65
|
+
"data-testid": RENDER_COMPONENT_WRAPPER
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
67
|
+
,
|
|
63
68
|
css: _styles.countStyle
|
|
64
69
|
}, (0, _react2.jsx)(_motion.ExitingPersistence, null, (0, _react2.jsx)(_motion.SlideIn, {
|
|
65
70
|
enterFrom: isIncreasing ? 'top' : 'bottom',
|
|
@@ -69,13 +74,22 @@ var Counter = exports.Counter = function Counter(_ref) {
|
|
|
69
74
|
}, function (motion, direction) {
|
|
70
75
|
return (0, _react2.jsx)("div", {
|
|
71
76
|
ref: motion.ref,
|
|
72
|
-
css: [
|
|
77
|
+
css: [
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
79
|
+
_styles.containerStyle,
|
|
80
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
|
+
(0, _react2.css)({
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
83
|
position: direction === 'exiting' ? 'absolute' : undefined
|
|
74
|
-
})]
|
|
84
|
+
})]
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
86
|
+
,
|
|
75
87
|
className: motion.className,
|
|
76
88
|
"data-testid": RENDER_COUNTER_TESTID
|
|
77
89
|
}, (0, _react2.jsx)("span", {
|
|
78
|
-
"data-testid": RENDER_LABEL_TESTID
|
|
90
|
+
"data-testid": RENDER_LABEL_TESTID
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
|
+
,
|
|
79
93
|
css: highlight ? [_styles.counterLabelStyle, _styles.highlightStyle] : _styles.counterLabelStyle,
|
|
80
94
|
key: value
|
|
81
95
|
}, label));
|
|
@@ -7,7 +7,9 @@ exports.highlightStyle = exports.counterLabelStyle = exports.countStyle = export
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
13
|
var countStyle = exports.countStyle = (0, _react.css)({
|
|
12
14
|
fontSize: 11,
|
|
13
15
|
color: "var(--ds-text-subtlest, ".concat(_colors.N90, ")"),
|
|
@@ -16,13 +18,19 @@ var countStyle = exports.countStyle = (0, _react.css)({
|
|
|
16
18
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-050, 4px)", " 0"),
|
|
17
19
|
lineHeight: '14px'
|
|
18
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
23
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
20
24
|
display: 'flex',
|
|
21
25
|
flexDirection: 'column'
|
|
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
|
var highlightStyle = exports.highlightStyle = (0, _react.css)({
|
|
24
30
|
color: "var(--ds-text-selected, ".concat(_colors.B400, ")")
|
|
25
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
26
34
|
var counterLabelStyle = exports.counterLabelStyle = (0, _react.css)({
|
|
27
35
|
fontVariantNumeric: 'tabular-nums'
|
|
28
36
|
});
|
|
@@ -9,11 +9,28 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _emoji = require("@atlaskit/emoji");
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _i18n = require("../../shared/i18n");
|
|
13
14
|
var _utils = require("../../shared/utils");
|
|
14
|
-
var _styles = require("./styles");
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
|
|
19
|
+
var emojiButtonStyles = (0, _primitives.xcss)({
|
|
20
|
+
outline: 'none',
|
|
21
|
+
display: 'flex',
|
|
22
|
+
backgroundColor: 'color.background.neutral.subtle',
|
|
23
|
+
border: 0,
|
|
24
|
+
borderRadius: 'border.radius',
|
|
25
|
+
margin: 'space.0',
|
|
26
|
+
padding: 'space.100',
|
|
27
|
+
// @ts-expect-error - Nested selectors not supported in XCSS
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
+
':hover > span': {
|
|
30
|
+
transition: 'transform cubic-bezier(0.23, 1, 0.32, 1) 200ms',
|
|
31
|
+
transform: 'scale(1.33)'
|
|
32
|
+
}
|
|
33
|
+
});
|
|
17
34
|
var RENDER_BUTTON_TESTID = exports.RENDER_BUTTON_TESTID = 'button-emoji-id';
|
|
18
35
|
/**
|
|
19
36
|
* custom button to render the custom emoji selector inside the reaction picker
|
|
@@ -29,14 +46,13 @@ var EmojiButton = exports.EmojiButton = function EmojiButton(_ref) {
|
|
|
29
46
|
}
|
|
30
47
|
};
|
|
31
48
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
32
|
-
return (0, _react2.jsx)(
|
|
33
|
-
|
|
49
|
+
return (0, _react2.jsx)(_primitives.Pressable, {
|
|
50
|
+
testId: RENDER_BUTTON_TESTID,
|
|
34
51
|
onClick: onButtonClick,
|
|
35
52
|
"aria-label": intl.formatMessage(_i18n.messages.reactWithEmoji, {
|
|
36
53
|
emoji: emojiId.shortName
|
|
37
54
|
}),
|
|
38
|
-
|
|
39
|
-
css: _styles.emojiButtonStyle
|
|
55
|
+
xcss: emojiButtonStyles
|
|
40
56
|
}, (0, _react2.jsx)(_emoji.ResourcedEmoji, {
|
|
41
57
|
emojiProvider: emojiProvider,
|
|
42
58
|
emojiId: emojiId
|
|
@@ -8,6 +8,8 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* Test id for wrapper FlashAnimation div
|
|
13
15
|
*/
|
|
@@ -18,7 +20,10 @@ var RENDER_FLASHANIMATION_TESTID = exports.RENDER_FLASHANIMATION_TESTID = 'flash
|
|
|
18
20
|
*/
|
|
19
21
|
var FlashAnimation = exports.FlashAnimation = function FlashAnimation(props) {
|
|
20
22
|
return (0, _react.jsx)("div", {
|
|
21
|
-
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
|
+
className: props.className
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
+
,
|
|
22
27
|
css: [_styles.containerStyle, props.flash && _styles.flashStyle],
|
|
23
28
|
"data-testid": RENDER_FLASHANIMATION_TESTID
|
|
24
29
|
}, props.children);
|
|
@@ -7,8 +7,11 @@ exports.flashStyle = exports.flashAnimation = exports.containerStyle = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
var flashTime = 700;
|
|
13
|
+
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-keyframes -- Ignored via go/DSP-18766
|
|
12
15
|
var flashAnimation = exports.flashAnimation = (0, _react.keyframes)({
|
|
13
16
|
'0%': {
|
|
14
17
|
backgroundColor: 'transparent'
|
|
@@ -26,10 +29,15 @@ var flashAnimation = exports.flashAnimation = (0, _react.keyframes)({
|
|
|
26
29
|
borderColor: "var(--ds-border-selected, ".concat(_colors.B300, ")")
|
|
27
30
|
}
|
|
28
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
29
34
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
30
35
|
width: '100%',
|
|
31
36
|
height: '100%'
|
|
32
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
|
|
33
40
|
var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
34
42
|
animation: "".concat(flashAnimation, " ").concat(flashTime, "ms ease-in-out")
|
|
35
43
|
});
|
|
@@ -14,6 +14,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
15
15
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
16
16
|
var _emoji = require("@atlaskit/emoji");
|
|
17
|
+
var _primitives = require("@atlaskit/primitives");
|
|
17
18
|
var _analytics = require("../../analytics");
|
|
18
19
|
var _Counter = require("../Counter");
|
|
19
20
|
var _FlashAnimation = require("../FlashAnimation");
|
|
@@ -26,10 +27,49 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
26
27
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
28
|
/** @jsx jsx */
|
|
28
29
|
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
31
|
+
|
|
29
32
|
/**
|
|
30
33
|
* Test id for Reaction item wrapper div
|
|
31
34
|
*/
|
|
32
35
|
var RENDER_REACTION_TESTID = exports.RENDER_REACTION_TESTID = 'render_reaction_wrapper';
|
|
36
|
+
var containerStyles = (0, _primitives.xcss)({
|
|
37
|
+
position: 'relative'
|
|
38
|
+
});
|
|
39
|
+
var reactionStyles = (0, _primitives.xcss)({
|
|
40
|
+
display: 'flex',
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
minWidth: '36px',
|
|
44
|
+
height: '24px',
|
|
45
|
+
backgroundColor: 'color.background.neutral.subtle',
|
|
46
|
+
borderWidth: 'border.width',
|
|
47
|
+
borderStyle: 'solid',
|
|
48
|
+
borderColor: 'color.border',
|
|
49
|
+
borderRadius: 'border.radius.circle',
|
|
50
|
+
color: 'color.text.subtle',
|
|
51
|
+
marginBlockStart: 'space.050',
|
|
52
|
+
marginInlineEnd: 'space.050',
|
|
53
|
+
padding: 'space.0',
|
|
54
|
+
overflow: 'hidden',
|
|
55
|
+
':hover': {
|
|
56
|
+
backgroundColor: 'color.background.neutral.subtle.hovered'
|
|
57
|
+
},
|
|
58
|
+
':active': {
|
|
59
|
+
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var reactedStyles = (0, _primitives.xcss)({
|
|
63
|
+
backgroundColor: 'color.background.selected',
|
|
64
|
+
borderColor: 'color.border.selected',
|
|
65
|
+
':hover': {
|
|
66
|
+
backgroundColor: 'color.background.selected.hovered'
|
|
67
|
+
},
|
|
68
|
+
':active': {
|
|
69
|
+
backgroundColor: 'color.background.selected.pressed'
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
33
73
|
/**
|
|
34
74
|
* Render an emoji reaction button
|
|
35
75
|
*/
|
|
@@ -41,7 +81,6 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
41
81
|
onMouseEnter = _ref$onMouseEnter === void 0 ? function () {} : _ref$onMouseEnter,
|
|
42
82
|
_ref$onFocused = _ref.onFocused,
|
|
43
83
|
onFocused = _ref$onFocused === void 0 ? function () {} : _ref$onFocused,
|
|
44
|
-
className = _ref.className,
|
|
45
84
|
_ref$flash = _ref.flash,
|
|
46
85
|
flash = _ref$flash === void 0 ? false : _ref$flash,
|
|
47
86
|
_ref$showParticleEffe = _ref.showParticleEffect,
|
|
@@ -124,8 +163,8 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
124
163
|
handleUserListClick(emojiId);
|
|
125
164
|
setIsTooltipEnabled(false);
|
|
126
165
|
};
|
|
127
|
-
return (0, _react2.jsx)(
|
|
128
|
-
|
|
166
|
+
return (0, _react2.jsx)(_primitives.Box, {
|
|
167
|
+
xcss: containerStyles
|
|
129
168
|
}, showParticleEffect && (0, _react2.jsx)(_ReactionParticleEffect.ReactionParticleEffect, {
|
|
130
169
|
emojiId: emojiId,
|
|
131
170
|
emojiProvider: emojiProvider
|
|
@@ -135,15 +174,13 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
135
174
|
handleUserListClick: handleOpenReactionsDialog,
|
|
136
175
|
allowUserDialog: allowUserDialog,
|
|
137
176
|
isEnabled: isTooltipEnabled
|
|
138
|
-
}, (0, _react2.jsx)(
|
|
139
|
-
|
|
140
|
-
css: [_styles.reactionStyle, reaction.reacted && _styles.reactedStyle],
|
|
177
|
+
}, (0, _react2.jsx)(_primitives.Pressable, {
|
|
178
|
+
xcss: [reactionStyles, reaction.reacted && reactedStyles],
|
|
141
179
|
"aria-label": intl.formatMessage(_i18n.messages.reactWithEmoji, {
|
|
142
180
|
emoji: emojiName
|
|
143
181
|
}),
|
|
144
|
-
type: "button",
|
|
145
182
|
"data-emoji-id": reaction.emojiId,
|
|
146
|
-
|
|
183
|
+
testId: RENDER_REACTION_TESTID,
|
|
147
184
|
onClick: handleClick,
|
|
148
185
|
onMouseEnter: handleMouseEnter,
|
|
149
186
|
onFocus: handleFocused,
|
|
@@ -7,6 +7,7 @@ exports.reactionStyle = exports.reactedStyle = exports.flashStyle = exports.flas
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Default styling px height for an emoji reaction
|
|
@@ -19,14 +20,19 @@ var akHeight = 24;
|
|
|
19
20
|
* of FlashAnimation b/c it otherwise throws off the flash styling
|
|
20
21
|
*/
|
|
21
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
24
|
var containerStyle = exports.containerStyle = (0, _react.css)({
|
|
23
25
|
position: 'relative'
|
|
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
|
var emojiStyle = exports.emojiStyle = (0, _react.css)({
|
|
26
30
|
transformOrigin: 'center center 0',
|
|
27
31
|
lineHeight: '12px',
|
|
28
32
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-100, 8px)")
|
|
29
33
|
});
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
30
36
|
var reactionStyle = exports.reactionStyle = (0, _react.css)({
|
|
31
37
|
display: 'flex',
|
|
32
38
|
flexDirection: 'row',
|
|
@@ -54,6 +60,8 @@ var reactionStyle = exports.reactionStyle = (0, _react.css)({
|
|
|
54
60
|
},
|
|
55
61
|
overflow: 'hidden'
|
|
56
62
|
});
|
|
63
|
+
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
57
65
|
var reactedStyle = exports.reactedStyle = (0, _react.css)({
|
|
58
66
|
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
59
67
|
borderColor: "var(--ds-border-selected, ".concat(_colors.B300, ")"),
|
|
@@ -63,13 +71,17 @@ var reactedStyle = exports.reactedStyle = (0, _react.css)({
|
|
|
63
71
|
});
|
|
64
72
|
var flashHeight = exports.flashHeight = akHeight - 2; // height without the 1px border
|
|
65
73
|
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
66
75
|
var flashStyle = exports.flashStyle = (0, _react.css)({
|
|
67
76
|
display: 'flex',
|
|
68
77
|
flexDirection: 'row',
|
|
69
78
|
alignItems: 'center',
|
|
70
79
|
borderRadius: '10px',
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
71
81
|
height: "".concat(flashHeight, "px")
|
|
72
82
|
});
|
|
83
|
+
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
73
85
|
var emojiNoReactionStyle = exports.emojiNoReactionStyle = (0, _react.css)({
|
|
74
86
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-025, 2px)", " ", "var(--ds-space-050, 4px)", " 10px")
|
|
75
87
|
});
|
|
@@ -20,6 +20,8 @@ var _i18n = require("../../shared/i18n");
|
|
|
20
20
|
var _styles = require("./styles");
|
|
21
21
|
/** @jsx jsx */
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
23
25
|
var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
24
26
|
var selectedEmojiId = _ref.selectedEmojiId,
|
|
25
27
|
emojiProvider = _ref.emojiProvider,
|
|
@@ -64,32 +66,42 @@ var ReactionView = exports.ReactionView = function ReactionView(_ref) {
|
|
|
64
66
|
})) || [];
|
|
65
67
|
}, [reaction]);
|
|
66
68
|
var tabPanelAttributes = (0, _tabs.useTabPanel)();
|
|
67
|
-
return (
|
|
68
|
-
css
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}, (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
69
|
+
return (
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
71
|
+
(0, _react2.jsx)("div", (0, _extends2.default)({
|
|
72
|
+
css: _styles.reactionViewStyle
|
|
73
|
+
}, tabPanelAttributes), (0, _react2.jsx)("p", null, (0, _react2.jsx)(_element.ResourcedEmoji, {
|
|
74
|
+
emojiProvider: emojiProvider,
|
|
75
|
+
emojiId: {
|
|
76
|
+
id: selectedEmojiId,
|
|
77
|
+
shortName: ''
|
|
78
|
+
},
|
|
79
|
+
fitToHeight: 24
|
|
80
|
+
}), intl.formatMessage(_i18n.messages.emojiName, {
|
|
81
|
+
emojiName: emojiName
|
|
82
|
+
})), alphabeticalNames.length === 0 ?
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
84
|
+
(0, _react2.jsx)("div", {
|
|
85
|
+
css: _styles.centerSpinner
|
|
86
|
+
}, (0, _react2.jsx)(_spinner.default, {
|
|
87
|
+
size: "large"
|
|
88
|
+
})) :
|
|
89
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
90
|
+
(0, _react2.jsx)("ul", {
|
|
91
|
+
css: _styles.userListStyle
|
|
92
|
+
}, alphabeticalNames.map(function (user) {
|
|
93
|
+
var _user$profilePicture;
|
|
94
|
+
var profile = (_user$profilePicture = user.profilePicture) === null || _user$profilePicture === void 0 ? void 0 : _user$profilePicture.path;
|
|
95
|
+
return (
|
|
96
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
97
|
+
(0, _react2.jsx)("li", {
|
|
98
|
+
css: _styles.userStyle,
|
|
99
|
+
key: user.id
|
|
100
|
+
}, (0, _react2.jsx)(_Avatar.default, {
|
|
101
|
+
size: "large",
|
|
102
|
+
src: profile
|
|
103
|
+
}), (0, _react2.jsx)("span", null, user.displayName))
|
|
104
|
+
);
|
|
105
|
+
})))
|
|
106
|
+
);
|
|
95
107
|
};
|
|
@@ -20,6 +20,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
/** @jsx jsx */
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Test id for the Reactions modal dialog
|
|
25
27
|
*/
|
|
@@ -19,6 +19,8 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
19
19
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
22
24
|
var ReactionsList = exports.ReactionsList = function ReactionsList(_ref) {
|
|
23
25
|
var reactions = _ref.reactions,
|
|
24
26
|
initialEmojiId = _ref.initialEmojiId,
|
|
@@ -62,7 +64,10 @@ var ReactionsList = exports.ReactionsList = function ReactionsList(_ref) {
|
|
|
62
64
|
shortName: ''
|
|
63
65
|
};
|
|
64
66
|
return (0, _react2.jsx)("div", {
|
|
65
|
-
css
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
68
|
+
css: (0, _styles.customTabWrapper)((emojiId === null || emojiId === void 0 ? void 0 : emojiId.id) === selectedEmoji.id, selectedEmoji.id, colorMode)
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
70
|
+
,
|
|
66
71
|
className: "reaction-elements",
|
|
67
72
|
key: reaction.emojiId,
|
|
68
73
|
"data-testid": emojiId === null || emojiId === void 0 ? void 0 : emojiId.id
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _constants = require("../../shared/constants");
|
|
10
10
|
/** @jsx jsx */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
12
|
|
|
12
13
|
var REACTIONS_CONTAINER_WIDTH = 48;
|
|
13
14
|
|
|
@@ -24,24 +25,31 @@ in case the container overflows */
|
|
|
24
25
|
var containerStyle = exports.containerStyle = function containerStyle(reactionsBorderWidth) {
|
|
25
26
|
return (0, _react.css)({
|
|
26
27
|
overflow: 'hidden',
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
29
|
maxWidth: "".concat(CONTAINER_WIDTH, "px"),
|
|
28
30
|
height: '100%',
|
|
29
31
|
display: 'flex',
|
|
30
32
|
justifyContent: 'start',
|
|
31
33
|
position: 'relative',
|
|
32
34
|
scrollBehavior: 'smooth',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
33
36
|
'&:after': {
|
|
34
37
|
content: '""',
|
|
35
38
|
zIndex: 0,
|
|
36
39
|
display: 'block',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
41
|
minWidth: "".concat(reactionsBorderWidth, "%"),
|
|
38
42
|
bottom: '0px',
|
|
39
43
|
position: 'absolute'
|
|
40
44
|
}
|
|
41
45
|
});
|
|
42
46
|
};
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
43
49
|
var titleStyle = exports.titleStyle = (0, _react.css)({
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
51
|
'& > h1': {
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
45
53
|
fontSize: '24px!important',
|
|
46
54
|
color: "".concat("var(--ds-text, ".concat(_colors.N800, ")"))
|
|
47
55
|
}
|
|
@@ -56,13 +64,17 @@ var counterStyle = exports.counterStyle = function counterStyle(isSelected) {
|
|
|
56
64
|
alignSelf: 'center',
|
|
57
65
|
lineHeight: '14px',
|
|
58
66
|
fontSize: '11px',
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
68
|
fontWeight: isSelected ? 700 : 400,
|
|
60
69
|
paddingRight: '0px',
|
|
61
70
|
marginTop: "var(--ds-space-075, 6px)",
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
72
|
'> div': {
|
|
63
73
|
width: '100%',
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
64
75
|
padding: "var(--ds-space-0, 0px)".concat("!important"),
|
|
65
76
|
//Counter component has its own styles overriding them to match designs
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
78
|
color: isSelected ? "".concat("var(--ds-text, ".concat(_colors.B400, ")"), "!important") : "2px solid ".concat("var(--ds-text, ".concat(_colors.N500, ")"), "!important")
|
|
67
79
|
}
|
|
68
80
|
});
|
|
@@ -76,7 +88,9 @@ var fadedCss = function fadedCss(edge, theme) {
|
|
|
76
88
|
width: "".concat(REACTIONS_CONTAINER_WIDTH, "px"),
|
|
77
89
|
height: "".concat(REACTION_CONTAINER_HEIGHT, "px"),
|
|
78
90
|
zIndex: 0,
|
|
79
|
-
background:
|
|
91
|
+
background:
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
93
|
+
theme === 'dark' ? "linear-gradient(".concat(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(".concat(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%)")
|
|
80
94
|
});
|
|
81
95
|
};
|
|
82
96
|
var customTabWrapper = exports.customTabWrapper = function customTabWrapper(isSelected, selectedEmojiId, theme) {
|
|
@@ -92,19 +106,25 @@ var customTabWrapper = exports.customTabWrapper = function customTabWrapper(isSe
|
|
|
92
106
|
marginRight: REACTION_RIGHT_MARGIN_TOKEN,
|
|
93
107
|
boxSizing: 'border-box',
|
|
94
108
|
position: 'relative',
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
95
110
|
'> div': {
|
|
96
111
|
minWidth: "".concat(REACTIONS_CONTAINER_WIDTH, "px"),
|
|
97
112
|
minHeight: "".concat(REACTION_CONTAINER_HEIGHT, "px"),
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
98
114
|
padding: '0px !important',
|
|
99
115
|
alignItems: 'center',
|
|
100
116
|
justifyContent: 'center'
|
|
101
117
|
},
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
102
119
|
'& > span': {
|
|
103
120
|
minHeight: '16px',
|
|
104
121
|
minWidth: '16px'
|
|
105
122
|
},
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
106
124
|
'&.disabled:after': fadedCss('rightEdge', theme),
|
|
125
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
107
126
|
'&.disabled + &.disabled:after': fadedCss('leftEdge', theme),
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
128
|
'&:after': isSelected ? {
|
|
109
129
|
content: '""',
|
|
110
130
|
borderBottom: "2px solid ".concat("var(--ds-text, ".concat(_colors.B400, ")")),
|
|
@@ -124,18 +144,25 @@ var customTabWrapper = exports.customTabWrapper = function customTabWrapper(isSe
|
|
|
124
144
|
}
|
|
125
145
|
});
|
|
126
146
|
};
|
|
147
|
+
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
127
149
|
var navigationContainerStyle = exports.navigationContainerStyle = (0, _react.css)({
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
128
151
|
'> button': {
|
|
129
152
|
cursor: 'pointer'
|
|
130
153
|
},
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
131
155
|
'button:last-child': {
|
|
132
156
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
133
157
|
}
|
|
134
158
|
});
|
|
159
|
+
|
|
160
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
135
161
|
var reactionViewStyle = exports.reactionViewStyle = (0, _react.css)({
|
|
136
162
|
marginTop: "var(--ds-space-300, 24px)",
|
|
137
163
|
display: 'flex',
|
|
138
164
|
flexDirection: 'column',
|
|
165
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
139
166
|
p: {
|
|
140
167
|
margin: 0,
|
|
141
168
|
color: "".concat("var(--ds-text, ".concat(_colors.N800, ")")),
|
|
@@ -143,40 +170,52 @@ var reactionViewStyle = exports.reactionViewStyle = (0, _react.css)({
|
|
|
143
170
|
fontWeight: 600,
|
|
144
171
|
fontSize: 16,
|
|
145
172
|
lineHeight: '20px',
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
146
174
|
'> span': {
|
|
147
175
|
marginRight: "var(--ds-space-100, 8px)"
|
|
148
176
|
}
|
|
149
177
|
}
|
|
150
178
|
});
|
|
179
|
+
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
151
181
|
var userListStyle = exports.userListStyle = (0, _react.css)({
|
|
152
182
|
listStyle: 'none',
|
|
153
183
|
marginTop: "var(--ds-space-200, 16px)",
|
|
154
184
|
padding: 0,
|
|
155
185
|
textAlign: 'left',
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
156
187
|
li: {
|
|
157
188
|
color: "".concat("var(--ds-text, ".concat(_colors.N500, ")")),
|
|
158
189
|
fontSize: 14
|
|
159
190
|
}
|
|
160
191
|
});
|
|
192
|
+
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
161
194
|
var userStyle = exports.userStyle = (0, _react.css)({
|
|
162
195
|
display: 'flex',
|
|
163
196
|
alignItems: 'center',
|
|
164
197
|
padding: "var(--ds-space-100, 8px)".concat(" 0px ", "var(--ds-space-100, 8px)", " 0px"),
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
165
199
|
'> span': {
|
|
166
200
|
marginLeft: "var(--ds-space-200, 16px)"
|
|
167
201
|
}
|
|
168
202
|
});
|
|
203
|
+
|
|
204
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
169
205
|
var customTabListStyles = exports.customTabListStyles = (0, _react.css)({
|
|
170
206
|
overflow: 'auto',
|
|
171
207
|
scrollBehavior: 'smooth',
|
|
172
208
|
display: 'flex',
|
|
173
209
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
174
211
|
'div[role=tablist]': {
|
|
175
212
|
flexGrow: 1,
|
|
176
213
|
// paddingInline exists to maintain styling prior to @atlaskit/tabs update that removed baked in horizontal padding
|
|
177
214
|
paddingInline: "var(--ds-space-100, 8px)"
|
|
178
215
|
}
|
|
179
216
|
});
|
|
217
|
+
|
|
218
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
180
219
|
var centerSpinner = exports.centerSpinner = (0, _react.css)({
|
|
181
220
|
display: 'flex',
|
|
182
221
|
justifyContent: 'center',
|