@atlaskit/avatar-group 8.4.0 → 8.5.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 +28 -0
- package/dist/cjs/components/avatar-group.js +3 -2
- package/dist/cjs/components/more-indicator.js +3 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/avatar-group.js +3 -2
- package/dist/es2019/components/more-indicator.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/avatar-group.js +3 -2
- package/dist/esm/components/more-indicator.js +3 -1
- package/dist/esm/version.json +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/avatar-group
|
|
2
2
|
|
|
3
|
+
## 8.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
|
|
8
|
+
|
|
9
|
+
## 8.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 8.5.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
21
|
+
## 8.5.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- [`016d19b8038`](https://bitbucket.org/atlassian/atlassian-frontend/commits/016d19b8038) - [ux] When avatar's are disabled their tooltip will no longer be displayed.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 8.4.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -194,9 +194,10 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
194
194
|
} : undefined,
|
|
195
195
|
stackIndex: max - idx
|
|
196
196
|
}), idx);
|
|
197
|
-
return !isTooltipDisabled ? (0, _core.jsx)(_tooltip.default, {
|
|
197
|
+
return !isTooltipDisabled && !avatarData.isDisabled ? (0, _core.jsx)(_tooltip.default, {
|
|
198
198
|
key: (0, _utils.composeUniqueKey)(avatarData, idx),
|
|
199
|
-
content: avatarData.name
|
|
199
|
+
content: avatarData.name,
|
|
200
|
+
testId: testId && "".concat(testId, "--tooltip-").concat(idx)
|
|
200
201
|
}, finalAvatar) : finalAvatar;
|
|
201
202
|
}), renderMoreDropdown(+maxAvatar, total));
|
|
202
203
|
};
|
|
@@ -89,7 +89,9 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
|
|
|
89
89
|
return (0, _core.jsx)(_core.ClassNames, null, function (_ref4) {
|
|
90
90
|
var css = _ref4.css,
|
|
91
91
|
cx = _ref4.cx;
|
|
92
|
-
return (0, _core.jsx)("button", (0, _extends2.default)({
|
|
92
|
+
return (0, _core.jsx)("button", (0, _extends2.default)({
|
|
93
|
+
type: "submit"
|
|
94
|
+
}, buttonProps, props, {
|
|
93
95
|
ref: ref,
|
|
94
96
|
"data-testid": testId,
|
|
95
97
|
"aria-controls": ariaControls,
|
package/dist/cjs/version.json
CHANGED
|
@@ -141,9 +141,10 @@ const AvatarGroup = ({
|
|
|
141
141
|
} : undefined,
|
|
142
142
|
stackIndex: max - idx
|
|
143
143
|
}, idx);
|
|
144
|
-
return !isTooltipDisabled ? jsx(Tooltip, {
|
|
144
|
+
return !isTooltipDisabled && !avatarData.isDisabled ? jsx(Tooltip, {
|
|
145
145
|
key: composeUniqueKey(avatarData, idx),
|
|
146
|
-
content: avatarData.name
|
|
146
|
+
content: avatarData.name,
|
|
147
|
+
testId: testId && `${testId}--tooltip-${idx}`
|
|
147
148
|
}, finalAvatar) : finalAvatar;
|
|
148
149
|
}), renderMoreDropdown(+maxAvatar, total));
|
|
149
150
|
};
|
|
@@ -91,7 +91,9 @@ const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
|
91
91
|
}) => jsx(ClassNames, null, ({
|
|
92
92
|
css,
|
|
93
93
|
cx
|
|
94
|
-
}) => jsx("button", _extends({
|
|
94
|
+
}) => jsx("button", _extends({
|
|
95
|
+
type: "submit"
|
|
96
|
+
}, buttonProps, props, {
|
|
95
97
|
ref: ref,
|
|
96
98
|
"data-testid": testId,
|
|
97
99
|
"aria-controls": ariaControls,
|
package/dist/es2019/version.json
CHANGED
|
@@ -172,9 +172,10 @@ var AvatarGroup = function AvatarGroup(_ref) {
|
|
|
172
172
|
} : undefined,
|
|
173
173
|
stackIndex: max - idx
|
|
174
174
|
}), idx);
|
|
175
|
-
return !isTooltipDisabled ? jsx(Tooltip, {
|
|
175
|
+
return !isTooltipDisabled && !avatarData.isDisabled ? jsx(Tooltip, {
|
|
176
176
|
key: composeUniqueKey(avatarData, idx),
|
|
177
|
-
content: avatarData.name
|
|
177
|
+
content: avatarData.name,
|
|
178
|
+
testId: testId && "".concat(testId, "--tooltip-").concat(idx)
|
|
178
179
|
}, finalAvatar) : finalAvatar;
|
|
179
180
|
}), renderMoreDropdown(+maxAvatar, total));
|
|
180
181
|
};
|
|
@@ -69,7 +69,9 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
69
69
|
return jsx(ClassNames, null, function (_ref4) {
|
|
70
70
|
var css = _ref4.css,
|
|
71
71
|
cx = _ref4.cx;
|
|
72
|
-
return jsx("button", _extends({
|
|
72
|
+
return jsx("button", _extends({
|
|
73
|
+
type: "submit"
|
|
74
|
+
}, buttonProps, props, {
|
|
73
75
|
ref: ref,
|
|
74
76
|
"data-testid": testId,
|
|
75
77
|
"aria-controls": ariaControls,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar-group",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.3",
|
|
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/"
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@atlaskit/avatar": "^20.
|
|
28
|
-
"@atlaskit/menu": "^1.
|
|
27
|
+
"@atlaskit/avatar": "^20.5.0",
|
|
28
|
+
"@atlaskit/menu": "^1.1.0",
|
|
29
29
|
"@atlaskit/popup": "^1.1.0",
|
|
30
|
-
"@atlaskit/theme": "^
|
|
31
|
-
"@atlaskit/tokens": "^0.
|
|
32
|
-
"@atlaskit/tooltip": "^17.
|
|
30
|
+
"@atlaskit/theme": "^12.0.0",
|
|
31
|
+
"@atlaskit/tokens": "^0.2.0",
|
|
32
|
+
"@atlaskit/tooltip": "^17.5.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0",
|
|
34
34
|
"@emotion/core": "^10.0.9"
|
|
35
35
|
},
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@atlaskit/code": "^14.1.0",
|
|
44
44
|
"@atlaskit/docs": "*",
|
|
45
45
|
"@atlaskit/field-base": "^15.0.0",
|
|
46
|
-
"@atlaskit/icon": "^21.
|
|
47
|
-
"@atlaskit/modal-dialog": "^
|
|
46
|
+
"@atlaskit/icon": "^21.9.0",
|
|
47
|
+
"@atlaskit/modal-dialog": "^12.0.0",
|
|
48
48
|
"@atlaskit/section-message": "^6.1.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/toggle": "^12.
|
|
50
|
+
"@atlaskit/toggle": "^12.3.0",
|
|
51
51
|
"@atlaskit/visual-regression": "*",
|
|
52
52
|
"@atlaskit/webdriver-runner": "*",
|
|
53
53
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|