@quintype/native-components 2.21.1-beta.0 → 2.21.1-kp-beta.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/package.json +1 -1
- package/src/components/AuthorRow/styles.js +1 -2
- package/src/components/PDFReader/styles.js +2 -2
- package/src/components/ResponsiveImage/index.js +4 -14
- package/src/components/StoryImage/styles.js +2 -2
- package/src/components/StoryTitle/styles.js +6 -6
- package/src/components/TextBigFact/styles.js +2 -2
- package/src/components/TextBlockQuote/styles.js +2 -2
- package/src/components/TextBlurb/styles.js +1 -1
- package/src/components/TextQandA/styles.js +2 -2
- package/src/components/TextQuote/styles.js +3 -3
- package/src/components/TextSummary/styles.js +1 -1
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export const pdfStyles = (COLORS, FONT_SIZE, DARK_MODE) => StyleSheet.create({
|
|
|
15
15
|
},
|
|
16
16
|
pdfText: {
|
|
17
17
|
fontSize: FONT_SIZE.h2,
|
|
18
|
-
lineHeight: FONT_SIZE.h2 * 1.
|
|
18
|
+
lineHeight: FONT_SIZE.h2 * 1.5,
|
|
19
19
|
marginLeft: 5,
|
|
20
20
|
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_1,
|
|
21
21
|
fontStyle: 'italic',
|
|
@@ -42,6 +42,6 @@ export const pdfStyles = (COLORS, FONT_SIZE, DARK_MODE) => StyleSheet.create({
|
|
|
42
42
|
width: '20%',
|
|
43
43
|
justifyContent: 'center',
|
|
44
44
|
alignItems: 'center',
|
|
45
|
-
margin
|
|
45
|
+
margin: 10,
|
|
46
46
|
},
|
|
47
47
|
});
|
|
@@ -16,11 +16,7 @@ const ResponsiveImageBase = (props) => {
|
|
|
16
16
|
const [placeholder, setPlaceholder] = useState(true);
|
|
17
17
|
const { theme } = useContext(AppTheme);
|
|
18
18
|
const {
|
|
19
|
-
COLORS,
|
|
20
|
-
CustomFallBackIcon,
|
|
21
|
-
CustomFallBackBackground,
|
|
22
|
-
resizeImagesToFit,
|
|
23
|
-
roundedImageCorners,
|
|
19
|
+
COLORS, CustomFallBackIcon, CustomFallBackBackground, resizeImagesToFit,
|
|
24
20
|
} = theme;
|
|
25
21
|
|
|
26
22
|
const flattenedImageStyle = StyleSheet.flatten([
|
|
@@ -33,19 +29,13 @@ const ResponsiveImageBase = (props) => {
|
|
|
33
29
|
props?.elementType === 'gallery' && {
|
|
34
30
|
backgroundColor: COLORS.BRAND_BLACK,
|
|
35
31
|
},
|
|
36
|
-
roundedImageCorners && {
|
|
37
|
-
borderRadius: 12,
|
|
38
|
-
overflow: "hidden",
|
|
39
|
-
},
|
|
40
32
|
]);
|
|
41
33
|
|
|
42
34
|
const placeholderStyle = {
|
|
43
35
|
...StyleSheet.absoluteFillObject,
|
|
44
|
-
backgroundColor:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
borderRadius: roundedImageCorners ? 12 : 0,
|
|
36
|
+
backgroundColor: (CustomFallBackIcon && CustomFallBackBackground) ?? COLORS.MONO6,
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
alignItems: 'center',
|
|
49
39
|
};
|
|
50
40
|
|
|
51
41
|
const fallBackIcon = CustomFallBackIcon ? (
|
|
@@ -18,13 +18,13 @@ export const storyImageStyles = ({ COLORS, FONT_SIZE }, metadata = {}) => {
|
|
|
18
18
|
},
|
|
19
19
|
cardTitleText: {
|
|
20
20
|
fontSize: FONT_SIZE.h5,
|
|
21
|
-
lineHeight: FONT_SIZE.h5 * 1.
|
|
21
|
+
lineHeight: FONT_SIZE.h5 * 1.5,
|
|
22
22
|
color: COLORS.BRAND_BLACK,
|
|
23
23
|
marginBottom: 5,
|
|
24
24
|
},
|
|
25
25
|
attributionText: {
|
|
26
26
|
fontSize: FONT_SIZE.h5,
|
|
27
|
-
lineHeight: FONT_SIZE.h5 * 1.
|
|
27
|
+
lineHeight: FONT_SIZE.h5 * 1.5,
|
|
28
28
|
color: COLORS.BRAND_BLACK,
|
|
29
29
|
marginBottom: 5,
|
|
30
30
|
},
|
|
@@ -12,14 +12,14 @@ export const storyTitleStyles = ({ COLORS, FONT_SIZE }) => StyleSheet.create({
|
|
|
12
12
|
},
|
|
13
13
|
subTitleStyle: {
|
|
14
14
|
fontSize: FONT_SIZE.h3,
|
|
15
|
-
lineHeight: FONT_SIZE.h3 * 1.
|
|
15
|
+
lineHeight: FONT_SIZE.h3 * 1.5,
|
|
16
16
|
color: COLORS.BRAND_6,
|
|
17
17
|
marginTop: 15,
|
|
18
18
|
paddingVertical: 5,
|
|
19
19
|
},
|
|
20
|
-
premiumIcon
|
|
21
|
-
paddingLeft:10,
|
|
22
|
-
marginRight
|
|
23
|
-
borderWidth:1
|
|
24
|
-
}
|
|
20
|
+
premiumIcon: {
|
|
21
|
+
paddingLeft: 10,
|
|
22
|
+
marginRight: -5,
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
},
|
|
25
25
|
});
|
|
@@ -10,14 +10,14 @@ export const bigTextStyles = (COLORS, FONT_SIZE, DARK_MODE) => StyleSheet.create
|
|
|
10
10
|
bigFactText: {
|
|
11
11
|
fontSize: FONT_SIZE.h1,
|
|
12
12
|
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_WHITE,
|
|
13
|
-
lineHeight: FONT_SIZE.h1 * 1.
|
|
13
|
+
lineHeight: FONT_SIZE.h1 * 1.5,
|
|
14
14
|
marginVertical: 10,
|
|
15
15
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
16
16
|
},
|
|
17
17
|
authorText: {
|
|
18
18
|
fontSize: FONT_SIZE.h5,
|
|
19
19
|
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_WHITE,
|
|
20
|
-
lineHeight: FONT_SIZE.h5 * 1.
|
|
20
|
+
lineHeight: FONT_SIZE.h5 * 1.5,
|
|
21
21
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
22
22
|
},
|
|
23
23
|
});
|
|
@@ -10,14 +10,14 @@ export const blockQuoteTextStyles = (FONT_SIZE, COLORS, DARK_MODE) => StyleSheet
|
|
|
10
10
|
blockQuoteText: {
|
|
11
11
|
fontSize: FONT_SIZE.h1,
|
|
12
12
|
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_WHITE,
|
|
13
|
-
lineHeight: FONT_SIZE.h1 * 1.
|
|
13
|
+
lineHeight: FONT_SIZE.h1 * 1.5,
|
|
14
14
|
marginVertical: 10,
|
|
15
15
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
16
16
|
},
|
|
17
17
|
authorText: {
|
|
18
18
|
fontSize: FONT_SIZE.h5,
|
|
19
19
|
color: DARK_MODE ? COLORS.BRAND_BLACK : COLORS.BRAND_WHITE,
|
|
20
|
-
lineHeight: FONT_SIZE.h5 * 1.
|
|
20
|
+
lineHeight: FONT_SIZE.h5 * 1.5,
|
|
21
21
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
22
22
|
},
|
|
23
23
|
topBorderContainer: {
|
|
@@ -7,13 +7,13 @@ export const textQandAStyles = (COLORS, FONT_SIZE) => StyleSheet.create({
|
|
|
7
7
|
questionText: {
|
|
8
8
|
fontSize: FONT_SIZE.h2,
|
|
9
9
|
fontWeight: '600',
|
|
10
|
-
lineHeight: FONT_SIZE.h2 * 1.
|
|
10
|
+
lineHeight: FONT_SIZE.h2 * 1.5,
|
|
11
11
|
color: COLORS.BRAND_BLACK,
|
|
12
12
|
opacity: 0.8,
|
|
13
13
|
},
|
|
14
14
|
answerText: {
|
|
15
15
|
fontSize: FONT_SIZE.h2,
|
|
16
|
-
lineHeight: FONT_SIZE.h2 * 1.
|
|
16
|
+
lineHeight: FONT_SIZE.h2 * 1.5,
|
|
17
17
|
color: COLORS.BRAND_BLACK,
|
|
18
18
|
opacity: 0.8,
|
|
19
19
|
},
|
|
@@ -14,18 +14,18 @@ export const textQuoteStyles = (COLORS, FONT_SIZE) => StyleSheet.create({
|
|
|
14
14
|
quoteContent: {
|
|
15
15
|
color: COLORS.BRAND_BLACK,
|
|
16
16
|
fontSize: FONT_SIZE.h2,
|
|
17
|
-
lineHeight: FONT_SIZE.h2 * 1.
|
|
17
|
+
lineHeight: FONT_SIZE.h2 * 1.5,
|
|
18
18
|
},
|
|
19
19
|
quoteText: {
|
|
20
20
|
fontSize: FONT_SIZE.h1,
|
|
21
|
-
lineHeight: FONT_SIZE.h1 * 1.
|
|
21
|
+
lineHeight: FONT_SIZE.h1 * 1.5,
|
|
22
22
|
color: COLORS.BRAND_BLACK,
|
|
23
23
|
opacity: 0.9,
|
|
24
24
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
25
25
|
},
|
|
26
26
|
attributionText: {
|
|
27
27
|
fontSize: FONT_SIZE.h3,
|
|
28
|
-
lineHeight: FONT_SIZE.h3 * 1.
|
|
28
|
+
lineHeight: FONT_SIZE.h3 * 1.5,
|
|
29
29
|
color: COLORS.BRAND_BLACK,
|
|
30
30
|
alignItems: 'flex-end',
|
|
31
31
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
@@ -14,7 +14,7 @@ export const textSummaryStyles = (FONT_SIZE, COLORS) => StyleSheet.create({
|
|
|
14
14
|
summaryContent: {
|
|
15
15
|
color: COLORS.BRAND_6,
|
|
16
16
|
fontSize: FONT_SIZE.h2,
|
|
17
|
-
lineHeight: FONT_SIZE.h2 * 1.
|
|
17
|
+
lineHeight: FONT_SIZE.h2 * 1.5,
|
|
18
18
|
textAlign: isRTLEnabled() ? 'left' : 'auto',
|
|
19
19
|
},
|
|
20
20
|
summaryText: {
|