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,38 +1,37 @@
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?: ReactNode;
8
- cancelText?: string;
9
- confirmText?: string;
10
- showCancel?: boolean;
11
- visible: boolean;
12
- onConfirm?: () => void;
13
- onCancel?: () => void;
14
- onClose?: () => void;
15
- tranparent?: boolean;
16
- portrait?: boolean;
17
- fancy?: boolean;
18
- } & XHComponentCommonProps;
19
- export declare type IDialogRef = {
20
- close: () => void;
21
- open: () => void;
22
- };
23
- declare const DialogCom: React.ForwardRefExoticComponent<{
24
- header?: string | ReactNode;
25
- content: string | ReactNode;
26
- footer?: ReactNode;
27
- cancelText?: string | undefined;
28
- confirmText?: string | undefined;
29
- showCancel?: boolean | undefined;
30
- visible: boolean;
31
- onConfirm?: (() => void) | undefined;
32
- onCancel?: (() => void) | undefined;
33
- onClose?: (() => void) | undefined;
34
- tranparent?: boolean | undefined;
35
- portrait?: boolean | undefined;
36
- fancy?: boolean | undefined;
37
- } & XHComponentCommonProps & React.RefAttributes<IDialogRef>>;
38
- 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?: ReactNode;
7
+ cancelText?: string;
8
+ confirmText?: string;
9
+ showCancel?: boolean;
10
+ visible: boolean;
11
+ onConfirm?: () => void;
12
+ onCancel?: () => void;
13
+ onClose?: () => void;
14
+ tranparent?: boolean;
15
+ portrait?: boolean;
16
+ fancy?: boolean;
17
+ } & XHComponentCommonProps;
18
+ export declare type IDialogRef = {
19
+ close: () => void;
20
+ open: () => void;
21
+ };
22
+ declare const DialogCom: React.ForwardRefExoticComponent<{
23
+ header?: string | ReactNode;
24
+ content: string | ReactNode;
25
+ footer?: ReactNode;
26
+ cancelText?: string | undefined;
27
+ confirmText?: string | undefined;
28
+ showCancel?: boolean | undefined;
29
+ visible: boolean;
30
+ onConfirm?: (() => void) | undefined;
31
+ onCancel?: (() => void) | undefined;
32
+ onClose?: (() => void) | undefined;
33
+ tranparent?: boolean | undefined;
34
+ portrait?: boolean | undefined;
35
+ fancy?: boolean | undefined;
36
+ } & XHComponentCommonProps & React.RefAttributes<IDialogRef>>;
37
+ export default DialogCom;
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { EChartsProps, EchartsHandle } from "./types";
3
- export type { EChartsProps, EChartOption, EChartsInstance, EChartsLoadingOption, EchartsHandle, } from "./types";
4
- declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<EChartsProps, "style" | "option" | "className" | "type" | "onError" | "id" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onTouchStart" | "onTouchMove" | "onTouchCancel" | "onTouchEnd" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "nativeProps" | "echarts" | "isPage" | "canvasId" | "disableScroll" | "onLongTap" | "theme" | "notMerge" | "lazyUpdate" | "showLoading" | "loadingOption" | "opts" | "onChartReady" | "onEvents"> & React.RefAttributes<EchartsHandle>>>;
5
- export default _default;
1
+ import React from "react";
2
+ import { EChartsProps, EchartsHandle } from "./types";
3
+ export type { EChartsProps, EChartOption, EChartsInstance, EChartsLoadingOption, EchartsHandle, } from "./types";
4
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<EChartsProps, "echarts" | "isPage" | "canvasId" | "type" | "disableScroll" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onLongTap" | "onError" | "nativeProps" | "id" | "className" | "style" | "key" | "hidden" | "animation" | "dangerouslySetInnerHTML" | "onClick" | "onLongPress" | "onLongClick" | "onTransitionEnd" | "onAnimationStart" | "onAnimationIteration" | "onAnimationEnd" | "onTouchForceChange" | "option" | "theme" | "notMerge" | "lazyUpdate" | "showLoading" | "loadingOption" | "opts" | "onChartReady" | "onEvents"> & React.RefAttributes<EchartsHandle>>>;
5
+ export default _default;
@@ -1,34 +1,34 @@
1
- import { CanvasProps } from "@tarojs/components/types/Canvas";
2
- import { EChartOption, EChartsLoadingOption, ECharts } from "echarts";
3
- import { CSSProperties, MutableRefObject } from "react";
4
- export type { EChartOption, ECharts as EChartsInstance, EChartsLoadingOption, } from "echarts";
5
- export declare type Opts = {
6
- devicePixelRatio?: number | undefined;
7
- renderer?: string | undefined;
8
- width?: number | string | undefined;
9
- height?: number | string | undefined;
10
- };
11
- export declare type EChartsProps = CanvasProps & {
12
- echarts: any;
13
- className?: string;
14
- style?: CSSProperties;
15
- option: EChartOption;
16
- theme?: string | Record<string, any>;
17
- notMerge?: boolean;
18
- lazyUpdate?: boolean;
19
- showLoading?: boolean;
20
- loadingOption?: EChartsLoadingOption;
21
- opts?: Opts;
22
- onChartReady?: (instance: ECharts) => void;
23
- onEvents?: Record<string, (...args: any[]) => void>;
24
- isPage?: boolean;
25
- };
26
- export declare type InitEchart = {
27
- devicePixelRatio: number | undefined;
28
- width: number | string | undefined;
29
- height: number | string | undefined;
30
- };
31
- export declare type EchartsHandle = {
32
- canvasRef: Partial<MutableRefObject<HTMLDivElement | HTMLCanvasElement | null>>;
33
- chartRef: Partial<MutableRefObject<ECharts>>;
34
- };
1
+ import { CanvasProps } from "@tarojs/components/types/Canvas";
2
+ import { EChartOption, EChartsLoadingOption, ECharts } from "echarts";
3
+ import { CSSProperties, MutableRefObject } from "react";
4
+ export type { EChartOption, ECharts as EChartsInstance, EChartsLoadingOption, } from "echarts";
5
+ export declare type Opts = {
6
+ devicePixelRatio?: number | undefined;
7
+ renderer?: string | undefined;
8
+ width?: number | string | undefined;
9
+ height?: number | string | undefined;
10
+ };
11
+ export declare type EChartsProps = CanvasProps & {
12
+ echarts: any;
13
+ className?: string;
14
+ style?: CSSProperties;
15
+ option: EChartOption;
16
+ theme?: string | Record<string, any>;
17
+ notMerge?: boolean;
18
+ lazyUpdate?: boolean;
19
+ showLoading?: boolean;
20
+ loadingOption?: EChartsLoadingOption;
21
+ opts?: Opts;
22
+ onChartReady?: (instance: ECharts) => void;
23
+ onEvents?: Record<string, (...args: any[]) => void>;
24
+ isPage?: boolean;
25
+ };
26
+ export declare type InitEchart = {
27
+ devicePixelRatio: number | undefined;
28
+ width: number | string | undefined;
29
+ height: number | string | undefined;
30
+ };
31
+ export declare type EchartsHandle = {
32
+ canvasRef: Partial<MutableRefObject<HTMLDivElement | HTMLCanvasElement | null>>;
33
+ chartRef: Partial<MutableRefObject<ECharts>>;
34
+ };
@@ -1,21 +1,21 @@
1
- import { CanvasContext } from "@tarojs/taro";
2
- export default class WxCanvas {
3
- private ctx;
4
- private chart;
5
- private canvasNode;
6
- private event;
7
- constructor(ctx: CanvasContext, isNew: boolean, canvasNode?: any);
8
- getContext(contextType: any): CanvasContext | undefined;
9
- setChart(chart: any): void;
10
- attachEvent(): void;
11
- addEventListener(): void;
12
- removeEventListener(): void;
13
- detachEvent(): void;
14
- _initCanvas(zrender: any, ctx: any): void;
15
- _initStyle(ctx: any): void;
16
- _initEvent(): void;
17
- set width(w: any);
18
- set height(h: any);
19
- get width(): any;
20
- get height(): any;
21
- }
1
+ import { CanvasContext } from "@tarojs/taro";
2
+ export default class WxCanvas {
3
+ private ctx;
4
+ private chart;
5
+ private canvasNode;
6
+ private event;
7
+ constructor(ctx: CanvasContext, isNew: boolean, canvasNode?: any);
8
+ getContext(contextType: any): CanvasContext | undefined;
9
+ setChart(chart: any): void;
10
+ attachEvent(): void;
11
+ addEventListener(): void;
12
+ removeEventListener(): void;
13
+ detachEvent(): void;
14
+ _initCanvas(zrender: any, ctx: any): void;
15
+ _initStyle(ctx: any): void;
16
+ _initEvent(): void;
17
+ set width(w: any);
18
+ set height(h: any);
19
+ get width(): any;
20
+ get height(): any;
21
+ }
@@ -1,13 +1,13 @@
1
- export declare function wrapTouch(event: any): any;
2
- export declare function touchStart({ chart, event }: {
3
- chart: any;
4
- event: any;
5
- }): void;
6
- export declare function touchMove({ chart, event }: {
7
- chart: any;
8
- event: any;
9
- }): void;
10
- export declare function touchEnd({ chart, event }: {
11
- chart: any;
12
- event: any;
13
- }): void;
1
+ export declare function wrapTouch(event: any): any;
2
+ export declare function touchStart({ chart, event }: {
3
+ chart: any;
4
+ event: any;
5
+ }): void;
6
+ export declare function touchMove({ chart, event }: {
7
+ chart: any;
8
+ event: any;
9
+ }): void;
10
+ export declare function touchEnd({ chart, event }: {
11
+ chart: any;
12
+ event: any;
13
+ }): void;
@@ -1,56 +1,55 @@
1
- import React, { ReactNode } from "react";
2
- import { InputProps, CommonEventFunction } from "@tarojs/components";
3
- import "./index.scss";
4
- export declare type HTMLFormType = "tel" | "text" | "number" | "password" | "idcard" | "digit" | "safe-password" | "nickname";
5
- export declare type FormInputProps = {
6
- onChange?: (value: string) => void;
7
- onBlur?: (value: string) => void;
8
- /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
9
- * @supported weapp, h5, rn
10
- */
11
- onInput?: CommonEventFunction<InputProps.inputEventDetail>;
12
- /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
13
- * @supported weapp, h5, rn
14
- */
15
- onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>;
16
- /** 输入框失去焦点时触发
17
- *
18
- * event.detail = {value: value}
19
- * @supported weapp, h5, rn
20
- */
21
- value?: string;
22
- maxlength?: number;
23
- placeholder?: string;
24
- type?: HTMLFormType;
25
- pattern?: string;
26
- RightComponent?: ReactNode;
27
- label?: string;
28
- labelHtml?: string;
29
- LeftComponent?: ReactNode;
30
- LeftIcon?: ReactNode;
31
- name?: string;
32
- readonly?: boolean;
33
- withArrow?: boolean;
34
- direction?: "row" | "column";
35
- border?: boolean;
36
- mainExtra?: ReactNode;
37
- padding?: boolean;
38
- focus?: boolean;
39
- /** 设置键盘右下角按钮的文字
40
- * @default done
41
- * @supported weapp, rn
42
- */
43
- confirmType?: "send" | "search" | "next" | "go" | "done";
44
- /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
45
- * @supported h5
46
- */
47
- nativeProps?: Record<string, unknown>;
48
- className?: string;
49
- disabled?: boolean;
50
- align?: "left" | "right";
51
- };
52
- export declare type FocusHandler = {
53
- focus: () => void;
54
- };
55
- declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<FocusHandler>>;
56
- export default FormInput;
1
+ import React, { ReactNode } from "react";
2
+ import { InputProps, CommonEventFunction } from "@tarojs/components";
3
+ export declare type HTMLFormType = "tel" | "text" | "number" | "password" | "idcard" | "digit" | "safe-password" | "nickname";
4
+ export declare type FormInputProps = {
5
+ onChange?: (value: string) => void;
6
+ onBlur?: (value: string) => void;
7
+ /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
8
+ * @supported weapp, h5, rn
9
+ */
10
+ onInput?: CommonEventFunction<InputProps.inputEventDetail>;
11
+ /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
12
+ * @supported weapp, h5, rn
13
+ */
14
+ onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>;
15
+ /** 输入框失去焦点时触发
16
+ *
17
+ * event.detail = {value: value}
18
+ * @supported weapp, h5, rn
19
+ */
20
+ value?: string;
21
+ maxlength?: number;
22
+ placeholder?: string;
23
+ type?: HTMLFormType;
24
+ pattern?: string;
25
+ RightComponent?: ReactNode;
26
+ label?: string;
27
+ labelHtml?: string;
28
+ LeftComponent?: ReactNode;
29
+ LeftIcon?: ReactNode;
30
+ name?: string;
31
+ readonly?: boolean;
32
+ withArrow?: boolean;
33
+ direction?: "row" | "column";
34
+ border?: boolean;
35
+ mainExtra?: ReactNode;
36
+ padding?: boolean;
37
+ focus?: boolean;
38
+ /** 设置键盘右下角按钮的文字
39
+ * @default done
40
+ * @supported weapp, rn
41
+ */
42
+ confirmType?: "send" | "search" | "next" | "go" | "done";
43
+ /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
44
+ * @supported h5
45
+ */
46
+ nativeProps?: Record<string, unknown>;
47
+ className?: string;
48
+ disabled?: boolean;
49
+ align?: "left" | "right";
50
+ };
51
+ export declare type FocusHandler = {
52
+ focus: () => void;
53
+ };
54
+ declare const FormInput: React.ForwardRefExoticComponent<FormInputProps & React.RefAttributes<FocusHandler>>;
55
+ export default FormInput;
@@ -1,40 +1,39 @@
1
- import React, { ReactNode } from "react";
2
- import "./index.scss";
3
- import { XHComponentCommonProps } from "../../types";
4
- export declare type IDNumberInputProps = {
5
- showScan?: boolean;
6
- label?: string;
7
- onChange?: (value: string) => void;
8
- value: string;
9
- placeholder?: string;
10
- readOnly?: boolean;
11
- disabled?: boolean;
12
- direction?: "column" | "row";
13
- onScan?: () => void;
14
- onError?: (msg: string) => void;
15
- maxlength?: number;
16
- slot?: ReactNode;
17
- border?: boolean;
18
- onBlur?: () => void;
19
- } & XHComponentCommonProps;
20
- export declare type IDNumberInputRef = {
21
- isValid: boolean;
22
- focus: () => void;
23
- };
24
- declare const BankCardNumberInput: React.ForwardRefExoticComponent<{
25
- showScan?: boolean | undefined;
26
- label?: string | undefined;
27
- onChange?: ((value: string) => void) | undefined;
28
- value: string;
29
- placeholder?: string | undefined;
30
- readOnly?: boolean | undefined;
31
- disabled?: boolean | undefined;
32
- direction?: "column" | "row" | undefined;
33
- onScan?: (() => void) | undefined;
34
- onError?: ((msg: string) => void) | undefined;
35
- maxlength?: number | undefined;
36
- slot?: ReactNode;
37
- border?: boolean | undefined;
38
- onBlur?: (() => void) | undefined;
39
- } & XHComponentCommonProps & React.RefAttributes<IDNumberInputRef>>;
40
- export default BankCardNumberInput;
1
+ import React, { ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type IDNumberInputProps = {
4
+ showScan?: boolean;
5
+ label?: string;
6
+ onChange?: (value: string) => void;
7
+ value: string;
8
+ placeholder?: string;
9
+ readOnly?: boolean;
10
+ disabled?: boolean;
11
+ direction?: "column" | "row";
12
+ onScan?: () => void;
13
+ onError?: (msg: string) => void;
14
+ maxlength?: number;
15
+ slot?: ReactNode;
16
+ border?: boolean;
17
+ onBlur?: () => void;
18
+ } & XHComponentCommonProps;
19
+ export declare type IDNumberInputRef = {
20
+ isValid: boolean;
21
+ focus: () => void;
22
+ };
23
+ declare const BankCardNumberInput: React.ForwardRefExoticComponent<{
24
+ showScan?: boolean | undefined;
25
+ label?: string | undefined;
26
+ onChange?: ((value: string) => void) | undefined;
27
+ value: string;
28
+ placeholder?: string | undefined;
29
+ readOnly?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ direction?: "column" | "row" | undefined;
32
+ onScan?: (() => void) | undefined;
33
+ onError?: ((msg: string) => void) | undefined;
34
+ maxlength?: number | undefined;
35
+ slot?: ReactNode;
36
+ border?: boolean | undefined;
37
+ onBlur?: (() => void) | undefined;
38
+ } & XHComponentCommonProps & React.RefAttributes<IDNumberInputRef>>;
39
+ export default BankCardNumberInput;
@@ -1,14 +1,13 @@
1
- import React from "react";
2
- import type { StandardLonghandProperties } from "csstype";
3
- import { XHComponentCommonProps } from "../../types";
4
- import "./index.scss";
5
- export declare type XHIcon = "prompt" | "score" | "info" | "failure" | "success" | "loading" | "back" | "notice" | "scan" | "light" | "faceScan" | "delete" | "radioFull" | "checkboxFull" | "checkedSquare" | "checked2" | "arrowTop" | "notice2" | "position" | "contacts" | "billFull" | "bill2" | "bill3" | "bill4" | "edit" | "editFull" | "camera" | "close" | "gift" | "message" | "user" | "wenhao" | "kefu" | "play" | "arrowLeft" | "arrowRight" | "keyboardClose" | "add" | "tongxunlu" | "zhuyi" | "duigou" | "edit2" | "alipay" | "wechat" | "friendPay" | "pen" | "location" | "search" | "qa" | "thumbsUp" | "thumbsDown" | "thumbsUpFull" | "thumbsDownFull" | "waiting" | "scan2" | "safety" | (string & {});
6
- export declare type XHIconProps = {
7
- icon: XHIcon;
8
- size?: number;
9
- color?: StandardLonghandProperties["color"];
10
- style?: React.CSSProperties;
11
- onClick?: () => void;
12
- } & XHComponentCommonProps;
13
- declare const Icon: React.FC<XHIconProps>;
14
- export default Icon;
1
+ import React from "react";
2
+ import type { StandardLonghandProperties } from "csstype";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type XHIcon = "prompt" | "score" | "info" | "failure" | "success" | "loading" | "back" | "notice" | "scan" | "light" | "faceScan" | "delete" | "radioFull" | "checkboxFull" | "checkedSquare" | "checked2" | "arrowTop" | "notice2" | "position" | "contacts" | "billFull" | "bill2" | "bill3" | "bill4" | "edit" | "editFull" | "camera" | "close" | "gift" | "message" | "user" | "wenhao" | "kefu" | "play" | "arrowLeft" | "arrowRight" | "keyboardClose" | "add" | "tongxunlu" | "zhuyi" | "duigou" | "edit2" | "alipay" | "wechat" | "friendPay" | "pen" | "location" | "search" | "qa" | "thumbsUp" | "thumbsDown" | "thumbsUpFull" | "thumbsDownFull" | "waiting" | "scan2" | "safety" | "report" | (string & {});
5
+ export declare type XHIconProps = {
6
+ icon: XHIcon;
7
+ size?: number;
8
+ color?: StandardLonghandProperties["color"];
9
+ style?: React.CSSProperties;
10
+ onClick?: () => void;
11
+ } & XHComponentCommonProps;
12
+ declare const Icon: React.FC<XHIconProps>;
13
+ export default Icon;
@@ -1,12 +1,11 @@
1
- import React, { FC } from "react";
2
- import "./index.scss";
3
- import { XHComponentCommonProps } from "../../types";
4
- export declare type ImageProps = {
5
- width?: number;
6
- height?: number;
7
- src: string;
8
- alt?: string;
9
- style?: React.CSSProperties;
10
- } & XHComponentCommonProps;
11
- declare const XHImage: FC<ImageProps>;
12
- export default XHImage;
1
+ import React, { FC } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type ImageProps = {
4
+ width?: number;
5
+ height?: number;
6
+ src: string;
7
+ alt?: string;
8
+ style?: React.CSSProperties;
9
+ } & XHComponentCommonProps;
10
+ declare const XHImage: FC<ImageProps>;
11
+ export default XHImage;
@@ -1,27 +1,26 @@
1
- import { FC, MouseEvent } from "react";
2
- import "./index.scss";
3
- import { XHComponentCommonProps } from "../../types";
4
- export declare type NumberKeyboardType = "default" | "custom";
5
- export declare type NumberKeyboardProps = {
6
- show: boolean;
7
- showClose?: boolean;
8
- closeOnClickSpace?: boolean;
9
- maxLength?: number;
10
- onBlur?: (e: MouseEvent | Event) => void;
11
- onClose?: (e: MouseEvent | Event) => void;
12
- onChange?: (value: string) => void;
13
- onDelete: () => void;
14
- value: string;
15
- closeText?: string;
16
- activeIndex: number;
17
- } & XHComponentCommonProps;
18
- export declare type KeyType = "number" | "delete" | "string" | "none";
19
- export interface IKey {
20
- text: number | string;
21
- value: number | string;
22
- type: KeyType;
23
- activeIndex: number;
24
- }
25
- export declare type TYPE_MODE = "province" | "letter" | "mixed";
26
- declare const LicensePlateKeyboard: FC<NumberKeyboardProps>;
27
- export default LicensePlateKeyboard;
1
+ import { FC, MouseEvent } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type NumberKeyboardType = "default" | "custom";
4
+ export declare type NumberKeyboardProps = {
5
+ show: boolean;
6
+ showClose?: boolean;
7
+ closeOnClickSpace?: boolean;
8
+ maxLength?: number;
9
+ onBlur?: (e: MouseEvent | Event) => void;
10
+ onClose?: (e: MouseEvent | Event) => void;
11
+ onChange?: (value: string) => void;
12
+ onDelete: () => void;
13
+ value: string;
14
+ closeText?: string;
15
+ activeIndex: number;
16
+ } & XHComponentCommonProps;
17
+ export declare type KeyType = "number" | "delete" | "string" | "none";
18
+ export interface IKey {
19
+ text: number | string;
20
+ value: number | string;
21
+ type: KeyType;
22
+ activeIndex: number;
23
+ }
24
+ export declare type TYPE_MODE = "province" | "letter" | "mixed";
25
+ declare const LicensePlateKeyboard: FC<NumberKeyboardProps>;
26
+ export default LicensePlateKeyboard;
@@ -1,38 +1,37 @@
1
- import React, { ReactNode } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type LicensePlateProps = {
5
- value: string;
6
- onChange: (index: string) => void;
7
- /**
8
- * 是否默认展示键盘
9
- */
10
- showKeyboard?: boolean;
11
- closeText?: string;
12
- label?: ReactNode;
13
- onFinish?: () => void;
14
- padding?: boolean;
15
- border?: boolean;
16
- autoScroll?: boolean;
17
- } & XHComponentCommonProps;
18
- export declare type LicensePlateInputRef = {
19
- /**
20
- * 是否有效,组件会用大写字母(O) 来代替空位,如果要自己校验,那么就得判断有没有“O”来判断有没有空格
21
- */
22
- isValid: boolean;
23
- };
24
- declare const LicensePlateInput: React.ForwardRefExoticComponent<{
25
- value: string;
26
- onChange: (index: string) => void;
27
- /**
28
- * 是否默认展示键盘
29
- */
30
- showKeyboard?: boolean | undefined;
31
- closeText?: string | undefined;
32
- label?: ReactNode;
33
- onFinish?: (() => void) | undefined;
34
- padding?: boolean | undefined;
35
- border?: boolean | undefined;
36
- autoScroll?: boolean | undefined;
37
- } & XHComponentCommonProps & React.RefAttributes<LicensePlateInputRef>>;
38
- export default LicensePlateInput;
1
+ import React, { ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type LicensePlateProps = {
4
+ value: string;
5
+ onChange: (index: string) => void;
6
+ /**
7
+ * 是否默认展示键盘
8
+ */
9
+ showKeyboard?: boolean;
10
+ closeText?: string;
11
+ label?: ReactNode;
12
+ onFinish?: () => void;
13
+ padding?: boolean;
14
+ border?: boolean;
15
+ autoScroll?: boolean;
16
+ } & XHComponentCommonProps;
17
+ export declare type LicensePlateInputRef = {
18
+ /**
19
+ * 是否有效,组件会用大写字母(O) 来代替空位,如果要自己校验,那么就得判断有没有“O”来判断有没有空格
20
+ */
21
+ isValid: boolean;
22
+ };
23
+ declare const LicensePlateInput: React.ForwardRefExoticComponent<{
24
+ value: string;
25
+ onChange: (index: string) => void;
26
+ /**
27
+ * 是否默认展示键盘
28
+ */
29
+ showKeyboard?: boolean | undefined;
30
+ closeText?: string | undefined;
31
+ label?: ReactNode;
32
+ onFinish?: (() => void) | undefined;
33
+ padding?: boolean | undefined;
34
+ border?: boolean | undefined;
35
+ autoScroll?: boolean | undefined;
36
+ } & XHComponentCommonProps & React.RefAttributes<LicensePlateInputRef>>;
37
+ export default LicensePlateInput;