koylu-vampir-design 1.0.33 → 1.0.35
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/Navbars/UserBar.d.ts.map +1 -1
- package/dist/Navbars/UserBar.js +6 -1
- package/dist/Views/FadeInView.d.ts +1 -0
- package/dist/Views/FadeInView.d.ts.map +1 -1
- package/dist/Views/FadeInView.js +3 -3
- package/dist/Views/TouchableView.d.ts +2 -1
- package/dist/Views/TouchableView.d.ts.map +1 -1
- package/dist/assets/images/notification-icon.png +0 -0
- package/package.json +1 -1
|
@@ -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,EAErB,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;
|
|
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,EAErB,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;AAMF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAoInC,CAAC"}
|
package/dist/Navbars/UserBar.js
CHANGED
|
@@ -12,6 +12,7 @@ const Utils_1 = require("../Utils");
|
|
|
12
12
|
const Views_1 = require("../Views");
|
|
13
13
|
const goldIcon = require("../assets/images/gold.png");
|
|
14
14
|
const diamondIcon = require("../assets/images/diamond.png");
|
|
15
|
+
const notificationIcon = require("../assets/images/notification-icon.png");
|
|
15
16
|
const UserBar = ({ user, style, onMenuPress, badge, onUserPress, onMarketPress, renderStartButton, }) => {
|
|
16
17
|
const animation = new react_native_1.Animated.Value(-200);
|
|
17
18
|
const animationRef = react_1.default.useRef(animation);
|
|
@@ -20,6 +21,7 @@ const UserBar = ({ user, style, onMenuPress, badge, onUserPress, onMarketPress,
|
|
|
20
21
|
const insets = react_native_safe_area_context_1.useSafeAreaInsets();
|
|
21
22
|
const gold = Utils_1.abbreviateNumber(user.gold);
|
|
22
23
|
const diamond = Utils_1.abbreviateNumber(user.diamond);
|
|
24
|
+
const notification = user.notification;
|
|
23
25
|
const userNameLength = user.name.length || 5;
|
|
24
26
|
const nameSize = userNameLength > 14 ? 10 : userNameLength > 10 ? 12 : 13;
|
|
25
27
|
react_1.default.useEffect(() => {
|
|
@@ -59,7 +61,10 @@ const UserBar = ({ user, style, onMenuPress, badge, onUserPress, onMarketPress,
|
|
|
59
61
|
react_1.default.createElement(Typography_1.Typography, { color: baseTextColor }, gold))),
|
|
60
62
|
!!diamond && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
61
63
|
react_1.default.createElement(react_native_1.Image, { source: diamondIcon, style: styles.icon, accessibilityLabel: "Elmaslar\u0131n:" }),
|
|
62
|
-
react_1.default.createElement(Typography_1.Typography, { color: baseTextColor }, diamond)))
|
|
64
|
+
react_1.default.createElement(Typography_1.Typography, { color: baseTextColor }, diamond))),
|
|
65
|
+
!!notification && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
66
|
+
react_1.default.createElement(react_native_1.Image, { source: notificationIcon, style: styles.icon, accessibilityLabel: "Bildirim Say\u0131s\u0131:" }),
|
|
67
|
+
react_1.default.createElement(Typography_1.Typography, { color: baseTextColor }, notification))))))));
|
|
63
68
|
};
|
|
64
69
|
exports.UserBar = UserBar;
|
|
65
70
|
const styles = react_native_1.StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FadeInView.d.ts","sourceRoot":"","sources":["../../src/Views/FadeInView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3D,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"FadeInView.d.ts","sourceRoot":"","sources":["../../src/Views/FadeInView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAoB,SAAS,EAAE,MAAM,cAAc,CAAC;AAG3D,aAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2CtC,CAAC"}
|
package/dist/Views/FadeInView.js
CHANGED
|
@@ -23,7 +23,7 @@ exports.FadeInView = void 0;
|
|
|
23
23
|
const react_1 = __importStar(require("react"));
|
|
24
24
|
const react_native_1 = require("react-native");
|
|
25
25
|
const Utils_1 = require("../Utils");
|
|
26
|
-
const FadeInView = ({ children, style, visible = true, duration = 500, delay = 0 }) => {
|
|
26
|
+
const FadeInView = ({ children, style, visible = true, duration = 500, delay = 0, }) => {
|
|
27
27
|
const animation = new react_native_1.Animated.Value(0);
|
|
28
28
|
const animationRef = react_1.useRef(animation);
|
|
29
29
|
const easing = react_native_1.Easing.out(react_native_1.Easing.linear);
|
|
@@ -37,7 +37,7 @@ const FadeInView = ({ children, style, visible = true, duration = 500, delay = 0
|
|
|
37
37
|
duration,
|
|
38
38
|
delay,
|
|
39
39
|
easing,
|
|
40
|
-
useNativeDriver: true
|
|
40
|
+
useNativeDriver: true,
|
|
41
41
|
}).start();
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
@@ -49,7 +49,7 @@ const FadeInView = ({ children, style, visible = true, duration = 500, delay = 0
|
|
|
49
49
|
duration,
|
|
50
50
|
delay,
|
|
51
51
|
easing,
|
|
52
|
-
useNativeDriver: true
|
|
52
|
+
useNativeDriver: true,
|
|
53
53
|
}).start();
|
|
54
54
|
}
|
|
55
55
|
}, [visible]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { GestureResponderEvent, StyleProp
|
|
2
|
+
import { AccessibilityState, GestureResponderEvent, StyleProp } from "react-native";
|
|
3
3
|
export declare type TouchableViewProps = {
|
|
4
4
|
style?: StyleProp<any>;
|
|
5
5
|
wrapperStyle?: StyleProp<any>;
|
|
@@ -12,6 +12,7 @@ export declare type TouchableViewProps = {
|
|
|
12
12
|
accessibilityState?: AccessibilityState;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
flex?: number;
|
|
15
|
+
children?: React.ReactNode;
|
|
15
16
|
};
|
|
16
17
|
export declare const TouchableView: React.FC<TouchableViewProps>;
|
|
17
18
|
//# sourceMappingURL=TouchableView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TouchableView.d.ts","sourceRoot":"","sources":["../../src/Views/TouchableView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"TouchableView.d.ts","sourceRoot":"","sources":["../../src/Views/TouchableView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EACL,kBAAkB,EAGlB,qBAAqB,EACrB,SAAS,EAGV,MAAM,cAAc,CAAC;AAEtB,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAC9B,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACtD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6GtD,CAAC"}
|
|
Binary file
|