@atlaskit/avatar-group 10.1.5 → 11.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 +18 -0
- package/dist/cjs/components/avatar-group.js +14 -16
- package/dist/cjs/components/grid.compiled.css +13 -0
- package/dist/cjs/components/grid.js +14 -31
- package/dist/cjs/components/internal/components/popup-avatar-group.js +5 -7
- package/dist/cjs/components/more-indicator.compiled.css +15 -0
- package/dist/cjs/components/more-indicator.js +46 -70
- package/dist/cjs/components/stack.compiled.css +8 -0
- package/dist/cjs/components/stack.js +14 -33
- package/dist/es2019/components/avatar-group.js +10 -16
- package/dist/es2019/components/grid.compiled.css +13 -0
- package/dist/es2019/components/grid.js +10 -29
- package/dist/es2019/components/internal/components/popup-avatar-group.js +2 -7
- package/dist/es2019/components/more-indicator.compiled.css +15 -0
- package/dist/es2019/components/more-indicator.js +17 -52
- package/dist/es2019/components/stack.compiled.css +8 -0
- package/dist/es2019/components/stack.js +10 -30
- package/dist/esm/components/avatar-group.js +10 -16
- package/dist/esm/components/grid.compiled.css +13 -0
- package/dist/esm/components/grid.js +10 -29
- package/dist/esm/components/internal/components/popup-avatar-group.js +2 -7
- package/dist/esm/components/more-indicator.compiled.css +15 -0
- package/dist/esm/components/more-indicator.js +44 -68
- package/dist/esm/components/stack.compiled.css +8 -0
- package/dist/esm/components/stack.js +10 -30
- package/dist/types/components/avatar-group.d.ts +2 -7
- package/dist/types/components/internal/components/popup-avatar-group.d.ts +2 -2
- package/dist/types-ts4.5/components/avatar-group.d.ts +2 -7
- package/dist/types-ts4.5/components/internal/components/popup-avatar-group.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,41 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
1
|
+
/* stack.tsx generated by @compiled/babel-plugin v0.35.0 */
|
|
2
|
+
import "./stack.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { Children } from 'react';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
9
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
10
|
-
var gutter = BORDER_WIDTH * 2 + gridSize() / 2;
|
|
11
|
-
var listStyles = css({
|
|
12
|
-
display: 'flex',
|
|
13
|
-
margin: "var(--ds-space-0, 0px)",
|
|
14
|
-
padding: "var(--ds-space-0, 0px)",
|
|
15
|
-
isolation: 'isolate',
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
17
|
-
lineHeight: 1,
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
19
|
-
listStyleType: 'none !important',
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
|
-
marginInlineEnd: gutter
|
|
22
|
-
});
|
|
23
|
-
var listItemStyles = css({
|
|
24
|
-
margin: "var(--ds-space-0, 0px)",
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
-
marginInlineEnd: -gutter
|
|
27
|
-
});
|
|
6
|
+
var listStyles = null;
|
|
7
|
+
var listItemStyles = null;
|
|
28
8
|
var Stack = function Stack(_ref) {
|
|
29
9
|
var children = _ref.children,
|
|
30
10
|
testId = _ref.testId,
|
|
31
11
|
label = _ref['aria-label'];
|
|
32
|
-
return
|
|
12
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
33
13
|
"data-testid": testId,
|
|
34
14
|
"aria-label": label,
|
|
35
|
-
|
|
15
|
+
className: ax(["_18s8ze3t _1yt4ze3t _1e0c1txw _19121cl4 _vwz4kb7n _2mzuagmp _12l2u2gc"])
|
|
36
16
|
}, Children.map(children, function (child) {
|
|
37
|
-
return child &&
|
|
38
|
-
|
|
17
|
+
return child && /*#__PURE__*/React.createElement("li", {
|
|
18
|
+
className: ax(["_18s8ze3t _12l2x0bf"])
|
|
39
19
|
}, child);
|
|
40
20
|
}));
|
|
41
21
|
};
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ElementType, type MouseEventHandler } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type ElementType, type MouseEventHandler } from 'react';
|
|
7
2
|
import Avatar from '@atlaskit/avatar';
|
|
8
3
|
import { type PositionType } from '@atlaskit/tooltip';
|
|
9
4
|
import { type AvatarGroupOverrides, type AvatarGroupSize, type AvatarProps, type onAvatarClickHandler } from './types';
|
|
@@ -116,5 +111,5 @@ export interface AvatarGroupProps {
|
|
|
116
111
|
* - [Code](https://atlassian.design/components/avatar-group/code)
|
|
117
112
|
* - [Usage](https://atlassian.design/components/avatar-group/usage)
|
|
118
113
|
*/
|
|
119
|
-
declare const AvatarGroup: ({ appearance, avatar, borderColor, boundariesElement, data, isTooltipDisabled, maxCount, onAvatarClick, onMoreClick, overrides, showMoreButtonProps, size, testId, label, tooltipPosition, shouldPopupRenderToParent, }: AvatarGroupProps) =>
|
|
114
|
+
declare const AvatarGroup: ({ appearance, avatar, borderColor, boundariesElement, data, isTooltipDisabled, maxCount, onAvatarClick, onMoreClick, overrides, showMoreButtonProps, size, testId, label, tooltipPosition, shouldPopupRenderToParent, }: AvatarGroupProps) => JSX.Element;
|
|
120
115
|
export default AvatarGroup;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PopupAvatarGroupProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* It sets focus to the first avatar when popup is open.
|
|
5
5
|
*/
|
|
6
|
-
declare const PopupAvatarGroup: ({ children, isLoading, maxHeight, maxWidth, minHeight, minWidth, onClick, role, setInitialFocusRef, spacing, testId, ...rest }: PopupAvatarGroupProps) =>
|
|
6
|
+
declare const PopupAvatarGroup: ({ children, isLoading, maxHeight, maxWidth, minHeight, minWidth, onClick, role, setInitialFocusRef, spacing, testId, ...rest }: PopupAvatarGroupProps) => JSX.Element;
|
|
7
7
|
export default PopupAvatarGroup;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { type ElementType, type MouseEventHandler } from 'react';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
import React, { type ElementType, type MouseEventHandler } from 'react';
|
|
7
2
|
import Avatar from '@atlaskit/avatar';
|
|
8
3
|
import { type PositionType } from '@atlaskit/tooltip';
|
|
9
4
|
import { type AvatarGroupOverrides, type AvatarGroupSize, type AvatarProps, type onAvatarClickHandler } from './types';
|
|
@@ -116,5 +111,5 @@ export interface AvatarGroupProps {
|
|
|
116
111
|
* - [Code](https://atlassian.design/components/avatar-group/code)
|
|
117
112
|
* - [Usage](https://atlassian.design/components/avatar-group/usage)
|
|
118
113
|
*/
|
|
119
|
-
declare const AvatarGroup: ({ appearance, avatar, borderColor, boundariesElement, data, isTooltipDisabled, maxCount, onAvatarClick, onMoreClick, overrides, showMoreButtonProps, size, testId, label, tooltipPosition, shouldPopupRenderToParent, }: AvatarGroupProps) =>
|
|
114
|
+
declare const AvatarGroup: ({ appearance, avatar, borderColor, boundariesElement, data, isTooltipDisabled, maxCount, onAvatarClick, onMoreClick, overrides, showMoreButtonProps, size, testId, label, tooltipPosition, shouldPopupRenderToParent, }: AvatarGroupProps) => JSX.Element;
|
|
120
115
|
export default AvatarGroup;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { type PopupAvatarGroupProps } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* It sets focus to the first avatar when popup is open.
|
|
5
5
|
*/
|
|
6
|
-
declare const PopupAvatarGroup: ({ children, isLoading, maxHeight, maxWidth, minHeight, minWidth, onClick, role, setInitialFocusRef, spacing, testId, ...rest }: PopupAvatarGroupProps) =>
|
|
6
|
+
declare const PopupAvatarGroup: ({ children, isLoading, maxHeight, maxWidth, minHeight, minWidth, onClick, role, setInitialFocusRef, spacing, testId, ...rest }: PopupAvatarGroupProps) => JSX.Element;
|
|
7
7
|
export default PopupAvatarGroup;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar-group",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.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/"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/avatar": "^21.17.0",
|
|
29
|
+
"@atlaskit/css": "^0.7.2",
|
|
29
30
|
"@atlaskit/ds-lib": "^3.3.0",
|
|
30
31
|
"@atlaskit/menu": "^2.13.0",
|
|
31
32
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"@atlaskit/tokens": "^3.2.0",
|
|
35
36
|
"@atlaskit/tooltip": "^19.0.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|
|
37
|
-
"@
|
|
38
|
+
"@compiled/react": "^0.18.1",
|
|
38
39
|
"bind-event-listener": "^3.0.0"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
@@ -56,7 +57,6 @@
|
|
|
56
57
|
"@atlaskit/ssr": "*",
|
|
57
58
|
"@atlaskit/toggle": "^14.0.0",
|
|
58
59
|
"@atlaskit/visual-regression": "*",
|
|
59
|
-
"@emotion/styled": "^11.0.0",
|
|
60
60
|
"@testing-library/react": "^12.1.5",
|
|
61
61
|
"@testing-library/user-event": "^14.4.3",
|
|
62
62
|
"lodash": "^4.17.21",
|