@atlaskit/tokens 1.2.2 → 1.2.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,17 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2717641f696`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2717641f696) - The getTokenValue helper now strips leading or trailing spaces if they exist.
8
+
9
+ ## 1.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`e2b8df300f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e2b8df300f2) - Pull responsive helpers from `@atlaskit/primitives/responsive` instead of `@atlaskit/grid` as they've been moved.
14
+
3
15
  ## 1.2.2
4
16
 
5
17
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var name = "@atlaskit/tokens";
11
- var version = "1.2.2";
11
+ var version = "1.2.4";
12
12
  /**
13
13
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
14
14
  * resulting CSS Custom Property.
@@ -40,7 +40,7 @@ function getTokenValue(tokenId) {
40
40
  if (typeof window === 'undefined') {
41
41
  return tokenValue;
42
42
  }
43
- tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token);
43
+ tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token).trim();
44
44
  tokenValue = tokenValue || fallback;
45
45
  return tokenValue;
46
46
  }
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var _constants = require("./constants");
11
11
  var name = "@atlaskit/tokens";
12
- var version = "1.2.2";
12
+ var version = "1.2.4";
13
13
  /**
14
14
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
15
15
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.2.2";
4
+ const version = "1.2.4";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -32,7 +32,7 @@ function getTokenValue(tokenId, fallback = '') {
32
32
  if (typeof window === 'undefined') {
33
33
  return tokenValue;
34
34
  }
35
- tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token);
35
+ tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token).trim();
36
36
  tokenValue = tokenValue || fallback;
37
37
  return tokenValue;
38
38
  }
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "1.2.2";
5
+ const version = "1.2.4";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  var name = "@atlaskit/tokens";
4
- var version = "1.2.2";
4
+ var version = "1.2.4";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -33,7 +33,7 @@ function getTokenValue(tokenId) {
33
33
  if (typeof window === 'undefined') {
34
34
  return tokenValue;
35
35
  }
36
- tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token);
36
+ tokenValue = window.getComputedStyle(document.documentElement).getPropertyValue(token).trim();
37
37
  tokenValue = tokenValue || fallback;
38
38
  return tokenValue;
39
39
  }
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  var name = "@atlaskit/tokens";
5
- var version = "1.2.2";
5
+ var version = "1.2.4";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "Design tokens are the single source of truth to name and store design decisions.",
6
6
  "license": "Apache-2.0",
@@ -71,12 +71,12 @@
71
71
  "@atlaskit/dynamic-table": "^14.8.0",
72
72
  "@atlaskit/empty-state": "^7.4.0",
73
73
  "@atlaskit/focus-ring": "^1.2.0",
74
- "@atlaskit/grid": "^0.7.0",
74
+ "@atlaskit/grid": "^0.8.0",
75
75
  "@atlaskit/heading": "^1.1.0",
76
76
  "@atlaskit/icon": "^21.11.0",
77
77
  "@atlaskit/lozenge": "^11.3.0",
78
78
  "@atlaskit/modal-dialog": "^12.4.0",
79
- "@atlaskit/primitives": "^0.2.0",
79
+ "@atlaskit/primitives": "^0.3.0",
80
80
  "@atlaskit/section-message": "^6.3.0",
81
81
  "@atlaskit/tabs": "^13.3.0",
82
82
  "@atlaskit/tag": "^11.4.0",