taro-react-uilib 1.0.4 → 1.0.24
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/dist/components/Animated/Animated.js +2 -0
- package/dist/components/Animated/Animated.js.map +1 -0
- package/dist/components/Animated/Fade/index.js +2 -0
- package/dist/components/Animated/Fade/index.js.map +1 -0
- package/dist/components/Animated/Slide/index.js +2 -0
- package/dist/components/Animated/Slide/index.js.map +1 -0
- package/dist/components/BankIcon/bank.js +2 -0
- package/dist/components/BankIcon/bank.js.map +1 -0
- package/dist/components/BankIcon/images/102.png.js +2 -0
- package/dist/components/BankIcon/images/102.png.js.map +1 -0
- package/dist/components/BankIcon/images/103.png.js +2 -0
- package/dist/components/BankIcon/images/103.png.js.map +1 -0
- package/dist/components/BankIcon/images/104.png.js +2 -0
- package/dist/components/BankIcon/images/104.png.js.map +1 -0
- package/dist/components/BankIcon/images/105.png.js +2 -0
- package/dist/components/BankIcon/images/105.png.js.map +1 -0
- package/dist/components/BankIcon/images/301.png.js +2 -0
- package/dist/components/BankIcon/images/301.png.js.map +1 -0
- package/dist/components/BankIcon/images/302.png.js +2 -0
- package/dist/components/BankIcon/images/302.png.js.map +1 -0
- package/dist/components/BankIcon/images/303.png.js +2 -0
- package/dist/components/BankIcon/images/303.png.js.map +1 -0
- package/dist/components/BankIcon/images/304.png.js +2 -0
- package/dist/components/BankIcon/images/304.png.js.map +1 -0
- package/dist/components/BankIcon/images/305.png.js +2 -0
- package/dist/components/BankIcon/images/305.png.js.map +1 -0
- package/dist/components/BankIcon/images/306.png.js +2 -0
- package/dist/components/BankIcon/images/306.png.js.map +1 -0
- package/dist/components/BankIcon/images/307.png.js +2 -0
- package/dist/components/BankIcon/images/307.png.js.map +1 -0
- package/dist/components/BankIcon/images/308.png.js +2 -0
- package/dist/components/BankIcon/images/308.png.js.map +1 -0
- package/dist/components/BankIcon/images/309.png.js +2 -0
- package/dist/components/BankIcon/images/309.png.js.map +1 -0
- package/dist/components/BankIcon/images/310.png.js +2 -0
- package/dist/components/BankIcon/images/310.png.js.map +1 -0
- package/dist/components/BankIcon/images/403.png.js +2 -0
- package/dist/components/BankIcon/images/403.png.js.map +1 -0
- package/dist/components/BankIcon/index.js +2 -0
- package/dist/components/BankIcon/index.js.map +1 -0
- package/dist/components/Button/index.js +2 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Captcha/index.js +2 -0
- package/dist/components/Captcha/index.js.map +1 -0
- package/dist/components/Dialog/Alert/index.js +2 -0
- package/dist/components/Dialog/Alert/index.js.map +1 -0
- package/dist/components/Dialog/Confirm/index.js +2 -0
- package/dist/components/Dialog/Confirm/index.js.map +1 -0
- package/dist/components/Dialog/index.js +2 -0
- package/dist/components/Dialog/index.js.map +1 -0
- package/dist/components/DialogComponent/index.js +2 -0
- package/dist/components/DialogComponent/index.js.map +1 -0
- package/dist/components/DialogRef/index.js +2 -0
- package/dist/components/DialogRef/index.js.map +1 -0
- package/dist/components/FormInput/index.js +2 -0
- package/dist/components/FormInput/index.js.map +1 -0
- package/dist/components/Image/index.js +2 -0
- package/dist/components/Image/index.js.map +1 -0
- package/dist/components/List/index.js +2 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/Loading/index.js +2 -0
- package/dist/components/Loading/index.js.map +1 -0
- package/dist/components/Mask/index.js +2 -0
- package/dist/components/Mask/index.js.map +1 -0
- package/dist/components/NumberKeyboard/index.js +2 -0
- package/dist/components/NumberKeyboard/index.js.map +1 -0
- package/dist/components/Page/index.js +2 -0
- package/dist/components/Page/index.js.map +1 -0
- package/dist/components/PasswordInput/index.js +2 -0
- package/dist/components/PasswordInput/index.js.map +1 -0
- package/dist/components/Picker/Picker.js +2 -0
- package/dist/components/Picker/Picker.js.map +1 -0
- package/dist/components/Picker/index.js +2 -0
- package/dist/components/Picker/index.js.map +1 -0
- package/dist/components/Popup/index.js +2 -0
- package/dist/components/Popup/index.js.map +1 -0
- package/dist/components/Progress/index.js +2 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/Tabbar/index.js +2 -0
- package/dist/components/Tabbar/index.js.map +1 -0
- package/dist/components/Tabbar/tabbar/TabItem.js +2 -0
- package/dist/components/Tabbar/tabbar/TabItem.js.map +1 -0
- package/dist/components/Tabbar/tabbar/Tabbar.js +2 -0
- package/dist/components/Tabbar/tabbar/Tabbar.js.map +1 -0
- package/dist/components/Toast/Toast.js +2 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/index.js +2 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/_virtual/ReactPropTypesSecret.js +2 -0
- package/dist/components/_virtual/ReactPropTypesSecret.js.map +1 -0
- package/dist/components/_virtual/_commonjsHelpers.js +2 -0
- package/dist/components/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/components/_virtual/checkPropTypes.js +2 -0
- package/dist/components/_virtual/checkPropTypes.js.map +1 -0
- package/dist/components/_virtual/factoryWithThrowingShims.js +2 -0
- package/dist/components/_virtual/factoryWithThrowingShims.js.map +1 -0
- package/dist/components/_virtual/factoryWithTypeCheckers.js +2 -0
- package/dist/components/_virtual/factoryWithTypeCheckers.js.map +1 -0
- package/dist/components/_virtual/has.js +2 -0
- package/dist/components/_virtual/has.js.map +1 -0
- package/dist/components/_virtual/index.js +2 -0
- package/dist/components/_virtual/index.js.map +1 -0
- package/dist/components/_virtual/index2.js +2 -0
- package/dist/components/_virtual/index2.js.map +1 -0
- package/dist/components/_virtual/react-is.development.js +2 -0
- package/dist/components/_virtual/react-is.development.js.map +1 -0
- package/dist/components/_virtual/react-is.production.min.js +2 -0
- package/dist/components/_virtual/react-is.production.min.js.map +1 -0
- package/dist/components/src/hooks/index.js +2 -0
- package/dist/components/src/hooks/index.js.map +1 -0
- package/dist/components/src/index.js +2 -0
- package/dist/components/src/index.js.map +1 -0
- package/dist/components/src/utils/index.js +2 -0
- package/dist/components/src/utils/index.js.map +1 -0
- package/dist/index.js +2 -3010
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +9 -3018
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/alert.scss +9 -4
- package/dist/styles/components/animated.scss +152 -0
- package/dist/styles/components/bankicon.scss +3 -1
- package/dist/styles/components/button.scss +23 -12
- package/dist/styles/components/captcha.scss +14 -2
- package/dist/styles/components/confirm.scss +16 -7
- package/dist/styles/components/dialog.scss +224 -0
- package/dist/styles/components/dialogref.scss +45 -168
- package/dist/styles/components/fade.scss +22 -0
- package/dist/styles/components/font/iconfont.ttf +0 -0
- package/dist/styles/components/font/iconfont.woff +0 -0
- package/dist/styles/components/font/iconfont.woff2 +0 -0
- package/dist/styles/components/forminput.scss +92 -57
- package/dist/styles/components/image.scss +1 -1
- package/dist/styles/components/images/backspace.png +0 -0
- package/dist/styles/components/images/loading.png +0 -0
- package/dist/styles/components/index.scss +9 -2
- package/dist/styles/components/list.scss +21 -18
- package/dist/styles/components/loading.scss +50 -9
- package/dist/styles/components/mask.scss +3 -2
- package/dist/styles/components/numberkeyboard.scss +48 -20
- package/dist/styles/components/page.scss +5 -4
- package/dist/styles/components/passwordinput.scss +2 -0
- package/dist/styles/components/picker.scss +147 -0
- package/dist/styles/components/popup.scss +77 -0
- package/dist/styles/components/scale.scss +27 -0
- package/dist/styles/components/scrollview.scss +4 -0
- package/dist/styles/components/slide.scss +105 -0
- package/dist/styles/components/tabbar.scss +42 -0
- package/dist/styles/components/toast.scss +2 -2
- package/dist/styles/index.scss +5 -5
- package/dist/styles/{components/dialogcomponent.scss → themes/animation.scss} +33 -74
- package/dist/styles/themes/default.scss +2 -2
- package/dist/styles/themes/variable.scss +3 -4
- package/lib/components/Animated/Animated.js +20 -0
- package/lib/components/Animated/Animated.js.map +1 -0
- package/lib/components/Animated/Fade/index.js +19 -0
- package/lib/components/Animated/Fade/index.js.map +1 -0
- package/lib/components/Animated/Scale/index.js +19 -0
- package/lib/components/Animated/Scale/index.js.map +1 -0
- package/lib/components/Animated/Slide/index.js +19 -0
- package/lib/components/Animated/Slide/index.js.map +1 -0
- package/lib/components/Animated/index.js +5 -0
- package/lib/components/Animated/index.js.map +1 -0
- package/lib/components/Button/index.js +27 -5
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Captcha/index.js +17 -5
- package/lib/components/Captcha/index.js.map +1 -1
- package/lib/components/Dialog/Alert/index.js +3 -3
- package/lib/components/Dialog/Alert/index.js.map +1 -1
- package/lib/components/Dialog/Confirm/index.js +4 -4
- package/lib/components/Dialog/Confirm/index.js.map +1 -1
- package/lib/components/Dialog/index.js +1 -1
- package/lib/components/Dialog/index.js.map +1 -1
- package/lib/components/{Dialog/DialogComponent → DialogComponent}/index.js +1 -1
- package/lib/components/DialogComponent/index.js.map +1 -0
- package/lib/components/DialogRef/index.js +8 -7
- package/lib/components/DialogRef/index.js.map +1 -1
- package/lib/components/FormInput/index.js +44 -24
- package/lib/components/FormInput/index.js.map +1 -1
- package/lib/components/List/index.js +18 -15
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Loading/index.js +12 -10
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Mask/index.js +8 -8
- package/lib/components/Mask/index.js.map +1 -1
- package/lib/components/NumberKeyboard/index.js +12 -7
- package/lib/components/NumberKeyboard/index.js.map +1 -1
- package/lib/components/Page/index.js +7 -7
- package/lib/components/Page/index.js.map +1 -1
- package/lib/components/Picker/Picker.js +109 -0
- package/lib/components/Picker/Picker.js.map +1 -0
- package/lib/components/Picker/index.js +35 -0
- package/lib/components/Picker/index.js.map +1 -0
- package/lib/components/Popup/index.js +61 -0
- package/lib/components/Popup/index.js.map +1 -0
- package/lib/components/ScrollView/index.js +34 -0
- package/lib/components/ScrollView/index.js.map +1 -0
- package/lib/components/Tabbar/index.js +6 -0
- package/lib/components/Tabbar/index.js.map +1 -0
- package/lib/components/Tabbar/tabbar/TabItem.js +10 -0
- package/lib/components/Tabbar/tabbar/TabItem.js.map +1 -0
- package/lib/components/Tabbar/tabbar/Tabbar.js +74 -0
- package/lib/components/Tabbar/tabbar/Tabbar.js.map +1 -0
- package/lib/components/Toast/index.js +11 -3
- package/lib/components/Toast/index.js.map +1 -1
- package/lib/hooks/index.js +42 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js +18 -2
- package/lib/utils/index.js.map +1 -1
- package/package.json +134 -131
- package/types/components/Animated/Animated.d.ts +12 -0
- package/types/components/Animated/Fade/index.d.ts +9 -0
- package/types/components/Animated/Scale/index.d.ts +9 -0
- package/types/components/Animated/Slide/index.d.ts +11 -0
- package/types/components/Animated/index.d.ts +3 -0
- package/types/components/Button/index.d.ts +3 -2
- package/types/components/Captcha/index.d.ts +5 -3
- package/types/components/Dialog/index.d.ts +1 -1
- package/types/components/DialogComponent/index.d.ts +19 -0
- package/types/components/DialogRef/index.d.ts +4 -2
- package/types/components/FormInput/index.d.ts +9 -23
- package/types/components/List/index.d.ts +14 -6
- package/types/components/Loading/index.d.ts +6 -4
- package/types/components/Mask/index.d.ts +4 -4
- package/types/components/Page/index.d.ts +7 -5
- package/types/components/Picker/Picker.d.ts +23 -0
- package/types/components/Picker/index.d.ts +15 -0
- package/types/components/Popup/index.d.ts +10 -0
- package/types/components/ScrollView/index.d.ts +11 -0
- package/types/components/Tabbar/components/TabItem.d.ts +9 -0
- package/types/components/Tabbar/components/Tabbar.d.ts +30 -0
- package/types/components/Tabbar/index.d.ts +8 -0
- package/types/components/Tabbar/tabbar/TabItem.d.ts +9 -0
- package/types/components/Tabbar/tabbar/Tabbar.d.ts +30 -0
- package/types/hooks/index.d.ts +23 -0
- package/types/index.d.ts +3 -0
- package/types/utils/index.d.ts +1 -0
- package/dist/index.esm.js +0 -2995
- package/dist/index.esm.js.map +0 -1
- package/dist/styles/components/key.scss +0 -27
- package/lib/components/Dialog/DialogComponent/index.js.map +0 -1
- package/lib/components/NumberKeyboard/Key/index.js +0 -9
- package/lib/components/NumberKeyboard/Key/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,133 +1,136 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
2
|
+
"name": "taro-react-uilib",
|
|
3
|
+
"version": "1.0.24",
|
|
4
|
+
"description": "基于taro的跨端组件库",
|
|
5
|
+
"templateInfo": {
|
|
6
|
+
"name": "default",
|
|
7
|
+
"typescript": true,
|
|
8
|
+
"css": "sass"
|
|
9
|
+
},
|
|
10
|
+
"browser": "dist/index.umd.js",
|
|
11
|
+
"module": "dist/index.esm.js",
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"source": "src/index.ts",
|
|
14
|
+
"types": "types/index.d.ts",
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"dist",
|
|
18
|
+
"types"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build:weapp": "taro build --type weapp",
|
|
22
|
+
"build:h5": "taro build --type h5",
|
|
23
|
+
"build:tt": "taro build --type tt",
|
|
24
|
+
"dev:weapp": "npm run build:weapp -- --watch",
|
|
25
|
+
"dev:h5": "npm run build:h5 -- --watch",
|
|
26
|
+
"dev:tt": "npm run build:tt -- --watch",
|
|
27
|
+
"dev": "yarn run dev:lib",
|
|
28
|
+
"dev:lib": "tsc --project ./tsconfig.build.json --watch --incremental",
|
|
29
|
+
"build": "rimraf dist && yarn run build:rollup && yarn run build:lib",
|
|
30
|
+
"build:lib": "tsc --project ./tsconfig.build.json --declaration --declarationDir types",
|
|
31
|
+
"build:rollup": "rollup --config ./rollup.config.js",
|
|
32
|
+
"prepublishOnly": "yarn run clean && yarn run build",
|
|
33
|
+
"lint": "lint-staged",
|
|
34
|
+
"lint:style": "stylelint \"src/**/*.scss\" --syntax scss",
|
|
35
|
+
"lint:style-fix": "stylelint \"src/**/*.scss\" --syntax scss --fix",
|
|
36
|
+
"test": "cross-env NODE_ENV=test && jest --coverage",
|
|
37
|
+
"test:ci": "yarn run build:h5 && yarn run test",
|
|
38
|
+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
|
|
39
|
+
"clean": "rimraf .temp dist lib coverage",
|
|
40
|
+
"prepare": "husky install"
|
|
41
|
+
},
|
|
42
|
+
"husky": {
|
|
43
|
+
"hooks": {
|
|
44
|
+
"pre-commit": "lint-staged"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"lint-staged": {
|
|
48
|
+
"(src|example)/**/*.{ts,tsx}": [
|
|
49
|
+
"eslint --fix",
|
|
50
|
+
"prettier --write --ignore-unknown"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"keywords": [
|
|
54
|
+
"taro",
|
|
55
|
+
"跨端组件库"
|
|
56
|
+
],
|
|
57
|
+
"author": "xiongshiji",
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"browserslist": [
|
|
60
|
+
"last 3 versions",
|
|
61
|
+
"Android >= 4.1",
|
|
62
|
+
"ios >= 8"
|
|
63
|
+
],
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@babel/core": "^7.8.0",
|
|
66
|
+
"@babel/runtime": "^7.7.7",
|
|
67
|
+
"@commitlint/cli": "16.3.0",
|
|
68
|
+
"@commitlint/config-conventional": "16.2.4",
|
|
69
|
+
"@rollup/plugin-alias": "^3.1.9",
|
|
70
|
+
"@rollup/plugin-commonjs": "^13.0.0",
|
|
71
|
+
"@rollup/plugin-image": "^2.1.1",
|
|
72
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
73
|
+
"@rollup/plugin-node-resolve": "^8.0.1",
|
|
74
|
+
"@tarojs/cli": "3.5.6",
|
|
75
|
+
"@tarojs/components": "3.4.2",
|
|
76
|
+
"@tarojs/mini-runner": "3.4.2",
|
|
77
|
+
"@tarojs/plugin-framework-react": "^3.4.6",
|
|
78
|
+
"@tarojs/plugin-html": "^3.4.13",
|
|
79
|
+
"@tarojs/react": "3.4.2",
|
|
80
|
+
"@tarojs/runtime": "3.4.2",
|
|
81
|
+
"@tarojs/taro": "3.4.2",
|
|
82
|
+
"@tarojs/webpack-runner": "3.4.2",
|
|
83
|
+
"@types/react": "^17.0.2",
|
|
84
|
+
"@types/webpack-env": "^1.13.6",
|
|
85
|
+
"@typescript-eslint/eslint-plugin": "^5.24.0",
|
|
86
|
+
"@typescript-eslint/parser": "^5.24.0",
|
|
87
|
+
"babel-preset-taro": "3.4.2",
|
|
88
|
+
"commitizen": "^4.2.4",
|
|
89
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
90
|
+
"cross-env": "^7.0.2",
|
|
91
|
+
"cz-conventional-changelog": "3.3.0",
|
|
92
|
+
"eslint": "^7.2.0",
|
|
93
|
+
"eslint-config-taro": "3.4.2",
|
|
94
|
+
"eslint-plugin-import": "^2.21.2",
|
|
95
|
+
"eslint-plugin-react": "^7.20.0",
|
|
96
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
97
|
+
"husky": "7",
|
|
98
|
+
"jest": "26",
|
|
99
|
+
"lint-staged": "^12.4.1",
|
|
100
|
+
"postcss": "^8.4.12",
|
|
101
|
+
"prettier": "^2.6.2",
|
|
102
|
+
"react": "^17.0.0",
|
|
103
|
+
"react-dom": "^17.0.0",
|
|
104
|
+
"rimraf": "3.0.2",
|
|
105
|
+
"rollup": "^2.70.2",
|
|
106
|
+
"rollup-plugin-copy": "^3.3.0",
|
|
107
|
+
"rollup-plugin-ignore-import": "^1.3.2",
|
|
108
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
+
"rollup-plugin-serve": "^1.1.0",
|
|
110
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
111
|
+
"rollup-plugin-typescript2": "^0.27.1",
|
|
112
|
+
"rollup-plugin-visualizer": "^4.0.4",
|
|
113
|
+
"sass": "^1.50.0",
|
|
114
|
+
"stylelint": "13.6.0",
|
|
115
|
+
"stylelint-config-standard": "20.0.0",
|
|
116
|
+
"stylelint-scss": "3.17.2",
|
|
117
|
+
"ts-jest": "26",
|
|
118
|
+
"tslib": "^2.4.0",
|
|
119
|
+
"typescript": "^4.1.0"
|
|
120
|
+
},
|
|
121
|
+
"peerDependencies": {
|
|
122
|
+
"@tarojs/components": "^3.0.8",
|
|
123
|
+
"@tarojs/react": "^3.0.8",
|
|
124
|
+
"@types/node": "^14.0.13",
|
|
125
|
+
"react": ">=16.13.0",
|
|
126
|
+
"react-dom": ">=16.13.0"
|
|
127
|
+
},
|
|
128
|
+
"config": {
|
|
129
|
+
"commitizen": {
|
|
130
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"dependencies": {
|
|
134
|
+
"react-transition-group": "^4.4.2"
|
|
135
|
+
}
|
|
133
136
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export interface AnimatedProps extends PropsWithChildren<{}> {
|
|
4
|
+
in: boolean;
|
|
5
|
+
appear?: boolean;
|
|
6
|
+
timeout?: number;
|
|
7
|
+
name?: string;
|
|
8
|
+
onExited?: () => void;
|
|
9
|
+
unmountOnExit?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Animated: FC<AnimatedProps>;
|
|
12
|
+
export default Animated;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren, FC } from "react";
|
|
2
|
+
export declare type SlideDirection = "up" | "down" | "left" | "right";
|
|
3
|
+
export interface SlideProps extends PropsWithChildren<{}> {
|
|
4
|
+
in: boolean;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
direction?: SlideDirection;
|
|
7
|
+
onExited?: () => void;
|
|
8
|
+
unmountOnExit?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Slide: FC<SlideProps>;
|
|
11
|
+
export default Slide;
|
|
@@ -2,8 +2,8 @@ import { FC } from "react";
|
|
|
2
2
|
import { ButtonProps } from "@tarojs/components/types/Button";
|
|
3
3
|
import { ITouchEvent } from "@tarojs/components/types/common";
|
|
4
4
|
import "./index.scss";
|
|
5
|
-
export declare type ButtonType = "default" | "secondary" | "primary" | "warn";
|
|
6
|
-
export declare type ButtonShape = "square" | "round";
|
|
5
|
+
export declare type ButtonType = "default" | "secondary" | "primary" | "warn" | "ghost";
|
|
6
|
+
export declare type ButtonShape = "square" | "round" | "rectangle";
|
|
7
7
|
export declare type ButtonSize = "default" | "mini" | "full";
|
|
8
8
|
export declare type WechatOpenType = "contact"
|
|
9
9
|
/** 触发用户转发,使用前建议先阅读使用指引
|
|
@@ -35,6 +35,7 @@ export declare type XhButtonProps = {
|
|
|
35
35
|
className?: string;
|
|
36
36
|
styleName?: string;
|
|
37
37
|
text?: string;
|
|
38
|
+
preventTime?: number;
|
|
38
39
|
onClick?: (e: ITouchEvent | MouseEvent) => void;
|
|
39
40
|
} & Omit<ButtonProps, "type" | "size">;
|
|
40
41
|
declare const XhButton: FC<XhButtonProps>;
|
|
@@ -5,13 +5,15 @@ declare type refMe = {
|
|
|
5
5
|
reset: () => void;
|
|
6
6
|
};
|
|
7
7
|
export interface CaptchaProps extends XhButtonProps {
|
|
8
|
-
timeout
|
|
8
|
+
timeout?: number;
|
|
9
9
|
className?: string;
|
|
10
10
|
styleName?: string;
|
|
11
|
-
text
|
|
11
|
+
text?: string;
|
|
12
12
|
onClick: () => Promise<boolean>;
|
|
13
13
|
ref: Ref<refMe>;
|
|
14
14
|
timeingTemp?: string;
|
|
15
|
+
ingText?: string;
|
|
16
|
+
onEnd?: () => void;
|
|
15
17
|
}
|
|
16
|
-
declare const CountdownButton: React.ForwardRefExoticComponent<Pick<CaptchaProps, "type" | "size" | "plain" | "disabled" | "loading" | "formType" | "openType" | "hoverClass" | "hoverStyle" | "hoverStopPropagation" | "hoverStartTime" | "hoverStayTime" | "lang" | "sessionFrom" | "sendMessageTitle" | "sendMessagePath" | "sendMessageImg" | "appParameter" | "businessId" | "scope" | "showMessageCard" | "onGetUserInfo" | "onGetAuthorize" | "onContact" | "onGetPhoneNumber" | "onGetRealnameAuthInfo" | "onError" | "onOpenSetting" | "onLaunchapp" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "shape" | "htmlType" | "text" | "timeout" | "styleName" | "timeingTemp"> & React.RefAttributes<refMe>>;
|
|
18
|
+
declare const CountdownButton: React.ForwardRefExoticComponent<Pick<CaptchaProps, "type" | "size" | "plain" | "disabled" | "loading" | "formType" | "openType" | "hoverClass" | "hoverStyle" | "hoverStopPropagation" | "hoverStartTime" | "hoverStayTime" | "lang" | "sessionFrom" | "sendMessageTitle" | "sendMessagePath" | "sendMessageImg" | "appParameter" | "businessId" | "scope" | "showMessageCard" | "onGetUserInfo" | "onGetAuthorize" | "onContact" | "onGetPhoneNumber" | "onGetRealnameAuthInfo" | "onError" | "onOpenSetting" | "onLaunchapp" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "shape" | "htmlType" | "text" | "preventTime" | "timeout" | "styleName" | "timeingTemp" | "ingText" | "onEnd"> & React.RefAttributes<refMe>>;
|
|
17
19
|
export default CountdownButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, RefObject } from "react";
|
|
2
|
-
import { DialogRef, DialogProps } from "
|
|
2
|
+
import { DialogRef, DialogProps } from "../DialogComponent";
|
|
3
3
|
import { AlertProps } from "./Alert";
|
|
4
4
|
import { ConfirmProps, ConfirmPropsResult } from "./Confirm";
|
|
5
5
|
export interface DialogComponent<P = {}> extends ForwardRefExoticComponent<P> {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
export declare type DialogProps = {
|
|
5
|
+
header?: string | ReactNode;
|
|
6
|
+
content: string | ReactNode;
|
|
7
|
+
footer?: string | ReactNode;
|
|
8
|
+
visible: boolean;
|
|
9
|
+
} & XHComponentCommonProps;
|
|
10
|
+
export declare type DialogRef = {
|
|
11
|
+
close: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogCom: React.ForwardRefExoticComponent<{
|
|
14
|
+
header?: string | ReactNode;
|
|
15
|
+
content: string | ReactNode;
|
|
16
|
+
footer?: string | ReactNode;
|
|
17
|
+
visible: boolean;
|
|
18
|
+
} & XHComponentCommonProps & React.RefAttributes<DialogRef>>;
|
|
19
|
+
export default DialogCom;
|
|
@@ -4,11 +4,12 @@ import "./index.scss";
|
|
|
4
4
|
export declare type DialogProps = {
|
|
5
5
|
header?: string | ReactNode;
|
|
6
6
|
content: string | ReactNode;
|
|
7
|
+
footer?: ReactNode;
|
|
7
8
|
cancelText?: string;
|
|
8
9
|
confirmText?: string;
|
|
9
10
|
showCancel?: boolean;
|
|
10
11
|
visible: boolean;
|
|
11
|
-
|
|
12
|
+
onConfirm?: () => void;
|
|
12
13
|
onCancel?: () => void;
|
|
13
14
|
onClose?: () => void;
|
|
14
15
|
} & XHComponentCommonProps;
|
|
@@ -19,11 +20,12 @@ export declare type IDialogRef = {
|
|
|
19
20
|
declare const DialogCom: React.ForwardRefExoticComponent<{
|
|
20
21
|
header?: string | ReactNode;
|
|
21
22
|
content: string | ReactNode;
|
|
23
|
+
footer?: ReactNode;
|
|
22
24
|
cancelText?: string | undefined;
|
|
23
25
|
confirmText?: string | undefined;
|
|
24
26
|
showCancel?: boolean | undefined;
|
|
25
27
|
visible: boolean;
|
|
26
|
-
|
|
28
|
+
onConfirm?: (() => void) | undefined;
|
|
27
29
|
onCancel?: (() => void) | undefined;
|
|
28
30
|
onClose?: (() => void) | undefined;
|
|
29
31
|
} & XHComponentCommonProps & React.RefAttributes<IDialogRef>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ReactNode
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
2
|
import { InputProps } from "@tarojs/components";
|
|
3
3
|
import "./index.scss";
|
|
4
4
|
export declare type HTMLFormType = "tel" | "text" | "number" | "password";
|
|
@@ -18,27 +18,13 @@ export declare type FormInputProps = {
|
|
|
18
18
|
name?: string;
|
|
19
19
|
readonly?: boolean;
|
|
20
20
|
withArrow?: boolean;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
direction?: "row" | "column";
|
|
22
|
+
border?: boolean;
|
|
23
|
+
mainExtra?: ReactNode;
|
|
24
|
+
padding?: boolean;
|
|
25
|
+
} & Omit<InputProps, "type">;
|
|
26
|
+
export declare type FocusHandler = {
|
|
23
27
|
focus: () => void;
|
|
24
|
-
}
|
|
25
|
-
declare const FormInput: React.ForwardRefExoticComponent<Pick<
|
|
26
|
-
onChange?: ((value: string) => void) | undefined;
|
|
27
|
-
onBlur?: ((value: string) => void) | undefined;
|
|
28
|
-
value: string;
|
|
29
|
-
maxlength?: number | undefined;
|
|
30
|
-
placeholder?: string | undefined;
|
|
31
|
-
type?: HTMLFormType | InputProps["type"];
|
|
32
|
-
pattern?: string | undefined;
|
|
33
|
-
RightComponent?: ReactNode;
|
|
34
|
-
label?: string | undefined;
|
|
35
|
-
labelHtml?: string | undefined;
|
|
36
|
-
LeftComponent?: ReactNode;
|
|
37
|
-
LeftIcon?: ReactNode;
|
|
38
|
-
name?: string | undefined;
|
|
39
|
-
readonly?: boolean | undefined;
|
|
40
|
-
withArrow?: boolean | undefined;
|
|
41
|
-
} & InputProps, "type" | "disabled" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "label" | "pattern" | "nativeProps" | "password" | "onChange" | "onBlur" | "value" | "maxlength" | "placeholder" | "RightComponent" | "labelHtml" | "LeftComponent" | "LeftIcon" | "name" | "readonly" | "withArrow" | "placeholderStyle" | "placeholderClass" | "cursorSpacing" | "autoFocus" | "focus" | "confirmType" | "confirmHold" | "cursor" | "selectionStart" | "selectionEnd" | "adjustPosition" | "holdKeyboard" | "alwaysEmbed" | "safePasswordCertPath" | "safePasswordLength" | "safePasswordTimeStamp" | "safePasswordNonce" | "safePasswordSalt" | "safePasswordCustomHash" | "randomNumber" | "controlled" | "onInput" | "onFocus" | "onConfirm" | "onKeyboardHeightChange"> & React.RefAttributes<{
|
|
42
|
-
focus: () => void;
|
|
43
|
-
}>>;
|
|
28
|
+
};
|
|
29
|
+
declare const FormInput: React.ForwardRefExoticComponent<Pick<FormInputProps, "type" | "disabled" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "label" | "pattern" | "nativeProps" | "border" | "padding" | "password" | "value" | "placeholder" | "placeholderStyle" | "placeholderClass" | "maxlength" | "cursorSpacing" | "autoFocus" | "focus" | "confirmType" | "confirmHold" | "cursor" | "selectionStart" | "selectionEnd" | "adjustPosition" | "holdKeyboard" | "alwaysEmbed" | "safePasswordCertPath" | "safePasswordLength" | "safePasswordTimeStamp" | "safePasswordNonce" | "safePasswordSalt" | "safePasswordCustomHash" | "randomNumber" | "controlled" | "onInput" | "onFocus" | "onBlur" | "onConfirm" | "onKeyboardHeightChange" | "name" | "onChange" | "RightComponent" | "labelHtml" | "LeftComponent" | "LeftIcon" | "readonly" | "withArrow" | "direction" | "mainExtra"> & React.RefAttributes<FocusHandler>>;
|
|
44
30
|
export default FormInput;
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { FC, ReactNode } from
|
|
2
|
-
import
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { ITouchEvent } from "@tarojs/components";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
import "./index.scss";
|
|
3
5
|
export declare type XHListProps = {
|
|
4
|
-
title
|
|
5
|
-
description?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string | ReactNode;
|
|
6
8
|
icon?: ReactNode;
|
|
7
9
|
extra?: string | ReactNode;
|
|
8
10
|
extraIcon?: ReactNode;
|
|
9
11
|
border?: boolean;
|
|
10
12
|
arrow?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
outline?: boolean;
|
|
14
|
+
condensed?: boolean;
|
|
15
|
+
onClick?: (e: ITouchEvent) => void;
|
|
16
|
+
descriptionColor?: string;
|
|
17
|
+
extraColor?: string;
|
|
18
|
+
ellipsis?: boolean;
|
|
19
|
+
padding?: boolean;
|
|
20
|
+
} & XHComponentCommonProps;
|
|
13
21
|
declare const XHList: FC<XHListProps>;
|
|
14
22
|
export default XHList;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { FC } from
|
|
2
|
-
import { MaskProps } from
|
|
3
|
-
import { XHComponentCommonProps } from
|
|
4
|
-
import
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { MaskProps } from "../Mask";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
import "./index.scss";
|
|
5
5
|
export declare type LoadingProps = {
|
|
6
6
|
mask?: MaskProps["mask"];
|
|
7
|
+
color?: string;
|
|
8
|
+
tip?: string | ReactNode;
|
|
7
9
|
} & XHComponentCommonProps;
|
|
8
10
|
declare const Loading: FC<LoadingProps>;
|
|
9
11
|
export default Loading;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FC, MouseEvent } from
|
|
2
|
-
import { XHComponentCommonProps } from
|
|
3
|
-
import
|
|
1
|
+
import { FC, MouseEvent } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
import "./index.scss";
|
|
4
4
|
export declare type MaskProps = {
|
|
5
5
|
closeOnClickMask?: boolean;
|
|
6
6
|
onClick?: (e: MouseEvent) => void;
|
|
7
|
-
mask?:
|
|
7
|
+
mask?: "transparent" | "normal";
|
|
8
8
|
} & XHComponentCommonProps;
|
|
9
9
|
declare const Mask: FC<MaskProps>;
|
|
10
10
|
export default Mask;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
import { LoadingProps } from "../Loading";
|
|
5
5
|
export interface PageProps extends PropsWithChildren<XHComponentCommonProps> {
|
|
6
6
|
loading?: boolean;
|
|
7
|
-
mask?: LoadingProps[
|
|
7
|
+
mask?: LoadingProps["mask"];
|
|
8
|
+
tip?: string | ReactNode;
|
|
9
|
+
loadingColor?: string;
|
|
8
10
|
}
|
|
9
11
|
declare const Page: FC<PageProps>;
|
|
10
12
|
export default Page;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode, ReactElement, MouseEventHandler } from "react";
|
|
2
|
+
export interface PickerProps<T extends PickerValue> extends PropsWithChildren<{}> {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
title?: string | ReactNode;
|
|
5
|
+
data: T[];
|
|
6
|
+
ItemComponent?: (props: {
|
|
7
|
+
data: T;
|
|
8
|
+
}) => ReactNode;
|
|
9
|
+
Footer?: ReactNode;
|
|
10
|
+
onConfirm?: (value: T, index: number) => void;
|
|
11
|
+
onCancel?: MouseEventHandler;
|
|
12
|
+
onClose?: MouseEventHandler;
|
|
13
|
+
cancelText?: string;
|
|
14
|
+
confirmText?: string;
|
|
15
|
+
}
|
|
16
|
+
interface PickerObjectValue {
|
|
17
|
+
text: string;
|
|
18
|
+
value: string | number;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
export declare type PickerValue = string | PickerObjectValue;
|
|
22
|
+
declare const Picker: <T extends PickerValue>(props: PickerProps<T>) => ReactElement;
|
|
23
|
+
export default Picker;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactElement, ReactNode } from "react";
|
|
2
|
+
import { PickerValue } from "./Picker";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
export interface PickerFieldProps<T extends PickerValue> extends PropsWithChildren<{}> {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
data: T[];
|
|
7
|
+
ItemComponent?: (props: {
|
|
8
|
+
data: T;
|
|
9
|
+
}) => ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
onConfirm?: (value: T, index: number) => void;
|
|
12
|
+
onCancel?: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const PickerField: <T extends PickerValue>(props: PickerFieldProps<T>) => ReactElement;
|
|
15
|
+
export default PickerField;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export declare type PopupPosition = "top" | "bottom" | "left" | "right";
|
|
4
|
+
export interface PopupProps extends PropsWithChildren<{}> {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
position?: PopupPosition;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const Popup: FC<PopupProps>;
|
|
10
|
+
export default Popup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type ScrolllViewProps = {
|
|
4
|
+
/**试验性组件、暂不支持小程序端,小程序可以用taro提供的 */
|
|
5
|
+
direction: "x" | "y";
|
|
6
|
+
upperThreshold?: number;
|
|
7
|
+
lowerThreshold?: number;
|
|
8
|
+
onScrollToLower: () => void;
|
|
9
|
+
} & XHComponentCommonProps & React.HTMLAttributes<HTMLDivElement>;
|
|
10
|
+
declare const ScrolllView: React.FC<ScrolllViewProps>;
|
|
11
|
+
export default ScrolllView;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
import "./index.scss";
|
|
3
|
+
export interface TabItemProps extends PropsWithChildren<{}> {
|
|
4
|
+
title?: string;
|
|
5
|
+
TabItemComponent?: ReactNode;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const TabItem: (props: TabItemProps) => JSX.Element;
|
|
9
|
+
export default TabItem;
|