@atlaskit/avatar 21.3.5 → 21.3.6

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/avatar
2
2
 
3
+ ## 21.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal change to use shape tokens. There is no expected visual change.
8
+
3
9
  ## 21.3.5
4
10
 
5
11
  ### Patch Changes
@@ -22,7 +22,7 @@ var _templateObject;
22
22
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
23
23
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24
24
  var packageName = "@atlaskit/avatar";
25
- var packageVersion = "21.3.5";
25
+ var packageVersion = "21.3.6";
26
26
 
27
27
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
28
28
 
@@ -24,14 +24,14 @@ var avatarItemStyles = (0, _react2.css)({
24
24
  maxWidth: '100%',
25
25
  paddingLeft: "var(--ds-space-100, 8px)",
26
26
  flex: '1 1 100%',
27
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
27
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
28
28
  lineHeight: '1.4'
29
29
  });
30
30
  var getStyles = function getStyles(css, _ref) {
31
31
  var backgroundColor = _ref.backgroundColor,
32
32
  isInteractive = _ref.isInteractive,
33
33
  isDisabled = _ref.isDisabled;
34
- return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing, @repo/internal/react/no-css-string-literals
34
+ return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @repo/internal/react/no-css-string-literals
35
35
  css(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background-color: ", ";\n border-radius: ", "px;\n border: ", "px solid transparent;\n box-sizing: border-box;\n color: inherit;\n display: flex;\n font-size: inherit;\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n outline: none;\n margin: ", ";\n padding: ", ";\n text-align: left;\n text-decoration: none;\n width: 100%;\n\n ", "\n\n ", "\n "])), backgroundColor, (0, _constants.borderRadius)(), _constants2.BORDER_WIDTH, "var(--ds-space-0, 0px)", "var(--ds-space-050, 4px)", isInteractive && "\n :hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30, ")"), ";\n cursor: pointer;\n text-decoration: none;\n }\n\n :focus {\n outline: none;\n border-color: ", "var(--ds-border-focused, ".concat(_colors.B200, ")"), ";\n }\n\n :active {\n background-color: ", "var(--ds-background-neutral-subtle-pressed, ".concat(_colors.B50, ")"), ";\n }\n "), isDisabled && "\n cursor: not-allowed;\n opacity: ".concat("var(--ds-opacity-disabled, 0.5)", ";\n pointer-events: none;\n "))
36
36
  );
37
37
  };
@@ -17,7 +17,7 @@ var iconWrapperStyles = (0, _react.css)({
17
17
  height: '100%',
18
18
  alignItems: 'center',
19
19
  alignContent: 'center',
20
- borderRadius: '50%',
20
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
21
21
  overflow: 'hidden'
22
22
  });
23
23
 
@@ -32,11 +32,12 @@ var radiusStyles = Object.entries(_constants.AVATAR_RADIUS).reduce(function (sty
32
32
  key = _ref4[0],
33
33
  size = _ref4[1];
34
34
  return _objectSpread(_objectSpread({}, styles), {}, (0, _defineProperty2.default)({}, key, (0, _react.css)({
35
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
35
36
  borderRadius: "".concat(size, "px")
36
37
  })));
37
38
  }, {});
38
39
  var defaultRadiusStyles = (0, _react.css)({
39
- borderRadius: '50%'
40
+ borderRadius: "var(--ds-border-radius-circle, 50%)"
40
41
  });
41
42
  var strongOpacityStyles = (0, _react.css)({
42
43
  opacity: 0.3
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.5",
3
+ "version": "21.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,7 @@ import { PresenceWrapper } from './Presence';
10
10
  import { StatusWrapper } from './Status';
11
11
  import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
12
12
  const packageName = "@atlaskit/avatar";
13
- const packageVersion = "21.3.5";
13
+ const packageVersion = "21.3.6";
14
14
 
15
15
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
16
16
 
@@ -12,7 +12,7 @@ const avatarItemStyles = css({
12
12
  maxWidth: '100%',
13
13
  paddingLeft: "var(--ds-space-100, 8px)",
14
14
  flex: '1 1 100%',
15
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
15
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
16
16
  lineHeight: '1.4'
17
17
  });
18
18
  const getStyles = (css, {
@@ -20,7 +20,7 @@ const getStyles = (css, {
20
20
  isInteractive,
21
21
  isDisabled
22
22
  }) =>
23
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing, @repo/internal/react/no-css-string-literals
23
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @repo/internal/react/no-css-string-literals
24
24
  css`
25
25
  align-items: center;
26
26
  background-color: ${backgroundColor};
@@ -11,7 +11,7 @@ const iconWrapperStyles = css({
11
11
  height: '100%',
12
12
  alignItems: 'center',
13
13
  alignContent: 'center',
14
- borderRadius: '50%',
14
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
15
15
  overflow: 'hidden'
16
16
  });
17
17
 
@@ -23,12 +23,13 @@ const radiusStyles = Object.entries(AVATAR_RADIUS).reduce((styles, [key, size])
23
23
  return {
24
24
  ...styles,
25
25
  [key]: css({
26
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
26
27
  borderRadius: `${size}px`
27
28
  })
28
29
  };
29
30
  }, {});
30
31
  const defaultRadiusStyles = css({
31
- borderRadius: '50%'
32
+ borderRadius: "var(--ds-border-radius-circle, 50%)"
32
33
  });
33
34
  const strongOpacityStyles = css({
34
35
  opacity: 0.3
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.5",
3
+ "version": "21.3.6",
4
4
  "sideEffects": false
5
5
  }
@@ -15,7 +15,7 @@ import { PresenceWrapper } from './Presence';
15
15
  import { StatusWrapper } from './Status';
16
16
  import { getButtonProps, getCustomElement, getLinkProps } from './utilities';
17
17
  var packageName = "@atlaskit/avatar";
18
- var packageVersion = "21.3.5";
18
+ var packageVersion = "21.3.6";
19
19
 
20
20
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
21
21
 
@@ -17,14 +17,14 @@ var avatarItemStyles = css({
17
17
  maxWidth: '100%',
18
18
  paddingLeft: "var(--ds-space-100, 8px)",
19
19
  flex: '1 1 100%',
20
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
20
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
21
21
  lineHeight: '1.4'
22
22
  });
23
23
  var getStyles = function getStyles(css, _ref) {
24
24
  var backgroundColor = _ref.backgroundColor,
25
25
  isInteractive = _ref.isInteractive,
26
26
  isDisabled = _ref.isDisabled;
27
- return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing, @repo/internal/react/no-css-string-literals
27
+ return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @repo/internal/react/no-css-string-literals
28
28
  css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n border-radius: ", "px;\n border: ", "px solid transparent;\n box-sizing: border-box;\n color: inherit;\n display: flex;\n font-size: inherit;\n font-style: normal;\n font-weight: normal;\n line-height: 1;\n outline: none;\n margin: ", ";\n padding: ", ";\n text-align: left;\n text-decoration: none;\n width: 100%;\n\n ", "\n\n ", "\n "])), backgroundColor, borderRadius(), BORDER_WIDTH, "var(--ds-space-0, 0px)", "var(--ds-space-050, 4px)", isInteractive && "\n :hover {\n background-color: ".concat("var(--ds-background-neutral-subtle-hovered, ".concat(N30, ")"), ";\n cursor: pointer;\n text-decoration: none;\n }\n\n :focus {\n outline: none;\n border-color: ", "var(--ds-border-focused, ".concat(B200, ")"), ";\n }\n\n :active {\n background-color: ", "var(--ds-background-neutral-subtle-pressed, ".concat(B50, ")"), ";\n }\n "), isDisabled && "\n cursor: not-allowed;\n opacity: ".concat("var(--ds-opacity-disabled, 0.5)", ";\n pointer-events: none;\n "))
29
29
  );
30
30
  };
@@ -11,7 +11,7 @@ var iconWrapperStyles = css({
11
11
  height: '100%',
12
12
  alignItems: 'center',
13
13
  alignContent: 'center',
14
- borderRadius: '50%',
14
+ borderRadius: "var(--ds-border-radius-circle, 50%)",
15
15
  overflow: 'hidden'
16
16
  });
17
17
 
@@ -28,11 +28,12 @@ var radiusStyles = Object.entries(AVATAR_RADIUS).reduce(function (styles, _ref3)
28
28
  key = _ref4[0],
29
29
  size = _ref4[1];
30
30
  return _objectSpread(_objectSpread({}, styles), {}, _defineProperty({}, key, css({
31
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
31
32
  borderRadius: "".concat(size, "px")
32
33
  })));
33
34
  }, {});
34
35
  var defaultRadiusStyles = css({
35
- borderRadius: '50%'
36
+ borderRadius: "var(--ds-border-radius-circle, 50%)"
36
37
  });
37
38
  var strongOpacityStyles = css({
38
39
  opacity: 0.3
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.5",
3
+ "version": "21.3.6",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.5",
3
+ "version": "21.3.6",
4
4
  "description": "An avatar is a visual representation of a user or entity.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/analytics-next": "^9.1.0",
44
44
  "@atlaskit/icon": "^21.12.0",
45
45
  "@atlaskit/theme": "^12.5.0",
46
- "@atlaskit/tokens": "^1.9.0",
46
+ "@atlaskit/tokens": "^1.11.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1",
49
49
  "@emotion/serialize": "^1.1.0"