@atlaskit/user-picker 10.29.0 → 10.29.2

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,19 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.29.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.29.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#181817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181817)
14
+ [`c75a0ced77056`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c75a0ced77056) -
15
+ Internal changes to typography.
16
+
3
17
  ## 10.29.0
4
18
 
5
19
  ### 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.29.0";
15
+ var packageVersion = "10.29.2";
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}$/;
@@ -32,6 +32,7 @@ var wrapper = function wrapper(isDisabled) {
32
32
  alignItems: 'center',
33
33
  boxSizing: 'border-box',
34
34
  display: 'flex',
35
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
35
36
  lineHeight: 1,
36
37
  outline: 'none',
37
38
  margin: 0,
@@ -46,6 +47,7 @@ var optionWrapper = (0, _react2.css)({
46
47
  maxWidth: '100%',
47
48
  minWidth: 0,
48
49
  flex: '1 1 100%',
50
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
49
51
  lineHeight: '1.4',
50
52
  paddingLeft: "var(--ds-space-100, 8px)"
51
53
  });
@@ -18,6 +18,7 @@ var outerWrapper = function outerWrapper(isDisabled) {
18
18
  alignItems: 'center',
19
19
  boxSizing: 'border-box',
20
20
  display: 'flex',
21
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
21
22
  lineHeight: 1,
22
23
  outline: 'none',
23
24
  margin: 0,
@@ -33,6 +34,7 @@ var detailsWrapper = (0, _react.css)({
33
34
  maxWidth: '100%',
34
35
  minWidth: 0,
35
36
  flex: '1 1 100%',
37
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
36
38
  lineHeight: 1.4,
37
39
  paddingLeft: "var(--ds-space-100, 8px)",
38
40
  alignItems: 'center'
@@ -19,28 +19,20 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
19
19
  * @jsxRuntime classic
20
20
  * @jsx jsx
21
21
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
- var spacing = 8;
23
- var fontSize = 12;
24
- var innerHeight = spacing * 2; // 16px
25
- var lineHeight = innerHeight / fontSize;
26
22
  var controlWrapper = (0, _react2.css)({
27
23
  display: 'flex',
28
24
  flexDirection: 'column',
29
25
  padding: "0px ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
30
26
  });
31
- var getLabelStyle = function getLabelStyle() {
32
- return (0, _react2.css)({
33
- color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
34
- fontSize: "".concat(fontSize, "px"),
35
- fontWeight: "var(--ds-font-weight-semibold, 600)",
36
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
37
- lineHeight: "".concat(lineHeight),
38
- paddingBottom: "var(--ds-space-050, 4px)",
39
- paddingLeft: "var(--ds-space-0, 0px)",
40
- paddingRight: "var(--ds-space-0, 0px)",
41
- paddingTop: "var(--ds-space-250, 20px)"
42
- });
43
- };
27
+ var labelStyle = (0, _react2.css)({
28
+ color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
29
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
30
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
31
+ paddingBottom: "var(--ds-space-050, 4px)",
32
+ paddingLeft: "var(--ds-space-0, 0px)",
33
+ paddingRight: "var(--ds-space-0, 0px)",
34
+ paddingTop: "var(--ds-space-250, 20px)"
35
+ });
44
36
  var PopupControl = exports.PopupControl = /*#__PURE__*/function (_React$PureComponent) {
45
37
  function PopupControl() {
46
38
  (0, _classCallCheck2.default)(this, PopupControl);
@@ -54,7 +46,7 @@ var PopupControl = exports.PopupControl = /*#__PURE__*/function (_React$PureComp
54
46
  return (0, _react2.jsx)("div", {
55
47
  css: controlWrapper
56
48
  }, (0, _react2.jsx)("div", {
57
- css: getLabelStyle()
49
+ css: labelStyle
58
50
  }, popupTitle), (0, _react2.jsx)(_select.components.Control, this.props));
59
51
  }
60
52
  }]);
@@ -27,6 +27,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
27
27
  var placeholderIconContainer = (0, _react.css)({
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
29
29
  paddingLeft: _styles.BORDER_PADDING,
30
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
30
31
  lineHeight: 0,
31
32
  gridArea: '1/1/2/2'
32
33
  });
@@ -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.29.0";
5
+ const packageVersion = "10.29.2";
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}$/;
@@ -16,6 +16,7 @@ const wrapper = isDisabled => css({
16
16
  alignItems: 'center',
17
17
  boxSizing: 'border-box',
18
18
  display: 'flex',
19
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
19
20
  lineHeight: 1,
20
21
  outline: 'none',
21
22
  margin: 0,
@@ -29,6 +30,7 @@ const optionWrapper = css({
29
30
  maxWidth: '100%',
30
31
  minWidth: 0,
31
32
  flex: '1 1 100%',
33
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
32
34
  lineHeight: '1.4',
33
35
  paddingLeft: "var(--ds-space-100, 8px)"
34
36
  });
@@ -10,6 +10,7 @@ const outerWrapper = isDisabled => css({
10
10
  alignItems: 'center',
11
11
  boxSizing: 'border-box',
12
12
  display: 'flex',
13
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
13
14
  lineHeight: 1,
14
15
  outline: 'none',
15
16
  margin: 0,
@@ -24,6 +25,7 @@ const detailsWrapper = css({
24
25
  maxWidth: '100%',
25
26
  minWidth: 0,
26
27
  flex: '1 1 100%',
28
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
27
29
  lineHeight: 1.4,
28
30
  paddingLeft: "var(--ds-space-100, 8px)",
29
31
  alignItems: 'center'
@@ -7,21 +7,15 @@ import { components } from '@atlaskit/select';
7
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import { N200 } from '@atlaskit/theme/colors';
10
- const spacing = 8;
11
- const fontSize = 12;
12
- const innerHeight = spacing * 2; // 16px
13
- const lineHeight = innerHeight / fontSize;
14
10
  const controlWrapper = css({
15
11
  display: 'flex',
16
12
  flexDirection: 'column',
17
13
  padding: `0px ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`
18
14
  });
19
- const getLabelStyle = () => css({
15
+ const labelStyle = css({
20
16
  color: `var(--ds-text-subtlest, ${N200})`,
21
- fontSize: `${fontSize}px`,
17
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
22
18
  fontWeight: "var(--ds-font-weight-semibold, 600)",
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
- lineHeight: `${lineHeight}`,
25
19
  paddingBottom: "var(--ds-space-050, 4px)",
26
20
  paddingLeft: "var(--ds-space-0, 0px)",
27
21
  paddingRight: "var(--ds-space-0, 0px)",
@@ -38,7 +32,7 @@ export class PopupControl extends React.PureComponent {
38
32
  return jsx("div", {
39
33
  css: controlWrapper
40
34
  }, jsx("div", {
41
- css: getLabelStyle()
35
+ css: labelStyle
42
36
  }, popupTitle), jsx(components.Control, this.props));
43
37
  }
44
38
  }
@@ -13,6 +13,7 @@ import ValueContainerWrapper from './ValueContainerWrapper';
13
13
  const placeholderIconContainer = css({
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
15
15
  paddingLeft: BORDER_PADDING,
16
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
16
17
  lineHeight: 0,
17
18
  gridArea: '1/1/2/2'
18
19
  });
@@ -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.29.0";
8
+ var packageVersion = "10.29.2";
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}$/;
@@ -22,6 +22,7 @@ var wrapper = function wrapper(isDisabled) {
22
22
  alignItems: 'center',
23
23
  boxSizing: 'border-box',
24
24
  display: 'flex',
25
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
26
  lineHeight: 1,
26
27
  outline: 'none',
27
28
  margin: 0,
@@ -36,6 +37,7 @@ var optionWrapper = css({
36
37
  maxWidth: '100%',
37
38
  minWidth: 0,
38
39
  flex: '1 1 100%',
40
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
39
41
  lineHeight: '1.4',
40
42
  paddingLeft: "var(--ds-space-100, 8px)"
41
43
  });
@@ -14,6 +14,7 @@ var outerWrapper = function outerWrapper(isDisabled) {
14
14
  alignItems: 'center',
15
15
  boxSizing: 'border-box',
16
16
  display: 'flex',
17
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
17
18
  lineHeight: 1,
18
19
  outline: 'none',
19
20
  margin: 0,
@@ -29,6 +30,7 @@ var detailsWrapper = css({
29
30
  maxWidth: '100%',
30
31
  minWidth: 0,
31
32
  flex: '1 1 100%',
33
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
32
34
  lineHeight: 1.4,
33
35
  paddingLeft: "var(--ds-space-100, 8px)",
34
36
  alignItems: 'center'
@@ -14,28 +14,20 @@ import { components } from '@atlaskit/select';
14
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
15
  import { css, jsx } from '@emotion/react';
16
16
  import { N200 } from '@atlaskit/theme/colors';
17
- var spacing = 8;
18
- var fontSize = 12;
19
- var innerHeight = spacing * 2; // 16px
20
- var lineHeight = innerHeight / fontSize;
21
17
  var controlWrapper = css({
22
18
  display: 'flex',
23
19
  flexDirection: 'column',
24
20
  padding: "0px ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
25
21
  });
26
- var getLabelStyle = function getLabelStyle() {
27
- return css({
28
- color: "var(--ds-text-subtlest, ".concat(N200, ")"),
29
- fontSize: "".concat(fontSize, "px"),
30
- fontWeight: "var(--ds-font-weight-semibold, 600)",
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
32
- lineHeight: "".concat(lineHeight),
33
- paddingBottom: "var(--ds-space-050, 4px)",
34
- paddingLeft: "var(--ds-space-0, 0px)",
35
- paddingRight: "var(--ds-space-0, 0px)",
36
- paddingTop: "var(--ds-space-250, 20px)"
37
- });
38
- };
22
+ var labelStyle = css({
23
+ color: "var(--ds-text-subtlest, ".concat(N200, ")"),
24
+ font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
25
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
26
+ paddingBottom: "var(--ds-space-050, 4px)",
27
+ paddingLeft: "var(--ds-space-0, 0px)",
28
+ paddingRight: "var(--ds-space-0, 0px)",
29
+ paddingTop: "var(--ds-space-250, 20px)"
30
+ });
39
31
  export var PopupControl = /*#__PURE__*/function (_React$PureComponent) {
40
32
  function PopupControl() {
41
33
  _classCallCheck(this, PopupControl);
@@ -49,7 +41,7 @@ export var PopupControl = /*#__PURE__*/function (_React$PureComponent) {
49
41
  return jsx("div", {
50
42
  css: controlWrapper
51
43
  }, jsx("div", {
52
- css: getLabelStyle()
44
+ css: labelStyle
53
45
  }, popupTitle), jsx(components.Control, this.props));
54
46
  }
55
47
  }]);
@@ -22,6 +22,7 @@ import ValueContainerWrapper from './ValueContainerWrapper';
22
22
  var placeholderIconContainer = css({
23
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
24
24
  paddingLeft: BORDER_PADDING,
25
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
25
26
  lineHeight: 0,
26
27
  gridArea: '1/1/2/2'
27
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.29.0",
3
+ "version": "10.29.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@atlaskit/analytics-next": "^10.2.0",
50
50
  "@atlaskit/avatar": "^21.17.0",
51
- "@atlaskit/icon": "^23.1.0",
51
+ "@atlaskit/icon": "^23.3.0",
52
52
  "@atlaskit/logo": "^15.1.0",
53
53
  "@atlaskit/lozenge": "^11.12.0",
54
54
  "@atlaskit/people-teams-ui-public": "^2.0.0",
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/spinner": "^16.3.0",
60
60
  "@atlaskit/teams-avatar": "^1.1.0",
61
61
  "@atlaskit/theme": "^14.0.0",
62
- "@atlaskit/tokens": "^2.5.0",
62
+ "@atlaskit/tokens": "^3.0.0",
63
63
  "@atlaskit/tooltip": "^19.0.0",
64
64
  "@atlaskit/ufo": "^0.3.0",
65
65
  "@babel/runtime": "^7.0.0",
package/tsconfig.json CHANGED
@@ -9,6 +9,5 @@
9
9
  "./examples/**/*.tsx"
10
10
  ],
11
11
  "compilerOptions": {
12
- "baseUrl": "./"
13
12
  }
14
13
  }