koylu-vampir-design 1.0.36 → 1.0.38
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,15 +1,15 @@
|
|
|
1
|
-
import { ImageSourcePropType, ViewProps } from "react-native";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { ImageSourcePropType, ViewProps } from "react-native";
|
|
3
3
|
declare type Props = {
|
|
4
|
-
gold
|
|
5
|
-
diamond
|
|
6
|
-
ticket
|
|
7
|
-
gifts
|
|
4
|
+
gold?: number;
|
|
5
|
+
diamond?: number;
|
|
6
|
+
ticket?: number;
|
|
7
|
+
gifts?: number;
|
|
8
8
|
style: any;
|
|
9
|
-
goldIcon
|
|
10
|
-
diamondIcon
|
|
11
|
-
ticketIcon
|
|
12
|
-
giftIcon
|
|
9
|
+
goldIcon?: ImageSourcePropType;
|
|
10
|
+
diamondIcon?: ImageSourcePropType;
|
|
11
|
+
ticketIcon?: ImageSourcePropType;
|
|
12
|
+
giftIcon?: ImageSourcePropType;
|
|
13
13
|
titleText?: string;
|
|
14
14
|
myGoldsText?: string;
|
|
15
15
|
myDiamondsText?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAGnB,SAAS,EACV,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MarketInfo.d.ts","sourceRoot":"","sources":["../../src/Markets/MarketInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,EAGnB,SAAS,EACV,MAAM,cAAc,CAAC;AAGtB,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,GAAG,SAAS,CAyDlD,CAAC"}
|
|
@@ -4,28 +4,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MarketInfo = void 0;
|
|
7
|
-
const react_native_1 = require("react-native");
|
|
8
7
|
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const react_native_1 = require("react-native");
|
|
9
9
|
const Typography_1 = require("../Typography");
|
|
10
10
|
const MarketInfo = ({ gold, diamond, gifts, style, ticket, goldIcon, diamondIcon, ticketIcon, giftIcon, titleText, myGoldsText = "Altınlarım:", myDiamondsText = "Elmaslarım:", myTicketsText = "Elmaslarım:", myGiftsText = "Hediyelerim:", }) => {
|
|
11
11
|
return (react_1.default.createElement(react_native_1.View, { style: [styles.info, style] },
|
|
12
12
|
!!titleText && (react_1.default.createElement(Typography_1.Typography, { bold: true, style: styles.title }, titleText)),
|
|
13
|
-
react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
13
|
+
gold !== undefined && (react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
14
14
|
react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myGoldsText),
|
|
15
15
|
react_1.default.createElement(Typography_1.Typography, { bold: true }, gold),
|
|
16
|
-
react_1.default.createElement(react_native_1.Image, { style: styles.image, source: goldIcon })),
|
|
17
|
-
react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
16
|
+
!!goldIcon && react_1.default.createElement(react_native_1.Image, { style: styles.image, source: goldIcon }))),
|
|
17
|
+
diamond !== undefined && (react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
18
18
|
react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myDiamondsText),
|
|
19
19
|
react_1.default.createElement(Typography_1.Typography, { bold: true }, diamond),
|
|
20
|
-
react_1.default.createElement(react_native_1.Image, { style: styles.image, source: diamondIcon })),
|
|
21
|
-
react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
20
|
+
!!diamondIcon && react_1.default.createElement(react_native_1.Image, { style: styles.image, source: diamondIcon }))),
|
|
21
|
+
ticket !== undefined && (react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
22
22
|
react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myTicketsText),
|
|
23
23
|
react_1.default.createElement(Typography_1.Typography, { bold: true }, ticket),
|
|
24
|
-
react_1.default.createElement(react_native_1.Image, { style: styles.image, source: ticketIcon })),
|
|
25
|
-
react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
24
|
+
!!ticketIcon && react_1.default.createElement(react_native_1.Image, { style: styles.image, source: ticketIcon }))),
|
|
25
|
+
gifts !== undefined && (react_1.default.createElement(react_native_1.View, { style: styles.line },
|
|
26
26
|
react_1.default.createElement(Typography_1.Typography, { style: styles.label }, myGiftsText),
|
|
27
27
|
react_1.default.createElement(Typography_1.Typography, { bold: true }, gifts),
|
|
28
|
-
react_1.default.createElement(react_native_1.Image, { style: styles.image, source: giftIcon }))));
|
|
28
|
+
!!giftIcon && react_1.default.createElement(react_native_1.Image, { style: styles.image, source: giftIcon })))));
|
|
29
29
|
};
|
|
30
30
|
exports.MarketInfo = MarketInfo;
|
|
31
31
|
const styles = react_native_1.StyleSheet.create({
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koylu-vampir-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.38",
|
|
4
4
|
"description": "Design System for Koylu Vampir Game",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"design-system"
|
|
8
8
|
],
|
|
9
|
-
"homepage": "",
|
|
9
|
+
"homepage": "https://koyluvampir.com",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "Oktay Baskus <98oktay@gmail.com>",
|
|
12
12
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
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
|
-
"storybook": "start-storybook -p 6006",
|
|
23
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
24
24
|
"type-check": "tsc --noEmit",
|
|
25
25
|
"storycap:all": "rm -rf ./__screenshots__ && yarn storycap http://localhost:6006 --serverCmd 'yarn storybook --ci' --viewport '414x736' --serverTimeout '200000'"
|
|
26
26
|
},
|