@atlaskit/avatar 25.1.19 → 25.2.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 +21 -0
- package/dist/cjs/avatar-content.compiled.css +1 -0
- package/dist/cjs/avatar-content.js +3 -2
- package/dist/cjs/avatar-item.js +1 -1
- package/dist/cjs/avatar.js +2 -2
- package/dist/cjs/internal/avatar-image.js +1 -1
- package/dist/cjs/internal/icon-wrapper.js +1 -1
- package/dist/cjs/presence.js +1 -1
- package/dist/cjs/skeleton.compiled.css +1 -0
- package/dist/cjs/skeleton.js +4 -2
- package/dist/cjs/status.js +1 -1
- package/dist/es2019/avatar-content.compiled.css +1 -0
- package/dist/es2019/avatar-content.js +3 -2
- package/dist/es2019/avatar-item.js +1 -1
- package/dist/es2019/avatar.js +2 -2
- package/dist/es2019/internal/avatar-image.js +1 -1
- package/dist/es2019/internal/icon-wrapper.js +1 -1
- package/dist/es2019/presence.js +1 -1
- package/dist/es2019/skeleton.compiled.css +1 -0
- package/dist/es2019/skeleton.js +4 -2
- package/dist/es2019/status.js +1 -1
- package/dist/esm/avatar-content.compiled.css +1 -0
- package/dist/esm/avatar-content.js +3 -2
- package/dist/esm/avatar-item.js +1 -1
- package/dist/esm/avatar.js +2 -2
- package/dist/esm/internal/avatar-image.js +1 -1
- package/dist/esm/internal/icon-wrapper.js +1 -1
- package/dist/esm/presence.js +1 -1
- package/dist/esm/skeleton.compiled.css +1 -0
- package/dist/esm/skeleton.js +4 -2
- package/dist/esm/status.js +1 -1
- package/offerings.json +181 -0
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/avatar
|
|
2
2
|
|
|
3
|
+
## 25.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`955c510552199`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/955c510552199) -
|
|
8
|
+
We are testing a visual change behind a feature flag. Square avatar border radius will be updated
|
|
9
|
+
to be consistent with the new ADS Tile System. If this change is successful it will be available
|
|
10
|
+
in a later release.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 25.1.20
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) -
|
|
21
|
+
Internal changes to how borders are applied.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 25.1.19
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
9
9
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
10
10
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
11
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
11
12
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
12
13
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}
|
|
13
14
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar-content.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar-content.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -21,6 +21,7 @@ var bgColorCssVar = '--avatar-bg-color';
|
|
|
21
21
|
var styles = {
|
|
22
22
|
root: "_19itglyw _12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _v564ieh6 _1e0c1txw _kqswpfqs _4cvr1fhb _1bah1h6o _2lx21bp4 _80om1kw7 _6rthv77o _1pfhv77o _12l2v77o _ahbqv77o _85i5ze3t _1q51ze3t _y4tize3t _bozgze3t _t9ec1aqe _9v7aze3t _qc5o1p41 _z0ai1osq _18postnw _1hfk1j28 _aetrf705 _1peqidpf _11fnglyw _1ejjglyw _mizu194a _1ah3v77o _ra3xnqa1 _128mdkaa _4dave4h9",
|
|
23
23
|
circle: "_2rko1qll _14mj1qll",
|
|
24
|
+
square: "_2rkol0p1",
|
|
24
25
|
positionRelative: "_kqswh2mm",
|
|
25
26
|
disabled: "_80om13gf _1hfkvuon _1peqs237"
|
|
26
27
|
};
|
|
@@ -88,6 +89,6 @@ var AvatarContent = exports.AvatarContent = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
88
89
|
target: target,
|
|
89
90
|
rel: target === '_blank' ? 'noopener noreferrer' : undefined
|
|
90
91
|
}, {
|
|
91
|
-
className: (0, _runtime.ax)([unboundStyles.root, styles.root, borderRadiusMap[size], appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
92
|
+
className: (0, _runtime.ax)([unboundStyles.root, styles.root, !(0, _platformFeatureFlags.fg)('platform_dst_avatar_tile') && borderRadiusMap[size], appearance === 'square' && (0, _platformFeatureFlags.fg)('platform_dst_avatar_tile') && styles.square, appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
92
93
|
}), children || avatarImage);
|
|
93
94
|
});
|
package/dist/cjs/avatar-item.js
CHANGED
package/dist/cjs/avatar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -24,7 +24,7 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
24
24
|
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; }
|
|
25
25
|
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; }
|
|
26
26
|
var packageName = "@atlaskit/avatar";
|
|
27
|
-
var packageVersion = "
|
|
27
|
+
var packageVersion = "0.0.0-development";
|
|
28
28
|
var containerStyles = null;
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
package/dist/cjs/presence.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
3
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
5
6
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
6
7
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}._189e1dm9{border-width:var(--ds-border-width-selected,2px)}
|
|
7
8
|
._1dqonqa1{border-style:solid}
|
package/dist/cjs/skeleton.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* skeleton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* skeleton.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -11,10 +11,12 @@ require("./skeleton.compiled.css");
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _runtime = require("@compiled/react/runtime");
|
|
13
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
14
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
16
|
var bgColorCssVar = '--avatar-skeleton-background-color';
|
|
16
17
|
var styles = {
|
|
17
18
|
root: "_2rko1qll _189e1dm9 _1dqonqa1 _1h6d1j28 _1e0c1o8l _bfhk1r8p _tzy4nh7s",
|
|
19
|
+
square: "_2rkol0p1",
|
|
18
20
|
strongOpacity: "_tzy4clii"
|
|
19
21
|
};
|
|
20
22
|
var sizeStyles = {
|
|
@@ -49,7 +51,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
49
51
|
weight = _ref.weight;
|
|
50
52
|
return /*#__PURE__*/React.createElement("div", {
|
|
51
53
|
style: (0, _defineProperty2.default)({}, bgColorCssVar, color !== null && color !== void 0 ? color : 'currentColor'),
|
|
52
|
-
className: (0, _runtime.ax)([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], weight === 'strong' && styles.strongOpacity])
|
|
54
|
+
className: (0, _runtime.ax)([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && !(0, _platformFeatureFlags.fg)('platform_dst_avatar_tile') && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && (0, _platformFeatureFlags.fg)('platform_dst_avatar_tile') && styles.square, weight === 'strong' && styles.strongOpacity])
|
|
53
55
|
});
|
|
54
56
|
};
|
|
55
57
|
var _default = exports.default = Skeleton;
|
package/dist/cjs/status.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
9
9
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
10
10
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
11
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
11
12
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
12
13
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}
|
|
13
14
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar-content.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar-content.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./avatar-content.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -11,6 +11,7 @@ const bgColorCssVar = '--avatar-bg-color';
|
|
|
11
11
|
const styles = {
|
|
12
12
|
root: "_19itglyw _12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _v564ieh6 _1e0c1txw _kqswpfqs _4cvr1fhb _1bah1h6o _2lx21bp4 _80om1kw7 _6rthv77o _1pfhv77o _12l2v77o _ahbqv77o _85i5ze3t _1q51ze3t _y4tize3t _bozgze3t _t9ec1aqe _9v7aze3t _qc5o1p41 _z0ai1osq _18postnw _1hfk1j28 _aetrf705 _1peqidpf _11fnglyw _1ejjglyw _mizu194a _1ah3v77o _ra3xnqa1 _128mdkaa _4dave4h9",
|
|
13
13
|
circle: "_2rko1qll _14mj1qll",
|
|
14
|
+
square: "_2rkol0p1",
|
|
14
15
|
positionRelative: "_kqswh2mm",
|
|
15
16
|
disabled: "_80om13gf _1hfkvuon _1peqs237"
|
|
16
17
|
};
|
|
@@ -83,6 +84,6 @@ export const AvatarContent = /*#__PURE__*/forwardRef(({
|
|
|
83
84
|
target,
|
|
84
85
|
rel: target === '_blank' ? 'noopener noreferrer' : undefined
|
|
85
86
|
}, {
|
|
86
|
-
className: ax([unboundStyles.root, styles.root, borderRadiusMap[size], appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
87
|
+
className: ax([unboundStyles.root, styles.root, !fg('platform_dst_avatar_tile') && borderRadiusMap[size], appearance === 'square' && fg('platform_dst_avatar_tile') && styles.square, appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
87
88
|
}), children || avatarImage);
|
|
88
89
|
});
|
package/dist/es2019/avatar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./avatar.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -12,7 +12,7 @@ import { PresenceWrapper } from './presence';
|
|
|
12
12
|
import { StatusWrapper } from './status';
|
|
13
13
|
import { getCustomElement } from './utilities';
|
|
14
14
|
const packageName = "@atlaskit/avatar";
|
|
15
|
-
const packageVersion = "
|
|
15
|
+
const packageVersion = "0.0.0-development";
|
|
16
16
|
const containerStyles = null;
|
|
17
17
|
|
|
18
18
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
package/dist/es2019/presence.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
3
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
5
6
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
6
7
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}._189e1dm9{border-width:var(--ds-border-width-selected,2px)}
|
|
7
8
|
._1dqonqa1{border-style:solid}
|
package/dist/es2019/skeleton.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/* skeleton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* skeleton.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import "./skeleton.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
6
|
const bgColorCssVar = '--avatar-skeleton-background-color';
|
|
6
7
|
const styles = {
|
|
7
8
|
root: "_2rko1qll _189e1dm9 _1dqonqa1 _1h6d1j28 _1e0c1o8l _bfhk1r8p _tzy4nh7s",
|
|
9
|
+
square: "_2rkol0p1",
|
|
8
10
|
strongOpacity: "_tzy4clii"
|
|
9
11
|
};
|
|
10
12
|
const sizeStyles = {
|
|
@@ -41,6 +43,6 @@ const Skeleton = ({
|
|
|
41
43
|
style: {
|
|
42
44
|
[bgColorCssVar]: color !== null && color !== void 0 ? color : 'currentColor'
|
|
43
45
|
},
|
|
44
|
-
className: ax([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], weight === 'strong' && styles.strongOpacity])
|
|
46
|
+
className: ax([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && !fg('platform_dst_avatar_tile') && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && fg('platform_dst_avatar_tile') && styles.square, weight === 'strong' && styles.strongOpacity])
|
|
45
47
|
});
|
|
46
48
|
export default Skeleton;
|
package/dist/es2019/status.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
9
9
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
10
10
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
11
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
11
12
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
12
13
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}
|
|
13
14
|
._9v7aze3t:after{inset:var(--ds-space-0,0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar-content.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar-content.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./avatar-content.compiled.css";
|
|
@@ -12,6 +12,7 @@ var bgColorCssVar = '--avatar-bg-color';
|
|
|
12
12
|
var styles = {
|
|
13
13
|
root: "_19itglyw _12ji1r31 _1qu2glyw _12y31o36 _1reo15vq _18m915vq _v564ieh6 _1e0c1txw _kqswpfqs _4cvr1fhb _1bah1h6o _2lx21bp4 _80om1kw7 _6rthv77o _1pfhv77o _12l2v77o _ahbqv77o _85i5ze3t _1q51ze3t _y4tize3t _bozgze3t _t9ec1aqe _9v7aze3t _qc5o1p41 _z0ai1osq _18postnw _1hfk1j28 _aetrf705 _1peqidpf _11fnglyw _1ejjglyw _mizu194a _1ah3v77o _ra3xnqa1 _128mdkaa _4dave4h9",
|
|
14
14
|
circle: "_2rko1qll _14mj1qll",
|
|
15
|
+
square: "_2rkol0p1",
|
|
15
16
|
positionRelative: "_kqswh2mm",
|
|
16
17
|
disabled: "_80om13gf _1hfkvuon _1peqs237"
|
|
17
18
|
};
|
|
@@ -79,6 +80,6 @@ export var AvatarContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
79
80
|
target: target,
|
|
80
81
|
rel: target === '_blank' ? 'noopener noreferrer' : undefined
|
|
81
82
|
}, {
|
|
82
|
-
className: ax([unboundStyles.root, styles.root, borderRadiusMap[size], appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
83
|
+
className: ax([unboundStyles.root, styles.root, !fg('platform_dst_avatar_tile') && borderRadiusMap[size], appearance === 'square' && fg('platform_dst_avatar_tile') && styles.square, appearance === 'circle' && styles.circle, widthHeightMap[size], stackIndex !== undefined && styles.positionRelative, isInteractive && !isDisabled && unboundStyles.interactive, isDisabled && styles.disabled])
|
|
83
84
|
}), children || avatarImage);
|
|
84
85
|
});
|
package/dist/esm/avatar-item.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar-item.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar-item.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./avatar-item.compiled.css";
|
package/dist/esm/avatar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./avatar.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -15,7 +15,7 @@ import { PresenceWrapper } from './presence';
|
|
|
15
15
|
import { StatusWrapper } from './status';
|
|
16
16
|
import { getCustomElement } from './utilities';
|
|
17
17
|
var packageName = "@atlaskit/avatar";
|
|
18
|
-
var packageVersion = "
|
|
18
|
+
var packageVersion = "0.0.0-development";
|
|
19
19
|
var containerStyles = null;
|
|
20
20
|
|
|
21
21
|
// eslint-disable-next-line @repo/internal/react/consistent-types-definitions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* avatar-image.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* avatar-image.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import "./avatar-image.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
package/dist/esm/presence.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
|
|
3
3
|
._2rko1qll{border-radius:var(--ds-radius-full,50%)}
|
|
4
4
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
5
|
+
._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
|
|
5
6
|
._2rkolb4i{border-radius:var(--ds-radius-xsmall,2px)}
|
|
6
7
|
._2rkopb1k{border-radius:var(--ds-radius-xlarge,9pt)}._189e1dm9{border-width:var(--ds-border-width-selected,2px)}
|
|
7
8
|
._1dqonqa1{border-style:solid}
|
package/dist/esm/skeleton.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
/* skeleton.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* skeleton.tsx generated by @compiled/babel-plugin v0.38.1 */
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import "./skeleton.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
var bgColorCssVar = '--avatar-skeleton-background-color';
|
|
7
8
|
var styles = {
|
|
8
9
|
root: "_2rko1qll _189e1dm9 _1dqonqa1 _1h6d1j28 _1e0c1o8l _bfhk1r8p _tzy4nh7s",
|
|
10
|
+
square: "_2rkol0p1",
|
|
9
11
|
strongOpacity: "_tzy4clii"
|
|
10
12
|
};
|
|
11
13
|
var sizeStyles = {
|
|
@@ -40,7 +42,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
40
42
|
weight = _ref.weight;
|
|
41
43
|
return /*#__PURE__*/React.createElement("div", {
|
|
42
44
|
style: _defineProperty({}, bgColorCssVar, color !== null && color !== void 0 ? color : 'currentColor'),
|
|
43
|
-
className: ax([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], weight === 'strong' && styles.strongOpacity])
|
|
45
|
+
className: ax([styles.root, sizeStyles[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && !fg('platform_dst_avatar_tile') && borderRadiusMap[size !== null && size !== void 0 ? size : 'medium'], appearance === 'square' && fg('platform_dst_avatar_tile') && styles.square, weight === 'strong' && styles.strongOpacity])
|
|
44
46
|
});
|
|
45
47
|
};
|
|
46
48
|
export default Skeleton;
|
package/dist/esm/status.js
CHANGED
package/offerings.json
ADDED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Avatar",
|
|
4
|
+
"package": "@atlaskit/avatar",
|
|
5
|
+
"import": {
|
|
6
|
+
"name": "Avatar",
|
|
7
|
+
"package": "@atlaskit/avatar",
|
|
8
|
+
"type": "default"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["avatar", "user", "profile", "image", "presence", "status", "representation"],
|
|
11
|
+
"categories": ["images", "data-display"],
|
|
12
|
+
"shortDescription": "A component for displaying user avatars with support for images, initials, and status indicators. An avatar is a visual representation of a user or entity. It can display user images, initials, presence indicators, and status indicators. Avatars help users quickly identify people and entities in your application. They provide visual context and make interfaces more personal and engaging.",
|
|
13
|
+
"status": "general-availability",
|
|
14
|
+
"example": "import Avatar from '@atlaskit/avatar';\n\n<Avatar\n\tsrc=\"https://example.com/avatar.jpg\"\n\tstatus=\"online\"\n\tsize=\"large\"\n/>",
|
|
15
|
+
"usageGuidelines": [
|
|
16
|
+
"Use consistent sizing within the same context",
|
|
17
|
+
"Place avatars in logical groupings (e.g., team members)",
|
|
18
|
+
"Use presence indicators sparingly for real-time status only",
|
|
19
|
+
"Use status indicators for approval/permission states",
|
|
20
|
+
"Provide fallback initials when images fail to load",
|
|
21
|
+
"Use avatars to represent users, teams, projects, or any other entity that needs visual identification",
|
|
22
|
+
"Always provide meaningful names for accessibility"
|
|
23
|
+
],
|
|
24
|
+
"contentGuidelines": [
|
|
25
|
+
"Use full names when possible for better recognition",
|
|
26
|
+
"For companies/projects, use descriptive names",
|
|
27
|
+
"Avoid generic terms like 'User' or 'Admin'",
|
|
28
|
+
"Use consistent naming conventions across your app",
|
|
29
|
+
"Keep names concise but meaningful"
|
|
30
|
+
],
|
|
31
|
+
"generativeInstructions": "./docs/ai/avatar-instructions.md",
|
|
32
|
+
"examples": ["./examples/ai/avatar.tsx"]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "AvatarItem",
|
|
36
|
+
"package": "@atlaskit/avatar",
|
|
37
|
+
"import": {
|
|
38
|
+
"name": "AvatarItem",
|
|
39
|
+
"package": "@atlaskit/avatar",
|
|
40
|
+
"type": "named"
|
|
41
|
+
},
|
|
42
|
+
"keywords": ["avatar", "item", "list", "user", "profile", "interactive"],
|
|
43
|
+
"categories": ["images", "data-display", "interaction"],
|
|
44
|
+
"shortDescription": "A component that combines an avatar with text content for displaying user information in lists. AvatarItem combines an avatar with primary and secondary text to create a rich user representation in lists and menus. It supports both interactive (clickable) and non-interactive modes, making it perfect for user lists, team members, or any context where you need to display user information with actions.",
|
|
45
|
+
"status": "general-availability",
|
|
46
|
+
"usageGuidelines": [
|
|
47
|
+
"Use for displaying user information in lists and menus",
|
|
48
|
+
"Choose between interactive and display-only based on context",
|
|
49
|
+
"Provide clear primary and secondary text hierarchy",
|
|
50
|
+
"Use consistent spacing and alignment within lists",
|
|
51
|
+
"Consider the interaction pattern before implementation",
|
|
52
|
+
"Use AvatarItem when you need to show user information with additional context like names, emails, or status information",
|
|
53
|
+
"Provide clear primary and secondary text",
|
|
54
|
+
"Use meaningful labels for accessibility",
|
|
55
|
+
"Consider the interaction pattern (clickable vs display-only) based on your use case"
|
|
56
|
+
],
|
|
57
|
+
"contentGuidelines": [
|
|
58
|
+
"Use clear, descriptive primary text (usually names)",
|
|
59
|
+
"Provide relevant secondary text (emails, roles, etc.)",
|
|
60
|
+
"Keep text concise but informative",
|
|
61
|
+
"Use consistent formatting across similar items",
|
|
62
|
+
"Avoid redundant information between primary and secondary text"
|
|
63
|
+
],
|
|
64
|
+
"examples": ["./examples/ai/avatar-item.tsx"]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Presence",
|
|
68
|
+
"package": "@atlaskit/avatar",
|
|
69
|
+
"import": {
|
|
70
|
+
"name": "Presence",
|
|
71
|
+
"package": "@atlaskit/avatar",
|
|
72
|
+
"type": "named"
|
|
73
|
+
},
|
|
74
|
+
"keywords": ["presence", "status", "online", "offline", "busy", "focus", "indicator"],
|
|
75
|
+
"categories": ["status", "data-display"],
|
|
76
|
+
"shortDescription": "A standalone component for displaying user presence indicators. Presence indicators show the current availability status of users. They help other users understand when someone is available for communication and are useful in collaborative applications where knowing someone's availability is important for workflow.",
|
|
77
|
+
"status": "general-availability",
|
|
78
|
+
"usageGuidelines": [
|
|
79
|
+
"Prefer using `<Avatar presence=\"…\" />` instead of `<Presence presence=\"…\" />`",
|
|
80
|
+
"Use sparingly for real-time status only",
|
|
81
|
+
"Don't overuse as they can create visual clutter",
|
|
82
|
+
"Show presence only when relevant to user workflow",
|
|
83
|
+
"Use consistent presence states across the application",
|
|
84
|
+
"Consider the context and user needs before showing presence",
|
|
85
|
+
"Use presence indicators sparingly for real-time status",
|
|
86
|
+
"Don't overuse them as they can create visual clutter",
|
|
87
|
+
"Only show presence when it's relevant to the user's workflow"
|
|
88
|
+
],
|
|
89
|
+
"contentGuidelines": [
|
|
90
|
+
"Use clear, universally understood presence states",
|
|
91
|
+
"Be consistent with presence terminology",
|
|
92
|
+
"Provide clear visual distinction between states",
|
|
93
|
+
"Avoid ambiguous or unclear presence indicators"
|
|
94
|
+
],
|
|
95
|
+
"examples": ["./examples/ai/presence.tsx"]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "Status",
|
|
99
|
+
"package": "@atlaskit/avatar",
|
|
100
|
+
"import": {
|
|
101
|
+
"name": "Status",
|
|
102
|
+
"package": "@atlaskit/avatar",
|
|
103
|
+
"type": "named"
|
|
104
|
+
},
|
|
105
|
+
"keywords": ["status", "approved", "declined", "locked", "indicator", "permission"],
|
|
106
|
+
"categories": ["status", "data-display"],
|
|
107
|
+
"shortDescription": "A standalone component for displaying status indicators. Status indicators show the approval or permission state of users or entities. They help communicate important state information at a glance and are useful in workflow applications where approval states or permissions are important for user understanding.",
|
|
108
|
+
"status": "general-availability",
|
|
109
|
+
"usageGuidelines": [
|
|
110
|
+
"Prefer using `<Avatar status=\"…\" />` instead of `<Status status=\"…\" />`",
|
|
111
|
+
"Use for approval states, permission levels, or important state information",
|
|
112
|
+
"Make sure the status is relevant and helpful to user workflow",
|
|
113
|
+
"Use consistent status states across the application",
|
|
114
|
+
"Consider the context and user needs before showing status",
|
|
115
|
+
"Don't overuse status indicators to avoid visual clutter",
|
|
116
|
+
"Use status indicators to show approval states, permission levels, or other important state information that affects how users should interact with the entity",
|
|
117
|
+
"Make sure the status is relevant and helpful to the user's workflow"
|
|
118
|
+
],
|
|
119
|
+
"contentGuidelines": [
|
|
120
|
+
"Use clear, universally understood status states",
|
|
121
|
+
"Be consistent with status terminology",
|
|
122
|
+
"Provide clear visual distinction between states",
|
|
123
|
+
"Avoid ambiguous or unclear status indicators"
|
|
124
|
+
],
|
|
125
|
+
"examples": ["./examples/ai/status.tsx"]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "Skeleton",
|
|
129
|
+
"package": "@atlaskit/avatar",
|
|
130
|
+
"import": {
|
|
131
|
+
"name": "Skeleton",
|
|
132
|
+
"package": "@atlaskit/avatar",
|
|
133
|
+
"type": "named"
|
|
134
|
+
},
|
|
135
|
+
"keywords": ["skeleton", "loading", "placeholder", "shimmer", "avatar"],
|
|
136
|
+
"categories": ["loading", "data-display"],
|
|
137
|
+
"shortDescription": "A skeleton loading component for avatars that shows a placeholder while content is loading. Skeleton components provide visual feedback during loading states, helping users understand that content is being fetched. Skeleton components should match the size and shape of the actual content they're replacing to prevent layout shifts.",
|
|
138
|
+
"status": "general-availability",
|
|
139
|
+
"usageGuidelines": [
|
|
140
|
+
"Use during loading states to maintain layout stability",
|
|
141
|
+
"Match the size and shape of the actual avatar content",
|
|
142
|
+
"Prevent layout shifts by maintaining consistent dimensions",
|
|
143
|
+
"Use for short loading periods (under 3 seconds)",
|
|
144
|
+
"Consider using spinners for longer loading times",
|
|
145
|
+
"Use skeleton avatars when user data is loading to maintain layout stability and provide visual feedback",
|
|
146
|
+
"Match the size and shape of the actual avatar content to prevent layout shifts"
|
|
147
|
+
],
|
|
148
|
+
"contentGuidelines": [
|
|
149
|
+
"Keep skeleton content minimal and non-distracting",
|
|
150
|
+
"Use consistent skeleton patterns across similar components",
|
|
151
|
+
"Avoid overly detailed skeleton content",
|
|
152
|
+
"Ensure skeleton content is clearly distinguishable from real content"
|
|
153
|
+
],
|
|
154
|
+
"examples": ["./examples/ai/skeleton.tsx"]
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "AvatarContent",
|
|
158
|
+
"package": "@atlaskit/avatar",
|
|
159
|
+
"import": {
|
|
160
|
+
"name": "AvatarContent",
|
|
161
|
+
"package": "@atlaskit/avatar",
|
|
162
|
+
"type": "named"
|
|
163
|
+
},
|
|
164
|
+
"keywords": ["avatar", "content", "custom", "children", "wrapper"],
|
|
165
|
+
"categories": ["images", "data-display"],
|
|
166
|
+
"shortDescription": "A wrapper component for custom avatar content that provides consistent styling and behavior.",
|
|
167
|
+
"status": "general-availability",
|
|
168
|
+
"usageGuidelines": [
|
|
169
|
+
"Use for custom avatar content that needs consistent styling",
|
|
170
|
+
"Wrap custom content to maintain avatar behavior",
|
|
171
|
+
"Ensure custom content follows avatar design principles",
|
|
172
|
+
"Use when standard avatar props don't meet your needs"
|
|
173
|
+
],
|
|
174
|
+
"contentGuidelines": [
|
|
175
|
+
"Ensure custom content is appropriate for avatar context",
|
|
176
|
+
"Maintain consistent visual hierarchy",
|
|
177
|
+
"Keep custom content simple and clear"
|
|
178
|
+
],
|
|
179
|
+
"examples": ["./examples/ai/avatar-content.tsx"]
|
|
180
|
+
}
|
|
181
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/avatar",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"description": "An avatar is a visual representation of a user or entity.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
36
36
|
"@atlaskit/css": "^0.14.0",
|
|
37
|
-
"@atlaskit/ds-lib": "^5.
|
|
37
|
+
"@atlaskit/ds-lib": "^5.1.0",
|
|
38
38
|
"@atlaskit/focus-ring": "^3.0.0",
|
|
39
|
-
"@atlaskit/icon": "^28.
|
|
39
|
+
"@atlaskit/icon": "^28.3.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/primitives": "^14.
|
|
41
|
+
"@atlaskit/primitives": "^14.15.0",
|
|
42
42
|
"@atlaskit/theme": "^21.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^6.3.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"@af/visual-regression": "workspace:^",
|
|
54
54
|
"@atlaskit/button": "^23.4.0",
|
|
55
55
|
"@atlaskit/code": "^17.2.0",
|
|
56
|
-
"@atlaskit/docs": "^11.
|
|
57
|
-
"@atlaskit/form": "^
|
|
56
|
+
"@atlaskit/docs": "^11.1.0",
|
|
57
|
+
"@atlaskit/form": "^14.1.0",
|
|
58
58
|
"@atlaskit/heading": "^5.2.0",
|
|
59
59
|
"@atlaskit/link": "^3.2.0",
|
|
60
60
|
"@atlaskit/range": "^9.2.0",
|
|
@@ -103,6 +103,9 @@
|
|
|
103
103
|
},
|
|
104
104
|
"platform-visual-refresh-icons": {
|
|
105
105
|
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"platform_dst_avatar_tile": {
|
|
108
|
+
"type": "boolean"
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
}
|