@atlaskit/rating 0.2.60 → 0.2.62

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/rating
2
2
 
3
+ ## 0.2.62
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.2.61
10
+
11
+ ### Patch Changes
12
+
13
+ - [`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.
14
+
3
15
  ## 0.2.60
4
16
 
5
17
  ### Patch Changes
@@ -21,8 +21,6 @@ var _starFilled = _interopRequireDefault(require("@atlaskit/icon/glyph/star-fill
21
21
 
22
22
  var _colors = require("@atlaskit/theme/colors");
23
23
 
24
- var _tokens = require("@atlaskit/tokens");
25
-
26
24
  var _rating = _interopRequireDefault(require("./rating"));
27
25
 
28
26
  var _excluded = ["size", "color"];
@@ -35,7 +33,7 @@ var Star = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
35
33
  var _ref$size = _ref.size,
36
34
  size = _ref$size === void 0 ? 'large' : _ref$size,
37
35
  _ref$color = _ref.color,
38
- color = _ref$color === void 0 ? (0, _tokens.token)('color.icon.accent.yellow', _colors.Y200) : _ref$color,
36
+ color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(_colors.Y200, ")") : _ref$color,
39
37
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
40
38
  var render = (0, _react.useCallback)(function (props) {
41
39
  return props.isChecked ?
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "sideEffects": false
5
5
  }
@@ -3,11 +3,10 @@ import React, { forwardRef, useCallback } from 'react';
3
3
  import StarIcon from '@atlaskit/icon/glyph/star';
4
4
  import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
5
5
  import { Y200 } from '@atlaskit/theme/colors';
6
- import { token } from '@atlaskit/tokens';
7
6
  import Rating from './rating';
8
7
  const Star = /*#__PURE__*/forwardRef(({
9
8
  size = 'large',
10
- color = token('color.icon.accent.yellow', Y200),
9
+ color = `var(--ds-icon-accent-yellow, ${Y200})`,
11
10
  ...props
12
11
  }, ref) => {
13
12
  const render = useCallback(props => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "sideEffects": false
5
5
  }
@@ -5,13 +5,12 @@ import React, { forwardRef, useCallback } from 'react';
5
5
  import StarIcon from '@atlaskit/icon/glyph/star';
6
6
  import StarFilledIcon from '@atlaskit/icon/glyph/star-filled';
7
7
  import { Y200 } from '@atlaskit/theme/colors';
8
- import { token } from '@atlaskit/tokens';
9
8
  import Rating from './rating';
10
9
  var Star = /*#__PURE__*/forwardRef(function (_ref, ref) {
11
10
  var _ref$size = _ref.size,
12
11
  size = _ref$size === void 0 ? 'large' : _ref$size,
13
12
  _ref$color = _ref.color,
14
- color = _ref$color === void 0 ? token('color.icon.accent.yellow', Y200) : _ref$color,
13
+ color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(Y200, ")") : _ref$color,
15
14
  props = _objectWithoutProperties(_ref, _excluded);
16
15
 
17
16
  var render = useCallback(function (props) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "description": "An accessible rating component that can be heavily customized.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/icon": "^21.11.0",
27
27
  "@atlaskit/motion": "^1.3.0",
28
28
  "@atlaskit/theme": "^12.2.0",
29
- "@atlaskit/tokens": "0.13.0",
29
+ "@atlaskit/tokens": "0.13.1",
30
30
  "@atlaskit/tooltip": "^17.6.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/react": "^11.7.1"
package/report.api.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- API Report Version: 2.2 -->
1
+ <!-- API Report Version: 2.3 -->
2
2
 
3
3
  ## API Report File for "@atlaskit/rating"
4
4