@meatech/payblend_app_ui_component 1.1.11 → 1.1.13
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/components/IconWithLabel/IconWithLabel.tsx +0 -1
- package/data/convenienceStoreData.json +22 -0
- package/dist/components/IconWithLabel/IconWithLabel.d.ts.map +1 -1
- package/dist/components/IconWithLabel/IconWithLabel.js +1 -1
- package/dist/components/IconWithLabel/IconWithLabel.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.mjs +53 -54
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "00007",
|
|
4
|
+
"name": "セブンイレブン"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"id": "10001",
|
|
8
|
+
"name": "セブンイレブン"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "10002",
|
|
12
|
+
"name": "セブンイレブン"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "10005",
|
|
16
|
+
"name": "セブンイレブン"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "10008",
|
|
20
|
+
"name": "セブンイレブン"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWithLabel.d.ts","sourceRoot":"","sources":["../../../components/IconWithLabel/IconWithLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAa5C,eAAO,MAAM,4BAA4B,QAA2B,CAAC;AAErE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"IconWithLabel.d.ts","sourceRoot":"","sources":["../../../components/IconWithLabel/IconWithLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAa5C,eAAO,MAAM,4BAA4B,QAA2B,CAAC;AAErE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmDtD,CAAC"}
|
|
@@ -41,7 +41,7 @@ const IconWithLabel = ({ label, icon, balance = 0, width = SIZE_ICON_WITH_LABEL_
|
|
|
41
41
|
isFlex ? { flex: 1 } : { width: responsiveWidth(width), height: responsiveWidth(height) },
|
|
42
42
|
disabled && styles.disabled,
|
|
43
43
|
], activeOpacity: ACTIVE_OPACITY, ...rest },
|
|
44
|
-
children ? children : React.createElement(Icon, { name: icon, width: metrics.iconSemiLarge, height: metrics.iconSemiLarge
|
|
44
|
+
children ? children : React.createElement(Icon, { name: icon, width: metrics.iconSemiLarge, height: metrics.iconSemiLarge }),
|
|
45
45
|
React.createElement(Text, { size: "xs", color: "tertiary", style: [styles.label, labelStyle], numberOfLines: 2 }, label),
|
|
46
46
|
isShowBalance && (React.createElement(Text, { fontWeight: "700", size: "large", color: "tertiary", style: styles.txtBalance },
|
|
47
47
|
"\u00A5",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconWithLabel.js","sources":["../../../../components/IconWithLabel/IconWithLabel.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { StyleSheet, TouchableOpacity } from \"react-native\";\nimport { IconWithLabelProps } from \"./type\";\nimport {\n ACTIVE_OPACITY,\n colors,\n deviceWidth,\n metrics,\n pf,\n pw,\n} from \"@ui/themes\";\nimport { Icon } from \"@ui/components\";\nimport { formatNumber } from \"@ui/utils\";\nimport Text from \"@ui/components/Text\";\n\nexport const SIZE_ICON_WITH_LABEL_DEFAULT = (deviceWidth() - 52) / 3;\n\nexport const IconWithLabel: React.FC<IconWithLabelProps> = ({\n label,\n icon,\n balance = 0,\n width = SIZE_ICON_WITH_LABEL_DEFAULT,\n height = SIZE_ICON_WITH_LABEL_DEFAULT,\n isFlex = false,\n disabled,\n style,\n labelStyle,\n isShowBalance = false,\n children,\n ...rest\n}) => {\n return (\n <TouchableOpacity\n disabled={disabled}\n style={[\n styles.container,\n style,\n isFlex ? { flex: 1 } : { width: pw(width), height: pw(height) },\n disabled && styles.disabled,\n ]}\n activeOpacity={ACTIVE_OPACITY}\n {...rest}\n >\n {children ? children : <Icon\n name={icon}\n width={metrics.iconSemiLarge}\n height={metrics.iconSemiLarge}\n
|
|
1
|
+
{"version":3,"file":"IconWithLabel.js","sources":["../../../../components/IconWithLabel/IconWithLabel.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { StyleSheet, TouchableOpacity } from \"react-native\";\nimport { IconWithLabelProps } from \"./type\";\nimport {\n ACTIVE_OPACITY,\n colors,\n deviceWidth,\n metrics,\n pf,\n pw,\n} from \"@ui/themes\";\nimport { Icon } from \"@ui/components\";\nimport { formatNumber } from \"@ui/utils\";\nimport Text from \"@ui/components/Text\";\n\nexport const SIZE_ICON_WITH_LABEL_DEFAULT = (deviceWidth() - 52) / 3;\n\nexport const IconWithLabel: React.FC<IconWithLabelProps> = ({\n label,\n icon,\n balance = 0,\n width = SIZE_ICON_WITH_LABEL_DEFAULT,\n height = SIZE_ICON_WITH_LABEL_DEFAULT,\n isFlex = false,\n disabled,\n style,\n labelStyle,\n isShowBalance = false,\n children,\n ...rest\n}) => {\n return (\n <TouchableOpacity\n disabled={disabled}\n style={[\n styles.container,\n style,\n isFlex ? { flex: 1 } : { width: pw(width), height: pw(height) },\n disabled && styles.disabled,\n ]}\n activeOpacity={ACTIVE_OPACITY}\n {...rest}\n >\n {children ? children : <Icon\n name={icon}\n width={metrics.iconSemiLarge}\n height={metrics.iconSemiLarge}\n />}\n <Text\n size=\"xs\"\n color=\"tertiary\"\n style={[styles.label, labelStyle]}\n numberOfLines={2}\n >\n {label}\n </Text>\n {isShowBalance && (\n <Text\n fontWeight=\"700\"\n size=\"large\"\n color=\"tertiary\"\n style={styles.txtBalance}\n >\n ¥{formatNumber(balance.toString())}\n </Text>\n )}\n </TouchableOpacity>\n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n borderWidth: metrics.borderWidthMedium,\n borderColor: colors.neutral[\"20\"],\n alignItems: \"center\",\n justifyContent: \"center\",\n padding: metrics.width.spacingTiny,\n },\n label: {\n lineHeight: pf(18),\n textAlign: \"center\",\n },\n txtBalance: {\n lineHeight: pf(30),\n marginTop: metrics.width.spacingTiny,\n },\n disabled: {\n opacity: 0.4,\n },\n});\n"],"names":["pw","pf"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeO,MAAM,4BAA4B,GAAG,CAAC,WAAW,EAAE,GAAG,EAAE,IAAI;AAEtD,MAAA,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,IAAI,EACJ,OAAO,GAAG,CAAC,EACX,KAAK,GAAG,4BAA4B,EACpC,MAAM,GAAG,4BAA4B,EACrC,MAAM,GAAG,KAAK,EACd,QAAQ,EACR,KAAK,EACL,UAAU,EACV,aAAa,GAAG,KAAK,EACrB,QAAQ,EACR,GAAG,IAAI,EACR,KAAI;IACH,QACE,oBAAC,gBAAgB,EAAA,EACf,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE;AACL,YAAA,MAAM,CAAC,SAAS;YAChB,KAAK;YACL,MAAM,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAEA,eAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAEA,eAAE,CAAC,MAAM,CAAC,EAAE;YAC/D,QAAQ,IAAI,MAAM,CAAC,QAAQ;AAC5B,SAAA,EACD,aAAa,EAAE,cAAc,EAAA,GACzB,IAAI,EAAA;QAEP,QAAQ,GAAG,QAAQ,GAAG,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAC1B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,CAAC,aAAa,EAC5B,MAAM,EAAE,OAAO,CAAC,aAAa,EAC7B,CAAA;QACF,KAAC,CAAA,aAAA,CAAA,IAAI,EACH,EAAA,IAAI,EAAC,IAAI,EACT,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC,EACjC,aAAa,EAAE,CAAC,EAEf,EAAA,KAAK,CACD;QACN,aAAa,KACZ,KAAC,CAAA,aAAA,CAAA,IAAI,IACH,UAAU,EAAC,KAAK,EAChB,IAAI,EAAC,OAAO,EACZ,KAAK,EAAC,UAAU,EAChB,KAAK,EAAE,MAAM,CAAC,UAAU,EAAA;;YAEtB,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAC7B,CACR,CACgB;AAEvB;AAEA,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;AAC/B,IAAA,SAAS,EAAE;QACT,WAAW,EAAE,OAAO,CAAC,iBAAiB;AACtC,QAAA,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;AACjC,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,cAAc,EAAE,QAAQ;AACxB,QAAA,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,WAAW;AACnC,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAEC,cAAE,CAAC,EAAE,CAAC;AAClB,QAAA,SAAS,EAAE,QAAQ;AACpB,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,UAAU,EAAEA,cAAE,CAAC,EAAE,CAAC;AAClB,QAAA,SAAS,EAAE,OAAO,CAAC,KAAK,CAAC,WAAW;AACrC,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE,GAAG;AACb,KAAA;AACF,CAAA,CAAC;;;;"}
|
package/package.json
CHANGED
package/rollup.config.mjs
CHANGED
|
@@ -4,14 +4,14 @@ import commonjs from "@rollup/plugin-commonjs";
|
|
|
4
4
|
import dts from "rollup-plugin-dts";
|
|
5
5
|
import json from "@rollup/plugin-json";
|
|
6
6
|
import glob from "fast-glob";
|
|
7
|
-
import image from
|
|
8
|
-
import url from
|
|
9
|
-
import svgr from
|
|
10
|
-
import postcss from
|
|
11
|
-
import copy from
|
|
12
|
-
import alias from
|
|
13
|
-
import path from
|
|
14
|
-
import { fileURLToPath } from
|
|
7
|
+
import image from "@rollup/plugin-image";
|
|
8
|
+
import url from "@rollup/plugin-url";
|
|
9
|
+
import svgr from "@svgr/rollup";
|
|
10
|
+
import postcss from "rollup-plugin-postcss";
|
|
11
|
+
import copy from "rollup-plugin-copy";
|
|
12
|
+
import alias from "@rollup/plugin-alias";
|
|
13
|
+
import path from "path";
|
|
14
|
+
import { fileURLToPath } from "url";
|
|
15
15
|
|
|
16
16
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
17
17
|
|
|
@@ -24,25 +24,26 @@ const entries = await glob([
|
|
|
24
24
|
"./constants/index.ts",
|
|
25
25
|
"./types/index.ts",
|
|
26
26
|
"./data/index.ts",
|
|
27
|
+
// "/data/*",
|
|
27
28
|
"./yup/index.ts",
|
|
28
29
|
"./jsons/index.ts",
|
|
29
30
|
]);
|
|
30
31
|
|
|
31
32
|
if (entries.length === 0) {
|
|
32
33
|
throw new Error(
|
|
33
|
-
"No entry files found. Please check your glob patterns and file structure."
|
|
34
|
+
"No entry files found. Please check your glob patterns and file structure.",
|
|
34
35
|
);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
const external = [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
"react",
|
|
40
|
+
"react-dom",
|
|
41
|
+
"react-native",
|
|
42
|
+
"tslib",
|
|
43
|
+
"yup",
|
|
43
44
|
/^@babel\/runtime/,
|
|
44
45
|
/^@rollup\/.*/,
|
|
45
|
-
/^rollup-plugin
|
|
46
|
+
/^rollup-plugin-.*/,
|
|
46
47
|
];
|
|
47
48
|
|
|
48
49
|
const config = [
|
|
@@ -58,77 +59,75 @@ const config = [
|
|
|
58
59
|
external,
|
|
59
60
|
plugins: [
|
|
60
61
|
alias({
|
|
61
|
-
entries: [
|
|
62
|
-
{ find: '@ui', replacement: path.resolve(__dirname, '.') }
|
|
63
|
-
]
|
|
62
|
+
entries: [{ find: "@ui", replacement: path.resolve(__dirname, ".") }],
|
|
64
63
|
}),
|
|
65
64
|
resolve({
|
|
66
65
|
preferBuiltins: true,
|
|
67
|
-
mainFields: [
|
|
68
|
-
extensions: [
|
|
66
|
+
mainFields: ["module", "main"],
|
|
67
|
+
extensions: [".js", ".jsx", ".ts", ".tsx", ".json"],
|
|
69
68
|
}),
|
|
70
69
|
commonjs({
|
|
71
70
|
include: /node_modules/,
|
|
72
71
|
transformMixedEsModules: true,
|
|
73
|
-
requireReturnsDefault:
|
|
72
|
+
requireReturnsDefault: "auto",
|
|
74
73
|
}),
|
|
75
74
|
typescript({
|
|
76
|
-
tsconfig:
|
|
75
|
+
tsconfig: "./tsconfig.json",
|
|
77
76
|
sourceMap: true,
|
|
78
77
|
inlineSources: true,
|
|
79
78
|
compilerOptions: {
|
|
80
|
-
module:
|
|
79
|
+
module: "ESNext",
|
|
81
80
|
declaration: true,
|
|
82
|
-
declarationDir:
|
|
83
|
-
allowJs: true
|
|
84
|
-
}
|
|
81
|
+
declarationDir: "./dist",
|
|
82
|
+
allowJs: true,
|
|
83
|
+
},
|
|
85
84
|
}),
|
|
86
85
|
json(),
|
|
87
86
|
image(),
|
|
88
87
|
url({
|
|
89
88
|
include: [
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
"**/*.woff",
|
|
90
|
+
"**/*.woff2",
|
|
91
|
+
"**/*.ttf",
|
|
92
|
+
"**/*.eot",
|
|
93
|
+
"**/*.png",
|
|
94
|
+
"**/*.jpg",
|
|
95
|
+
"**/*.jpeg",
|
|
96
|
+
"**/*.gif",
|
|
97
|
+
"**/*.svg",
|
|
99
98
|
],
|
|
100
99
|
limit: 0,
|
|
101
|
-
fileName:
|
|
102
|
-
publicPath:
|
|
100
|
+
fileName: "[name][extname]",
|
|
101
|
+
publicPath: "assets/",
|
|
103
102
|
}),
|
|
104
103
|
svgr(),
|
|
105
104
|
postcss({
|
|
106
|
-
extensions: [
|
|
105
|
+
extensions: [".css", ".scss", ".sass"],
|
|
107
106
|
minimize: true,
|
|
108
107
|
extract: true,
|
|
109
108
|
modules: true,
|
|
110
|
-
use: [
|
|
109
|
+
use: ["sass"],
|
|
111
110
|
}),
|
|
112
111
|
copy({
|
|
113
112
|
targets: [
|
|
114
|
-
{
|
|
115
|
-
src:
|
|
116
|
-
dest:
|
|
117
|
-
flatten: false
|
|
113
|
+
{
|
|
114
|
+
src: "assets/images/**/*",
|
|
115
|
+
dest: "dist/assets/images",
|
|
116
|
+
flatten: false,
|
|
118
117
|
},
|
|
119
|
-
{
|
|
120
|
-
src:
|
|
121
|
-
dest:
|
|
122
|
-
flatten: false
|
|
118
|
+
{
|
|
119
|
+
src: "assets/fonts/**/*",
|
|
120
|
+
dest: "dist/assets/fonts",
|
|
121
|
+
flatten: false,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
src: "assets/pdf/**/*",
|
|
125
|
+
dest: "dist/assets/pdf",
|
|
126
|
+
flatten: false,
|
|
123
127
|
},
|
|
124
|
-
{
|
|
125
|
-
src: 'assets/pdf/**/*',
|
|
126
|
-
dest: 'dist/assets/pdf',
|
|
127
|
-
flatten: false
|
|
128
|
-
}
|
|
129
128
|
],
|
|
130
|
-
verbose: true
|
|
131
|
-
})
|
|
129
|
+
verbose: true,
|
|
130
|
+
}),
|
|
132
131
|
],
|
|
133
132
|
},
|
|
134
133
|
{
|