@xaypay/tui 0.1.10 → 0.2.1
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/.prettierignore +1 -0
- package/dist/index.es.js +89 -189
- package/dist/index.js +90 -189
- package/package.json +48 -45
- package/rollup.config.mjs +36 -0
- package/tui.config.js +106 -114
- package/vite.config.mjs +86 -0
package/package.json
CHANGED
|
@@ -1,76 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaypay/tui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"storybook": "
|
|
10
|
-
"build-storybook": "
|
|
11
|
-
"build-lib": "
|
|
9
|
+
"storybook": "storybook dev -p 6006",
|
|
10
|
+
"build-storybook": "storybook build",
|
|
11
|
+
"build-lib": "rollup --config rollup.config.mjs",
|
|
12
12
|
"svgr": "svgr --icon --title-prop -d src/components/icon -- src/assets/icons",
|
|
13
13
|
"prepare": "husky install"
|
|
14
14
|
},
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@babel/core": "^7.
|
|
19
|
-
"@babel/preset-react": "^7.
|
|
20
|
-
"@rollup/plugin-
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@storybook/addon-
|
|
24
|
-
"@storybook/addon-
|
|
25
|
-
"@storybook/addon-
|
|
26
|
-
"@storybook/
|
|
27
|
-
"@storybook/
|
|
18
|
+
"@babel/core": "^7.24.5",
|
|
19
|
+
"@babel/preset-react": "^7.24.1",
|
|
20
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
21
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
22
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
23
|
+
"@storybook/addon-actions": "^8.0.10",
|
|
24
|
+
"@storybook/addon-essentials": "^8.0.10",
|
|
25
|
+
"@storybook/addon-interactions": "^8.0.10",
|
|
26
|
+
"@storybook/addon-links": "^8.0.10",
|
|
27
|
+
"@storybook/addon-mdx-gfm": "^8.0.10",
|
|
28
|
+
"@storybook/manager-api": "^8.0.10",
|
|
28
29
|
"@storybook/preset-scss": "^1.0.3",
|
|
29
|
-
"@storybook/react": "^
|
|
30
|
-
"@storybook/react-
|
|
31
|
-
"@storybook/
|
|
32
|
-
"@storybook/theming": "^
|
|
33
|
-
"@svgr/cli": "^
|
|
34
|
-
"@svgr/webpack": "^
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
30
|
+
"@storybook/react": "^8.0.10",
|
|
31
|
+
"@storybook/react-vite": "^8.0.10",
|
|
32
|
+
"@storybook/test": "^8.0.10",
|
|
33
|
+
"@storybook/theming": "^8.0.10",
|
|
34
|
+
"@svgr/cli": "^8.1.0",
|
|
35
|
+
"@svgr/webpack": "^8.1.0",
|
|
36
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
37
|
+
"autoprefixer": "^10.4.19",
|
|
38
|
+
"babel-loader": "^9.1.3",
|
|
39
|
+
"classnames": "^2.5.1",
|
|
40
|
+
"css-loader": "^7.1.1",
|
|
38
41
|
"css-module": "^1.1.4",
|
|
39
|
-
"eslint": "^8.32.
|
|
40
|
-
"eslint-plugin-react": "^7.
|
|
42
|
+
"eslint": "^8.32.0n",
|
|
43
|
+
"eslint-plugin-react": "^7.34.1",
|
|
41
44
|
"eslint-plugin-storybook": "^0.8.0",
|
|
42
|
-
"html-webpack-plugin": "^5.
|
|
43
|
-
"husky": "^
|
|
44
|
-
"lint-staged": "^
|
|
45
|
-
"
|
|
45
|
+
"html-webpack-plugin": "^5.6.0",
|
|
46
|
+
"husky": "^9.0.11",
|
|
47
|
+
"lint-staged": "^15.2.2",
|
|
48
|
+
"postcss": "^8.4.38",
|
|
49
|
+
"postcss-loader": "^8.1.1",
|
|
50
|
+
"prettier": "^3.2.5",
|
|
46
51
|
"prop-types": "^15.8.1",
|
|
47
|
-
"react": "^
|
|
48
|
-
"react-dom": "^
|
|
49
|
-
"react-scripts": "^5.0.1",
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"react-dom": "^18.3.1",
|
|
50
54
|
"rollup": "^2.79.0",
|
|
51
|
-
"rollup-plugin-
|
|
55
|
+
"rollup-plugin-import-meta-glob": "^1.0.2",
|
|
52
56
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
53
57
|
"rollup-plugin-postcss": "^4.0.2",
|
|
54
|
-
"
|
|
55
|
-
"sass": "^
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
58
|
+
"sass": "^1.77.1",
|
|
59
|
+
"sass-loader": "^14.2.1",
|
|
60
|
+
"storybook": "^8.0.10",
|
|
61
|
+
"style-loader": "^4.0.0",
|
|
62
|
+
"styled-components": "^6.1.11",
|
|
63
|
+
"vite": "^5.2.11",
|
|
64
|
+
"vite-plugin-svgr": "^4.2.0"
|
|
60
65
|
},
|
|
61
66
|
"peerDependencies": {
|
|
62
|
-
"
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "17 - 18",
|
|
65
|
-
"styled-components": "^5.3.5"
|
|
67
|
+
"react": "18",
|
|
68
|
+
"react-dom": "18"
|
|
66
69
|
},
|
|
67
70
|
"publishConfig": {
|
|
68
71
|
"access": "public"
|
|
69
72
|
},
|
|
70
73
|
"dependencies": {
|
|
71
74
|
"lodash": "^4.17.21",
|
|
72
|
-
"react-icons": "^
|
|
73
|
-
"uuid": "^9.0.
|
|
75
|
+
"react-icons": "^5.2.1",
|
|
76
|
+
"uuid": "^9.0.1"
|
|
74
77
|
},
|
|
75
78
|
"bin": "./cli-command.js",
|
|
76
79
|
"lint-staged": {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {babel} from '@rollup/plugin-babel';
|
|
2
|
+
import image from '@rollup/plugin-image';
|
|
3
|
+
import resolve from '@rollup/plugin-node-resolve'
|
|
4
|
+
import external from 'rollup-plugin-peer-deps-external'
|
|
5
|
+
import postcss from 'rollup-plugin-postcss'
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
{
|
|
9
|
+
input: './src/index.js',
|
|
10
|
+
output: [
|
|
11
|
+
{
|
|
12
|
+
file: 'dist/index.js',
|
|
13
|
+
format: 'cjs',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
file: 'dist/index.es.js',
|
|
17
|
+
format: 'es',
|
|
18
|
+
exports: 'named',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
external: ['prop-types', 'classnames', 'lodash','styled-components'],
|
|
22
|
+
plugins: [
|
|
23
|
+
postcss({
|
|
24
|
+
plugins: [],
|
|
25
|
+
minimize: true,
|
|
26
|
+
}),
|
|
27
|
+
babel({
|
|
28
|
+
exclude: 'node_modules/**',
|
|
29
|
+
presets: ['@babel/preset-react'],
|
|
30
|
+
}),
|
|
31
|
+
image(),
|
|
32
|
+
external(),
|
|
33
|
+
resolve(),
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
]
|