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.
- package/dist/Alerts/AlertButtons.js +1 -1
- package/dist/Alerts/AlertProvider.d.ts +1 -0
- package/dist/Alerts/AlertProvider.d.ts.map +1 -1
- package/dist/GameParts/TreasureInfo.d.ts +2 -1
- package/dist/GameParts/TreasureInfo.d.ts.map +1 -1
- package/dist/GameParts/TreasureInfo.js +9 -20
- package/dist/Menus/MenuOptions.js +0 -2
- package/dist/Messages/MessageInput.d.ts +2 -0
- package/dist/Messages/MessageInput.d.ts.map +1 -1
- package/dist/Messages/MessageInput.js +4 -4
- package/dist/Messages/MessageList.d.ts.map +1 -1
- package/dist/Messages/MessageList.js +4 -4
- package/dist/Navbars/UserDrawerBar.d.ts +2 -0
- package/dist/Navbars/UserDrawerBar.d.ts.map +1 -1
- package/dist/Navbars/UserDrawerBar.js +12 -2
- package/dist/Players/AvatarSelector.d.ts.map +1 -1
- package/dist/Players/AvatarSelector.js +9 -4
- package/dist/Players/PlayerBg.js +1 -1
- package/dist/Players/PlayerLayout.d.ts +1 -0
- package/dist/Players/PlayerLayout.d.ts.map +1 -1
- package/dist/Players/PlayerLayout.js +2 -2
- package/dist/Players/PlayerNumber.js +1 -1
- package/dist/Players/PlayerView.d.ts +1 -0
- package/dist/Players/PlayerView.d.ts.map +1 -1
- package/dist/Players/PlayerView.js +10 -10
- package/dist/Themes/ThemeProvider.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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,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,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,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
|
-
|
|
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;
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
React.createElement(
|
|
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: {
|
|
@@ -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;
|
|
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:
|
|
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 },
|
|
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,
|
|
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;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vC,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,
|
|
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,
|
|
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:
|
|
87
|
-
backgroundColor: "#
|
|
88
|
-
|
|
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",
|
package/dist/Players/PlayerBg.js
CHANGED
|
@@ -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(
|
|
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
|
});
|
|
@@ -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,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACxD,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAC7D,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
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,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACxD,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;CAC7D,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,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
|
|
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({
|
|
@@ -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,MA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AAC,MAAM,CAAC,CAAC;IACtB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kBAAkB,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnC,cAAc,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,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<"
|
|
33
|
-
export declare const useSpaceSizes: () => Record<"
|
|
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
|