koylu-vampir-design 1.0.46 → 1.0.48

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 +1 @@
1
- {"version":3,"file":"BadgeWins.d.ts","sourceRoot":"","sources":["../../src/Scores/BadgeWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuCrC,CAAC"}
1
+ {"version":3,"file":"BadgeWins.d.ts","sourceRoot":"","sources":["../../src/Scores/BadgeWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmDrC,CAAC"}
@@ -13,14 +13,23 @@ const BadgeWins = ({ badges, roles }) => {
13
13
  return null;
14
14
  }
15
15
  function getBadgeTitle(badge) {
16
- const cleanName = badge.replace("_w", "");
16
+ const cleanName = badge.replace("_w", "").replace("b_", "");
17
17
  const found = roles.find((item) => item.key === cleanName);
18
18
  if (found) {
19
19
  return found.name;
20
20
  }
21
+ if (badge.indexOf("egitim") !== -1) {
22
+ return "Eğitimci";
23
+ }
21
24
  return "";
22
25
  }
23
26
  function getBadgeDescription(badge) {
27
+ if (badge.indexOf("egitim") !== -1) {
28
+ return "Eğitim kampında en iyisi";
29
+ }
30
+ if (badge.indexOf("b_") === 0) {
31
+ return "Adanın muhtarı";
32
+ }
24
33
  const isWeekly = badge.indexOf("_w") > 0;
25
34
  return isWeekly
26
35
  ? "rolünde bu haftanın en iyisi"
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  declare type Props = {
3
- gold?: number;
4
- diamond?: number;
3
+ gold?: number | string;
4
+ diamond?: number | string;
5
5
  };
6
6
  export declare const GoldWins: React.FC<Props>;
7
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"GoldWins.d.ts","sourceRoot":"","sources":["../../src/Scores/GoldWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsDpC,CAAC"}
1
+ {"version":3,"file":"GoldWins.d.ts","sourceRoot":"","sources":["../../src/Scores/GoldWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsDpC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  declare type Props = {
3
- total: number;
3
+ total: number | string;
4
4
  winList: Array<any>;
5
5
  totalText: string;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RoleWins.d.ts","sourceRoot":"","sources":["../../src/Scores/RoleWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCpC,CAAC"}
1
+ {"version":3,"file":"RoleWins.d.ts","sourceRoot":"","sources":["../../src/Scores/RoleWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koylu-vampir-design",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Design System for Koylu Vampir Game",
5
5
  "keywords": [
6
6
  "react-native",
@@ -15,14 +15,14 @@
15
15
  "dist"
16
16
  ],
17
17
  "scripts": {
18
- "build": "tsc && yarn copy-files",
19
- "watch": "yarn copy-files && tsc --watch",
18
+ "build": "tsc && npm run copy-files",
19
+ "watch": "npm run copy-files && tsc --watch",
20
20
  "copy-files": "copyfiles -u 1 ./src/assets/*/*.* ./dist/",
21
21
  "build-storybook": "build-storybook",
22
22
  "lint": "eslint src --ext .ts,.tsx --cache",
23
23
  "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
24
24
  "type-check": "tsc --noEmit",
25
- "storycap:all": "rm -rf ./__screenshots__ && yarn storycap http://localhost:6006 --serverCmd 'yarn storybook --ci' --viewport '414x736' --serverTimeout '200000'"
25
+ "storycap:all": "rm -rf ./__screenshots__ && npm run storycap http://localhost:6006 --serverCmd 'npm run storybook --ci' --viewport '414x736' --serverTimeout '200000'"
26
26
  },
27
27
  "dependencies": {
28
28
  "@react-native-community/masked-view": "^0.1.11",
@@ -30,7 +30,7 @@
30
30
  "react-native-animatable": "^1.3.3",
31
31
  "react-native-gesture-handler": "^1.10.3",
32
32
  "react-native-linear-gradient": "^2.5.6",
33
- "react-native-safe-area-context": "5.4.1",
33
+ "react-native-safe-area-context": "4.10.1",
34
34
  "react-native-snap-carousel": "^3.9.1",
35
35
  "react-native-svg": "^12.1.1",
36
36
  "react-native-vector-icons": "^8.1.0"