@comicrelief/component-library 8.44.2 → 8.44.4
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/components/Atoms/Checkbox/Checkbox.test.js +10 -4
- package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -2
- package/dist/components/Atoms/Input/input.test.js +10 -2
- package/dist/components/Atoms/RadioButton/RadioButton.test.js +10 -4
- package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -1
- package/dist/components/Atoms/Text/Text.js +29 -29
- package/dist/components/Atoms/Text/Text.md +70 -69
- package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -9
- package/dist/components/Atoms/TextArea/TextArea.test.js +5 -1
- package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -7
- package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +10 -4
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -10
- package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +5 -2
- package/dist/components/Molecules/Descriptor/Descriptor.test.js +15 -13
- package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -24
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +5 -2
- package/dist/components/Molecules/Promo/Promo.test.js +4 -2
- package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +24 -6
- package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -1
- package/dist/components/Molecules/SearchInput/SearchInput.test.js +5 -1
- package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -18
- package/dist/components/Molecules/SingleMessage/SingleMessage.test.js +4 -2
- package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +39 -12
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +2 -1
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +15 -3
- package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -1
- package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +5 -2
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -35
- package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -8
- package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +20 -58
- package/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +3 -1
- package/dist/components/Organisms/Membership/Membership.test.js +25 -12
- package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -3
- package/package.json +1 -1
- package/src/components/Atoms/Checkbox/Checkbox.test.js +10 -4
- package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +5 -2
- package/src/components/Atoms/Input/input.test.js +10 -2
- package/src/components/Atoms/RadioButton/RadioButton.test.js +10 -4
- package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +5 -1
- package/src/components/Atoms/Text/Text.js +25 -19
- package/src/components/Atoms/Text/Text.md +70 -69
- package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +25 -9
- package/src/components/Atoms/TextArea/TextArea.test.js +5 -1
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +15 -7
- package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +10 -4
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +20 -10
- package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +5 -2
- package/src/components/Molecules/Descriptor/Descriptor.test.js +15 -13
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +10 -24
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +5 -2
- package/src/components/Molecules/Promo/Promo.test.js +2 -2
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +24 -6
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +5 -1
- package/src/components/Molecules/SearchInput/SearchInput.test.js +5 -1
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +45 -18
- package/src/components/Molecules/SingleMessage/SingleMessage.test.js +2 -2
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +39 -12
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.test.js +1 -1
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +15 -3
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +5 -1
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +5 -2
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +90 -35
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +10 -8
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +20 -58
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNavItem2025.js +1 -1
- package/src/components/Organisms/Membership/Membership.test.js +25 -12
- package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +15 -3
|
@@ -35,6 +35,11 @@ it('renders correctly', () => {
|
|
|
35
35
|
font-weight: bold;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
.c2 span {
|
|
39
|
+
font-size: inherit;
|
|
40
|
+
line-height: inherit;
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
.c0 {
|
|
39
44
|
display: -webkit-box;
|
|
40
45
|
display: -webkit-flex;
|
|
@@ -112,8 +117,6 @@ it('renders correctly', () => {
|
|
|
112
117
|
<span />
|
|
113
118
|
<span
|
|
114
119
|
className="c2"
|
|
115
|
-
color="inherit"
|
|
116
|
-
size="s"
|
|
117
120
|
>
|
|
118
121
|
Tennis
|
|
119
122
|
</span>
|
|
@@ -136,6 +139,11 @@ it('renders correctly', () => {
|
|
|
136
139
|
font-weight: bold;
|
|
137
140
|
}
|
|
138
141
|
|
|
142
|
+
.c2 span {
|
|
143
|
+
font-size: inherit;
|
|
144
|
+
line-height: inherit;
|
|
145
|
+
}
|
|
146
|
+
|
|
139
147
|
.c0 {
|
|
140
148
|
display: -webkit-box;
|
|
141
149
|
display: -webkit-flex;
|
|
@@ -213,8 +221,6 @@ it('renders correctly', () => {
|
|
|
213
221
|
<span />
|
|
214
222
|
<span
|
|
215
223
|
className="c2"
|
|
216
|
-
color="inherit"
|
|
217
|
-
size="s"
|
|
218
224
|
>
|
|
219
225
|
Handball
|
|
220
226
|
</span>
|
|
@@ -19,6 +19,11 @@ exports[`renders correctly 1`] = `
|
|
|
19
19
|
color: #E52630;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
.c0 span {
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
line-height: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
.c1 {
|
|
23
28
|
display: inline-block;
|
|
24
29
|
width: 100%;
|
|
@@ -43,8 +48,6 @@ exports[`renders correctly 1`] = `
|
|
|
43
48
|
|
|
44
49
|
<span
|
|
45
50
|
className="c0"
|
|
46
|
-
color="red"
|
|
47
|
-
size="error"
|
|
48
51
|
>
|
|
49
52
|
<span
|
|
50
53
|
className="c1"
|
|
@@ -27,6 +27,11 @@ it('renders correctly', () => {
|
|
|
27
27
|
line-height: 1.25rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.c1 span {
|
|
31
|
+
font-size: inherit;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.c0 {
|
|
31
36
|
width: 100%;
|
|
32
37
|
position: relative;
|
|
@@ -141,7 +146,6 @@ it('renders correctly', () => {
|
|
|
141
146
|
>
|
|
142
147
|
<span
|
|
143
148
|
className="c1 c2"
|
|
144
|
-
color="inherit"
|
|
145
149
|
dangerouslySetInnerHTML={
|
|
146
150
|
Object {
|
|
147
151
|
"__html": "Label",
|
|
@@ -194,6 +198,11 @@ it('renders with responsive max widths correctly', () => {
|
|
|
194
198
|
line-height: 1.25rem;
|
|
195
199
|
}
|
|
196
200
|
|
|
201
|
+
.c1 span {
|
|
202
|
+
font-size: inherit;
|
|
203
|
+
line-height: inherit;
|
|
204
|
+
}
|
|
205
|
+
|
|
197
206
|
.c0 {
|
|
198
207
|
width: 100%;
|
|
199
208
|
position: relative;
|
|
@@ -312,7 +321,6 @@ it('renders with responsive max widths correctly', () => {
|
|
|
312
321
|
>
|
|
313
322
|
<span
|
|
314
323
|
className="c1 c2"
|
|
315
|
-
color="inherit"
|
|
316
324
|
dangerouslySetInnerHTML={
|
|
317
325
|
Object {
|
|
318
326
|
"__html": "Responsive Width Input",
|
|
@@ -37,6 +37,11 @@ it('renders correctly', () => {
|
|
|
37
37
|
font-weight: bold;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.c2 span {
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
line-height: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
40
45
|
.c1 {
|
|
41
46
|
background-color: #FFFFFF;
|
|
42
47
|
z-index: 1;
|
|
@@ -123,8 +128,6 @@ it('renders correctly', () => {
|
|
|
123
128
|
<span />
|
|
124
129
|
<span
|
|
125
130
|
className="c2"
|
|
126
|
-
color="inherit"
|
|
127
|
-
size="s"
|
|
128
131
|
>
|
|
129
132
|
Male
|
|
130
133
|
</span>
|
|
@@ -147,6 +150,11 @@ it('renders correctly', () => {
|
|
|
147
150
|
font-weight: bold;
|
|
148
151
|
}
|
|
149
152
|
|
|
153
|
+
.c2 span {
|
|
154
|
+
font-size: inherit;
|
|
155
|
+
line-height: inherit;
|
|
156
|
+
}
|
|
157
|
+
|
|
150
158
|
.c1 {
|
|
151
159
|
background-color: #FFFFFF;
|
|
152
160
|
z-index: 1;
|
|
@@ -233,8 +241,6 @@ it('renders correctly', () => {
|
|
|
233
241
|
<span />
|
|
234
242
|
<span
|
|
235
243
|
className="c2"
|
|
236
|
-
color="inherit"
|
|
237
|
-
size="s"
|
|
238
244
|
>
|
|
239
245
|
Female
|
|
240
246
|
</span>
|
|
@@ -13,6 +13,11 @@ exports[`renders correctly 1`] = `
|
|
|
13
13
|
line-height: 1.25rem;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.c1 span {
|
|
17
|
+
font-size: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
.c0 {
|
|
17
22
|
width: 100%;
|
|
18
23
|
position: relative;
|
|
@@ -106,7 +111,6 @@ exports[`renders correctly 1`] = `
|
|
|
106
111
|
>
|
|
107
112
|
<span
|
|
108
113
|
className="c1 c2"
|
|
109
|
-
color="inherit"
|
|
110
114
|
dangerouslySetInnerHTML={
|
|
111
115
|
Object {
|
|
112
116
|
"__html": "Label",
|
|
@@ -19,56 +19,56 @@ const BaseText = exports.BaseText = _styledComponents.default.span.withConfig({
|
|
|
19
19
|
as,
|
|
20
20
|
theme
|
|
21
21
|
} = _ref;
|
|
22
|
-
return as !== undefined && (0, _styledComponents.css)(["", " &{", ";", ";", ";", ";", ";", ";color:", ";", ";", ";", ";}"], (0, _fontHelper.default)(theme, as), _ref2 => {
|
|
22
|
+
return as !== undefined && (0, _styledComponents.css)(["", " &{", ";", ";", ";", ";", ";", ";color:", ";", ";", ";", ";span{font-size:inherit;line-height:inherit;}}"], (0, _fontHelper.default)(theme, as), _ref2 => {
|
|
23
23
|
let {
|
|
24
|
-
size
|
|
24
|
+
$size
|
|
25
25
|
} = _ref2;
|
|
26
|
-
return size && `font-size: ${theme.fontSize(size)}`;
|
|
26
|
+
return $size && `font-size: ${theme.fontSize($size)}`;
|
|
27
27
|
}, _ref3 => {
|
|
28
28
|
let {
|
|
29
|
-
size
|
|
29
|
+
$size
|
|
30
30
|
} = _ref3;
|
|
31
|
-
return size && 'line-height: normal';
|
|
31
|
+
return $size && 'line-height: normal';
|
|
32
32
|
}, _ref4 => {
|
|
33
33
|
let {
|
|
34
|
-
family
|
|
34
|
+
$family
|
|
35
35
|
} = _ref4;
|
|
36
|
-
return family && `font-family: ${theme.fontFamilies(family)}`;
|
|
36
|
+
return $family && `font-family: ${theme.fontFamilies($family)}`;
|
|
37
37
|
}, _ref5 => {
|
|
38
38
|
let {
|
|
39
|
-
weight
|
|
39
|
+
$weight
|
|
40
40
|
} = _ref5;
|
|
41
|
-
return weight && `font-weight: ${weight}`;
|
|
41
|
+
return $weight && `font-weight: ${$weight}`;
|
|
42
42
|
}, _ref6 => {
|
|
43
43
|
let {
|
|
44
|
-
height
|
|
44
|
+
$height
|
|
45
45
|
} = _ref6;
|
|
46
|
-
return height && `line-height: ${height}`;
|
|
46
|
+
return $height && `line-height: ${$height}`;
|
|
47
47
|
}, _ref7 => {
|
|
48
48
|
let {
|
|
49
|
-
uppercase
|
|
49
|
+
$uppercase
|
|
50
50
|
} = _ref7;
|
|
51
|
-
return uppercase && 'text-transform: uppercase';
|
|
51
|
+
return $uppercase && 'text-transform: uppercase';
|
|
52
52
|
}, _ref8 => {
|
|
53
53
|
let {
|
|
54
|
-
color
|
|
54
|
+
$color
|
|
55
55
|
} = _ref8;
|
|
56
|
-
return color ? theme.color(color) : 'inherit';
|
|
56
|
+
return $color ? theme.color($color) : 'inherit';
|
|
57
57
|
}, _ref9 => {
|
|
58
58
|
let {
|
|
59
|
-
textAlign
|
|
59
|
+
$textAlign
|
|
60
60
|
} = _ref9;
|
|
61
|
-
return textAlign && `text-align: ${textAlign}`;
|
|
61
|
+
return $textAlign && `text-align: ${$textAlign}`;
|
|
62
62
|
}, _ref10 => {
|
|
63
63
|
let {
|
|
64
|
-
size
|
|
64
|
+
$size
|
|
65
65
|
} = _ref10;
|
|
66
|
-
return size === 'super' && (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.breakpoints2026('M'), theme.fontSize('big'), theme.fontSize('big'), theme.breakpoints2026('L'), theme.fontSize('super'), theme.fontSize('super'));
|
|
66
|
+
return $size === 'super' && (0, _styledComponents.css)(["font-size:", ";line-height:3rem;@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}@media ", "{font-size:", ";line-height:", ";margin-bottom:2rem;}"], theme.fontSize('xxl'), theme.breakpoints2026('M'), theme.fontSize('big'), theme.fontSize('big'), theme.breakpoints2026('L'), theme.fontSize('super'), theme.fontSize('super'));
|
|
67
67
|
}, _ref11 => {
|
|
68
68
|
let {
|
|
69
|
-
mobileColor
|
|
69
|
+
$mobileColor
|
|
70
70
|
} = _ref11;
|
|
71
|
-
return mobileColor && (0, _styledComponents.css)(["@media (max-width:", "px){color:", ";}"], _breakpoints.breakpointValues2026.L - 1, theme.color(mobileColor));
|
|
71
|
+
return $mobileColor && (0, _styledComponents.css)(["@media (max-width:", "px){color:", ";}"], _breakpoints.breakpointValues2026.L - 1, theme.color($mobileColor));
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
|
|
@@ -91,14 +91,14 @@ const Text = _ref12 => {
|
|
|
91
91
|
} = _ref12;
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement(BaseText, Object.assign({}, rest, {
|
|
93
93
|
as: tag,
|
|
94
|
-
color: color,
|
|
95
|
-
size: size,
|
|
96
|
-
uppercase: uppercase,
|
|
97
|
-
height: height,
|
|
98
|
-
weight: weight,
|
|
99
|
-
family: family,
|
|
100
|
-
mobileColor: mobileColor,
|
|
101
|
-
textAlign: textAlign
|
|
94
|
+
$color: color,
|
|
95
|
+
$size: size,
|
|
96
|
+
$uppercase: uppercase,
|
|
97
|
+
$height: height,
|
|
98
|
+
$weight: weight,
|
|
99
|
+
$family: family,
|
|
100
|
+
$mobileColor: mobileColor,
|
|
101
|
+
$textAlign: textAlign
|
|
102
102
|
}), children);
|
|
103
103
|
};
|
|
104
104
|
var _default = exports.default = Text;
|
|
@@ -8,32 +8,32 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
8
8
|
// To be phased out: tags to use the prescribed family always
|
|
9
9
|
family="Anton"
|
|
10
10
|
>
|
|
11
|
-
<
|
|
12
|
-
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
13
|
-
<b>family:</b> {fontConfig['h1'].family} -
|
|
14
|
-
<b>mobileColor:</b> blue
|
|
15
|
-
<br/>
|
|
16
|
-
<b>font size (S / M / L breakpoints):</b> {fontConfig['h1'].small.fontSize} / {fontConfig['h1'].medium.fontSize} / {fontConfig['h1'].large.fontSize}
|
|
17
|
-
<br/>
|
|
18
|
-
<b>line height (S / M / L breakpoints):</b> {fontConfig['h1'].small.lineHeight} / {fontConfig['h1'].medium.lineHeight} / {fontConfig['h1'].large.lineHeight}
|
|
19
|
-
|
|
20
|
-
</Text>
|
|
11
|
+
<span style={{ width: "55px"}}>H1 </span>
|
|
21
12
|
</Text>
|
|
22
|
-
|
|
13
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
14
|
+
<b>family:</b> {fontConfig['h1'].family} -
|
|
15
|
+
<b>mobileColor:</b> blue
|
|
16
|
+
<br/>
|
|
17
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h1'].small.fontSize} / {fontConfig['h1'].medium.fontSize} / {fontConfig['h1'].large.fontSize}
|
|
18
|
+
<br/>
|
|
19
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h1'].small.lineHeight} / {fontConfig['h1'].medium.lineHeight} / {fontConfig['h1'].large.lineHeight}
|
|
20
|
+
</Text>
|
|
21
|
+
|
|
22
|
+
|
|
23
23
|
<Text
|
|
24
24
|
tag="h2"
|
|
25
25
|
mobileColor="green"
|
|
26
26
|
family="Anton"
|
|
27
27
|
>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
<span style={{ width: "55px"}}>H2 </span>
|
|
29
|
+
</Text>
|
|
30
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
31
|
+
<b>family:</b> {fontConfig['h2'].family} -
|
|
32
|
+
<b>mobileColor:</b> green
|
|
33
|
+
<br/>
|
|
34
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h2'].small.fontSize} / {fontConfig['h2'].medium.fontSize} / {fontConfig['h2'].large.fontSize}
|
|
35
|
+
<br/>
|
|
36
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h2'].small.lineHeight} / {fontConfig['h2'].medium.lineHeight} / {fontConfig['h2'].large.lineHeight}
|
|
37
37
|
</Text>
|
|
38
38
|
|
|
39
39
|
<Text
|
|
@@ -41,15 +41,15 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
41
41
|
mobileColor="red"
|
|
42
42
|
family="Montserrat"
|
|
43
43
|
>
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
<span style={{ width: "55px"}}>H3 </span>
|
|
45
|
+
</Text>
|
|
46
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
47
|
+
<b>family:</b> {fontConfig['h3'].family} -
|
|
48
|
+
<b>mobileColor:</b> red
|
|
49
|
+
<br/>
|
|
50
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h3'].small.fontSize} / {fontConfig['h3'].medium.fontSize} / {fontConfig['h3'].large.fontSize}
|
|
51
|
+
<br/>
|
|
52
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h3'].small.lineHeight} / {fontConfig['h3'].medium.lineHeight} / {fontConfig['h3'].large.lineHeight}
|
|
53
53
|
</Text>
|
|
54
54
|
|
|
55
55
|
<Text
|
|
@@ -58,61 +58,62 @@ import fontConfig from '../../../theme/crTheme/fontConfig';
|
|
|
58
58
|
weight="normal"
|
|
59
59
|
// To be phased out: text to always be rendered as typed
|
|
60
60
|
uppercase>
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
61
|
+
<span style={{ width: "55px"}}>H4 </span>
|
|
62
|
+
</Text>
|
|
63
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
64
|
+
<b>family:</b> {fontConfig['span'].family} -
|
|
65
|
+
<br/>
|
|
66
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h4'].small.fontSize} / {fontConfig['h4'].medium.fontSize} / {fontConfig['h4'].large.fontSize}
|
|
67
|
+
<br/>
|
|
68
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h4'].small.lineHeight} / {fontConfig['h4'].medium.lineHeight} / {fontConfig['h4'].large.lineHeight}
|
|
69
69
|
</Text>
|
|
70
70
|
|
|
71
|
-
<Text tag="p" size="m">
|
|
72
|
-
<span style={{ width: "55px", display: "inline-block" }}>Body</span>
|
|
73
|
-
<Text style={{ textTransform: "none" }} tag="span">
|
|
74
|
-
<b>family:</b> {fontConfig['p'].family} -
|
|
75
|
-
<br/>
|
|
76
|
-
<b>font size (S / M / L breakpoints):</b> {fontConfig['p'].small.fontSize} / {fontConfig['p'].medium.fontSize} / {fontConfig['p'].large.fontSize}
|
|
77
|
-
<br/>
|
|
78
|
-
<b>line height (S / M / L breakpoints):</b> {fontConfig['p'].small.lineHeight} / {fontConfig['p'].medium.lineHeight} / {fontConfig['p'].large.lineHeight}
|
|
79
|
-
</Text>
|
|
80
|
-
</Text>
|
|
81
71
|
|
|
82
|
-
<Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
|
|
83
|
-
Tags to be phased out:
|
|
84
|
-
</Text>
|
|
85
72
|
|
|
86
|
-
|
|
73
|
+
<Text tag="p" size="m" style={{ marginTop: "2rem"}} height="100px" weight="500">
|
|
74
|
+
<span style={{ width: "55px"}}>P (body)</span>
|
|
75
|
+
</Text>
|
|
76
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
77
|
+
<b>family:</b> {fontConfig['p'].family} -
|
|
78
|
+
<br/>
|
|
79
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['p'].small.fontSize} / {fontConfig['p'].medium.fontSize} / {fontConfig['p'].large.fontSize}
|
|
80
|
+
<br/>
|
|
81
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['p'].small.lineHeight} / {fontConfig['p'].medium.lineHeight} / {fontConfig['p'].large.lineHeight}
|
|
82
|
+
</Text>
|
|
83
|
+
|
|
84
|
+
<Text tag="p" style={{ marginTop: "55px", fontStyle: "italic"}}>
|
|
85
|
+
Tags to be phased out:
|
|
86
|
+
</Text>
|
|
87
|
+
|
|
88
|
+
<Text
|
|
87
89
|
tag="h5"
|
|
88
90
|
family="Anton"
|
|
89
91
|
uppercase
|
|
90
92
|
// To be phased-out
|
|
91
93
|
weight="normal">
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
94
|
+
<span style={{ width: "55px"}}>H5 </span>
|
|
95
|
+
</Text>
|
|
96
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
97
|
+
<b>family:</b> {fontConfig['h5'].family} -
|
|
98
|
+
<br/>
|
|
99
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h5'].small.fontSize} / {fontConfig['h5'].medium.fontSize} / {fontConfig['h5'].large.fontSize}
|
|
100
|
+
<br/>
|
|
101
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h5'].small.lineHeight} / {fontConfig['h5'].medium.lineHeight} / {fontConfig['h5'].large.lineHeight}
|
|
100
102
|
</Text>
|
|
101
|
-
|
|
102
103
|
|
|
103
104
|
<Text tag="h6"
|
|
104
105
|
family="Anton"
|
|
105
106
|
uppercase
|
|
106
107
|
weight="normal">
|
|
107
|
-
<
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
<span style={{ width: "55px"}}>H6</span>
|
|
109
|
+
</Text>
|
|
110
|
+
<Text style={{ textTransform: "none" }} tag="span" size="s">
|
|
111
|
+
<b>family:</b> {fontConfig['h6'].family}
|
|
112
|
+
<br/>
|
|
113
|
+
<b>font size (S / M / L breakpoints):</b> {fontConfig['h6'].small.fontSize} / {fontConfig['h6'].medium.fontSize} / {fontConfig['h6'].large.fontSize}
|
|
114
|
+
<br/>
|
|
115
|
+
<b>line height (S / M / L breakpoints):</b> {fontConfig['h6'].small.lineHeight} / {fontConfig['h6'].medium.lineHeight} / {fontConfig['h6'].large.lineHeight}
|
|
115
116
|
</Text>
|
|
116
|
-
|
|
117
|
+
|
|
117
118
|
</div>
|
|
118
119
|
```
|
|
@@ -17,6 +17,11 @@ exports[`renders heavy heading correctly 1`] = `
|
|
|
17
17
|
font-weight: 1000;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.c0 span {
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
line-height: inherit;
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
@media (min-width:740px) {
|
|
21
26
|
.c0 {
|
|
22
27
|
font-size: 1.25rem;
|
|
@@ -33,7 +38,6 @@ exports[`renders heavy heading correctly 1`] = `
|
|
|
33
38
|
|
|
34
39
|
<h3
|
|
35
40
|
className="c0"
|
|
36
|
-
color="inherit"
|
|
37
41
|
>
|
|
38
42
|
Heading 3 heavy
|
|
39
43
|
</h3>
|
|
@@ -56,6 +60,11 @@ exports[`renders high heading correctly 1`] = `
|
|
|
56
60
|
line-height: 5;
|
|
57
61
|
}
|
|
58
62
|
|
|
63
|
+
.c0 span {
|
|
64
|
+
font-size: inherit;
|
|
65
|
+
line-height: inherit;
|
|
66
|
+
}
|
|
67
|
+
|
|
59
68
|
@media (min-width:740px) {
|
|
60
69
|
.c0 {
|
|
61
70
|
font-size: 1.25rem;
|
|
@@ -72,8 +81,6 @@ exports[`renders high heading correctly 1`] = `
|
|
|
72
81
|
|
|
73
82
|
<h3
|
|
74
83
|
className="c0"
|
|
75
|
-
color="inherit"
|
|
76
|
-
height="5"
|
|
77
84
|
>
|
|
78
85
|
Heading 3 high
|
|
79
86
|
</h3>
|
|
@@ -97,6 +104,11 @@ exports[`renders large heading correctly 1`] = `
|
|
|
97
104
|
line-height: normal;
|
|
98
105
|
}
|
|
99
106
|
|
|
107
|
+
.c0 span {
|
|
108
|
+
font-size: inherit;
|
|
109
|
+
line-height: inherit;
|
|
110
|
+
}
|
|
111
|
+
|
|
100
112
|
@media (min-width:740px) {
|
|
101
113
|
.c0 {
|
|
102
114
|
font-size: 1.25rem;
|
|
@@ -113,8 +125,6 @@ exports[`renders large heading correctly 1`] = `
|
|
|
113
125
|
|
|
114
126
|
<h3
|
|
115
127
|
className="c0"
|
|
116
|
-
color="inherit"
|
|
117
|
-
size="l"
|
|
118
128
|
>
|
|
119
129
|
Heading 3 large
|
|
120
130
|
</h3>
|
|
@@ -139,6 +149,11 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
|
|
|
139
149
|
font-family: 'Anton',Impact,sans-serif;
|
|
140
150
|
}
|
|
141
151
|
|
|
152
|
+
.c0 span {
|
|
153
|
+
font-size: inherit;
|
|
154
|
+
line-height: inherit;
|
|
155
|
+
}
|
|
156
|
+
|
|
142
157
|
@media (min-width:740px) {
|
|
143
158
|
.c0 {
|
|
144
159
|
font-size: 1rem;
|
|
@@ -155,8 +170,6 @@ exports[`renders xl paragraph with Anton font correctly 1`] = `
|
|
|
155
170
|
|
|
156
171
|
<p
|
|
157
172
|
className="c0"
|
|
158
|
-
color="inherit"
|
|
159
|
-
size="xl"
|
|
160
173
|
>
|
|
161
174
|
My paragraph xl and font Anton
|
|
162
175
|
</p>
|
|
@@ -181,6 +194,11 @@ exports[`renders xl yellow paragraph correctly 1`] = `
|
|
|
181
194
|
color: #FFE400;
|
|
182
195
|
}
|
|
183
196
|
|
|
197
|
+
.c0 span {
|
|
198
|
+
font-size: inherit;
|
|
199
|
+
line-height: inherit;
|
|
200
|
+
}
|
|
201
|
+
|
|
184
202
|
@media (min-width:740px) {
|
|
185
203
|
.c0 {
|
|
186
204
|
font-size: 1rem;
|
|
@@ -197,8 +215,6 @@ exports[`renders xl yellow paragraph correctly 1`] = `
|
|
|
197
215
|
|
|
198
216
|
<p
|
|
199
217
|
className="c0"
|
|
200
|
-
color="yellow"
|
|
201
|
-
size="xl"
|
|
202
218
|
>
|
|
203
219
|
My paragraph xl and yellow
|
|
204
220
|
</p>
|
|
@@ -27,6 +27,11 @@ it('renders correctly', () => {
|
|
|
27
27
|
line-height: 1.25rem;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
.c1 span {
|
|
31
|
+
font-size: inherit;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
30
35
|
.c0 {
|
|
31
36
|
width: 100%;
|
|
32
37
|
position: relative;
|
|
@@ -126,7 +131,6 @@ it('renders correctly', () => {
|
|
|
126
131
|
>
|
|
127
132
|
<span
|
|
128
133
|
className="c1 c2"
|
|
129
|
-
color="inherit"
|
|
130
134
|
dangerouslySetInnerHTML={
|
|
131
135
|
Object {
|
|
132
136
|
"__html": "Label",
|
package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap
CHANGED
|
@@ -13,6 +13,11 @@ exports[`renders correctly with no value and no options 1`] = `
|
|
|
13
13
|
line-height: 1.25rem;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.c2 span {
|
|
17
|
+
font-size: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
.c1 {
|
|
17
22
|
width: 100%;
|
|
18
23
|
position: relative;
|
|
@@ -135,7 +140,6 @@ exports[`renders correctly with no value and no options 1`] = `
|
|
|
135
140
|
>
|
|
136
141
|
<span
|
|
137
142
|
className="c2 c3"
|
|
138
|
-
color="inherit"
|
|
139
143
|
dangerouslySetInnerHTML={
|
|
140
144
|
Object {
|
|
141
145
|
"__html": "Search for bikes",
|
|
@@ -182,6 +186,11 @@ exports[`renders correctly with value and no options 1`] = `
|
|
|
182
186
|
line-height: 1.25rem;
|
|
183
187
|
}
|
|
184
188
|
|
|
189
|
+
.c2 span {
|
|
190
|
+
font-size: inherit;
|
|
191
|
+
line-height: inherit;
|
|
192
|
+
}
|
|
193
|
+
|
|
185
194
|
.c1 {
|
|
186
195
|
width: 100%;
|
|
187
196
|
position: relative;
|
|
@@ -304,7 +313,6 @@ exports[`renders correctly with value and no options 1`] = `
|
|
|
304
313
|
>
|
|
305
314
|
<span
|
|
306
315
|
className="c2 c3"
|
|
307
|
-
color="inherit"
|
|
308
316
|
dangerouslySetInnerHTML={
|
|
309
317
|
Object {
|
|
310
318
|
"__html": "Search for bikes",
|
|
@@ -351,6 +359,11 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
351
359
|
line-height: 1.25rem;
|
|
352
360
|
}
|
|
353
361
|
|
|
362
|
+
.c2 span {
|
|
363
|
+
font-size: inherit;
|
|
364
|
+
line-height: inherit;
|
|
365
|
+
}
|
|
366
|
+
|
|
354
367
|
.c1 {
|
|
355
368
|
width: 100%;
|
|
356
369
|
position: relative;
|
|
@@ -512,7 +525,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
512
525
|
>
|
|
513
526
|
<span
|
|
514
527
|
className="c2 c3"
|
|
515
|
-
color="inherit"
|
|
516
528
|
dangerouslySetInnerHTML={
|
|
517
529
|
Object {
|
|
518
530
|
"__html": "Search for bikes",
|
|
@@ -562,7 +574,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
562
574
|
>
|
|
563
575
|
<span
|
|
564
576
|
className="c2"
|
|
565
|
-
color="inherit"
|
|
566
577
|
>
|
|
567
578
|
Canyon
|
|
568
579
|
</span>
|
|
@@ -578,7 +589,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
578
589
|
>
|
|
579
590
|
<span
|
|
580
591
|
className="c2"
|
|
581
|
-
color="inherit"
|
|
582
592
|
>
|
|
583
593
|
Cannondale
|
|
584
594
|
</span>
|
|
@@ -594,7 +604,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
594
604
|
>
|
|
595
605
|
<span
|
|
596
606
|
className="c2"
|
|
597
|
-
color="inherit"
|
|
598
607
|
>
|
|
599
608
|
Condor
|
|
600
609
|
</span>
|
|
@@ -610,7 +619,6 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
610
619
|
>
|
|
611
620
|
<span
|
|
612
621
|
className="c2"
|
|
613
|
-
color="inherit"
|
|
614
622
|
>
|
|
615
623
|
Cube
|
|
616
624
|
</span>
|