@atlaskit/avatar-group 8.5.13 → 9.0.0
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 +27 -0
- package/dist/cjs/components/more-indicator.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/more-indicator.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/more-indicator.js +3 -3
- package/dist/esm/version.json +1 -1
- package/dist/types/components/avatar-group.d.ts +8 -10
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @atlaskit/avatar-group
|
|
2
2
|
|
|
3
|
+
## 9.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`92bb02bc46b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92bb02bc46b) - [ux] There are **no code changes required** to consume this major, but you should be aware that internal changes have been made to how `@atlaskit/avatar` loads images.
|
|
8
|
+
|
|
9
|
+
Before, the image loading behaviour was written in JS. Now, it leans on a standard HTML `img` tag if you provide a `src` prop, allowing it to rely on the browser to optimise the loading. These changes should result in faster image loading and an improved server-side rendering story.
|
|
10
|
+
|
|
11
|
+
In this version, the **breaking change is that you will no longer see a fallback icon while the image is loading**. We have intentionally removed this loading behaviour as it is no longer consistent with our native `img` behaviour-first approach, and was a source of SSR bugs. Avatar images will load either instantly from the cache, or very fast from a CDN. In the edge cases where there is an error with the image src provided, we will still fall back to a default icon.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`1276a8179ad`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1276a8179ad) - [ux] DSP-4535: Fix wrongly used token.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 8.5.15
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [`efa50ac72ba`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa50ac72ba) - Adjusts jsdoc strings to improve prop documentation
|
|
23
|
+
|
|
24
|
+
## 8.5.14
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
|
|
3
30
|
## 8.5.13
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
|
@@ -39,7 +39,7 @@ var buttonActiveStyles = (0, _core.css)({
|
|
|
39
39
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
40
40
|
'&&': {
|
|
41
41
|
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
42
|
-
boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ").concat("var(--ds-
|
|
42
|
+
boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ").concat("var(--ds-border-selected, ".concat(_colors.B300, ")")),
|
|
43
43
|
color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
|
|
44
44
|
transform: "scale(".concat(_avatar.ACTIVE_SCALE_FACTOR, ")")
|
|
45
45
|
}
|
|
@@ -73,7 +73,7 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
73
73
|
var _ref$appearance = _ref.appearance,
|
|
74
74
|
appearance = _ref$appearance === void 0 ? 'circle' : _ref$appearance,
|
|
75
75
|
_ref$borderColor = _ref.borderColor,
|
|
76
|
-
borderColor = _ref$borderColor === void 0 ? "var(--ds-
|
|
76
|
+
borderColor = _ref$borderColor === void 0 ? "var(--ds-border-inverse, ".concat(_colors.N0, ")") : _ref$borderColor,
|
|
77
77
|
_ref$size = _ref.size,
|
|
78
78
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
79
79
|
_ref$count = _ref.count,
|
package/dist/cjs/version.json
CHANGED
|
@@ -4,7 +4,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { forwardRef, useCallback } from 'react';
|
|
5
5
|
import { css, jsx } from '@emotion/core';
|
|
6
6
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
7
|
-
import { B300, B400, B50,
|
|
7
|
+
import { B300, B400, B50, N0, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
|
|
8
8
|
const FONT_SIZE = {
|
|
9
9
|
xsmall: '10px',
|
|
10
10
|
small: '10px',
|
|
@@ -17,7 +17,7 @@ const buttonActiveStyles = css({
|
|
|
17
17
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
18
18
|
'&&': {
|
|
19
19
|
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
20
|
-
boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-
|
|
20
|
+
boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-border-selected, ${B300})`}`,
|
|
21
21
|
color: `var(--ds-text-selected, ${B400})`,
|
|
22
22
|
transform: `scale(${ACTIVE_SCALE_FACTOR})`
|
|
23
23
|
}
|
|
@@ -49,7 +49,7 @@ const buttonStyles = css({
|
|
|
49
49
|
const MAX_DISPLAY_COUNT = 99;
|
|
50
50
|
const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
51
51
|
appearance = 'circle',
|
|
52
|
-
borderColor = `var(--ds-
|
|
52
|
+
borderColor = `var(--ds-border-inverse, ${N0})`,
|
|
53
53
|
size = 'medium',
|
|
54
54
|
count = 0,
|
|
55
55
|
testId,
|
package/dist/es2019/version.json
CHANGED
|
@@ -6,7 +6,7 @@ var _excluded = ["testId", "className", "ref"];
|
|
|
6
6
|
import { forwardRef, useCallback } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/core';
|
|
8
8
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
9
|
-
import { B300, B400, B50,
|
|
9
|
+
import { B300, B400, B50, N0, N20, N30, N30A, N500 } from '@atlaskit/theme/colors';
|
|
10
10
|
var FONT_SIZE = {
|
|
11
11
|
xsmall: '10px',
|
|
12
12
|
small: '10px',
|
|
@@ -19,7 +19,7 @@ var buttonActiveStyles = css({
|
|
|
19
19
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
20
20
|
'&&': {
|
|
21
21
|
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
22
|
-
boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ").concat("var(--ds-
|
|
22
|
+
boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ").concat("var(--ds-border-selected, ".concat(B300, ")")),
|
|
23
23
|
color: "var(--ds-text-selected, ".concat(B400, ")"),
|
|
24
24
|
transform: "scale(".concat(ACTIVE_SCALE_FACTOR, ")")
|
|
25
25
|
}
|
|
@@ -53,7 +53,7 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
53
53
|
var _ref$appearance = _ref.appearance,
|
|
54
54
|
appearance = _ref$appearance === void 0 ? 'circle' : _ref$appearance,
|
|
55
55
|
_ref$borderColor = _ref.borderColor,
|
|
56
|
-
borderColor = _ref$borderColor === void 0 ? "var(--ds-
|
|
56
|
+
borderColor = _ref$borderColor === void 0 ? "var(--ds-border-inverse, ".concat(N0, ")") : _ref$borderColor,
|
|
57
57
|
_ref$size = _ref.size,
|
|
58
58
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
59
59
|
_ref$count = _ref.count,
|
package/dist/esm/version.json
CHANGED
|
@@ -78,16 +78,14 @@ export interface AvatarGroupProps {
|
|
|
78
78
|
*/
|
|
79
79
|
isTooltipDisabled?: boolean;
|
|
80
80
|
/**
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
90
|
-
* When there are several AvatarGroups on the page you should use a unique label to let users distinguish different lists.
|
|
81
|
+
Text to be used as aria-label for the list of avatars.
|
|
82
|
+
Screen reader announcement with default label, which is `avatar group`, is `list, avatar group, X items`.
|
|
83
|
+
|
|
84
|
+
The label should describe the `AvatarGroup`'s entities, for instance:
|
|
85
|
+
- `label="team members"`, screen reader announcement would be `list team members, X items`
|
|
86
|
+
- `label="reviewers"` screen reader announcement would be `list reviewers, X items`
|
|
87
|
+
|
|
88
|
+
When there are several AvatarGroups on the page you should use a unique label to let users distinguish different lists.
|
|
91
89
|
*/
|
|
92
90
|
label?: string;
|
|
93
91
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar-group",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "An avatar group displays a number of avatars grouped together in a stack or grid.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
7
7
|
},
|
|
8
|
-
"repository": "https://bitbucket.org/atlassian/atlassian-frontend",
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
9
|
"author": "Atlassian Pty Ltd",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"main": "dist/cjs/index.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/avatar": "^
|
|
26
|
+
"@atlaskit/avatar": "^21.0.0",
|
|
27
27
|
"@atlaskit/menu": "^1.3.0",
|
|
28
28
|
"@atlaskit/popup": "^1.3.0",
|
|
29
29
|
"@atlaskit/theme": "^12.1.0",
|
|
30
|
-
"@atlaskit/tokens": "^0.
|
|
30
|
+
"@atlaskit/tokens": "^0.10.0",
|
|
31
31
|
"@atlaskit/tooltip": "^17.5.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/core": "^10.0.9"
|