@atlaskit/user-picker 9.6.2 → 9.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/components/AddOptionAvatar.js +4 -4
- package/dist/cjs/components/AvatarItemOption.js +16 -16
- package/dist/cjs/components/CustomOption/main.js +8 -8
- package/dist/cjs/components/EmailOption/main.js +6 -6
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +11 -11
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +4 -4
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +15 -15
- package/dist/cjs/components/ExternalUserOption/main.js +12 -12
- package/dist/cjs/components/GroupOption/main.js +9 -9
- package/dist/cjs/components/MultiValue.js +11 -11
- package/dist/cjs/components/PopupControl.js +6 -6
- package/dist/cjs/components/SingleValue.js +5 -5
- package/dist/cjs/components/SingleValueContainer.js +4 -4
- package/dist/cjs/components/TeamOption/main.js +13 -13
- package/dist/cjs/components/UserOption.js +11 -11
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +1 -1
- package/dist/es2019/components/AvatarItemOption.js +1 -1
- package/dist/es2019/components/CustomOption/main.js +1 -1
- package/dist/es2019/components/EmailOption/main.js +1 -1
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/es2019/components/ExternalUserOption/main.js +1 -1
- package/dist/es2019/components/GroupOption/main.js +1 -1
- package/dist/es2019/components/MultiValue.js +1 -1
- package/dist/es2019/components/PopupControl.js +1 -1
- package/dist/es2019/components/SingleValue.js +1 -1
- package/dist/es2019/components/SingleValueContainer.js +1 -1
- package/dist/es2019/components/TeamOption/main.js +1 -1
- package/dist/es2019/components/UserOption.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AddOptionAvatar.js +1 -1
- package/dist/esm/components/AvatarItemOption.js +1 -1
- package/dist/esm/components/CustomOption/main.js +1 -1
- package/dist/esm/components/EmailOption/main.js +1 -1
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/esm/components/ExternalUserOption/main.js +1 -1
- package/dist/esm/components/GroupOption/main.js +1 -1
- package/dist/esm/components/MultiValue.js +1 -1
- package/dist/esm/components/PopupControl.js +1 -1
- package/dist/esm/components/SingleValue.js +1 -1
- package/dist/esm/components/SingleValueContainer.js +1 -1
- package/dist/esm/components/TeamOption/main.js +1 -1
- package/dist/esm/components/UserOption.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/AvatarItemOption.d.ts +3 -2
- package/dist/types/components/CustomOption/main.d.ts +2 -1
- package/dist/types/components/EmailOption/main.d.ts +2 -1
- package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +2 -1
- package/dist/types/components/ExternalUserOption/InfoIcon.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/main.d.ts +2 -2
- package/dist/types/components/GroupOption/main.d.ts +3 -2
- package/dist/types/components/MultiValue.d.ts +3 -2
- package/dist/types/components/PopupControl.d.ts +2 -1
- package/dist/types/components/SingleValue.d.ts +2 -2
- package/dist/types/components/SingleValueContainer.d.ts +2 -1
- package/dist/types/components/TeamOption/main.d.ts +2 -1
- package/dist/types/components/UserOption.d.ts +4 -3
- package/dist/types/components/components.d.ts +3 -3
- package/package.json +4 -4
|
@@ -27,7 +27,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
27
27
|
|
|
28
28
|
var _select = require("@atlaskit/select");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _react2 = require("@emotion/react");
|
|
31
31
|
|
|
32
32
|
var _colors = require("@atlaskit/theme/colors");
|
|
33
33
|
|
|
@@ -40,7 +40,7 @@ var fontSize = 12;
|
|
|
40
40
|
var innerHeight = spacing * 2; // 16px
|
|
41
41
|
|
|
42
42
|
var lineHeight = innerHeight / fontSize;
|
|
43
|
-
var controlWrapper = (0,
|
|
43
|
+
var controlWrapper = (0, _react2.css)({
|
|
44
44
|
display: 'flex',
|
|
45
45
|
flexDirection: 'column',
|
|
46
46
|
padding: "0px ".concat(spacing, "px ").concat(spacing, "px")
|
|
@@ -56,7 +56,7 @@ var getLabelStyle = function getLabelStyle() {
|
|
|
56
56
|
var left = 0;
|
|
57
57
|
var top = spacing * 2.5;
|
|
58
58
|
var color = getColor();
|
|
59
|
-
return (0,
|
|
59
|
+
return (0, _react2.css)({
|
|
60
60
|
color: color,
|
|
61
61
|
fontSize: "".concat(fontSize, "px"),
|
|
62
62
|
fontWeight: 600,
|
|
@@ -79,11 +79,11 @@ var PopupControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
key: "render",
|
|
80
80
|
value: function render() {
|
|
81
81
|
var popupTitle = this.props.selectProps.popupTitle;
|
|
82
|
-
return (0,
|
|
82
|
+
return (0, _react2.jsx)("div", {
|
|
83
83
|
css: controlWrapper
|
|
84
|
-
}, (0,
|
|
84
|
+
}, (0, _react2.jsx)("div", {
|
|
85
85
|
css: getLabelStyle()
|
|
86
|
-
}, popupTitle), (0,
|
|
86
|
+
}, popupTitle), (0, _react2.jsx)(_select.components.Control, this.props));
|
|
87
87
|
}
|
|
88
88
|
}]);
|
|
89
89
|
return PopupControl;
|
|
@@ -13,14 +13,14 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
13
13
|
|
|
14
14
|
var _avatar = require("@atlaskit/avatar");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
19
19
|
|
|
20
20
|
var _utils = require("./utils");
|
|
21
21
|
|
|
22
22
|
var _excluded = ["ref"];
|
|
23
|
-
var avatarItemComponent = (0,
|
|
23
|
+
var avatarItemComponent = (0, _react.css)({
|
|
24
24
|
border: 'none !important',
|
|
25
25
|
padding: '0 !important',
|
|
26
26
|
width: 'auto',
|
|
@@ -46,9 +46,9 @@ var SingleValue = function SingleValue(props) {
|
|
|
46
46
|
_props$selectProps = props.selectProps,
|
|
47
47
|
appearance = _props$selectProps.appearance,
|
|
48
48
|
isFocused = _props$selectProps.isFocused;
|
|
49
|
-
return !isFocused ? (0,
|
|
49
|
+
return !isFocused ? (0, _react.jsx)(_avatar.AvatarItem, {
|
|
50
50
|
backgroundColor: "transparent",
|
|
51
|
-
avatar: (0,
|
|
51
|
+
avatar: (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
52
52
|
src: (0, _utils.getAvatarUrl)(data),
|
|
53
53
|
appearance: appearance,
|
|
54
54
|
name: label
|
|
@@ -57,7 +57,7 @@ var SingleValue = function SingleValue(props) {
|
|
|
57
57
|
}, function (_ref) {
|
|
58
58
|
var ref = _ref.ref,
|
|
59
59
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
61
61
|
css: avatarItemComponent
|
|
62
62
|
}, props));
|
|
63
63
|
}) : null;
|
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
30
|
var _select = require("@atlaskit/select");
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
var placeholderIconContainer = (0,
|
|
42
|
+
var placeholderIconContainer = (0, _react2.css)({
|
|
43
43
|
paddingLeft: "".concat(_styles.BORDER_PADDING, "px"),
|
|
44
44
|
lineHeight: 0
|
|
45
45
|
});
|
|
@@ -73,7 +73,7 @@ var SingleValueContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
73
73
|
value = _this$props$selectPro.value;
|
|
74
74
|
|
|
75
75
|
if (isFocused || !hasValue) {
|
|
76
|
-
return (0,
|
|
76
|
+
return (0, _react2.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
77
77
|
appearance: appearance,
|
|
78
78
|
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined
|
|
79
79
|
});
|
|
@@ -90,7 +90,7 @@ var SingleValueContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
90
90
|
var _this$props2 = this.props,
|
|
91
91
|
children = _this$props2.children,
|
|
92
92
|
valueContainerProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
|
|
93
|
-
return (0,
|
|
93
|
+
return (0, _react2.jsx)(_select.components.ValueContainer, valueContainerProps, (0, _react2.jsx)("div", {
|
|
94
94
|
css: placeholderIconContainer
|
|
95
95
|
}, this.renderAvatar()), children);
|
|
96
96
|
}
|
|
@@ -27,9 +27,9 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
27
27
|
|
|
28
28
|
var _tokens = require("@atlaskit/tokens");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _react = require("@emotion/react");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
33
33
|
|
|
34
34
|
var _reactIntlNext = require("react-intl-next");
|
|
35
35
|
|
|
@@ -64,10 +64,10 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
64
64
|
var _this$props$team = _this.props.team,
|
|
65
65
|
name = _this$props$team.name,
|
|
66
66
|
highlight = _this$props$team.highlight;
|
|
67
|
-
return [(0,
|
|
67
|
+
return [(0, _react.jsx)("span", {
|
|
68
68
|
key: "name",
|
|
69
69
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text', _colors.N800))
|
|
70
|
-
}, (0,
|
|
70
|
+
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
71
71
|
highlights: highlight && highlight.name
|
|
72
72
|
}, name))];
|
|
73
73
|
});
|
|
@@ -83,9 +83,9 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
83
83
|
} else {
|
|
84
84
|
if (includesYou === true) {
|
|
85
85
|
if (memberCount > 50) {
|
|
86
|
-
return _this.getBylineComponent(isSelected, (0,
|
|
86
|
+
return _this.getBylineComponent(isSelected, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.plus50MembersWithYou));
|
|
87
87
|
} else {
|
|
88
|
-
return _this.getBylineComponent(isSelected, (0,
|
|
88
|
+
return _this.getBylineComponent(isSelected, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithYou, {
|
|
89
89
|
values: {
|
|
90
90
|
count: memberCount
|
|
91
91
|
}
|
|
@@ -93,9 +93,9 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
93
93
|
}
|
|
94
94
|
} else {
|
|
95
95
|
if (memberCount > 50) {
|
|
96
|
-
return _this.getBylineComponent(isSelected, (0,
|
|
96
|
+
return _this.getBylineComponent(isSelected, (0, _react.jsx)(_reactIntlNext.FormattedMessage, _i18n.messages.plus50MembersWithoutYou));
|
|
97
97
|
} else {
|
|
98
|
-
return _this.getBylineComponent(isSelected, (0,
|
|
98
|
+
return _this.getBylineComponent(isSelected, (0, _react.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithoutYou, {
|
|
99
99
|
values: {
|
|
100
100
|
count: memberCount
|
|
101
101
|
}
|
|
@@ -105,7 +105,7 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getBylineComponent", function (isSelected, message) {
|
|
108
|
-
return (0,
|
|
108
|
+
return (0, _react.jsx)("span", {
|
|
109
109
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text.subtlest', _colors.N200))
|
|
110
110
|
}, message);
|
|
111
111
|
});
|
|
@@ -113,7 +113,7 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
113
113
|
var _this$props$team3 = _this.props.team,
|
|
114
114
|
avatarUrl = _this$props$team3.avatarUrl,
|
|
115
115
|
name = _this$props$team3.name;
|
|
116
|
-
return (0,
|
|
116
|
+
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
117
117
|
appearance: "big",
|
|
118
118
|
src: avatarUrl,
|
|
119
119
|
name: name
|
|
@@ -131,7 +131,7 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
131
131
|
return undefined;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
return (0,
|
|
134
|
+
return (0, _react.jsx)("span", {
|
|
135
135
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text.subtlest', _colors.N200))
|
|
136
136
|
}, _this.props.team.byline);
|
|
137
137
|
});
|
|
@@ -141,7 +141,7 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
141
141
|
(0, _createClass2.default)(TeamOption, [{
|
|
142
142
|
key: "render",
|
|
143
143
|
value: function render() {
|
|
144
|
-
return (0,
|
|
144
|
+
return (0, _react.jsx)(_AvatarItemOption.AvatarItemOption, {
|
|
145
145
|
avatar: this.renderAvatar(),
|
|
146
146
|
isDisabled: this.props.team.isDisabled,
|
|
147
147
|
lozenge: this.getLozengeProps(),
|
|
@@ -151,6 +151,6 @@ var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
151
151
|
}
|
|
152
152
|
}]);
|
|
153
153
|
return TeamOption;
|
|
154
|
-
}(
|
|
154
|
+
}(_react2.default.PureComponent);
|
|
155
155
|
|
|
156
156
|
exports.TeamOption = TeamOption;
|
|
@@ -25,9 +25,9 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
25
25
|
|
|
26
26
|
var _tokens = require("@atlaskit/tokens");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _react = require("@emotion/react");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _react2 = _interopRequireDefault(require("react"));
|
|
31
31
|
|
|
32
32
|
var _AvatarItemOption = require("./AvatarItemOption");
|
|
33
33
|
|
|
@@ -61,19 +61,19 @@ var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
61
61
|
name = _this$props$user.name,
|
|
62
62
|
publicName = _this$props$user.publicName,
|
|
63
63
|
highlight = _this$props$user.highlight;
|
|
64
|
-
var result = [(0,
|
|
64
|
+
var result = [(0, _react.jsx)("span", {
|
|
65
65
|
key: "name",
|
|
66
66
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text', _colors.N800))
|
|
67
|
-
}, (0,
|
|
67
|
+
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
68
68
|
highlights: highlight && highlight.name
|
|
69
69
|
}, name))];
|
|
70
70
|
|
|
71
71
|
if ((0, _utils.hasValue)(publicName) && name.trim() !== publicName.trim()) {
|
|
72
|
-
result.push((0,
|
|
72
|
+
result.push((0, _react.jsx)(_react2.default.Fragment, {
|
|
73
73
|
key: "publicName"
|
|
74
|
-
}, ' ', (0,
|
|
74
|
+
}, ' ', (0, _react.jsx)("span", {
|
|
75
75
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text.subtlest', _colors.N200))
|
|
76
|
-
}, "(", (0,
|
|
76
|
+
}, "(", (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
77
77
|
highlights: highlight && highlight.publicName
|
|
78
78
|
}, publicName), ")")));
|
|
79
79
|
}
|
|
@@ -81,7 +81,7 @@ var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
81
81
|
return result;
|
|
82
82
|
});
|
|
83
83
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderSecondaryText", function () {
|
|
84
|
-
return _this.props.user.byline ? (0,
|
|
84
|
+
return _this.props.user.byline ? (0, _react.jsx)("span", {
|
|
85
85
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? (0, _tokens.token)('color.text.selected', _colors.B400) : (0, _tokens.token)('color.text.subtlest', _colors.N200))
|
|
86
86
|
}, _this.props.user.byline) : undefined;
|
|
87
87
|
});
|
|
@@ -91,7 +91,7 @@ var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
91
91
|
avatarUrl = _this$props$user2.avatarUrl,
|
|
92
92
|
name = _this$props$user2.name,
|
|
93
93
|
status = _this$props.status;
|
|
94
|
-
return (0,
|
|
94
|
+
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
95
95
|
appearance: "big",
|
|
96
96
|
src: avatarUrl,
|
|
97
97
|
presence: status,
|
|
@@ -109,7 +109,7 @@ var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
109
109
|
(0, _createClass2.default)(UserOption, [{
|
|
110
110
|
key: "render",
|
|
111
111
|
value: function render() {
|
|
112
|
-
return (0,
|
|
112
|
+
return (0, _react.jsx)(_AvatarItemOption.AvatarItemOption, {
|
|
113
113
|
avatar: this.renderAvatar(),
|
|
114
114
|
lozenge: this.getLozengeProps(),
|
|
115
115
|
isDisabled: this.props.user.isDisabled,
|
|
@@ -119,6 +119,6 @@ var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
119
119
|
}
|
|
120
120
|
}]);
|
|
121
121
|
return UserOption;
|
|
122
|
-
}(
|
|
122
|
+
}(_react2.default.PureComponent);
|
|
123
123
|
|
|
124
124
|
exports.UserOption = UserOption;
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
|
3
3
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { token } from '@atlaskit/tokens';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
|
|
8
8
|
const getEmailAvatarWrapperStyle = isLozenge => {
|
|
9
9
|
const padding = isLozenge ? 0 : 4;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import Lozenge from '@atlaskit/lozenge';
|
|
6
6
|
import { token } from '@atlaskit/tokens';
|
|
7
7
|
import { isLozengeText } from './utils';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
9
9
|
import { HighlightText } from '../HighlightText';
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { token } from '@atlaskit/tokens';
|
|
8
|
-
import { jsx } from '@emotion/
|
|
8
|
+
import { jsx } from '@emotion/react';
|
|
9
9
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
10
10
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
11
11
|
import { messages } from '../i18n';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useState } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import EditorPanelIcon from '@atlaskit/icon/glyph/editor/panel';
|
|
5
5
|
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { token } from '@atlaskit/tokens';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { AtlassianIcon, ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
6
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
7
|
import { SlackIcon } from '../assets/slack';
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { token } from '@atlaskit/tokens';
|
|
8
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { N20, B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { token } from '@atlaskit/tokens';
|
|
9
9
|
import PeopleIcon from '@atlaskit/icon/glyph/people';
|
|
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
7
7
|
import { components } from '@atlaskit/select';
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
10
10
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
11
11
|
import { messages } from './i18n';
|
|
@@ -4,7 +4,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
4
4
|
import { token } from '@atlaskit/tokens';
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
import { components } from '@atlaskit/select';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { N200, DN90 } from '@atlaskit/theme/colors';
|
|
9
9
|
const spacing = gridSize();
|
|
10
10
|
const fontSize = 12;
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { AvatarItem } from '@atlaskit/avatar';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
7
|
import { getAvatarUrl } from './utils';
|
|
8
8
|
const avatarItemComponent = css({
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import { components } from '@atlaskit/select';
|
|
7
7
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
8
8
|
import { BORDER_PADDING } from './styles';
|
|
@@ -4,7 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { token } from '@atlaskit/tokens';
|
|
7
|
-
import { jsx } from '@emotion/
|
|
7
|
+
import { jsx } from '@emotion/react';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { FormattedMessage } from 'react-intl-next';
|
|
10
10
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { AvatarItemOption, textWrapper } from './AvatarItemOption';
|
|
9
9
|
import { HighlightText } from './HighlightText';
|
package/dist/es2019/version.json
CHANGED
|
@@ -3,7 +3,7 @@ import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
|
3
3
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { token } from '@atlaskit/tokens';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import { css, jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
|
|
8
8
|
var getEmailAvatarWrapperStyle = function getEmailAvatarWrapperStyle(isLozenge) {
|
|
9
9
|
var padding = isLozenge ? 0 : 4;
|
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
10
|
-
import { css, jsx } from '@emotion/
|
|
10
|
+
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import Lozenge from '@atlaskit/lozenge';
|
|
12
12
|
import { token } from '@atlaskit/tokens';
|
|
13
13
|
import { isLozengeText } from './utils';
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { token } from '@atlaskit/tokens';
|
|
16
|
-
import { jsx } from '@emotion/
|
|
16
|
+
import { jsx } from '@emotion/react';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
19
19
|
import { HighlightText } from '../HighlightText';
|
|
@@ -15,7 +15,7 @@ import React from 'react';
|
|
|
15
15
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
16
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
17
17
|
import { token } from '@atlaskit/tokens';
|
|
18
|
-
import { jsx } from '@emotion/
|
|
18
|
+
import { jsx } from '@emotion/react';
|
|
19
19
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
20
20
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
21
21
|
import { messages } from '../i18n';
|
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/** @jsx jsx */
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { B400 } from '@atlaskit/theme/colors';
|
|
10
10
|
import { token } from '@atlaskit/tokens';
|
|
11
11
|
|
|
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { useCallback, useState } from 'react';
|
|
5
|
-
import { css, jsx } from '@emotion/
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
6
6
|
import EditorPanelIcon from '@atlaskit/icon/glyph/editor/panel';
|
|
7
7
|
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { token } from '@atlaskit/tokens';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import { css, jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { AtlassianIcon, ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
6
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
7
|
import { SlackIcon } from '../assets/slack';
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { css, jsx } from '@emotion/
|
|
16
|
+
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { token } from '@atlaskit/tokens';
|
|
19
19
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { FormattedMessage } from 'react-intl-next';
|
|
16
|
-
import { css, jsx } from '@emotion/
|
|
16
|
+
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { N20, B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { token } from '@atlaskit/tokens';
|
|
19
19
|
import PeopleIcon from '@atlaskit/icon/glyph/people';
|
|
@@ -17,7 +17,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { FormattedMessage } from 'react-intl-next';
|
|
19
19
|
import { components } from '@atlaskit/select';
|
|
20
|
-
import { css, jsx } from '@emotion/
|
|
20
|
+
import { css, jsx } from '@emotion/react';
|
|
21
21
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
22
22
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
23
23
|
import { messages } from './i18n';
|
|
@@ -14,7 +14,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
14
14
|
import { token } from '@atlaskit/tokens';
|
|
15
15
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
16
16
|
import { components } from '@atlaskit/select';
|
|
17
|
-
import { css, jsx } from '@emotion/
|
|
17
|
+
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import { N200, DN90 } from '@atlaskit/theme/colors';
|
|
19
19
|
var spacing = gridSize();
|
|
20
20
|
var fontSize = 12;
|
|
@@ -4,7 +4,7 @@ var _excluded = ["ref"];
|
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { AvatarItem } from '@atlaskit/avatar';
|
|
7
|
-
import { css, jsx } from '@emotion/
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
9
9
|
import { getAvatarUrl } from './utils';
|
|
10
10
|
var avatarItemComponent = css({
|
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
14
14
|
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import { css, jsx } from '@emotion/
|
|
17
|
+
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import { components } from '@atlaskit/select';
|
|
19
19
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
20
20
|
import { BORDER_PADDING } from './styles';
|
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
16
16
|
import { token } from '@atlaskit/tokens';
|
|
17
|
-
import { jsx } from '@emotion/
|
|
17
|
+
import { jsx } from '@emotion/react';
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import { FormattedMessage } from 'react-intl-next';
|
|
20
20
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
15
|
import { token } from '@atlaskit/tokens';
|
|
16
|
-
import { jsx } from '@emotion/
|
|
16
|
+
import { jsx } from '@emotion/react';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { AvatarItemOption, textWrapper } from './AvatarItemOption';
|
|
19
19
|
import { HighlightText } from './HighlightText';
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { LozengeProps } from '../types';
|
|
4
|
-
export declare const textWrapper: (color?: string | undefined) => import("@emotion/
|
|
5
|
+
export declare const textWrapper: (color?: string | undefined) => import("@emotion/react").SerializedStyles;
|
|
5
6
|
export declare type AvatarItemOptionProps = {
|
|
6
7
|
avatar: ReactNode;
|
|
7
8
|
isDisabled?: boolean;
|
|
@@ -9,4 +10,4 @@ export declare type AvatarItemOptionProps = {
|
|
|
9
10
|
primaryText?: ReactNode;
|
|
10
11
|
secondaryText?: ReactNode;
|
|
11
12
|
};
|
|
12
|
-
export declare const AvatarItemOption: ({ avatar, isDisabled, lozenge, primaryText, secondaryText, }: AvatarItemOptionProps) => JSX.Element;
|
|
13
|
+
export declare const AvatarItemOption: ({ avatar, isDisabled, lozenge, primaryText, secondaryText, }: AvatarItemOptionProps) => jsx.JSX.Element;
|