rn-vs-lb 1.0.51 → 1.0.53

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.
@@ -13,6 +13,7 @@ var Button = function (_a) {
13
13
  type === 'primary' && styles.primaryButton,
14
14
  type === 'gray' && styles.grayButton,
15
15
  type === 'primary-outline' && styles.primaryOutlineButton,
16
+ type === 'gray-outline' && styles.grayOutlineButton,
16
17
  style,
17
18
  ];
18
19
  var textStyles = [
@@ -20,6 +21,7 @@ var Button = function (_a) {
20
21
  type === 'primary' && styles.primaryButtonText,
21
22
  type === 'gray' && styles.grayButtonText,
22
23
  type === 'primary-outline' && styles.primaryOutlineButtonText,
24
+ type === 'gray-outline' && styles.grayOutlineButtonText,
23
25
  textStyle,
24
26
  ];
25
27
  return (react_1.default.createElement(react_native_1.TouchableOpacity, { style: buttonStyles, onPress: onPress },
@@ -32,6 +34,7 @@ var styles = react_native_1.StyleSheet.create({
32
34
  alignItems: 'center',
33
35
  borderRadius: 6,
34
36
  paddingHorizontal: 16,
37
+ width: "100%",
35
38
  },
36
39
  primaryButton: {
37
40
  backgroundColor: theme_1.COLORS.primary,
@@ -46,7 +49,7 @@ var styles = react_native_1.StyleSheet.create({
46
49
  },
47
50
  buttonText: {
48
51
  fontSize: 16,
49
- fontWeight: 'bold',
52
+ fontWeight: '500',
50
53
  },
51
54
  primaryButtonText: {
52
55
  color: theme_1.COLORS.white,
@@ -57,5 +60,13 @@ var styles = react_native_1.StyleSheet.create({
57
60
  grayButtonText: {
58
61
  color: '#333',
59
62
  },
63
+ grayOutlineButton: {
64
+ backgroundColor: '#f5f5f5',
65
+ borderColor: theme_1.COLORS.border,
66
+ borderWidth: 1,
67
+ },
68
+ grayOutlineButtonText: {
69
+ // color: COLORS.
70
+ }
60
71
  });
61
72
  exports.default = Button;
@@ -15,22 +15,20 @@ var PostButton = function (_a) {
15
15
  var styles = react_native_1.StyleSheet.create({
16
16
  button: {
17
17
  backgroundColor: '#f2f2f2', // light grey background
18
- paddingVertical: 10,
18
+ paddingVertical: 13,
19
19
  paddingHorizontal: 20,
20
20
  borderRadius: 8,
21
21
  width: "100%",
22
22
  alignItems: 'center',
23
- marginVertical: 10,
24
- marginTop: 24,
25
23
  display: "flex",
26
24
  flexDirection: "row",
27
25
  justifyContent: "center",
28
- gap: 6,
29
26
  },
30
27
  buttonText: {
31
28
  color: '#007AFF', // iOS blue color
32
29
  fontSize: 16,
33
- fontWeight: '600',
30
+ fontWeight: '500',
31
+ marginLeft: 4,
34
32
  },
35
33
  });
36
34
  exports.default = PostButton;
@@ -15,13 +15,14 @@ var IconTypes;
15
15
  IconTypes["MATERIALICONS"] = "MaterialIcons";
16
16
  })(IconTypes || (exports.IconTypes = IconTypes = {}));
17
17
  var renderIcon = function (icon) {
18
+ var _a, _b, _c;
18
19
  switch (icon.lb) {
19
20
  case IconTypes.OCTICONS:
20
- return react_1.default.createElement(Octicons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
21
+ return react_1.default.createElement(Octicons_1.default, { name: icon.iconName, size: icon.size, color: (_a = icon.color) !== null && _a !== void 0 ? _a : "#475A77" });
21
22
  case IconTypes.IONICONS:
22
- return react_1.default.createElement(Ionicons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
23
+ return react_1.default.createElement(Ionicons_1.default, { name: icon.iconName, size: icon.size, color: (_b = icon.color) !== null && _b !== void 0 ? _b : "#475A77" });
23
24
  case IconTypes.MATERIALICONS:
24
- return react_1.default.createElement(MaterialIcons_1.default, { name: icon.iconName, size: icon.size, color: "#475A77" });
25
+ return react_1.default.createElement(MaterialIcons_1.default, { name: icon.iconName, size: icon.size, color: (_c = icon.color) !== null && _c !== void 0 ? _c : "#475A77" });
25
26
  default:
26
27
  return null;
27
28
  }
@@ -1,27 +1,49 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
15
  };
5
16
  Object.defineProperty(exports, "__esModule", { value: true });
6
17
  var react_1 = __importDefault(require("react"));
7
18
  var react_native_1 = require("react-native");
8
- var MaterialIcons_1 = __importDefault(require("react-native-vector-icons/MaterialIcons"));
9
- var PostButton_1 = __importDefault(require("../buttons/PostButton"));
19
+ var constants_1 = require("../../constants");
20
+ var theme_1 = require("../../constants/theme");
21
+ var icon_1 = require("../icon");
22
+ var buttons_1 = require("../buttons");
10
23
  var ProfileCard = function (_a) {
11
- var name = _a.name, quote = _a.quote, imageUri = _a.imageUri, onPostPress = _a.onPostPress, onLearnMorePress = _a.onLearnMorePress;
24
+ var name = _a.name, quote = _a.quote, onBack = _a.onBack, imageUri = _a.imageUri, onPostPress = _a.onPostPress, onLearnMorePress = _a.onLearnMorePress, isAuth = _a.isAuth;
12
25
  return (react_1.default.createElement(react_native_1.View, { style: styles.cardContainer },
26
+ react_1.default.createElement(react_native_1.View, { style: [constants_1.GlobalStyleSheet.flexalingjust, styles.navigation] },
27
+ react_1.default.createElement(react_native_1.TouchableOpacity, { onPress: onBack },
28
+ react_1.default.createElement(icon_1.IconConverter, { name: 'arrow-back', iconName: 'arrow-back', lb: icon_1.IconTypes.IONICONS, size: 24 })),
29
+ react_1.default.createElement(react_native_1.TouchableOpacity, { onPress: function () { return console.log('Settings'); } },
30
+ react_1.default.createElement(react_native_1.View, { style: constants_1.GlobalStyleSheet.background },
31
+ react_1.default.createElement(icon_1.IconConverter, { name: 'settings-outline', iconName: 'settings-outline', lb: icon_1.IconTypes.IONICONS, size: 24 })))),
13
32
  react_1.default.createElement(react_native_1.Image, { source: { uri: imageUri }, style: styles.profileImage }),
14
33
  react_1.default.createElement(react_native_1.Text, { style: styles.name }, name),
15
- react_1.default.createElement(react_native_1.View, { style: styles.learnMoreContainer },
16
- react_1.default.createElement(MaterialIcons_1.default, { name: "info-outline", size: 20, color: "#888" }),
17
- react_1.default.createElement(react_native_1.TouchableOpacity, { onPress: onLearnMorePress },
18
- react_1.default.createElement(react_native_1.Text, { style: styles.learnMoreText }, "Learn more"))),
19
- react_1.default.createElement(PostButton_1.default, { onPress: onPostPress, title: 'Post' })));
34
+ react_1.default.createElement(react_native_1.TouchableOpacity, { onPress: onLearnMorePress, style: styles.learnMoreContainer },
35
+ react_1.default.createElement(icon_1.IconConverter, { color: theme_1.COLORS.greyText, name: 'info-outline', iconName: 'info-outline', lb: icon_1.IconTypes.MATERIALICONS, size: 18 }),
36
+ react_1.default.createElement(react_native_1.Text, { style: styles.learnMoreText }, "Learn more")),
37
+ isAuth && react_1.default.createElement(react_native_1.View, { style: styles.buttonContainer },
38
+ react_1.default.createElement(buttons_1.Button, { type: "gray-outline", onPress: onPostPress, title: 'Follow' }),
39
+ react_1.default.createElement(buttons_1.Button, { type: "gray-outline", onPress: onPostPress, title: 'Message' }))));
20
40
  };
21
41
  var styles = react_native_1.StyleSheet.create({
22
42
  cardContainer: {
23
43
  alignItems: 'center',
24
- padding: 20,
44
+ padding: 16,
45
+ paddingTop: 8,
46
+ paddingBottom: 32,
25
47
  borderRadius: 16,
26
48
  backgroundColor: '#f9f9f9',
27
49
  shadowColor: '#000',
@@ -29,16 +51,17 @@ var styles = react_native_1.StyleSheet.create({
29
51
  shadowOffset: { width: 0, height: 2 },
30
52
  shadowRadius: 5,
31
53
  },
54
+ navigation: {
55
+ display: 'flex',
56
+ width: '100%',
57
+ },
32
58
  profileImage: {
33
59
  width: 100,
34
60
  height: 100,
35
61
  borderRadius: 50,
36
62
  marginBottom: 10,
37
63
  },
38
- name: {
39
- fontSize: 20,
40
- fontWeight: 'bold',
41
- },
64
+ name: __assign(__assign({}, theme_1.FONTS.h4), { fontWeight: 'bold' }),
42
65
  quote: {
43
66
  fontSize: 14,
44
67
  color: '#000',
@@ -49,10 +72,11 @@ var styles = react_native_1.StyleSheet.create({
49
72
  alignItems: 'center',
50
73
  marginTop: 8,
51
74
  },
52
- learnMoreText: {
53
- fontSize: 14,
54
- color: '#888',
55
- marginLeft: 5,
56
- },
75
+ learnMoreText: __assign(__assign({}, theme_1.FONTS.font), { color: theme_1.COLORS.greyText, marginLeft: 5 }),
76
+ buttonContainer: {
77
+ width: '100%',
78
+ gap: 8,
79
+ marginTop: 24,
80
+ }
57
81
  });
58
82
  exports.default = ProfileCard;
@@ -12,7 +12,7 @@ var GradientLine = function () {
12
12
  };
13
13
  var MeetProfileCard = function (_a) {
14
14
  var name = _a.name, userName = _a.userName, quote = _a.quote, imageUri = _a.imageUri, postCount = _a.postCount, followersCount = _a.followersCount, followingCount = _a.followingCount;
15
- return (react_1.default.createElement(react_1.default.Fragment, null, "hello")
15
+ return (react_1.default.createElement(react_1.default.Fragment, null)
16
16
  // <ImageBackground
17
17
  // style={{width:'100%',height:340,borderBottomLeftRadius:25,borderBottomRightRadius:25,overflow:'hidden'}}
18
18
  // source={IMAGES.profilebackground}
@@ -154,7 +154,7 @@ exports.GlobalStyleSheet = react_native_1.StyleSheet.create({
154
154
  postlike: __assign(__assign(__assign({}, theme_1.FONTS.fontXs), theme_1.FONTS.fontMedium), { color: theme_1.COLORS.title, marginLeft: 10 }),
155
155
  //reelsitem
156
156
  background: {
157
- backgroundColor: 'rgba(255,255,255,.1)',
157
+ backgroundColor: theme_1.COLORS.input,
158
158
  height: 40,
159
159
  width: 40,
160
160
  borderRadius: 50,
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { ViewStyle, TextStyle, TouchableOpacityProps, StyleProp } from 'react-native';
3
3
  export interface MyButtonProps extends TouchableOpacityProps {
4
4
  title: string;
5
- type?: 'primary' | 'gray' | 'primary-outline';
5
+ type?: 'primary' | 'gray' | 'primary-outline' | 'gray-outline';
6
6
  style?: StyleProp<ViewStyle>;
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  }
@@ -9,6 +9,7 @@ interface Icon {
9
9
  iconName: string;
10
10
  size: number;
11
11
  lb: IconTypes;
12
+ color?: string;
12
13
  }
13
14
  export declare const IconConverter: React.FC<Icon>;
14
15
  export {};
@@ -5,6 +5,8 @@ interface ProfileCardProps {
5
5
  imageUri: string;
6
6
  onPostPress: () => void;
7
7
  onLearnMorePress: () => void;
8
+ onBack: () => void;
9
+ isAuth: boolean;
8
10
  }
9
11
  declare const ProfileCard: React.FC<ProfileCardProps>;
10
12
  export default ProfileCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-vs-lb",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "scripts": {