@atlaskit/avatar-group 9.7.0 → 9.8.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 +9 -0
- package/dist/cjs/components/avatar-group.js +1 -1
- package/dist/cjs/components/grid.js +2 -0
- package/dist/cjs/components/internal/components/popup-avatar-group.js +1 -0
- package/dist/cjs/components/more-indicator.js +30 -34
- package/dist/cjs/components/stack.js +2 -0
- package/dist/es2019/components/avatar-group.js +2 -0
- package/dist/es2019/components/grid.js +2 -0
- package/dist/es2019/components/internal/components/popup-avatar-group.js +2 -0
- package/dist/es2019/components/more-indicator.js +14 -18
- package/dist/es2019/components/stack.js +2 -0
- package/dist/esm/components/avatar-group.js +2 -0
- package/dist/esm/components/grid.js +2 -0
- package/dist/esm/components/internal/components/popup-avatar-group.js +2 -0
- package/dist/esm/components/more-indicator.js +31 -34
- package/dist/esm/components/stack.js +2 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/avatar-group
|
|
2
2
|
|
|
3
|
+
## 9.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#113372](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113372)
|
|
8
|
+
[`4b4faf5caa25a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4b4faf5caa25a) -
|
|
9
|
+
[ux] The font size and font weight of avatar group more button is brought in line with design
|
|
10
|
+
system guidelines.
|
|
11
|
+
|
|
3
12
|
## 9.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -29,7 +29,7 @@ var _utils = require("./utils");
|
|
|
29
29
|
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; }
|
|
30
30
|
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; } /**
|
|
31
31
|
* @jsxRuntime classic
|
|
32
|
-
*/ /** @jsx jsx */
|
|
32
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
33
33
|
var MAX_COUNT = {
|
|
34
34
|
grid: 11,
|
|
35
35
|
stack: 5
|
|
@@ -11,6 +11,8 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
*/
|
|
12
12
|
/** @jsx jsx */
|
|
13
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
14
16
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
15
17
|
var listStyles = (0, _react2.css)({
|
|
16
18
|
display: 'flex',
|
|
@@ -16,6 +16,7 @@ var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
|
16
16
|
* @jsxRuntime classic
|
|
17
17
|
*/
|
|
18
18
|
/** @jsx jsx */
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
19
20
|
/**
|
|
20
21
|
* It sets focus to the first avatar when popup is open.
|
|
21
22
|
*/
|
|
@@ -17,20 +17,16 @@ var _excluded = ["testId", "className", "ref"];
|
|
|
17
17
|
* @jsxRuntime classic
|
|
18
18
|
*/
|
|
19
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
21
|
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); }
|
|
21
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
var
|
|
23
|
-
xsmall:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
large: '0.75rem',
|
|
30
|
-
// 12px
|
|
31
|
-
xlarge: '1rem',
|
|
32
|
-
// 16px
|
|
33
|
-
xxlarge: '1rem' // 16px
|
|
23
|
+
var buttonSizes = {
|
|
24
|
+
xsmall: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
25
|
+
small: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
26
|
+
medium: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
27
|
+
large: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
28
|
+
xlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
29
|
+
xxlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
34
30
|
};
|
|
35
31
|
var buttonActiveStyles = (0, _react2.css)({
|
|
36
32
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -56,9 +52,6 @@ var buttonStyles = (0, _react2.css)({
|
|
|
56
52
|
'&&': {
|
|
57
53
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
58
54
|
color: "var(--ds-text, ".concat(_colors.N500, ")"),
|
|
59
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
60
|
-
fontFamily: 'inherit',
|
|
61
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
62
55
|
'&:hover': {
|
|
63
56
|
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(_colors.N30, ")"),
|
|
64
57
|
color: "var(--ds-text, ".concat(_colors.N500, ")")
|
|
@@ -68,7 +61,7 @@ var buttonStyles = (0, _react2.css)({
|
|
|
68
61
|
color: "var(--ds-text, ".concat(_colors.B400, ")")
|
|
69
62
|
},
|
|
70
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
71
|
-
'
|
|
64
|
+
'&::after': {
|
|
72
65
|
display: 'none'
|
|
73
66
|
}
|
|
74
67
|
}
|
|
@@ -110,24 +103,27 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
110
103
|
className = _ref2.className,
|
|
111
104
|
ref = _ref2.ref,
|
|
112
105
|
props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
113
|
-
return (
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
106
|
+
return (
|
|
107
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-button
|
|
108
|
+
(0, _react2.jsx)("button", (0, _extends2.default)({
|
|
109
|
+
type: "submit"
|
|
110
|
+
}, buttonProps, props, {
|
|
111
|
+
ref: ref,
|
|
112
|
+
"data-testid": testId,
|
|
113
|
+
"aria-controls": ariaControls,
|
|
114
|
+
"aria-expanded": ariaExpanded,
|
|
115
|
+
"aria-haspopup": ariaHaspopup
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
117
|
+
,
|
|
118
|
+
style: {
|
|
119
|
+
font: buttonSizes[size]
|
|
120
|
+
},
|
|
121
|
+
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
123
|
+
,
|
|
124
|
+
className: className
|
|
125
|
+
}), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count)
|
|
126
|
+
);
|
|
131
127
|
});
|
|
132
128
|
});
|
|
133
129
|
MoreIndicator.displayName = 'MoreIndicator';
|
|
@@ -13,6 +13,8 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
13
13
|
*/
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
|
|
16
18
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
17
19
|
|
|
18
20
|
var gutter = _avatar.BORDER_WIDTH * 2 + (0, _constants.gridSize)() / 2;
|
|
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { useCallback, useEffect, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { jsx } from '@emotion/react';
|
|
8
10
|
import { bind } from 'bind-event-listener';
|
|
9
11
|
import Avatar from '@atlaskit/avatar';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
const gutter = "var(--ds-space-negative-050, -4px)";
|
|
8
10
|
const listStyles = css({
|
|
@@ -4,6 +4,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { useContext, useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { jsx } from '@emotion/react';
|
|
8
10
|
import { MenuGroup } from '@atlaskit/menu';
|
|
9
11
|
import { FocusManagerContext } from './focus-manager';
|
|
@@ -4,21 +4,18 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import { forwardRef, useCallback } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
9
11
|
import { B300, B400, B50, N0, N20, N30, N500 } from '@atlaskit/theme/colors';
|
|
10
|
-
const
|
|
11
|
-
xsmall:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
large: '0.75rem',
|
|
18
|
-
// 12px
|
|
19
|
-
xlarge: '1rem',
|
|
20
|
-
// 16px
|
|
21
|
-
xxlarge: '1rem' // 16px
|
|
12
|
+
const buttonSizes = {
|
|
13
|
+
xsmall: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
14
|
+
small: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
15
|
+
medium: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
|
+
large: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
+
xlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
|
+
xxlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
22
19
|
};
|
|
23
20
|
const buttonActiveStyles = css({
|
|
24
21
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -44,9 +41,6 @@ const buttonStyles = css({
|
|
|
44
41
|
'&&': {
|
|
45
42
|
backgroundColor: `var(--ds-background-neutral, ${N20})`,
|
|
46
43
|
color: `var(--ds-text, ${N500})`,
|
|
47
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
48
|
-
fontFamily: 'inherit',
|
|
49
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
50
44
|
'&:hover': {
|
|
51
45
|
backgroundColor: `var(--ds-background-neutral-hovered, ${N30})`,
|
|
52
46
|
color: `var(--ds-text, ${N500})`
|
|
@@ -56,7 +50,7 @@ const buttonStyles = css({
|
|
|
56
50
|
color: `var(--ds-text, ${B400})`
|
|
57
51
|
},
|
|
58
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
|
-
'
|
|
53
|
+
'&::after': {
|
|
60
54
|
display: 'none'
|
|
61
55
|
}
|
|
62
56
|
}
|
|
@@ -94,7 +88,9 @@ const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
|
94
88
|
className,
|
|
95
89
|
ref,
|
|
96
90
|
...props
|
|
97
|
-
}) =>
|
|
91
|
+
}) =>
|
|
92
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-button
|
|
93
|
+
jsx("button", _extends({
|
|
98
94
|
type: "submit"
|
|
99
95
|
}, buttonProps, props, {
|
|
100
96
|
ref: ref,
|
|
@@ -105,7 +101,7 @@ const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
|
105
101
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
106
102
|
,
|
|
107
103
|
style: {
|
|
108
|
-
|
|
104
|
+
font: buttonSizes[size]
|
|
109
105
|
},
|
|
110
106
|
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
111
107
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import { BORDER_WIDTH } from '@atlaskit/avatar';
|
|
8
10
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -8,6 +8,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
*/
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import { useCallback, useEffect, useState } from 'react';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
13
|
import { jsx } from '@emotion/react';
|
|
12
14
|
import { bind } from 'bind-event-listener';
|
|
13
15
|
import Avatar from '@atlaskit/avatar';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
8
10
|
var listStyles = css({
|
|
@@ -6,6 +6,8 @@ var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
|
6
6
|
*/
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { useContext, useEffect } from 'react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { jsx } from '@emotion/react';
|
|
10
12
|
import { MenuGroup } from '@atlaskit/menu';
|
|
11
13
|
import { FocusManagerContext } from './focus-manager';
|
|
@@ -6,21 +6,18 @@ var _excluded = ["testId", "className", "ref"];
|
|
|
6
6
|
*/
|
|
7
7
|
/** @jsx jsx */
|
|
8
8
|
import { forwardRef, useCallback } from 'react';
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
11
|
import { css, jsx } from '@emotion/react';
|
|
10
12
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
11
13
|
import { B300, B400, B50, N0, N20, N30, N500 } from '@atlaskit/theme/colors';
|
|
12
|
-
var
|
|
13
|
-
xsmall:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
large: '0.75rem',
|
|
20
|
-
// 12px
|
|
21
|
-
xlarge: '1rem',
|
|
22
|
-
// 16px
|
|
23
|
-
xxlarge: '1rem' // 16px
|
|
14
|
+
var buttonSizes = {
|
|
15
|
+
xsmall: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
|
+
small: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
17
|
+
medium: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
|
+
large: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
19
|
+
xlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
20
|
+
xxlarge: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
|
|
24
21
|
};
|
|
25
22
|
var buttonActiveStyles = css({
|
|
26
23
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -46,9 +43,6 @@ var buttonStyles = css({
|
|
|
46
43
|
'&&': {
|
|
47
44
|
backgroundColor: "var(--ds-background-neutral, ".concat(N20, ")"),
|
|
48
45
|
color: "var(--ds-text, ".concat(N500, ")"),
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
50
|
-
fontFamily: 'inherit',
|
|
51
|
-
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
52
46
|
'&:hover': {
|
|
53
47
|
backgroundColor: "var(--ds-background-neutral-hovered, ".concat(N30, ")"),
|
|
54
48
|
color: "var(--ds-text, ".concat(N500, ")")
|
|
@@ -58,7 +52,7 @@ var buttonStyles = css({
|
|
|
58
52
|
color: "var(--ds-text, ".concat(B400, ")")
|
|
59
53
|
},
|
|
60
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
61
|
-
'
|
|
55
|
+
'&::after': {
|
|
62
56
|
display: 'none'
|
|
63
57
|
}
|
|
64
58
|
}
|
|
@@ -100,24 +94,27 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
100
94
|
className = _ref2.className,
|
|
101
95
|
ref = _ref2.ref,
|
|
102
96
|
props = _objectWithoutProperties(_ref2, _excluded);
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
97
|
+
return (
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-button
|
|
99
|
+
jsx("button", _extends({
|
|
100
|
+
type: "submit"
|
|
101
|
+
}, buttonProps, props, {
|
|
102
|
+
ref: ref,
|
|
103
|
+
"data-testid": testId,
|
|
104
|
+
"aria-controls": ariaControls,
|
|
105
|
+
"aria-expanded": ariaExpanded,
|
|
106
|
+
"aria-haspopup": ariaHaspopup
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
108
|
+
,
|
|
109
|
+
style: {
|
|
110
|
+
font: buttonSizes[size]
|
|
111
|
+
},
|
|
112
|
+
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
114
|
+
,
|
|
115
|
+
className: className
|
|
116
|
+
}), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count)
|
|
117
|
+
);
|
|
121
118
|
});
|
|
122
119
|
});
|
|
123
120
|
MoreIndicator.displayName = 'MoreIndicator';
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import { BORDER_WIDTH } from '@atlaskit/avatar';
|
|
8
10
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar-group",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.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/"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/avatar": "^21.10.0",
|
|
31
31
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
32
|
-
"@atlaskit/menu": "^2.
|
|
33
|
-
"@atlaskit/popup": "^1.
|
|
34
|
-
"@atlaskit/theme": "^12.
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
-
"@atlaskit/tooltip": "^18.
|
|
32
|
+
"@atlaskit/menu": "^2.5.0",
|
|
33
|
+
"@atlaskit/popup": "^1.19.0",
|
|
34
|
+
"@atlaskit/theme": "^12.11.0",
|
|
35
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
36
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"@emotion/react": "^11.7.1",
|
|
39
39
|
"bind-event-listener": "^3.0.0"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@af/visual-regression": "*",
|
|
48
48
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
49
49
|
"@atlaskit/ssr": "*",
|
|
50
|
-
"@atlaskit/toggle": "^13.
|
|
50
|
+
"@atlaskit/toggle": "^13.2.0",
|
|
51
51
|
"@atlaskit/visual-regression": "*",
|
|
52
52
|
"@emotion/styled": "^11.0.0",
|
|
53
53
|
"@testing-library/react": "^12.1.5",
|