@atlaskit/avatar 21.3.3 → 21.3.4

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.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`abf69e9a4f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/abf69e9a4f6) - Removes usage of deprecated theme mixins in favor of static token / color usage.
8
+
3
9
  ## 21.3.3
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.3";
25
+ var packageVersion = "21.3.4";
26
26
 
27
27
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
28
28
 
@@ -15,7 +15,7 @@ var _colors = require("@atlaskit/theme/colors");
15
15
  var _constants = require("./constants");
16
16
  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; }
17
17
  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; } /** @jsx jsx */ // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
18
- var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat((0, _colors.background)(), ")");
18
+ var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(_colors.N0, ")");
19
19
  exports.ICON_BACKGROUND = ICON_BACKGROUND;
20
20
  var ICON_COLOR = "var(--ds-icon-subtle, ".concat(_colors.N90, ")");
21
21
  exports.ICON_COLOR = ICON_COLOR;
@@ -32,7 +32,7 @@ var getStyles = function getStyles(css, _ref) {
32
32
  isInteractive = _ref.isInteractive,
33
33
  isDisabled = _ref.isDisabled;
34
34
  return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing, @repo/internal/react/no-css-string-literals
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((0, _colors.backgroundHover)(), ")"), ";\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((0, _colors.backgroundActive)(), ")"), ";\n }\n "), isDisabled && "\n cursor: not-allowed;\n opacity: ".concat("var(--ds-opacity-disabled, 0.5)", ";\n pointer-events: none;\n "))
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
  };
38
38
 
@@ -28,7 +28,7 @@ var iconWrapperStyles = (0, _react.css)({
28
28
  */
29
29
  var IconWrapper = function IconWrapper(_ref) {
30
30
  var _ref$bgColor = _ref.bgColor,
31
- bgColor = _ref$bgColor === void 0 ? "var(--ds-surface-overlay, ".concat((0, _colors.background)(), ")") : _ref$bgColor,
31
+ bgColor = _ref$bgColor === void 0 ? "var(--ds-surface-overlay, ".concat(_colors.N0, ")") : _ref$bgColor,
32
32
  children = _ref.children,
33
33
  label = _ref.label;
34
34
  return (0, _react.jsx)("span", {
@@ -22,11 +22,11 @@ var BusyIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, n
22
22
  cy: "4",
23
23
  r: "4"
24
24
  }), /*#__PURE__*/_react.default.createElement("path", {
25
- fill: "var(--ds-surface-overlay, ".concat((0, _colors.background)(), ")"),
25
+ fill: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
26
26
  d: "M3.3,1.9l2.8,2.8c0.2,0.2,0.2,0.5,0,0.7L5.4,6.1c-0.2,0.2-0.5,0.2-0.7,0L1.9,3.3c-0.2-0.2-0.2-0.5,0-0.7l0.7-0.7C2.8,1.7,3.1,1.7,3.3,1.9z"
27
27
  }));
28
28
  var FocusIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
29
- fill: "var(--ds-icon-discovery, ".concat((0, _colors.purple)(), ")"),
29
+ fill: "var(--ds-icon-discovery, ".concat(_colors.P300, ")"),
30
30
  d: "M4,8 C1.790861,8 0,6.209139 0,4 C0,1.790861 1.790861,0 4,0 C6.209139,0 8,1.790861 8,4 C8,6.209139 6.209139,8 4,8 Z M4,6.66666667 C5.47275933,6.66666667 6.66666667,5.47275933 6.66666667,4 C6.66666667,2.52724067 5.47275933,1.33333333 4,1.33333333 C2.52724067,1.33333333 1.33333333,2.52724067 1.33333333,4 C1.33333333,5.47275933 2.52724067,6.66666667 4,6.66666667 Z M4,5.33333333 C3.26362033,5.33333333 2.66666667,4.73637967 2.66666667,4 C2.66666667,3.26362033 3.26362033,2.66666667 4,2.66666667 C4.73637967,2.66666667 5.33333333,3.26362033 5.33333333,4 C5.33333333,4.73637967 4.73637967,5.33333333 4,5.33333333 Z"
31
31
  }));
32
32
  var OfflineIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
@@ -22,7 +22,7 @@ var ApprovedIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragmen
22
22
  cy: "4",
23
23
  r: "4"
24
24
  }), /*#__PURE__*/_react.default.createElement("path", {
25
- fill: "var(--ds-surface-overlay, ".concat((0, _colors.background)(), ")"),
25
+ fill: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
26
26
  d: "M2.47140452,3.52859548 C2.21105499,3.26824595 1.78894501,3.26824595 1.52859548,3.52859548 C1.26824595,3.78894501 1.26824595,4.21105499 1.52859548,4.47140452 L2.86192881,5.80473785 C3.12227834,6.06508738 3.54438833,6.06508738 3.80473785,5.80473785 L6.47140452,3.13807119 C6.73175405,2.87772166 6.73175405,2.45561167 6.47140452,2.19526215 C6.21105499,1.93491262 5.78894501,1.93491262 5.52859548,2.19526215 L3.33333333,4.39052429 L2.47140452,3.52859548 Z"
27
27
  }));
28
28
  var DeclinedIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("circle", {
@@ -31,7 +31,7 @@ var DeclinedIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragmen
31
31
  cy: "4",
32
32
  r: "4"
33
33
  }), /*#__PURE__*/_react.default.createElement("path", {
34
- fill: "var(--ds-surface-overlay, ".concat((0, _colors.background)(), ")"),
34
+ fill: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
35
35
  d: "M4.890661,4.0088336 L5.81806461,3.07802178 C6.06167933,2.83351177 6.06048933,2.43826992 5.81540668,2.19522442 C5.57032402,1.95217891 5.17415651,1.95336612 4.93054179,2.19787613 L4.00765946,3.12415007 L3.06906871,2.18377143 C2.82523777,1.93947602 2.42906937,1.93863765 2.18420182,2.18189887 C1.93933427,2.42516008 1.93849394,2.82040282 2.18232488,3.06469822 L3.12544091,4.00961077 L2.20275024,4.93569234 C1.95913552,5.18020236 1.96032551,5.5754442 2.20540817,5.81848971 C2.45049083,6.06153521 2.84665833,6.060348 3.09027306,5.81583799 L4.00844245,4.89429431 L4.9092123,5.79678001 C5.15304324,6.04107541 5.54921164,6.04191379 5.79407919,5.79865257 C6.03894674,5.55539135 6.03978708,5.16014862 5.79595614,4.91585321 L4.890661,4.0088336 Z"
36
36
  }));
37
37
  var LockedIndicator = /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("circle", {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.3",
3
+ "version": "21.3.4",
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.3";
13
+ const packageVersion = "21.3.4";
14
14
 
15
15
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
16
16
 
@@ -4,9 +4,9 @@ import { useEffect, useState } from 'react';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import PersonIcon from '@atlaskit/icon/glyph/person';
6
6
  import ShipIcon from '@atlaskit/icon/glyph/ship';
7
- import { background, N90 } from '@atlaskit/theme/colors';
7
+ import { N0, N90 } from '@atlaskit/theme/colors';
8
8
  import { AVATAR_RADIUS, AVATAR_SIZES } from './constants';
9
- export const ICON_BACKGROUND = `var(--ds-icon-inverse, ${background()})`;
9
+ export const ICON_BACKGROUND = `var(--ds-icon-inverse, ${N0})`;
10
10
  export const ICON_COLOR = `var(--ds-icon-subtle, ${N90})`;
11
11
  const avatarDefaultIconStyles = css({
12
12
  display: 'block',
@@ -2,7 +2,7 @@
2
2
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
3
3
  import { createElement, forwardRef, Fragment } from 'react';
4
4
  import { ClassNames, css, jsx } from '@emotion/react';
5
- import { B200, backgroundActive, backgroundHover } from '@atlaskit/theme/colors';
5
+ import { B200, B50, N30 } from '@atlaskit/theme/colors';
6
6
  import { borderRadius } from '@atlaskit/theme/constants';
7
7
  import { BORDER_WIDTH } from './constants';
8
8
  import Text from './Text';
@@ -42,7 +42,7 @@ css`
42
42
 
43
43
  ${isInteractive && `
44
44
  :hover {
45
- background-color: ${`var(--ds-background-neutral-subtle-hovered, ${backgroundHover()})`};
45
+ background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N30})`};
46
46
  cursor: pointer;
47
47
  text-decoration: none;
48
48
  }
@@ -53,7 +53,7 @@ css`
53
53
  }
54
54
 
55
55
  :active {
56
- background-color: ${`var(--ds-background-neutral-subtle-pressed, ${backgroundActive()})`};
56
+ background-color: ${`var(--ds-background-neutral-subtle-pressed, ${B50})`};
57
57
  }
58
58
  `}
59
59
 
@@ -2,7 +2,7 @@
2
2
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
- import { background } from '@atlaskit/theme/colors';
5
+ import { N0 } from '@atlaskit/theme/colors';
6
6
  import { BORDER_WIDTH } from './constants';
7
7
  const iconWrapperStyles = css({
8
8
  display: 'flex',
@@ -21,7 +21,7 @@ const iconWrapperStyles = css({
21
21
  * An icon wrapper is used internally only.
22
22
  */
23
23
  const IconWrapper = ({
24
- bgColor = `var(--ds-surface-overlay, ${background()})`,
24
+ bgColor = `var(--ds-surface-overlay, ${N0})`,
25
25
  children,
26
26
  label
27
27
  }) => jsx("span", {
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
2
  import React, { Fragment } from 'react';
3
- import { background, G300, N200, N40, purple, R300 } from '@atlaskit/theme/colors';
3
+ import { G300, N0, N200, N40, P300, R300 } from '@atlaskit/theme/colors';
4
4
  import { ICON_OFFSET, ICON_SIZES } from './constants';
5
5
  import IconWrapper from './IconWrapper';
6
6
 
@@ -12,11 +12,11 @@ const BusyIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE
12
12
  cy: "4",
13
13
  r: "4"
14
14
  }), /*#__PURE__*/React.createElement("path", {
15
- fill: `var(--ds-surface-overlay, ${background()})`,
15
+ fill: `var(--ds-surface-overlay, ${N0})`,
16
16
  d: "M3.3,1.9l2.8,2.8c0.2,0.2,0.2,0.5,0,0.7L5.4,6.1c-0.2,0.2-0.5,0.2-0.7,0L1.9,3.3c-0.2-0.2-0.2-0.5,0-0.7l0.7-0.7C2.8,1.7,3.1,1.7,3.3,1.9z"
17
17
  }));
18
18
  const FocusIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("path", {
19
- fill: `var(--ds-icon-discovery, ${purple()})`,
19
+ fill: `var(--ds-icon-discovery, ${P300})`,
20
20
  d: "M4,8 C1.790861,8 0,6.209139 0,4 C0,1.790861 1.790861,0 4,0 C6.209139,0 8,1.790861 8,4 C8,6.209139 6.209139,8 4,8 Z M4,6.66666667 C5.47275933,6.66666667 6.66666667,5.47275933 6.66666667,4 C6.66666667,2.52724067 5.47275933,1.33333333 4,1.33333333 C2.52724067,1.33333333 1.33333333,2.52724067 1.33333333,4 C1.33333333,5.47275933 2.52724067,6.66666667 4,6.66666667 Z M4,5.33333333 C3.26362033,5.33333333 2.66666667,4.73637967 2.66666667,4 C2.66666667,3.26362033 3.26362033,2.66666667 4,2.66666667 C4.73637967,2.66666667 5.33333333,3.26362033 5.33333333,4 C5.33333333,4.73637967 4.73637967,5.33333333 4,5.33333333 Z"
21
21
  }));
22
22
  const OfflineIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("path", {
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
2
  import React, { Fragment } from 'react';
3
- import { background, G400, N40, N500, R400 } from '@atlaskit/theme/colors';
3
+ import { G400, N0, N40, N500, R400 } from '@atlaskit/theme/colors';
4
4
  import { ICON_OFFSET, ICON_SIZES } from './constants';
5
5
  import IconWrapper from './IconWrapper';
6
6
 
@@ -12,7 +12,7 @@ const ApprovedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__
12
12
  cy: "4",
13
13
  r: "4"
14
14
  }), /*#__PURE__*/React.createElement("path", {
15
- fill: `var(--ds-surface-overlay, ${background()})`,
15
+ fill: `var(--ds-surface-overlay, ${N0})`,
16
16
  d: "M2.47140452,3.52859548 C2.21105499,3.26824595 1.78894501,3.26824595 1.52859548,3.52859548 C1.26824595,3.78894501 1.26824595,4.21105499 1.52859548,4.47140452 L2.86192881,5.80473785 C3.12227834,6.06508738 3.54438833,6.06508738 3.80473785,5.80473785 L6.47140452,3.13807119 C6.73175405,2.87772166 6.73175405,2.45561167 6.47140452,2.19526215 C6.21105499,1.93491262 5.78894501,1.93491262 5.52859548,2.19526215 L3.33333333,4.39052429 L2.47140452,3.52859548 Z"
17
17
  }));
18
18
  const DeclinedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
@@ -21,7 +21,7 @@ const DeclinedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__
21
21
  cy: "4",
22
22
  r: "4"
23
23
  }), /*#__PURE__*/React.createElement("path", {
24
- fill: `var(--ds-surface-overlay, ${background()})`,
24
+ fill: `var(--ds-surface-overlay, ${N0})`,
25
25
  d: "M4.890661,4.0088336 L5.81806461,3.07802178 C6.06167933,2.83351177 6.06048933,2.43826992 5.81540668,2.19522442 C5.57032402,1.95217891 5.17415651,1.95336612 4.93054179,2.19787613 L4.00765946,3.12415007 L3.06906871,2.18377143 C2.82523777,1.93947602 2.42906937,1.93863765 2.18420182,2.18189887 C1.93933427,2.42516008 1.93849394,2.82040282 2.18232488,3.06469822 L3.12544091,4.00961077 L2.20275024,4.93569234 C1.95913552,5.18020236 1.96032551,5.5754442 2.20540817,5.81848971 C2.45049083,6.06153521 2.84665833,6.060348 3.09027306,5.81583799 L4.00844245,4.89429431 L4.9092123,5.79678001 C5.15304324,6.04107541 5.54921164,6.04191379 5.79407919,5.79865257 C6.03894674,5.55539135 6.03978708,5.16014862 5.79595614,4.91585321 L4.890661,4.0088336 Z"
26
26
  }));
27
27
  const LockedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.3",
3
+ "version": "21.3.4",
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.3";
18
+ var packageVersion = "21.3.4";
19
19
 
20
20
  // eslint-disable-next-line @repo/internal/react/consistent-types-definitions
21
21
 
@@ -8,9 +8,9 @@ import { useEffect, useState } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import PersonIcon from '@atlaskit/icon/glyph/person';
10
10
  import ShipIcon from '@atlaskit/icon/glyph/ship';
11
- import { background, N90 } from '@atlaskit/theme/colors';
11
+ import { N0, N90 } from '@atlaskit/theme/colors';
12
12
  import { AVATAR_RADIUS, AVATAR_SIZES } from './constants';
13
- export var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(background(), ")");
13
+ export var ICON_BACKGROUND = "var(--ds-icon-inverse, ".concat(N0, ")");
14
14
  export var ICON_COLOR = "var(--ds-icon-subtle, ".concat(N90, ")");
15
15
  var avatarDefaultIconStyles = css({
16
16
  display: 'block',
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
7
7
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
8
8
  import { createElement, forwardRef, Fragment } from 'react';
9
9
  import { ClassNames, css, jsx } from '@emotion/react';
10
- import { B200, backgroundActive, backgroundHover } from '@atlaskit/theme/colors';
10
+ import { B200, B50, N30 } from '@atlaskit/theme/colors';
11
11
  import { borderRadius } from '@atlaskit/theme/constants';
12
12
  import { BORDER_WIDTH } from './constants';
13
13
  import Text from './Text';
@@ -25,7 +25,7 @@ var getStyles = function getStyles(css, _ref) {
25
25
  isInteractive = _ref.isInteractive,
26
26
  isDisabled = _ref.isDisabled;
27
27
  return (// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing, @repo/internal/react/no-css-string-literals
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(backgroundHover(), ")"), ";\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(backgroundActive(), ")"), ";\n }\n "), isDisabled && "\n cursor: not-allowed;\n opacity: ".concat("var(--ds-opacity-disabled, 0.5)", ";\n pointer-events: none;\n "))
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
  };
31
31
 
@@ -2,7 +2,7 @@
2
2
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
- import { background } from '@atlaskit/theme/colors';
5
+ import { N0 } from '@atlaskit/theme/colors';
6
6
  import { BORDER_WIDTH } from './constants';
7
7
  var iconWrapperStyles = css({
8
8
  display: 'flex',
@@ -22,7 +22,7 @@ var iconWrapperStyles = css({
22
22
  */
23
23
  var IconWrapper = function IconWrapper(_ref) {
24
24
  var _ref$bgColor = _ref.bgColor,
25
- bgColor = _ref$bgColor === void 0 ? "var(--ds-surface-overlay, ".concat(background(), ")") : _ref$bgColor,
25
+ bgColor = _ref$bgColor === void 0 ? "var(--ds-surface-overlay, ".concat(N0, ")") : _ref$bgColor,
26
26
  children = _ref.children,
27
27
  label = _ref.label;
28
28
  return jsx("span", {
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
2
  import React, { Fragment } from 'react';
3
- import { background, G300, N200, N40, purple, R300 } from '@atlaskit/theme/colors';
3
+ import { G300, N0, N200, N40, P300, R300 } from '@atlaskit/theme/colors';
4
4
  import { ICON_OFFSET, ICON_SIZES } from './constants';
5
5
  import IconWrapper from './IconWrapper';
6
6
 
@@ -12,11 +12,11 @@ var BusyIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__
12
12
  cy: "4",
13
13
  r: "4"
14
14
  }), /*#__PURE__*/React.createElement("path", {
15
- fill: "var(--ds-surface-overlay, ".concat(background(), ")"),
15
+ fill: "var(--ds-surface-overlay, ".concat(N0, ")"),
16
16
  d: "M3.3,1.9l2.8,2.8c0.2,0.2,0.2,0.5,0,0.7L5.4,6.1c-0.2,0.2-0.5,0.2-0.7,0L1.9,3.3c-0.2-0.2-0.2-0.5,0-0.7l0.7-0.7C2.8,1.7,3.1,1.7,3.3,1.9z"
17
17
  }));
18
18
  var FocusIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("path", {
19
- fill: "var(--ds-icon-discovery, ".concat(purple(), ")"),
19
+ fill: "var(--ds-icon-discovery, ".concat(P300, ")"),
20
20
  d: "M4,8 C1.790861,8 0,6.209139 0,4 C0,1.790861 1.790861,0 4,0 C6.209139,0 8,1.790861 8,4 C8,6.209139 6.209139,8 4,8 Z M4,6.66666667 C5.47275933,6.66666667 6.66666667,5.47275933 6.66666667,4 C6.66666667,2.52724067 5.47275933,1.33333333 4,1.33333333 C2.52724067,1.33333333 1.33333333,2.52724067 1.33333333,4 C1.33333333,5.47275933 2.52724067,6.66666667 4,6.66666667 Z M4,5.33333333 C3.26362033,5.33333333 2.66666667,4.73637967 2.66666667,4 C2.66666667,3.26362033 3.26362033,2.66666667 4,2.66666667 C4.73637967,2.66666667 5.33333333,3.26362033 5.33333333,4 C5.33333333,4.73637967 4.73637967,5.33333333 4,5.33333333 Z"
21
21
  }));
22
22
  var OfflineIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("path", {
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line @repo/internal/fs/filename-pattern-match
2
2
  import React, { Fragment } from 'react';
3
- import { background, G400, N40, N500, R400 } from '@atlaskit/theme/colors';
3
+ import { G400, N0, N40, N500, R400 } from '@atlaskit/theme/colors';
4
4
  import { ICON_OFFSET, ICON_SIZES } from './constants';
5
5
  import IconWrapper from './IconWrapper';
6
6
 
@@ -12,7 +12,7 @@ var ApprovedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PU
12
12
  cy: "4",
13
13
  r: "4"
14
14
  }), /*#__PURE__*/React.createElement("path", {
15
- fill: "var(--ds-surface-overlay, ".concat(background(), ")"),
15
+ fill: "var(--ds-surface-overlay, ".concat(N0, ")"),
16
16
  d: "M2.47140452,3.52859548 C2.21105499,3.26824595 1.78894501,3.26824595 1.52859548,3.52859548 C1.26824595,3.78894501 1.26824595,4.21105499 1.52859548,4.47140452 L2.86192881,5.80473785 C3.12227834,6.06508738 3.54438833,6.06508738 3.80473785,5.80473785 L6.47140452,3.13807119 C6.73175405,2.87772166 6.73175405,2.45561167 6.47140452,2.19526215 C6.21105499,1.93491262 5.78894501,1.93491262 5.52859548,2.19526215 L3.33333333,4.39052429 L2.47140452,3.52859548 Z"
17
17
  }));
18
18
  var DeclinedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
@@ -21,7 +21,7 @@ var DeclinedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PU
21
21
  cy: "4",
22
22
  r: "4"
23
23
  }), /*#__PURE__*/React.createElement("path", {
24
- fill: "var(--ds-surface-overlay, ".concat(background(), ")"),
24
+ fill: "var(--ds-surface-overlay, ".concat(N0, ")"),
25
25
  d: "M4.890661,4.0088336 L5.81806461,3.07802178 C6.06167933,2.83351177 6.06048933,2.43826992 5.81540668,2.19522442 C5.57032402,1.95217891 5.17415651,1.95336612 4.93054179,2.19787613 L4.00765946,3.12415007 L3.06906871,2.18377143 C2.82523777,1.93947602 2.42906937,1.93863765 2.18420182,2.18189887 C1.93933427,2.42516008 1.93849394,2.82040282 2.18232488,3.06469822 L3.12544091,4.00961077 L2.20275024,4.93569234 C1.95913552,5.18020236 1.96032551,5.5754442 2.20540817,5.81848971 C2.45049083,6.06153521 2.84665833,6.060348 3.09027306,5.81583799 L4.00844245,4.89429431 L4.9092123,5.79678001 C5.15304324,6.04107541 5.54921164,6.04191379 5.79407919,5.79865257 C6.03894674,5.55539135 6.03978708,5.16014862 5.79595614,4.91585321 L4.890661,4.0088336 Z"
26
26
  }));
27
27
  var LockedIndicator = /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("circle", {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/avatar",
3
- "version": "21.3.3",
3
+ "version": "21.3.4",
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.3",
3
+ "version": "21.3.4",
4
4
  "description": "An avatar is a visual representation of a user or entity.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,14 +55,11 @@
55
55
  "@atlaskit/button": "^16.7.0",
56
56
  "@atlaskit/docs": "*",
57
57
  "@atlaskit/ds-lib": "^2.2.0",
58
- "@atlaskit/field-base": "^15.2.0",
59
58
  "@atlaskit/icon": "^21.12.0",
60
59
  "@atlaskit/section-message": "^6.4.0",
61
60
  "@atlaskit/ssr": "*",
62
- "@atlaskit/toggle": "^12.6.0",
63
61
  "@atlaskit/tooltip": "^17.8.0",
64
62
  "@atlaskit/visual-regression": "*",
65
- "@atlaskit/webdriver-runner": "*",
66
63
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
67
64
  "@emotion/styled": "^11.0.0",
68
65
  "@testing-library/react": "^12.1.5",