@comicrelief/component-library 8.86.0 → 8.86.1
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
|
@@ -610,7 +610,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
610
610
|
}
|
|
611
611
|
|
|
612
612
|
// 'isHeader' is only set and passed in Header2025, so the pre-existing Header isn't affected:
|
|
613
|
-
${({$isHeader:e})=>e&&g.css`
|
|
613
|
+
${({$isHeader:e,theme:t})=>e&&g.css`
|
|
614
614
|
overflow: hidden;
|
|
615
615
|
padding-right: 0px;
|
|
616
616
|
transition: padding-right ${iL}s cubic-bezier(0.5, 1.5, 0.5, 0.75);
|
|
@@ -621,7 +621,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
// No hover state for mobile, so targetting Medium+:
|
|
624
|
-
@media ${
|
|
624
|
+
@media ${t.breakpoints2026("M")} {
|
|
625
625
|
&:hover,
|
|
626
626
|
&:focus {
|
|
627
627
|
img {
|
|
@@ -630,7 +630,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
@media ${
|
|
633
|
+
@media ${t.allBreakpoints("NavWide")} {
|
|
634
634
|
&:hover,
|
|
635
635
|
&:focus {
|
|
636
636
|
// Default
|
|
@@ -668,14 +668,17 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
668
668
|
width: 100%;
|
|
669
669
|
height: 100%;
|
|
670
670
|
|
|
671
|
-
${Q1(!0,1.15,2)}
|
|
672
|
-
|
|
673
671
|
&:hover,
|
|
674
672
|
&:focus {
|
|
675
673
|
background-color: ${t.color("grey_4_hover")};
|
|
676
674
|
opacity: 1;
|
|
677
675
|
}
|
|
678
676
|
`}
|
|
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)}
|
|
679
682
|
`,aL=g(fe)`
|
|
680
683
|
width: auto;
|
|
681
684
|
color: ${({theme:e})=>e.color("black")};
|
package/dist/index.es.js
CHANGED
|
@@ -7025,7 +7025,7 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7025
7025
|
}
|
|
7026
7026
|
|
|
7027
7027
|
// 'isHeader' is only set and passed in Header2025, so the pre-existing Header isn't affected:
|
|
7028
|
-
${({ $isHeader: e }) => e && X`
|
|
7028
|
+
${({ $isHeader: e, theme: t }) => e && X`
|
|
7029
7029
|
overflow: hidden;
|
|
7030
7030
|
padding-right: 0px;
|
|
7031
7031
|
transition: padding-right ${$E}s cubic-bezier(0.5, 1.5, 0.5, 0.75);
|
|
@@ -7036,7 +7036,7 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7036
7036
|
}
|
|
7037
7037
|
|
|
7038
7038
|
// No hover state for mobile, so targetting Medium+:
|
|
7039
|
-
@media ${
|
|
7039
|
+
@media ${t.breakpoints2026("M")} {
|
|
7040
7040
|
&:hover,
|
|
7041
7041
|
&:focus {
|
|
7042
7042
|
img {
|
|
@@ -7045,7 +7045,7 @@ const xE = /* @__PURE__ */ Go(wr), CE = 55, $E = 0.35, _E = b.a`
|
|
|
7045
7045
|
}
|
|
7046
7046
|
}
|
|
7047
7047
|
|
|
7048
|
-
@media ${
|
|
7048
|
+
@media ${t.allBreakpoints("NavWide")} {
|
|
7049
7049
|
&:hover,
|
|
7050
7050
|
&:focus {
|
|
7051
7051
|
// Default
|
|
@@ -7083,14 +7083,17 @@ 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
|
-
|
|
7088
7086
|
&:hover,
|
|
7089
7087
|
&:focus {
|
|
7090
7088
|
background-color: ${t.color("grey_4_hover")};
|
|
7091
7089
|
opacity: 1;
|
|
7092
7090
|
}
|
|
7093
7091
|
`}
|
|
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)}
|
|
7094
7097
|
`, kE = b(he)`
|
|
7095
7098
|
width: auto;
|
|
7096
7099
|
color: ${({ theme: e }) => e.color("black")};
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ const StyledLink = styled.a`
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// 'isHeader' is only set and passed in Header2025, so the pre-existing Header isn't affected:
|
|
25
|
-
${({ $isHeader }) => $isHeader && css`
|
|
25
|
+
${({ $isHeader, theme }) => $isHeader && css`
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
padding-right: 0px;
|
|
28
28
|
transition: padding-right ${RevealTextSpeed}s cubic-bezier(0.5, 1.5, 0.5, 0.75);
|
|
@@ -33,7 +33,7 @@ const StyledLink = styled.a`
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
// No hover state for mobile, so targetting Medium+:
|
|
36
|
-
@media ${
|
|
36
|
+
@media ${theme.breakpoints2026('M')} {
|
|
37
37
|
&:hover,
|
|
38
38
|
&:focus {
|
|
39
39
|
img {
|
|
@@ -42,7 +42,7 @@ const StyledLink = styled.a`
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
@media ${
|
|
45
|
+
@media ${theme.allBreakpoints('NavWide')} {
|
|
46
46
|
&:hover,
|
|
47
47
|
&:focus {
|
|
48
48
|
// Default
|
|
@@ -80,14 +80,17 @@ const StyledLink = styled.a`
|
|
|
80
80
|
width: 100%;
|
|
81
81
|
height: 100%;
|
|
82
82
|
|
|
83
|
-
${springScaleAnimation(true, 1.15, 2)}
|
|
84
|
-
|
|
85
83
|
&:hover,
|
|
86
84
|
&:focus {
|
|
87
85
|
background-color: ${theme.color('grey_4_hover')};
|
|
88
86
|
opacity: 1;
|
|
89
87
|
}
|
|
90
88
|
`}
|
|
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)}
|
|
91
94
|
`;
|
|
92
95
|
|
|
93
96
|
const RevealText = styled(Text)`
|
|
@@ -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
|
-
|
|
92
|
+
background-color: #3A3A3A;
|
|
93
|
+
opacity: 1;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
.c29:hover,
|
|
96
97
|
.c29:focus {
|
|
97
|
-
|
|
98
|
-
opacity: 1;
|
|
98
|
+
transform: scale(1.15);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.c31 {
|
|
@@ -1429,13 +1429,13 @@ exports[`renders correctly 1`] = `
|
|
|
1429
1429
|
|
|
1430
1430
|
.c29:hover,
|
|
1431
1431
|
.c29:focus {
|
|
1432
|
-
|
|
1432
|
+
background-color: #3A3A3A;
|
|
1433
|
+
opacity: 1;
|
|
1433
1434
|
}
|
|
1434
1435
|
|
|
1435
1436
|
.c29:hover,
|
|
1436
1437
|
.c29:focus {
|
|
1437
|
-
|
|
1438
|
-
opacity: 1;
|
|
1438
|
+
transform: scale(1.15);
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
1441
|
.c31 {
|