@atlaskit/reactions 22.5.12 → 22.5.13

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/reactions
2
2
 
3
+ ## 22.5.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#91862](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91862) [`02c06e61c6f9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/02c06e61c6f9) - [ux] Update spacing styles to use tokens
8
+
3
9
  ## 22.5.12
4
10
 
5
11
  ### Patch Changes
@@ -11,7 +11,7 @@ var _analyticsGasTypes = require("@atlaskit/analytics-gas-types");
11
11
  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; }
12
12
  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; }
13
13
  var packageName = "@atlaskit/reactions";
14
- var packageVersion = "22.5.12";
14
+ var packageVersion = "22.5.13";
15
15
  /**
16
16
  * TODO: move to utility package?
17
17
  * A random sampling function
@@ -10,7 +10,10 @@ var _constants = require("../../shared/constants");
10
10
  /** @jsx jsx */
11
11
 
12
12
  var REACTIONS_CONTAINER_WIDTH = 48;
13
+
14
+ // These margin values must match
13
15
  var REACTION_RIGHT_MARGIN = 8;
16
+ var REACTION_RIGHT_MARGIN_TOKEN = "var(--ds-space-100, 8px)";
14
17
  /* we want to display around 9 reactions and show 10th one as faded so removing 2px from REACTIONS_CONTAINER_WIDTH*/
15
18
  var CONTAINER_WIDTH = _constants.NUMBER_OF_REACTIONS_TO_DISPLAY * (REACTIONS_CONTAINER_WIDTH + REACTION_RIGHT_MARGIN) + REACTIONS_CONTAINER_WIDTH - 2;
16
19
  var REACTION_CONTAINER_HEIGHT = 48;
@@ -55,12 +58,10 @@ var counterStyle = exports.counterStyle = function counterStyle(isSelected) {
55
58
  fontSize: '11px',
56
59
  fontWeight: isSelected ? 700 : 400,
57
60
  paddingRight: '0px',
58
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
59
- marginTop: '5px',
61
+ marginTop: "var(--ds-space-075, 6px)",
60
62
  '> div': {
61
63
  width: '100%',
62
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
63
- padding: '0px!important',
64
+ padding: "var(--ds-space-0, 0px)".concat("!important"),
64
65
  //Counter component has its own styles overriding them to match designs
65
66
  color: isSelected ? "".concat("var(--ds-text, ".concat(_colors.B400, ")"), "!important") : "2px solid ".concat("var(--ds-text, ".concat(_colors.N500, ")"), "!important")
66
67
  }
@@ -88,8 +89,7 @@ var customTabWrapper = exports.customTabWrapper = function customTabWrapper(isSe
88
89
  justifyContent: 'center',
89
90
  minWidth: "".concat(REACTIONS_CONTAINER_WIDTH, "px"),
90
91
  minHeight: "".concat(REACTION_CONTAINER_HEIGHT, "px"),
91
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
92
- marginRight: "".concat(REACTION_RIGHT_MARGIN, "px"),
92
+ marginRight: REACTION_RIGHT_MARGIN_TOKEN,
93
93
  boxSizing: 'border-box',
94
94
  position: 'relative',
95
95
  '> div': {
@@ -1,7 +1,7 @@
1
1
  import { createAndFireEvent } from '@atlaskit/analytics-next';
2
2
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
3
3
  const packageName = "@atlaskit/reactions";
4
- const packageVersion = "22.5.12";
4
+ const packageVersion = "22.5.13";
5
5
  /**
6
6
  * TODO: move to utility package?
7
7
  * A random sampling function
@@ -3,7 +3,10 @@ import { css } from '@emotion/react';
3
3
  import { B400, N500, N800 } from '@atlaskit/theme/colors';
4
4
  import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../../shared/constants';
5
5
  const REACTIONS_CONTAINER_WIDTH = 48;
6
+
7
+ // These margin values must match
6
8
  const REACTION_RIGHT_MARGIN = 8;
9
+ const REACTION_RIGHT_MARGIN_TOKEN = "var(--ds-space-100, 8px)";
7
10
  /* we want to display around 9 reactions and show 10th one as faded so removing 2px from REACTIONS_CONTAINER_WIDTH*/
8
11
  const CONTAINER_WIDTH = NUMBER_OF_REACTIONS_TO_DISPLAY * (REACTIONS_CONTAINER_WIDTH + REACTION_RIGHT_MARGIN) + REACTIONS_CONTAINER_WIDTH - 2;
9
12
  const REACTION_CONTAINER_HEIGHT = 48;
@@ -45,12 +48,10 @@ export const counterStyle = isSelected => css({
45
48
  fontSize: '11px',
46
49
  fontWeight: isSelected ? 700 : 400,
47
50
  paddingRight: '0px',
48
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
49
- marginTop: '5px',
51
+ marginTop: "var(--ds-space-075, 6px)",
50
52
  '> div': {
51
53
  width: '100%',
52
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
53
- padding: '0px!important',
54
+ padding: `${"var(--ds-space-0, 0px)"}!important`,
54
55
  //Counter component has its own styles overriding them to match designs
55
56
  color: isSelected ? `${`var(--ds-text, ${B400})`}!important` : `2px solid ${`var(--ds-text, ${N500})`}!important`
56
57
  }
@@ -74,8 +75,7 @@ export const customTabWrapper = (isSelected, selectedEmojiId, theme) => css({
74
75
  justifyContent: 'center',
75
76
  minWidth: `${REACTIONS_CONTAINER_WIDTH}px`,
76
77
  minHeight: `${REACTION_CONTAINER_HEIGHT}px`,
77
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
78
- marginRight: `${REACTION_RIGHT_MARGIN}px`,
78
+ marginRight: REACTION_RIGHT_MARGIN_TOKEN,
79
79
  boxSizing: 'border-box',
80
80
  position: 'relative',
81
81
  '> div': {
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  import { createAndFireEvent } from '@atlaskit/analytics-next';
5
5
  import { UI_EVENT_TYPE, OPERATIONAL_EVENT_TYPE } from '@atlaskit/analytics-gas-types';
6
6
  var packageName = "@atlaskit/reactions";
7
- var packageVersion = "22.5.12";
7
+ var packageVersion = "22.5.13";
8
8
  /**
9
9
  * TODO: move to utility package?
10
10
  * A random sampling function
@@ -3,7 +3,10 @@ import { css } from '@emotion/react';
3
3
  import { B400, N500, N800 } from '@atlaskit/theme/colors';
4
4
  import { NUMBER_OF_REACTIONS_TO_DISPLAY } from '../../shared/constants';
5
5
  var REACTIONS_CONTAINER_WIDTH = 48;
6
+
7
+ // These margin values must match
6
8
  var REACTION_RIGHT_MARGIN = 8;
9
+ var REACTION_RIGHT_MARGIN_TOKEN = "var(--ds-space-100, 8px)";
7
10
  /* we want to display around 9 reactions and show 10th one as faded so removing 2px from REACTIONS_CONTAINER_WIDTH*/
8
11
  var CONTAINER_WIDTH = NUMBER_OF_REACTIONS_TO_DISPLAY * (REACTIONS_CONTAINER_WIDTH + REACTION_RIGHT_MARGIN) + REACTIONS_CONTAINER_WIDTH - 2;
9
12
  var REACTION_CONTAINER_HEIGHT = 48;
@@ -48,12 +51,10 @@ export var counterStyle = function counterStyle(isSelected) {
48
51
  fontSize: '11px',
49
52
  fontWeight: isSelected ? 700 : 400,
50
53
  paddingRight: '0px',
51
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
52
- marginTop: '5px',
54
+ marginTop: "var(--ds-space-075, 6px)",
53
55
  '> div': {
54
56
  width: '100%',
55
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
56
- padding: '0px!important',
57
+ padding: "var(--ds-space-0, 0px)".concat("!important"),
57
58
  //Counter component has its own styles overriding them to match designs
58
59
  color: isSelected ? "".concat("var(--ds-text, ".concat(B400, ")"), "!important") : "2px solid ".concat("var(--ds-text, ".concat(N500, ")"), "!important")
59
60
  }
@@ -81,8 +82,7 @@ export var customTabWrapper = function customTabWrapper(isSelected, selectedEmoj
81
82
  justifyContent: 'center',
82
83
  minWidth: "".concat(REACTIONS_CONTAINER_WIDTH, "px"),
83
84
  minHeight: "".concat(REACTION_CONTAINER_HEIGHT, "px"),
84
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
85
- marginRight: "".concat(REACTION_RIGHT_MARGIN, "px"),
85
+ marginRight: REACTION_RIGHT_MARGIN_TOKEN,
86
86
  boxSizing: 'border-box',
87
87
  position: 'relative',
88
88
  '> div': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/reactions",
3
- "version": "22.5.12",
3
+ "version": "22.5.13",
4
4
  "description": "Reactions component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,17 +37,17 @@
37
37
  "@atlaskit/analytics-namespaced-context": "^6.9.0",
38
38
  "@atlaskit/analytics-next": "^9.2.0",
39
39
  "@atlaskit/avatar": "^21.5.0",
40
- "@atlaskit/button": "^17.7.0",
40
+ "@atlaskit/button": "^17.12.0",
41
41
  "@atlaskit/emoji": "^67.6.0",
42
42
  "@atlaskit/icon": "^22.1.0",
43
- "@atlaskit/modal-dialog": "^12.10.0",
43
+ "@atlaskit/modal-dialog": "^12.11.0",
44
44
  "@atlaskit/motion": "^1.5.0",
45
45
  "@atlaskit/popper": "^5.5.0",
46
46
  "@atlaskit/spinner": "^16.0.0",
47
- "@atlaskit/tabs": "^14.0.0",
48
- "@atlaskit/theme": "^12.6.0",
49
- "@atlaskit/tokens": "^1.42.0",
50
- "@atlaskit/tooltip": "^18.1.0",
47
+ "@atlaskit/tabs": "^14.1.0",
48
+ "@atlaskit/theme": "^12.7.0",
49
+ "@atlaskit/tokens": "^1.43.0",
50
+ "@atlaskit/tooltip": "^18.2.0",
51
51
  "@atlaskit/ufo": "^0.2.0",
52
52
  "@atlaskit/util-service-support": "^6.2.0",
53
53
  "@babel/runtime": "^7.0.0",