taro-react-uilib 1.4.21 → 1.4.22-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/dist/components/Checkbox/Group/index.js +1 -1
- package/dist/components/Checkbox/Group/index.js.map +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Notice/index.js +2 -0
- package/dist/components/Notice/index.js.map +1 -0
- package/dist/components/Radio/Group/index.js +1 -1
- package/dist/components/Radio/Group/index.js.map +1 -1
- package/dist/components/src/index.js +1 -1
- package/dist/components/src/utils/index.js +1 -1
- package/dist/components/src/utils/index.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- 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/icon.scss +5 -1
- package/dist/styles/components/index.scss +2 -0
- package/dist/styles/components/notice.scss +43 -0
- package/dist/styles/components/tabnav.scss +97 -0
- package/package.json +2 -2
- package/types/components/ActionSheet/index.d.ts +43 -44
- package/types/components/ActivityIndicator/index.d.ts +12 -13
- package/types/components/AmountInput/index.d.ts +25 -26
- package/types/components/AmountKeyboard/index.d.ts +35 -36
- package/types/components/Animated/Animated.d.ts +11 -12
- package/types/components/Animated/Fade/index.d.ts +9 -9
- package/types/components/Animated/Scale/index.d.ts +9 -9
- package/types/components/Animated/Slide/index.d.ts +11 -11
- package/types/components/Animated/index.d.ts +3 -3
- package/types/components/Badge/index.d.ts +7 -8
- package/types/components/BankCardNumberInput/index.d.ts +47 -48
- package/types/components/BankIcon/index.d.ts +8 -9
- package/types/components/Button/DotJump.d.ts +7 -7
- package/types/components/Button/index.d.ts +29 -30
- package/types/components/Captcha/index.d.ts +24 -25
- package/types/components/Cell/index.d.ts +29 -30
- package/types/components/Checkbox/Group/index.d.ts +23 -23
- package/types/components/Checkbox/index.d.ts +28 -29
- package/types/components/CheckboxButton/index.d.ts +23 -24
- package/types/components/Collapse/index.d.ts +10 -11
- package/types/components/Countdown/index.d.ts +10 -11
- package/types/components/Dialog/Alert/index.d.ts +26 -26
- package/types/components/Dialog/Confirm/index.d.ts +37 -37
- package/types/components/Dialog/index.d.ts +11 -11
- package/types/components/DialogComponent/index.d.ts +18 -19
- package/types/components/DialogRef/index.d.ts +37 -38
- package/types/components/Echarts/index.d.ts +5 -5
- package/types/components/Echarts/types.d.ts +34 -34
- package/types/components/Echarts/weapp/wx-canvas.d.ts +21 -21
- package/types/components/Echarts/weapp/wx-touch.d.ts +13 -13
- package/types/components/FormInput/index.d.ts +55 -56
- package/types/components/IDNumberInput/index.d.ts +39 -40
- package/types/components/Icon/index.d.ts +13 -14
- package/types/components/Image/index.d.ts +11 -12
- package/types/components/LicensePlateInput/Keyboard.d.ts +26 -27
- package/types/components/LicensePlateInput/index.d.ts +37 -38
- package/types/components/LinkMan/index.d.ts +33 -34
- package/types/components/List/index.d.ts +21 -22
- package/types/components/Loading/index.d.ts +11 -12
- package/types/components/Mask/index.d.ts +9 -10
- package/types/components/NavBar/index.d.ts +11 -12
- package/types/components/Notice/index.d.ts +13 -0
- package/types/components/NumberKeyboard/index.d.ts +24 -25
- package/types/components/Page/index.d.ts +21 -22
- package/types/components/PasswordInput/index.d.ts +10 -11
- package/types/components/Picker/Picker.d.ts +24 -24
- package/types/components/Picker/PickerSlot.d.ts +23 -24
- package/types/components/Picker/index.d.ts +12 -13
- package/types/components/Popup/index.d.ts +10 -11
- package/types/components/Progress/index.d.ts +21 -22
- package/types/components/ProgressCircle/index.d.ts +13 -14
- package/types/components/Radio/Group/index.d.ts +29 -29
- package/types/components/Radio/index.d.ts +29 -30
- package/types/components/Rank/index.d.ts +13 -14
- package/types/components/Result/index.d.ts +23 -24
- package/types/components/ScrollView/index.d.ts +11 -11
- package/types/components/Space/Item.d.ts +11 -11
- package/types/components/Space/config-provider.d.ts +12 -12
- package/types/components/Space/index.d.ts +20 -21
- package/types/components/Step/Steps/index.d.ts +14 -14
- package/types/components/Step/index.d.ts +19 -20
- package/types/components/Switch/index.d.ts +11 -12
- package/types/components/TabNav/TabNavItem/index.d.ts +8 -0
- package/types/components/TabNav/index.d.ts +27 -0
- package/types/components/Tabbar/index.d.ts +8 -9
- package/types/components/Tabbar/tabbar/TabItem.d.ts +8 -8
- package/types/components/Tabbar/tabbar/Tabbar.d.ts +31 -31
- package/types/components/ThemeProvider/index.d.ts +30 -30
- package/types/components/Toast/Toast.d.ts +19 -20
- package/types/components/Toast/index.d.ts +4 -5
- package/types/hooks/index.d.ts +2 -2
- package/types/hooks/useCustomNavbar.d.ts +6 -6
- package/types/hooks/useFirstMountState.d.ts +1 -1
- package/types/hooks/useFlexGapSupport.d.ts +2 -2
- package/types/hooks/useGenerateId.d.ts +1 -1
- package/types/hooks/usePrevious.d.ts +1 -1
- package/types/hooks/useRefs.d.ts +1 -1
- package/types/hooks/useTouch.d.ts +18 -18
- package/types/hooks/useUnMount.d.ts +1 -1
- package/types/hooks/useUpdateEffect.d.ts +1 -1
- package/types/index.d.ts +44 -43
- package/types/types/index.d.ts +5 -5
- package/types/utils/index.d.ts +57 -57
- package/lib/components/ActionSheet/index.js +0 -67
- package/lib/components/ActionSheet/index.js.map +0 -1
- package/lib/components/ActivityIndicator/index.js +0 -30
- package/lib/components/ActivityIndicator/index.js.map +0 -1
- package/lib/components/AmountInput/index.js +0 -53
- package/lib/components/AmountInput/index.js.map +0 -1
- package/lib/components/AmountKeyboard/index.js +0 -134
- package/lib/components/AmountKeyboard/index.js.map +0 -1
- package/lib/components/Animated/Animated.js +0 -20
- package/lib/components/Animated/Animated.js.map +0 -1
- package/lib/components/Animated/Fade/index.js +0 -19
- package/lib/components/Animated/Fade/index.js.map +0 -1
- package/lib/components/Animated/Scale/index.js +0 -19
- package/lib/components/Animated/Scale/index.js.map +0 -1
- package/lib/components/Animated/Slide/index.js +0 -19
- package/lib/components/Animated/Slide/index.js.map +0 -1
- package/lib/components/Animated/index.js +0 -5
- package/lib/components/Animated/index.js.map +0 -1
- package/lib/components/Badge/index.js +0 -11
- package/lib/components/Badge/index.js.map +0 -1
- package/lib/components/BankCardNumberInput/index.js +0 -44
- package/lib/components/BankCardNumberInput/index.js.map +0 -1
- package/lib/components/BankIcon/index.js +0 -12
- package/lib/components/BankIcon/index.js.map +0 -1
- package/lib/components/Button/DotJump.js +0 -13
- package/lib/components/Button/DotJump.js.map +0 -1
- package/lib/components/Button/index.js +0 -62
- package/lib/components/Button/index.js.map +0 -1
- package/lib/components/Captcha/index.js +0 -76
- package/lib/components/Captcha/index.js.map +0 -1
- package/lib/components/Cell/index.js +0 -29
- package/lib/components/Cell/index.js.map +0 -1
- package/lib/components/Checkbox/Group/index.js +0 -49
- package/lib/components/Checkbox/Group/index.js.map +0 -1
- package/lib/components/Checkbox/index.js +0 -55
- package/lib/components/Checkbox/index.js.map +0 -1
- package/lib/components/CheckboxButton/index.js +0 -30
- package/lib/components/CheckboxButton/index.js.map +0 -1
- package/lib/components/Collapse/index.js +0 -47
- package/lib/components/Collapse/index.js.map +0 -1
- package/lib/components/Countdown/index.js +0 -69
- package/lib/components/Countdown/index.js.map +0 -1
- package/lib/components/Dialog/Alert/index.js +0 -35
- package/lib/components/Dialog/Alert/index.js.map +0 -1
- package/lib/components/Dialog/Confirm/index.js +0 -41
- package/lib/components/Dialog/Confirm/index.js.map +0 -1
- package/lib/components/Dialog/index.js +0 -8
- package/lib/components/Dialog/index.js.map +0 -1
- package/lib/components/DialogComponent/index.js +0 -36
- package/lib/components/DialogComponent/index.js.map +0 -1
- package/lib/components/DialogRef/index.js +0 -55
- package/lib/components/DialogRef/index.js.map +0 -1
- package/lib/components/Echarts/index.js +0 -276
- package/lib/components/Echarts/index.js.map +0 -1
- package/lib/components/Echarts/types.js +0 -2
- package/lib/components/Echarts/types.js.map +0 -1
- package/lib/components/Echarts/weapp/wx-canvas.js +0 -125
- package/lib/components/Echarts/weapp/wx-canvas.js.map +0 -1
- package/lib/components/Echarts/weapp/wx-touch.js +0 -75
- package/lib/components/Echarts/weapp/wx-touch.js.map +0 -1
- package/lib/components/FormInput/index.js +0 -75
- package/lib/components/FormInput/index.js.map +0 -1
- package/lib/components/IDNumberInput/index.js +0 -37
- package/lib/components/IDNumberInput/index.js.map +0 -1
- package/lib/components/Icon/index.js +0 -24
- package/lib/components/Icon/index.js.map +0 -1
- package/lib/components/Image/index.js +0 -48
- package/lib/components/Image/index.js.map +0 -1
- package/lib/components/LicensePlateInput/Keyboard.js +0 -168
- package/lib/components/LicensePlateInput/Keyboard.js.map +0 -1
- package/lib/components/LicensePlateInput/index.js +0 -94
- package/lib/components/LicensePlateInput/index.js.map +0 -1
- package/lib/components/LinkMan/index.js +0 -348
- package/lib/components/LinkMan/index.js.map +0 -1
- package/lib/components/List/index.js +0 -26
- package/lib/components/List/index.js.map +0 -1
- package/lib/components/Loading/index.js +0 -18
- package/lib/components/Loading/index.js.map +0 -1
- package/lib/components/Mask/index.js +0 -17
- package/lib/components/Mask/index.js.map +0 -1
- package/lib/components/NavBar/index.js +0 -41
- package/lib/components/NavBar/index.js.map +0 -1
- package/lib/components/NumberKeyboard/index.js +0 -63
- package/lib/components/NumberKeyboard/index.js.map +0 -1
- package/lib/components/Page/index.js +0 -30
- package/lib/components/Page/index.js.map +0 -1
- package/lib/components/PasswordInput/index.js +0 -24
- package/lib/components/PasswordInput/index.js.map +0 -1
- package/lib/components/Picker/Picker.js +0 -205
- package/lib/components/Picker/Picker.js.map +0 -1
- package/lib/components/Picker/PickerSlot.js +0 -226
- package/lib/components/Picker/PickerSlot.js.map +0 -1
- package/lib/components/Picker/index.js +0 -33
- package/lib/components/Picker/index.js.map +0 -1
- package/lib/components/Popup/index.js +0 -60
- package/lib/components/Popup/index.js.map +0 -1
- package/lib/components/Progress/index.js +0 -29
- package/lib/components/Progress/index.js.map +0 -1
- package/lib/components/ProgressCircle/index.js +0 -22
- package/lib/components/ProgressCircle/index.js.map +0 -1
- package/lib/components/Radio/Group/index.js +0 -58
- package/lib/components/Radio/Group/index.js.map +0 -1
- package/lib/components/Radio/index.js +0 -55
- package/lib/components/Radio/index.js.map +0 -1
- package/lib/components/Rank/index.js +0 -22
- package/lib/components/Rank/index.js.map +0 -1
- package/lib/components/Result/index.js +0 -38
- package/lib/components/Result/index.js.map +0 -1
- package/lib/components/ScrollView/index.js +0 -34
- package/lib/components/ScrollView/index.js.map +0 -1
- package/lib/components/Space/Item.js +0 -25
- package/lib/components/Space/Item.js.map +0 -1
- package/lib/components/Space/config-provider.js +0 -8
- package/lib/components/Space/config-provider.js.map +0 -1
- package/lib/components/Space/index.js +0 -77
- package/lib/components/Space/index.js.map +0 -1
- package/lib/components/Step/Steps/index.js +0 -33
- package/lib/components/Step/Steps/index.js.map +0 -1
- package/lib/components/Step/index.js +0 -20
- package/lib/components/Step/index.js.map +0 -1
- package/lib/components/Switch/index.js +0 -26
- package/lib/components/Switch/index.js.map +0 -1
- package/lib/components/Tabbar/index.js +0 -7
- package/lib/components/Tabbar/index.js.map +0 -1
- package/lib/components/Tabbar/tabbar/TabItem.js +0 -9
- package/lib/components/Tabbar/tabbar/TabItem.js.map +0 -1
- package/lib/components/Tabbar/tabbar/Tabbar.js +0 -87
- package/lib/components/Tabbar/tabbar/Tabbar.js.map +0 -1
- package/lib/components/ThemeProvider/index.js +0 -32
- package/lib/components/ThemeProvider/index.js.map +0 -1
- package/lib/components/Toast/Toast.js +0 -38
- package/lib/components/Toast/Toast.js.map +0 -1
- package/lib/components/Toast/index.js +0 -56
- package/lib/components/Toast/index.js.map +0 -1
- package/lib/hooks/index.js +0 -17
- package/lib/hooks/index.js.map +0 -1
- package/lib/hooks/useCustomNavbar.js +0 -24
- package/lib/hooks/useCustomNavbar.js.map +0 -1
- package/lib/hooks/useFirstMountState.js +0 -10
- package/lib/hooks/useFirstMountState.js.map +0 -1
- package/lib/hooks/useFlexGapSupport.js +0 -10
- package/lib/hooks/useFlexGapSupport.js.map +0 -1
- package/lib/hooks/useGenerateId.js +0 -12
- package/lib/hooks/useGenerateId.js.map +0 -1
- package/lib/hooks/usePrevious.js +0 -9
- package/lib/hooks/usePrevious.js.map +0 -1
- package/lib/hooks/useRefs.js +0 -13
- package/lib/hooks/useRefs.js.map +0 -1
- package/lib/hooks/useTouch.js +0 -67
- package/lib/hooks/useTouch.js.map +0 -1
- package/lib/hooks/useUnMount.js +0 -5
- package/lib/hooks/useUnMount.js.map +0 -1
- package/lib/hooks/useUpdateEffect.js +0 -12
- package/lib/hooks/useUpdateEffect.js.map +0 -1
- package/lib/index.js +0 -44
- package/lib/index.js.map +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +0 -1
- package/lib/utils/index.js +0 -320
- package/lib/utils/index.js.map +0 -1
- package/types/components/BankIcon/bank.d.ts +0 -18
- package/types/components/Dialog/Dialog/index.d.ts +0 -19
- package/types/components/Dialog/DialogComponent/index.d.ts +0 -19
- package/types/components/NumberKeyboard/Key/index.d.ts +0 -8
- package/types/components/PickerSlot/index.d.ts +0 -24
- package/types/components/Tabbar/components/TabItem.d.ts +0 -9
- package/types/components/Tabbar/components/Tabbar.d.ts +0 -30
- package/types/components/Theme/index.d.ts +0 -27
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@import './loading.scss';
|
|
28
28
|
@import './mask.scss';
|
|
29
29
|
@import './navbar.scss';
|
|
30
|
+
@import './notice.scss';
|
|
30
31
|
@import './numberkeyboard.scss';
|
|
31
32
|
@import './page.scss';
|
|
32
33
|
@import './passwordinput.scss';
|
|
@@ -44,5 +45,6 @@
|
|
|
44
45
|
@import './step.scss';
|
|
45
46
|
@import './switch.scss';
|
|
46
47
|
@import './tabbar.scss';
|
|
48
|
+
@import './tabnav.scss';
|
|
47
49
|
@import './themeprovider.scss';
|
|
48
50
|
@import './toast.scss';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.xh-notice {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 72px;
|
|
4
|
+
padding: 0 20px 0 30px;
|
|
5
|
+
background-color: #F3F6FD;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
|
|
12
|
+
&-main {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
height: 100%;
|
|
18
|
+
margin-left: 12px;
|
|
19
|
+
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
20
|
+
// overflow: hidden;
|
|
21
|
+
|
|
22
|
+
&-marquee {
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
height: 72px;
|
|
25
|
+
line-height: 72px;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
|
|
28
|
+
&-text {
|
|
29
|
+
font-size: 26px;
|
|
30
|
+
color: #212121;
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
// display: inline-block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-right {
|
|
38
|
+
font-size: 24px;
|
|
39
|
+
color: var(--color-primary-secondary);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
.xh-tabnav {
|
|
2
|
+
background-color: #fff;
|
|
3
|
+
border-radius: 24px 24px 0 0;
|
|
4
|
+
box-shadow: 0 4px 24px 0 rgba(0, 42, 255, 0.08);
|
|
5
|
+
|
|
6
|
+
&-bar {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
position: relative;
|
|
10
|
+
height: 88px;
|
|
11
|
+
background: transparent;
|
|
12
|
+
overflow-x: auto;
|
|
13
|
+
overflow-y: hidden;
|
|
14
|
+
white-space: nowrap;
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
/* Firefox */
|
|
17
|
+
-ms-overflow-style: none;
|
|
18
|
+
|
|
19
|
+
&::-webkit-scrollbar {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-tab {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
text-align: center;
|
|
28
|
+
font-size: 32px;
|
|
29
|
+
color: #356aff;
|
|
30
|
+
padding: 24px 32px 16px 32px;
|
|
31
|
+
position: relative;
|
|
32
|
+
border-radius: 20px 20px 0 0;
|
|
33
|
+
transition: background 0.2s, color 0.2s;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
position: relative;
|
|
37
|
+
|
|
38
|
+
&-underline {
|
|
39
|
+
position: absolute;
|
|
40
|
+
left: 50%;
|
|
41
|
+
bottom: 8px;
|
|
42
|
+
transform: translateX(-50%);
|
|
43
|
+
width: 36px;
|
|
44
|
+
height: 6px;
|
|
45
|
+
background: #fff;
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
box-shadow: 0 2px 8px 0 rgba(53, 106, 255, 0.15);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.active {
|
|
51
|
+
background: linear-gradient(90deg, #4e8cff 0%, #356aff 100%);
|
|
52
|
+
color: #fff;
|
|
53
|
+
|
|
54
|
+
&::before,
|
|
55
|
+
&:not(:last-child)::after {
|
|
56
|
+
content: '';
|
|
57
|
+
width: 20px;
|
|
58
|
+
height: 20px;
|
|
59
|
+
bottom: 0;
|
|
60
|
+
position: absolute;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::before {
|
|
64
|
+
left: -20px;
|
|
65
|
+
background: radial-gradient(circle at 0 0, transparent 20px, #356aff 20px);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&::after {
|
|
69
|
+
right: -20px;
|
|
70
|
+
background: radial-gradient(circle at 20px 0, transparent 20px, #356aff 20px);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
$root: &;
|
|
77
|
+
|
|
78
|
+
&-scroll {
|
|
79
|
+
height: calc(100vh - 88px);
|
|
80
|
+
background-color: #f5f5f5;
|
|
81
|
+
padding: 28px 32px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
|
|
85
|
+
&-block {
|
|
86
|
+
&:not(:first-child) {
|
|
87
|
+
#{$root}-item {
|
|
88
|
+
margin-top: 20px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&-item {
|
|
95
|
+
min-height: 600px;
|
|
96
|
+
}
|
|
97
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taro-react-uilib",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22-1",
|
|
4
4
|
"description": "基于taro的跨端组件库",
|
|
5
5
|
"templateInfo": {
|
|
6
6
|
"name": "default",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dev:tt": "npm run build:tt -- --watch",
|
|
27
27
|
"dev": "yarn run dev:lib",
|
|
28
28
|
"dev:lib": "tsc --project ./tsconfig.build.json --watch --incremental",
|
|
29
|
-
"build": "rimraf dist && yarn run build:rollup
|
|
29
|
+
"build": "rimraf dist && yarn run build:rollup",
|
|
30
30
|
"build:lib": "tsc --project ./tsconfig.build.json --declaration --declarationDir types",
|
|
31
31
|
"build:rollup": "rollup --config ./rollup.config.js",
|
|
32
32
|
"prepublishOnly": "yarn run clean && yarn run build",
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
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
|
-
export default ActionSheet;
|
|
1
|
+
import React, { ReactNode, ReactElement } from "react";
|
|
2
|
+
export interface ActionSheetOption {
|
|
3
|
+
text: ReactNode;
|
|
4
|
+
value: string | number;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare type ActionValue = string | ActionSheetOption;
|
|
8
|
+
export interface ActionProps<T extends ActionValue = ActionValue> {
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
data: T[];
|
|
12
|
+
defaultValue?: T;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
onConfirm?: (selectedValue: T, index: number) => void;
|
|
16
|
+
onCancel?: (bottom?: boolean) => void;
|
|
17
|
+
onClose?: () => void;
|
|
18
|
+
onClick?: (flag: boolean) => void;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* @summary controlled模式下,组件为受控组件,需要外部来显示和隐藏
|
|
23
|
+
* @description submit 模式下会显示提交按钮,可以自定义,也可以显示取消按钮但是得传进来一个Toggle事件用来显示隐藏
|
|
24
|
+
*/
|
|
25
|
+
mode?: "controlled";
|
|
26
|
+
cancelText?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* submit模式下,默认不展示取消按钮,可以设置
|
|
29
|
+
*/
|
|
30
|
+
showCancel?: boolean;
|
|
31
|
+
submitText?: string;
|
|
32
|
+
renderItem?: (item: T, index: number) => ReactNode;
|
|
33
|
+
ItemWrapper?: React.FC<{}>;
|
|
34
|
+
onSubmit?: () => void;
|
|
35
|
+
justifyContent?: "start" | "end";
|
|
36
|
+
/**
|
|
37
|
+
* 显示右上角的关闭、默认只有不显示下面的取消的时候才出现
|
|
38
|
+
*/
|
|
39
|
+
showClose?: boolean;
|
|
40
|
+
inline?: boolean;
|
|
41
|
+
}
|
|
42
|
+
declare const ActionSheet: <T extends ActionValue>(props: ActionProps<T>) => ReactElement;
|
|
43
|
+
export default ActionSheet;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { CSSProperties, FC } from "react";
|
|
2
|
-
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
-
import { XHComponentCommonProps } from "../../types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"--loading-border-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export default Activityindicator;
|
|
1
|
+
import { CSSProperties, FC } from "react";
|
|
2
|
+
import type { StandardLonghandProperties } from "csstype";
|
|
3
|
+
import { XHComponentCommonProps } from "../../types";
|
|
4
|
+
export declare type LoadingProps = {
|
|
5
|
+
style?: CSSProperties & {
|
|
6
|
+
"--loading-border-color"?: StandardLonghandProperties["color"];
|
|
7
|
+
"--loading-border-width"?: string;
|
|
8
|
+
};
|
|
9
|
+
size?: number;
|
|
10
|
+
} & XHComponentCommonProps;
|
|
11
|
+
declare const Activityindicator: FC<LoadingProps>;
|
|
12
|
+
export default Activityindicator;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export default AmountInput;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type AmountInputProps = {
|
|
4
|
+
space?: number;
|
|
5
|
+
value: string;
|
|
6
|
+
maxlength: number;
|
|
7
|
+
onFocus?: (e: any) => void;
|
|
8
|
+
unit?: string;
|
|
9
|
+
slot?: ReactNode;
|
|
10
|
+
shortcut?: ReactNode;
|
|
11
|
+
errTip?: string;
|
|
12
|
+
maxAmount?: number | string;
|
|
13
|
+
minAmount?: number | string;
|
|
14
|
+
showUpgrade?: boolean;
|
|
15
|
+
onUpgrade?: () => void;
|
|
16
|
+
loanOnekey?: () => void;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
focus?: boolean;
|
|
19
|
+
/** 借款步长 */
|
|
20
|
+
step?: number;
|
|
21
|
+
showBottom?: boolean;
|
|
22
|
+
title?: ReactNode;
|
|
23
|
+
} & XHComponentCommonProps;
|
|
24
|
+
declare const AmountInput: React.FC<AmountInputProps>;
|
|
25
|
+
export default AmountInput;
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { FC, MouseEvent, ReactNode } from "react";
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
* @param
|
|
21
|
-
* @
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export default AmountKeyboard;
|
|
1
|
+
import { FC, MouseEvent, ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type NumberKeyboardProps = {
|
|
4
|
+
show: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 是否支持小数,小数保留小数点后两位,默认不支持
|
|
7
|
+
*/
|
|
8
|
+
decimal?: boolean;
|
|
9
|
+
showClose?: boolean;
|
|
10
|
+
closeOnClickSpace?: boolean;
|
|
11
|
+
maxLength?: number;
|
|
12
|
+
onBlur?: (e: MouseEvent | Event) => void;
|
|
13
|
+
onClose?: (e: MouseEvent | Event) => void;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
value: string;
|
|
16
|
+
header?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param value 输入值
|
|
20
|
+
* @param recommend 是否是点击推荐金额触发
|
|
21
|
+
* @returns void
|
|
22
|
+
*/
|
|
23
|
+
onConfirm?: (value: string, recommend?: boolean) => void;
|
|
24
|
+
recommend?: Array<number | string>;
|
|
25
|
+
tip?: ReactNode;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
} & XHComponentCommonProps;
|
|
28
|
+
export declare type KeyType = "number" | "delete" | "string" | "none" | "close";
|
|
29
|
+
export interface IKey {
|
|
30
|
+
text: number | string;
|
|
31
|
+
value: number | string;
|
|
32
|
+
type: KeyType;
|
|
33
|
+
}
|
|
34
|
+
declare const AmountKeyboard: FC<NumberKeyboardProps>;
|
|
35
|
+
export default AmountKeyboard;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default Animated;
|
|
1
|
+
import { FC, PropsWithChildren } from "react";
|
|
2
|
+
export interface AnimatedProps extends PropsWithChildren<{}> {
|
|
3
|
+
in: boolean;
|
|
4
|
+
appear?: boolean;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
onExited?: () => void;
|
|
8
|
+
unmountOnExit?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Animated: FC<AnimatedProps>;
|
|
11
|
+
export default Animated;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren, FC } from "react";
|
|
2
|
-
export interface FadeProps extends PropsWithChildren<{}> {
|
|
3
|
-
in: boolean;
|
|
4
|
-
timeout?: number;
|
|
5
|
-
onExited?: () => void;
|
|
6
|
-
unmountOnExit?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Fade: FC<FadeProps>;
|
|
9
|
-
export default Fade;
|
|
1
|
+
import { PropsWithChildren, FC } from "react";
|
|
2
|
+
export interface FadeProps extends PropsWithChildren<{}> {
|
|
3
|
+
in: boolean;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
onExited?: () => void;
|
|
6
|
+
unmountOnExit?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Fade: FC<FadeProps>;
|
|
9
|
+
export default Fade;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropsWithChildren, FC } from "react";
|
|
2
|
-
export interface ScaleProps extends PropsWithChildren<{}> {
|
|
3
|
-
in: boolean;
|
|
4
|
-
timeout?: number;
|
|
5
|
-
onExited?: () => void;
|
|
6
|
-
unmountOnExit?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Scale: FC<ScaleProps>;
|
|
9
|
-
export default Scale;
|
|
1
|
+
import { PropsWithChildren, FC } from "react";
|
|
2
|
+
export interface ScaleProps extends PropsWithChildren<{}> {
|
|
3
|
+
in: boolean;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
onExited?: () => void;
|
|
6
|
+
unmountOnExit?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Scale: FC<ScaleProps>;
|
|
9
|
+
export default Scale;
|
|
@@ -1,11 +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;
|
|
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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Slide } from "./Slide";
|
|
2
|
-
export { default as Fade } from "./Fade";
|
|
3
|
-
export { default as Scale } from "./Scale";
|
|
1
|
+
export { default as Slide } from "./Slide";
|
|
2
|
+
export { default as Fade } from "./Fade";
|
|
3
|
+
export { default as Scale } from "./Scale";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { XHComponentCommonProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export default Badge;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type BadgeProps = {
|
|
4
|
+
content?: string;
|
|
5
|
+
} & XHComponentCommonProps;
|
|
6
|
+
declare const Badge: React.FC<BadgeProps>;
|
|
7
|
+
export default Badge;
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import "
|
|
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
|
-
export default BankCardNumberInput;
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { XHComponentCommonProps } from "../../types";
|
|
3
|
+
export declare type PhoneNumberInputProps = {
|
|
4
|
+
showScan?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* 只有在direction为column才生效
|
|
8
|
+
*/
|
|
9
|
+
bankName?: ReactNode;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
value: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
direction?: "column" | "row";
|
|
16
|
+
onScan?: () => void;
|
|
17
|
+
onError?: (msg: string) => void;
|
|
18
|
+
maxlength?: number;
|
|
19
|
+
slot?: ReactNode;
|
|
20
|
+
border?: boolean;
|
|
21
|
+
onBlur?: () => void;
|
|
22
|
+
} & XHComponentCommonProps;
|
|
23
|
+
export declare type BankCardNumberInputRef = {
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
focus: () => void;
|
|
26
|
+
};
|
|
27
|
+
declare const BankCardNumberInput: React.ForwardRefExoticComponent<{
|
|
28
|
+
showScan?: boolean | undefined;
|
|
29
|
+
label?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* 只有在direction为column才生效
|
|
32
|
+
*/
|
|
33
|
+
bankName?: ReactNode;
|
|
34
|
+
onChange?: ((value: string) => void) | undefined;
|
|
35
|
+
value: string;
|
|
36
|
+
placeholder?: string | undefined;
|
|
37
|
+
readOnly?: boolean | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
direction?: "column" | "row" | undefined;
|
|
40
|
+
onScan?: (() => void) | undefined;
|
|
41
|
+
onError?: ((msg: string) => void) | undefined;
|
|
42
|
+
maxlength?: number | undefined;
|
|
43
|
+
slot?: ReactNode;
|
|
44
|
+
border?: boolean | undefined;
|
|
45
|
+
onBlur?: (() => void) | undefined;
|
|
46
|
+
} & XHComponentCommonProps & React.RefAttributes<BankCardNumberInputRef>>;
|
|
47
|
+
export default BankCardNumberInput;
|