taro-react-uilib 1.4.22-0 → 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 (280) 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/Checkbox/index.js +1 -1
  4. package/dist/components/Checkbox/index.js.map +1 -1
  5. package/dist/components/Icon/index.js +1 -1
  6. package/dist/components/Icon/index.js.map +1 -1
  7. package/dist/components/Notice/index.js +2 -0
  8. package/dist/components/Notice/index.js.map +1 -0
  9. package/dist/components/Radio/Group/index.js +1 -1
  10. package/dist/components/Radio/Group/index.js.map +1 -1
  11. package/dist/components/Radio/index.js +1 -1
  12. package/dist/components/Radio/index.js.map +1 -1
  13. package/dist/components/src/index.js +1 -1
  14. package/dist/components/src/utils/index.js +1 -1
  15. package/dist/components/src/utils/index.js.map +1 -1
  16. package/dist/index.esm.js +6 -6
  17. package/dist/index.esm.js.map +1 -1
  18. package/dist/index.js +4 -4
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.umd.js +4 -4
  21. package/dist/index.umd.js.map +1 -1
  22. package/dist/styles/components/font/iconfont.ttf +0 -0
  23. package/dist/styles/components/font/iconfont.woff +0 -0
  24. package/dist/styles/components/font/iconfont.woff2 +0 -0
  25. package/dist/styles/components/icon.scss +5 -1
  26. package/dist/styles/components/index.scss +2 -0
  27. package/dist/styles/components/notice.scss +43 -0
  28. package/dist/styles/components/tabnav.scss +97 -0
  29. package/package.json +2 -2
  30. package/types/components/ActionSheet/index.d.ts +43 -44
  31. package/types/components/ActivityIndicator/index.d.ts +12 -13
  32. package/types/components/AmountInput/index.d.ts +25 -26
  33. package/types/components/AmountKeyboard/index.d.ts +35 -36
  34. package/types/components/Animated/Animated.d.ts +11 -12
  35. package/types/components/Animated/Fade/index.d.ts +9 -9
  36. package/types/components/Animated/Scale/index.d.ts +9 -9
  37. package/types/components/Animated/Slide/index.d.ts +11 -11
  38. package/types/components/Animated/index.d.ts +3 -3
  39. package/types/components/Badge/index.d.ts +7 -8
  40. package/types/components/BankCardNumberInput/index.d.ts +47 -48
  41. package/types/components/BankIcon/index.d.ts +8 -9
  42. package/types/components/Button/DotJump.d.ts +7 -7
  43. package/types/components/Button/index.d.ts +29 -30
  44. package/types/components/Captcha/index.d.ts +24 -25
  45. package/types/components/Cell/index.d.ts +29 -30
  46. package/types/components/Checkbox/Group/index.d.ts +23 -23
  47. package/types/components/Checkbox/index.d.ts +28 -29
  48. package/types/components/CheckboxButton/index.d.ts +23 -24
  49. package/types/components/Collapse/index.d.ts +10 -11
  50. package/types/components/Countdown/index.d.ts +10 -11
  51. package/types/components/Dialog/Alert/index.d.ts +26 -26
  52. package/types/components/Dialog/Confirm/index.d.ts +37 -37
  53. package/types/components/Dialog/index.d.ts +11 -11
  54. package/types/components/DialogComponent/index.d.ts +18 -19
  55. package/types/components/DialogRef/index.d.ts +37 -38
  56. package/types/components/Echarts/index.d.ts +5 -5
  57. package/types/components/Echarts/types.d.ts +34 -34
  58. package/types/components/Echarts/weapp/wx-canvas.d.ts +21 -21
  59. package/types/components/Echarts/weapp/wx-touch.d.ts +13 -13
  60. package/types/components/FormInput/index.d.ts +55 -56
  61. package/types/components/IDNumberInput/index.d.ts +39 -40
  62. package/types/components/Icon/index.d.ts +13 -14
  63. package/types/components/Image/index.d.ts +11 -12
  64. package/types/components/LicensePlateInput/Keyboard.d.ts +26 -27
  65. package/types/components/LicensePlateInput/index.d.ts +37 -38
  66. package/types/components/LinkMan/index.d.ts +33 -34
  67. package/types/components/List/index.d.ts +21 -22
  68. package/types/components/Loading/index.d.ts +11 -12
  69. package/types/components/Mask/index.d.ts +9 -10
  70. package/types/components/NavBar/index.d.ts +11 -12
  71. package/types/components/Notice/index.d.ts +13 -0
  72. package/types/components/NumberKeyboard/index.d.ts +24 -25
  73. package/types/components/Page/index.d.ts +21 -22
  74. package/types/components/PasswordInput/index.d.ts +10 -11
  75. package/types/components/Picker/Picker.d.ts +24 -24
  76. package/types/components/Picker/PickerSlot.d.ts +23 -24
  77. package/types/components/Picker/index.d.ts +12 -13
  78. package/types/components/Popup/index.d.ts +10 -11
  79. package/types/components/Progress/index.d.ts +21 -22
  80. package/types/components/ProgressCircle/index.d.ts +13 -14
  81. package/types/components/Radio/Group/index.d.ts +29 -29
  82. package/types/components/Radio/index.d.ts +29 -30
  83. package/types/components/Rank/index.d.ts +13 -14
  84. package/types/components/Result/index.d.ts +23 -24
  85. package/types/components/ScrollView/index.d.ts +11 -11
  86. package/types/components/Space/Item.d.ts +11 -11
  87. package/types/components/Space/config-provider.d.ts +12 -12
  88. package/types/components/Space/index.d.ts +20 -21
  89. package/types/components/Step/Steps/index.d.ts +14 -14
  90. package/types/components/Step/index.d.ts +19 -20
  91. package/types/components/Switch/index.d.ts +11 -12
  92. package/types/components/TabNav/TabNavItem/index.d.ts +8 -0
  93. package/types/components/TabNav/index.d.ts +27 -0
  94. package/types/components/Tabbar/index.d.ts +8 -9
  95. package/types/components/Tabbar/tabbar/TabItem.d.ts +8 -8
  96. package/types/components/Tabbar/tabbar/Tabbar.d.ts +31 -31
  97. package/types/components/ThemeProvider/index.d.ts +30 -30
  98. package/types/components/Toast/Toast.d.ts +19 -20
  99. package/types/components/Toast/index.d.ts +4 -5
  100. package/types/hooks/index.d.ts +2 -2
  101. package/types/hooks/useCustomNavbar.d.ts +6 -6
  102. package/types/hooks/useFirstMountState.d.ts +1 -1
  103. package/types/hooks/useFlexGapSupport.d.ts +2 -2
  104. package/types/hooks/useGenerateId.d.ts +1 -1
  105. package/types/hooks/usePrevious.d.ts +1 -1
  106. package/types/hooks/useRefs.d.ts +1 -1
  107. package/types/hooks/useTouch.d.ts +18 -18
  108. package/types/hooks/useUnMount.d.ts +1 -1
  109. package/types/hooks/useUpdateEffect.d.ts +1 -1
  110. package/types/index.d.ts +44 -43
  111. package/types/types/index.d.ts +5 -5
  112. package/types/utils/index.d.ts +57 -57
  113. package/lib/components/ActionSheet/index.js +0 -67
  114. package/lib/components/ActionSheet/index.js.map +0 -1
  115. package/lib/components/ActivityIndicator/index.js +0 -30
  116. package/lib/components/ActivityIndicator/index.js.map +0 -1
  117. package/lib/components/AmountInput/index.js +0 -53
  118. package/lib/components/AmountInput/index.js.map +0 -1
  119. package/lib/components/AmountKeyboard/index.js +0 -134
  120. package/lib/components/AmountKeyboard/index.js.map +0 -1
  121. package/lib/components/Animated/Animated.js +0 -20
  122. package/lib/components/Animated/Animated.js.map +0 -1
  123. package/lib/components/Animated/Fade/index.js +0 -19
  124. package/lib/components/Animated/Fade/index.js.map +0 -1
  125. package/lib/components/Animated/Scale/index.js +0 -19
  126. package/lib/components/Animated/Scale/index.js.map +0 -1
  127. package/lib/components/Animated/Slide/index.js +0 -19
  128. package/lib/components/Animated/Slide/index.js.map +0 -1
  129. package/lib/components/Animated/index.js +0 -5
  130. package/lib/components/Animated/index.js.map +0 -1
  131. package/lib/components/Badge/index.js +0 -11
  132. package/lib/components/Badge/index.js.map +0 -1
  133. package/lib/components/BankCardNumberInput/index.js +0 -44
  134. package/lib/components/BankCardNumberInput/index.js.map +0 -1
  135. package/lib/components/BankIcon/index.js +0 -12
  136. package/lib/components/BankIcon/index.js.map +0 -1
  137. package/lib/components/Button/DotJump.js +0 -13
  138. package/lib/components/Button/DotJump.js.map +0 -1
  139. package/lib/components/Button/index.js +0 -62
  140. package/lib/components/Button/index.js.map +0 -1
  141. package/lib/components/Captcha/index.js +0 -76
  142. package/lib/components/Captcha/index.js.map +0 -1
  143. package/lib/components/Cell/index.js +0 -29
  144. package/lib/components/Cell/index.js.map +0 -1
  145. package/lib/components/Checkbox/Group/index.js +0 -49
  146. package/lib/components/Checkbox/Group/index.js.map +0 -1
  147. package/lib/components/Checkbox/index.js +0 -55
  148. package/lib/components/Checkbox/index.js.map +0 -1
  149. package/lib/components/CheckboxButton/index.js +0 -30
  150. package/lib/components/CheckboxButton/index.js.map +0 -1
  151. package/lib/components/Collapse/index.js +0 -47
  152. package/lib/components/Collapse/index.js.map +0 -1
  153. package/lib/components/Countdown/index.js +0 -69
  154. package/lib/components/Countdown/index.js.map +0 -1
  155. package/lib/components/Dialog/Alert/index.js +0 -35
  156. package/lib/components/Dialog/Alert/index.js.map +0 -1
  157. package/lib/components/Dialog/Confirm/index.js +0 -41
  158. package/lib/components/Dialog/Confirm/index.js.map +0 -1
  159. package/lib/components/Dialog/index.js +0 -8
  160. package/lib/components/Dialog/index.js.map +0 -1
  161. package/lib/components/DialogComponent/index.js +0 -36
  162. package/lib/components/DialogComponent/index.js.map +0 -1
  163. package/lib/components/DialogRef/index.js +0 -55
  164. package/lib/components/DialogRef/index.js.map +0 -1
  165. package/lib/components/Echarts/index.js +0 -276
  166. package/lib/components/Echarts/index.js.map +0 -1
  167. package/lib/components/Echarts/types.js +0 -2
  168. package/lib/components/Echarts/types.js.map +0 -1
  169. package/lib/components/Echarts/weapp/wx-canvas.js +0 -125
  170. package/lib/components/Echarts/weapp/wx-canvas.js.map +0 -1
  171. package/lib/components/Echarts/weapp/wx-touch.js +0 -75
  172. package/lib/components/Echarts/weapp/wx-touch.js.map +0 -1
  173. package/lib/components/FormInput/index.js +0 -75
  174. package/lib/components/FormInput/index.js.map +0 -1
  175. package/lib/components/IDNumberInput/index.js +0 -37
  176. package/lib/components/IDNumberInput/index.js.map +0 -1
  177. package/lib/components/Icon/index.js +0 -24
  178. package/lib/components/Icon/index.js.map +0 -1
  179. package/lib/components/Image/index.js +0 -48
  180. package/lib/components/Image/index.js.map +0 -1
  181. package/lib/components/LicensePlateInput/Keyboard.js +0 -168
  182. package/lib/components/LicensePlateInput/Keyboard.js.map +0 -1
  183. package/lib/components/LicensePlateInput/index.js +0 -94
  184. package/lib/components/LicensePlateInput/index.js.map +0 -1
  185. package/lib/components/LinkMan/index.js +0 -348
  186. package/lib/components/LinkMan/index.js.map +0 -1
  187. package/lib/components/List/index.js +0 -26
  188. package/lib/components/List/index.js.map +0 -1
  189. package/lib/components/Loading/index.js +0 -18
  190. package/lib/components/Loading/index.js.map +0 -1
  191. package/lib/components/Mask/index.js +0 -17
  192. package/lib/components/Mask/index.js.map +0 -1
  193. package/lib/components/NavBar/index.js +0 -41
  194. package/lib/components/NavBar/index.js.map +0 -1
  195. package/lib/components/NumberKeyboard/index.js +0 -63
  196. package/lib/components/NumberKeyboard/index.js.map +0 -1
  197. package/lib/components/Page/index.js +0 -30
  198. package/lib/components/Page/index.js.map +0 -1
  199. package/lib/components/PasswordInput/index.js +0 -24
  200. package/lib/components/PasswordInput/index.js.map +0 -1
  201. package/lib/components/Picker/Picker.js +0 -205
  202. package/lib/components/Picker/Picker.js.map +0 -1
  203. package/lib/components/Picker/PickerSlot.js +0 -226
  204. package/lib/components/Picker/PickerSlot.js.map +0 -1
  205. package/lib/components/Picker/index.js +0 -33
  206. package/lib/components/Picker/index.js.map +0 -1
  207. package/lib/components/Popup/index.js +0 -60
  208. package/lib/components/Popup/index.js.map +0 -1
  209. package/lib/components/Progress/index.js +0 -29
  210. package/lib/components/Progress/index.js.map +0 -1
  211. package/lib/components/ProgressCircle/index.js +0 -22
  212. package/lib/components/ProgressCircle/index.js.map +0 -1
  213. package/lib/components/Radio/Group/index.js +0 -58
  214. package/lib/components/Radio/Group/index.js.map +0 -1
  215. package/lib/components/Radio/index.js +0 -56
  216. package/lib/components/Radio/index.js.map +0 -1
  217. package/lib/components/Rank/index.js +0 -22
  218. package/lib/components/Rank/index.js.map +0 -1
  219. package/lib/components/Result/index.js +0 -38
  220. package/lib/components/Result/index.js.map +0 -1
  221. package/lib/components/ScrollView/index.js +0 -34
  222. package/lib/components/ScrollView/index.js.map +0 -1
  223. package/lib/components/Space/Item.js +0 -25
  224. package/lib/components/Space/Item.js.map +0 -1
  225. package/lib/components/Space/config-provider.js +0 -8
  226. package/lib/components/Space/config-provider.js.map +0 -1
  227. package/lib/components/Space/index.js +0 -77
  228. package/lib/components/Space/index.js.map +0 -1
  229. package/lib/components/Step/Steps/index.js +0 -33
  230. package/lib/components/Step/Steps/index.js.map +0 -1
  231. package/lib/components/Step/index.js +0 -20
  232. package/lib/components/Step/index.js.map +0 -1
  233. package/lib/components/Switch/index.js +0 -26
  234. package/lib/components/Switch/index.js.map +0 -1
  235. package/lib/components/Tabbar/index.js +0 -7
  236. package/lib/components/Tabbar/index.js.map +0 -1
  237. package/lib/components/Tabbar/tabbar/TabItem.js +0 -9
  238. package/lib/components/Tabbar/tabbar/TabItem.js.map +0 -1
  239. package/lib/components/Tabbar/tabbar/Tabbar.js +0 -87
  240. package/lib/components/Tabbar/tabbar/Tabbar.js.map +0 -1
  241. package/lib/components/ThemeProvider/index.js +0 -32
  242. package/lib/components/ThemeProvider/index.js.map +0 -1
  243. package/lib/components/Toast/Toast.js +0 -38
  244. package/lib/components/Toast/Toast.js.map +0 -1
  245. package/lib/components/Toast/index.js +0 -56
  246. package/lib/components/Toast/index.js.map +0 -1
  247. package/lib/hooks/index.js +0 -17
  248. package/lib/hooks/index.js.map +0 -1
  249. package/lib/hooks/useCustomNavbar.js +0 -24
  250. package/lib/hooks/useCustomNavbar.js.map +0 -1
  251. package/lib/hooks/useFirstMountState.js +0 -10
  252. package/lib/hooks/useFirstMountState.js.map +0 -1
  253. package/lib/hooks/useFlexGapSupport.js +0 -10
  254. package/lib/hooks/useFlexGapSupport.js.map +0 -1
  255. package/lib/hooks/useGenerateId.js +0 -12
  256. package/lib/hooks/useGenerateId.js.map +0 -1
  257. package/lib/hooks/usePrevious.js +0 -9
  258. package/lib/hooks/usePrevious.js.map +0 -1
  259. package/lib/hooks/useRefs.js +0 -13
  260. package/lib/hooks/useRefs.js.map +0 -1
  261. package/lib/hooks/useTouch.js +0 -67
  262. package/lib/hooks/useTouch.js.map +0 -1
  263. package/lib/hooks/useUnMount.js +0 -5
  264. package/lib/hooks/useUnMount.js.map +0 -1
  265. package/lib/hooks/useUpdateEffect.js +0 -12
  266. package/lib/hooks/useUpdateEffect.js.map +0 -1
  267. package/lib/index.js +0 -44
  268. package/lib/index.js.map +0 -1
  269. package/lib/types/index.js +0 -2
  270. package/lib/types/index.js.map +0 -1
  271. package/lib/utils/index.js +0 -320
  272. package/lib/utils/index.js.map +0 -1
  273. package/types/components/BankIcon/bank.d.ts +0 -18
  274. package/types/components/Dialog/Dialog/index.d.ts +0 -19
  275. package/types/components/Dialog/DialogComponent/index.d.ts +0 -19
  276. package/types/components/NumberKeyboard/Key/index.d.ts +0 -8
  277. package/types/components/PickerSlot/index.d.ts +0 -24
  278. package/types/components/Tabbar/components/TabItem.d.ts +0 -9
  279. package/types/components/Tabbar/components/Tabbar.d.ts +0 -30
  280. package/types/components/Theme/index.d.ts +0 -27
@@ -1,34 +1,33 @@
1
- import React from "react";
2
- import "./index.scss";
3
- export declare type AddLinkManProps = {
4
- linkManNum: number;
5
- onChange?: (data: LinkManItem[], pass: boolean) => void;
6
- onGetContacts?: (index: number) => void;
7
- showImportIcon?: boolean;
8
- onBlur?: (type: keyof LinkManItem, index: number) => void;
9
- onCheckRelation?: (value: {
10
- text: string;
11
- value: string;
12
- }, index: number) => void;
13
- onInputChange?: (type: "linkmanName" | "linkmanPhone", index: number) => void;
14
- /**
15
- * 可以选择的关系
16
- */
17
- relations?: {
18
- text: string;
19
- value: string;
20
- }[];
21
- needName?: boolean;
22
- };
23
- export declare type LinkManItem = {
24
- linkmanName: string;
25
- linkmanPhone: string;
26
- relationType: string;
27
- relationValue: string;
28
- };
29
- export declare type LinkManRef = {
30
- canSubmit: boolean;
31
- setContacts: (item: Partial<Pick<LinkManItem, "linkmanName" | "linkmanPhone">>, index: number) => void;
32
- };
33
- declare const XHAddLinMan: React.ForwardRefExoticComponent<AddLinkManProps & React.RefAttributes<LinkManRef>>;
34
- export default XHAddLinMan;
1
+ import React from "react";
2
+ export declare type AddLinkManProps = {
3
+ linkManNum: number;
4
+ onChange?: (data: LinkManItem[], pass: boolean) => void;
5
+ onGetContacts?: (index: number) => void;
6
+ showImportIcon?: boolean;
7
+ onBlur?: (type: keyof LinkManItem, index: number) => void;
8
+ onCheckRelation?: (value: {
9
+ text: string;
10
+ value: string;
11
+ }, index: number) => void;
12
+ onInputChange?: (type: "linkmanName" | "linkmanPhone", index: number) => void;
13
+ /**
14
+ * 可以选择的关系
15
+ */
16
+ relations?: {
17
+ text: string;
18
+ value: string;
19
+ }[];
20
+ needName?: boolean;
21
+ };
22
+ export declare type LinkManItem = {
23
+ linkmanName: string;
24
+ linkmanPhone: string;
25
+ relationType: string;
26
+ relationValue: string;
27
+ };
28
+ export declare type LinkManRef = {
29
+ canSubmit: boolean;
30
+ setContacts: (item: Partial<Pick<LinkManItem, "linkmanName" | "linkmanPhone">>, index: number) => void;
31
+ };
32
+ declare const XHAddLinMan: React.ForwardRefExoticComponent<AddLinkManProps & React.RefAttributes<LinkManRef>>;
33
+ export default XHAddLinMan;
@@ -1,22 +1,21 @@
1
- import { FC, ReactNode } from "react";
2
- import { ITouchEvent } from "@tarojs/components";
3
- import { XHComponentCommonProps } from "../../types";
4
- import "./index.scss";
5
- export declare type XHListProps = {
6
- title?: string;
7
- description?: string | ReactNode;
8
- icon?: ReactNode;
9
- extra?: string | ReactNode;
10
- extraIcon?: ReactNode;
11
- border?: boolean;
12
- arrow?: boolean;
13
- outline?: boolean;
14
- condensed?: boolean;
15
- onClick?: (e: ITouchEvent) => void;
16
- descriptionColor?: string;
17
- extraColor?: string;
18
- ellipsis?: boolean;
19
- padding?: boolean;
20
- } & XHComponentCommonProps;
21
- declare const XHList: FC<XHListProps>;
22
- export default XHList;
1
+ import { FC, ReactNode } from "react";
2
+ import { ITouchEvent } from "@tarojs/components";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type XHListProps = {
5
+ title?: string;
6
+ description?: string | ReactNode;
7
+ icon?: ReactNode;
8
+ extra?: string | ReactNode;
9
+ extraIcon?: ReactNode;
10
+ border?: boolean;
11
+ arrow?: boolean;
12
+ outline?: boolean;
13
+ condensed?: boolean;
14
+ onClick?: (e: ITouchEvent) => void;
15
+ descriptionColor?: string;
16
+ extraColor?: string;
17
+ ellipsis?: boolean;
18
+ padding?: boolean;
19
+ } & XHComponentCommonProps;
20
+ declare const XHList: FC<XHListProps>;
21
+ export default XHList;
@@ -1,12 +1,11 @@
1
- import { FC, ReactNode } from "react";
2
- import { MaskProps } from "../Mask";
3
- import { XHComponentCommonProps } from "../../types";
4
- import "./index.scss";
5
- export declare type LoadingProps = {
6
- mask?: MaskProps["mask"];
7
- color?: string;
8
- tip?: string | ReactNode;
9
- size?: number;
10
- } & XHComponentCommonProps;
11
- declare const Loading: FC<LoadingProps>;
12
- export default Loading;
1
+ import { FC, ReactNode } from "react";
2
+ import { MaskProps } from "../Mask";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type LoadingProps = {
5
+ mask?: MaskProps["mask"];
6
+ color?: string;
7
+ tip?: string | ReactNode;
8
+ size?: number;
9
+ } & XHComponentCommonProps;
10
+ declare const Loading: FC<LoadingProps>;
11
+ export default Loading;
@@ -1,10 +1,9 @@
1
- import { FC, MouseEvent } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type MaskProps = {
5
- closeOnClickMask?: boolean;
6
- onClick?: (e: MouseEvent) => void;
7
- mask?: "transparent" | "normal";
8
- } & XHComponentCommonProps;
9
- declare const Mask: FC<MaskProps>;
10
- export default Mask;
1
+ import { FC, MouseEvent } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type MaskProps = {
4
+ closeOnClickMask?: boolean;
5
+ onClick?: (e: MouseEvent) => void;
6
+ mask?: "transparent" | "normal";
7
+ } & XHComponentCommonProps;
8
+ declare const Mask: FC<MaskProps>;
9
+ export default Mask;
@@ -1,12 +1,11 @@
1
- import { FC, ReactNode } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type NavBarProps = {
5
- title: string;
6
- leftIcon?: boolean;
7
- rightIcon?: ReactNode;
8
- navBarBorder?: boolean;
9
- onBack?: () => void;
10
- } & XHComponentCommonProps;
11
- declare const NavBar: FC<NavBarProps>;
12
- export default NavBar;
1
+ import { FC, ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type NavBarProps = {
4
+ title: string;
5
+ leftIcon?: boolean;
6
+ rightIcon?: ReactNode;
7
+ navBarBorder?: boolean;
8
+ onBack?: () => void;
9
+ } & XHComponentCommonProps;
10
+ declare const NavBar: FC<NavBarProps>;
11
+ export default NavBar;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Property } from "csstype";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type RemindProps = {
5
+ content: string[] | ReactNode[];
6
+ internal?: number;
7
+ duration?: number;
8
+ icon?: ReactNode | boolean;
9
+ itemHeight?: number;
10
+ bgColor?: Property.BackgroundColor;
11
+ } & XHComponentCommonProps;
12
+ declare const Notice: React.FC<RemindProps>;
13
+ export default Notice;
@@ -1,25 +1,24 @@
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
- type?: NumberKeyboardType;
8
- showClose?: boolean;
9
- closeOnClickSpace?: boolean;
10
- maxLength?: number;
11
- onBlur?: (e: MouseEvent | Event) => void;
12
- onClose?: (e: MouseEvent | Event) => void;
13
- onChange?: (value: string) => void;
14
- value: string;
15
- title?: string;
16
- closeText?: string;
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
- }
24
- declare const NumberKeyboard: FC<NumberKeyboardProps>;
25
- export default NumberKeyboard;
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
+ type?: NumberKeyboardType;
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
+ value: string;
14
+ title?: string;
15
+ closeText?: string;
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
+ }
23
+ declare const NumberKeyboard: FC<NumberKeyboardProps>;
24
+ export default NumberKeyboard;
@@ -1,22 +1,21 @@
1
- import { FC, ReactNode } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- import { LoadingProps } from "../Loading";
5
- export interface PageProps extends XHComponentCommonProps {
6
- loading?: boolean;
7
- mask?: LoadingProps["mask"];
8
- tip?: ReactNode;
9
- loadingColor?: string;
10
- /**
11
- * @supported 小程序
12
- * @default false
13
- */
14
- customNavBar?: boolean;
15
- onBack?: () => void;
16
- title?: string;
17
- leftIcon?: boolean;
18
- rightIcon?: ReactNode;
19
- navBarBorder?: boolean;
20
- }
21
- declare const Page: FC<PageProps>;
22
- export default Page;
1
+ import { FC, ReactNode } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ import { LoadingProps } from "../Loading";
4
+ export interface PageProps extends XHComponentCommonProps {
5
+ loading?: boolean;
6
+ mask?: LoadingProps["mask"];
7
+ tip?: ReactNode;
8
+ loadingColor?: string;
9
+ /**
10
+ * @supported 小程序
11
+ * @default false
12
+ */
13
+ customNavBar?: boolean;
14
+ onBack?: () => void;
15
+ title?: string;
16
+ leftIcon?: boolean;
17
+ rightIcon?: ReactNode;
18
+ navBarBorder?: boolean;
19
+ }
20
+ declare const Page: FC<PageProps>;
21
+ export default Page;
@@ -1,11 +1,10 @@
1
- import { FC } from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type PasswordInputProps = {
5
- value: string;
6
- length: number;
7
- mask?: boolean;
8
- onFocus?: (e: any) => void;
9
- } & XHComponentCommonProps;
10
- declare const PasswordInput: FC<PasswordInputProps>;
11
- export default PasswordInput;
1
+ import { FC } from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type PasswordInputProps = {
4
+ value: string;
5
+ length: number;
6
+ mask?: boolean;
7
+ onFocus?: (e: any) => void;
8
+ } & XHComponentCommonProps;
9
+ declare const PasswordInput: FC<PasswordInputProps>;
10
+ export default PasswordInput;
@@ -1,24 +1,24 @@
1
- import React, { RefObject, ReactNode } from "react";
2
- export interface PickerOption {
3
- text: string | number;
4
- value: string | number;
5
- children?: PickerOption[];
6
- }
7
- export declare type PickerValue = string | PickerOption;
8
- export interface PickerProps<T extends PickerValue = PickerValue> {
9
- visible?: boolean;
10
- title?: ReactNode | string;
11
- data: (T | T[])[];
12
- defaultValueData?: (string | number)[];
13
- className?: string;
14
- style?: React.CSSProperties;
15
- mode?: "normal" | "3D";
16
- swipeDuration?: number | string;
17
- onConfirm?: (selectedValue: T[], index: number) => void;
18
- onCancel?: () => void;
19
- onClose?: () => void;
20
- onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
21
- onChange?: (index: number, value: (string | number)[], selectedOptions: PickerValue[]) => void;
22
- }
23
- declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps<PickerValue>> & React.RefAttributes<unknown>>;
24
- export default Picker;
1
+ import React, { RefObject, ReactNode } from "react";
2
+ export interface PickerOption {
3
+ text: string | number;
4
+ value: string | number;
5
+ children?: PickerOption[];
6
+ }
7
+ export declare type PickerValue = string | PickerOption;
8
+ export interface PickerProps<T extends PickerValue = PickerValue> {
9
+ visible?: boolean;
10
+ title?: ReactNode | string;
11
+ data: (T | T[])[];
12
+ defaultValueData?: (string | number)[];
13
+ className?: string;
14
+ style?: React.CSSProperties;
15
+ mode?: "normal" | "3D";
16
+ swipeDuration?: number | string;
17
+ onConfirm?: (selectedValue: T[], index: number) => void;
18
+ onCancel?: () => void;
19
+ onClose?: () => void;
20
+ onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
21
+ onChange?: (index: number, value: (string | number)[], selectedOptions: PickerValue[]) => void;
22
+ }
23
+ declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps<PickerValue>> & React.RefAttributes<unknown>>;
24
+ export default Picker;
@@ -1,24 +1,23 @@
1
- import React, { MouseEventHandler } from "react";
2
- import "./index.scss";
3
- interface PickerObjectValue {
4
- text: string | number;
5
- value: string | number;
6
- [key: string]: any;
7
- }
8
- export declare type PickerValue = string | PickerObjectValue;
9
- interface PickerSlotProps<T extends PickerValue = PickerObjectValue> {
10
- defaultValue?: string | number;
11
- data: T[];
12
- mode?: "normal" | "3D";
13
- swipeDuration?: number | string;
14
- onConfirm?: (value: T, index: number) => void;
15
- onCancel?: MouseEventHandler;
16
- onClose?: MouseEventHandler;
17
- keyIndex: number;
18
- visible: boolean;
19
- }
20
- declare const PickerSlot: React.ForwardRefExoticComponent<Partial<PickerSlotProps<PickerObjectValue>> & React.RefAttributes<{
21
- stopMomentum: () => void;
22
- moving: boolean;
23
- }>>;
24
- export default PickerSlot;
1
+ import React, { MouseEventHandler } from "react";
2
+ interface PickerObjectValue {
3
+ text: string | number;
4
+ value: string | number;
5
+ [key: string]: any;
6
+ }
7
+ export declare type PickerValue = string | PickerObjectValue;
8
+ interface PickerSlotProps<T extends PickerValue = PickerObjectValue> {
9
+ defaultValue?: string | number;
10
+ data: T[];
11
+ mode?: "normal" | "3D";
12
+ swipeDuration?: number | string;
13
+ onConfirm?: (value: T, index: number) => void;
14
+ onCancel?: MouseEventHandler;
15
+ onClose?: MouseEventHandler;
16
+ keyIndex: number;
17
+ visible: boolean;
18
+ }
19
+ declare const PickerSlot: React.ForwardRefExoticComponent<Partial<PickerSlotProps<PickerObjectValue>> & React.RefAttributes<{
20
+ stopMomentum: () => void;
21
+ moving: boolean;
22
+ }>>;
23
+ export default PickerSlot;
@@ -1,13 +1,12 @@
1
- import { PropsWithChildren, ReactElement, ReactNode } from "react";
2
- import type { PickerValue, PickerProps, PickerOption } from "./Picker";
3
- import "./index.scss";
4
- export declare type PickerDataType = PickerValue;
5
- export declare type PickerDataOptionType = PickerOption;
6
- export interface PickerFieldProps<T extends PickerValue> extends PropsWithChildren<PickerProps> {
7
- title?: ReactNode | string;
8
- data: T[] | T[][];
9
- className?: string;
10
- onConfirm?: (value: T[], index: number) => void;
11
- }
12
- declare const PickerField: <T extends PickerValue>(props: PickerFieldProps<T>) => ReactElement;
13
- export default PickerField;
1
+ import { PropsWithChildren, ReactElement, ReactNode } from "react";
2
+ import type { PickerValue, PickerProps, PickerOption } from "./Picker";
3
+ export declare type PickerDataType = PickerValue;
4
+ export declare type PickerDataOptionType = PickerOption;
5
+ export interface PickerFieldProps<T extends PickerValue> extends PropsWithChildren<PickerProps> {
6
+ title?: ReactNode | string;
7
+ data: T[] | T[][];
8
+ className?: string;
9
+ onConfirm?: (value: T[], index: number) => void;
10
+ }
11
+ declare const PickerField: <T extends PickerValue>(props: PickerFieldProps<T>) => ReactElement;
12
+ export default PickerField;
@@ -1,11 +1,10 @@
1
- import { FC, PropsWithChildren } from "react";
2
- import "./index.scss";
3
- export declare type PopupPosition = "top" | "bottom" | "left" | "right";
4
- export interface PopupProps extends PropsWithChildren<{}> {
5
- visible: boolean;
6
- position?: PopupPosition;
7
- className?: string;
8
- onClose?: () => void;
9
- }
10
- declare const Popup: FC<PopupProps>;
11
- export default Popup;
1
+ import { FC, PropsWithChildren } from "react";
2
+ export declare type PopupPosition = "top" | "bottom" | "left" | "right";
3
+ export interface PopupProps extends PropsWithChildren<{}> {
4
+ visible: boolean;
5
+ position?: PopupPosition;
6
+ className?: string;
7
+ onClose?: () => void;
8
+ }
9
+ declare const Popup: FC<PopupProps>;
10
+ export default Popup;
@@ -1,22 +1,21 @@
1
- import React from "react";
2
- import type { StandardLonghandProperties } from "csstype";
3
- import { XHComponentCommonProps } from "../../types";
4
- import "./index.scss";
5
- export declare type ProgressProps = {
6
- percent: number;
7
- showPercent?: boolean;
8
- doneColor?: string;
9
- percentColor?: string;
10
- height?: number;
11
- /**
12
- * @description 百分比,不要百分号
13
- */
14
- dots?: number[];
15
- /**
16
- * 苗条模式
17
- */
18
- solid?: boolean;
19
- backgroundColor?: StandardLonghandProperties["color"];
20
- } & XHComponentCommonProps;
21
- declare const Progress: React.FC<ProgressProps>;
22
- export default Progress;
1
+ import React from "react";
2
+ import type { StandardLonghandProperties } from "csstype";
3
+ import { XHComponentCommonProps } from "../../types";
4
+ export declare type ProgressProps = {
5
+ percent: number;
6
+ showPercent?: boolean;
7
+ doneColor?: string;
8
+ percentColor?: string;
9
+ height?: number;
10
+ /**
11
+ * @description 百分比,不要百分号
12
+ */
13
+ dots?: number[];
14
+ /**
15
+ * 苗条模式
16
+ */
17
+ solid?: boolean;
18
+ backgroundColor?: StandardLonghandProperties["color"];
19
+ } & XHComponentCommonProps;
20
+ declare const Progress: React.FC<ProgressProps>;
21
+ export default Progress;
@@ -1,14 +1,13 @@
1
- import React from "react";
2
- import { XHComponentCommonProps } from "../../types";
3
- import "./index.scss";
4
- export declare type ProgressProps = {
5
- percent: number;
6
- doneColor?: string;
7
- size?: number;
8
- backgroundColor?: string;
9
- maskColor?: string;
10
- style?: React.CSSProperties;
11
- text?: React.ReactNode;
12
- } & XHComponentCommonProps;
13
- declare const Progress: React.FC<ProgressProps>;
14
- export default Progress;
1
+ import React from "react";
2
+ import { XHComponentCommonProps } from "../../types";
3
+ export declare type ProgressProps = {
4
+ percent: number;
5
+ doneColor?: string;
6
+ size?: number;
7
+ backgroundColor?: string;
8
+ maskColor?: string;
9
+ style?: React.CSSProperties;
10
+ text?: React.ReactNode;
11
+ } & XHComponentCommonProps;
12
+ declare const Progress: React.FC<ProgressProps>;
13
+ export default Progress;
@@ -1,29 +1,29 @@
1
- import React, { ReactNode } from "react";
2
- export declare type RadioItemType = {
3
- label: string | ReactNode;
4
- value: string;
5
- disabled?: boolean;
6
- checked?: boolean;
7
- };
8
- export declare type RadioItem = RadioItemType | string;
9
- export declare type RadioGroupProps = {
10
- option: RadioItem[];
11
- onChange?: (value: string | number) => void;
12
- name: string;
13
- circle?: boolean;
14
- align?: "center" | "end";
15
- direction?: "rtl";
16
- justify?: "around" | "between";
17
- id?: string;
18
- padding?: true;
19
- border?: boolean;
20
- style?: React.CSSProperties;
21
- radioStyle?: React.CSSProperties;
22
- defaultChecked?: string | number;
23
- color?: string;
24
- inline?: boolean;
25
- fancy?: boolean;
26
- checkedClass?: string;
27
- };
28
- declare const RadioGroup: React.FC<RadioGroupProps>;
29
- export default RadioGroup;
1
+ import React, { ReactNode } from "react";
2
+ export declare type RadioItemType = {
3
+ label: string | ReactNode;
4
+ value: string;
5
+ disabled?: boolean;
6
+ checked?: boolean;
7
+ };
8
+ export declare type RadioItem = RadioItemType | string;
9
+ export declare type RadioGroupProps = {
10
+ option: RadioItem[];
11
+ onChange?: (value: string | number) => void;
12
+ name: string;
13
+ circle?: boolean;
14
+ align?: "center" | "end";
15
+ direction?: "rtl";
16
+ justify?: "around" | "between";
17
+ id?: string;
18
+ padding?: true;
19
+ border?: boolean;
20
+ style?: React.CSSProperties;
21
+ radioStyle?: React.CSSProperties;
22
+ defaultChecked?: string | number;
23
+ color?: string;
24
+ inline?: boolean;
25
+ fancy?: boolean;
26
+ checkedClass?: string;
27
+ };
28
+ declare const RadioGroup: React.FC<RadioGroupProps>;
29
+ export default RadioGroup;