@atlaskit/avatar-group 9.6.0 → 9.7.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 +729 -709
- package/README.md +2 -1
- package/__perf__/default.tsx +12 -12
- package/dist/cjs/components/avatar-group.js +3 -1
- package/dist/cjs/components/grid.js +10 -7
- package/dist/cjs/components/internal/components/popup-avatar-group.js +3 -0
- package/dist/cjs/components/more-indicator.js +25 -10
- package/dist/cjs/components/stack.js +9 -5
- package/dist/es2019/components/avatar-group.js +3 -0
- package/dist/es2019/components/grid.js +10 -7
- package/dist/es2019/components/internal/components/popup-avatar-group.js +3 -0
- package/dist/es2019/components/more-indicator.js +25 -10
- package/dist/es2019/components/stack.js +9 -5
- package/dist/esm/components/avatar-group.js +3 -0
- package/dist/esm/components/grid.js +10 -7
- package/dist/esm/components/internal/components/popup-avatar-group.js +3 -0
- package/dist/esm/components/more-indicator.js +25 -10
- package/dist/esm/components/stack.js +9 -5
- package/dist/types/components/avatar-group-item.d.ts +1 -1
- package/dist/types/components/avatar-group.d.ts +7 -4
- package/dist/types/components/grid.d.ts +4 -1
- package/dist/types/components/internal/components/focus-manager.d.ts +2 -2
- package/dist/types/components/internal/components/popup-avatar-group.d.ts +1 -1
- package/dist/types/components/internal/hooks/use-register-item-with-focus-manager.d.ts +1 -1
- package/dist/types/components/internal/utiles/handle-focus.d.ts +1 -1
- package/dist/types/components/more-indicator.d.ts +1 -1
- package/dist/types/components/stack.d.ts +4 -1
- package/dist/types/components/types.d.ts +5 -5
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types-ts4.5/components/avatar-group-item.d.ts +1 -1
- package/dist/types-ts4.5/components/avatar-group.d.ts +7 -4
- package/dist/types-ts4.5/components/grid.d.ts +4 -1
- package/dist/types-ts4.5/components/internal/components/focus-manager.d.ts +2 -2
- package/dist/types-ts4.5/components/internal/components/popup-avatar-group.d.ts +1 -1
- package/dist/types-ts4.5/components/internal/hooks/use-register-item-with-focus-manager.d.ts +1 -1
- package/dist/types-ts4.5/components/internal/utiles/handle-focus.d.ts +1 -1
- package/dist/types-ts4.5/components/more-indicator.d.ts +1 -1
- package/dist/types-ts4.5/components/stack.d.ts +4 -1
- package/dist/types-ts4.5/components/types.d.ts +5 -5
- package/dist/types-ts4.5/components/utils.d.ts +1 -1
- package/package.json +96 -98
- package/report.api.md +66 -65
package/README.md
CHANGED
package/__perf__/default.tsx
CHANGED
|
@@ -3,19 +3,19 @@ import React from 'react';
|
|
|
3
3
|
import AvatarGroup from '../src';
|
|
4
4
|
|
|
5
5
|
const data = [
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
{ email: 'chaki@me.com', name: 'Chaki Caronni' },
|
|
7
|
+
{ email: 'nanop@outlook.com', name: 'Nanop Rgiersig' },
|
|
8
8
|
];
|
|
9
9
|
|
|
10
10
|
export default () => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
return (
|
|
12
|
+
<AvatarGroup
|
|
13
|
+
data={data.map((d) => ({
|
|
14
|
+
email: d.email,
|
|
15
|
+
key: d.email,
|
|
16
|
+
name: d.name,
|
|
17
|
+
href: '#',
|
|
18
|
+
}))}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
21
|
};
|
|
@@ -27,7 +27,9 @@ var _moreIndicator = _interopRequireDefault(require("./more-indicator"));
|
|
|
27
27
|
var _stack = _interopRequireDefault(require("./stack"));
|
|
28
28
|
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
|
-
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; } /**
|
|
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
|
+
* @jsxRuntime classic
|
|
32
|
+
*/ /** @jsx jsx */
|
|
31
33
|
var MAX_COUNT = {
|
|
32
34
|
grid: 11,
|
|
33
35
|
stack: 5
|
|
@@ -6,26 +6,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
12
15
|
var listStyles = (0, _react2.css)({
|
|
13
|
-
// removes default ul styles. Needs !important to override contextual styles in product.
|
|
14
16
|
display: 'flex',
|
|
15
17
|
margin: "var(--ds-space-0, 0px)",
|
|
16
|
-
marginRight: gutter,
|
|
17
|
-
marginLeft: gutter,
|
|
18
18
|
padding: "var(--ds-space-0, 0px)",
|
|
19
19
|
justifyContent: 'flex-start',
|
|
20
20
|
flexWrap: 'wrap',
|
|
21
21
|
lineHeight: 1,
|
|
22
|
-
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
23
|
+
listStyleType: 'none !important',
|
|
24
|
+
marginInlineEnd: gutter,
|
|
25
|
+
marginInlineStart: gutter
|
|
23
26
|
});
|
|
24
27
|
var listItemStyles = (0, _react2.css)({
|
|
25
28
|
margin: "var(--ds-space-0, 0px)",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
30
|
+
paddingInlineEnd: "var(--ds-space-050, 4px)",
|
|
31
|
+
paddingInlineStart: "var(--ds-space-050, 4px)"
|
|
29
32
|
});
|
|
30
33
|
var Grid = function Grid(_ref) {
|
|
31
34
|
var children = _ref.children,
|
|
@@ -12,6 +12,9 @@ var _react2 = require("@emotion/react");
|
|
|
12
12
|
var _menu = require("@atlaskit/menu");
|
|
13
13
|
var _focusManager = require("./focus-manager");
|
|
14
14
|
var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
*/
|
|
15
18
|
/** @jsx jsx */
|
|
16
19
|
/**
|
|
17
20
|
* It sets focus to the first avatar when popup is open.
|
|
@@ -13,23 +13,33 @@ var _react2 = require("@emotion/react");
|
|
|
13
13
|
var _avatar = _interopRequireWildcard(require("@atlaskit/avatar"));
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
var _excluded = ["testId", "className", "ref"];
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
17
20
|
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); }
|
|
18
21
|
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; }
|
|
19
22
|
var FONT_SIZE = {
|
|
20
|
-
xsmall: '
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
xsmall: '0.625rem',
|
|
24
|
+
// 10px
|
|
25
|
+
small: '0.625rem',
|
|
26
|
+
// 10px
|
|
27
|
+
medium: '0.6875rem',
|
|
28
|
+
// 11px
|
|
29
|
+
large: '0.75rem',
|
|
30
|
+
// 12px
|
|
31
|
+
xlarge: '1rem',
|
|
32
|
+
// 16px
|
|
33
|
+
xxlarge: '1rem' // 16px
|
|
26
34
|
};
|
|
27
35
|
var buttonActiveStyles = (0, _react2.css)({
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
36
|
+
// 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
|
|
29
37
|
'&&': {
|
|
30
38
|
backgroundColor: "var(--ds-background-selected, ".concat(_colors.B50, ")"),
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
40
|
boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ", "var(--ds-border-selected, ".concat(_colors.B300, ")")),
|
|
32
41
|
color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
|
|
42
|
+
// 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
43
|
transform: "scale(".concat(_avatar.ACTIVE_SCALE_FACTOR, ")"),
|
|
34
44
|
'&:hover': {
|
|
35
45
|
backgroundColor: "var(--ds-background-selected-hovered, ".concat(_colors.N30, ")"),
|
|
@@ -42,7 +52,7 @@ var buttonActiveStyles = (0, _react2.css)({
|
|
|
42
52
|
}
|
|
43
53
|
});
|
|
44
54
|
var buttonStyles = (0, _react2.css)({
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
55
|
+
// 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
56
|
'&&': {
|
|
47
57
|
backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
48
58
|
color: "var(--ds-text, ".concat(_colors.N500, ")"),
|
|
@@ -57,6 +67,7 @@ var buttonStyles = (0, _react2.css)({
|
|
|
57
67
|
backgroundColor: "var(--ds-background-neutral-pressed, ".concat(_colors.B50, ")"),
|
|
58
68
|
color: "var(--ds-text, ".concat(_colors.B400, ")")
|
|
59
69
|
},
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
60
71
|
'&:after': {
|
|
61
72
|
display: 'none'
|
|
62
73
|
}
|
|
@@ -106,11 +117,15 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
106
117
|
"data-testid": testId,
|
|
107
118
|
"aria-controls": ariaControls,
|
|
108
119
|
"aria-expanded": ariaExpanded,
|
|
109
|
-
"aria-haspopup": ariaHaspopup
|
|
120
|
+
"aria-haspopup": ariaHaspopup
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
122
|
+
,
|
|
110
123
|
style: {
|
|
111
124
|
fontSize: FONT_SIZE[size]
|
|
112
125
|
},
|
|
113
|
-
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
126
|
+
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
128
|
+
,
|
|
114
129
|
className: className
|
|
115
130
|
}), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count);
|
|
116
131
|
});
|
|
@@ -8,6 +8,9 @@ var _react = require("react");
|
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _avatar = require("@atlaskit/avatar");
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
*/
|
|
11
14
|
/** @jsx jsx */
|
|
12
15
|
|
|
13
16
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
@@ -16,16 +19,17 @@ var gutter = _avatar.BORDER_WIDTH * 2 + (0, _constants.gridSize)() / 2;
|
|
|
16
19
|
var listStyles = (0, _react2.css)({
|
|
17
20
|
display: 'flex',
|
|
18
21
|
margin: "var(--ds-space-0, 0px)",
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
marginRight: gutter,
|
|
21
22
|
padding: "var(--ds-space-0, 0px)",
|
|
22
23
|
lineHeight: 1,
|
|
23
|
-
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
|
+
listStyleType: 'none !important',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
marginInlineEnd: gutter
|
|
24
28
|
});
|
|
25
29
|
var listItemStyles = (0, _react2.css)({
|
|
26
30
|
margin: "var(--ds-space-0, 0px)",
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
|
-
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
marginInlineEnd: -gutter
|
|
29
33
|
});
|
|
30
34
|
var Stack = function Stack(_ref) {
|
|
31
35
|
var children = _ref.children,
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Children } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
const gutter = "var(--ds-space-negative-050, -4px)";
|
|
5
8
|
const listStyles = css({
|
|
6
|
-
// removes default ul styles. Needs !important to override contextual styles in product.
|
|
7
9
|
display: 'flex',
|
|
8
10
|
margin: "var(--ds-space-0, 0px)",
|
|
9
|
-
marginRight: gutter,
|
|
10
|
-
marginLeft: gutter,
|
|
11
11
|
padding: "var(--ds-space-0, 0px)",
|
|
12
12
|
justifyContent: 'flex-start',
|
|
13
13
|
flexWrap: 'wrap',
|
|
14
14
|
lineHeight: 1,
|
|
15
|
-
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
16
|
+
listStyleType: 'none !important',
|
|
17
|
+
marginInlineEnd: gutter,
|
|
18
|
+
marginInlineStart: gutter
|
|
16
19
|
});
|
|
17
20
|
const listItemStyles = css({
|
|
18
21
|
margin: "var(--ds-space-0, 0px)",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
23
|
+
paddingInlineEnd: "var(--ds-space-050, 4px)",
|
|
24
|
+
paddingInlineStart: "var(--ds-space-050, 4px)"
|
|
22
25
|
});
|
|
23
26
|
const Grid = ({
|
|
24
27
|
children,
|
|
@@ -1,23 +1,33 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { forwardRef, useCallback } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
5
8
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
6
9
|
import { B300, B400, B50, N0, N20, N30, N500 } from '@atlaskit/theme/colors';
|
|
7
10
|
const FONT_SIZE = {
|
|
8
|
-
xsmall: '
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
xsmall: '0.625rem',
|
|
12
|
+
// 10px
|
|
13
|
+
small: '0.625rem',
|
|
14
|
+
// 10px
|
|
15
|
+
medium: '0.6875rem',
|
|
16
|
+
// 11px
|
|
17
|
+
large: '0.75rem',
|
|
18
|
+
// 12px
|
|
19
|
+
xlarge: '1rem',
|
|
20
|
+
// 16px
|
|
21
|
+
xxlarge: '1rem' // 16px
|
|
14
22
|
};
|
|
15
23
|
const buttonActiveStyles = css({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
|
+
// 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
|
|
17
25
|
'&&': {
|
|
18
26
|
backgroundColor: `var(--ds-background-selected, ${B50})`,
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
28
|
boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-border-selected, ${B300})`}`,
|
|
20
29
|
color: `var(--ds-text-selected, ${B400})`,
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
31
|
transform: `scale(${ACTIVE_SCALE_FACTOR})`,
|
|
22
32
|
'&:hover': {
|
|
23
33
|
backgroundColor: `var(--ds-background-selected-hovered, ${N30})`,
|
|
@@ -30,7 +40,7 @@ const buttonActiveStyles = css({
|
|
|
30
40
|
}
|
|
31
41
|
});
|
|
32
42
|
const buttonStyles = css({
|
|
33
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
43
|
+
// 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
|
|
34
44
|
'&&': {
|
|
35
45
|
backgroundColor: `var(--ds-background-neutral, ${N20})`,
|
|
36
46
|
color: `var(--ds-text, ${N500})`,
|
|
@@ -45,6 +55,7 @@ const buttonStyles = css({
|
|
|
45
55
|
backgroundColor: `var(--ds-background-neutral-pressed, ${B50})`,
|
|
46
56
|
color: `var(--ds-text, ${B400})`
|
|
47
57
|
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
48
59
|
'&:after': {
|
|
49
60
|
display: 'none'
|
|
50
61
|
}
|
|
@@ -90,11 +101,15 @@ const MoreIndicator = /*#__PURE__*/forwardRef(({
|
|
|
90
101
|
"data-testid": testId,
|
|
91
102
|
"aria-controls": ariaControls,
|
|
92
103
|
"aria-expanded": ariaExpanded,
|
|
93
|
-
"aria-haspopup": ariaHaspopup
|
|
104
|
+
"aria-haspopup": ariaHaspopup
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
106
|
+
,
|
|
94
107
|
style: {
|
|
95
108
|
fontSize: FONT_SIZE[size]
|
|
96
109
|
},
|
|
97
|
-
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
110
|
+
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
112
|
+
,
|
|
98
113
|
className: className
|
|
99
114
|
}), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count));
|
|
100
115
|
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Children } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -8,16 +11,17 @@ const gutter = BORDER_WIDTH * 2 + gridSize() / 2;
|
|
|
8
11
|
const listStyles = css({
|
|
9
12
|
display: 'flex',
|
|
10
13
|
margin: "var(--ds-space-0, 0px)",
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
12
|
-
marginRight: gutter,
|
|
13
14
|
padding: "var(--ds-space-0, 0px)",
|
|
14
15
|
lineHeight: 1,
|
|
15
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
|
+
listStyleType: 'none !important',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
marginInlineEnd: gutter
|
|
16
20
|
});
|
|
17
21
|
const listItemStyles = css({
|
|
18
22
|
margin: "var(--ds-space-0, 0px)",
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
+
marginInlineEnd: -gutter
|
|
21
25
|
});
|
|
22
26
|
const Stack = ({
|
|
23
27
|
children,
|
|
@@ -3,6 +3,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
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; }
|
|
5
5
|
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) { _defineProperty(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; }
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { useCallback, useEffect, useState } from 'react';
|
|
8
11
|
import { jsx } from '@emotion/react';
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Children } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
4
7
|
var gutter = "var(--ds-space-negative-050, -4px)";
|
|
5
8
|
var listStyles = css({
|
|
6
|
-
// removes default ul styles. Needs !important to override contextual styles in product.
|
|
7
9
|
display: 'flex',
|
|
8
10
|
margin: "var(--ds-space-0, 0px)",
|
|
9
|
-
marginRight: gutter,
|
|
10
|
-
marginLeft: gutter,
|
|
11
11
|
padding: "var(--ds-space-0, 0px)",
|
|
12
12
|
justifyContent: 'flex-start',
|
|
13
13
|
flexWrap: 'wrap',
|
|
14
14
|
lineHeight: 1,
|
|
15
|
-
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
16
|
+
listStyleType: 'none !important',
|
|
17
|
+
marginInlineEnd: gutter,
|
|
18
|
+
marginInlineStart: gutter
|
|
16
19
|
});
|
|
17
20
|
var listItemStyles = css({
|
|
18
21
|
margin: "var(--ds-space-0, 0px)",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
23
|
+
paddingInlineEnd: "var(--ds-space-050, 4px)",
|
|
24
|
+
paddingInlineStart: "var(--ds-space-050, 4px)"
|
|
22
25
|
});
|
|
23
26
|
var Grid = function Grid(_ref) {
|
|
24
27
|
var children = _ref.children,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["maxWidth", "minWidth", "setInitialFocusRef"];
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
5
8
|
import { useContext, useEffect } from 'react';
|
|
6
9
|
import { jsx } from '@emotion/react';
|
|
@@ -1,25 +1,35 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["testId", "className", "ref"];
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
5
8
|
import { forwardRef, useCallback } from 'react';
|
|
6
9
|
import { css, jsx } from '@emotion/react';
|
|
7
10
|
import Avatar, { ACTIVE_SCALE_FACTOR, BORDER_WIDTH } from '@atlaskit/avatar';
|
|
8
11
|
import { B300, B400, B50, N0, N20, N30, N500 } from '@atlaskit/theme/colors';
|
|
9
12
|
var FONT_SIZE = {
|
|
10
|
-
xsmall: '
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
xsmall: '0.625rem',
|
|
14
|
+
// 10px
|
|
15
|
+
small: '0.625rem',
|
|
16
|
+
// 10px
|
|
17
|
+
medium: '0.6875rem',
|
|
18
|
+
// 11px
|
|
19
|
+
large: '0.75rem',
|
|
20
|
+
// 12px
|
|
21
|
+
xlarge: '1rem',
|
|
22
|
+
// 16px
|
|
23
|
+
xxlarge: '1rem' // 16px
|
|
16
24
|
};
|
|
17
25
|
var buttonActiveStyles = css({
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
|
+
// 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
|
|
19
27
|
'&&': {
|
|
20
28
|
backgroundColor: "var(--ds-background-selected, ".concat(B50, ")"),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
30
|
boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ", "var(--ds-border-selected, ".concat(B300, ")")),
|
|
22
31
|
color: "var(--ds-text-selected, ".concat(B400, ")"),
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
33
|
transform: "scale(".concat(ACTIVE_SCALE_FACTOR, ")"),
|
|
24
34
|
'&:hover': {
|
|
25
35
|
backgroundColor: "var(--ds-background-selected-hovered, ".concat(N30, ")"),
|
|
@@ -32,7 +42,7 @@ var buttonActiveStyles = css({
|
|
|
32
42
|
}
|
|
33
43
|
});
|
|
34
44
|
var buttonStyles = css({
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
45
|
+
// 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
|
|
36
46
|
'&&': {
|
|
37
47
|
backgroundColor: "var(--ds-background-neutral, ".concat(N20, ")"),
|
|
38
48
|
color: "var(--ds-text, ".concat(N500, ")"),
|
|
@@ -47,6 +57,7 @@ var buttonStyles = css({
|
|
|
47
57
|
backgroundColor: "var(--ds-background-neutral-pressed, ".concat(B50, ")"),
|
|
48
58
|
color: "var(--ds-text, ".concat(B400, ")")
|
|
49
59
|
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
61
|
'&:after': {
|
|
51
62
|
display: 'none'
|
|
52
63
|
}
|
|
@@ -96,11 +107,15 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
96
107
|
"data-testid": testId,
|
|
97
108
|
"aria-controls": ariaControls,
|
|
98
109
|
"aria-expanded": ariaExpanded,
|
|
99
|
-
"aria-haspopup": ariaHaspopup
|
|
110
|
+
"aria-haspopup": ariaHaspopup
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
112
|
+
,
|
|
100
113
|
style: {
|
|
101
114
|
fontSize: FONT_SIZE[size]
|
|
102
115
|
},
|
|
103
|
-
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
116
|
+
css: [buttonStyles, isActive && buttonActiveStyles]
|
|
117
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
118
|
+
,
|
|
104
119
|
className: className
|
|
105
120
|
}), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count);
|
|
106
121
|
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Children } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -8,16 +11,17 @@ var gutter = BORDER_WIDTH * 2 + gridSize() / 2;
|
|
|
8
11
|
var listStyles = css({
|
|
9
12
|
display: 'flex',
|
|
10
13
|
margin: "var(--ds-space-0, 0px)",
|
|
11
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
12
|
-
marginRight: gutter,
|
|
13
14
|
padding: "var(--ds-space-0, 0px)",
|
|
14
15
|
lineHeight: 1,
|
|
15
|
-
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
|
+
listStyleType: 'none !important',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
marginInlineEnd: gutter
|
|
16
20
|
});
|
|
17
21
|
var listItemStyles = css({
|
|
18
22
|
margin: "var(--ds-space-0, 0px)",
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
20
|
-
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
+
marginInlineEnd: -gutter
|
|
21
25
|
});
|
|
22
26
|
var Stack = function Stack(_ref) {
|
|
23
27
|
var children = _ref.children,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
|
-
import { ElementType, MouseEventHandler } from 'react';
|
|
5
|
+
import { type ElementType, type MouseEventHandler } from 'react';
|
|
3
6
|
import { jsx } from '@emotion/react';
|
|
4
|
-
import Avatar, { SizeType } from '@atlaskit/avatar';
|
|
5
|
-
import { PositionType } from '@atlaskit/tooltip';
|
|
6
|
-
import { AvatarGroupOverrides, AvatarProps, onAvatarClickHandler } from './types';
|
|
7
|
+
import Avatar, { type SizeType } from '@atlaskit/avatar';
|
|
8
|
+
import { type PositionType } from '@atlaskit/tooltip';
|
|
9
|
+
import { type AvatarGroupOverrides, type AvatarProps, type onAvatarClickHandler } from './types';
|
|
7
10
|
export interface AvatarGroupProps {
|
|
8
11
|
/**
|
|
9
12
|
* Indicates the layout of the avatar group.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FocusableElement } from '../../types';
|
|
2
|
+
import { type FocusableElement } from '../../types';
|
|
3
3
|
declare function useRegisterItemWithFocusManager(): import("react").RefObject<FocusableElement>;
|
|
4
4
|
export default useRegisterItemWithFocusManager;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FocusableElement } from '../../types';
|
|
1
|
+
import { type FocusableElement } from '../../types';
|
|
2
2
|
export default function handleFocus(refs: Array<FocusableElement>): (e: KeyboardEvent) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { AvatarClickEventHandler, AvatarPropTypes } from '@atlaskit/avatar';
|
|
2
|
+
import { type AvatarClickEventHandler, type AvatarPropTypes } from '@atlaskit/avatar';
|
|
3
3
|
export interface MoreIndicatorProps extends AvatarPropTypes {
|
|
4
4
|
count: number;
|
|
5
5
|
'aria-controls'?: string;
|