@atlaskit/user-picker 11.0.2 → 11.0.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,27 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#119746](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119746)
8
+ [`e669148287cf3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e669148287cf3) -
9
+ Internal refactor for compatibility with the latest version of @atlaskit/avatar. The UI remains
10
+ consistent.
11
+ - Updated dependencies
12
+
13
+ ## 11.0.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
18
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
19
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
20
+ future to avoid an accidental regression.
21
+
22
+ This is related to
23
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
24
+
3
25
  ## 11.0.2
4
26
 
5
27
  ### Patch Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/analytics.js",
4
4
  "module": "../dist/esm/analytics.js",
5
5
  "module:es2019": "../dist/es2019/analytics.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/analytics.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
12
12
  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; }
13
13
  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; }
14
14
  var packageName = "@atlaskit/user-picker";
15
- var packageVersion = "11.0.2";
15
+ var packageVersion = "11.0.4";
16
16
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
17
17
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
18
18
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -0,0 +1,14 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._18m915vq{overflow-y:hidden}
3
+ ._1bto1l2s{text-overflow:ellipsis}
4
+ ._1o9zkb7n{flex-shrink:1}
5
+ ._1reo15vq{overflow-x:hidden}
6
+ ._1ul953f4{min-width:75pt}
7
+ ._1ul9idpf{min-width:0}
8
+ ._4cvr1h6o{align-items:center}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._i0dl1osq{flex-basis:100%}
11
+ ._o5721q9c{white-space:nowrap}
12
+ ._p12f1osq{max-width:100%}
13
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
14
+ ._vwz419ii{line-height:1.4}
@@ -1,48 +1,31 @@
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.SingleValue = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _avatar = require("@atlaskit/avatar");
11
- var _react = require("@emotion/react");
9
+ require("./SingleValue.compiled.css");
10
+ var React = _interopRequireWildcard(require("react"));
11
+ var _runtime = require("@compiled/react/runtime");
12
12
  var _select = require("@atlaskit/select");
13
13
  var _SizeableAvatar = require("./SizeableAvatar");
14
14
  var _utils = require("./utils");
15
15
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
- var _primitives = require("@atlaskit/primitives");
18
- var _excluded = ["ref"];
19
- /**
20
- * @jsxRuntime classic
21
- * @jsx jsx
22
- */
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
- var avatarItemComponent = (0, _react.css)({
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
26
- border: 'none !important',
27
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
28
- padding: "var(--ds-space-0, 0px)".concat(" !important"),
29
- width: 'auto',
30
- overflow: 'hidden',
31
- minWidth: '100px',
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
33
- '& > span': {
34
- boxSizing: 'border-box'
35
- },
36
- '&:hover': {
37
- width: 'auto',
38
- padding: 0,
39
- border: 'none'
40
- }
41
- });
17
+ var _compiled = require("@atlaskit/primitives/compiled");
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ var styles = {
21
+ avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
22
+ avatarItemTextWrapper: "_16jlkb7n _1o9zkb7n _i0dl1osq _1ul9idpf _p12f1osq _bozgu2gc _vwz419ii",
23
+ avatarItemText: "_syaz1fxt _1reo15vq _1bto1l2s _o5721q9c"
24
+ };
42
25
  var ElementAfter = function ElementAfter(props) {
43
26
  var data = props.data.data;
44
27
  if ((0, _utils.isTeam)(data) && data.verified) {
45
- return (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null);
28
+ return /*#__PURE__*/React.createElement(_verifiedTeamIcon.VerifiedTeamIcon, null);
46
29
  }
47
30
  return null;
48
31
  };
@@ -53,21 +36,19 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
53
36
  _props$selectProps = props.selectProps,
54
37
  appearance = _props$selectProps.appearance,
55
38
  isFocused = _props$selectProps.isFocused;
56
- return !isFocused ? (0, _react.jsx)(_select.components.SingleValue, props, (0, _react.jsx)(_avatar.AvatarItem, {
57
- backgroundColor: "transparent",
58
- avatar: (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
59
- src: (0, _utils.getAvatarUrl)(data),
60
- appearance: appearance,
61
- type: (0, _utils.isTeam)(data) && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? 'team' : 'person'
62
- }),
63
- primaryText: (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? (0, _react.jsx)(_primitives.Inline, {
64
- alignBlock: "center"
65
- }, label, (0, _react.jsx)(ElementAfter, props)) : label
66
- }, function (_ref) {
67
- var ref = _ref.ref,
68
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
69
- return (0, _react.jsx)("div", (0, _extends2.default)({
70
- css: avatarItemComponent
71
- }, props));
72
- })) : null;
39
+ return !isFocused ? /*#__PURE__*/React.createElement(_select.components.SingleValue, props, /*#__PURE__*/React.createElement(_compiled.Flex, {
40
+ xcss: styles.avatarItem
41
+ }, /*#__PURE__*/React.createElement(_SizeableAvatar.SizeableAvatar, {
42
+ src: (0, _utils.getAvatarUrl)(data),
43
+ appearance: appearance,
44
+ type: (0, _utils.isTeam)(data) && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? 'team' : 'person'
45
+ }), /*#__PURE__*/React.createElement(_compiled.Box, {
46
+ xcss: styles.avatarItem
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: (0, _runtime.ax)([styles.avatarItemTextWrapper])
49
+ }, /*#__PURE__*/React.createElement(_compiled.Box, {
50
+ xcss: styles.avatarItemText
51
+ }, (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(_compiled.Inline, {
52
+ alignBlock: "center"
53
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
73
54
  };
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { v4 as uuidv4 } from 'uuid';
3
3
  import { isCustom, isExternalUser } from './components/utils';
4
4
  const packageName = "@atlaskit/user-picker";
5
- const packageVersion = "11.0.2";
5
+ const packageVersion = "11.0.4";
6
6
  const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
7
7
  const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
8
8
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -0,0 +1,14 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._18m915vq{overflow-y:hidden}
3
+ ._1bto1l2s{text-overflow:ellipsis}
4
+ ._1o9zkb7n{flex-shrink:1}
5
+ ._1reo15vq{overflow-x:hidden}
6
+ ._1ul953f4{min-width:75pt}
7
+ ._1ul9idpf{min-width:0}
8
+ ._4cvr1h6o{align-items:center}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._i0dl1osq{flex-basis:100%}
11
+ ._o5721q9c{white-space:nowrap}
12
+ ._p12f1osq{max-width:100%}
13
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
14
+ ._vwz419ii{line-height:1.4}
@@ -1,35 +1,18 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
- import { AvatarItem } from '@atlaskit/avatar';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { css, jsx } from '@emotion/react';
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./SingleValue.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
9
5
  import { components } from '@atlaskit/select';
10
6
  import { SizeableAvatar } from './SizeableAvatar';
11
7
  import { getAvatarUrl, isTeam } from './utils';
12
8
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
13
9
  import { fg } from '@atlaskit/platform-feature-flags';
14
- import { Inline } from '@atlaskit/primitives';
15
- const avatarItemComponent = css({
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
17
- border: 'none !important',
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
19
- padding: `${"var(--ds-space-0, 0px)"} !important`,
20
- width: 'auto',
21
- overflow: 'hidden',
22
- minWidth: '100px',
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
24
- '& > span': {
25
- boxSizing: 'border-box'
26
- },
27
- '&:hover': {
28
- width: 'auto',
29
- padding: 0,
30
- border: 'none'
31
- }
32
- });
10
+ import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
11
+ const styles = {
12
+ avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
13
+ avatarItemTextWrapper: "_16jlkb7n _1o9zkb7n _i0dl1osq _1ul9idpf _p12f1osq _bozgu2gc _vwz419ii",
14
+ avatarItemText: "_syaz1fxt _1reo15vq _1bto1l2s _o5721q9c"
15
+ };
33
16
  const ElementAfter = props => {
34
17
  const {
35
18
  data: {
@@ -37,7 +20,7 @@ const ElementAfter = props => {
37
20
  }
38
21
  } = props;
39
22
  if (isTeam(data) && data.verified) {
40
- return jsx(VerifiedTeamIcon, null);
23
+ return /*#__PURE__*/React.createElement(VerifiedTeamIcon, null);
41
24
  }
42
25
  return null;
43
26
  };
@@ -53,20 +36,19 @@ export const SingleValue = props => {
53
36
  isFocused
54
37
  }
55
38
  } = props;
56
- return !isFocused ? jsx(components.SingleValue, props, jsx(AvatarItem, {
57
- backgroundColor: "transparent",
58
- avatar: jsx(SizeableAvatar, {
59
- src: getAvatarUrl(data),
60
- appearance: appearance,
61
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
62
- }),
63
- primaryText: fg('verified-team-in-user-picker') ? jsx(Inline, {
64
- alignBlock: "center"
65
- }, label, jsx(ElementAfter, props)) : label
66
- }, ({
67
- ref,
68
- ...props
69
- }) => jsx("div", _extends({
70
- css: avatarItemComponent
71
- }, props)))) : null;
39
+ return !isFocused ? /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(Flex, {
40
+ xcss: styles.avatarItem
41
+ }, /*#__PURE__*/React.createElement(SizeableAvatar, {
42
+ src: getAvatarUrl(data),
43
+ appearance: appearance,
44
+ type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
45
+ }), /*#__PURE__*/React.createElement(Box, {
46
+ xcss: styles.avatarItem
47
+ }, /*#__PURE__*/React.createElement("div", {
48
+ className: ax([styles.avatarItemTextWrapper])
49
+ }, /*#__PURE__*/React.createElement(Box, {
50
+ xcss: styles.avatarItemText
51
+ }, fg('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(Inline, {
52
+ alignBlock: "center"
53
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
72
54
  };
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { v4 as uuidv4 } from 'uuid';
6
6
  import { isCustom, isExternalUser } from './components/utils';
7
7
  var packageName = "@atlaskit/user-picker";
8
- var packageVersion = "11.0.2";
8
+ var packageVersion = "11.0.4";
9
9
  var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
10
10
  var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
11
11
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -0,0 +1,14 @@
1
+ ._16jlkb7n{flex-grow:1}
2
+ ._18m915vq{overflow-y:hidden}
3
+ ._1bto1l2s{text-overflow:ellipsis}
4
+ ._1o9zkb7n{flex-shrink:1}
5
+ ._1reo15vq{overflow-x:hidden}
6
+ ._1ul953f4{min-width:75pt}
7
+ ._1ul9idpf{min-width:0}
8
+ ._4cvr1h6o{align-items:center}
9
+ ._bozgu2gc{padding-inline-start:var(--ds-space-100,8px)}
10
+ ._i0dl1osq{flex-basis:100%}
11
+ ._o5721q9c{white-space:nowrap}
12
+ ._p12f1osq{max-width:100%}
13
+ ._syaz1fxt{color:var(--ds-text,#172b4d)}
14
+ ._vwz419ii{line-height:1.4}
@@ -1,41 +1,22 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["ref"];
4
- /**
5
- * @jsxRuntime classic
6
- * @jsx jsx
7
- */
8
- import { AvatarItem } from '@atlaskit/avatar';
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { css, jsx } from '@emotion/react';
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./SingleValue.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
11
5
  import { components } from '@atlaskit/select';
12
6
  import { SizeableAvatar } from './SizeableAvatar';
13
7
  import { getAvatarUrl, isTeam } from './utils';
14
8
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
15
9
  import { fg } from '@atlaskit/platform-feature-flags';
16
- import { Inline } from '@atlaskit/primitives';
17
- var avatarItemComponent = css({
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
19
- border: 'none !important',
20
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
21
- padding: "var(--ds-space-0, 0px)".concat(" !important"),
22
- width: 'auto',
23
- overflow: 'hidden',
24
- minWidth: '100px',
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
26
- '& > span': {
27
- boxSizing: 'border-box'
28
- },
29
- '&:hover': {
30
- width: 'auto',
31
- padding: 0,
32
- border: 'none'
33
- }
34
- });
10
+ import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
11
+ var styles = {
12
+ avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
13
+ avatarItemTextWrapper: "_16jlkb7n _1o9zkb7n _i0dl1osq _1ul9idpf _p12f1osq _bozgu2gc _vwz419ii",
14
+ avatarItemText: "_syaz1fxt _1reo15vq _1bto1l2s _o5721q9c"
15
+ };
35
16
  var ElementAfter = function ElementAfter(props) {
36
17
  var data = props.data.data;
37
18
  if (isTeam(data) && data.verified) {
38
- return jsx(VerifiedTeamIcon, null);
19
+ return /*#__PURE__*/React.createElement(VerifiedTeamIcon, null);
39
20
  }
40
21
  return null;
41
22
  };
@@ -46,21 +27,19 @@ export var SingleValue = function SingleValue(props) {
46
27
  _props$selectProps = props.selectProps,
47
28
  appearance = _props$selectProps.appearance,
48
29
  isFocused = _props$selectProps.isFocused;
49
- return !isFocused ? jsx(components.SingleValue, props, jsx(AvatarItem, {
50
- backgroundColor: "transparent",
51
- avatar: jsx(SizeableAvatar, {
52
- src: getAvatarUrl(data),
53
- appearance: appearance,
54
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
55
- }),
56
- primaryText: fg('verified-team-in-user-picker') ? jsx(Inline, {
57
- alignBlock: "center"
58
- }, label, jsx(ElementAfter, props)) : label
59
- }, function (_ref) {
60
- var ref = _ref.ref,
61
- props = _objectWithoutProperties(_ref, _excluded);
62
- return jsx("div", _extends({
63
- css: avatarItemComponent
64
- }, props));
65
- })) : null;
30
+ return !isFocused ? /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(Flex, {
31
+ xcss: styles.avatarItem
32
+ }, /*#__PURE__*/React.createElement(SizeableAvatar, {
33
+ src: getAvatarUrl(data),
34
+ appearance: appearance,
35
+ type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
36
+ }), /*#__PURE__*/React.createElement(Box, {
37
+ xcss: styles.avatarItem
38
+ }, /*#__PURE__*/React.createElement("div", {
39
+ className: ax([styles.avatarItemTextWrapper])
40
+ }, /*#__PURE__*/React.createElement(Box, {
41
+ xcss: styles.avatarItemText
42
+ }, fg('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(Inline, {
43
+ alignBlock: "center"
44
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
66
45
  };
@@ -1,5 +1,5 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type Option } from '../types';
3
3
  import { type SingleValueProps } from '@atlaskit/select';
4
4
  export type Props = SingleValueProps<Option>;
5
- export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
5
+ export declare const SingleValue: (props: Props) => JSX.Element | null;
@@ -23,7 +23,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
23
23
  } | {
24
24
  MultiValue: typeof MultiValue;
25
25
  DropdownIndicator: null;
26
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
26
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
27
27
  ClearIndicator: typeof ClearIndicator | null;
28
28
  Option: import("react").FC<import("./Option").OptionProps>;
29
29
  ValueContainer: typeof MultiValueContainer | typeof SingleValueContainer;
@@ -33,7 +33,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
33
33
  }>;
34
34
  export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPopupTitle: boolean) => {
35
35
  DropdownIndicator: null;
36
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
36
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
37
37
  ClearIndicator: typeof ClearIndicator;
38
38
  Option: import("react").FC<import("./Option").OptionProps>;
39
39
  ValueContainer: typeof SingleValueContainer;
@@ -41,7 +41,7 @@ export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPo
41
41
  } | {
42
42
  Control: typeof PopupControl;
43
43
  DropdownIndicator: null;
44
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
44
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
45
45
  ClearIndicator: typeof ClearIndicator;
46
46
  Option: import("react").FC<import("./Option").OptionProps>;
47
47
  ValueContainer: typeof SingleValueContainer;
@@ -1,5 +1,5 @@
1
- import { jsx } from '@emotion/react';
1
+ /// <reference types="react" />
2
2
  import { type Option } from '../types';
3
3
  import { type SingleValueProps } from '@atlaskit/select';
4
4
  export type Props = SingleValueProps<Option>;
5
- export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
5
+ export declare const SingleValue: (props: Props) => JSX.Element | null;
@@ -23,7 +23,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
23
23
  } | {
24
24
  MultiValue: typeof MultiValue;
25
25
  DropdownIndicator: null;
26
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
26
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
27
27
  ClearIndicator: typeof ClearIndicator | null;
28
28
  Option: import("react").FC<import("./Option").OptionProps>;
29
29
  ValueContainer: typeof MultiValueContainer | typeof SingleValueContainer;
@@ -33,7 +33,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
33
33
  }>;
34
34
  export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPopupTitle: boolean) => {
35
35
  DropdownIndicator: null;
36
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
36
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
37
37
  ClearIndicator: typeof ClearIndicator;
38
38
  Option: import("react").FC<import("./Option").OptionProps>;
39
39
  ValueContainer: typeof SingleValueContainer;
@@ -41,7 +41,7 @@ export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPo
41
41
  } | {
42
42
  Control: typeof PopupControl;
43
43
  DropdownIndicator: null;
44
- SingleValue: (props: import("./SingleValue").Props) => import("@emotion/react").jsx.JSX.Element | null;
44
+ SingleValue: (props: import("./SingleValue").Props) => JSX.Element | null;
45
45
  ClearIndicator: typeof ClearIndicator;
46
46
  Option: import("react").FC<import("./Option").OptionProps>;
47
47
  ValueContainer: typeof SingleValueContainer;
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/option.js",
4
4
  "module": "../dist/esm/option.js",
5
5
  "module:es2019": "../dist/es2019/option.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/option.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.0.2",
3
+ "version": "11.0.4",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,9 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "*.compiled.css"
25
+ ],
24
26
  "atlaskit:src": "src/index.ts",
25
27
  "af:exports": {
26
28
  ".": "./src/index.ts",
@@ -48,7 +50,7 @@
48
50
  },
49
51
  "dependencies": {
50
52
  "@atlaskit/analytics-next": "^11.0.0",
51
- "@atlaskit/avatar": "^23.0.0",
53
+ "@atlaskit/avatar": "^24.0.0",
52
54
  "@atlaskit/icon": "^24.1.0",
53
55
  "@atlaskit/logo": "^16.0.0",
54
56
  "@atlaskit/lozenge": "^12.0.0",
@@ -64,6 +66,7 @@
64
66
  "@atlaskit/tooltip": "^20.0.0",
65
67
  "@atlaskit/ufo": "^0.4.0",
66
68
  "@babel/runtime": "^7.0.0",
69
+ "@compiled/react": "^0.18.2",
67
70
  "@emotion/react": "^11.7.1",
68
71
  "lodash": "^4.17.21",
69
72
  "memoize-one": "^6.0.0",
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {