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.
Files changed (276) hide show
  1. package/dist/components/Checkbox/Group/index.js +1 -1
  2. package/dist/components/Checkbox/Group/index.js.map +1 -1
  3. package/dist/components/Icon/index.js +1 -1
  4. package/dist/components/Icon/index.js.map +1 -1
  5. package/dist/components/Notice/index.js +2 -0
  6. package/dist/components/Notice/index.js.map +1 -0
  7. package/dist/components/Radio/Group/index.js +1 -1
  8. package/dist/components/Radio/Group/index.js.map +1 -1
  9. package/dist/components/src/index.js +1 -1
  10. package/dist/components/src/utils/index.js +1 -1
  11. package/dist/components/src/utils/index.js.map +1 -1
  12. package/dist/index.esm.js +4 -4
  13. package/dist/index.esm.js.map +1 -1
  14. package/dist/index.js +4 -4
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.umd.js +4 -4
  17. package/dist/index.umd.js.map +1 -1
  18. package/dist/styles/components/font/iconfont.ttf +0 -0
  19. package/dist/styles/components/font/iconfont.woff +0 -0
  20. package/dist/styles/components/font/iconfont.woff2 +0 -0
  21. package/dist/styles/components/icon.scss +5 -1
  22. package/dist/styles/components/index.scss +2 -0
  23. package/dist/styles/components/notice.scss +43 -0
  24. package/dist/styles/components/tabnav.scss +97 -0
  25. package/package.json +2 -2
  26. package/types/components/ActionSheet/index.d.ts +43 -44
  27. package/types/components/ActivityIndicator/index.d.ts +12 -13
  28. package/types/components/AmountInput/index.d.ts +25 -26
  29. package/types/components/AmountKeyboard/index.d.ts +35 -36
  30. package/types/components/Animated/Animated.d.ts +11 -12
  31. package/types/components/Animated/Fade/index.d.ts +9 -9
  32. package/types/components/Animated/Scale/index.d.ts +9 -9
  33. package/types/components/Animated/Slide/index.d.ts +11 -11
  34. package/types/components/Animated/index.d.ts +3 -3
  35. package/types/components/Badge/index.d.ts +7 -8
  36. package/types/components/BankCardNumberInput/index.d.ts +47 -48
  37. package/types/components/BankIcon/index.d.ts +8 -9
  38. package/types/components/Button/DotJump.d.ts +7 -7
  39. package/types/components/Button/index.d.ts +29 -30
  40. package/types/components/Captcha/index.d.ts +24 -25
  41. package/types/components/Cell/index.d.ts +29 -30
  42. package/types/components/Checkbox/Group/index.d.ts +23 -23
  43. package/types/components/Checkbox/index.d.ts +28 -29
  44. package/types/components/CheckboxButton/index.d.ts +23 -24
  45. package/types/components/Collapse/index.d.ts +10 -11
  46. package/types/components/Countdown/index.d.ts +10 -11
  47. package/types/components/Dialog/Alert/index.d.ts +26 -26
  48. package/types/components/Dialog/Confirm/index.d.ts +37 -37
  49. package/types/components/Dialog/index.d.ts +11 -11
  50. package/types/components/DialogComponent/index.d.ts +18 -19
  51. package/types/components/DialogRef/index.d.ts +37 -38
  52. package/types/components/Echarts/index.d.ts +5 -5
  53. package/types/components/Echarts/types.d.ts +34 -34
  54. package/types/components/Echarts/weapp/wx-canvas.d.ts +21 -21
  55. package/types/components/Echarts/weapp/wx-touch.d.ts +13 -13
  56. package/types/components/FormInput/index.d.ts +55 -56
  57. package/types/components/IDNumberInput/index.d.ts +39 -40
  58. package/types/components/Icon/index.d.ts +13 -14
  59. package/types/components/Image/index.d.ts +11 -12
  60. package/types/components/LicensePlateInput/Keyboard.d.ts +26 -27
  61. package/types/components/LicensePlateInput/index.d.ts +37 -38
  62. package/types/components/LinkMan/index.d.ts +33 -34
  63. package/types/components/List/index.d.ts +21 -22
  64. package/types/components/Loading/index.d.ts +11 -12
  65. package/types/components/Mask/index.d.ts +9 -10
  66. package/types/components/NavBar/index.d.ts +11 -12
  67. package/types/components/Notice/index.d.ts +13 -0
  68. package/types/components/NumberKeyboard/index.d.ts +24 -25
  69. package/types/components/Page/index.d.ts +21 -22
  70. package/types/components/PasswordInput/index.d.ts +10 -11
  71. package/types/components/Picker/Picker.d.ts +24 -24
  72. package/types/components/Picker/PickerSlot.d.ts +23 -24
  73. package/types/components/Picker/index.d.ts +12 -13
  74. package/types/components/Popup/index.d.ts +10 -11
  75. package/types/components/Progress/index.d.ts +21 -22
  76. package/types/components/ProgressCircle/index.d.ts +13 -14
  77. package/types/components/Radio/Group/index.d.ts +29 -29
  78. package/types/components/Radio/index.d.ts +29 -30
  79. package/types/components/Rank/index.d.ts +13 -14
  80. package/types/components/Result/index.d.ts +23 -24
  81. package/types/components/ScrollView/index.d.ts +11 -11
  82. package/types/components/Space/Item.d.ts +11 -11
  83. package/types/components/Space/config-provider.d.ts +12 -12
  84. package/types/components/Space/index.d.ts +20 -21
  85. package/types/components/Step/Steps/index.d.ts +14 -14
  86. package/types/components/Step/index.d.ts +19 -20
  87. package/types/components/Switch/index.d.ts +11 -12
  88. package/types/components/TabNav/TabNavItem/index.d.ts +8 -0
  89. package/types/components/TabNav/index.d.ts +27 -0
  90. package/types/components/Tabbar/index.d.ts +8 -9
  91. package/types/components/Tabbar/tabbar/TabItem.d.ts +8 -8
  92. package/types/components/Tabbar/tabbar/Tabbar.d.ts +31 -31
  93. package/types/components/ThemeProvider/index.d.ts +30 -30
  94. package/types/components/Toast/Toast.d.ts +19 -20
  95. package/types/components/Toast/index.d.ts +4 -5
  96. package/types/hooks/index.d.ts +2 -2
  97. package/types/hooks/useCustomNavbar.d.ts +6 -6
  98. package/types/hooks/useFirstMountState.d.ts +1 -1
  99. package/types/hooks/useFlexGapSupport.d.ts +2 -2
  100. package/types/hooks/useGenerateId.d.ts +1 -1
  101. package/types/hooks/usePrevious.d.ts +1 -1
  102. package/types/hooks/useRefs.d.ts +1 -1
  103. package/types/hooks/useTouch.d.ts +18 -18
  104. package/types/hooks/useUnMount.d.ts +1 -1
  105. package/types/hooks/useUpdateEffect.d.ts +1 -1
  106. package/types/index.d.ts +44 -43
  107. package/types/types/index.d.ts +5 -5
  108. package/types/utils/index.d.ts +57 -57
  109. package/lib/components/ActionSheet/index.js +0 -67
  110. package/lib/components/ActionSheet/index.js.map +0 -1
  111. package/lib/components/ActivityIndicator/index.js +0 -30
  112. package/lib/components/ActivityIndicator/index.js.map +0 -1
  113. package/lib/components/AmountInput/index.js +0 -53
  114. package/lib/components/AmountInput/index.js.map +0 -1
  115. package/lib/components/AmountKeyboard/index.js +0 -134
  116. package/lib/components/AmountKeyboard/index.js.map +0 -1
  117. package/lib/components/Animated/Animated.js +0 -20
  118. package/lib/components/Animated/Animated.js.map +0 -1
  119. package/lib/components/Animated/Fade/index.js +0 -19
  120. package/lib/components/Animated/Fade/index.js.map +0 -1
  121. package/lib/components/Animated/Scale/index.js +0 -19
  122. package/lib/components/Animated/Scale/index.js.map +0 -1
  123. package/lib/components/Animated/Slide/index.js +0 -19
  124. package/lib/components/Animated/Slide/index.js.map +0 -1
  125. package/lib/components/Animated/index.js +0 -5
  126. package/lib/components/Animated/index.js.map +0 -1
  127. package/lib/components/Badge/index.js +0 -11
  128. package/lib/components/Badge/index.js.map +0 -1
  129. package/lib/components/BankCardNumberInput/index.js +0 -44
  130. package/lib/components/BankCardNumberInput/index.js.map +0 -1
  131. package/lib/components/BankIcon/index.js +0 -12
  132. package/lib/components/BankIcon/index.js.map +0 -1
  133. package/lib/components/Button/DotJump.js +0 -13
  134. package/lib/components/Button/DotJump.js.map +0 -1
  135. package/lib/components/Button/index.js +0 -62
  136. package/lib/components/Button/index.js.map +0 -1
  137. package/lib/components/Captcha/index.js +0 -76
  138. package/lib/components/Captcha/index.js.map +0 -1
  139. package/lib/components/Cell/index.js +0 -29
  140. package/lib/components/Cell/index.js.map +0 -1
  141. package/lib/components/Checkbox/Group/index.js +0 -49
  142. package/lib/components/Checkbox/Group/index.js.map +0 -1
  143. package/lib/components/Checkbox/index.js +0 -55
  144. package/lib/components/Checkbox/index.js.map +0 -1
  145. package/lib/components/CheckboxButton/index.js +0 -30
  146. package/lib/components/CheckboxButton/index.js.map +0 -1
  147. package/lib/components/Collapse/index.js +0 -47
  148. package/lib/components/Collapse/index.js.map +0 -1
  149. package/lib/components/Countdown/index.js +0 -69
  150. package/lib/components/Countdown/index.js.map +0 -1
  151. package/lib/components/Dialog/Alert/index.js +0 -35
  152. package/lib/components/Dialog/Alert/index.js.map +0 -1
  153. package/lib/components/Dialog/Confirm/index.js +0 -41
  154. package/lib/components/Dialog/Confirm/index.js.map +0 -1
  155. package/lib/components/Dialog/index.js +0 -8
  156. package/lib/components/Dialog/index.js.map +0 -1
  157. package/lib/components/DialogComponent/index.js +0 -36
  158. package/lib/components/DialogComponent/index.js.map +0 -1
  159. package/lib/components/DialogRef/index.js +0 -55
  160. package/lib/components/DialogRef/index.js.map +0 -1
  161. package/lib/components/Echarts/index.js +0 -276
  162. package/lib/components/Echarts/index.js.map +0 -1
  163. package/lib/components/Echarts/types.js +0 -2
  164. package/lib/components/Echarts/types.js.map +0 -1
  165. package/lib/components/Echarts/weapp/wx-canvas.js +0 -125
  166. package/lib/components/Echarts/weapp/wx-canvas.js.map +0 -1
  167. package/lib/components/Echarts/weapp/wx-touch.js +0 -75
  168. package/lib/components/Echarts/weapp/wx-touch.js.map +0 -1
  169. package/lib/components/FormInput/index.js +0 -75
  170. package/lib/components/FormInput/index.js.map +0 -1
  171. package/lib/components/IDNumberInput/index.js +0 -37
  172. package/lib/components/IDNumberInput/index.js.map +0 -1
  173. package/lib/components/Icon/index.js +0 -24
  174. package/lib/components/Icon/index.js.map +0 -1
  175. package/lib/components/Image/index.js +0 -48
  176. package/lib/components/Image/index.js.map +0 -1
  177. package/lib/components/LicensePlateInput/Keyboard.js +0 -168
  178. package/lib/components/LicensePlateInput/Keyboard.js.map +0 -1
  179. package/lib/components/LicensePlateInput/index.js +0 -94
  180. package/lib/components/LicensePlateInput/index.js.map +0 -1
  181. package/lib/components/LinkMan/index.js +0 -348
  182. package/lib/components/LinkMan/index.js.map +0 -1
  183. package/lib/components/List/index.js +0 -26
  184. package/lib/components/List/index.js.map +0 -1
  185. package/lib/components/Loading/index.js +0 -18
  186. package/lib/components/Loading/index.js.map +0 -1
  187. package/lib/components/Mask/index.js +0 -17
  188. package/lib/components/Mask/index.js.map +0 -1
  189. package/lib/components/NavBar/index.js +0 -41
  190. package/lib/components/NavBar/index.js.map +0 -1
  191. package/lib/components/NumberKeyboard/index.js +0 -63
  192. package/lib/components/NumberKeyboard/index.js.map +0 -1
  193. package/lib/components/Page/index.js +0 -30
  194. package/lib/components/Page/index.js.map +0 -1
  195. package/lib/components/PasswordInput/index.js +0 -24
  196. package/lib/components/PasswordInput/index.js.map +0 -1
  197. package/lib/components/Picker/Picker.js +0 -205
  198. package/lib/components/Picker/Picker.js.map +0 -1
  199. package/lib/components/Picker/PickerSlot.js +0 -226
  200. package/lib/components/Picker/PickerSlot.js.map +0 -1
  201. package/lib/components/Picker/index.js +0 -33
  202. package/lib/components/Picker/index.js.map +0 -1
  203. package/lib/components/Popup/index.js +0 -60
  204. package/lib/components/Popup/index.js.map +0 -1
  205. package/lib/components/Progress/index.js +0 -29
  206. package/lib/components/Progress/index.js.map +0 -1
  207. package/lib/components/ProgressCircle/index.js +0 -22
  208. package/lib/components/ProgressCircle/index.js.map +0 -1
  209. package/lib/components/Radio/Group/index.js +0 -58
  210. package/lib/components/Radio/Group/index.js.map +0 -1
  211. package/lib/components/Radio/index.js +0 -55
  212. package/lib/components/Radio/index.js.map +0 -1
  213. package/lib/components/Rank/index.js +0 -22
  214. package/lib/components/Rank/index.js.map +0 -1
  215. package/lib/components/Result/index.js +0 -38
  216. package/lib/components/Result/index.js.map +0 -1
  217. package/lib/components/ScrollView/index.js +0 -34
  218. package/lib/components/ScrollView/index.js.map +0 -1
  219. package/lib/components/Space/Item.js +0 -25
  220. package/lib/components/Space/Item.js.map +0 -1
  221. package/lib/components/Space/config-provider.js +0 -8
  222. package/lib/components/Space/config-provider.js.map +0 -1
  223. package/lib/components/Space/index.js +0 -77
  224. package/lib/components/Space/index.js.map +0 -1
  225. package/lib/components/Step/Steps/index.js +0 -33
  226. package/lib/components/Step/Steps/index.js.map +0 -1
  227. package/lib/components/Step/index.js +0 -20
  228. package/lib/components/Step/index.js.map +0 -1
  229. package/lib/components/Switch/index.js +0 -26
  230. package/lib/components/Switch/index.js.map +0 -1
  231. package/lib/components/Tabbar/index.js +0 -7
  232. package/lib/components/Tabbar/index.js.map +0 -1
  233. package/lib/components/Tabbar/tabbar/TabItem.js +0 -9
  234. package/lib/components/Tabbar/tabbar/TabItem.js.map +0 -1
  235. package/lib/components/Tabbar/tabbar/Tabbar.js +0 -87
  236. package/lib/components/Tabbar/tabbar/Tabbar.js.map +0 -1
  237. package/lib/components/ThemeProvider/index.js +0 -32
  238. package/lib/components/ThemeProvider/index.js.map +0 -1
  239. package/lib/components/Toast/Toast.js +0 -38
  240. package/lib/components/Toast/Toast.js.map +0 -1
  241. package/lib/components/Toast/index.js +0 -56
  242. package/lib/components/Toast/index.js.map +0 -1
  243. package/lib/hooks/index.js +0 -17
  244. package/lib/hooks/index.js.map +0 -1
  245. package/lib/hooks/useCustomNavbar.js +0 -24
  246. package/lib/hooks/useCustomNavbar.js.map +0 -1
  247. package/lib/hooks/useFirstMountState.js +0 -10
  248. package/lib/hooks/useFirstMountState.js.map +0 -1
  249. package/lib/hooks/useFlexGapSupport.js +0 -10
  250. package/lib/hooks/useFlexGapSupport.js.map +0 -1
  251. package/lib/hooks/useGenerateId.js +0 -12
  252. package/lib/hooks/useGenerateId.js.map +0 -1
  253. package/lib/hooks/usePrevious.js +0 -9
  254. package/lib/hooks/usePrevious.js.map +0 -1
  255. package/lib/hooks/useRefs.js +0 -13
  256. package/lib/hooks/useRefs.js.map +0 -1
  257. package/lib/hooks/useTouch.js +0 -67
  258. package/lib/hooks/useTouch.js.map +0 -1
  259. package/lib/hooks/useUnMount.js +0 -5
  260. package/lib/hooks/useUnMount.js.map +0 -1
  261. package/lib/hooks/useUpdateEffect.js +0 -12
  262. package/lib/hooks/useUpdateEffect.js.map +0 -1
  263. package/lib/index.js +0 -44
  264. package/lib/index.js.map +0 -1
  265. package/lib/types/index.js +0 -2
  266. package/lib/types/index.js.map +0 -1
  267. package/lib/utils/index.js +0 -320
  268. package/lib/utils/index.js.map +0 -1
  269. package/types/components/BankIcon/bank.d.ts +0 -18
  270. package/types/components/Dialog/Dialog/index.d.ts +0 -19
  271. package/types/components/Dialog/DialogComponent/index.d.ts +0 -19
  272. package/types/components/NumberKeyboard/Key/index.d.ts +0 -8
  273. package/types/components/PickerSlot/index.d.ts +0 -24
  274. package/types/components/Tabbar/components/TabItem.d.ts +0 -9
  275. package/types/components/Tabbar/components/Tabbar.d.ts +0 -30
  276. package/types/components/Theme/index.d.ts +0 -27
@@ -1,9 +1,8 @@
1
- import { FC } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type XHListProps = {
5
- code: string;
6
- size?: number;
7
- } & XHComponentCommonProps;
8
- declare const XHBankIcon: FC<XHListProps>;
9
- export default XHBankIcon;
1
+ import { FC } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type XHListProps = {
4
+ code: string;
5
+ size?: number;
6
+ } & XHComponentCommonProps;
7
+ declare const XHBankIcon: FC<XHListProps>;
8
+ export default XHBankIcon;
@@ -1,7 +1,7 @@
1
- import React from "react";
2
- export declare type DotJumpProps = {
3
- style?: React.CSSProperties;
4
- space?: number;
5
- };
6
- declare const DotJump: React.FC<DotJumpProps>;
7
- export default DotJump;
1
+ import React from "react";
2
+ export declare type DotJumpProps = {
3
+ style?: React.CSSProperties;
4
+ space?: number;
5
+ };
6
+ declare const DotJump: React.FC<DotJumpProps>;
7
+ export default DotJump;
@@ -1,30 +1,29 @@
1
- import React, { FC } from "react";
2
- import { ButtonProps } from "@tarojs/components/types/Button";
3
- import { ITouchEvent } from "@tarojs/components/types/common";
4
- import "./index.scss";
5
- export declare type ButtonType = "default" | "secondary" | "primary" | "warn";
6
- export declare type ButtonShape = "square" | "round" | "rectangle";
7
- export declare type ButtonSize = "default" | "mini" | "full";
8
- export declare type XhButtonProps = {
9
- htmlType?: "button" | "submit" | "reset";
10
- type?: ButtonType;
11
- size?: ButtonSize;
12
- shape?: ButtonShape;
13
- disabled?: boolean;
14
- className?: string;
15
- styleName?: string;
16
- text?: string;
17
- preventTime?: number;
18
- onClick?: (e: ITouchEvent | MouseEvent) => void;
19
- style?: React.CSSProperties;
20
- loading?: boolean;
21
- loadingStyle?: React.CSSProperties;
22
- loadingSpace?: number;
23
- ghost?: boolean;
24
- /**
25
- * 镂空
26
- */
27
- hollow?: boolean;
28
- } & Omit<ButtonProps, "type" | "size">;
29
- declare const XhButton: FC<XhButtonProps>;
30
- export default XhButton;
1
+ import React, { FC } from "react";
2
+ import { ButtonProps } from "@tarojs/components/types/Button";
3
+ import { ITouchEvent } from "@tarojs/components/types/common";
4
+ export declare type ButtonType = "default" | "secondary" | "primary" | "warn";
5
+ export declare type ButtonShape = "square" | "round" | "rectangle";
6
+ export declare type ButtonSize = "default" | "mini" | "full";
7
+ export declare type XhButtonProps = {
8
+ htmlType?: "button" | "submit" | "reset";
9
+ type?: ButtonType;
10
+ size?: ButtonSize;
11
+ shape?: ButtonShape;
12
+ disabled?: boolean;
13
+ className?: string;
14
+ styleName?: string;
15
+ text?: string;
16
+ preventTime?: number;
17
+ onClick?: (e: ITouchEvent | MouseEvent) => void;
18
+ style?: React.CSSProperties;
19
+ loading?: boolean;
20
+ loadingStyle?: React.CSSProperties;
21
+ loadingSpace?: number;
22
+ ghost?: boolean;
23
+ /**
24
+ * 镂空
25
+ */
26
+ hollow?: boolean;
27
+ } & Omit<ButtonProps, "type" | "size">;
28
+ declare const XhButton: FC<XhButtonProps>;
29
+ export default XhButton;
@@ -1,25 +1,24 @@
1
- import React, { Ref } from "react";
2
- import { XhButtonProps } from "../Button";
3
- import "./index.scss";
4
- export declare type refMe = {
5
- reset: () => void;
6
- begin: () => void;
7
- beginning: boolean;
8
- };
9
- export declare type ButtonType = "default" | "secondary" | "primary" | "warn";
10
- export declare type ButtonShape = "square" | "round" | "rectangle";
11
- export declare type ButtonSize = "default" | "mini" | "full";
12
- export interface CaptchaProps extends XhButtonProps {
13
- timeout?: number;
14
- className?: string;
15
- styleName?: string;
16
- text?: string;
17
- onClick: () => Promise<boolean>;
18
- ref: Ref<refMe>;
19
- timeingTemp?: string;
20
- ingText?: string;
21
- onEnd?: () => void;
22
- }
23
- export declare type CaptchaRef = refMe;
24
- declare const CountdownButton: React.ForwardRefExoticComponent<Pick<Omit<CaptchaProps, "businessId" | "onGetRealnameAuthInfo" | "onLaunchapp">, "style" | "text" | "className" | "type" | "size" | "plain" | "disabled" | "loading" | "formType" | "openType" | "hoverClass" | "hoverStyle" | "hoverStopPropagation" | "hoverStartTime" | "hoverStayTime" | "lang" | "sessionFrom" | "sendMessageTitle" | "sendMessagePath" | "sendMessageImg" | "appParameter" | "scope" | "showMessageCard" | "onGetUserInfo" | "onGetAuthorize" | "onContact" | "onGetPhoneNumber" | "onError" | "onOpenSetting" | "id" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "shape" | "htmlType" | "preventTime" | "loadingStyle" | "loadingSpace" | "ghost" | "hollow" | "timeout" | "styleName" | "timeingTemp" | "ingText" | "onEnd"> & React.RefAttributes<refMe>>;
25
- export default CountdownButton;
1
+ import React, { Ref } from "react";
2
+ import { XhButtonProps } from "../Button";
3
+ export declare type refMe = {
4
+ reset: () => void;
5
+ begin: () => void;
6
+ beginning: boolean;
7
+ };
8
+ export declare type ButtonType = "default" | "secondary" | "primary" | "warn";
9
+ export declare type ButtonShape = "square" | "round" | "rectangle";
10
+ export declare type ButtonSize = "default" | "mini" | "full";
11
+ export interface CaptchaProps extends XhButtonProps {
12
+ timeout?: number;
13
+ className?: string;
14
+ styleName?: string;
15
+ text?: string;
16
+ onClick: () => Promise<boolean>;
17
+ ref: Ref<refMe>;
18
+ timeingTemp?: string;
19
+ ingText?: string;
20
+ onEnd?: () => void;
21
+ }
22
+ export declare type CaptchaRef = refMe;
23
+ declare const CountdownButton: React.ForwardRefExoticComponent<Pick<Omit<CaptchaProps, "businessId" | "onGetRealnameAuthInfo" | "onLaunchapp">, "type" | "size" | "plain" | "disabled" | "loading" | "formType" | "openType" | "hoverClass" | "hoverStyle" | "hoverStopPropagation" | "hoverStartTime" | "hoverStayTime" | "lang" | "sessionFrom" | "sendMessageTitle" | "sendMessagePath" | "sendMessageImg" | "appParameter" | "scope" | "showMessageCard" | "onGetUserInfo" | "onGetAuthorize" | "onContact" | "onGetPhoneNumber" | "onError" | "onOpenSetting" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "timeout" | "text" | "styleName" | "timeingTemp" | "ingText" | "onEnd" | "htmlType" | "shape" | "preventTime" | "loadingStyle" | "loadingSpace" | "ghost" | "hollow"> & React.RefAttributes<refMe>>;
24
+ export default CountdownButton;
@@ -1,30 +1,29 @@
1
- import { FC, ReactNode } from "react";
2
- import { ITouchEvent } from "@tarojs/components";
3
- import { StandardLonghandProperties } from "csstype";
4
- import { XHComponentCommonProps } from "../../types";
5
- import "./index.scss";
6
- export declare type XHCellProps = {
7
- content?: ReactNode;
8
- contentDescription?: ReactNode;
9
- description?: ReactNode;
10
- subDescription?: ReactNode;
11
- paddingHorizontal?: boolean;
12
- icon?: ReactNode;
13
- value?: ReactNode;
14
- extraIcon?: ReactNode;
15
- border?: boolean;
16
- arrow?: boolean;
17
- outline?: boolean;
18
- onClick?: (e: ITouchEvent) => void;
19
- descriptionColor?: StandardLonghandProperties["color"];
20
- valueColor?: StandardLonghandProperties["color"];
21
- ellipsis?: boolean;
22
- placeholder?: string;
23
- alignItems?: "start" | "center" | "end";
24
- /**
25
- * @description 是否是次级列表
26
- */
27
- secondary?: boolean;
28
- } & XHComponentCommonProps;
29
- declare const XHCell: FC<XHCellProps>;
30
- export default XHCell;
1
+ import { FC, ReactNode } from "react";
2
+ import { ITouchEvent } from "@tarojs/components";
3
+ import { StandardLonghandProperties } from "csstype";
4
+ import { XHComponentCommonProps } from "../../types";
5
+ export declare type XHCellProps = {
6
+ content?: ReactNode;
7
+ contentDescription?: ReactNode;
8
+ description?: ReactNode;
9
+ subDescription?: ReactNode;
10
+ paddingHorizontal?: boolean;
11
+ icon?: ReactNode;
12
+ value?: ReactNode;
13
+ extraIcon?: ReactNode;
14
+ border?: boolean;
15
+ arrow?: boolean;
16
+ outline?: boolean;
17
+ onClick?: (e: ITouchEvent) => void;
18
+ descriptionColor?: StandardLonghandProperties["color"];
19
+ valueColor?: StandardLonghandProperties["color"];
20
+ ellipsis?: boolean;
21
+ placeholder?: string;
22
+ alignItems?: "start" | "center" | "end";
23
+ /**
24
+ * @description 是否是次级列表
25
+ */
26
+ secondary?: boolean;
27
+ } & XHComponentCommonProps;
28
+ declare const XHCell: FC<XHCellProps>;
29
+ export default XHCell;
@@ -1,23 +1,23 @@
1
- import React, { ReactNode } from "react";
2
- export declare type CheckBoxItemType = {
3
- label: string | ReactNode;
4
- value: string;
5
- disabled?: boolean;
6
- checked?: boolean;
7
- };
8
- export declare type CheckBoxItem = Omit<CheckBoxItemType, "checked"> | string;
9
- export declare type CheckboxGroupProps = {
10
- option: CheckBoxItem[];
11
- onChange?: (value: string[]) => void;
12
- defaultChecked?: string[] | string;
13
- padding?: true;
14
- border?: boolean;
15
- style?: React.CSSProperties;
16
- checkboxStyle?: React.CSSProperties;
17
- align?: "center" | "end";
18
- direction?: "rtl";
19
- justify?: "around" | "between";
20
- color?: string;
21
- };
22
- declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
23
- export default CheckboxGroup;
1
+ import React, { ReactNode } from "react";
2
+ export declare type CheckBoxItemType = {
3
+ label: string | ReactNode;
4
+ value: string;
5
+ disabled?: boolean;
6
+ checked?: boolean;
7
+ };
8
+ export declare type CheckBoxItem = Omit<CheckBoxItemType, "checked"> | string;
9
+ export declare type CheckboxGroupProps = {
10
+ option: CheckBoxItem[];
11
+ onChange?: (value: string[]) => void;
12
+ defaultChecked?: string[] | string;
13
+ padding?: true;
14
+ border?: boolean;
15
+ style?: React.CSSProperties;
16
+ checkboxStyle?: React.CSSProperties;
17
+ align?: "center" | "end";
18
+ direction?: "rtl";
19
+ justify?: "around" | "between";
20
+ color?: string;
21
+ };
22
+ declare const CheckboxGroup: React.FC<CheckboxGroupProps>;
23
+ export default CheckboxGroup;
@@ -1,29 +1,28 @@
1
- import React, { ReactNode } from "react";
2
- import Group from "./Group";
3
- import "./index.scss";
4
- import type { XHComponentCommonProps } from "../../types";
5
- declare type CompoundedComponent = React.ForwardRefExoticComponent<XHCheckboxProps & React.RefAttributes<HTMLInputElement>> & {
6
- Group: typeof Group;
7
- };
8
- export declare type XHCheckboxProps = {
9
- onChange?: (check: boolean, value: string) => void;
10
- checked?: boolean;
11
- name?: string;
12
- label: string | ReactNode;
13
- size?: number;
14
- circle?: boolean;
15
- align?: "center" | "end";
16
- direction?: "rtl";
17
- justify?: "around" | "between";
18
- value?: string | number;
19
- id?: string;
20
- disabled?: boolean;
21
- style?: React.CSSProperties;
22
- /**
23
- * 抖音不支持属性选择器
24
- * @description 主要为抖音支持颜色
25
- */
26
- color?: string;
27
- } & XHComponentCommonProps;
28
- declare const CheckBox: CompoundedComponent;
29
- export default CheckBox;
1
+ import React, { ReactNode } from "react";
2
+ import Group from "./Group";
3
+ import type { XHComponentCommonProps } from "../../types";
4
+ declare type CompoundedComponent = React.ForwardRefExoticComponent<XHCheckboxProps & React.RefAttributes<HTMLInputElement>> & {
5
+ Group: typeof Group;
6
+ };
7
+ export declare type XHCheckboxProps = {
8
+ onChange?: (check: boolean, value: string) => void;
9
+ checked?: boolean;
10
+ name?: string;
11
+ label: string | ReactNode;
12
+ size?: number;
13
+ circle?: boolean;
14
+ align?: "center" | "end";
15
+ direction?: "rtl";
16
+ justify?: "around" | "between";
17
+ value?: string | number;
18
+ id?: string;
19
+ disabled?: boolean;
20
+ style?: React.CSSProperties;
21
+ /**
22
+ * 抖音不支持属性选择器
23
+ * @description 主要为抖音支持颜色
24
+ */
25
+ color?: string;
26
+ } & XHComponentCommonProps;
27
+ declare const CheckBox: CompoundedComponent;
28
+ export default CheckBox;
@@ -1,24 +1,23 @@
1
- import React, { PropsWithChildren, ReactNode } from "react";
2
- import type { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- declare type OptionType = {
5
- label?: string;
6
- value?: string;
7
- disabled?: boolean;
8
- [key: string]: any;
9
- } | string;
10
- interface CheckboxProps<T> extends PropsWithChildren<{}>, XHComponentCommonProps {
11
- option: T[];
12
- fill?: boolean;
13
- label?: ReactNode;
14
- onChange: (item: T) => void;
15
- defaultValue?: T;
16
- style?: React.CSSProperties;
17
- border?: boolean;
18
- /**
19
- * paddingHorizontal 横向间距
20
- */
21
- paddingHorizontal?: boolean;
22
- }
23
- declare const CheckboxButton: <T extends OptionType = string>(props: CheckboxProps<T>) => JSX.Element;
24
- export default CheckboxButton;
1
+ import React, { PropsWithChildren, ReactNode } from "react";
2
+ import type { XHComponentCommonProps } from "../../types";
3
+ declare type OptionType = {
4
+ label?: string;
5
+ value?: string;
6
+ disabled?: boolean;
7
+ [key: string]: any;
8
+ } | string;
9
+ interface CheckboxProps<T> extends PropsWithChildren<{}>, XHComponentCommonProps {
10
+ option: T[];
11
+ fill?: boolean;
12
+ label?: ReactNode;
13
+ onChange: (item: T) => void;
14
+ defaultValue?: T;
15
+ style?: React.CSSProperties;
16
+ border?: boolean;
17
+ /**
18
+ * paddingHorizontal 横向间距
19
+ */
20
+ paddingHorizontal?: boolean;
21
+ }
22
+ declare const CheckboxButton: <T extends OptionType = string>(props: CheckboxProps<T>) => JSX.Element;
23
+ export default CheckboxButton;
@@ -1,11 +1,10 @@
1
- import React, { ReactNode } from "react";
2
- import type { XHListProps } from "../List";
3
- import "./index.scss";
4
- export declare type CollapseProps = {
5
- summary?: string | ReactNode;
6
- open?: boolean;
7
- style?: React.CSSProperties;
8
- onToggle?: (open: boolean) => void;
9
- } & XHListProps;
10
- declare const Collapse: React.FC<CollapseProps>;
11
- export default Collapse;
1
+ import React, { ReactNode } from "react";
2
+ import type { XHListProps } from "../List";
3
+ export declare type CollapseProps = {
4
+ summary?: string | ReactNode;
5
+ open?: boolean;
6
+ style?: React.CSSProperties;
7
+ onToggle?: (open: boolean) => void;
8
+ } & XHListProps;
9
+ declare const Collapse: React.FC<CollapseProps>;
10
+ export default Collapse;
@@ -1,11 +1,10 @@
1
- import React from "react";
2
- import "./index.scss";
3
- export declare type CountdownProps = {
4
- expireDate: string | number;
5
- overTimeCb?: () => void;
6
- customStyle?: boolean;
7
- isPause?: boolean;
8
- onTimeChange?: (distance: number) => void;
9
- };
10
- declare const Countdown: React.FC<CountdownProps>;
11
- export default Countdown;
1
+ import React from "react";
2
+ export declare type CountdownProps = {
3
+ expireDate: string | number;
4
+ overTimeCb?: () => void;
5
+ customStyle?: boolean;
6
+ isPause?: boolean;
7
+ onTimeChange?: (distance: number) => void;
8
+ };
9
+ declare const Countdown: React.FC<CountdownProps>;
10
+ export default Countdown;
@@ -1,26 +1,26 @@
1
- import { ReactNode } from "react";
2
- import { XHComponentCommonProps } from "../../../types";
3
- export declare type AlertProps = {
4
- title?: string | ReactNode;
5
- content?: string | ReactNode;
6
- confirmText?: string | ReactNode;
7
- } & {
8
- /** 取消按钮的文字,最多 4 个字符 */
9
- cancelText?: string;
10
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
11
- complete?: (res: TaroGeneral.CallbackResult) => void;
12
- /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
13
- confirmColor?: string;
14
- /** 确认按钮的文字,最多 4 个字符 */
15
- confirmText?: string;
16
- /** 提示的内容 */
17
- content?: string;
18
- /** 接口调用失败的回调函数 */
19
- fail?: (res: TaroGeneral.CallbackResult) => void;
20
- /** 接口调用成功的回调函数 */
21
- success?: () => void;
22
- /** 提示的标题 */
23
- title?: string;
24
- } & XHComponentCommonProps;
25
- declare const Alert: (props: AlertProps) => Promise<void>;
26
- export default Alert;
1
+ import { ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../../types";
3
+ export declare type AlertProps = {
4
+ title?: string | ReactNode;
5
+ content?: string | ReactNode;
6
+ confirmText?: string | ReactNode;
7
+ } & {
8
+ /** 取消按钮的文字,最多 4 个字符 */
9
+ cancelText?: string;
10
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
11
+ complete?: (res: TaroGeneral.CallbackResult) => void;
12
+ /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
13
+ confirmColor?: string;
14
+ /** 确认按钮的文字,最多 4 个字符 */
15
+ confirmText?: string;
16
+ /** 提示的内容 */
17
+ content?: string;
18
+ /** 接口调用失败的回调函数 */
19
+ fail?: (res: TaroGeneral.CallbackResult) => void;
20
+ /** 接口调用成功的回调函数 */
21
+ success?: () => void;
22
+ /** 提示的标题 */
23
+ title?: string;
24
+ } & XHComponentCommonProps;
25
+ declare const Alert: (props: AlertProps) => Promise<void>;
26
+ export default Alert;
@@ -1,37 +1,37 @@
1
- import { XHComponentCommonProps } from "../../../types";
2
- export declare type ConfirmProps = {
3
- title?: string;
4
- header?: string;
5
- content: string;
6
- cancelText?: string;
7
- confirmText?: string;
8
- } & {
9
- /** 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
10
- cancelColor?: string;
11
- /** 取消按钮的文字,最多 4 个字符 */
12
- cancelText?: string;
13
- /** 接口调用结束的回调函数(调用成功、失败都会执行) */
14
- complete?: (res: TaroGeneral.CallbackResult) => void;
15
- /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
16
- confirmColor?: string;
17
- /** 确认按钮的文字,最多 4 个字符 */
18
- confirmText?: string;
19
- /** 提示的内容 */
20
- content?: string;
21
- /** 接口调用失败的回调函数 */
22
- fail?: (res: TaroGeneral.CallbackResult) => void;
23
- /** 接口调用成功的回调函数 */
24
- success?: (result: ConfirmPropsResult) => void;
25
- /** 提示的标题 */
26
- title?: string;
27
- } & XHComponentCommonProps;
28
- export declare type ConfirmPropsResult = {
29
- /** 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭) */
30
- cancel: boolean;
31
- /** 为 true 时,表示用户点击了确定按钮 */
32
- confirm: boolean;
33
- /** 调用结果 */
34
- errMsg: string;
35
- };
36
- declare const Comfirm: (props: ConfirmProps) => Promise<ConfirmPropsResult>;
37
- export default Comfirm;
1
+ import { XHComponentCommonProps } from "../../../types";
2
+ export declare type ConfirmProps = {
3
+ title?: string;
4
+ header?: string;
5
+ content: string;
6
+ cancelText?: string;
7
+ confirmText?: string;
8
+ } & {
9
+ /** 取消按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
10
+ cancelColor?: string;
11
+ /** 取消按钮的文字,最多 4 个字符 */
12
+ cancelText?: string;
13
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
14
+ complete?: (res: TaroGeneral.CallbackResult) => void;
15
+ /** 确认按钮的文字颜色,必须是 16 进制格式的颜色字符串 */
16
+ confirmColor?: string;
17
+ /** 确认按钮的文字,最多 4 个字符 */
18
+ confirmText?: string;
19
+ /** 提示的内容 */
20
+ content?: string;
21
+ /** 接口调用失败的回调函数 */
22
+ fail?: (res: TaroGeneral.CallbackResult) => void;
23
+ /** 接口调用成功的回调函数 */
24
+ success?: (result: ConfirmPropsResult) => void;
25
+ /** 提示的标题 */
26
+ title?: string;
27
+ } & XHComponentCommonProps;
28
+ export declare type ConfirmPropsResult = {
29
+ /** 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭) */
30
+ cancel: boolean;
31
+ /** 为 true 时,表示用户点击了确定按钮 */
32
+ confirm: boolean;
33
+ /** 调用结果 */
34
+ errMsg: string;
35
+ };
36
+ declare const Comfirm: (props: ConfirmProps) => Promise<ConfirmPropsResult>;
37
+ export default Comfirm;
@@ -1,11 +1,11 @@
1
- import { ForwardRefExoticComponent, RefObject } from "react";
2
- import { DialogRef, DialogProps } from "../DialogComponent";
3
- import { AlertProps } from "./Alert";
4
- import { ConfirmProps, ConfirmPropsResult } from "./Confirm";
5
- export interface DialogComponent<P = {}> extends ForwardRefExoticComponent<P> {
6
- ref: RefObject<DialogRef>;
7
- alert: (options: AlertProps) => Promise<void>;
8
- confirm: (options: ConfirmProps) => Promise<ConfirmPropsResult>;
9
- }
10
- declare const Dialog: DialogComponent<DialogProps>;
11
- export default Dialog;
1
+ import { ForwardRefExoticComponent, RefObject } from "react";
2
+ import { DialogRef, DialogProps } from "../DialogComponent";
3
+ import { AlertProps } from "./Alert";
4
+ import { ConfirmProps, ConfirmPropsResult } from "./Confirm";
5
+ export interface DialogComponent<P = {}> extends ForwardRefExoticComponent<P> {
6
+ ref: RefObject<DialogRef>;
7
+ alert: (options: AlertProps) => Promise<void>;
8
+ confirm: (options: ConfirmProps) => Promise<ConfirmPropsResult>;
9
+ }
10
+ declare const Dialog: DialogComponent<DialogProps>;
11
+ export default Dialog;
@@ -1,19 +1,18 @@
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;
1
+ import React, { ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type DialogProps = {
4
+ header?: string | ReactNode;
5
+ content: string | ReactNode;
6
+ footer?: string | ReactNode;
7
+ visible: boolean;
8
+ } & XHComponentCommonProps;
9
+ export declare type DialogRef = {
10
+ close: () => void;
11
+ };
12
+ declare const DialogCom: React.ForwardRefExoticComponent<{
13
+ header?: string | ReactNode;
14
+ content: string | ReactNode;
15
+ footer?: string | ReactNode;
16
+ visible: boolean;
17
+ } & XHComponentCommonProps & React.RefAttributes<DialogRef>>;
18
+ export default DialogCom;