koylu-vampir-design 1.0.25 → 1.0.26

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.
@@ -4,6 +4,7 @@ declare type Props = {
4
4
  selected?: boolean;
5
5
  onPress: (event?: GestureResponderEvent) => void;
6
6
  gift: string;
7
+ size?: number;
7
8
  };
8
9
  export declare const GiftFrame: React.FC<Props>;
9
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"GiftFrame.d.ts","sourceRoot":"","sources":["../../src/Buttons/GiftFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAKtB,MAAM,cAAc,CAAC;AAKtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA0BrC,CAAC"}
1
+ {"version":3,"file":"GiftFrame.d.ts","sourceRoot":"","sources":["../../src/Buttons/GiftFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAKtB,MAAM,cAAc,CAAC;AAKtB,aAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCrC,CAAC"}
@@ -8,19 +8,20 @@ const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
9
  const Views_1 = require("../Views");
10
10
  const Utils_1 = require("../Utils");
11
- const GiftFrame = ({ selected, onPress, gift }) => {
11
+ const GiftFrame = ({ selected, onPress, gift, size = 70, }) => {
12
12
  const renderIcon = () => {
13
13
  if (!gift.indexOf("a-")) {
14
14
  console.log("SRC", Utils_1.Assets.getSource("gift", gift));
15
- return (react_1.default.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("gift", gift, "small"), accessibilityLabel: gift.replace("a-", ""), style: styles.giftImage }));
15
+ return (react_1.default.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("gift", gift, "small"), accessibilityLabel: gift.replace("a-", ""), style: [styles.giftImage, { width: size - 15, height: size - 15 }] }));
16
16
  }
17
17
  return react_1.default.createElement(react_native_1.Text, { style: styles.giftText }, gift);
18
18
  };
19
19
  return (react_1.default.createElement(Views_1.TouchableView, { out: selected, onPress: onPress, style: [
20
20
  styles.giftFrameWrapper,
21
+ { width: size, height: size },
21
22
  selected ? styles.giftFrameWrapperSelected : {},
22
23
  ] },
23
- react_1.default.createElement(react_native_1.View, { style: styles.giftFrame }, renderIcon())));
24
+ react_1.default.createElement(react_native_1.View, { style: [styles.giftFrame, { width: size - 10, height: size - 10 }] }, renderIcon())));
24
25
  };
25
26
  exports.GiftFrame = GiftFrame;
26
27
  const styles = react_native_1.StyleSheet.create({
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../src/Buttons/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAc,qBAAqB,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAK9F,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwGhD,CAAC"}
1
+ {"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../src/Buttons/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,qBAAqB,EACrB,SAAS,EAGV,MAAM,cAAc,CAAC;AAKtB,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAC7E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsGhD,CAAC"}
@@ -9,7 +9,7 @@ const react_native_1 = require("react-native");
9
9
  const Views_1 = require("../Views");
10
10
  const Icon_1 = require("../Utils/Icon");
11
11
  const Themes_1 = require("../Themes");
12
- const MenuButton = ({ children, style = {}, size, iconStyle, onPress, onLongPress, textStyle, iconFamily, type, buttonStyle, selected, icon, disabled, out = true, rightComponent }) => {
12
+ const MenuButton = ({ children, style = {}, size, iconStyle, onPress, onLongPress, textStyle, iconFamily, type, buttonStyle, selected, icon, disabled, out = true, rightComponent, }) => {
13
13
  const buttonStyles = [styles.button];
14
14
  const textStyles = [styles.text];
15
15
  const iconStyles = [styles.icon];
@@ -69,7 +69,7 @@ const MenuButton = ({ children, style = {}, size, iconStyle, onPress, onLongPres
69
69
  }
70
70
  return (react_1.default.createElement(Views_1.TouchableView, { out: out, style: [...buttonStyles, style, disabled && styles.disabled], wrapperStyle: {
71
71
  marginLeft: style.marginLeft,
72
- marginRight: style.marginRight
72
+ marginRight: style.marginRight,
73
73
  }, disabled: disabled, onPress: onPress, onLongPress: onLongPress },
74
74
  icon && (react_1.default.createElement(Icon_1.Icon, { name: icon, color: "#ffffff", font: iconFamily || "IconIon", size: 16, style: [...iconStyles, iconStyle] })),
75
75
  react_1.default.createElement(react_native_1.Text, { style: [...textStyles, textStyle] }, children),
@@ -95,61 +95,61 @@ const styles = react_native_1.StyleSheet.create({
95
95
  shadowColor: "#000000",
96
96
  shadowOffset: {
97
97
  width: 4,
98
- height: 6
98
+ height: 6,
99
99
  },
100
100
  shadowOpacity: 0.25,
101
101
  shadowRadius: 5,
102
- elevation: 5
102
+ elevation: 5,
103
103
  },
104
104
  lightBlue: {
105
105
  backgroundColor: "#4BC3F6",
106
106
  width: "auto",
107
- height: 44
107
+ height: 44,
108
108
  },
109
109
  disabled: {
110
110
  backgroundColor: "#aaaaaa",
111
111
  borderColor: "#cccccc",
112
112
  shadowOpacity: 0,
113
113
  shadowRadius: 0,
114
- elevation: 0
114
+ elevation: 0,
115
115
  },
116
116
  icon: {
117
117
  width: 18,
118
118
  height: 18,
119
119
  marginRight: 6,
120
- marginLeft: 0
120
+ marginLeft: 0,
121
121
  },
122
122
  text: {
123
123
  color: "white",
124
124
  textAlign: "center",
125
125
  fontFamily: "Righteous-Regular",
126
126
  fontSize: 14,
127
- fontWeight: "bold"
127
+ fontWeight: "bold",
128
128
  },
129
129
  lightBlueText: {
130
130
  fontSize: 13,
131
- color: "#ffffff"
131
+ color: "#ffffff",
132
132
  },
133
133
  outline: {
134
134
  backgroundColor: "#88888833",
135
135
  borderColor: "#ee7461",
136
136
  borderWidth: 3,
137
- shadowOpacity: 0
137
+ shadowOpacity: 0,
138
138
  },
139
139
  outlineText: {
140
- color: "#ee7461"
140
+ color: "#ee7461",
141
141
  },
142
142
  medium: {
143
143
  height: 44,
144
144
  width: "auto",
145
- paddingHorizontal: 25
145
+ paddingHorizontal: 25,
146
146
  },
147
147
  small: {
148
148
  height: 28,
149
149
  width: "auto",
150
- paddingHorizontal: 20
150
+ paddingHorizontal: 20,
151
151
  },
152
152
  smallText: {
153
- fontSize: 13
154
- }
153
+ fontSize: 13,
154
+ },
155
155
  });
@@ -3,13 +3,17 @@ import React from "react";
3
3
  declare type Props = {
4
4
  gold: number;
5
5
  diamond: number;
6
+ ticket: number;
6
7
  gifts: number;
8
+ style: any;
7
9
  goldIcon: ImageSourcePropType;
8
10
  diamondIcon: ImageSourcePropType;
11
+ ticketIcon: ImageSourcePropType;
9
12
  giftIcon: ImageSourcePropType;
10
13
  titleText?: string;
11
14
  myGoldsText?: string;
12
15
  myDiamondsText?: string;
16
+ myTicketsText?: string;
13
17
  myGiftsText?: string;
14
18
  };
15
19
  export declare const MarketInfo: React.FC<Props & ViewProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,mBAAmB,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AACvF,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,mBAAmB,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CAEtB,CAAA;AACD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,SAAS,CA4BlD,CAAC"}
1
+ {"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAGnB,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,aAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,EAAE,mBAAmB,CAAC;IAChC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,SAAS,CA8ClD,CAAC"}
@@ -7,9 +7,9 @@ exports.MarketInfo = void 0;
7
7
  const react_native_1 = require("react-native");
8
8
  const react_1 = __importDefault(require("react"));
9
9
  const Typography_1 = require("../Typography");
10
- const MarketInfo = ({ gold, diamond, gifts, goldIcon, diamondIcon, giftIcon, titleText = "Hesabım", myGoldsText = "Altınlarım:", myDiamondsText = "Elmaslarım:", myGiftsText = "Hediyelerim:" }) => {
11
- return react_1.default.createElement(react_native_1.View, { style: styles.info },
12
- react_1.default.createElement(Typography_1.Typography, { bold: true, style: styles.title }, titleText),
10
+ const MarketInfo = ({ gold, diamond, gifts, style, ticket, goldIcon, diamondIcon, ticketIcon, giftIcon, titleText, myGoldsText = "Altınlarım:", myDiamondsText = "Elmaslarım:", myTicketsText = "Elmaslarım:", myGiftsText = "Hediyelerim:", }) => {
11
+ return (react_1.default.createElement(react_native_1.View, { style: [styles.info, style] },
12
+ !!titleText && (react_1.default.createElement(Typography_1.Typography, { bold: true, style: styles.title }, titleText)),
13
13
  react_1.default.createElement(react_native_1.View, { style: styles.line },
14
14
  react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myGoldsText),
15
15
  react_1.default.createElement(Typography_1.Typography, { bold: true }, gold),
@@ -18,37 +18,41 @@ const MarketInfo = ({ gold, diamond, gifts, goldIcon, diamondIcon, giftIcon, tit
18
18
  react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myDiamondsText),
19
19
  react_1.default.createElement(Typography_1.Typography, { bold: true }, diamond),
20
20
  react_1.default.createElement(react_native_1.Image, { style: styles.image, source: diamondIcon })),
21
+ react_1.default.createElement(react_native_1.View, { style: styles.line },
22
+ react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myTicketsText),
23
+ react_1.default.createElement(Typography_1.Typography, { bold: true }, ticket),
24
+ react_1.default.createElement(react_native_1.Image, { style: styles.image, source: ticketIcon })),
21
25
  react_1.default.createElement(react_native_1.View, { style: styles.line },
22
26
  react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myGiftsText),
23
27
  react_1.default.createElement(Typography_1.Typography, { bold: true }, gifts),
24
- react_1.default.createElement(react_native_1.Image, { style: styles.image, source: giftIcon })));
28
+ react_1.default.createElement(react_native_1.Image, { style: styles.image, source: giftIcon }))));
25
29
  };
26
30
  exports.MarketInfo = MarketInfo;
27
31
  const styles = react_native_1.StyleSheet.create({
28
32
  info: {
29
33
  flex: 1,
30
- padding: 20
34
+ padding: 20,
31
35
  },
32
36
  line: {
33
- paddingVertical: 4,
34
- paddingHorizontal: 10,
35
- borderRadius: 8,
36
- backgroundColor: "#00000020",
37
+ paddingVertical: 0,
38
+ borderBottomColor: "#e0e0e022",
39
+ borderBottomWidth: 1,
40
+ paddingHorizontal: 0,
37
41
  flexDirection: "row",
38
42
  alignItems: "center",
39
- marginBottom: 10
43
+ marginBottom: 10,
40
44
  },
41
45
  label: {
42
- marginRight: "auto"
46
+ marginRight: "auto",
43
47
  },
44
48
  title: {
45
49
  textAlign: "center",
46
- marginBottom: 20
50
+ marginBottom: 20,
47
51
  },
48
52
  image: {
49
53
  width: 30,
50
54
  height: 30,
51
55
  marginLeft: 10,
52
- resizeMode: "contain"
53
- }
56
+ resizeMode: "contain",
57
+ },
54
58
  });
@@ -12,6 +12,7 @@ declare type Props = {
12
12
  color?: string;
13
13
  badge?: string;
14
14
  feature?: boolean;
15
+ disabled?: boolean;
15
16
  value?: ItemValueType;
16
17
  options?: Array<OptionItem>;
17
18
  onPress?: (event?: GestureResponderEvent) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuOptions.d.ts","sourceRoot":"","sources":["../../src/Menus/MenuOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AAMxF,aAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAGtD,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAA;CACrB,CAAA;AAGD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkDvC,CAAC"}
1
+ {"version":3,"file":"MenuOptions.d.ts","sourceRoot":"","sources":["../../src/Menus/MenuOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,qBAAqB,EACrB,SAAS,EAIV,MAAM,cAAc,CAAC;AAMtB,aAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAEtD,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmFvC,CAAC"}
@@ -10,24 +10,34 @@ const Views_1 = require("../Views");
10
10
  const Typography_1 = require("../Typography");
11
11
  const Utils_1 = require("../Utils");
12
12
  const Themes_1 = require("../Themes");
13
- const MenuOptions = ({ children, style, color, onPress, feature, iconName, iconFont = "MaterialIcons", badge, value, options, onChange, }) => {
13
+ const MenuOptions = ({ children, style, color, onPress, feature, iconName, disabled, iconFont = "MaterialIcons", badge, value, options, onChange, }) => {
14
14
  const { baseTextColor } = Themes_1.useColors();
15
15
  const textColor = color ? color : baseTextColor;
16
16
  const setValue = (value) => {
17
+ if (disabled) {
18
+ return;
19
+ }
17
20
  onChange && onChange(value);
18
21
  };
19
- return (react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, styles.container, feature && styles.border, style] },
22
+ return (react_1.default.createElement(react_native_1.View, { style: [
23
+ styles.wrapper,
24
+ styles.container,
25
+ feature && styles.border,
26
+ disabled && { opacity: 0.5 },
27
+ style,
28
+ ] },
20
29
  react_1.default.createElement(Typography_1.Typography, { size: 14, color: textColor, bold: feature, style: [feature && { textDecorationLine: "underline" }] }, children),
21
- !!badge && react_1.default.createElement(react_native_1.View, { style: styles.badge },
22
- react_1.default.createElement(react_native_1.Text, { style: styles.badgeText }, badge)),
30
+ !!badge && (react_1.default.createElement(react_native_1.View, { style: styles.badge },
31
+ react_1.default.createElement(react_native_1.Text, { style: styles.badgeText }, badge))),
23
32
  react_1.default.createElement(react_native_1.View, { style: styles.flex }),
24
33
  !!iconName && (react_1.default.createElement(react_native_1.View, { accessibilityElementsHidden: true },
25
34
  react_1.default.createElement(Utils_1.Icon, { name: iconName, color: textColor, font: iconFont, style: styles.icon, size: 18 }))),
26
- react_1.default.createElement(react_native_1.View, { style: styles.values }, !!options && options.map((item, key) => {
27
- const isActive = item.value === value;
28
- return react_1.default.createElement(Views_1.TouchableView, { onPress: () => setValue(item.value), style: [styles.value, isActive && styles.valueActive], accessibilityState: { selected: isActive }, wrapperStyle: styles.valueWrapper, key: key },
29
- react_1.default.createElement(react_native_1.Text, { style: [styles.valueText, isActive && styles.valueTextActive] }, item.label));
30
- }))));
35
+ react_1.default.createElement(react_native_1.View, { style: styles.values }, !!options &&
36
+ options.map((item, key) => {
37
+ const isActive = item.value === value;
38
+ return (react_1.default.createElement(Views_1.TouchableView, { onPress: () => setValue(item.value), disabled: disabled, style: [styles.value, isActive && styles.valueActive], accessibilityState: { selected: isActive }, wrapperStyle: styles.valueWrapper, key: key },
39
+ react_1.default.createElement(react_native_1.Text, { style: [styles.valueText, isActive && styles.valueTextActive] }, item.label)));
40
+ }))));
31
41
  };
32
42
  exports.MenuOptions = MenuOptions;
33
43
  const styles = react_native_1.StyleSheet.create({
@@ -38,7 +48,7 @@ const styles = react_native_1.StyleSheet.create({
38
48
  container: {
39
49
  flexDirection: "row",
40
50
  alignItems: "center",
41
- flexWrap: "wrap"
51
+ flexWrap: "wrap",
42
52
  },
43
53
  border: {
44
54
  flex: 1,
@@ -48,10 +58,10 @@ const styles = react_native_1.StyleSheet.create({
48
58
  paddingVertical: 10,
49
59
  marginHorizontal: 10,
50
60
  borderRadius: 8,
51
- paddingHorizontal: 10
61
+ paddingHorizontal: 10,
52
62
  },
53
63
  icon: {
54
- marginRight: 0
64
+ marginRight: 0,
55
65
  },
56
66
  flex: {
57
67
  flex: 1,
@@ -64,13 +74,13 @@ const styles = react_native_1.StyleSheet.create({
64
74
  justifyContent: "center",
65
75
  width: 16,
66
76
  height: 16,
67
- borderRadius: 16
77
+ borderRadius: 16,
68
78
  },
69
79
  badgeText: {
70
80
  color: "#ffffff",
71
81
  fontSize: 11,
72
82
  paddingLeft: 1,
73
- fontWeight: "bold"
83
+ fontWeight: "bold",
74
84
  },
75
85
  values: {
76
86
  marginLeft: -3,
@@ -81,7 +91,7 @@ const styles = react_native_1.StyleSheet.create({
81
91
  valueWrapper: {
82
92
  flex: 1,
83
93
  alignItems: "stretch",
84
- justifyContent: "center"
94
+ justifyContent: "center",
85
95
  },
86
96
  value: {
87
97
  backgroundColor: "transparent",
@@ -100,14 +110,14 @@ const styles = react_native_1.StyleSheet.create({
100
110
  fontSize: 11,
101
111
  paddingLeft: 1,
102
112
  fontWeight: "bold",
103
- textAlign: "center"
113
+ textAlign: "center",
104
114
  },
105
115
  valueActive: {
106
116
  backgroundColor: "#00B3FF",
107
117
  borderColor: "#00B3FF",
108
- borderWidth: 1
118
+ borderWidth: 1,
109
119
  },
110
120
  valueTextActive: {
111
121
  color: "#ffffff",
112
- }
122
+ },
113
123
  });
@@ -3,10 +3,12 @@ import { ImageSourcePropType, StyleProp } from "react-native";
3
3
  declare type Props = {
4
4
  style?: StyleProp<any>;
5
5
  avatarStyle?: StyleProp<any>;
6
+ icon?: string;
6
7
  userName: string;
7
8
  avatar: ImageSourcePropType;
8
9
  color?: string;
9
10
  isOnline?: boolean;
11
+ onNamePress?: () => void;
10
12
  };
11
13
  export declare const MenuUserItemComponent: React.FC<Props>;
12
14
  export declare const MenuUserItem: React.FC<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuUserItem.d.ts","sourceRoot":"","sources":["../../src/Menus/MenuUserItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAKhF,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4BjD,CAAC;AAgCF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAqC,CAAC"}
1
+ {"version":3,"file":"MenuUserItem.d.ts","sourceRoot":"","sources":["../../src/Menus/MenuUserItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,mBAAmB,EACnB,SAAS,EAIV,MAAM,cAAc,CAAC;AAKtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAqDjD,CAAC;AAmCF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAqC,CAAC"}
@@ -9,13 +9,18 @@ const react_native_1 = require("react-native");
9
9
  const Utils_1 = require("../Utils");
10
10
  const Typography_1 = require("../Typography");
11
11
  const Themes_1 = require("../Themes");
12
- const MenuUserItemComponent = ({ children, color, isOnline, avatar, style, avatarStyle, userName, }) => {
12
+ const MenuUserItemComponent = ({ children, color, isOnline, avatar, icon, style, onNamePress, avatarStyle, userName, }) => {
13
13
  const { baseTextColor } = Themes_1.useColors();
14
14
  const textColor = color ? color : baseTextColor;
15
+ const _renerContent = () => {
16
+ return (react_1.default.createElement(react_1.default.Fragment, null,
17
+ !!icon && (react_1.default.createElement(Typography_1.Typography, { size: 14, style: styles.icon }, icon)),
18
+ !!avatar && (react_1.default.createElement(Utils_1.FadeImage, { opacity: 0.1, source: avatar, style: [styles.avatar, avatarStyle] })),
19
+ !!isOnline && react_1.default.createElement(react_native_1.View, { style: styles.isOnline }),
20
+ react_1.default.createElement(Typography_1.Typography, { size: 14, color: textColor, style: styles.name }, userName)));
21
+ };
15
22
  return (react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, style] },
16
- !!avatar && (react_1.default.createElement(Utils_1.FadeImage, { opacity: 0.1, source: avatar, style: [styles.avatar, avatarStyle] })),
17
- !!isOnline && react_1.default.createElement(react_native_1.View, { style: styles.isOnline }),
18
- react_1.default.createElement(Typography_1.Typography, { size: 14, color: textColor, style: styles.name }, userName),
23
+ !!onNamePress ? (react_1.default.createElement(react_native_1.TouchableOpacity, { onPress: onNamePress, style: { flex: 1, flexDirection: "row" } }, _renerContent())) : (_renerContent()),
19
24
  children));
20
25
  };
21
26
  exports.MenuUserItemComponent = MenuUserItemComponent;
@@ -34,6 +39,9 @@ const styles = react_native_1.StyleSheet.create({
34
39
  marginRight: 8,
35
40
  borderRadius: 5,
36
41
  },
42
+ icon: {
43
+ marginRight: 10,
44
+ },
37
45
  name: {
38
46
  flex: 1,
39
47
  },
@@ -106,7 +106,7 @@ const styles = react_native_1.StyleSheet.create({
106
106
  },
107
107
  flatList: {
108
108
  paddingHorizontal: 8,
109
- backgroundColor: "#E2D2EE",
109
+ backgroundColor: "#ffffff66",
110
110
  borderRadius: 16,
111
111
  },
112
112
  flatListDark: {
@@ -144,7 +144,7 @@ const styles = react_native_1.StyleSheet.create({
144
144
  // backgroundColor: "rgba(162,157,157,0.4)",
145
145
  },
146
146
  messageUserCenter: {
147
- alignSelf: "center",
147
+ //alignSelf: "center",
148
148
  paddingLeft: 30,
149
149
  },
150
150
  messageUserView: {
@@ -154,9 +154,9 @@ const styles = react_native_1.StyleSheet.create({
154
154
  marginRight: 6,
155
155
  },
156
156
  messageUser: {
157
- lineHeight: 14,
157
+ lineHeight: 18,
158
158
  color: "#ffffff",
159
- fontSize: 10,
159
+ fontSize: 14,
160
160
  paddingVertical: 2,
161
161
  paddingHorizontal: 8,
162
162
  },
@@ -173,8 +173,8 @@ const styles = react_native_1.StyleSheet.create({
173
173
  },
174
174
  messageTextCenter: {
175
175
  paddingHorizontal: 20,
176
- alignSelf: "center",
177
- textAlign: "center",
176
+ // alignSelf: "center",
177
+ // textAlign: "center",
178
178
  },
179
179
  messageNumber: {
180
180
  backgroundColor: "rgba(42,40,40,0.4)",
@@ -193,7 +193,8 @@ const styles = react_native_1.StyleSheet.create({
193
193
  color: "#ffffff",
194
194
  textAlign: "center",
195
195
  fontWeight: "bold",
196
- fontSize: 12,
196
+ fontSize: 14,
197
+ lineHeight: 16,
197
198
  },
198
199
  lightText: {
199
200
  color: "#cecece",
@@ -9,6 +9,7 @@ declare type Props = {
9
9
  onMenuPress?: (event?: GestureResponderEvent) => void;
10
10
  onUserPress?: (event?: GestureResponderEvent) => void;
11
11
  onMarketPress?: (event?: GestureResponderEvent) => void;
12
+ renderStartButton?: (any: any) => void;
12
13
  };
13
14
  export declare const UserBar: React.FC<Props>;
14
15
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"UserBar.d.ts","sourceRoot":"","sources":["../../src/Navbars/UserBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,qBAAqB,EAGrB,SAAS,EAGV,MAAM,cAAc,CAAC;AAMtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACzD,CAAC;AAKF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA0GnC,CAAC"}
1
+ {"version":3,"file":"UserBar.d.ts","sourceRoot":"","sources":["../../src/Navbars/UserBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,qBAAqB,EAGrB,SAAS,EAGV,MAAM,cAAc,CAAC;AAatB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACxD,iBAAiB,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CACnC,CAAC;AAKF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuHnC,CAAC"}
@@ -12,7 +12,7 @@ const Typography_1 = require("../Typography");
12
12
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
13
13
  const goldIcon = require("../assets/images/gold.png");
14
14
  const diamondIcon = require("../assets/images/diamond.png");
15
- const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress }) => {
15
+ const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress, renderStartButton, }) => {
16
16
  const animation = new react_native_1.Animated.Value(-200);
17
17
  const animationRef = react_1.default.useRef(animation);
18
18
  const baseTextColor = "#ffffff";
@@ -28,7 +28,7 @@ const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress }) => {
28
28
  delay: 400,
29
29
  duration: 600,
30
30
  useNativeDriver: true,
31
- easing: react_native_1.Easing.out(react_native_1.Easing.back(1))
31
+ easing: react_native_1.Easing.out(react_native_1.Easing.back(1)),
32
32
  }).start();
33
33
  }, []);
34
34
  const translateY = animationRef.current;
@@ -36,7 +36,7 @@ const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress }) => {
36
36
  return (react_1.default.createElement(react_native_1.Animated.View, { style: [
37
37
  styles.wrapper,
38
38
  { transform: [{ translateY }] },
39
- apperence ? styles[apperence] : {}
39
+ apperence ? styles[apperence] : {},
40
40
  ] },
41
41
  react_1.default.createElement(react_native_1.View, { style: [styles.safeArea, { marginTop: insets.top + 50 }] },
42
42
  react_1.default.createElement(Utils_1.Stack, { type: "horizontal", style: { alignItems: "center", paddingRight: 10 }, space: "none" },
@@ -49,6 +49,10 @@ const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress }) => {
49
49
  react_1.default.createElement(Typography_1.Typography, { color: baseTextColor, size: nameSize, style: { maxWidth: 150, flex: 0 } }, user.name)),
50
50
  react_1.default.createElement(Utils_1.Flex, null),
51
51
  react_1.default.createElement(Views_1.TouchableView, { out: true, onPress: onMarketPress, style: styles.pressables },
52
+ !gold &&
53
+ !diamond &&
54
+ !!renderStartButton &&
55
+ renderStartButton(user),
52
56
  !!gold && (react_1.default.createElement(react_1.default.Fragment, null,
53
57
  react_1.default.createElement(react_native_1.Image, { source: goldIcon, style: styles.icon, accessibilityLabel: "Alt\u0131nlar\u0131n:" }),
54
58
  react_1.default.createElement(Typography_1.Typography, { color: baseTextColor }, gold))),
@@ -63,22 +67,22 @@ const styles = react_native_1.StyleSheet.create({
63
67
  borderBottomLeftRadius: 32,
64
68
  borderBottomRightRadius: 32,
65
69
  paddingBottom: 2,
66
- marginTop: -50
70
+ marginTop: -50,
67
71
  },
68
72
  isAdmin: {
69
73
  borderColor: "#FF242E99",
70
74
  borderWidth: 2,
71
75
  marginLeft: -2,
72
- marginRight: -2
76
+ marginRight: -2,
73
77
  },
74
78
  isMod: {
75
79
  borderColor: "#ffff00AA",
76
80
  borderWidth: 2,
77
81
  marginLeft: -2,
78
- marginRight: -2
82
+ marginRight: -2,
79
83
  },
80
84
  safeArea: {
81
- flexDirection: "column"
85
+ flexDirection: "column",
82
86
  },
83
87
  avatarBorder: {
84
88
  marginLeft: -5,
@@ -91,19 +95,19 @@ const styles = react_native_1.StyleSheet.create({
91
95
  avatar: {
92
96
  height: 34,
93
97
  width: 34,
94
- backgroundColor: "#00000033"
98
+ backgroundColor: "#00000033",
95
99
  },
96
100
  pressables: {
97
101
  flexDirection: "row",
98
102
  alignItems: "center",
99
103
  flexWrap: "nowrap",
100
- padding: 10
104
+ padding: 10,
101
105
  },
102
106
  icon: {
103
107
  height: 20,
104
108
  width: 24,
105
109
  margin: 5,
106
- resizeMode: "contain"
110
+ resizeMode: "contain",
107
111
  },
108
112
  badge: {
109
113
  backgroundColor: "red",
@@ -117,6 +121,6 @@ const styles = react_native_1.StyleSheet.create({
117
121
  marginRight: -6,
118
122
  position: "relative",
119
123
  top: -5,
120
- left: -5
121
- }
124
+ left: -5,
125
+ },
122
126
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../src/Players/PlayerPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAKY,SAAS,EAC3B,MAAM,cAAc,CAAC;AAKtB,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAiOzC,CAAC"}
1
+ {"version":3,"file":"PlayerPreview.d.ts","sourceRoot":"","sources":["../../src/Players/PlayerPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAML,SAAS,EACV,MAAM,cAAc,CAAC;AAKtB,aAAK,KAAK,GAAG;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4OzC,CAAC"}
@@ -28,8 +28,8 @@ const react_native_1 = require("react-native");
28
28
  const react_native_linear_gradient_1 = __importDefault(require("react-native-linear-gradient"));
29
29
  const Animatable = __importStar(require("react-native-animatable"));
30
30
  const Utils_1 = require("../Utils");
31
- const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, deadAvatar, role, customName, frame, roles = [], deadBg, userData = {} }) => {
32
- const { alwaysFirstActive, alwaysLastActive, primaryRoleActive, customNameActive, customFrame, customFrameActive, frameActive, primaryRole } = userData;
31
+ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, deadAvatar, role, customName, frame, roles = [], deadBg, userData = {}, }) => {
32
+ const { alwaysFirstActive, alwaysLastActive, primaryRoleActive, customNameActive, customFrame, customFrameActive, frameActive, primaryRole, } = userData;
33
33
  let colors = ["#71a6d6", "#56C0BE", "#6b9fcb"];
34
34
  let borderColor = "";
35
35
  const gold = parseFloat(userData.gold) || 0;
@@ -37,9 +37,10 @@ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, dead
37
37
  const isWhiteBorder = userData.isAnonymous === false;
38
38
  const isGoldBorder = gold > 80000;
39
39
  const isGoldGift = gold > 120000;
40
+ const isGoldGift2 = gold > 500000;
40
41
  const isDiamondBorder = diamond > 0;
41
42
  const isDiamondTheme = diamond > 10;
42
- isGoldBorder && (colors = ['#71a6d6', '#56C0BE', '#efd979']);
43
+ isGoldBorder && (colors = ["#71a6d6", "#56C0BE", "#efd979"]);
43
44
  isWhiteBorder && (borderColor = "#ffffff");
44
45
  if (isDiamondBorder) {
45
46
  colors[0] = "#a7abff";
@@ -61,7 +62,7 @@ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, dead
61
62
  borderColor = bc;
62
63
  }
63
64
  if (deadBg) {
64
- colors = ['#292929cc', '#00000044', '#292929cc'];
65
+ colors = ["#292929cc", "#00000044", "#292929cc"];
65
66
  borderColor = isWhiteBorder ? "#ffffff" : "";
66
67
  }
67
68
  const gifts = [];
@@ -78,23 +79,20 @@ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, dead
78
79
  gifts.push(userData.alwaysGift);
79
80
  }
80
81
  if (isGoldGift && gifts.length < 2) {
81
- gifts.push('');
82
+ gifts.push(isGoldGift2 ? "🌟" : "");
82
83
  }
83
84
  if (isDiamondTheme && gifts.length < 2) {
84
- gifts.push('💎');
85
+ gifts.push("💎");
85
86
  }
86
87
  const giftIndex = !!gifts ? gifts.length : 0;
87
88
  let giftsArray = !!gifts
88
- ? Object.keys(gifts)
89
- .sort()
90
- .reverse()
91
- .slice(0, 2)
89
+ ? Object.keys(gifts).sort().reverse().slice(0, 2)
92
90
  : [];
93
- giftsArray = gifts ? giftsArray.map(time => gifts[time]).reverse() : [];
91
+ giftsArray = gifts ? giftsArray.map((time) => gifts[time]).reverse() : [];
94
92
  const selectedRole = role
95
- ? roles.filter(item => item.key === role)[0]
93
+ ? roles.filter((item) => item.key === role)[0]
96
94
  : primaryRoleActive
97
- ? roles.filter(item => item.key === primaryRole)[0]
95
+ ? roles.filter((item) => item.key === primaryRole)[0]
98
96
  : null;
99
97
  const selectedNumber = number
100
98
  ? number
@@ -114,19 +112,19 @@ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, dead
114
112
  fontWeight: "bold",
115
113
  textShadowColor: "rgba(0, 0, 0, 0.1)",
116
114
  textShadowOffset: { width: 1, height: 1 },
117
- textShadowRadius: 5
115
+ textShadowRadius: 5,
118
116
  };
119
117
  }
120
118
  }
121
119
  const deadAnimRef = react_1.default.useRef(null);
122
120
  const avatarSource = Utils_1.Assets.getSource("avatar", userData.avatar);
123
121
  const renderContent = () => {
124
- return react_1.default.createElement(react_1.default.Fragment, null,
122
+ return (react_1.default.createElement(react_1.default.Fragment, null,
125
123
  react_1.default.createElement(react_native_1.Text, { style: [styles.name, userNameColor], numberOfLines: 1 }, userName),
126
124
  deadAvatar ? (react_1.default.createElement(Animatable.View, { animation: "slideInUp", ref: deadAnimRef },
127
125
  react_1.default.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("tombStone", deadAvatar), style: [
128
126
  styles.deadAvatar,
129
- selectedRole ? { bottom: 12, height: "80%" } : {}
127
+ selectedRole ? { bottom: 12, height: "80%" } : {},
130
128
  ] }))) : (react_1.default.createElement(react_native_1.Image, { source: avatarSource, style: styles.avatar })),
131
129
  !!giftsArray.length && (react_1.default.createElement(react_native_1.View, { style: styles.gifts }, giftsArray.map((item, key) => {
132
130
  return item.indexOf("a") === 0 ? (react_1.default.createElement(Animatable.Image, { animation: "bounceIn", duration: 2000, source: Utils_1.Assets.getSource("gift", item), useNativeDriver: true, key: `${key}`, style: styles.giftImage })) : (react_1.default.createElement(Animatable.Text, { animation: "bounceIn", useNativeDriver: true, duration: 2000, key: key + giftIndex, style: styles.gift }, item));
@@ -135,10 +133,9 @@ const PlayerPreview = ({ alwaysGift, tempGift, bg, bc, name, number, style, dead
135
133
  react_1.default.createElement(react_native_1.Text, { style: styles.numberText, accessibilityLabel: `${selectedNumber} numara` }, selectedNumber ? selectedNumber : "5")),
136
134
  selectedRole && (react_1.default.createElement(react_native_1.View, { style: styles.roleBar },
137
135
  react_1.default.createElement(Animatable.Image, { accessibilityLabel: role, useNativeDriver: true, animation: "slideInUp", style: styles.roleImage, source: Utils_1.Assets.getSource("role", selectedRole.key) }),
138
- react_1.default.createElement(Animatable.Text, { useNativeDriver: true, animation: "slideInUp", delay: 100, style: styles.roleName }, selectedRole.name))));
136
+ react_1.default.createElement(Animatable.Text, { useNativeDriver: true, animation: "slideInUp", delay: 100, style: styles.roleName }, selectedRole.name)))));
139
137
  };
140
- return react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, !!borderColor && { borderColor }, style] }, (!deadBg && frame !== null && (frame || frameActive)) ? react_1.default.createElement(react_native_1.ImageBackground, { source: Utils_1.Assets.getSource("frame", frame || userData.frame), style: styles.profile, imageStyle: styles.profileBgImage }, renderContent()) :
141
- react_1.default.createElement(react_native_linear_gradient_1.default, { style: styles.profile, colors: colors, start: { x: 1, y: 0 } }, renderContent()));
138
+ return (react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, !!borderColor && { borderColor }, style] }, !deadBg && frame !== null && (frame || frameActive) ? (react_1.default.createElement(react_native_1.ImageBackground, { source: Utils_1.Assets.getSource("frame", frame || userData.frame), style: styles.profile, imageStyle: styles.profileBgImage }, renderContent())) : (react_1.default.createElement(react_native_linear_gradient_1.default, { style: styles.profile, colors: colors, start: { x: 1, y: 0 } }, renderContent()))));
142
139
  };
143
140
  exports.PlayerPreview = PlayerPreview;
144
141
  const styles = react_native_1.StyleSheet.create({
@@ -162,7 +159,7 @@ const styles = react_native_1.StyleSheet.create({
162
159
  height: 150,
163
160
  borderRadius: 20,
164
161
  resizeMode: "cover",
165
- overflow: "hidden"
162
+ overflow: "hidden",
166
163
  },
167
164
  profileBgImage: {
168
165
  borderRadius: 6,
@@ -173,7 +170,7 @@ const styles = react_native_1.StyleSheet.create({
173
170
  lineHeight: 32,
174
171
  fontSize: 13,
175
172
  fontWeight: "bold",
176
- textAlign: "center"
173
+ textAlign: "center",
177
174
  },
178
175
  avatar: {
179
176
  width: 80,
@@ -182,29 +179,29 @@ const styles = react_native_1.StyleSheet.create({
182
179
  marginRight: "auto",
183
180
  borderRadius: 5,
184
181
  backgroundColor: "#ffffff",
185
- resizeMode: "contain"
182
+ resizeMode: "contain",
186
183
  },
187
184
  deadAvatar: {
188
185
  width: 110,
189
186
  height: 116,
190
187
  marginLeft: "auto",
191
188
  marginRight: "auto",
192
- backgroundColor: "transparent"
189
+ backgroundColor: "transparent",
193
190
  },
194
191
  gifts: {
195
192
  position: "absolute",
196
193
  right: 0,
197
194
  bottom: "20%",
198
195
  marginTop: -11,
199
- zIndex: 10
196
+ zIndex: 10,
200
197
  },
201
198
  gift: {
202
199
  fontSize: 36,
203
- marginTop: -10
200
+ marginTop: -10,
204
201
  },
205
202
  container: {
206
203
  backgroundColor: "#232323",
207
- flex: 1
204
+ flex: 1,
208
205
  },
209
206
  number: {
210
207
  position: "absolute",
@@ -216,17 +213,17 @@ const styles = react_native_1.StyleSheet.create({
216
213
  height: 20,
217
214
  borderRadius: 13,
218
215
  alignItems: "center",
219
- justifyContent: "center"
216
+ justifyContent: "center",
220
217
  },
221
218
  numberText: {
222
219
  color: "#343434",
223
220
  fontWeight: "700",
224
221
  fontSize: 14,
225
- lineHeight: 16
222
+ lineHeight: 16,
226
223
  },
227
224
  giftImage: {
228
225
  width: 42,
229
- height: 42
226
+ height: 42,
230
227
  },
231
228
  roleBar: {
232
229
  backgroundColor: "#ffffff",
@@ -234,19 +231,19 @@ const styles = react_native_1.StyleSheet.create({
234
231
  justifyContent: "center",
235
232
  height: 30,
236
233
  marginTop: "auto",
237
- flexDirection: "row"
234
+ flexDirection: "row",
238
235
  },
239
236
  roleImage: {
240
237
  height: 20,
241
238
  width: 20,
242
239
  resizeMode: "contain",
243
240
  tintColor: "#3e7938",
244
- marginHorizontal: 2
241
+ marginHorizontal: 2,
245
242
  },
246
243
  roleName: {
247
244
  color: "#206a1d",
248
245
  marginHorizontal: 2,
249
246
  fontSize: 12,
250
- fontWeight: "700"
251
- }
247
+ fontWeight: "700",
248
+ },
252
249
  });
@@ -4,6 +4,7 @@ declare type Props = {
4
4
  icon?: ImageSourcePropType;
5
5
  title?: string;
6
6
  team?: string;
7
+ iconButton?: () => React.ReactElement;
7
8
  fontSize?: number;
8
9
  teamText?: string;
9
10
  style?: StyleProp<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"RoleInfoBox.d.ts","sourceRoot":"","sources":["../../src/Roles/RoleInfoBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,mBAAmB,EAAE,SAAS,EAAoB,MAAM,cAAc,CAAC;AAIvF,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+BvC,CAAC"}
1
+ {"version":3,"file":"RoleInfoBox.d.ts","sourceRoot":"","sources":["../../src/Roles/RoleInfoBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAGV,MAAM,cAAc,CAAC;AAItB,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,KAAK,CAAC,YAAY,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwCvC,CAAC"}
@@ -8,36 +8,44 @@ const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
9
  const Typography_1 = require("../Typography");
10
10
  const Themes_1 = require("../Themes");
11
- const RoleInfoBox = ({ children, icon, team, title, teamText = "Takım", fontSize = 14, style }) => {
11
+ const RoleInfoBox = ({ children, icon, team, title, iconButton, teamText = "Takım", fontSize = 14, style, }) => {
12
12
  const { baseTextColor } = Themes_1.useColors();
13
13
  return (react_1.default.createElement(react_native_1.View, { style: [styles.base, style] },
14
- !!icon && (react_1.default.createElement(react_native_1.Image, { source: icon, style: [styles.icon, { tintColor: baseTextColor }] })),
15
- react_1.default.createElement(react_native_1.View, { style: styles.info },
14
+ !!icon && (react_1.default.createElement(react_native_1.View, { style: styles.iconWrapper },
15
+ react_1.default.createElement(react_native_1.Image, { source: icon, style: [styles.icon, { tintColor: baseTextColor }] }),
16
16
  !!title && (react_1.default.createElement(Typography_1.Typography, { bold: true, size: fontSize + 5, style: styles.name }, title)),
17
+ !!iconButton && iconButton())),
18
+ react_1.default.createElement(react_native_1.View, { style: styles.info },
17
19
  react_1.default.createElement(Typography_1.Typography, { style: styles.description, size: fontSize }, children),
18
- !!team && react_1.default.createElement(Typography_1.Typography, { bold: true, size: fontSize },
20
+ !!team && (react_1.default.createElement(Typography_1.Typography, { bold: true, size: fontSize },
19
21
  teamText,
20
22
  ": ",
21
- team))));
23
+ team)))));
22
24
  };
23
25
  exports.RoleInfoBox = RoleInfoBox;
24
26
  const styles = react_native_1.StyleSheet.create({
25
27
  base: {
26
28
  flexDirection: "row",
27
- marginBottom: 40
29
+ marginBottom: 40,
28
30
  },
29
31
  icon: {
30
32
  width: 64,
31
33
  height: 64,
32
- marginRight: 16,
33
- resizeMode: "contain"
34
+ alignSelf: "center",
35
+ resizeMode: "contain",
34
36
  },
35
- info: { flex: 1 },
37
+ info: { flex: 1, justifyContent: "center", paddingVertical: 10 },
36
38
  name: {
37
39
  fontFamily: "Righteous-Regular",
38
- marginBottom: 5
40
+ textAlign: "center",
41
+ },
42
+ iconWrapper: {
43
+ flexDirection: "column",
44
+ alignItems: "center",
45
+ justifyContent: "center",
46
+ marginRight: 10,
39
47
  },
40
48
  description: {
41
- marginBottom: 5
42
- }
49
+ marginBottom: 5,
50
+ },
43
51
  });
@@ -14,6 +14,8 @@ export declare type ScreenBaseProps = {
14
14
  onAccept?: (any: any) => void;
15
15
  onLeftPress?: (any: any) => void;
16
16
  leftButtonIcon?: string;
17
+ leftButtonColor?: string;
18
+ leftButtonIconColor?: string;
17
19
  leftButtonFont?: string;
18
20
  leftButtonLabel?: string;
19
21
  renderHeader?: React.Component | React.FC | JSX.Element | string | number;
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenBase.d.ts","sourceRoot":"","sources":["../../src/Screens/ScreenBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAEnB,SAAS,EAGV,MAAM,cAAc,CAAC;AAOtB,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAqGhD,CAAC"}
1
+ {"version":3,"file":"ScreenBase.d.ts","sourceRoot":"","sources":["../../src/Screens/ScreenBase.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAEnB,SAAS,EAGV,MAAM,cAAc,CAAC;AAOtB,oBAAY,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,EAAE,GAAG,GAAG,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyGhD,CAAC"}
@@ -11,7 +11,7 @@ const ScreenFooter_1 = require("./ScreenFooter");
11
11
  const ScreenHeader_1 = require("./ScreenHeader");
12
12
  const Themes_1 = require("../Themes");
13
13
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
14
- const ScreenBase = ({ children, style, contentStyle = {}, icon, title, onBack, background, scrollable, transparent, onAccept, noPaddings, renderHeader, acceptText, onLeftPress, leftButtonIcon, leftButtonLabel, leftButtonFont, }) => {
14
+ const ScreenBase = ({ children, style, contentStyle = {}, icon, title, onBack, background, scrollable, transparent, onAccept, noPaddings, renderHeader, acceptText, onLeftPress, leftButtonIcon, leftButtonColor, leftButtonIconColor, leftButtonLabel, leftButtonFont, }) => {
15
15
  const { dimBackgroundColorTransparent } = Themes_1.useColors();
16
16
  const insets = react_native_safe_area_context_1.useSafeAreaInsets();
17
17
  const renderContent = () => {
@@ -50,6 +50,8 @@ const ScreenBase = ({ children, style, contentStyle = {}, icon, title, onBack, b
50
50
  leftButtonIcon,
51
51
  leftButtonFont,
52
52
  leftButtonLabel,
53
+ leftButtonColor,
54
+ leftButtonIconColor,
53
55
  }), title)) : null)),
54
56
  react_1.default.createElement(ScreenFooter_1.ScreenFooter, { onBack: onBack, onAccept: onAccept, acceptText: acceptText })));
55
57
  };
@@ -6,6 +6,8 @@ declare type Props = {
6
6
  onLeftPress?: (any: any) => void;
7
7
  leftButtonIcon?: string;
8
8
  leftButtonFont?: string;
9
+ leftButtonColor?: string;
10
+ leftButtonIconColor?: string;
9
11
  leftButtonLabel?: string;
10
12
  };
11
13
  export declare const ScreenHeader: React.FC<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenHeader.d.ts","sourceRoot":"","sources":["../../src/Screens/ScreenHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,mBAAmB,EAAE,SAAS,EAA0B,MAAM,cAAc,CAAC;AAI7F,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2BxC,CAAC"}
1
+ {"version":3,"file":"ScreenHeader.d.ts","sourceRoot":"","sources":["../../src/Screens/ScreenHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EACnB,SAAS,EAIV,MAAM,cAAc,CAAC;AAItB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,WAAW,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAyCxC,CAAC"}
@@ -8,7 +8,7 @@ const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
9
  const Buttons_1 = require("../Buttons");
10
10
  const Utils_1 = require("../Utils");
11
- const ScreenHeader = ({ children, style, icon, onLeftPress, leftButtonIcon, leftButtonFont, leftButtonLabel }) => {
11
+ const ScreenHeader = ({ children, style, icon, onLeftPress, leftButtonIcon, leftButtonFont, leftButtonLabel, leftButtonColor, leftButtonIconColor, }) => {
12
12
  if (!children && !icon) {
13
13
  return null;
14
14
  }
@@ -17,8 +17,11 @@ const ScreenHeader = ({ children, style, icon, onLeftPress, leftButtonIcon, left
17
17
  react_1.default.createElement(react_native_1.View, { style: styles.title },
18
18
  !!icon && react_1.default.createElement(react_native_1.Image, { source: icon, style: styles.titleIcon }),
19
19
  react_1.default.createElement(react_native_1.Text, { style: styles.titleText }, children))),
20
- !!onLeftPress && (react_1.default.createElement(Buttons_1.FabButton, { style: styles.leftButton, onPress: onLeftPress, accessibilityLabel: leftButtonLabel },
21
- react_1.default.createElement(Utils_1.Icon, { name: leftButtonIcon, size: 20, font: leftButtonFont })))));
20
+ !!onLeftPress && (react_1.default.createElement(Buttons_1.FabButton, { style: [
21
+ styles.leftButton,
22
+ leftButtonColor && { backgroundColor: leftButtonColor },
23
+ ], onPress: onLeftPress, accessibilityLabel: leftButtonLabel },
24
+ react_1.default.createElement(Utils_1.Icon, { name: leftButtonIcon, size: 20, color: leftButtonIconColor, font: leftButtonFont })))));
22
25
  };
23
26
  exports.ScreenHeader = ScreenHeader;
24
27
  const styles = react_native_1.StyleSheet.create({
@@ -27,18 +30,18 @@ const styles = react_native_1.StyleSheet.create({
27
30
  top: 0,
28
31
  left: 0,
29
32
  right: 0,
30
- flexDirection: "row"
33
+ flexDirection: "row",
31
34
  },
32
35
  leftButton: {
33
36
  zIndex: 2,
34
37
  left: 0,
35
- top: 3
38
+ top: 3,
36
39
  },
37
40
  titleWrapper: {
38
41
  position: "absolute",
39
42
  left: 0,
40
43
  right: 0,
41
- top: 0
44
+ top: 0,
42
45
  },
43
46
  title: {
44
47
  backgroundColor: "#00B3FF",
@@ -54,24 +57,24 @@ const styles = react_native_1.StyleSheet.create({
54
57
  shadowColor: "#000000",
55
58
  shadowOffset: {
56
59
  width: 4,
57
- height: 6
60
+ height: 6,
58
61
  },
59
62
  shadowOpacity: 0.25,
60
63
  shadowRadius: 5,
61
- elevation: 5
64
+ elevation: 5,
62
65
  },
63
66
  titleIcon: {
64
67
  marginRight: 8,
65
68
  width: 20,
66
69
  height: 20,
67
70
  resizeMode: "contain",
68
- tintColor: "#ffffff"
71
+ tintColor: "#ffffff",
69
72
  },
70
73
  titleText: {
71
74
  color: "#ffffff",
72
75
  fontWeight: "bold",
73
76
  fontFamily: "Righteous-Regular",
74
77
  fontSize: 16,
75
- lineHeight: 22
76
- }
78
+ lineHeight: 22,
79
+ },
77
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koylu-vampir-design",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Design System for Koylu Vampir Game",
5
5
  "keywords": [
6
6
  "react-native",