@contentful/field-editor-shared 2.13.7 → 2.13.8

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.
@@ -70,17 +70,19 @@ const getColor = ({ secondary, tertiary, isHover })=>{
70
70
  };
71
71
  const generateDynamicStyles = (status)=>{
72
72
  const wrapperClass = (0, _emotion.css)({
73
- '& svg[data-status="secondary"]': {
74
- fill: getColor({
75
- secondary: status?.secondary,
76
- isHover: false
77
- })
78
- },
79
- '&:hover svg[data-status="secondary"]': {
80
- fill: getColor({
81
- secondary: status?.secondary,
82
- isHover: true
83
- })
73
+ ...status?.secondary && {
74
+ '& svg[data-status="secondary"]': {
75
+ fill: getColor({
76
+ secondary: status?.secondary,
77
+ isHover: false
78
+ })
79
+ },
80
+ '&:hover svg[data-status="secondary"]': {
81
+ fill: getColor({
82
+ secondary: status?.secondary,
83
+ isHover: true
84
+ })
85
+ }
84
86
  },
85
87
  ...status?.tertiary && {
86
88
  '& svg[data-status="tertiary"]': {
@@ -14,17 +14,19 @@ const getColor = ({ secondary, tertiary, isHover })=>{
14
14
  };
15
15
  const generateDynamicStyles = (status)=>{
16
16
  const wrapperClass = css({
17
- '& svg[data-status="secondary"]': {
18
- fill: getColor({
19
- secondary: status?.secondary,
20
- isHover: false
21
- })
22
- },
23
- '&:hover svg[data-status="secondary"]': {
24
- fill: getColor({
25
- secondary: status?.secondary,
26
- isHover: true
27
- })
17
+ ...status?.secondary && {
18
+ '& svg[data-status="secondary"]': {
19
+ fill: getColor({
20
+ secondary: status?.secondary,
21
+ isHover: false
22
+ })
23
+ },
24
+ '&:hover svg[data-status="secondary"]': {
25
+ fill: getColor({
26
+ secondary: status?.secondary,
27
+ isHover: true
28
+ })
29
+ }
28
30
  },
29
31
  ...status?.tertiary && {
30
32
  '& svg[data-status="tertiary"]': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-shared",
3
- "version": "2.13.7",
3
+ "version": "2.13.8",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "@contentful/f36-components": "^5.4.1",
46
46
  "@contentful/f36-note": "^5.1.0",
47
47
  "@contentful/f36-tokens": "^5.1.0",
48
- "contentful-management": "^11.45.1",
48
+ "contentful-management": "^11.60.4",
49
49
  "emotion": "^10.0.17",
50
50
  "fast-deep-equal": "^3.1.3",
51
51
  "lodash": "^4.17.15"
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "registry": "https://npm.pkg.github.com/"
60
60
  },
61
- "gitHead": "2739099a4e68026bdafc1e3f8aa11cec9bc6f900"
61
+ "gitHead": "84767c885db51a13c76ee44481f81bdbda708d3e"
62
62
  }