@atlaskit/rating 0.1.10 → 0.2.2
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,30 @@
|
|
|
1
1
|
# @atlaskit/rating
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 0.2.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`36130d571ed`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36130d571ed) - [ux] Instrumented rating with the new theming package, `@atlaskit/tokens`.
|
|
20
|
+
|
|
21
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
22
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 0.1.10
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -33,7 +33,7 @@ var Star = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
33
33
|
var _ref$size = _ref.size,
|
|
34
34
|
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
35
35
|
_ref$color = _ref.color,
|
|
36
|
-
color = _ref$color === void 0 ? _colors.Y200 : _ref$color,
|
|
36
|
+
color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(_colors.Y200, ")") : _ref$color,
|
|
37
37
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
38
38
|
var render = (0, _react.useCallback)(function (props) {
|
|
39
39
|
return props.isChecked ?
|
package/dist/cjs/version.json
CHANGED
|
@@ -6,7 +6,7 @@ import { Y200 } from '@atlaskit/theme/colors';
|
|
|
6
6
|
import Rating from './rating';
|
|
7
7
|
const Star = /*#__PURE__*/forwardRef(({
|
|
8
8
|
size = 'large',
|
|
9
|
-
color = Y200
|
|
9
|
+
color = `var(--ds-icon-accent-yellow, ${Y200})`,
|
|
10
10
|
...props
|
|
11
11
|
}, ref) => {
|
|
12
12
|
const render = useCallback(props => {
|
package/dist/es2019/version.json
CHANGED
|
@@ -10,7 +10,7 @@ var Star = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
10
10
|
var _ref$size = _ref.size,
|
|
11
11
|
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
12
12
|
_ref$color = _ref.color,
|
|
13
|
-
color = _ref$color === void 0 ? Y200 : _ref$color,
|
|
13
|
+
color = _ref$color === void 0 ? "var(--ds-icon-accent-yellow, ".concat(Y200, ")") : _ref$color,
|
|
14
14
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
15
15
|
|
|
16
16
|
var render = useCallback(function (props) {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rating",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "An accessible rating component that can be heavily customized.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,6 +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.7.2",
|
|
29
30
|
"@atlaskit/tooltip": "^17.5.0",
|
|
30
31
|
"@babel/runtime": "^7.0.0",
|
|
31
32
|
"@emotion/core": "^10.0.9"
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"react-dom": "^16.8.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@atlaskit/button": "^16.
|
|
39
|
+
"@atlaskit/button": "^16.2.0",
|
|
39
40
|
"@atlaskit/docs": "*",
|
|
40
41
|
"@atlaskit/ssr": "*",
|
|
41
42
|
"@atlaskit/visual-regression": "*",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"import-structure": "atlassian-conventions"
|
|
49
50
|
},
|
|
50
51
|
"@repo/internal": {
|
|
52
|
+
"theming": "tokens",
|
|
51
53
|
"deprecation": "no-deprecated-imports",
|
|
52
54
|
"styling": [
|
|
53
55
|
"emotion"
|