@atlaskit/user-picker 10.10.0 → 10.10.1

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/user-picker
2
2
 
3
+ ## 10.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
8
+
3
9
  ## 10.10.0
4
10
 
5
11
  ### Minor Changes
@@ -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 = "10.10.0";
15
+ var packageVersion = "10.10.1";
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}$/;
@@ -8,7 +8,6 @@ exports.textWrapper = exports.AvatarItemOption = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _react = _interopRequireDefault(require("react"));
11
- var _constants = require("@atlaskit/theme/constants");
12
11
  var _react2 = require("@emotion/react");
13
12
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
14
13
  var _utils = require("./utils");
@@ -43,7 +42,7 @@ var optionWrapper = (0, _react2.css)({
43
42
  minWidth: 0,
44
43
  flex: '1 1 100%',
45
44
  lineHeight: '1.4',
46
- paddingLeft: "".concat((0, _constants.gridSize)(), "px")
45
+ paddingLeft: "var(--ds-space-100, 8px)"
47
46
  });
48
47
  var getTextStyle = function getTextStyle(isSecondary) {
49
48
  var secondaryCssArgs = isSecondary ? {
@@ -29,7 +29,7 @@ var detailsWrapper = (0, _react.css)({
29
29
  minWidth: 0,
30
30
  flex: '1 1 100%',
31
31
  lineHeight: 1.4,
32
- paddingLeft: '8px',
32
+ paddingLeft: "var(--ds-space-100, 8px)",
33
33
  alignItems: 'center'
34
34
  });
35
35
  var textSection = (0, _react.css)({
@@ -19,12 +19,12 @@ var _main = require("./main");
19
19
  /** @jsx jsx */
20
20
 
21
21
  var sourcesTooltipContainer = (0, _react2.css)({
22
- paddingBottom: '4px',
23
- paddingRight: '4px'
22
+ paddingBottom: "var(--ds-space-050, 4px)",
23
+ paddingRight: "var(--ds-space-050, 4px)"
24
24
  });
25
25
  exports.sourcesTooltipContainer = sourcesTooltipContainer;
26
26
  var sourceWrapper = (0, _react2.css)({
27
- paddingTop: '4px',
27
+ paddingTop: "var(--ds-space-050, 4px)",
28
28
  display: 'flex',
29
29
  alignItems: 'center'
30
30
  });
@@ -30,7 +30,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
30
30
  var imageContainer = (0, _react2.css)({
31
31
  height: '16px',
32
32
  width: '16px',
33
- paddingRight: '4px',
33
+ paddingRight: "var(--ds-space-050, 4px)",
34
34
  display: 'flex',
35
35
  alignItems: 'center',
36
36
  justifyContent: 'center'
@@ -23,11 +23,11 @@ var _HighlightText = require("../HighlightText");
23
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
24
24
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
25
25
  var groupOptionIconWrapper = (0, _react2.css)({
26
- padding: '2px',
26
+ padding: "var(--ds-space-025, 2px)",
27
27
  '> span': {
28
28
  backgroundColor: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
29
29
  borderRadius: '50%',
30
- padding: '4px'
30
+ padding: "var(--ds-space-050, 4px)"
31
31
  }
32
32
  });
33
33
  exports.groupOptionIconWrapper = groupOptionIconWrapper;
@@ -17,7 +17,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
17
17
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
18
18
  var getFooterStyle = function getFooterStyle() {
19
19
  return (0, _react2.css)({
20
- padding: '8px 16px'
20
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-200, 16px)")
21
21
  });
22
22
  };
23
23
  var Menu = /*#__PURE__*/function (_React$Component) {
@@ -41,7 +41,7 @@ var scrollToValue = function scrollToValue(valueContainer, control) {
41
41
  };
42
42
  exports.scrollToValue = scrollToValue;
43
43
  var groupTagContainer = (0, _react2.css)({
44
- paddingLeft: '2px'
44
+ paddingLeft: "var(--ds-space-025, 2px)"
45
45
  });
46
46
  var nameWrapper = (0, _react2.css)({
47
47
  paddingLeft: '5px'
@@ -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 = "10.10.0";
5
+ const packageVersion = "10.10.1";
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}$/;
@@ -1,6 +1,5 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { gridSize } from '@atlaskit/theme/constants';
4
3
  import { css, jsx } from '@emotion/react';
5
4
  import Lozenge from '@atlaskit/lozenge';
6
5
  import { isLozengeText } from './utils';
@@ -25,7 +24,7 @@ const optionWrapper = css({
25
24
  minWidth: 0,
26
25
  flex: '1 1 100%',
27
26
  lineHeight: '1.4',
28
- paddingLeft: `${gridSize()}px`
27
+ paddingLeft: "var(--ds-space-100, 8px)"
29
28
  });
30
29
  const getTextStyle = isSecondary => {
31
30
  const secondaryCssArgs = isSecondary ? {
@@ -19,7 +19,7 @@ const detailsWrapper = css({
19
19
  minWidth: 0,
20
20
  flex: '1 1 100%',
21
21
  lineHeight: 1.4,
22
- paddingLeft: '8px',
22
+ paddingLeft: "var(--ds-space-100, 8px)",
23
23
  alignItems: 'center'
24
24
  });
25
25
  const textSection = css({
@@ -11,11 +11,11 @@ import { GitHubIcon } from '../assets/github';
11
11
  import { messages } from '../i18n';
12
12
  import { imageContainer } from './main';
13
13
  export const sourcesTooltipContainer = css({
14
- paddingBottom: '4px',
15
- paddingRight: '4px'
14
+ paddingBottom: "var(--ds-space-050, 4px)",
15
+ paddingRight: "var(--ds-space-050, 4px)"
16
16
  });
17
17
  export const sourceWrapper = css({
18
- paddingTop: '4px',
18
+ paddingTop: "var(--ds-space-050, 4px)",
19
19
  display: 'flex',
20
20
  alignItems: 'center'
21
21
  });
@@ -15,7 +15,7 @@ import { SourcesTooltipContent } from './SourcesTooltipContent';
15
15
  export const imageContainer = css({
16
16
  height: '16px',
17
17
  width: '16px',
18
- paddingRight: '4px',
18
+ paddingRight: "var(--ds-space-050, 4px)",
19
19
  display: 'flex',
20
20
  alignItems: 'center',
21
21
  justifyContent: 'center'
@@ -9,11 +9,11 @@ import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
9
9
  import { messages } from '../i18n';
10
10
  import { HighlightText } from '../HighlightText';
11
11
  export const groupOptionIconWrapper = css({
12
- padding: '2px',
12
+ padding: "var(--ds-space-025, 2px)",
13
13
  '> span': {
14
14
  backgroundColor: `var(--ds-background-neutral, ${N20})`,
15
15
  borderRadius: '50%',
16
- padding: '4px'
16
+ padding: "var(--ds-space-050, 4px)"
17
17
  }
18
18
  });
19
19
  export class GroupOption extends React.PureComponent {
@@ -4,7 +4,7 @@ import { components } from '@atlaskit/select';
4
4
  import { css, jsx } from '@emotion/react';
5
5
  const getFooterStyle = () => {
6
6
  return css({
7
- padding: '8px 16px'
7
+ padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-200, 16px)"}`
8
8
  });
9
9
  };
10
10
  export class Menu extends React.Component {
@@ -26,7 +26,7 @@ export const scrollToValue = (valueContainer, control) => {
26
26
  }
27
27
  };
28
28
  const groupTagContainer = css({
29
- paddingLeft: '2px'
29
+ paddingLeft: "var(--ds-space-025, 2px)"
30
30
  });
31
31
  const nameWrapper = css({
32
32
  paddingLeft: '5px'
@@ -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 = "10.10.0";
8
+ var packageVersion = "10.10.1";
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}$/;
@@ -3,7 +3,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  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) { _defineProperty(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; }
4
4
  /** @jsx jsx */
5
5
  import React from 'react';
6
- import { gridSize } from '@atlaskit/theme/constants';
7
6
  import { css, jsx } from '@emotion/react';
8
7
  import Lozenge from '@atlaskit/lozenge';
9
8
  import { isLozengeText } from './utils';
@@ -32,7 +31,7 @@ var optionWrapper = css({
32
31
  minWidth: 0,
33
32
  flex: '1 1 100%',
34
33
  lineHeight: '1.4',
35
- paddingLeft: "".concat(gridSize(), "px")
34
+ paddingLeft: "var(--ds-space-100, 8px)"
36
35
  });
37
36
  var getTextStyle = function getTextStyle(isSecondary) {
38
37
  var secondaryCssArgs = isSecondary ? {
@@ -24,7 +24,7 @@ var detailsWrapper = css({
24
24
  minWidth: 0,
25
25
  flex: '1 1 100%',
26
26
  lineHeight: 1.4,
27
- paddingLeft: '8px',
27
+ paddingLeft: "var(--ds-space-100, 8px)",
28
28
  alignItems: 'center'
29
29
  });
30
30
  var textSection = css({
@@ -11,11 +11,11 @@ import { GitHubIcon } from '../assets/github';
11
11
  import { messages } from '../i18n';
12
12
  import { imageContainer } from './main';
13
13
  export var sourcesTooltipContainer = css({
14
- paddingBottom: '4px',
15
- paddingRight: '4px'
14
+ paddingBottom: "var(--ds-space-050, 4px)",
15
+ paddingRight: "var(--ds-space-050, 4px)"
16
16
  });
17
17
  export var sourceWrapper = css({
18
- paddingTop: '4px',
18
+ paddingTop: "var(--ds-space-050, 4px)",
19
19
  display: 'flex',
20
20
  alignItems: 'center'
21
21
  });
@@ -24,7 +24,7 @@ import { SourcesTooltipContent } from './SourcesTooltipContent';
24
24
  export var imageContainer = css({
25
25
  height: '16px',
26
26
  width: '16px',
27
- paddingRight: '4px',
27
+ paddingRight: "var(--ds-space-050, 4px)",
28
28
  display: 'flex',
29
29
  alignItems: 'center',
30
30
  justifyContent: 'center'
@@ -17,11 +17,11 @@ import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
17
17
  import { messages } from '../i18n';
18
18
  import { HighlightText } from '../HighlightText';
19
19
  export var groupOptionIconWrapper = css({
20
- padding: '2px',
20
+ padding: "var(--ds-space-025, 2px)",
21
21
  '> span': {
22
22
  backgroundColor: "var(--ds-background-neutral, ".concat(N20, ")"),
23
23
  borderRadius: '50%',
24
- padding: '4px'
24
+ padding: "var(--ds-space-050, 4px)"
25
25
  }
26
26
  });
27
27
  export var GroupOption = /*#__PURE__*/function (_React$PureComponent) {
@@ -11,7 +11,7 @@ import { components } from '@atlaskit/select';
11
11
  import { css, jsx } from '@emotion/react';
12
12
  var getFooterStyle = function getFooterStyle() {
13
13
  return css({
14
- padding: '8px 16px'
14
+ padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-200, 16px)")
15
15
  });
16
16
  };
17
17
  export var Menu = /*#__PURE__*/function (_React$Component) {
@@ -34,7 +34,7 @@ export var scrollToValue = function scrollToValue(valueContainer, control) {
34
34
  }
35
35
  };
36
36
  var groupTagContainer = css({
37
- paddingLeft: '2px'
37
+ paddingLeft: "var(--ds-space-025, 2px)"
38
38
  });
39
39
  var nameWrapper = css({
40
40
  paddingLeft: '5px'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.10.0",
3
+ "version": "10.10.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"