@atlaskit/reactions 22.10.1 → 22.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/analytics/index.js +1 -1
- package/dist/cjs/components/Counter/Counter.js +4 -1
- package/dist/cjs/components/Counter/styles.js +4 -1
- package/dist/cjs/components/EmojiButton/EmojiButton.js +4 -1
- package/dist/cjs/components/FlashAnimation/FlashAnimation.js +4 -1
- package/dist/cjs/components/FlashAnimation/styles.js +4 -1
- package/dist/cjs/components/Reaction/Reaction.js +18 -3
- package/dist/cjs/components/Reaction/ReactionButton.js +4 -1
- package/dist/cjs/components/Reaction/styles.js +4 -1
- package/dist/cjs/components/ReactionDialog/ReactionView.js +4 -1
- package/dist/cjs/components/ReactionDialog/ReactionsDialog.js +4 -1
- package/dist/cjs/components/ReactionDialog/ReactionsList.js +4 -1
- package/dist/cjs/components/ReactionDialog/styles.js +4 -1
- package/dist/cjs/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
- package/dist/cjs/components/ReactionPicker/ReactionPicker.js +9 -3
- package/dist/cjs/components/ReactionPicker/styles.js +4 -1
- package/dist/cjs/components/ReactionSummary/ReactionSummaryButton.js +14 -10
- package/dist/cjs/components/ReactionSummary/ReactionSummaryView.js +5 -2
- package/dist/cjs/components/ReactionTooltip/ReactionTooltip.js +4 -1
- package/dist/cjs/components/ReactionTooltip/styles.js +4 -1
- package/dist/cjs/components/Reactions/Reactions.js +13 -5
- package/dist/cjs/components/Reactions/styles.js +4 -1
- package/dist/cjs/components/Selector/Selector.js +4 -1
- package/dist/cjs/components/Selector/styles.js +4 -1
- package/dist/cjs/components/ShowMore/ShowMore.js +4 -1
- package/dist/cjs/components/Trigger/Trigger.js +19 -4
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/components/Counter/Counter.js +4 -1
- package/dist/es2019/components/Counter/styles.js +4 -1
- package/dist/es2019/components/EmojiButton/EmojiButton.js +4 -1
- package/dist/es2019/components/FlashAnimation/FlashAnimation.js +4 -1
- package/dist/es2019/components/FlashAnimation/styles.js +4 -1
- package/dist/es2019/components/Reaction/Reaction.js +17 -3
- package/dist/es2019/components/Reaction/ReactionButton.js +4 -1
- package/dist/es2019/components/Reaction/styles.js +4 -1
- package/dist/es2019/components/ReactionDialog/ReactionView.js +4 -1
- package/dist/es2019/components/ReactionDialog/ReactionsDialog.js +4 -1
- package/dist/es2019/components/ReactionDialog/ReactionsList.js +4 -1
- package/dist/es2019/components/ReactionDialog/styles.js +4 -1
- package/dist/es2019/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
- package/dist/es2019/components/ReactionPicker/ReactionPicker.js +8 -3
- package/dist/es2019/components/ReactionPicker/styles.js +4 -1
- package/dist/es2019/components/ReactionSummary/ReactionSummaryButton.js +13 -10
- package/dist/es2019/components/ReactionSummary/ReactionSummaryView.js +4 -2
- package/dist/es2019/components/ReactionTooltip/ReactionTooltip.js +4 -1
- package/dist/es2019/components/ReactionTooltip/styles.js +4 -1
- package/dist/es2019/components/Reactions/Reactions.js +12 -5
- package/dist/es2019/components/Reactions/styles.js +4 -1
- package/dist/es2019/components/Selector/Selector.js +4 -1
- package/dist/es2019/components/Selector/styles.js +4 -1
- package/dist/es2019/components/ShowMore/ShowMore.js +4 -1
- package/dist/es2019/components/Trigger/Trigger.js +18 -4
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/components/Counter/Counter.js +4 -1
- package/dist/esm/components/Counter/styles.js +4 -1
- package/dist/esm/components/EmojiButton/EmojiButton.js +4 -1
- package/dist/esm/components/FlashAnimation/FlashAnimation.js +4 -1
- package/dist/esm/components/FlashAnimation/styles.js +4 -1
- package/dist/esm/components/Reaction/Reaction.js +18 -3
- package/dist/esm/components/Reaction/ReactionButton.js +4 -1
- package/dist/esm/components/Reaction/styles.js +4 -1
- package/dist/esm/components/ReactionDialog/ReactionView.js +4 -1
- package/dist/esm/components/ReactionDialog/ReactionsDialog.js +4 -1
- package/dist/esm/components/ReactionDialog/ReactionsList.js +4 -1
- package/dist/esm/components/ReactionDialog/styles.js +4 -1
- package/dist/esm/components/ReactionParticleEffect/ReactionParticleEffect.js +4 -1
- package/dist/esm/components/ReactionPicker/ReactionPicker.js +9 -3
- package/dist/esm/components/ReactionPicker/styles.js +4 -1
- package/dist/esm/components/ReactionSummary/ReactionSummaryButton.js +14 -10
- package/dist/esm/components/ReactionSummary/ReactionSummaryView.js +5 -2
- package/dist/esm/components/ReactionTooltip/ReactionTooltip.js +4 -1
- package/dist/esm/components/ReactionTooltip/styles.js +4 -1
- package/dist/esm/components/Reactions/Reactions.js +13 -5
- package/dist/esm/components/Reactions/styles.js +4 -1
- package/dist/esm/components/Selector/Selector.js +4 -1
- package/dist/esm/components/Selector/styles.js +4 -1
- package/dist/esm/components/ShowMore/ShowMore.js +4 -1
- package/dist/esm/components/Trigger/Trigger.js +19 -4
- package/dist/types/components/FlashAnimation/FlashAnimation.d.ts +4 -1
- package/dist/types/components/FlashAnimation/styles.d.ts +4 -1
- package/dist/types/components/Reaction/Reaction.d.ts +5 -1
- package/dist/types/components/Reaction/ReactionButton.d.ts +4 -1
- package/dist/types/components/ReactionParticleEffect/ReactionParticleEffect.d.ts +4 -1
- package/dist/types/components/ReactionPicker/ReactionPicker.d.ts +8 -1
- package/dist/types/components/ReactionSummary/ReactionSummaryButton.d.ts +4 -0
- package/dist/types/components/ReactionSummary/ReactionSummaryView.d.ts +5 -1
- package/dist/types/components/ReactionTooltip/ReactionTooltip.d.ts +4 -1
- package/dist/types/components/Reactions/Reactions.d.ts +9 -2
- package/dist/types/components/Selector/Selector.d.ts +4 -1
- package/dist/types/components/Selector/styles.d.ts +4 -1
- package/dist/types/components/ShowMore/ShowMore.d.ts +4 -1
- package/dist/types/components/Trigger/Trigger.d.ts +8 -1
- package/dist/types-ts4.5/components/FlashAnimation/FlashAnimation.d.ts +4 -1
- package/dist/types-ts4.5/components/FlashAnimation/styles.d.ts +4 -1
- package/dist/types-ts4.5/components/Reaction/Reaction.d.ts +5 -1
- package/dist/types-ts4.5/components/Reaction/ReactionButton.d.ts +4 -1
- package/dist/types-ts4.5/components/ReactionParticleEffect/ReactionParticleEffect.d.ts +4 -1
- package/dist/types-ts4.5/components/ReactionPicker/ReactionPicker.d.ts +8 -1
- package/dist/types-ts4.5/components/ReactionSummary/ReactionSummaryButton.d.ts +4 -0
- package/dist/types-ts4.5/components/ReactionSummary/ReactionSummaryView.d.ts +5 -1
- package/dist/types-ts4.5/components/ReactionTooltip/ReactionTooltip.d.ts +4 -1
- package/dist/types-ts4.5/components/Reactions/Reactions.d.ts +9 -2
- package/dist/types-ts4.5/components/Selector/Selector.d.ts +4 -1
- package/dist/types-ts4.5/components/Selector/styles.d.ts +4 -1
- package/dist/types-ts4.5/components/ShowMore/ShowMore.d.ts +4 -1
- package/dist/types-ts4.5/components/Trigger/Trigger.d.ts +8 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/reactions
|
|
2
2
|
|
|
3
|
+
## 22.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#124009](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/124009)
|
|
8
|
+
[`1b172cc669c8e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1b172cc669c8e) -
|
|
9
|
+
[ux] add support for opaque backgrounds in pre-existing reaction buttons while in summary view
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 22.10.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 22.10.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -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.10.
|
|
14
|
+
var packageVersion = "22.10.3";
|
|
15
15
|
/**
|
|
16
16
|
* TODO: move to utility package?
|
|
17
17
|
* A random sampling function
|
|
@@ -9,7 +9,10 @@ var _react2 = require("@emotion/react");
|
|
|
9
9
|
var _motion = require("@atlaskit/motion");
|
|
10
10
|
var _utils = require("../../shared/utils");
|
|
11
11
|
var _styles = require("./styles");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
|
|
14
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
18
|
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.highlightStyle = exports.counterLabelStyle = exports.countStyle = exports.containerStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
12
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -12,7 +12,10 @@ var _emoji = require("@atlaskit/emoji");
|
|
|
12
12
|
var _primitives = require("@atlaskit/primitives");
|
|
13
13
|
var _i18n = require("../../shared/i18n");
|
|
14
14
|
var _utils = require("../../shared/utils");
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
* @jsx jsx
|
|
18
|
+
*/
|
|
16
19
|
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.RENDER_FLASHANIMATION_TESTID = exports.FlashAnimation = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _styles = require("./styles");
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
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
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
12
15
|
var flashTime = 700;
|
|
@@ -25,7 +25,10 @@ var _styles = require("./styles");
|
|
|
25
25
|
var _ReactionButton = require("./ReactionButton");
|
|
26
26
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
27
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; }
|
|
28
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* @jsxRuntime classic
|
|
30
|
+
* @jsx jsx
|
|
31
|
+
*/
|
|
29
32
|
|
|
30
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
31
34
|
|
|
@@ -46,6 +49,15 @@ var reactedStyles = (0, _primitives.xcss)({
|
|
|
46
49
|
backgroundColor: 'color.background.selected.pressed'
|
|
47
50
|
}
|
|
48
51
|
});
|
|
52
|
+
var opaqueBackgroundStyles = (0, _primitives.xcss)({
|
|
53
|
+
backgroundColor: 'elevation.surface',
|
|
54
|
+
':hover': {
|
|
55
|
+
backgroundColor: 'elevation.surface.hovered'
|
|
56
|
+
},
|
|
57
|
+
':active': {
|
|
58
|
+
backgroundColor: 'elevation.surface.pressed'
|
|
59
|
+
}
|
|
60
|
+
});
|
|
49
61
|
|
|
50
62
|
/**
|
|
51
63
|
* Render an emoji reaction button
|
|
@@ -64,7 +76,9 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
64
76
|
showParticleEffect = _ref$showParticleEffe === void 0 ? false : _ref$showParticleEffe,
|
|
65
77
|
_ref$handleUserListCl = _ref.handleUserListClick,
|
|
66
78
|
handleUserListClick = _ref$handleUserListCl === void 0 ? function () {} : _ref$handleUserListCl,
|
|
67
|
-
allowUserDialog = _ref.allowUserDialog
|
|
79
|
+
allowUserDialog = _ref.allowUserDialog,
|
|
80
|
+
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
81
|
+
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
|
|
68
82
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
69
83
|
var hoverStart = (0, _react.useRef)();
|
|
70
84
|
var focusStart = (0, _react.useRef)();
|
|
@@ -140,6 +154,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
140
154
|
handleUserListClick(emojiId);
|
|
141
155
|
setIsTooltipEnabled(false);
|
|
142
156
|
};
|
|
157
|
+
var buttonStyles = showOpaqueBackground ? [opaqueBackgroundStyles] : [];
|
|
143
158
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
144
159
|
xcss: containerStyles
|
|
145
160
|
}, showParticleEffect && (0, _react2.jsx)(_ReactionParticleEffect.ReactionParticleEffect, {
|
|
@@ -154,7 +169,7 @@ var Reaction = exports.Reaction = function Reaction(_ref) {
|
|
|
154
169
|
}, (0, _react2.jsx)(_ReactionButton.ReactionButton, {
|
|
155
170
|
onClick: handleClick,
|
|
156
171
|
flash: flash,
|
|
157
|
-
additionalStyles: reaction.reacted ? [reactedStyles] :
|
|
172
|
+
additionalStyles: reaction.reacted ? [reactedStyles] : buttonStyles,
|
|
158
173
|
ariaLabel: intl.formatMessage(_i18n.messages.reactWithEmoji, {
|
|
159
174
|
emoji: emojiName
|
|
160
175
|
}),
|
|
@@ -12,7 +12,10 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _FlashAnimation = require("../FlashAnimation");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
* @jsx jsx
|
|
18
|
+
*/
|
|
16
19
|
|
|
17
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
21
|
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.reactionStyle = exports.reactedStyle = exports.flashStyle = exports.flashHeight = exports.emojiStyle = exports.emojiNoReactionStyle = exports.containerStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
12
15
|
/**
|
|
@@ -18,7 +18,10 @@ var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
|
18
18
|
var _tabs = require("@atlaskit/tabs");
|
|
19
19
|
var _i18n = require("../../shared/i18n");
|
|
20
20
|
var _styles = require("./styles");
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
24
|
+
*/
|
|
22
25
|
|
|
23
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
27
|
|
|
@@ -18,7 +18,10 @@ var _ReactionsList = require("./ReactionsList");
|
|
|
18
18
|
var _styles = require("./styles");
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
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
|
+
/**
|
|
22
|
+
* @jsxRuntime classic
|
|
23
|
+
* @jsx jsx
|
|
24
|
+
*/
|
|
22
25
|
|
|
23
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
24
27
|
|
|
@@ -17,7 +17,10 @@ var _styles = require("./styles");
|
|
|
17
17
|
var _ReactionView = require("./ReactionView");
|
|
18
18
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
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
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
* @jsx jsx
|
|
23
|
+
*/
|
|
21
24
|
|
|
22
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
26
|
|
|
@@ -7,7 +7,10 @@ exports.userStyle = exports.userListStyle = exports.titleStyle = exports.reactio
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _constants = require("../../shared/constants");
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
|
|
13
16
|
var REACTIONS_CONTAINER_WIDTH = 48;
|
|
@@ -9,7 +9,10 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _emoji = require("@atlaskit/emoji");
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _styles = require("./styles");
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
15
|
+
*/
|
|
13
16
|
|
|
14
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
18
|
|
|
@@ -25,7 +25,10 @@ var _RepositionOnUpdate = require("./RepositionOnUpdate");
|
|
|
25
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
26
|
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
27
|
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; }
|
|
28
|
-
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; } /**
|
|
28
|
+
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; } /**
|
|
29
|
+
* @jsxRuntime classic
|
|
30
|
+
* @jsx jsx
|
|
31
|
+
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
29
32
|
/**
|
|
30
33
|
* Test id for wrapper ReactionPicker div
|
|
31
34
|
*/
|
|
@@ -86,7 +89,9 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
86
89
|
onCancel = _props$onCancel === void 0 ? function () {} : _props$onCancel,
|
|
87
90
|
_props$tooltipContent = props.tooltipContent,
|
|
88
91
|
tooltipContent = _props$tooltipContent === void 0 ? (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.addReaction) : _props$tooltipContent,
|
|
89
|
-
emojiPickerSize = props.emojiPickerSize
|
|
92
|
+
emojiPickerSize = props.emojiPickerSize,
|
|
93
|
+
_props$showOpaqueBack = props.showOpaqueBackground,
|
|
94
|
+
showOpaqueBackground = _props$showOpaqueBack === void 0 ? false : _props$showOpaqueBack;
|
|
90
95
|
var _useState = (0, _react.useState)(null),
|
|
91
96
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
92
97
|
triggerRef = _useState2[0],
|
|
@@ -217,7 +222,8 @@ var ReactionPicker = exports.ReactionPicker = /*#__PURE__*/_react.default.memo(f
|
|
|
217
222
|
onClick: onTriggerClick,
|
|
218
223
|
miniMode: miniMode,
|
|
219
224
|
disabled: disabled,
|
|
220
|
-
tooltipContent: settings.isOpen ? null : tooltipContent
|
|
225
|
+
tooltipContent: settings.isOpen ? null : tooltipContent,
|
|
226
|
+
showOpaqueBackground: showOpaqueBackground
|
|
221
227
|
})
|
|
222
228
|
);
|
|
223
229
|
}), settings.isOpen && (0, _react2.jsx)(PopperWrapper, {
|
|
@@ -7,7 +7,10 @@ exports.popupWrapperStyle = exports.popupStyle = exports.pickerStyle = exports.c
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _constants = require("@atlaskit/theme/constants");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
* @jsx jsx
|
|
13
|
+
*/
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -26,6 +26,15 @@ var buttonStyle = (0, _primitives.xcss)({
|
|
|
26
26
|
paddingBottom: 'space.050',
|
|
27
27
|
paddingLeft: 'space.100'
|
|
28
28
|
});
|
|
29
|
+
var opaqueBackgroundStyles = (0, _primitives.xcss)({
|
|
30
|
+
backgroundColor: 'elevation.surface',
|
|
31
|
+
':hover': {
|
|
32
|
+
backgroundColor: 'elevation.surface.hovered'
|
|
33
|
+
},
|
|
34
|
+
':active': {
|
|
35
|
+
backgroundColor: 'elevation.surface.pressed'
|
|
36
|
+
}
|
|
37
|
+
});
|
|
29
38
|
var containerStyle = (0, _primitives.xcss)({
|
|
30
39
|
position: 'relative'
|
|
31
40
|
});
|
|
@@ -46,7 +55,9 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
46
55
|
reactions = _ref$reactions === void 0 ? [] : _ref$reactions,
|
|
47
56
|
_ref$emojisToShow = _ref.emojisToShow,
|
|
48
57
|
emojisToShow = _ref$emojisToShow === void 0 ? 3 : _ref$emojisToShow,
|
|
49
|
-
onClick = _ref.onClick
|
|
58
|
+
onClick = _ref.onClick,
|
|
59
|
+
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
60
|
+
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
|
|
50
61
|
var intl = (0, _reactIntlNext.useIntl)();
|
|
51
62
|
|
|
52
63
|
// Helper function to sort reactions by count and return top N
|
|
@@ -63,6 +74,7 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
63
74
|
var topReactions = (0, _react.useMemo)(function () {
|
|
64
75
|
return getTopReactions(reactions, emojisToShow);
|
|
65
76
|
}, [emojisToShow, reactions]);
|
|
77
|
+
var buttonStyles = showOpaqueBackground ? [opaqueBackgroundStyles] : [];
|
|
66
78
|
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
67
79
|
xcss: containerStyle,
|
|
68
80
|
ref: ref
|
|
@@ -70,15 +82,7 @@ var ReactionSummaryButton = exports.ReactionSummaryButton = /*#__PURE__*/(0, _re
|
|
|
70
82
|
onClick: onClick,
|
|
71
83
|
testId: RENDER_SUMMARY_BUTTON_TESTID,
|
|
72
84
|
ariaLabel: intl.formatMessage(_i18n.messages.summary),
|
|
73
|
-
additionalStyles:
|
|
74
|
-
backgroundColor: 'elevation.surface',
|
|
75
|
-
':hover': {
|
|
76
|
-
backgroundColor: 'elevation.surface.hovered'
|
|
77
|
-
},
|
|
78
|
-
':active': {
|
|
79
|
-
backgroundColor: 'elevation.surface.pressed'
|
|
80
|
-
}
|
|
81
|
-
})]
|
|
85
|
+
additionalStyles: buttonStyles
|
|
82
86
|
}, /*#__PURE__*/_react.default.createElement(_primitives.Inline, {
|
|
83
87
|
space: "space.050",
|
|
84
88
|
xcss: buttonStyle
|
|
@@ -38,7 +38,9 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
38
38
|
placement = _ref$placement === void 0 ? 'auto-start' : _ref$placement,
|
|
39
39
|
onReactionClick = _ref.onReactionClick,
|
|
40
40
|
onReactionFocused = _ref.onReactionFocused,
|
|
41
|
-
onReactionMouseEnter = _ref.onReactionMouseEnter
|
|
41
|
+
onReactionMouseEnter = _ref.onReactionMouseEnter,
|
|
42
|
+
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
43
|
+
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
|
|
42
44
|
var _useState = (0, _react.useState)(false),
|
|
43
45
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
44
46
|
isSummaryPopupOpen = _useState2[0],
|
|
@@ -78,7 +80,8 @@ var ReactionSummaryView = exports.ReactionSummaryView = function ReactionSummary
|
|
|
78
80
|
return /*#__PURE__*/_react.default.createElement(_ReactionSummaryButton.ReactionSummaryButton, (0, _extends2.default)({}, triggerProps, {
|
|
79
81
|
emojiProvider: emojiProvider,
|
|
80
82
|
reactions: reactions,
|
|
81
|
-
onClick: handleSummaryClick
|
|
83
|
+
onClick: handleSummaryClick,
|
|
84
|
+
showOpaqueBackground: showOpaqueBackground
|
|
82
85
|
}));
|
|
83
86
|
}
|
|
84
87
|
});
|
|
@@ -13,7 +13,10 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
13
13
|
var _constants = require("../../shared/constants");
|
|
14
14
|
var _i18n = require("../../shared/i18n");
|
|
15
15
|
var _styles = require("./styles");
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
19
|
+
*/
|
|
17
20
|
|
|
18
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
22
|
|
|
@@ -6,7 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.verticalMargin = exports.underlineStyle = exports.tooltipStyle = exports.footerStyle = exports.emojiNameStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
* @jsx jsx
|
|
12
|
+
*/
|
|
10
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
14
|
|
|
12
15
|
var verticalMargin = exports.verticalMargin = 5;
|
|
@@ -28,7 +28,10 @@ var _styles = require("./styles");
|
|
|
28
28
|
var _ReactionSummary = require("../ReactionSummary/");
|
|
29
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
30
|
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; }
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* @jsxRuntime classic
|
|
33
|
+
* @jsx jsx
|
|
34
|
+
*/
|
|
32
35
|
|
|
33
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
34
37
|
|
|
@@ -119,7 +122,9 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
119
122
|
summaryViewEnabled = _ref$summaryViewEnabl === void 0 ? false : _ref$summaryViewEnabl,
|
|
120
123
|
_ref$summaryViewThres = _ref.summaryViewThreshold,
|
|
121
124
|
summaryViewThreshold = _ref$summaryViewThres === void 0 ? 3 : _ref$summaryViewThres,
|
|
122
|
-
summaryViewPlacement = _ref.summaryViewPlacement
|
|
125
|
+
summaryViewPlacement = _ref.summaryViewPlacement,
|
|
126
|
+
_ref$showOpaqueBackgr = _ref.showOpaqueBackground,
|
|
127
|
+
showOpaqueBackground = _ref$showOpaqueBackgr === void 0 ? false : _ref$showOpaqueBackgr;
|
|
123
128
|
var _useState = (0, _react.useState)(),
|
|
124
129
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
125
130
|
selectedEmojiId = _useState2[0],
|
|
@@ -290,7 +295,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
290
295
|
onReactionClick: onReactionClick,
|
|
291
296
|
onReactionFocused: handleReactionFocused,
|
|
292
297
|
onReactionMouseEnter: handleReactionMouseEnter,
|
|
293
|
-
placement: summaryViewPlacement
|
|
298
|
+
placement: summaryViewPlacement,
|
|
299
|
+
showOpaqueBackground: showOpaqueBackground
|
|
294
300
|
})) : memorizedReactions.map(function (reaction) {
|
|
295
301
|
return (0, _react2.jsx)(_Reaction.Reaction, {
|
|
296
302
|
key: reaction.emojiId,
|
|
@@ -302,7 +308,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
302
308
|
flash: flash[reaction.emojiId],
|
|
303
309
|
handleUserListClick: handleOpenReactionsDialog,
|
|
304
310
|
allowUserDialog: allowUserDialog,
|
|
305
|
-
showParticleEffect: particleEffectByEmoji[reaction.emojiId]
|
|
311
|
+
showParticleEffect: particleEffectByEmoji[reaction.emojiId],
|
|
312
|
+
showOpaqueBackground: showOpaqueBackground
|
|
306
313
|
});
|
|
307
314
|
}), (0, _react2.jsx)(_ReactionPicker.ReactionPicker
|
|
308
315
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -318,7 +325,8 @@ var Reactions = exports.Reactions = /*#__PURE__*/_react.default.memo(function (_
|
|
|
318
325
|
onShowMore: handleOnMore,
|
|
319
326
|
tooltipContent: getTooltip(status, errorMessage),
|
|
320
327
|
emojiPickerSize: emojiPickerSize,
|
|
321
|
-
miniMode: miniMode
|
|
328
|
+
miniMode: miniMode,
|
|
329
|
+
showOpaqueBackground: showOpaqueBackground
|
|
322
330
|
}), allowUserDialog && reactions.length > 0 && (0, _react2.jsx)(_tooltip.default, {
|
|
323
331
|
content: (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.seeWhoReactedTooltip),
|
|
324
332
|
hideTooltipOnClick: true
|
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.wrapperStyle = exports.seeWhoReactedStyle = exports.reactionPickerStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -16,7 +16,10 @@ var _ShowMore = require("../ShowMore");
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
18
|
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; }
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
* @jsx jsx
|
|
22
|
+
*/
|
|
20
23
|
|
|
21
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
25
|
|
|
@@ -5,7 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.revealStyle = exports.revealAnimation = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* @jsxRuntime classic
|
|
10
|
+
* @jsx jsx
|
|
11
|
+
*/
|
|
9
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
13
|
|
|
11
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -11,7 +11,10 @@ var _new = require("@atlaskit/button/new");
|
|
|
11
11
|
var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/more"));
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
13
|
var _i18n = require("../../shared/i18n");
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
19
|
|
|
17
20
|
/**
|
|
@@ -11,7 +11,10 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
13
13
|
var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/glyph/emoji-add"));
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
* @jsx jsx
|
|
17
|
+
*/
|
|
15
18
|
|
|
16
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
20
|
|
|
@@ -32,7 +35,7 @@ var triggerStyles = (0, _primitives.xcss)({
|
|
|
32
35
|
alignItems: 'center',
|
|
33
36
|
lineHeight: '16px'
|
|
34
37
|
});
|
|
35
|
-
var
|
|
38
|
+
var transparentEnabledTriggerStyles = (0, _primitives.xcss)({
|
|
36
39
|
borderColor: 'color.border',
|
|
37
40
|
backgroundColor: 'color.background.neutral.subtle',
|
|
38
41
|
':hover': {
|
|
@@ -42,6 +45,16 @@ var enabledTriggerStyles = (0, _primitives.xcss)({
|
|
|
42
45
|
backgroundColor: 'color.background.neutral.subtle.pressed'
|
|
43
46
|
}
|
|
44
47
|
});
|
|
48
|
+
var opaqueEnabledTriggerStyles = (0, _primitives.xcss)({
|
|
49
|
+
borderColor: 'color.border',
|
|
50
|
+
backgroundColor: 'elevation.surface',
|
|
51
|
+
':hover': {
|
|
52
|
+
backgroundColor: 'elevation.surface.hovered'
|
|
53
|
+
},
|
|
54
|
+
':active': {
|
|
55
|
+
backgroundColor: 'elevation.surface.pressed'
|
|
56
|
+
}
|
|
57
|
+
});
|
|
45
58
|
var disabledTriggerStyles = (0, _primitives.xcss)({
|
|
46
59
|
borderColor: 'color.border.disabled',
|
|
47
60
|
backgroundColor: 'color.background.disabled'
|
|
@@ -63,7 +76,9 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
63
76
|
_props$disabled = props.disabled,
|
|
64
77
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
65
78
|
_props$ariaAttributes = props.ariaAttributes,
|
|
66
|
-
ariaAttributes = _props$ariaAttributes === void 0 ? {} : _props$ariaAttributes
|
|
79
|
+
ariaAttributes = _props$ariaAttributes === void 0 ? {} : _props$ariaAttributes,
|
|
80
|
+
_props$showOpaqueBack = props.showOpaqueBackground,
|
|
81
|
+
showOpaqueBackground = _props$showOpaqueBack === void 0 ? false : _props$showOpaqueBack;
|
|
67
82
|
var handleMouseDown = function handleMouseDown(e, analyticsEvent) {
|
|
68
83
|
if (onClick && !disabled) {
|
|
69
84
|
onClick(e, analyticsEvent);
|
|
@@ -74,7 +89,7 @@ var Trigger = exports.Trigger = /*#__PURE__*/_react.default.forwardRef(function
|
|
|
74
89
|
content: tooltipContent
|
|
75
90
|
}, (0, _react2.jsx)(_primitives.Pressable, (0, _extends2.default)({
|
|
76
91
|
testId: RENDER_TRIGGER_BUTTON_TESTID,
|
|
77
|
-
xcss: [triggerStyles, disabled ? disabledTriggerStyles :
|
|
92
|
+
xcss: [triggerStyles, disabled ? disabledTriggerStyles : showOpaqueBackground ? opaqueEnabledTriggerStyles : transparentEnabledTriggerStyles, miniMode && miniModeStyles],
|
|
78
93
|
onClick: handleMouseDown,
|
|
79
94
|
isDisabled: disabled,
|
|
80
95
|
ref: ref
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
|
|
3
3
|
const packageName = "@atlaskit/reactions";
|
|
4
|
-
const packageVersion = "22.10.
|
|
4
|
+
const packageVersion = "22.10.3";
|
|
5
5
|
/**
|
|
6
6
|
* TODO: move to utility package?
|
|
7
7
|
* A random sampling function
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
2
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
6
|
import { css, keyframes } from '@emotion/react';
|
|
4
7
|
import { B75, B300 } from '@atlaskit/theme/colors';
|