@times-components/ts-components 1.64.0 → 1.64.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/CHANGELOG.md +22 -0
- package/dist/components/article-flag/styles.js +1 -3
- package/dist/components/newsletter-puff/newsletter-puff-button/styles.js +1 -1
- package/dist/components/recommended-articles/RecommendedFetch.js +2 -2
- package/dist/helpers/text-crop/fonts.js +5 -13
- package/package.json +13 -13
- package/rnw.js +1 -1
- package/src/components/article-flag/__tests__/__snapshots__/LiveArticleFlag.test.tsx.snap +3 -3
- package/src/components/article-flag/styles.ts +0 -2
- package/src/components/carousel/__tests__/__snapshots__/GalleryCarousel.test.tsx.snap +3 -3
- package/src/components/in-article-big-numbers/__tests__/__snapshots__/BigNumbers.test.tsx.snap +6 -6
- package/src/components/in-article-info-card/__tests__/__snapshots__/InfoCard.test.tsx.snap +4 -4
- package/src/components/in-article-info-card-bulletpoints/__tests__/__snapshots__/InfoCardBulletPoints.test.tsx.snap +4 -4
- package/src/components/in-article-puff/__tests__/__snapshots__/InArticlePuff.test.tsx.snap +4 -4
- package/src/components/in-article-related-articles/__tests__/__snapshots__/RelatedArticle.test.tsx.snap +2 -2
- package/src/components/in-article-related-articles/__tests__/__snapshots__/SingleRelatedArticle.test.tsx.snap +2 -2
- package/src/components/in-article-timelines/__tests__/__snapshots__/Timelines.test.tsx.snap +27 -27
- package/src/components/inline-dialog/__tests__/__snapshots__/InlineDialog.test.tsx.snap +1 -1
- package/src/components/inline-message/__tests__/__snapshots__/InlineMessage.test.tsx.snap +2 -2
- package/src/components/latest-from-section/__tests__/__snapshots__/LatestFromSection.test.tsx.snap +9 -9
- package/src/components/newsletter-puff/__tests__/__snapshots__/InlineNewsletterPuff.test.tsx.snap +3 -3
- package/src/components/newsletter-puff/newsletter-puff-button/styles.ts +1 -1
- package/src/components/newsletter-puff/preview-newsletter-puff/__tests__/__snapshots__/PreviewNewsletterPuff.test.tsx.snap +1 -1
- package/src/components/olympics/__tests__/__snapshots__/OlympicsMedalTable.test.tsx.snap +20 -20
- package/src/components/olympics/__tests__/__snapshots__/OlympicsSchedule.test.tsx.snap +28 -28
- package/src/components/opta/football/fixtures/__tests__/__snapshots__/OptaFootballFixtures.test.tsx.snap +2 -2
- package/src/components/opta/football/match-stats/__tests__/__snapshots__/OptaFootballMatchStats.test.tsx.snap +2 -2
- package/src/components/opta/football/standings/__tests__/__snapshots__/OptaFootballStandings.test.tsx.snap +2 -2
- package/src/components/opta/football/summary/__tests__/__snapshots__/OptaFootballSummary.test.tsx.snap +2 -2
- package/src/components/opta/rugby/fixtures/__tests__/__snapshots__/OptaRugbyFixtures.test.tsx.snap +2 -2
- package/src/components/opta/rugby/match-stats/__tests__/__snapshots__/OptaRugbyMatchStats.test.tsx.snap +2 -2
- package/src/components/opta/rugby/standings/__tests__/__snapshots__/OptaRugbyStandings.test.tsx.snap +2 -2
- package/src/components/opta/rugby/summary/__tests__/__snapshots__/OptaRugbySummary.test.tsx.snap +2 -2
- package/src/components/recommended-articles/RecommendedFetch.tsx +1 -1
- package/src/components/related-article-slice/__tests__/__snapshots__/RelatedArticleSlice.test.tsx.snap +6 -6
- package/src/components/save-star/__tests__/__snapshots__/SaveStar.test.tsx.snap +3 -3
- package/src/components/updated-timestamp/__tests__/__snapshots__/UpdatedTimestamp.test.tsx.snap +1 -1
- package/src/helpers/text-crop/__tests__/__snapshots__/TextCrop.test.tsx.snap +4 -4
- package/src/helpers/text-crop/fonts.ts +4 -13
|
@@ -10,7 +10,7 @@ export const fonts = {
|
|
|
10
10
|
headlineRegular: 'TimesModern-Regular',
|
|
11
11
|
stMagazine: 'TimesModern-Bold',
|
|
12
12
|
styleMagazine: 'TimesModern-Bold',
|
|
13
|
-
supporting: '
|
|
13
|
+
supporting: 'GillSansMTStd-Medium'
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export type Font = keyof typeof fonts;
|
|
@@ -59,16 +59,8 @@ const TimesDigitalW04RegularSC: FontTextCropSettings = {
|
|
|
59
59
|
cropLineHeight: 1.2
|
|
60
60
|
};
|
|
61
61
|
|
|
62
|
-
const
|
|
63
|
-
font: '
|
|
64
|
-
topCrop: 6,
|
|
65
|
-
bottomCrop: 26,
|
|
66
|
-
cropFontSize: 64,
|
|
67
|
-
cropLineHeight: 1.2
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const robotoMedium: FontTextCropSettings = {
|
|
71
|
-
font: 'Roboto-Medium',
|
|
62
|
+
const GillSansMTStdMedium: FontTextCropSettings = {
|
|
63
|
+
font: 'GillSansMTStd-Medium',
|
|
72
64
|
topCrop: 6,
|
|
73
65
|
bottomCrop: 26,
|
|
74
66
|
cropFontSize: 64,
|
|
@@ -82,8 +74,7 @@ const fontCropSettings: { [font: string]: FontTextCropSettings } = keyBy(
|
|
|
82
74
|
TimesDigitalW04,
|
|
83
75
|
TimesDigitalW04Regular,
|
|
84
76
|
TimesDigitalW04RegularSC,
|
|
85
|
-
|
|
86
|
-
robotoMedium
|
|
77
|
+
GillSansMTStdMedium
|
|
87
78
|
],
|
|
88
79
|
({ font }) => font
|
|
89
80
|
);
|