@atlaskit/avatar-group 9.6.1 → 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.
Files changed (40) hide show
  1. package/CHANGELOG.md +724 -713
  2. package/README.md +2 -1
  3. package/__perf__/default.tsx +12 -12
  4. package/dist/cjs/components/avatar-group.js +3 -1
  5. package/dist/cjs/components/grid.js +10 -7
  6. package/dist/cjs/components/internal/components/popup-avatar-group.js +3 -0
  7. package/dist/cjs/components/more-indicator.js +14 -4
  8. package/dist/cjs/components/stack.js +9 -5
  9. package/dist/es2019/components/avatar-group.js +3 -0
  10. package/dist/es2019/components/grid.js +10 -7
  11. package/dist/es2019/components/internal/components/popup-avatar-group.js +3 -0
  12. package/dist/es2019/components/more-indicator.js +14 -4
  13. package/dist/es2019/components/stack.js +9 -5
  14. package/dist/esm/components/avatar-group.js +3 -0
  15. package/dist/esm/components/grid.js +10 -7
  16. package/dist/esm/components/internal/components/popup-avatar-group.js +3 -0
  17. package/dist/esm/components/more-indicator.js +14 -4
  18. package/dist/esm/components/stack.js +9 -5
  19. package/dist/types/components/avatar-group-item.d.ts +1 -1
  20. package/dist/types/components/avatar-group.d.ts +7 -4
  21. package/dist/types/components/grid.d.ts +4 -1
  22. package/dist/types/components/internal/components/focus-manager.d.ts +2 -2
  23. package/dist/types/components/internal/components/popup-avatar-group.d.ts +1 -1
  24. package/dist/types/components/internal/hooks/use-register-item-with-focus-manager.d.ts +1 -1
  25. package/dist/types/components/internal/utiles/handle-focus.d.ts +1 -1
  26. package/dist/types/components/stack.d.ts +4 -1
  27. package/dist/types/components/types.d.ts +5 -5
  28. package/dist/types/components/utils.d.ts +1 -1
  29. package/dist/types-ts4.5/components/avatar-group-item.d.ts +1 -1
  30. package/dist/types-ts4.5/components/avatar-group.d.ts +7 -4
  31. package/dist/types-ts4.5/components/grid.d.ts +4 -1
  32. package/dist/types-ts4.5/components/internal/components/focus-manager.d.ts +2 -2
  33. package/dist/types-ts4.5/components/internal/components/popup-avatar-group.d.ts +1 -1
  34. package/dist/types-ts4.5/components/internal/hooks/use-register-item-with-focus-manager.d.ts +1 -1
  35. package/dist/types-ts4.5/components/internal/utiles/handle-focus.d.ts +1 -1
  36. package/dist/types-ts4.5/components/stack.d.ts +4 -1
  37. package/dist/types-ts4.5/components/types.d.ts +5 -5
  38. package/dist/types-ts4.5/components/utils.d.ts +1 -1
  39. package/package.json +96 -98
  40. package/report.api.md +66 -65
package/README.md CHANGED
@@ -10,4 +10,5 @@ yarn add @atlaskit/avatar-group
10
10
 
11
11
  ## Usage
12
12
 
13
- Detailed docs and example usage can be found [here](https://atlassian.design/components/avatar-group/).
13
+ Detailed docs and example usage can be found
14
+ [here](https://atlassian.design/components/avatar-group/).
@@ -3,19 +3,19 @@ import React from 'react';
3
3
  import AvatarGroup from '../src';
4
4
 
5
5
  const data = [
6
- { email: 'chaki@me.com', name: 'Chaki Caronni' },
7
- { email: 'nanop@outlook.com', name: 'Nanop Rgiersig' },
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
- 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
- );
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; } /** @jsx jsx */
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
- listStyleType: 'none !important'
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
- marginBottom: "var(--ds-space-100, 8px)",
27
- paddingRight: "var(--ds-space-050, 4px)",
28
- paddingLeft: "var(--ds-space-050, 4px)"
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,6 +13,9 @@ 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; }
@@ -30,11 +33,13 @@ var FONT_SIZE = {
30
33
  xxlarge: '1rem' // 16px
31
34
  };
32
35
  var buttonActiveStyles = (0, _react2.css)({
33
- // 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
34
37
  '&&': {
35
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
36
40
  boxShadow: "0 0 0 ".concat(_avatar.BORDER_WIDTH, "px ", "var(--ds-border-selected, ".concat(_colors.B300, ")")),
37
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
38
43
  transform: "scale(".concat(_avatar.ACTIVE_SCALE_FACTOR, ")"),
39
44
  '&:hover': {
40
45
  backgroundColor: "var(--ds-background-selected-hovered, ".concat(_colors.N30, ")"),
@@ -47,7 +52,7 @@ var buttonActiveStyles = (0, _react2.css)({
47
52
  }
48
53
  });
49
54
  var buttonStyles = (0, _react2.css)({
50
- // 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
51
56
  '&&': {
52
57
  backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
53
58
  color: "var(--ds-text, ".concat(_colors.N500, ")"),
@@ -62,6 +67,7 @@ var buttonStyles = (0, _react2.css)({
62
67
  backgroundColor: "var(--ds-background-neutral-pressed, ".concat(_colors.B50, ")"),
63
68
  color: "var(--ds-text, ".concat(_colors.B400, ")")
64
69
  },
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
65
71
  '&:after': {
66
72
  display: 'none'
67
73
  }
@@ -111,11 +117,15 @@ var MoreIndicator = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
111
117
  "data-testid": testId,
112
118
  "aria-controls": ariaControls,
113
119
  "aria-expanded": ariaExpanded,
114
- "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
+ ,
115
123
  style: {
116
124
  fontSize: FONT_SIZE[size]
117
125
  },
118
- 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
+ ,
119
129
  className: className
120
130
  }), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count);
121
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
- listStyleType: 'none !important'
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
- marginRight: -gutter
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,4 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import { useCallback, useEffect, useState } from 'react';
4
7
  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
  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
- listStyleType: 'none !important'
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
- marginBottom: "var(--ds-space-100, 8px)",
20
- paddingRight: "var(--ds-space-050, 4px)",
21
- paddingLeft: "var(--ds-space-050, 4px)"
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,4 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ /**
3
+ * @jsxRuntime classic
4
+ */
2
5
  /** @jsx jsx */
3
6
  import { useContext, useEffect } from 'react';
4
7
  import { jsx } from '@emotion/react';
@@ -1,4 +1,7 @@
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';
@@ -18,11 +21,13 @@ const FONT_SIZE = {
18
21
  xxlarge: '1rem' // 16px
19
22
  };
20
23
  const buttonActiveStyles = css({
21
- // 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
22
25
  '&&': {
23
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
24
28
  boxShadow: `0 0 0 ${BORDER_WIDTH}px ${`var(--ds-border-selected, ${B300})`}`,
25
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
26
31
  transform: `scale(${ACTIVE_SCALE_FACTOR})`,
27
32
  '&:hover': {
28
33
  backgroundColor: `var(--ds-background-selected-hovered, ${N30})`,
@@ -35,7 +40,7 @@ const buttonActiveStyles = css({
35
40
  }
36
41
  });
37
42
  const buttonStyles = css({
38
- // 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
39
44
  '&&': {
40
45
  backgroundColor: `var(--ds-background-neutral, ${N20})`,
41
46
  color: `var(--ds-text, ${N500})`,
@@ -50,6 +55,7 @@ const buttonStyles = css({
50
55
  backgroundColor: `var(--ds-background-neutral-pressed, ${B50})`,
51
56
  color: `var(--ds-text, ${B400})`
52
57
  },
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
53
59
  '&:after': {
54
60
  display: 'none'
55
61
  }
@@ -95,11 +101,15 @@ const MoreIndicator = /*#__PURE__*/forwardRef(({
95
101
  "data-testid": testId,
96
102
  "aria-controls": ariaControls,
97
103
  "aria-expanded": ariaExpanded,
98
- "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
+ ,
99
107
  style: {
100
108
  fontSize: FONT_SIZE[size]
101
109
  },
102
- 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
+ ,
103
113
  className: className
104
114
  }), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count));
105
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
- listStyleType: 'none !important'
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
- marginRight: -gutter
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
- listStyleType: 'none !important'
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
- marginBottom: "var(--ds-space-100, 8px)",
20
- paddingRight: "var(--ds-space-050, 4px)",
21
- paddingLeft: "var(--ds-space-050, 4px)"
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,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 = ["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';
@@ -20,11 +23,13 @@ var FONT_SIZE = {
20
23
  xxlarge: '1rem' // 16px
21
24
  };
22
25
  var buttonActiveStyles = css({
23
- // 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
24
27
  '&&': {
25
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
26
30
  boxShadow: "0 0 0 ".concat(BORDER_WIDTH, "px ", "var(--ds-border-selected, ".concat(B300, ")")),
27
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
28
33
  transform: "scale(".concat(ACTIVE_SCALE_FACTOR, ")"),
29
34
  '&:hover': {
30
35
  backgroundColor: "var(--ds-background-selected-hovered, ".concat(N30, ")"),
@@ -37,7 +42,7 @@ var buttonActiveStyles = css({
37
42
  }
38
43
  });
39
44
  var buttonStyles = css({
40
- // 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
41
46
  '&&': {
42
47
  backgroundColor: "var(--ds-background-neutral, ".concat(N20, ")"),
43
48
  color: "var(--ds-text, ".concat(N500, ")"),
@@ -52,6 +57,7 @@ var buttonStyles = css({
52
57
  backgroundColor: "var(--ds-background-neutral-pressed, ".concat(B50, ")"),
53
58
  color: "var(--ds-text, ".concat(B400, ")")
54
59
  },
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
55
61
  '&:after': {
56
62
  display: 'none'
57
63
  }
@@ -101,11 +107,15 @@ var MoreIndicator = /*#__PURE__*/forwardRef(function (_ref, ref) {
101
107
  "data-testid": testId,
102
108
  "aria-controls": ariaControls,
103
109
  "aria-expanded": ariaExpanded,
104
- "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
+ ,
105
113
  style: {
106
114
  fontSize: FONT_SIZE[size]
107
115
  },
108
- 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
+ ,
109
119
  className: className
110
120
  }), "+", count > MAX_DISPLAY_COUNT ? MAX_DISPLAY_COUNT : count);
111
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
- listStyleType: 'none !important'
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
- marginRight: -gutter
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AvatarProps, onAvatarClickHandler } from './types';
2
+ import { type AvatarProps, type onAvatarClickHandler } from './types';
3
3
  export interface AvatarGroupItemProps {
4
4
  avatar: AvatarProps;
5
5
  isActive?: boolean;
@@ -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,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
5
+ import { type FC, type ReactNode } from 'react';
3
6
  declare const Grid: FC<{
4
7
  children: ReactNode;
5
8
  testId?: string;
@@ -1,5 +1,5 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { FocusableElement } from '../../types';
1
+ import React, { type FC, type ReactNode } from 'react';
2
+ import { type FocusableElement } from '../../types';
3
3
  /**
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { PopupAvatarGroupProps } from '../../types';
2
+ import { type PopupAvatarGroupProps } from '../../types';
3
3
  /**
4
4
  * It sets focus to the first avatar when popup is open.
5
5
  */
@@ -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,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
5
+ import { type FC, type ReactNode } from 'react';
3
6
  declare const Stack: FC<{
4
7
  children: ReactNode;
5
8
  testId?: string;
@@ -1,8 +1,8 @@
1
- import type { ElementType, ReactNode } from 'react';
1
+ import type { ElementType, ForwardRefExoticComponent, ReactNode, RefAttributes } from 'react';
2
2
  import type { AnalyticsEvent } from '@atlaskit/analytics-next';
3
- import { default as Avatar, type AvatarPropTypes } from '@atlaskit/avatar';
4
- import { MenuGroupProps } from '@atlaskit/menu';
5
- import { ContentProps } from '@atlaskit/popup';
3
+ import { type default as Avatar, type AvatarPropTypes } from '@atlaskit/avatar';
4
+ import { type MenuGroupProps } from '@atlaskit/menu';
5
+ import { type ContentProps } from '@atlaskit/popup';
6
6
  import type { AvatarGroupItemProps } from './avatar-group-item';
7
7
  export type DeepRequired<T> = {
8
8
  [P in keyof T]-?: Required<T[P]>;
@@ -13,7 +13,7 @@ export type AvatarProps = AvatarPropTypes & {
13
13
  };
14
14
  export interface AvatarGroupOverrides {
15
15
  AvatarGroupItem?: {
16
- render?: (Component: ElementType<AvatarGroupItemProps>, props: AvatarGroupItemProps, index: number) => ReactNode;
16
+ render?: (Component: ForwardRefExoticComponent<AvatarGroupItemProps & RefAttributes<HTMLElement>>, props: AvatarGroupItemProps, index: number) => ReactNode;
17
17
  };
18
18
  Avatar?: {
19
19
  render?: (Component: typeof Avatar | ElementType<AvatarProps>, props: AvatarProps, index: number) => ReactNode;
@@ -1,2 +1,2 @@
1
- import { AvatarProps } from './types';
1
+ import { type AvatarProps } from './types';
2
2
  export declare const composeUniqueKey: (props: AvatarProps, index: number) => string | number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AvatarProps, onAvatarClickHandler } from './types';
2
+ import { type AvatarProps, type onAvatarClickHandler } from './types';
3
3
  export interface AvatarGroupItemProps {
4
4
  avatar: AvatarProps;
5
5
  isActive?: boolean;
@@ -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,5 +1,8 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ */
1
4
  /** @jsx jsx */
2
- import { FC, ReactNode } from 'react';
5
+ import { type FC, type ReactNode } from 'react';
3
6
  declare const Grid: FC<{
4
7
  children: ReactNode;
5
8
  testId?: string;
@@ -1,5 +1,5 @@
1
- import React, { FC, ReactNode } from 'react';
2
- import { FocusableElement } from '../../types';
1
+ import React, { type FC, type ReactNode } from 'react';
2
+ import { type FocusableElement } from '../../types';
3
3
  /**
4
4
  *
5
5
  *