@atlaskit/rating 0.2.9 → 0.2.12

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,23 @@
1
1
  # @atlaskit/rating
2
2
 
3
+ ## 0.2.12
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8223591a05e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8223591a05e) - The ownership of the @atlaskit/rating package has been moved to the Dev Portal team.
8
+
9
+ ## 0.2.11
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 0.2.10
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 0.2.9
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @atlaskit/rating
2
2
 
3
- Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/core/rating).
3
+ Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/dev-portal/rating).
@@ -21,6 +21,8 @@ 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
+
24
26
  var _rating = _interopRequireDefault(require("./rating"));
25
27
 
26
28
  var _excluded = ["size", "color"];
@@ -33,7 +35,7 @@ var Star = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
33
35
  var _ref$size = _ref.size,
34
36
  size = _ref$size === void 0 ? 'large' : _ref$size,
35
37
  _ref$color = _ref.color,
36
- color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(_colors.Y200, ")") : _ref$color,
38
+ color = _ref$color === void 0 ? (0, _tokens.token)('color.icon.accent.yellow', _colors.Y200) : _ref$color,
37
39
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
38
40
  var render = (0, _react.useCallback)(function (props) {
39
41
  return props.isChecked ?
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.9",
3
+ "version": "0.2.12",
4
4
  "sideEffects": false
5
5
  }
@@ -3,10 +3,11 @@ 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';
6
7
  import Rating from './rating';
7
8
  const Star = /*#__PURE__*/forwardRef(({
8
9
  size = 'large',
9
- color = `var(--ds-icon-accent-yellow, ${Y200})`,
10
+ color = token('color.icon.accent.yellow', Y200),
10
11
  ...props
11
12
  }, ref) => {
12
13
  const render = useCallback(props => {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.9",
3
+ "version": "0.2.12",
4
4
  "sideEffects": false
5
5
  }
@@ -5,12 +5,13 @@ 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';
8
9
  import Rating from './rating';
9
10
  var Star = /*#__PURE__*/forwardRef(function (_ref, ref) {
10
11
  var _ref$size = _ref.size,
11
12
  size = _ref$size === void 0 ? 'large' : _ref$size,
12
13
  _ref$color = _ref.color,
13
- color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(Y200, ")") : _ref$color,
14
+ color = _ref$color === void 0 ? token('color.icon.accent.yellow', Y200) : _ref$color,
14
15
  props = _objectWithoutProperties(_ref, _excluded);
15
16
 
16
17
  var render = useCallback(function (props) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/rating",
3
- "version": "0.2.9",
3
+ "version": "0.2.12",
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.9",
3
+ "version": "0.2.12",
4
4
  "description": "An accessible rating component that can be heavily customized.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,7 @@
15
15
  "sideEffects": false,
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "atlassian": {
18
- "team": "Design System Team",
18
+ "team": "Dev Portal",
19
19
  "deprecatedAutoEntryPoints": true,
20
20
  "releaseModel": "scheduled",
21
21
  "website": {
@@ -26,7 +26,7 @@
26
26
  "@atlaskit/icon": "^21.10.0",
27
27
  "@atlaskit/motion": "^1.0.0",
28
28
  "@atlaskit/theme": "^12.1.0",
29
- "@atlaskit/tokens": "0.9.1",
29
+ "@atlaskit/tokens": "0.9.3",
30
30
  "@atlaskit/tooltip": "^17.5.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/core": "^10.0.9"