@quintype/native-components 2.20.21 → 2.20.23

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,20 @@
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.20.23](https://github.com/quintype/native-components/compare/v2.20.22...v2.20.23) (2024-03-11)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **text:** Fix text-clipping issue for Kannada font ([943c14f](https://github.com/quintype/native-components/commit/943c14f4eb02159cc41114e6cdddd7c9ba9d883a))
11
+
12
+ ### [2.20.22](https://github.com/quintype/native-components/compare/v2.20.21...v2.20.22) (2024-02-26)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **Misc.:** Regression Feb '24 ([#221](https://github.com/quintype/native-components/issues/221)) ([40262cd](https://github.com/quintype/native-components/commit/40262cdfca550796b7696021e04b73c22708d98e))
18
+
5
19
  ### [2.20.21](https://github.com/quintype/native-components/compare/v2.20.20...v2.20.21) (2024-02-07)
6
20
 
7
21
  ### [2.20.20](https://github.com/quintype/native-components/compare/v2.20.19...v2.20.20) (2024-01-22)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/native-components",
3
- "version": "2.20.21",
3
+ "version": "2.20.23",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -3,17 +3,20 @@ import React, { useContext } from 'react';
3
3
  import { AppTheme } from "../../utils/context";
4
4
  import PropTypes from "prop-types";
5
5
 
6
- const PremiumIcon = ({name, style, size, color}) => {
6
+ const PremiumIcon = ({name, style, size, color, fallbackToCrown = false}) => {
7
7
  const { theme } = useContext(AppTheme);
8
8
  const { COLORS } = theme;
9
+ const iconName = name === "none" && fallbackToCrown ? "crown" : name;
10
+
9
11
  color = color ?? COLORS.BRAND_1;
10
- return <MaterialIcon name={name} style={style} size={size} color={color} />
12
+ return <MaterialIcon name={iconName} style={style} size={size} color={color} />
11
13
  }
12
14
  PremiumIcon.propTypes = {
13
15
  name: PropTypes.string.isRequired,
14
16
  size: PropTypes.any.isRequired,
15
17
  color: PropTypes.string,
16
- style: PropTypes.any
18
+ style: PropTypes.any,
19
+ fallbackToCrown: PropTypes.bool,
17
20
  };
18
21
 
19
22
 
@@ -42,7 +42,7 @@ export const PDFReader = ({ card, share }) => {
42
42
  <Modal animationType="slide" transparent={false} visible={modalVisible}>
43
43
  <View style={headerStyles}>
44
44
  <TouchableOpacity style={styles.headerButton} onPress={hideModal}>
45
- <IonIcon name="ios-close" size={46} color={COLORS.BRAND_WHITE} />
45
+ <IonIcon name="close" size={24} color={COLORS.BRAND_WHITE} />
46
46
  </TouchableOpacity>
47
47
  </View>
48
48
  <Pdf
@@ -5,14 +5,13 @@ export const pdfStyles = (COLORS, FONT_SIZE, DARK_MODE) => StyleSheet.create({
5
5
  flex: 1,
6
6
  },
7
7
  header: {
8
- height: 75,
9
8
  flexDirection: 'row',
10
- paddingHorizontal: 25,
9
+ padding: 10,
11
10
  justifyContent: 'space-between',
12
11
  alignItems: 'center',
13
12
  },
14
13
  headerButton: {
15
- paddingTop: 25,
14
+ paddingTop: 10,
16
15
  },
17
16
  pdfText: {
18
17
  fontSize: FONT_SIZE.h2,
@@ -15,13 +15,13 @@ export const storyStyles = (COLORS = {}, FONT_SIZE = {}) => ({
15
15
  timestamp: {
16
16
  color: COLORS?.BRAND_BLACK,
17
17
  fontSize: FONT_SIZE.h5,
18
- lineHeight: FONT_SIZE.h5 * 1.2,
18
+ lineHeight: FONT_SIZE.h5 * 1.5,
19
19
  opacity: 0.6,
20
20
  marginTop: 4,
21
21
  },
22
22
  headline: {
23
23
  fontSize: FONT_SIZE.title,
24
- lineHeight: FONT_SIZE.title * 1.4,
24
+ lineHeight: FONT_SIZE.title * 1.6,
25
25
  color: COLORS.BRAND_BLACK,
26
26
  marginTop: 4,
27
27
  },
@@ -56,8 +56,8 @@ export const storyStyles = (COLORS = {}, FONT_SIZE = {}) => ({
56
56
  borderRadius: 50,
57
57
  backgroundColor: COLORS.BRAND_3,
58
58
  },
59
- premiumIcon:{
59
+ premiumIcon: {
60
60
  marginTop: FONT_SIZE.h3 * 0.92,
61
- marginRight:5
62
- }
61
+ marginRight: 5,
62
+ },
63
63
  });
@@ -16,7 +16,7 @@ export const storyStyles = ({ COLORS, FONT_SIZE }) => StyleSheet.create({
16
16
  timestamp: {
17
17
  color: COLORS.BRAND_BLACK,
18
18
  fontSize: FONT_SIZE.h5,
19
- lineHeight: FONT_SIZE.h5 * 1.2,
19
+ lineHeight: FONT_SIZE.h5 * 1.5,
20
20
  opacity: 0.6,
21
21
  marginTop: 4,
22
22
  },
@@ -24,7 +24,7 @@ export const storyStyles = ({ COLORS, FONT_SIZE }) => StyleSheet.create({
24
24
  color: COLORS.BRAND_BLACK,
25
25
  flexWrap: 'wrap',
26
26
  fontSize: FONT_SIZE.h3,
27
- lineHeight: FONT_SIZE.h3 * 1.4,
27
+ lineHeight: FONT_SIZE.h3 * 1.6,
28
28
  },
29
29
  icon: {
30
30
  marginLeft: 8,
@@ -57,8 +57,8 @@ export const storyStyles = ({ COLORS, FONT_SIZE }) => StyleSheet.create({
57
57
  borderRadius: 50,
58
58
  backgroundColor: COLORS.BRAND_3,
59
59
  },
60
- premiumIcon:{
60
+ premiumIcon: {
61
61
  marginTop: FONT_SIZE.h3 * 0.45,
62
- marginRight:3
63
- }
62
+ marginRight: 3,
63
+ },
64
64
  });