@times-components/ts-components 1.63.6 → 1.64.0

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