koylu-vampir-design 1.0.19 → 1.0.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.
@@ -14,7 +14,7 @@ const AlertButtons = ({ options, payload }) => {
14
14
  options.onAccept(payload);
15
15
  };
16
16
  return (react_1.default.createElement(react_native_1.View, { style: styles.buttons },
17
- react_1.default.createElement(__1.MenuButton, { style: styles.button, size: "medium", type: "outline", onPress: options.onClose ? options.onClose : () => closeAlert() }, options.cancelText ? options.cancelText : options.onAccept ? "VAZGEÇ" : "KAPAT"),
17
+ react_1.default.createElement(__1.MenuButton, { style: styles.button, size: "medium", type: options.cancelType || "outline", onPress: options.onClose ? options.onClose : () => closeAlert() }, options.cancelText ? options.cancelText : options.onAccept ? "VAZGEÇ" : "KAPAT"),
18
18
  !!options.onAccept && (react_1.default.createElement(__1.MenuButton, { style: styles.button, size: "medium", type: options.acceptType || "success", onPress: onAcceptPress }, options.acceptText || "UYGULA"))));
19
19
  };
20
20
  exports.AlertButtons = AlertButtons;
@@ -8,6 +8,7 @@ declare type AlertOptionsType = {
8
8
  currentValue?: string;
9
9
  acceptType?: string;
10
10
  cancelText?: string;
11
+ cancelType?: string;
11
12
  description?: string;
12
13
  };
13
14
  declare type AlertProp = {
@@ -1 +1 @@
1
- {"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../src/Alerts/AlertProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,aAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU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ACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,aAAK,SAAS,GAAG;IACf,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC/D,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3E,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7F,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB,CAAC;AAIF,eAAO,MAAM,YAAY,0BAKvB,CAAC;AAEH,eAAO,MAAM,QAAQ,iBAAuC,CAAC;AAC7D,aAAK,UAAU,GAAG,EAAE,CAAA;AAEpB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwE9C,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import * as React from "react";
2
2
  import { GestureResponderEvent } from "react-native";
3
3
  declare type Props = {
4
- treasure: number;
4
+ readyButtonText: string;
5
+ readyText: string;
5
6
  onReadyPress: (event?: GestureResponderEvent) => void;
6
7
  };
7
8
  export declare const TreasureInfo: React.FC<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"TreasureInfo.d.ts","sourceRoot":"","sources":["../../src/GameParts/TreasureInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAiC,MAAM,cAAc,CAAC;AAKpF,aAAK,KAAK,GAAG;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+BvC,CAAC"}
1
+ {"version":3,"file":"TreasureInfo.d.ts","sourceRoot":"","sources":["../../src/GameParts/TreasureInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAiC,MAAM,cAAc,CAAC;AAMpF,aAAK,KAAK,GAAG;IACX,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD,CAAA;AACD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuBvC,CAAC"}
@@ -28,26 +28,15 @@ const react_native_1 = require("react-native");
28
28
  const Buttons_1 = require("../Buttons");
29
29
  const react_native_linear_gradient_1 = __importDefault(require("react-native-linear-gradient"));
30
30
  const Utils_1 = require("../Utils");
31
- exports.TreasureInfo = React.memo(({ treasure, onReadyPress }) => {
32
- const winElement = treasure < 10 ? "elmas" : "altın";
33
- const winElementShareText = treasure < 10
34
- ? "Oyun sonunda hazinedeki elmaslar tüm kazananalara dağıtılacak."
35
- : "Oyun sonunda hazinedeki altınlar kazananalar arasında paylaştırılacaktır.";
36
- return (React.createElement(react_native_1.View, { style: styles.wrapper },
37
- React.createElement(react_native_linear_gradient_1.default, { colors: ["#206A97", "#56C0BE", "#dc72ff"], start: { x: 0.5, y: 0 }, end: { x: 0.8, y: 1.2 }, style: styles.frame },
38
- React.createElement(react_native_1.View, { style: styles.info },
39
- React.createElement(react_native_1.Text, { style: styles.infoText },
40
- "Bu k\u00F6y\u00FCn hazinesinde tam",
41
- "\n",
42
- React.createElement(react_native_1.Text, { style: styles.boldText }, treasure),
43
- " ",
44
- winElement,
45
- " ",
46
- "var. ",
47
- "\n",
48
- winElementShareText),
49
- React.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("image", "prize"), style: styles.infoImage })),
50
- React.createElement(Buttons_1.MenuButton, { type: "success", size: "large", onPress: onReadyPress }, "HAZIRIM"))));
31
+ const Themes_1 = require("../Themes");
32
+ exports.TreasureInfo = React.memo(({ readyButtonText, readyText, onReadyPress }) => {
33
+ return (React.createElement(Themes_1.ThemeProvider, { appearance: "dark" },
34
+ React.createElement(react_native_1.View, { style: styles.wrapper },
35
+ React.createElement(react_native_linear_gradient_1.default, { colors: ["#206A97", "#56C0BE", "#dc72ff"], start: { x: 0.5, y: 1 }, end: { x: 0.8, y: 1.2 }, style: styles.frame },
36
+ React.createElement(react_native_1.View, { style: styles.info },
37
+ React.createElement(react_native_1.Text, { style: styles.infoText }, readyText),
38
+ React.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("image", "prize"), style: styles.infoImage })),
39
+ React.createElement(Buttons_1.MenuButton, { type: "success", size: "large", onPress: onReadyPress }, readyButtonText)))));
51
40
  });
52
41
  const styles = react_native_1.StyleSheet.create({
53
42
  wrapper: {
@@ -99,8 +99,6 @@ const styles = react_native_1.StyleSheet.create({
99
99
  color: "#00B3FF",
100
100
  fontSize: 11,
101
101
  paddingLeft: 1,
102
- borderBottomWidth: 1,
103
- borderColor: "white",
104
102
  fontWeight: "bold",
105
103
  textAlign: "center"
106
104
  },
@@ -6,6 +6,8 @@ declare type Props = {
6
6
  fastMessages?: Array<string>;
7
7
  onSendPress?: (message: string) => void;
8
8
  placeHolder?: string;
9
+ sendButtonText?: string;
10
+ fastMessagesText?: string;
9
11
  };
10
12
  export declare const MessageInput: React.FC<Props>;
11
13
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../src/Messages/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAML,SAAS,EAIV,MAAM,cAAc,CAAC;AAOtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6FxC,CAAC"}
1
+ {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["../../src/Messages/MessageInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAC7D,OAAO,EAML,SAAS,EAIV,MAAM,cAAc,CAAC;AAOtB,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+FxC,CAAC"}
@@ -27,7 +27,7 @@ const Themes_1 = require("../Themes");
27
27
  const Menus_1 = require("../Menus");
28
28
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
29
29
  const Animatable = __importStar(require("react-native-animatable"));
30
- const MessageInput = ({ style, disabled, placeHolder = "", fastMessages, onSendPress }) => {
30
+ const MessageInput = ({ style, disabled, placeHolder = "", fastMessages, onSendPress, sendButtonText = "Gönder", fastMessagesText = "HAZIR MESAJLAR" }) => {
31
31
  const [text, setText] = react_1.useState("");
32
32
  const [showModal, setShowModal] = react_1.useState(false);
33
33
  const lastSent = react_1.useRef(0);
@@ -60,11 +60,11 @@ const MessageInput = ({ style, disabled, placeHolder = "", fastMessages, onSendP
60
60
  };
61
61
  const { baseTextColor, baseBackgroundColor } = Themes_1.useColors();
62
62
  return react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, style] },
63
- react_1.default.createElement(react_native_1.TextInput, { value: text, autoCorrect: false, maxLength: 140, editable: !disabled, keyboardAppearance: placeHolder ? "dark" : "light", enablesReturnKeyAutomatically: false, returnKeyLabel: "Gönder", placeholder: placeHolder || (disabled ? "Yazışma kapalı!" : ""), returnKeyType: "done", onChangeText: setText, onSubmitEditing: () => _onSendPress(), style: [styles.input, { color: baseTextColor, backgroundColor: baseBackgroundColor }] }),
63
+ react_1.default.createElement(react_native_1.TextInput, { value: text, autoCorrect: false, maxLength: 140, editable: !disabled, keyboardAppearance: placeHolder ? "dark" : "light", enablesReturnKeyAutomatically: false, returnKeyLabel: sendButtonText, placeholder: placeHolder || (disabled ? "Yazışma kapalı!" : ""), returnKeyType: "done", onChangeText: setText, onSubmitEditing: () => _onSendPress(), style: [styles.input, { color: baseTextColor, backgroundColor: baseBackgroundColor }] }),
64
64
  react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.mentionButton, disabled: disabled, onPress: () => setShowModal(true), accessibilityLabel: "Hazır mesajlar Mmenüsü" },
65
65
  react_1.default.createElement(Utils_1.Icon, { name: "list", size: 20 })),
66
66
  react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.sendButton, onPress: () => _onSendPress() },
67
- react_1.default.createElement(react_native_1.Text, { style: styles.sendButtonText }, "G\u00F6nder")),
67
+ react_1.default.createElement(react_native_1.Text, { style: styles.sendButtonText }, sendButtonText)),
68
68
  react_1.default.createElement(react_native_1.Modal, { transparent: true, animationType: "none", visible: showModal },
69
69
  react_1.default.createElement(react_native_1.View, { style: styles.modal },
70
70
  react_1.default.createElement(react_native_1.TouchableWithoutFeedback, { style: styles.overlay, onPress: () => setShowModal(false) },
@@ -73,7 +73,7 @@ const MessageInput = ({ style, disabled, placeHolder = "", fastMessages, onSendP
73
73
  marginBottom: insets.bottom + 40,
74
74
  backgroundColor: baseBackgroundColor
75
75
  }] },
76
- react_1.default.createElement(Menus_1.MenuLabel, null, "HAZIR MESAJLAR"),
76
+ react_1.default.createElement(Menus_1.MenuLabel, null, fastMessagesText),
77
77
  react_1.default.createElement(react_native_1.ScrollView, { showsVerticalScrollIndicator: false, style: { maxHeight: 400 } }, !!fastMessages && fastMessages.map(item => {
78
78
  return react_1.default.createElement(Menus_1.MenuItem, { key: item, onPress: () => _quickMessage(item) }, item);
79
79
  }))))));
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/Messages/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoD,SAAS,EAAE,MAAM,cAAc,CAAC;AAI3F,aAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAED,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,GAAG,CAAA;KAAE,CAAC;CAC5E,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAqFvC,CAAC"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["../../src/Messages/MessageList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoD,SAAS,EAAE,MAAM,cAAc,CAAC;AAI3F,aAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAED,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC7B,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,GAAG,CAAA;KAAE,CAAC;CAC5E,CAAA;AAGD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuFvC,CAAC"}
@@ -56,15 +56,15 @@ const MessageList = ({ style, messages, labelFormatter, appearance = "light", fa
56
56
  }
57
57
  return react_1.default.createElement(Animatable.View, { animation: "fadeInUp", duration: 300, style: [styles.messageRow] },
58
58
  react_1.default.createElement(react_native_1.View, { style: [styles.messageWrapper, unFocusMessage] },
59
- react_1.default.createElement(react_native_1.View, { style: [
59
+ react_1.default.createElement(react_native_1.View, { accessible: true, accessibilityLabel: `${item.number ? item.number + ' numara.' : ''} ${displayName}: ${item.message}`, style: [
60
60
  styles.messageUserLabel,
61
61
  isDark ? styles.messageUserLabelNight : {},
62
62
  labelStyle
63
63
  ] },
64
64
  !!item.number && (react_1.default.createElement(react_native_1.View, { style: styles.messageNumber },
65
- react_1.default.createElement(react_native_1.Text, { style: styles.messageNumberText }, item.number))),
66
- react_1.default.createElement(react_native_1.Text, { style: [styles.messageUser] }, displayName)),
67
- react_1.default.createElement(react_native_1.Text, { style: [styles.messageText, textColor] }, item.message)));
65
+ react_1.default.createElement(react_native_1.Text, { style: styles.messageNumberText, accessible: false }, item.number))),
66
+ react_1.default.createElement(react_native_1.Text, { style: [styles.messageUser], accessible: false }, displayName)),
67
+ react_1.default.createElement(react_native_1.Text, { style: [styles.messageText, textColor], accessible: false }, item.message)));
68
68
  };
69
69
  const _onContentSizeChange = () => {
70
70
  var _a;
@@ -6,9 +6,11 @@ declare type Props = {
6
6
  [key: string]: any;
7
7
  };
8
8
  verified?: boolean;
9
+ userCode?: string;
9
10
  verifiedText?: string;
10
11
  editText?: string;
11
12
  onClosePress?: (event?: GestureResponderEvent) => void;
13
+ onUserCodeClick?: () => void;
12
14
  onUserPress?: (event?: GestureResponderEvent) => void;
13
15
  };
14
16
  export declare const UserDrawerBar: React.FC<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"UserDrawerBar.d.ts","sourceRoot":"","sources":["../../src/Navbars/UserDrawerBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAIrB,SAAS,EAIV,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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAqFzC,CAAC"}
1
+ {"version":3,"file":"UserDrawerBar.d.ts","sourceRoot":"","sources":["../../src/Navbars/UserDrawerBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,qBAAqB,EAIrB,SAAS,EAIV,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,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvD,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+FzC,CAAC"}
@@ -10,7 +10,7 @@ const Utils_1 = require("../Utils");
10
10
  const Views_1 = require("../Views");
11
11
  const Typography_1 = require("../Typography");
12
12
  const react_native_safe_area_context_1 = require("react-native-safe-area-context");
13
- const UserDrawerBar = ({ user, verified, onUserPress, onClosePress, editText = "Karakteri Düzenle", verifiedText = "Profil Doğrulanmış.", }) => {
13
+ const UserDrawerBar = ({ user, verified, userCode, onUserCodeClick, onUserPress, onClosePress, editText = "Karakteri Düzenle", verifiedText = "Profil Doğrulanmış.", }) => {
14
14
  const baseTextColor = "#ffffff";
15
15
  const apperence = user.isAdmin ? "isAdmin" : user.isMod ? "isMod" : "";
16
16
  const apperenceText = user.isAdmin ? "ADMIN" : user.isMod ? "MODERATOR" : "";
@@ -36,7 +36,10 @@ const UserDrawerBar = ({ user, verified, onUserPress, onClosePress, editText = "
36
36
  react_1.default.createElement(Utils_1.Icon, { name: "edit", font: "MaterialIcons", color: "#ffffff" })))),
37
37
  react_1.default.createElement(Utils_1.Flex, null),
38
38
  react_1.default.createElement(Views_1.TouchableView, { out: true, style: styles.closeButton, onPress: onClosePress, accessibilityLabel: "Menüyü Kapat" },
39
- react_1.default.createElement(Utils_1.Icon, { name: "close", size: 32, color: "#ffffff" })))))),
39
+ react_1.default.createElement(Utils_1.Icon, { name: "close", size: 32, color: "#ffffff" }))),
40
+ react_1.default.createElement(Views_1.TouchableView, { style: styles.copyButton, onPress: onUserCodeClick, accessibilityLabel: `Kullanıcı Kodunu Kopyala: ${userCode}` },
41
+ react_1.default.createElement(Typography_1.Typography, { color: baseTextColor, style: styles.userNameDesc }, userCode),
42
+ react_1.default.createElement(Utils_1.Icon, { name: "content-copy", font: "MaterialIcons", color: "#ffffff" }))))),
40
43
  !!apperenceText &&
41
44
  react_1.default.createElement(react_native_1.View, { style: [styles.apperenceInfo, user.isAdmin && styles.apperenceInfoAdmin] },
42
45
  react_1.default.createElement(Typography_1.Typography, { size: 10, bold: true }, apperenceText))));
@@ -138,5 +141,12 @@ const styles = react_native_1.StyleSheet.create({
138
141
  padding: 10,
139
142
  marginTop: -20,
140
143
  zIndex: 10
144
+ },
145
+ copyButton: {
146
+ position: "absolute",
147
+ right: 10,
148
+ bottom: 10,
149
+ flexDirection: "row",
150
+ alignItems: "center"
141
151
  }
142
152
  });
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarSelector.d.ts","sourceRoot":"","sources":["../../src/Players/AvatarSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsF1C,CAAC"}
1
+ {"version":3,"file":"AvatarSelector.d.ts","sourceRoot":"","sources":["../../src/Players/AvatarSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAUnD,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,GAAG,CAAA;IACX,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,QAAQ,CAAC,EAAE,GAAG,CAAA;CACf,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuF1C,CAAC"}
@@ -31,8 +31,9 @@ const AvatarSelector = ({ items = [], selected = 0, onSelect, children }) => {
31
31
  const _carousel = react_1.default.useRef();
32
32
  const _renderItem = ({ item, index }) => {
33
33
  const avatarSource = Utils_1.Assets.getSource("avatar", item);
34
+ let isSelected = selected === item || selected === index;
34
35
  return (react_1.default.createElement(react_native_1.View, { style: styles.slide, key: item },
35
- react_1.default.createElement(react_native_1.View, { style: styles.imageWrapper, accessibilityLabel: `${index + 1}. sıradaki avatar.` },
36
+ react_1.default.createElement(react_native_1.View, { style: [styles.imageWrapper, isSelected ? styles.imageWrapperSelected : {}], accessibilityLabel: `${index + 1}. sıradaki avatar.` },
36
37
  react_1.default.createElement(Utils_1.FadeImage, { opacity: 0.2, source: avatarSource, style: styles.image }))));
37
38
  };
38
39
  react_1.useEffect(() => {
@@ -83,9 +84,13 @@ const styles = react_native_1.StyleSheet.create({
83
84
  justifyContent: "center"
84
85
  },
85
86
  imageWrapper: {
86
- marginBottom: 30,
87
- backgroundColor: "#ffffff22",
88
- borderRadius: 16
87
+ marginBottom: 40,
88
+ backgroundColor: "#00000022",
89
+ padding: 5,
90
+ borderRadius: 20
91
+ },
92
+ imageWrapperSelected: {
93
+ backgroundColor: '#722bc9',
89
94
  },
90
95
  leftArrow: {
91
96
  position: "absolute",
@@ -18,7 +18,7 @@ exports.PlayerBg = react_1.default.memo(({ fr, bg, isTarget, isDead, radius }) =
18
18
  }
19
19
  const radiusStyle = { borderRadius: radius || 12 };
20
20
  if (fr && !isDead && !isTarget) {
21
- return react_1.default.createElement(Utils_1.FadeImage, { source: Utils_1.Assets.getSource("frame", fr), style: [react_native_1.StyleSheet.absoluteFill, radiusStyle] });
21
+ return react_1.default.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("frame", fr), style: [react_native_1.StyleSheet.absoluteFill, radiusStyle] });
22
22
  }
23
23
  return react_1.default.createElement(react_native_linear_gradient_1.default, { style: [react_native_1.StyleSheet.absoluteFill, radiusStyle], colors: colors, start: { x: 1, y: 0 } });
24
24
  });
@@ -4,6 +4,7 @@ declare type Props = {
4
4
  size?: number;
5
5
  space?: number;
6
6
  vampiresVisible?: boolean;
7
+ hideSelections?: boolean;
7
8
  micEffectComponent?: React.FC<any>;
8
9
  isAfkComponent?: React.FC<any>;
9
10
  players: Array<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerLayout.d.ts","sourceRoot":"","sources":["../../src/Players/PlayerLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAGpH,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM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AAC,EAAE,CAAC,KAAK,CAgCxC,CAAC"}
@@ -7,12 +7,12 @@ exports.PlayerLayout = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
9
  const PlayerView_1 = require("./PlayerView");
10
- const PlayerLayout = ({ size: layoutSize = 3, space = 1, players, onPlayerPress, onPlayerLongPress, micEffectComponent, isAfkComponent, vampiresVisible }) => {
10
+ const PlayerLayout = ({ size: layoutSize = 3, space = 1, players, onPlayerPress, hideSelections, onPlayerLongPress, micEffectComponent, isAfkComponent, vampiresVisible }) => {
11
11
  const { width } = react_native_1.useWindowDimensions();
12
12
  const padding = 8;
13
13
  const size = (width - space * 2 - padding * 2) / layoutSize;
14
14
  return (react_1.default.createElement(react_native_1.View, { style: [styles.wrapper, { padding: padding + space }] }, players.map((item, index) => {
15
- return react_1.default.createElement(PlayerView_1.PlayerView, Object.assign({}, Object.assign(Object.assign({ size, space }, item), { micEffectComponent, isAfkComponent }), { userId: item.key, onPress: onPlayerPress ? () => onPlayerPress(item) : undefined, onLongPress: onPlayerLongPress ? () => onPlayerLongPress(item) : undefined, key: index, number: index + 1 }));
15
+ return react_1.default.createElement(PlayerView_1.PlayerView, Object.assign({}, Object.assign(Object.assign({ size, space }, item), { micEffectComponent, isAfkComponent }), { hideSelections: hideSelections, userId: item.key, onPress: onPlayerPress ? () => onPlayerPress(item) : undefined, onLongPress: onPlayerLongPress ? () => onPlayerLongPress(item) : undefined, key: index, number: index + 1 }));
16
16
  })));
17
17
  };
18
18
  exports.PlayerLayout = PlayerLayout;
@@ -12,7 +12,7 @@ const PlayerNumber = ({ isSelf, number, size }) => {
12
12
  }
13
13
  const textSize = { fontSize: size && size < 100 ? 11 : 14 };
14
14
  return react_1.default.createElement(react_native_1.View, { style: [styles.number, isSelf && styles.numberIsSelf] },
15
- react_1.default.createElement(react_native_1.Text, { accessibilityLabel: `${number} numara`, style: [styles.numberText, textSize, isSelf && styles.numberIsSelfText] }, number));
15
+ react_1.default.createElement(react_native_1.Text, { accessibilityLabel: `${number} numara.`, style: [styles.numberText, textSize, isSelf && styles.numberIsSelfText] }, number));
16
16
  };
17
17
  exports.PlayerNumber = PlayerNumber;
18
18
  const styles = react_native_1.StyleSheet.create({
@@ -35,6 +35,7 @@ declare type Props = {
35
35
  myTarget?: string;
36
36
  isSaved?: boolean;
37
37
  isPaired?: boolean;
38
+ hideSelections?: boolean;
38
39
  targetNumber?: string;
39
40
  };
40
41
  export declare const PlayerViewBase: React.FC<Props>;
@@ -1 +1 @@
1
- {"version":3,"file":"PlayerView.d.ts","sourceRoot":"","sources":["../../src/Players/PlayerView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAiC,SAAS,EAAE,qBAAqB,EAAc,MAAM,cAAc,CAAC;AAY3G,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,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,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAaD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoI1C,CAAC;AAyHF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAA8B,CAAC"}
@@ -44,7 +44,7 @@ const deadReasonMap = reason => {
44
44
  return "öldü";
45
45
  }
46
46
  };
47
- const PlayerViewBase = ({ isSelf, name, avatar, userId, bg, bc, da, number, isAnonymous, fr, customName, size, space, empty, isDead, deadReason, isTarget, gifts, voiceUserId, role, visibleRole, onPress, onLongPress, micEffectComponent: MicEffectComponent, isAfkComponent: IsAfkComponent, roleVisible, targetPoint, myTarget, isSaved, targetNumber, isPaired }) => {
47
+ const PlayerViewBase = ({ isSelf, name, avatar, userId, bg, bc, da, number, isAnonymous, fr, customName, size, space, empty, isDead, deadReason, isTarget, gifts, voiceUserId, role, visibleRole, onPress, onLongPress, micEffectComponent: MicEffectComponent, isAfkComponent: IsAfkComponent, roleVisible, targetPoint, myTarget, isSaved, targetNumber, isPaired, hideSelections }) => {
48
48
  const { baseBackgroundColor, baseTextColor } = Themes_1.useColors();
49
49
  const border = bc ? bc : !isAnonymous ? "#ffffff" : null;
50
50
  const isRoleVisible = roleVisible || isSelf || isDead;
@@ -58,10 +58,10 @@ const PlayerViewBase = ({ isSelf, name, avatar, userId, bg, bc, da, number, isAn
58
58
  radiusStyle
59
59
  ];
60
60
  if (empty) {
61
- return (react_1.default.createElement(Views_1.TouchableView, { style: wrapperStyle, onLongPress: onLongPress },
61
+ return (react_1.default.createElement(Views_1.TouchableView, { accessibilityLabel: "Boş kutu.", style: wrapperStyle, onLongPress: onLongPress },
62
62
  react_1.default.createElement(PlayerBg_1.PlayerBg, { bg: ["#00000044", "#33333322"], radius: size && size < 100 ? 8 : 12 })));
63
63
  }
64
- return (react_1.default.createElement(Views_1.TouchableView, Object.assign({ style: wrapperStyle }, { onLongPress, onPress }),
64
+ return (react_1.default.createElement(Views_1.TouchableView, Object.assign({ key: userId, style: wrapperStyle }, { onLongPress, onPress }),
65
65
  react_1.default.createElement(PlayerBg_1.PlayerBg, Object.assign({}, { fr, bg, isDead, isTarget })),
66
66
  !!isSaved && react_1.default.createElement(Animatable.View, { animation: "pulse", iterationCount: "infinite", style: styles.playerBorder },
67
67
  react_1.default.createElement(react_native_1.Image, { source: Utils_1.Assets.getSource("image", "playerBorderTR"), style: [styles.playerBorderTR, { tintColor: "yellow" }] }),
@@ -77,17 +77,17 @@ const PlayerViewBase = ({ isSelf, name, avatar, userId, bg, bc, da, number, isAn
77
77
  : react_1.default.createElement(Utils_1.FadeImage, { source: Utils_1.Assets.getSource("avatar", avatar), style: [styles.avatar] }),
78
78
  react_1.default.createElement(PlayerGifts_1.PlayerGifts, { gifts: gifts, size: size }),
79
79
  !!isPaired && react_1.default.createElement(Animatable.Image, { animation: "pulse", iterationCount: "infinite", source: Utils_1.Assets.getSource("icon", "eroPair"), style: [styles.erosPairImage, { tintColor: "#fa80fa" }] }),
80
- !!targetNumber && react_1.default.createElement(react_1.default.Fragment, null,
80
+ !hideSelections && !!targetNumber && react_1.default.createElement(react_1.default.Fragment, null,
81
81
  react_1.default.createElement(Utils_1.Icon, { style: styles.targetNumberIcon, name: "chatbox" }),
82
- react_1.default.createElement(Typography_1.Typography, { style: styles.targetNumber, color: "green", size: 11, bold: true }, targetNumber)))),
83
- react_1.default.createElement(react_native_1.View, { style: [styles.bottomInfo, { backgroundColor: baseBackgroundColor }] },
82
+ react_1.default.createElement(Typography_1.Typography, { style: styles.targetNumber, color: "green", accessibilityLabel: `Seçtiği ${targetNumber}`, size: 11, bold: true }, targetNumber)))),
83
+ react_1.default.createElement(react_native_1.View, { style: [styles.bottomInfo, { backgroundColor: baseBackgroundColor }], accessibilityLiveRegion: "assertive" },
84
84
  !!IsAfkComponent && react_1.default.createElement(IsAfkComponent, { userId: userId }),
85
85
  !!MicEffectComponent && react_1.default.createElement(MicEffectComponent, { voiceUserId: voiceUserId }),
86
- !!voiceUserId && react_1.default.createElement(Utils_1.Icon, { name: "mic", color: baseTextColor }),
87
- !!role && isRoleVisible && react_1.default.createElement(Animatable.Image, { animation: "slideInUp", style: [styles.role, { tintColor: baseTextColor }], source: Utils_1.Assets.getSource("role", visibleRole || role, "small") }),
86
+ (!!voiceUserId && !!IsAfkComponent) && react_1.default.createElement(Utils_1.Icon, { accessibilityLabel: "Microfonda.", name: "mic", color: baseTextColor }),
87
+ !!role && isRoleVisible && react_1.default.createElement(Animatable.Image, { accessibilityLabel: `Rolü: ${role}.`, animation: "slideInUp", style: [styles.role, { tintColor: baseTextColor }], source: Utils_1.Assets.getSource("role", visibleRole || role, "small") }),
88
88
  !!isDead && react_1.default.createElement(Typography_1.Typography, { size: 12, bold: true }, deadReasonMap(deadReason)),
89
- !!targetPoint && react_1.default.createElement(react_native_1.View, { style: styles.target },
90
- react_1.default.createElement(Typography_1.Typography, { color: "red", size: 11, bold: true }, targetPoint))),
89
+ !hideSelections && !!targetPoint && react_1.default.createElement(react_native_1.View, { style: styles.target },
90
+ react_1.default.createElement(Typography_1.Typography, { color: "red", accessibilityLabel: `üzerinde ${targetPoint} oy var.`, size: 11, bold: true }, targetPoint))),
91
91
  !!border && react_1.default.createElement(react_native_1.View, { style: [react_native_1.StyleSheet.absoluteFill, radiusStyle,
92
92
  { borderColor: border, borderWidth: 2 }] })));
93
93
  };
@@ -29,7 +29,7 @@ export declare const useColors: () => {
29
29
  dimBackgroundColorTransparent: string;
30
30
  dimTextColorTransparent: string;
31
31
  };
32
- export declare const useFontSizes: () => Record<"small" | "medium" | "large" | "xxsmall" | "xsmall" | "xlarge" | "xxlarge", number>;
33
- export declare const useSpaceSizes: () => Record<"small" | "medium" | "none" | "large" | "xxsmall" | "xsmall" | "xlarge" | "xxlarge", number>;
32
+ export declare const useFontSizes: () => Record<"medium" | "large" | "small" | "xxsmall" | "xsmall" | "xlarge" | "xxlarge", number>;
33
+ export declare const useSpaceSizes: () => Record<"none" | "medium" | "large" | "small" | "xxsmall" | "xsmall" | "xlarge" | "xxlarge", number>;
34
34
  export {};
35
35
  //# sourceMappingURL=ThemeProvider.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koylu-vampir-design",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Design System for Koylu Vampir Game",
5
5
  "keywords": [
6
6
  "react-native",