@atlaskit/give-kudos 1.0.1 → 1.0.3

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,17 @@
1
1
  # @atlassian/give-kudos
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 1.0.1
4
16
 
5
17
  ### Patch Changes
@@ -39,8 +39,6 @@ var _colors = require("@atlaskit/theme/colors");
39
39
 
40
40
  var _constants = require("@atlaskit/theme/constants");
41
41
 
42
- var _tokens = require("@atlaskit/tokens");
43
-
44
42
  var _messages = _interopRequireDefault(require("../../messages"));
45
43
 
46
44
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -146,7 +144,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
146
144
  })),
147
145
  icon: (0, _react2.jsx)(_checkCircle.default, {
148
146
  label: "success",
149
- primaryColor: (0, _tokens.token)('color.icon.success', _colors.G300)
147
+ primaryColor: "var(--ds-icon-success, ".concat(_colors.G300, ")")
150
148
  })
151
149
  });
152
150
  } else if (event.data === 'dirty') {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -13,7 +13,6 @@ import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition
13
13
  import Portal from '@atlaskit/portal';
14
14
  import { G300 } from '@atlaskit/theme/colors';
15
15
  import { layers } from '@atlaskit/theme/constants';
16
- import { token } from '@atlaskit/tokens';
17
16
  import messages from '../../messages';
18
17
  const iframeStyles = css({
19
18
  border: 0
@@ -101,7 +100,7 @@ const GiveKudosLauncher = props => {
101
100
  })),
102
101
  icon: jsx(SuccessIcon, {
103
102
  label: "success",
104
- primaryColor: token('color.icon.success', G300)
103
+ primaryColor: `var(--ds-icon-success, ${G300})`
105
104
  })
106
105
  });
107
106
  } else if (event.data === 'dirty') {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -19,7 +19,6 @@ import Modal, { ModalBody, ModalFooter, ModalHeader, ModalTitle, ModalTransition
19
19
  import Portal from '@atlaskit/portal';
20
20
  import { G300 } from '@atlaskit/theme/colors';
21
21
  import { layers } from '@atlaskit/theme/constants';
22
- import { token } from '@atlaskit/tokens';
23
22
  import messages from '../../messages';
24
23
  var iframeStyles = css({
25
24
  border: 0
@@ -116,7 +115,7 @@ var GiveKudosLauncher = function GiveKudosLauncher(props) {
116
115
  })),
117
116
  icon: jsx(SuccessIcon, {
118
117
  label: "success",
119
- primaryColor: token('color.icon.success', G300)
118
+ primaryColor: "var(--ds-icon-success, ".concat(G300, ")")
120
119
  })
121
120
  });
122
121
  } else if (event.data === 'dirty') {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/give-kudos",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Give Kudos experience ",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/modal-dialog": "^12.4.0",
39
39
  "@atlaskit/portal": "^4.2.8",
40
40
  "@atlaskit/theme": "^12.2.0",
41
- "@atlaskit/tokens": "^0.12.0",
41
+ "@atlaskit/tokens": "^0.13.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
44
44
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/docs": "*",
51
51
  "@atlaskit/flag": "^15.0.0",
52
52
  "@atlaskit/ssr": "*",
53
- "@atlaskit/tokens": "^0.12.0",
53
+ "@atlaskit/tokens": "^0.13.0",
54
54
  "@atlaskit/visual-regression": "*",
55
55
  "@atlaskit/webdriver-runner": "*",
56
56
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",