@comicrelief/component-library 8.86.4 → 8.86.5
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/index.cjs.js
CHANGED
|
@@ -651,8 +651,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
651
651
|
display: block;
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
`}
|
|
655
654
|
};
|
|
655
|
+
`}
|
|
656
656
|
|
|
657
657
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
658
658
|
// When we've moved fully to the new design,
|
|
@@ -668,17 +668,14 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
668
668
|
width: 100%;
|
|
669
669
|
height: 100%;
|
|
670
670
|
|
|
671
|
+
${Q1(!0,1.15,2)}
|
|
672
|
+
|
|
671
673
|
&:hover,
|
|
672
674
|
&:focus {
|
|
673
675
|
background-color: ${t.color("grey_4_hover")};
|
|
674
676
|
opacity: 1;
|
|
675
677
|
}
|
|
676
678
|
`}
|
|
677
|
-
|
|
678
|
-
// springScaleAnimation must stay a sibling — nesting it inside the $newStyle css block
|
|
679
|
-
// breaks flattening so rules, it bugs out and compiles as global :hover, :focus
|
|
680
|
-
// when you try to combine them
|
|
681
|
-
${({$newStyle:e})=>e&&Q1(!0,1.15,2)}
|
|
682
679
|
`,aL=g(fe)`
|
|
683
680
|
width: auto;
|
|
684
681
|
color: ${({theme:e})=>e.color("black")};
|
package/dist/index.es.js
CHANGED
|
@@ -7066,8 +7066,8 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7066
7066
|
display: block;
|
|
7067
7067
|
}
|
|
7068
7068
|
}
|
|
7069
|
-
`}
|
|
7070
7069
|
};
|
|
7070
|
+
`}
|
|
7071
7071
|
|
|
7072
7072
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
7073
7073
|
// When we've moved fully to the new design,
|
|
@@ -7083,17 +7083,14 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7083
7083
|
width: 100%;
|
|
7084
7084
|
height: 100%;
|
|
7085
7085
|
|
|
7086
|
+
${g4(!0, 1.15, 2)}
|
|
7087
|
+
|
|
7086
7088
|
&:hover,
|
|
7087
7089
|
&:focus {
|
|
7088
7090
|
background-color: ${t.color("grey_4_hover")};
|
|
7089
7091
|
opacity: 1;
|
|
7090
7092
|
}
|
|
7091
7093
|
`}
|
|
7092
|
-
|
|
7093
|
-
// springScaleAnimation must stay a sibling — nesting it inside the $newStyle css block
|
|
7094
|
-
// breaks flattening so rules, it bugs out and compiles as global :hover, :focus
|
|
7095
|
-
// when you try to combine them
|
|
7096
|
-
${({ $newStyle: e }) => e && g4(!0, 1.15, 2)}
|
|
7097
7094
|
`, kE = b(he)`
|
|
7098
7095
|
width: auto;
|
|
7099
7096
|
color: ${({ theme: e }) => e.color("black")};
|
package/package.json
CHANGED
|
@@ -63,8 +63,8 @@ const StyledLink = styled.a`
|
|
|
63
63
|
display: block;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
`}
|
|
67
66
|
};
|
|
67
|
+
`}
|
|
68
68
|
|
|
69
69
|
// New style is rounded square buttons with dark grey background, and animation.
|
|
70
70
|
// When we've moved fully to the new design,
|
|
@@ -80,17 +80,14 @@ const StyledLink = styled.a`
|
|
|
80
80
|
width: 100%;
|
|
81
81
|
height: 100%;
|
|
82
82
|
|
|
83
|
+
${springScaleAnimation(true, 1.15, 2)}
|
|
84
|
+
|
|
83
85
|
&:hover,
|
|
84
86
|
&:focus {
|
|
85
87
|
background-color: ${theme.color('grey_4_hover')};
|
|
86
88
|
opacity: 1;
|
|
87
89
|
}
|
|
88
90
|
`}
|
|
89
|
-
|
|
90
|
-
// springScaleAnimation must stay a sibling — nesting it inside the $newStyle css block
|
|
91
|
-
// breaks flattening so rules, it bugs out and compiles as global :hover, :focus
|
|
92
|
-
// when you try to combine them
|
|
93
|
-
${({ $newStyle }) => $newStyle && springScaleAnimation(true, 1.15, 2)}
|
|
94
91
|
`;
|
|
95
92
|
|
|
96
93
|
const RevealText = styled(Text)`
|
|
@@ -139,7 +136,7 @@ const Icon = ({
|
|
|
139
136
|
$newStyle={newStyle}
|
|
140
137
|
>
|
|
141
138
|
<StyledImage src={icon} alt={brand} $invertColor={invertColor} />
|
|
142
|
-
{
|
|
139
|
+
{isHeader && (
|
|
143
140
|
<RevealText>{title}</RevealText>
|
|
144
141
|
)}
|
|
145
142
|
|
|
@@ -89,13 +89,13 @@ exports[`does not render copyright text when not supplied 1`] = `
|
|
|
89
89
|
|
|
90
90
|
.c29:hover,
|
|
91
91
|
.c29:focus {
|
|
92
|
-
|
|
93
|
-
opacity: 1;
|
|
92
|
+
transform: scale(1.15);
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
.c29:hover,
|
|
97
96
|
.c29:focus {
|
|
98
|
-
|
|
97
|
+
background-color: #3A3A3A;
|
|
98
|
+
opacity: 1;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.c31 {
|
|
@@ -1454,13 +1454,13 @@ exports[`renders correctly 1`] = `
|
|
|
1454
1454
|
|
|
1455
1455
|
.c29:hover,
|
|
1456
1456
|
.c29:focus {
|
|
1457
|
-
|
|
1458
|
-
opacity: 1;
|
|
1457
|
+
transform: scale(1.15);
|
|
1459
1458
|
}
|
|
1460
1459
|
|
|
1461
1460
|
.c29:hover,
|
|
1462
1461
|
.c29:focus {
|
|
1463
|
-
|
|
1462
|
+
background-color: #3A3A3A;
|
|
1463
|
+
opacity: 1;
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
.c31 {
|