@atlaskit/teams-avatar 2.4.5 → 2.4.7

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,18 @@
1
1
  # @atlaskit/teams-avatar
2
2
 
3
+ ## 2.4.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`691996ef8e666`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/691996ef8e666) -
8
+ Minor eslint formatting changes
9
+
10
+ ## 2.4.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 2.4.5
4
17
 
5
18
  ### Patch Changes
@@ -9,17 +9,21 @@ exports.FallbackAvatar = FallbackAvatar;
9
9
  require("./index.compiled.css");
10
10
  var _runtime = require("@compiled/react/runtime");
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
13
  var _react = _interopRequireDefault(require("react"));
13
14
  var _css = require("@atlaskit/css");
14
15
  var _compiled = require("@atlaskit/primitives/compiled");
16
+ var _excluded = ["compact"];
15
17
  var styles = {
16
18
  wrapper: "_1e0c1txw",
17
19
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
18
20
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
19
21
  };
20
- function FallbackAvatar(props) {
22
+ function FallbackAvatar(_ref) {
23
+ var compact = _ref.compact,
24
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
21
25
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
22
- xcss: (0, _css.cx)(styles.wrapper, props.compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
26
+ xcss: (0, _css.cx)(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
23
27
  }, /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
24
28
  width: "32",
25
29
  height: "32",
@@ -10,9 +10,12 @@ const styles = {
10
10
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
11
11
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
12
12
  };
13
- export function FallbackAvatar(props) {
13
+ export function FallbackAvatar({
14
+ compact,
15
+ ...props
16
+ }) {
14
17
  return /*#__PURE__*/React.createElement(Box, {
15
- xcss: cx(styles.wrapper, props.compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
18
+ xcss: cx(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
16
19
  }, /*#__PURE__*/React.createElement("svg", _extends({
17
20
  width: "32",
18
21
  height: "32",
@@ -1,5 +1,7 @@
1
1
  /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
+ var _excluded = ["compact"];
3
5
  import "./index.compiled.css";
4
6
  import { ax, ix } from "@compiled/react/runtime";
5
7
  import React from 'react';
@@ -10,9 +12,11 @@ var styles = {
10
12
  wrapperSpacing: "_19pkv77o _2hwxv77o _otyrv77o _18u0v77o",
11
13
  compactWrapperSpacing: "_19pkze3t _2hwxze3t _otyrze3t _18u0ze3t"
12
14
  };
13
- export function FallbackAvatar(props) {
15
+ export function FallbackAvatar(_ref) {
16
+ var compact = _ref.compact,
17
+ props = _objectWithoutProperties(_ref, _excluded);
14
18
  return /*#__PURE__*/React.createElement(Box, {
15
- xcss: cx(styles.wrapper, props.compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
19
+ xcss: cx(styles.wrapper, compact ? styles.compactWrapperSpacing : styles.wrapperSpacing)
16
20
  }, /*#__PURE__*/React.createElement("svg", _extends({
17
21
  width: "32",
18
22
  height: "32",
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare function FallbackAvatar(props: React.SVGProps<SVGSVGElement> & {
2
+ export declare function FallbackAvatar({ compact, ...props }: React.SVGProps<SVGSVGElement> & {
3
3
  compact?: boolean;
4
4
  }): React.JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare function FallbackAvatar(props: React.SVGProps<SVGSVGElement> & {
2
+ export declare function FallbackAvatar({ compact, ...props }: React.SVGProps<SVGSVGElement> & {
3
3
  compact?: boolean;
4
4
  }): React.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-avatar",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "description": "A team avatar is a visual representation of a team.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@atlaskit/avatar": "^25.6.0",
39
- "@atlaskit/css": "^0.18.0",
40
- "@atlaskit/primitives": "^16.4.0",
39
+ "@atlaskit/css": "^0.19.0",
40
+ "@atlaskit/primitives": "^17.0.0",
41
41
  "@atlaskit/theme": "^21.0.0",
42
- "@atlaskit/tokens": "^8.6.0",
42
+ "@atlaskit/tokens": "^9.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@compiled/react": "^0.18.6"
45
45
  },