koylu-vampir-design 1.0.32 → 1.0.33

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.
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { GestureResponderEvent, StyleProp } from "react-native";
3
3
  export declare type MenuButtonProps = {
4
+ children?: React.ReactNode;
4
5
  style?: StyleProp<any>;
5
- buttonStyle?: StyleProp<any>;
6
6
  textStyle?: StyleProp<any>;
7
7
  iconStyle?: StyleProp<any>;
8
8
  icon?: string;
@@ -12,7 +12,6 @@ export declare type MenuButtonProps = {
12
12
  type?: string;
13
13
  size?: string;
14
14
  iconFamily?: string;
15
- selected?: boolean;
16
15
  out?: boolean;
17
16
  rightComponent?: React.Component | React.FC | JSX.Element | string | number;
18
17
  };
@@ -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,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;IAC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AEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAoGhD,CAAC"}
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.MenuButton = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
- const Views_1 = require("../Views");
10
- const Icon_1 = require("../Utils/Icon");
11
9
  const Themes_1 = require("../Themes");
12
- const MenuButton = ({ children, style = {}, size, iconStyle, onPress, onLongPress, textStyle, iconFamily, type, buttonStyle, selected, icon, disabled, out = true, rightComponent, }) => {
10
+ const Icon_1 = require("../Utils/Icon");
11
+ const Views_1 = require("../Views");
12
+ const MenuButton = ({ children, style = {}, size, iconStyle, onPress, onLongPress, textStyle, iconFamily, type, icon, disabled, out = true, rightComponent, }) => {
13
13
  const buttonStyles = [styles.button];
14
14
  const textStyles = [styles.text];
15
15
  const iconStyles = [styles.icon];
@@ -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;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"}
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;AAKF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAyHnC,CAAC"}
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.UserBar = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const react_native_1 = require("react-native");
9
+ const react_native_safe_area_context_1 = require("react-native-safe-area-context");
10
+ const Typography_1 = require("../Typography");
9
11
  const Utils_1 = require("../Utils");
10
12
  const Views_1 = require("../Views");
11
- const Typography_1 = require("../Typography");
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, renderStartButton, }) => {
15
+ const UserBar = ({ user, style, 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";
@@ -35,6 +35,7 @@ const UserBar = ({ user, onMenuPress, badge, onUserPress, onMarketPress, renderS
35
35
  const avatarSource = Utils_1.Assets.getSource("avatar", user.avatar, "");
36
36
  return (react_1.default.createElement(react_native_1.Animated.View, { style: [
37
37
  styles.wrapper,
38
+ style,
38
39
  { transform: [{ translateY }] },
39
40
  apperence ? styles[apperence] : {},
40
41
  ] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koylu-vampir-design",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Design System for Koylu Vampir Game",
5
5
  "keywords": [
6
6
  "react-native",