@atlaskit/avatar 21.17.0 → 21.17.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 +17 -0
- package/__perf__/default.tsx +1 -1
- package/dist/cjs/{AvatarImage.js → avatar-image.js} +2 -2
- package/dist/cjs/{AvatarItem.js → avatar-item.js} +2 -2
- package/dist/cjs/{Avatar.js → avatar.js} +7 -9
- package/dist/cjs/constants.js +1 -1
- package/dist/cjs/entry-points/avatar-item.js +2 -2
- package/dist/cjs/entry-points/avatar.js +2 -2
- package/dist/cjs/entry-points/presence.js +2 -2
- package/dist/cjs/entry-points/skeleton.js +2 -2
- package/dist/cjs/entry-points/status.js +2 -2
- package/dist/cjs/{IconWrapper.js → icon-wrapper.js} +0 -3
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/{Presence.js → presence.js} +2 -4
- package/dist/cjs/{Skeleton.js → skeleton.js} +1 -4
- package/dist/cjs/{Status.js → status.js} +2 -4
- package/dist/cjs/utilities.js +0 -2
- package/dist/es2019/{AvatarImage.js → avatar-image.js} +1 -3
- package/dist/es2019/{AvatarItem.js → avatar-item.js} +3 -3
- package/dist/es2019/{Avatar.js → avatar.js} +4 -7
- package/dist/es2019/constants.js +1 -1
- package/dist/es2019/entry-points/avatar-item.js +1 -2
- package/dist/es2019/entry-points/avatar.js +1 -2
- package/dist/es2019/entry-points/presence.js +1 -2
- package/dist/es2019/entry-points/skeleton.js +1 -2
- package/dist/es2019/entry-points/status.js +1 -2
- package/dist/es2019/{IconWrapper.js → icon-wrapper.js} +0 -2
- package/dist/es2019/index.js +5 -6
- package/dist/es2019/{Presence.js → presence.js} +1 -2
- package/dist/es2019/{Skeleton.js → skeleton.js} +0 -4
- package/dist/es2019/{Status.js → status.js} +1 -2
- package/dist/es2019/utilities.js +0 -2
- package/dist/esm/{AvatarImage.js → avatar-image.js} +1 -3
- package/dist/esm/{AvatarItem.js → avatar-item.js} +3 -3
- package/dist/esm/{Avatar.js → avatar.js} +4 -7
- package/dist/esm/constants.js +1 -1
- package/dist/esm/entry-points/avatar-item.js +1 -2
- package/dist/esm/entry-points/avatar.js +1 -2
- package/dist/esm/entry-points/presence.js +1 -2
- package/dist/esm/entry-points/skeleton.js +1 -2
- package/dist/esm/entry-points/status.js +1 -2
- package/dist/esm/{IconWrapper.js → icon-wrapper.js} +0 -2
- package/dist/esm/index.js +5 -6
- package/dist/esm/{Presence.js → presence.js} +1 -2
- package/dist/esm/{Skeleton.js → skeleton.js} +0 -4
- package/dist/esm/{Status.js → status.js} +1 -2
- package/dist/esm/utilities.js +0 -2
- package/dist/types/entry-points/avatar-item.d.ts +2 -2
- package/dist/types/entry-points/avatar.d.ts +1 -1
- package/dist/types/entry-points/presence.d.ts +2 -2
- package/dist/types/entry-points/skeleton.d.ts +2 -2
- package/dist/types/entry-points/status.d.ts +2 -2
- package/dist/types/index.d.ts +10 -10
- package/dist/types-ts4.5/entry-points/avatar-item.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/avatar.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/presence.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/skeleton.d.ts +2 -2
- package/dist/types-ts4.5/entry-points/status.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +10 -10
- package/package.json +12 -11
- /package/dist/types/{AvatarImage.d.ts → avatar-image.d.ts} +0 -0
- /package/dist/types/{AvatarItem.d.ts → avatar-item.d.ts} +0 -0
- /package/dist/types/{Avatar.d.ts → avatar.d.ts} +0 -0
- /package/dist/types/{IconWrapper.d.ts → icon-wrapper.d.ts} +0 -0
- /package/dist/types/{Presence.d.ts → presence.d.ts} +0 -0
- /package/dist/types/{Skeleton.d.ts → skeleton.d.ts} +0 -0
- /package/dist/types/{Status.d.ts → status.d.ts} +0 -0
- /package/dist/types-ts4.5/{AvatarImage.d.ts → avatar-image.d.ts} +0 -0
- /package/dist/types-ts4.5/{AvatarItem.d.ts → avatar-item.d.ts} +0 -0
- /package/dist/types-ts4.5/{Avatar.d.ts → avatar.d.ts} +0 -0
- /package/dist/types-ts4.5/{IconWrapper.d.ts → icon-wrapper.d.ts} +0 -0
- /package/dist/types-ts4.5/{Presence.d.ts → presence.d.ts} +0 -0
- /package/dist/types-ts4.5/{Skeleton.d.ts → skeleton.d.ts} +0 -0
- /package/dist/types-ts4.5/{Status.d.ts → status.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/avatar
|
|
2
2
|
|
|
3
|
+
## 21.17.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#159704](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/159704)
|
|
8
|
+
[`b3a2ceaf98b77`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b3a2ceaf98b77) -
|
|
9
|
+
Internal refactoring of file names and resolving of ESLint disables.
|
|
10
|
+
|
|
11
|
+
## 21.17.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#157335](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/157335)
|
|
16
|
+
[`51a41686c7949`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/51a41686c7949) -
|
|
17
|
+
Fixes lineheight issue for xxxsmall avatars which was throwing off the positioning of the fallback
|
|
18
|
+
icon
|
|
19
|
+
|
|
3
20
|
## 21.17.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/__perf__/default.tsx
CHANGED
|
@@ -20,8 +20,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
20
20
|
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; } /**
|
|
21
21
|
* @jsxRuntime classic
|
|
22
22
|
* @jsx jsx
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
*/
|
|
25
24
|
var avatarDefaultIconStyles = (0, _react2.css)({
|
|
26
25
|
display: 'block',
|
|
27
26
|
width: '100%',
|
|
@@ -39,6 +38,7 @@ var nestedAvatarStyles = Object.entries(_constants.AVATAR_SIZES).reduce(function
|
|
|
39
38
|
key = _ref2[0],
|
|
40
39
|
size = _ref2[1];
|
|
41
40
|
return _objectSpread(_objectSpread({}, styles), {}, (0, _defineProperty2.default)({}, key, (0, _react2.css)({
|
|
41
|
+
lineHeight: 0,
|
|
42
42
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
43
|
'& svg': {
|
|
44
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -20,7 +20,6 @@ var _templateObject;
|
|
|
20
20
|
* @jsxRuntime classic
|
|
21
21
|
* @jsx jsx
|
|
22
22
|
*/
|
|
23
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
24
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
24
|
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; }
|
|
26
25
|
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; }
|
|
@@ -33,6 +32,7 @@ var avatarItemStyles = (0, _react2.css)({
|
|
|
33
32
|
});
|
|
34
33
|
var secondaryTextOldStyles = (0, _react2.css)({
|
|
35
34
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
36
36
|
fontSize: '0.85em'
|
|
37
37
|
});
|
|
38
38
|
var baseTextStyles = (0, _react2.css)({
|
|
@@ -108,7 +108,7 @@ var AvatarItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
108
108
|
}), {}, {
|
|
109
109
|
children: (0, _react2.jsx)(_react.Fragment, null, avatar, (0, _react2.jsx)("div", {
|
|
110
110
|
css: avatarItemStyles
|
|
111
|
-
}, (0, _platformFeatureFlags.
|
|
111
|
+
}, (0, _platformFeatureFlags.fg)('platform.design-system-team.avatar-item-font-size_830x6') ? (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_primitives.Text, {
|
|
112
112
|
maxLines: isTruncationDisabled ? undefined : 1
|
|
113
113
|
}, primaryText), (0, _react2.jsx)(_primitives.Text, {
|
|
114
114
|
color: "color.text.subtlest",
|
|
@@ -14,23 +14,21 @@ var _useId = require("@atlaskit/ds-lib/use-id");
|
|
|
14
14
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
15
15
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
|
-
var
|
|
17
|
+
var _avatarImage = _interopRequireDefault(require("./avatar-image"));
|
|
18
18
|
var _constants = require("./constants");
|
|
19
19
|
var _context = require("./context");
|
|
20
|
-
var
|
|
21
|
-
var
|
|
20
|
+
var _presence = require("./presence");
|
|
21
|
+
var _status = require("./status");
|
|
22
22
|
var _utilities = require("./utilities");
|
|
23
23
|
var _templateObject;
|
|
24
24
|
/**
|
|
25
25
|
* @jsxRuntime classic
|
|
26
26
|
* @jsx jsx
|
|
27
27
|
*/
|
|
28
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
29
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
30
28
|
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; }
|
|
31
29
|
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; }
|
|
32
30
|
var packageName = "@atlaskit/avatar";
|
|
33
|
-
var packageVersion = "21.17.
|
|
31
|
+
var packageVersion = "21.17.2";
|
|
34
32
|
var getTestId = function getTestId(testId, children) {
|
|
35
33
|
return !children ? {
|
|
36
34
|
'data-testid': "".concat(testId, "--inner")
|
|
@@ -179,7 +177,7 @@ var Avatar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
179
177
|
}, componentProps()), testId && getTestId(testId, children)), (isInteractive || children) && {
|
|
180
178
|
'aria-label': label || defaultLabel
|
|
181
179
|
}), {}, {
|
|
182
|
-
children: (0, _react2.jsx)(
|
|
180
|
+
children: (0, _react2.jsx)(_avatarImage.default
|
|
183
181
|
// Only pass in the name if an image is provided and the
|
|
184
182
|
// container is not being used as an `img` role
|
|
185
183
|
, {
|
|
@@ -196,12 +194,12 @@ var Avatar = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
196
194
|
}
|
|
197
195
|
var element = (0, _utilities.getCustomElement)(isDisabled, href, onClick);
|
|
198
196
|
return element === 'a' || element === 'button' ? (0, _react2.jsx)(_focusRing.default, null, /*#__PURE__*/(0, _react.createElement)(element, props)) : ( /*#__PURE__*/(0, _react.createElement)(element, props));
|
|
199
|
-
}), isPresence && (0, _react2.jsx)(
|
|
197
|
+
}), isPresence && (0, _react2.jsx)(_presence.PresenceWrapper, {
|
|
200
198
|
appearance: appearance,
|
|
201
199
|
size: size,
|
|
202
200
|
presence: typeof presence === 'string' ? presence : undefined,
|
|
203
201
|
testId: testId
|
|
204
|
-
}, customPresenceNode), isStatus && (0, _react2.jsx)(
|
|
202
|
+
}, customPresenceNode), isStatus && (0, _react2.jsx)(_status.StatusWrapper, {
|
|
205
203
|
appearance: appearance,
|
|
206
204
|
size: size,
|
|
207
205
|
borderColor: borderColor,
|
package/dist/cjs/constants.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.ICON_SIZES = exports.ICON_OFFSET = exports.CSS_VAR_AVATAR_BGCOLOR = exports.BORDER_WIDTH = exports.AVATAR_SIZES = exports.AVATAR_RADIUS = exports.ACTIVE_SCALE_FACTOR = void 0;
|
|
7
7
|
var _constants = require("@atlaskit/theme/constants");
|
|
8
|
-
// eslint-disable-next-line @
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
9
|
|
|
10
10
|
var AVATAR_SIZES = exports.AVATAR_SIZES = {
|
|
11
11
|
xsmall: (0, _constants.gridSize)() * 2,
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _avatarItem.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _avatarItem = _interopRequireDefault(require("../avatar-item"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _avatar.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _avatar = _interopRequireDefault(require("../avatar"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _presence.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _presence = _interopRequireDefault(require("../presence"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _skeleton.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _skeleton = _interopRequireDefault(require("../skeleton"));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
Object.defineProperty(exports, "default", {
|
|
8
8
|
enumerable: true,
|
|
9
9
|
get: function get() {
|
|
10
|
-
return
|
|
10
|
+
return _status.default;
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
var
|
|
13
|
+
var _status = _interopRequireDefault(require("../status"));
|
|
@@ -11,9 +11,6 @@ var _constants = require("./constants");
|
|
|
11
11
|
* @jsxRuntime classic
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
14
|
|
|
18
15
|
var iconWrapperStyles = (0, _react.css)({
|
|
19
16
|
display: 'flex',
|
package/dist/cjs/index.js
CHANGED
|
@@ -31,7 +31,7 @@ Object.defineProperty(exports, "AvatarContext", {
|
|
|
31
31
|
Object.defineProperty(exports, "AvatarItem", {
|
|
32
32
|
enumerable: true,
|
|
33
33
|
get: function get() {
|
|
34
|
-
return
|
|
34
|
+
return _avatarItem.default;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "BORDER_WIDTH", {
|
|
@@ -43,25 +43,25 @@ Object.defineProperty(exports, "BORDER_WIDTH", {
|
|
|
43
43
|
Object.defineProperty(exports, "Presence", {
|
|
44
44
|
enumerable: true,
|
|
45
45
|
get: function get() {
|
|
46
|
-
return
|
|
46
|
+
return _presence.default;
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Skeleton", {
|
|
50
50
|
enumerable: true,
|
|
51
51
|
get: function get() {
|
|
52
|
-
return
|
|
52
|
+
return _skeleton.default;
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "Status", {
|
|
56
56
|
enumerable: true,
|
|
57
57
|
get: function get() {
|
|
58
|
-
return
|
|
58
|
+
return _status.default;
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "default", {
|
|
62
62
|
enumerable: true,
|
|
63
63
|
get: function get() {
|
|
64
|
-
return
|
|
64
|
+
return _avatar.default;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "useAvatarContext", {
|
|
@@ -70,10 +70,10 @@ Object.defineProperty(exports, "useAvatarContext", {
|
|
|
70
70
|
return _context.useAvatarContext;
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
73
|
+
var _avatar = _interopRequireDefault(require("./avatar"));
|
|
74
|
+
var _avatarItem = _interopRequireDefault(require("./avatar-item"));
|
|
75
|
+
var _presence = _interopRequireDefault(require("./presence"));
|
|
76
|
+
var _status = _interopRequireDefault(require("./status"));
|
|
77
|
+
var _skeleton = _interopRequireDefault(require("./skeleton"));
|
|
78
78
|
var _context = require("./context");
|
|
79
79
|
var _constants = require("./constants");
|
|
@@ -9,11 +9,9 @@ exports.default = exports.PresenceWrapper = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _constants = require("./constants");
|
|
12
|
-
var
|
|
12
|
+
var _iconWrapper = _interopRequireDefault(require("./icon-wrapper"));
|
|
13
13
|
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); }
|
|
14
14
|
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 && {}.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; }
|
|
15
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
16
|
-
|
|
17
15
|
var BusyIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("circle", {
|
|
18
16
|
fill: "var(--ds-icon-danger, ".concat(_colors.R300, ")"),
|
|
19
17
|
cx: "4",
|
|
@@ -66,7 +64,7 @@ var AvatarPresence = function AvatarPresence(_ref) {
|
|
|
66
64
|
var borderColor = _ref.borderColor,
|
|
67
65
|
children = _ref.children,
|
|
68
66
|
presence = _ref.presence;
|
|
69
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_iconWrapper.default, {
|
|
70
68
|
bgColor: borderColor
|
|
71
69
|
}, presence ? /*#__PURE__*/_react.default.createElement("svg", {
|
|
72
70
|
height: "100%",
|
|
@@ -13,8 +13,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
13
13
|
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; } /**
|
|
14
14
|
* @jsxRuntime classic
|
|
15
15
|
* @jsx jsx
|
|
16
|
-
*/
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
*/
|
|
18
17
|
var skeletonStyles = (0, _react.css)({
|
|
19
18
|
display: 'inline-block',
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -33,8 +32,6 @@ var sizeStyles = Object.entries(_constants.AVATAR_SIZES).reduce(function (styles
|
|
|
33
32
|
height: "".concat(size, "px")
|
|
34
33
|
})));
|
|
35
34
|
}, {});
|
|
36
|
-
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
38
35
|
var radiusStyles = Object.entries(_constants.AVATAR_RADIUS).reduce(function (styles, _ref3) {
|
|
39
36
|
var _ref4 = (0, _slicedToArray2.default)(_ref3, 2),
|
|
40
37
|
key = _ref4[0],
|
|
@@ -9,11 +9,9 @@ exports.default = exports.StatusWrapper = void 0;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _constants = require("./constants");
|
|
12
|
-
var
|
|
12
|
+
var _iconWrapper = _interopRequireDefault(require("./icon-wrapper"));
|
|
13
13
|
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); }
|
|
14
14
|
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 && {}.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; }
|
|
15
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
16
|
-
|
|
17
15
|
var ApprovedIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("circle", {
|
|
18
16
|
fill: "var(--ds-icon-success, ".concat(_colors.G400, ")"),
|
|
19
17
|
cx: "4",
|
|
@@ -64,7 +62,7 @@ var AvatarStatus = function AvatarStatus(_ref) {
|
|
|
64
62
|
var borderColor = _ref.borderColor,
|
|
65
63
|
children = _ref.children,
|
|
66
64
|
status = _ref.status;
|
|
67
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement(_iconWrapper.default, {
|
|
68
66
|
bgColor: borderColor
|
|
69
67
|
}, status ? /*#__PURE__*/_react.default.createElement("svg", {
|
|
70
68
|
height: "100%",
|
package/dist/cjs/utilities.js
CHANGED
|
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLinkProps = exports.getCustomElement = exports.getButtonProps = void 0;
|
|
7
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
8
|
-
|
|
9
7
|
var getLinkProps = exports.getLinkProps = function getLinkProps(href, target) {
|
|
10
8
|
return {
|
|
11
9
|
href: href,
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
import { useEffect, useState } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
6
|
import { css, jsx } from '@emotion/react';
|
|
10
7
|
import PersonIconLegacy from '@atlaskit/icon/core/migration/person';
|
|
11
8
|
import ReleaseIconMigration from '@atlaskit/icon/core/migration/release--ship';
|
|
@@ -30,6 +27,7 @@ const nestedAvatarStyles = Object.entries(AVATAR_SIZES).reduce((styles, [key, si
|
|
|
30
27
|
return {
|
|
31
28
|
...styles,
|
|
32
29
|
[key]: css({
|
|
30
|
+
lineHeight: 0,
|
|
33
31
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
34
32
|
'& svg': {
|
|
35
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
import { createElement, forwardRef, Fragment } from 'react';
|
|
7
6
|
|
|
8
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
8
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
10
|
-
import {
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { Text } from '@atlaskit/primitives';
|
|
12
11
|
import { B200, B50, N30 } from '@atlaskit/theme/colors';
|
|
13
12
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -22,6 +21,7 @@ const avatarItemStyles = css({
|
|
|
22
21
|
});
|
|
23
22
|
const secondaryTextOldStyles = css({
|
|
24
23
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
25
25
|
fontSize: '0.85em'
|
|
26
26
|
});
|
|
27
27
|
const baseTextStyles = css({
|
|
@@ -141,7 +141,7 @@ const AvatarItem = /*#__PURE__*/forwardRef(({
|
|
|
141
141
|
}),
|
|
142
142
|
children: jsx(Fragment, null, avatar, jsx("div", {
|
|
143
143
|
css: avatarItemStyles
|
|
144
|
-
},
|
|
144
|
+
}, fg('platform.design-system-team.avatar-item-font-size_830x6') ? jsx(Fragment, null, jsx(Text, {
|
|
145
145
|
maxLines: isTruncationDisabled ? undefined : 1
|
|
146
146
|
}, primaryText), jsx(Text, {
|
|
147
147
|
color: "color.text.subtlest",
|
|
@@ -2,24 +2,21 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
import { createElement, forwardRef, isValidElement, useCallback, useEffect, useRef } from 'react';
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
6
|
import { ClassNames, jsx } from '@emotion/react';
|
|
10
7
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
11
8
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
12
9
|
import FocusRing from '@atlaskit/focus-ring';
|
|
13
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
11
|
import { N0, N70A } from '@atlaskit/theme/colors';
|
|
15
|
-
import AvatarImage from './
|
|
12
|
+
import AvatarImage from './avatar-image';
|
|
16
13
|
import { ACTIVE_SCALE_FACTOR, AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH } from './constants';
|
|
17
14
|
import { useAvatarContext } from './context';
|
|
18
|
-
import { PresenceWrapper } from './
|
|
19
|
-
import { StatusWrapper } from './
|
|
15
|
+
import { PresenceWrapper } from './presence';
|
|
16
|
+
import { StatusWrapper } from './status';
|
|
20
17
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
21
18
|
const packageName = "@atlaskit/avatar";
|
|
22
|
-
const packageVersion = "21.17.
|
|
19
|
+
const packageVersion = "21.17.2";
|
|
23
20
|
const getTestId = (testId, children) => !children ? {
|
|
24
21
|
'data-testid': `${testId}--inner`
|
|
25
22
|
} : {
|
package/dist/es2019/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// eslint-disable-next-line @
|
|
1
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
export const AVATAR_SIZES = {
|
|
4
4
|
xsmall: gridSize() * 2,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../AvatarItem';
|
|
1
|
+
export { default } from '../avatar-item';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Avatar';
|
|
1
|
+
export { default } from '../avatar';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Presence';
|
|
1
|
+
export { default } from '../presence';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Skeleton';
|
|
1
|
+
export { default } from '../skeleton';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Status';
|
|
1
|
+
export { default } from '../status';
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
10
8
|
import { BORDER_WIDTH } from './constants';
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from './
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as Skeleton } from './Skeleton';
|
|
1
|
+
export { default } from './avatar';
|
|
2
|
+
export { default as AvatarItem } from './avatar-item';
|
|
3
|
+
export { default as Presence } from './presence';
|
|
4
|
+
export { default as Status } from './status';
|
|
5
|
+
export { default as Skeleton } from './skeleton';
|
|
7
6
|
export { AvatarContext, useAvatarContext } from './context';
|
|
8
7
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
2
1
|
import React, { Fragment } from 'react';
|
|
3
2
|
import { G300, N0, N200, N40, P300, R300 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { ICON_OFFSET, ICON_SIZES } from './constants';
|
|
5
|
-
import IconWrapper from './
|
|
4
|
+
import IconWrapper from './icon-wrapper';
|
|
6
5
|
const BusyIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
|
|
7
6
|
fill: `var(--ds-icon-danger, ${R300})`,
|
|
8
7
|
cx: "4",
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
import { AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH, CSS_VAR_AVATAR_BGCOLOR } from './constants';
|
|
10
8
|
const skeletonStyles = css({
|
|
@@ -25,8 +23,6 @@ const sizeStyles = Object.entries(AVATAR_SIZES).reduce((styles, [key, size]) =>
|
|
|
25
23
|
})
|
|
26
24
|
};
|
|
27
25
|
}, {});
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
30
26
|
const radiusStyles = Object.entries(AVATAR_RADIUS).reduce((styles, [key, size]) => {
|
|
31
27
|
return {
|
|
32
28
|
...styles,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
2
1
|
import React, { Fragment } from 'react';
|
|
3
2
|
import { G400, N0, N40, N500, R400 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { ICON_OFFSET, ICON_SIZES } from './constants';
|
|
5
|
-
import IconWrapper from './
|
|
4
|
+
import IconWrapper from './icon-wrapper';
|
|
6
5
|
const ApprovedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
|
|
7
6
|
fill: `var(--ds-icon-success, ${G400})`,
|
|
8
7
|
cx: "4",
|
package/dist/es2019/utilities.js
CHANGED
|
@@ -6,10 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
* @jsxRuntime classic
|
|
7
7
|
* @jsx jsx
|
|
8
8
|
*/
|
|
9
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
10
9
|
import { useEffect, useState } from 'react';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
10
|
import { css, jsx } from '@emotion/react';
|
|
14
11
|
import PersonIconLegacy from '@atlaskit/icon/core/migration/person';
|
|
15
12
|
import ReleaseIconMigration from '@atlaskit/icon/core/migration/release--ship';
|
|
@@ -35,6 +32,7 @@ var nestedAvatarStyles = Object.entries(AVATAR_SIZES).reduce(function (styles, _
|
|
|
35
32
|
key = _ref2[0],
|
|
36
33
|
size = _ref2[1];
|
|
37
34
|
return _objectSpread(_objectSpread({}, styles), {}, _defineProperty({}, key, css({
|
|
35
|
+
lineHeight: 0,
|
|
38
36
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
37
|
'& svg': {
|
|
40
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -7,12 +7,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
* @jsxRuntime classic
|
|
8
8
|
* @jsx jsx
|
|
9
9
|
*/
|
|
10
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
11
10
|
import { createElement, forwardRef, Fragment } from 'react';
|
|
12
11
|
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
13
|
import { ClassNames, css, jsx } from '@emotion/react';
|
|
15
|
-
import {
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { Text } from '@atlaskit/primitives';
|
|
17
16
|
import { B200, B50, N30 } from '@atlaskit/theme/colors';
|
|
18
17
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -27,6 +26,7 @@ var avatarItemStyles = css({
|
|
|
27
26
|
});
|
|
28
27
|
var secondaryTextOldStyles = css({
|
|
29
28
|
color: "var(--ds-text-subtlest, #626F86)",
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
30
30
|
fontSize: '0.85em'
|
|
31
31
|
});
|
|
32
32
|
var baseTextStyles = css({
|
|
@@ -102,7 +102,7 @@ var AvatarItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
102
102
|
}), {}, {
|
|
103
103
|
children: jsx(Fragment, null, avatar, jsx("div", {
|
|
104
104
|
css: avatarItemStyles
|
|
105
|
-
},
|
|
105
|
+
}, fg('platform.design-system-team.avatar-item-font-size_830x6') ? jsx(Fragment, null, jsx(Text, {
|
|
106
106
|
maxLines: isTruncationDisabled ? undefined : 1
|
|
107
107
|
}, primaryText), jsx(Text, {
|
|
108
108
|
color: "color.text.subtlest",
|
|
@@ -7,24 +7,21 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
* @jsxRuntime classic
|
|
8
8
|
* @jsx jsx
|
|
9
9
|
*/
|
|
10
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
11
10
|
import { createElement, forwardRef, isValidElement, useCallback, useEffect, useRef } from 'react';
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
11
|
import { ClassNames, jsx } from '@emotion/react';
|
|
15
12
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
16
13
|
import { useId } from '@atlaskit/ds-lib/use-id';
|
|
17
14
|
import FocusRing from '@atlaskit/focus-ring';
|
|
18
15
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
16
|
import { N0, N70A } from '@atlaskit/theme/colors';
|
|
20
|
-
import AvatarImage from './
|
|
17
|
+
import AvatarImage from './avatar-image';
|
|
21
18
|
import { ACTIVE_SCALE_FACTOR, AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH } from './constants';
|
|
22
19
|
import { useAvatarContext } from './context';
|
|
23
|
-
import { PresenceWrapper } from './
|
|
24
|
-
import { StatusWrapper } from './
|
|
20
|
+
import { PresenceWrapper } from './presence';
|
|
21
|
+
import { StatusWrapper } from './status';
|
|
25
22
|
import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
|
|
26
23
|
var packageName = "@atlaskit/avatar";
|
|
27
|
-
var packageVersion = "21.17.
|
|
24
|
+
var packageVersion = "21.17.2";
|
|
28
25
|
var getTestId = function getTestId(testId, children) {
|
|
29
26
|
return !children ? {
|
|
30
27
|
'data-testid': "".concat(testId, "--inner")
|
package/dist/esm/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// eslint-disable-next-line @
|
|
1
|
+
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
export var AVATAR_SIZES = {
|
|
4
4
|
xsmall: gridSize() * 2,
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../AvatarItem';
|
|
1
|
+
export { default } from '../avatar-item';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Avatar';
|
|
1
|
+
export { default } from '../avatar';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Presence';
|
|
1
|
+
export { default } from '../presence';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Skeleton';
|
|
1
|
+
export { default } from '../skeleton';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from '../Status';
|
|
1
|
+
export { default } from '../status';
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
6
5
|
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
6
|
import { css, jsx } from '@emotion/react';
|
|
9
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
10
8
|
import { BORDER_WIDTH } from './constants';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from './
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as Skeleton } from './Skeleton';
|
|
1
|
+
export { default } from './avatar';
|
|
2
|
+
export { default as AvatarItem } from './avatar-item';
|
|
3
|
+
export { default as Presence } from './presence';
|
|
4
|
+
export { default as Status } from './status';
|
|
5
|
+
export { default as Skeleton } from './skeleton';
|
|
7
6
|
export { AvatarContext, useAvatarContext } from './context';
|
|
8
7
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
2
1
|
import React, { Fragment } from 'react';
|
|
3
2
|
import { G300, N0, N200, N40, P300, R300 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { ICON_OFFSET, ICON_SIZES } from './constants';
|
|
5
|
-
import IconWrapper from './
|
|
4
|
+
import IconWrapper from './icon-wrapper';
|
|
6
5
|
var BusyIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
|
|
7
6
|
fill: "var(--ds-icon-danger, ".concat(R300, ")"),
|
|
8
7
|
cx: "4",
|
|
@@ -6,9 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
* @jsxRuntime classic
|
|
7
7
|
* @jsx jsx
|
|
8
8
|
*/
|
|
9
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
10
9
|
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
10
|
import { css, jsx } from '@emotion/react';
|
|
13
11
|
import { AVATAR_RADIUS, AVATAR_SIZES, BORDER_WIDTH, CSS_VAR_AVATAR_BGCOLOR } from './constants';
|
|
14
12
|
var skeletonStyles = css({
|
|
@@ -29,8 +27,6 @@ var sizeStyles = Object.entries(AVATAR_SIZES).reduce(function (styles, _ref) {
|
|
|
29
27
|
height: "".concat(size, "px")
|
|
30
28
|
})));
|
|
31
29
|
}, {});
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
34
30
|
var radiusStyles = Object.entries(AVATAR_RADIUS).reduce(function (styles, _ref3) {
|
|
35
31
|
var _ref4 = _slicedToArray(_ref3, 2),
|
|
36
32
|
key = _ref4[0],
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// eslint-disable-next-line @repo/internal/fs/filename-pattern-match
|
|
2
1
|
import React, { Fragment } from 'react';
|
|
3
2
|
import { G400, N0, N40, N500, R400 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { ICON_OFFSET, ICON_SIZES } from './constants';
|
|
5
|
-
import IconWrapper from './
|
|
4
|
+
import IconWrapper from './icon-wrapper';
|
|
6
5
|
var ApprovedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
|
|
7
6
|
fill: "var(--ds-icon-success, ".concat(G400, ")"),
|
|
8
7
|
cx: "4",
|
package/dist/esm/utilities.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { AvatarItemProps, CustomAvatarItemProps } from '../
|
|
1
|
+
export { default } from '../avatar-item';
|
|
2
|
+
export type { AvatarItemProps, CustomAvatarItemProps } from '../avatar-item';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../avatar';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { PresenceProps } from '../
|
|
1
|
+
export { default } from '../presence';
|
|
2
|
+
export type { PresenceProps } from '../presence';
|
|
3
3
|
export type { Presence as PresenceType } from '../types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { SkeletonProps } from '../
|
|
1
|
+
export { default } from '../skeleton';
|
|
2
|
+
export type { SkeletonProps } from '../skeleton';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { StatusProps } from '../
|
|
1
|
+
export { default } from '../status';
|
|
2
|
+
export type { StatusProps } from '../status';
|
|
3
3
|
export type { Status as StatusType } from '../types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { AvatarPropTypes, CustomAvatarProps } from './
|
|
3
|
-
export { default as AvatarItem } from './
|
|
4
|
-
export type { AvatarItemProps, CustomAvatarItemProps } from './
|
|
5
|
-
export { default as Presence } from './
|
|
6
|
-
export type { PresenceProps } from './
|
|
7
|
-
export { default as Status } from './
|
|
8
|
-
export type { StatusProps } from './
|
|
9
|
-
export { default as Skeleton } from './
|
|
10
|
-
export type { SkeletonProps } from './
|
|
1
|
+
export { default } from './avatar';
|
|
2
|
+
export type { AvatarPropTypes, CustomAvatarProps } from './avatar';
|
|
3
|
+
export { default as AvatarItem } from './avatar-item';
|
|
4
|
+
export type { AvatarItemProps, CustomAvatarItemProps } from './avatar-item';
|
|
5
|
+
export { default as Presence } from './presence';
|
|
6
|
+
export type { PresenceProps } from './presence';
|
|
7
|
+
export { default as Status } from './status';
|
|
8
|
+
export type { StatusProps } from './status';
|
|
9
|
+
export { default as Skeleton } from './skeleton';
|
|
10
|
+
export type { SkeletonProps } from './skeleton';
|
|
11
11
|
export { AvatarContext, type AvatarContextProps, useAvatarContext } from './context';
|
|
12
12
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';
|
|
13
13
|
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { AvatarItemProps, CustomAvatarItemProps } from '../
|
|
1
|
+
export { default } from '../avatar-item';
|
|
2
|
+
export type { AvatarItemProps, CustomAvatarItemProps } from '../avatar-item';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from '../
|
|
1
|
+
export { default } from '../avatar';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { PresenceProps } from '../
|
|
1
|
+
export { default } from '../presence';
|
|
2
|
+
export type { PresenceProps } from '../presence';
|
|
3
3
|
export type { Presence as PresenceType } from '../types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { SkeletonProps } from '../
|
|
1
|
+
export { default } from '../skeleton';
|
|
2
|
+
export type { SkeletonProps } from '../skeleton';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from '../
|
|
2
|
-
export type { StatusProps } from '../
|
|
1
|
+
export { default } from '../status';
|
|
2
|
+
export type { StatusProps } from '../status';
|
|
3
3
|
export type { Status as StatusType } from '../types';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export type { AvatarPropTypes, CustomAvatarProps } from './
|
|
3
|
-
export { default as AvatarItem } from './
|
|
4
|
-
export type { AvatarItemProps, CustomAvatarItemProps } from './
|
|
5
|
-
export { default as Presence } from './
|
|
6
|
-
export type { PresenceProps } from './
|
|
7
|
-
export { default as Status } from './
|
|
8
|
-
export type { StatusProps } from './
|
|
9
|
-
export { default as Skeleton } from './
|
|
10
|
-
export type { SkeletonProps } from './
|
|
1
|
+
export { default } from './avatar';
|
|
2
|
+
export type { AvatarPropTypes, CustomAvatarProps } from './avatar';
|
|
3
|
+
export { default as AvatarItem } from './avatar-item';
|
|
4
|
+
export type { AvatarItemProps, CustomAvatarItemProps } from './avatar-item';
|
|
5
|
+
export { default as Presence } from './presence';
|
|
6
|
+
export type { PresenceProps } from './presence';
|
|
7
|
+
export { default as Status } from './status';
|
|
8
|
+
export type { StatusProps } from './status';
|
|
9
|
+
export { default as Skeleton } from './skeleton';
|
|
10
|
+
export type { SkeletonProps } from './skeleton';
|
|
11
11
|
export { AvatarContext, type AvatarContextProps, useAvatarContext } from './context';
|
|
12
12
|
export { AVATAR_SIZES, BORDER_WIDTH, AVATAR_RADIUS, ACTIVE_SCALE_FACTOR } from './constants';
|
|
13
13
|
export type { AvatarClickEventHandler, AppearanceType, SizeType, Presence as PresenceType, Status as StatusType, IndicatorSizeType, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar",
|
|
3
|
-
"version": "21.17.
|
|
3
|
+
"version": "21.17.2",
|
|
4
4
|
"description": "An avatar is a visual representation of a user or entity.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"sideEffects": false,
|
|
24
|
-
"atlaskit:src": "src/index.
|
|
24
|
+
"atlaskit:src": "src/index.tsx",
|
|
25
25
|
"atlassian": {
|
|
26
26
|
"team": "Design System Team",
|
|
27
27
|
"website": {
|
|
@@ -31,23 +31,23 @@
|
|
|
31
31
|
"runReact18": true
|
|
32
32
|
},
|
|
33
33
|
"af:exports": {
|
|
34
|
-
"./AvatarItem": "./src/entry-points/avatar-item.
|
|
35
|
-
"./Avatar": "./src/entry-points/avatar.
|
|
36
|
-
"./Presence": "./src/entry-points/presence.
|
|
37
|
-
"./Skeleton": "./src/entry-points/skeleton.
|
|
38
|
-
"./Status": "./src/entry-points/status.
|
|
39
|
-
"./types": "./src/entry-points/types.
|
|
40
|
-
".": "./src/index.
|
|
34
|
+
"./AvatarItem": "./src/entry-points/avatar-item.tsx",
|
|
35
|
+
"./Avatar": "./src/entry-points/avatar.tsx",
|
|
36
|
+
"./Presence": "./src/entry-points/presence.tsx",
|
|
37
|
+
"./Skeleton": "./src/entry-points/skeleton.tsx",
|
|
38
|
+
"./Status": "./src/entry-points/status.tsx",
|
|
39
|
+
"./types": "./src/entry-points/types.tsx",
|
|
40
|
+
".": "./src/index.tsx"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
45
|
-
"@atlaskit/focus-ring": "^1.
|
|
45
|
+
"@atlaskit/focus-ring": "^1.7.0",
|
|
46
46
|
"@atlaskit/icon": "^22.24.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
48
48
|
"@atlaskit/primitives": "^13.0.0",
|
|
49
49
|
"@atlaskit/theme": "^14.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^2.
|
|
50
|
+
"@atlaskit/tokens": "^2.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
53
53
|
"@emotion/serialize": "^1.1.0"
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@atlassian/feature-flags-test-utils": "*",
|
|
67
67
|
"@emotion/styled": "^11.0.0",
|
|
68
68
|
"@testing-library/react": "^12.1.5",
|
|
69
|
+
"@testing-library/user-event": "^14.4.3",
|
|
69
70
|
"@types/jscodeshift": "^0.11.0",
|
|
70
71
|
"jest-in-case": "^1.0.2",
|
|
71
72
|
"jscodeshift": "^0.13.0",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|