@atlaskit/rating 1.1.0 → 1.1.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
|
@@ -37,7 +37,8 @@ var Rating = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
37
37
|
htmlFor: id,
|
|
38
38
|
"data-testid": testId && "".concat(testId, "--label"),
|
|
39
39
|
style: {
|
|
40
|
-
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
41
|
+
transition: "transform ".concat(_motion.durations.small, "ms ").concat(_motion.easeInOut),
|
|
41
42
|
transform: isChecked ? 'scale(1.2)' : undefined
|
|
42
43
|
}
|
|
43
44
|
}), (0, _react2.jsx)(_tooltip.default, {
|
|
@@ -8,7 +8,7 @@ import { forwardRef, Fragment, useCallback } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { durations, easeInOut } from '@atlaskit/motion';
|
|
12
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
13
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
14
14
|
const Rating = /*#__PURE__*/forwardRef(({
|
|
@@ -30,7 +30,8 @@ const Rating = /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
htmlFor: id,
|
|
31
31
|
"data-testid": testId && `${testId}--label`,
|
|
32
32
|
style: {
|
|
33
|
-
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
34
|
+
transition: `transform ${durations.small}ms ${easeInOut}`,
|
|
34
35
|
transform: isChecked ? 'scale(1.2)' : undefined
|
|
35
36
|
}
|
|
36
37
|
}), jsx(Tooltip, {
|
|
@@ -10,7 +10,7 @@ import { forwardRef, Fragment, useCallback } from 'react';
|
|
|
10
10
|
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { jsx } from '@emotion/react';
|
|
13
|
-
import {
|
|
13
|
+
import { durations, easeInOut } from '@atlaskit/motion';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
15
|
import VisuallyHidden from '@atlaskit/visually-hidden';
|
|
16
16
|
var Rating = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -31,7 +31,8 @@ var Rating = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
31
31
|
htmlFor: id,
|
|
32
32
|
"data-testid": testId && "".concat(testId, "--label"),
|
|
33
33
|
style: {
|
|
34
|
-
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
35
|
+
transition: "transform ".concat(durations.small, "ms ").concat(easeInOut),
|
|
35
36
|
transform: isChecked ? 'scale(1.2)' : undefined
|
|
36
37
|
}
|
|
37
38
|
}), jsx(Tooltip, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/rating",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "An accessible rating component that can be heavily customized.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"runReact18": true
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/icon": "^23.
|
|
34
|
-
"@atlaskit/motion": "^
|
|
35
|
-
"@atlaskit/theme": "^
|
|
33
|
+
"@atlaskit/icon": "^23.8.0",
|
|
34
|
+
"@atlaskit/motion": "^2.0.0",
|
|
35
|
+
"@atlaskit/theme": "^15.0.0",
|
|
36
36
|
"@atlaskit/tokens": "^3.3.0",
|
|
37
37
|
"@atlaskit/tooltip": "^19.1.0",
|
|
38
38
|
"@atlaskit/visually-hidden": "^1.6.0",
|