@contentful/field-editor-rating 1.6.1 → 1.6.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/dist/cjs/RatingRibbon.js
CHANGED
|
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "RatingRibbon", {
|
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _f36icons = require("@contentful/f36-icons");
|
|
14
|
+
const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
|
|
14
15
|
const _emotion = require("emotion");
|
|
15
16
|
function _define_property(obj, key, value) {
|
|
16
17
|
if (key in obj) {
|
|
@@ -25,6 +26,11 @@ function _define_property(obj, key, value) {
|
|
|
25
26
|
}
|
|
26
27
|
return obj;
|
|
27
28
|
}
|
|
29
|
+
function _interop_require_default(obj) {
|
|
30
|
+
return obj && obj.__esModule ? obj : {
|
|
31
|
+
default: obj
|
|
32
|
+
};
|
|
33
|
+
}
|
|
28
34
|
function _getRequireWildcardCache(nodeInterop) {
|
|
29
35
|
if (typeof WeakMap !== "function") return null;
|
|
30
36
|
var cacheBabelInterop = new WeakMap();
|
|
@@ -76,7 +82,7 @@ class RatingRibbon extends _react.Component {
|
|
|
76
82
|
variant: "transparent",
|
|
77
83
|
size: "small",
|
|
78
84
|
icon: /*#__PURE__*/ _react.createElement(_f36icons.StarIcon, {
|
|
79
|
-
|
|
85
|
+
color: this.isSelected(num) ? _f36tokens.default.colorPrimary : _f36tokens.default.gray600,
|
|
80
86
|
className: (0, _emotion.css)({
|
|
81
87
|
width: '22px',
|
|
82
88
|
height: '22px'
|
package/dist/esm/RatingRibbon.js
CHANGED
|
@@ -14,6 +14,7 @@ function _define_property(obj, key, value) {
|
|
|
14
14
|
import * as React from 'react';
|
|
15
15
|
import { IconButton } from '@contentful/f36-components';
|
|
16
16
|
import { StarIcon } from '@contentful/f36-icons';
|
|
17
|
+
import tokens from '@contentful/f36-tokens';
|
|
17
18
|
import { css } from 'emotion';
|
|
18
19
|
export class RatingRibbon extends React.Component {
|
|
19
20
|
render() {
|
|
@@ -25,7 +26,7 @@ export class RatingRibbon extends React.Component {
|
|
|
25
26
|
variant: "transparent",
|
|
26
27
|
size: "small",
|
|
27
28
|
icon: /*#__PURE__*/ React.createElement(StarIcon, {
|
|
28
|
-
|
|
29
|
+
color: this.isSelected(num) ? tokens.colorPrimary : tokens.gray600,
|
|
29
30
|
className: css({
|
|
30
31
|
width: '22px',
|
|
31
32
|
height: '22px'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-rating",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"tsc": "tsc -p ./ --noEmit"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@contentful/f36-components": "
|
|
40
|
-
"@contentful/f36-tokens": "
|
|
41
|
-
"@contentful/field-editor-shared": "^2.11.
|
|
39
|
+
"@contentful/f36-components": "5.1.1",
|
|
40
|
+
"@contentful/f36-tokens": "5.1.0",
|
|
41
|
+
"@contentful/field-editor-shared": "^2.11.2",
|
|
42
42
|
"emotion": "^10.0.17",
|
|
43
43
|
"lodash": "^4.17.15"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@contentful/field-editor-test-utils": "^1.6.
|
|
46
|
+
"@contentful/field-editor-test-utils": "^1.6.1",
|
|
47
47
|
"@lingui/core": "5.3.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://npm.pkg.github.com/"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "8ab6bd7a3ce2979634ab53673c6b122a6b1b5efb"
|
|
57
57
|
}
|