@quintype/native-components 2.19.20 → 2.19.21

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.19.21](https://github.com/quintype/native-components/compare/v2.19.20...v2.19.21) (2022-11-18)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **fonts:** Fixes fonts for CollectionTitle and Caption/Attribution HTML 🔨 ([#188](https://github.com/quintype/native-components/issues/188)) ([94c61ff](https://github.com/quintype/native-components/commit/94c61ff385df2225f6a3d1b14c1f5d2ce3a1ed89))
11
+
5
12
  ### [2.19.20](https://github.com/quintype/native-components/compare/v2.19.19...v2.19.20) (2022-11-07)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/native-components",
3
- "version": "2.19.20",
3
+ "version": "2.19.21",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -13,7 +13,6 @@ export const collectionTitleStyles = (appThemeContext) => {
13
13
  },
14
14
  title: {
15
15
  fontSize: FONT_SIZE.h3,
16
- fontWeight: 'bold',
17
16
  color: COLORS.BRAND_5,
18
17
  },
19
18
  });
@@ -69,8 +69,10 @@ export const StoryHeader = (props) => {
69
69
  const { story } = props;
70
70
  const sectionData = get(story, ['sections', 0], {});
71
71
  const { theme } = useContext(AppTheme);
72
- const { COLORS, CAN_COPY_TEXT, locale } = theme;
73
- const styles = storyHeaderStyles(COLORS);
72
+ const {
73
+ COLORS, CAN_COPY_TEXT, locale, FONT_FAMILY,
74
+ } = theme;
75
+ const styles = storyHeaderStyles(COLORS, FONT_FAMILY);
74
76
  const imgCaption = story['hero-image-caption'];
75
77
  const attri = story['hero-image-attribution'];
76
78
  const imgAttribution = imgCaption && attri ? ` | ${attri}` : attri;
@@ -1,6 +1,6 @@
1
1
  import { StyleSheet } from 'react-native';
2
2
 
3
- export const storyHeaderStyles = (COLORS) => StyleSheet.create({
3
+ export const storyHeaderStyles = (COLORS, FONT_FAMILY) => StyleSheet.create({
4
4
  tagStyle: {
5
5
  padding: 10,
6
6
  backgroundColor: COLORS.BRAND_7,
@@ -29,10 +29,12 @@ export const storyHeaderStyles = (COLORS) => StyleSheet.create({
29
29
  padding: 10,
30
30
  paddingBottom: 0,
31
31
  color: COLORS.BRAND_BLACK,
32
+ fontFamily: FONT_FAMILY.secondary,
32
33
  opacity: 0.8,
33
34
  },
34
35
  attributionStyle: {
35
36
  color: COLORS.BRAND_BLACK,
37
+ fontFamily: FONT_FAMILY.secondary,
36
38
  opacity: 0.8,
37
39
  },
38
40
  captionContainerStyle: {