@trionesdev/antd-taro-react 0.0.1-beta.3

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 (559) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Alert/alert.d.ts +32 -0
  3. package/dist/Alert/alert.js +49 -0
  4. package/dist/Alert/demo/base.d.ts +3 -0
  5. package/dist/Alert/demo/base.js +56 -0
  6. package/dist/Alert/index.d.ts +3 -0
  7. package/dist/Alert/index.js +2 -0
  8. package/dist/Alert/style.scss +69 -0
  9. package/dist/Avatar/avatar.d.ts +14 -0
  10. package/dist/Avatar/avatar.js +40 -0
  11. package/dist/Avatar/demo/base.d.ts +7 -0
  12. package/dist/Avatar/demo/base.js +109 -0
  13. package/dist/Avatar/demo/style.scss +6 -0
  14. package/dist/Avatar/index.d.ts +2 -0
  15. package/dist/Avatar/index.js +2 -0
  16. package/dist/Avatar/style.scss +16 -0
  17. package/dist/Badge/badge.d.ts +14 -0
  18. package/dist/Badge/badge.js +82 -0
  19. package/dist/Badge/demo/base.d.ts +7 -0
  20. package/dist/Badge/demo/base.js +167 -0
  21. package/dist/Badge/demo/base.scss +6 -0
  22. package/dist/Badge/index.d.ts +3 -0
  23. package/dist/Badge/index.js +2 -0
  24. package/dist/Badge/style.scss +100 -0
  25. package/dist/Button/button.d.ts +53 -0
  26. package/dist/Button/button.js +59 -0
  27. package/dist/Button/demo/base.d.ts +3 -0
  28. package/dist/Button/demo/base.js +163 -0
  29. package/dist/Button/index.d.ts +3 -0
  30. package/dist/Button/index.js +2 -0
  31. package/dist/Button/style.scss +193 -0
  32. package/dist/Calendar/calendar-grid.d.ts +27 -0
  33. package/dist/Calendar/calendar-grid.js +164 -0
  34. package/dist/Calendar/calendar-header.d.ts +7 -0
  35. package/dist/Calendar/calendar-header.js +42 -0
  36. package/dist/Calendar/calendar-range.d.ts +9 -0
  37. package/dist/Calendar/calendar-range.js +47 -0
  38. package/dist/Calendar/calendar.d.ts +8 -0
  39. package/dist/Calendar/calendar.js +35 -0
  40. package/dist/Calendar/demo/calendar.d.ts +3 -0
  41. package/dist/Calendar/demo/calendar.js +10 -0
  42. package/dist/Calendar/demo/grid.d.ts +3 -0
  43. package/dist/Calendar/demo/grid.js +12 -0
  44. package/dist/Calendar/demo/touch-grid.d.ts +3 -0
  45. package/dist/Calendar/demo/touch-grid.js +8 -0
  46. package/dist/Calendar/index.d.ts +11 -0
  47. package/dist/Calendar/index.js +8 -0
  48. package/dist/Calendar/style.scss +85 -0
  49. package/dist/Calendar/touchable-calendar-grid.d.ts +14 -0
  50. package/dist/Calendar/touchable-calendar-grid.js +425 -0
  51. package/dist/CalendarPicker/calendar-picker.d.ts +4 -0
  52. package/dist/CalendarPicker/calendar-picker.js +87 -0
  53. package/dist/CalendarPicker/calendar-range-picker.d.ts +4 -0
  54. package/dist/CalendarPicker/calendar-range-picker.js +87 -0
  55. package/dist/CalendarPicker/demo/base.d.ts +3 -0
  56. package/dist/CalendarPicker/demo/base.js +65 -0
  57. package/dist/CalendarPicker/index.d.ts +9 -0
  58. package/dist/CalendarPicker/index.js +5 -0
  59. package/dist/CalendarPicker/style.scss +20 -0
  60. package/dist/CalendarPicker/types.d.ts +21 -0
  61. package/dist/CalendarPicker/types.js +1 -0
  62. package/dist/Card/card.d.ts +17 -0
  63. package/dist/Card/card.js +36 -0
  64. package/dist/Card/demo/base.d.ts +4 -0
  65. package/dist/Card/demo/base.js +63 -0
  66. package/dist/Card/demo/base.scss +18 -0
  67. package/dist/Card/index.d.ts +4 -0
  68. package/dist/Card/index.js +3 -0
  69. package/dist/Card/native-props.d.ts +8 -0
  70. package/dist/Card/native-props.js +27 -0
  71. package/dist/Card/style.scss +31 -0
  72. package/dist/CascaderPicker/cascader-picker.d.ts +20 -0
  73. package/dist/CascaderPicker/cascader-picker.js +106 -0
  74. package/dist/CascaderPicker/demo/base.d.ts +3 -0
  75. package/dist/CascaderPicker/demo/base.js +85 -0
  76. package/dist/CascaderPicker/index.d.ts +3 -0
  77. package/dist/CascaderPicker/index.js +2 -0
  78. package/dist/CascaderPicker/style.scss +39 -0
  79. package/dist/CascaderView/cascader-column-item.d.ts +8 -0
  80. package/dist/CascaderView/cascader-column-item.js +19 -0
  81. package/dist/CascaderView/cascader-column.d.ts +9 -0
  82. package/dist/CascaderView/cascader-column.js +26 -0
  83. package/dist/CascaderView/cascader-view.d.ts +12 -0
  84. package/dist/CascaderView/cascader-view.js +120 -0
  85. package/dist/CascaderView/demo/async.d.ts +3 -0
  86. package/dist/CascaderView/demo/async.js +41 -0
  87. package/dist/CascaderView/demo/base.d.ts +3 -0
  88. package/dist/CascaderView/demo/base.js +62 -0
  89. package/dist/CascaderView/demo/value.d.ts +3 -0
  90. package/dist/CascaderView/demo/value.js +63 -0
  91. package/dist/CascaderView/index.d.ts +3 -0
  92. package/dist/CascaderView/index.js +2 -0
  93. package/dist/CascaderView/style.scss +20 -0
  94. package/dist/CascaderView/types.d.ts +10 -0
  95. package/dist/CascaderView/types.js +1 -0
  96. package/dist/Checkbox/checkbox-button.d.ts +3 -0
  97. package/dist/Checkbox/checkbox-button.js +42 -0
  98. package/dist/Checkbox/checkbox-group.d.ts +3 -0
  99. package/dist/Checkbox/checkbox-group.js +32 -0
  100. package/dist/Checkbox/checkbox.d.ts +4 -0
  101. package/dist/Checkbox/checkbox.js +43 -0
  102. package/dist/Checkbox/demo/base.d.ts +6 -0
  103. package/dist/Checkbox/demo/base.js +42 -0
  104. package/dist/Checkbox/demo/disabled.d.ts +3 -0
  105. package/dist/Checkbox/demo/disabled.js +19 -0
  106. package/dist/Checkbox/group-context.d.ts +3 -0
  107. package/dist/Checkbox/group-context.js +2 -0
  108. package/dist/Checkbox/index.d.ts +9 -0
  109. package/dist/Checkbox/index.js +11 -0
  110. package/dist/Checkbox/index.scss +151 -0
  111. package/dist/Checkbox/types.d.ts +19 -0
  112. package/dist/Checkbox/types.js +1 -0
  113. package/dist/ConfigProvider/config-provider.d.ts +57 -0
  114. package/dist/ConfigProvider/config-provider.js +41 -0
  115. package/dist/ConfigProvider/demo/base.d.ts +6 -0
  116. package/dist/ConfigProvider/demo/base.js +24 -0
  117. package/dist/ConfigProvider/index.d.ts +4 -0
  118. package/dist/ConfigProvider/index.js +3 -0
  119. package/dist/DemoBlock/index.d.ts +10 -0
  120. package/dist/DemoBlock/index.js +15 -0
  121. package/dist/DemoBlock/index.scss +20 -0
  122. package/dist/DemoDescription/index.d.ts +6 -0
  123. package/dist/DemoDescription/index.js +7 -0
  124. package/dist/DemoDescription/index.scss +3 -0
  125. package/dist/Divider/demo/base.d.ts +3 -0
  126. package/dist/Divider/demo/base.js +35 -0
  127. package/dist/Divider/divider.d.ts +17 -0
  128. package/dist/Divider/divider.js +36 -0
  129. package/dist/Divider/index.d.ts +2 -0
  130. package/dist/Divider/index.js +2 -0
  131. package/dist/Divider/style.scss +62 -0
  132. package/dist/Ellipsis/demo/base.d.ts +3 -0
  133. package/dist/Ellipsis/demo/base.js +81 -0
  134. package/dist/Ellipsis/ellipsis.d.ts +16 -0
  135. package/dist/Ellipsis/ellipsis.js +79 -0
  136. package/dist/Ellipsis/index.d.ts +3 -0
  137. package/dist/Ellipsis/index.js +2 -0
  138. package/dist/Ellipsis/style.scss +13 -0
  139. package/dist/Ellipsis/useMeasure.d.ts +2 -0
  140. package/dist/Ellipsis/useMeasure.js +123 -0
  141. package/dist/Empty/demo/base.d.ts +3 -0
  142. package/dist/Empty/demo/base.js +38 -0
  143. package/dist/Empty/empty.d.ts +3 -0
  144. package/dist/Empty/empty.js +48 -0
  145. package/dist/Empty/index.d.ts +12 -0
  146. package/dist/Empty/index.js +49 -0
  147. package/dist/Empty/style.scss +22 -0
  148. package/dist/ErrorBlock/create-error-block.d.ts +13 -0
  149. package/dist/ErrorBlock/create-error-block.js +45 -0
  150. package/dist/ErrorBlock/demo/base.d.ts +3 -0
  151. package/dist/ErrorBlock/demo/base.js +23 -0
  152. package/dist/ErrorBlock/error-block.d.ts +2 -0
  153. package/dist/ErrorBlock/error-block.js +9 -0
  154. package/dist/ErrorBlock/images/busy.d.ts +2 -0
  155. package/dist/ErrorBlock/images/busy.js +90 -0
  156. package/dist/ErrorBlock/images/busy.png +0 -0
  157. package/dist/ErrorBlock/images/default.d.ts +2 -0
  158. package/dist/ErrorBlock/images/default.js +166 -0
  159. package/dist/ErrorBlock/images/default.png +0 -0
  160. package/dist/ErrorBlock/images/disconnected.d.ts +2 -0
  161. package/dist/ErrorBlock/images/disconnected.js +123 -0
  162. package/dist/ErrorBlock/images/disconnected.png +0 -0
  163. package/dist/ErrorBlock/images/empty.d.ts +2 -0
  164. package/dist/ErrorBlock/images/empty.js +119 -0
  165. package/dist/ErrorBlock/images/empty.png +0 -0
  166. package/dist/ErrorBlock/images/index.d.ts +4 -0
  167. package/dist/ErrorBlock/images/index.js +4 -0
  168. package/dist/ErrorBlock/index.d.ts +7 -0
  169. package/dist/ErrorBlock/index.js +3 -0
  170. package/dist/ErrorBlock/style.scss +62 -0
  171. package/dist/Footer/demo/base.d.ts +6 -0
  172. package/dist/Footer/demo/base.js +81 -0
  173. package/dist/Footer/footer.d.ts +20 -0
  174. package/dist/Footer/footer.js +66 -0
  175. package/dist/Footer/index.d.ts +3 -0
  176. package/dist/Footer/index.js +2 -0
  177. package/dist/Footer/style.scss +55 -0
  178. package/dist/Form/FormItem/form-item-input.d.ts +12 -0
  179. package/dist/Form/FormItem/form-item-input.js +34 -0
  180. package/dist/Form/FormItem/form-item-label.d.ts +13 -0
  181. package/dist/Form/FormItem/form-item-label.js +25 -0
  182. package/dist/Form/FormItem/form-item.d.ts +17 -0
  183. package/dist/Form/FormItem/form-item.js +48 -0
  184. package/dist/Form/FormItem/index.d.ts +5 -0
  185. package/dist/Form/FormItem/index.js +3 -0
  186. package/dist/Form/context.d.ts +11 -0
  187. package/dist/Form/context.js +6 -0
  188. package/dist/Form/demo/base.d.ts +3 -0
  189. package/dist/Form/demo/base.js +76 -0
  190. package/dist/Form/form.d.ts +39 -0
  191. package/dist/Form/form.js +28 -0
  192. package/dist/Form/hooks/useForm.d.ts +2 -0
  193. package/dist/Form/hooks/useForm.js +24 -0
  194. package/dist/Form/hooks/useFormContext.d.ts +2 -0
  195. package/dist/Form/hooks/useFormContext.js +6 -0
  196. package/dist/Form/index.d.ts +12 -0
  197. package/dist/Form/index.js +8 -0
  198. package/dist/Form/interface.d.ts +3 -0
  199. package/dist/Form/interface.js +1 -0
  200. package/dist/Form/style.scss +42 -0
  201. package/dist/Grid/demo/base.d.ts +7 -0
  202. package/dist/Grid/demo/base.js +46 -0
  203. package/dist/Grid/demo/base.scss +7 -0
  204. package/dist/Grid/grid.d.ts +16 -0
  205. package/dist/Grid/grid.js +36 -0
  206. package/dist/Grid/index.d.ts +7 -0
  207. package/dist/Grid/index.js +4 -0
  208. package/dist/Grid/style.scss +17 -0
  209. package/dist/Icon/check-icon.d.ts +3 -0
  210. package/dist/Icon/check-icon.js +10 -0
  211. package/dist/Icon/demo/base.d.ts +6 -0
  212. package/dist/Icon/demo/base.js +41 -0
  213. package/dist/Images/broken-image-icon.d.ts +2 -0
  214. package/dist/Images/broken-image-icon.js +11 -0
  215. package/dist/Images/demo/base.d.ts +4 -0
  216. package/dist/Images/demo/base.js +101 -0
  217. package/dist/Images/demo/base.scss +4 -0
  218. package/dist/Images/image-icon.d.ts +2 -0
  219. package/dist/Images/image-icon.js +11 -0
  220. package/dist/Images/image.d.ts +19 -0
  221. package/dist/Images/image.js +114 -0
  222. package/dist/Images/index.d.ts +4 -0
  223. package/dist/Images/index.js +3 -0
  224. package/dist/Images/lazy-detector.d.ts +6 -0
  225. package/dist/Images/lazy-detector.js +22 -0
  226. package/dist/Images/style.scss +30 -0
  227. package/dist/Input/base-input.d.ts +14 -0
  228. package/dist/Input/base-input.js +54 -0
  229. package/dist/Input/demo/base.d.ts +3 -0
  230. package/dist/Input/demo/base.js +25 -0
  231. package/dist/Input/index.d.ts +10 -0
  232. package/dist/Input/index.js +7 -0
  233. package/dist/Input/index.scss +160 -0
  234. package/dist/Input/input-affix-wrapper.d.ts +8 -0
  235. package/dist/Input/input-affix-wrapper.js +50 -0
  236. package/dist/Input/input-opt.d.ts +16 -0
  237. package/dist/Input/input-opt.js +91 -0
  238. package/dist/Input/input-password.d.ts +7 -0
  239. package/dist/Input/input-password.js +47 -0
  240. package/dist/Input/input.d.ts +15 -0
  241. package/dist/Input/input.js +47 -0
  242. package/dist/Input/native-input.d.ts +10 -0
  243. package/dist/Input/native-input.js +30 -0
  244. package/dist/InputNumber/demo/base.d.ts +3 -0
  245. package/dist/InputNumber/demo/base.js +13 -0
  246. package/dist/InputNumber/index.d.ts +3 -0
  247. package/dist/InputNumber/index.js +2 -0
  248. package/dist/InputNumber/input-number.d.ts +13 -0
  249. package/dist/InputNumber/input-number.js +65 -0
  250. package/dist/InputNumber/style.scss +32 -0
  251. package/dist/Mark/demo/base.d.ts +4 -0
  252. package/dist/Mark/demo/base.js +158 -0
  253. package/dist/Mark/demo/base.scss +14 -0
  254. package/dist/Mark/index.d.ts +4 -0
  255. package/dist/Mark/index.js +3 -0
  256. package/dist/Mark/mark.d.ts +20 -0
  257. package/dist/Mark/mark.js +110 -0
  258. package/dist/Mark/style.scss +24 -0
  259. package/dist/Mask/index.d.ts +2 -0
  260. package/dist/Mask/index.js +2 -0
  261. package/dist/Mask/mask.d.ts +10 -0
  262. package/dist/Mask/mask.js +25 -0
  263. package/dist/Mask/style.scss +17 -0
  264. package/dist/NavBar/demo/base.d.ts +4 -0
  265. package/dist/NavBar/demo/base.js +70 -0
  266. package/dist/NavBar/demo/base.scss +5 -0
  267. package/dist/NavBar/index.d.ts +3 -0
  268. package/dist/NavBar/index.js +2 -0
  269. package/dist/NavBar/nav-bar.d.ts +31 -0
  270. package/dist/NavBar/nav-bar.js +36 -0
  271. package/dist/NavBar/style.scss +61 -0
  272. package/dist/NoticeBar/demo/base.d.ts +3 -0
  273. package/dist/NoticeBar/demo/base.js +90 -0
  274. package/dist/NoticeBar/index.d.ts +3 -0
  275. package/dist/NoticeBar/index.js +2 -0
  276. package/dist/NoticeBar/notice-bar.d.ts +64 -0
  277. package/dist/NoticeBar/notice-bar.js +112 -0
  278. package/dist/NoticeBar/style.scss +130 -0
  279. package/dist/PageIndicator/demo/base.d.ts +3 -0
  280. package/dist/PageIndicator/demo/base.js +41 -0
  281. package/dist/PageIndicator/index.d.ts +3 -0
  282. package/dist/PageIndicator/index.js +2 -0
  283. package/dist/PageIndicator/page-indicator.d.ts +10 -0
  284. package/dist/PageIndicator/page-indicator.js +27 -0
  285. package/dist/PageIndicator/style.scss +59 -0
  286. package/dist/Picker/demo/base.d.ts +3 -0
  287. package/dist/Picker/demo/base.js +56 -0
  288. package/dist/Picker/index.d.ts +3 -0
  289. package/dist/Picker/index.js +2 -0
  290. package/dist/Picker/picker.d.ts +19 -0
  291. package/dist/Picker/picker.js +94 -0
  292. package/dist/Picker/style.scss +37 -0
  293. package/dist/PickerView/demo/base.d.ts +3 -0
  294. package/dist/PickerView/demo/base.js +36 -0
  295. package/dist/PickerView/index.d.ts +4 -0
  296. package/dist/PickerView/index.js +2 -0
  297. package/dist/PickerView/picker-view-column-item.d.ts +7 -0
  298. package/dist/PickerView/picker-view-column-item.js +11 -0
  299. package/dist/PickerView/picker-view-column.d.ts +10 -0
  300. package/dist/PickerView/picker-view-column.js +117 -0
  301. package/dist/PickerView/picker-view.d.ts +11 -0
  302. package/dist/PickerView/picker-view.js +57 -0
  303. package/dist/PickerView/style.scss +72 -0
  304. package/dist/PickerView/types.d.ts +4 -0
  305. package/dist/PickerView/types.js +1 -0
  306. package/dist/Popup/demo/base.d.ts +3 -0
  307. package/dist/Popup/demo/base.js +98 -0
  308. package/dist/Popup/index.d.ts +3 -0
  309. package/dist/Popup/index.js +2 -0
  310. package/dist/Popup/popup-modal.d.ts +54 -0
  311. package/dist/Popup/popup-modal.js +87 -0
  312. package/dist/Popup/popup.d.ts +10 -0
  313. package/dist/Popup/popup.js +52 -0
  314. package/dist/Popup/style.scss +53 -0
  315. package/dist/ProgressBar/demo/base.d.ts +3 -0
  316. package/dist/ProgressBar/demo/base.js +114 -0
  317. package/dist/ProgressBar/index.d.ts +2 -0
  318. package/dist/ProgressBar/index.js +2 -0
  319. package/dist/ProgressBar/progress-bar.d.ts +27 -0
  320. package/dist/ProgressBar/progress-bar.js +38 -0
  321. package/dist/ProgressBar/style.scss +34 -0
  322. package/dist/Radio/GroupContext.d.ts +9 -0
  323. package/dist/Radio/GroupContext.js +2 -0
  324. package/dist/Radio/RadioButton.d.ts +3 -0
  325. package/dist/Radio/RadioButton.js +60 -0
  326. package/dist/Radio/RadioGroup.d.ts +3 -0
  327. package/dist/Radio/RadioGroup.js +48 -0
  328. package/dist/Radio/demo/base.d.ts +4 -0
  329. package/dist/Radio/demo/base.js +84 -0
  330. package/dist/Radio/demo/base.scss +4 -0
  331. package/dist/Radio/index.d.ts +11 -0
  332. package/dist/Radio/index.js +14 -0
  333. package/dist/Radio/radio.d.ts +4 -0
  334. package/dist/Radio/radio.js +68 -0
  335. package/dist/Radio/style.scss +116 -0
  336. package/dist/Radio/types.d.ts +55 -0
  337. package/dist/Radio/types.js +1 -0
  338. package/dist/Rate/demo/base.d.ts +3 -0
  339. package/dist/Rate/demo/base.js +59 -0
  340. package/dist/Rate/index.d.ts +2 -0
  341. package/dist/Rate/index.js +2 -0
  342. package/dist/Rate/rate.d.ts +51 -0
  343. package/dist/Rate/rate.js +100 -0
  344. package/dist/Rate/style.scss +37 -0
  345. package/dist/Result/demo/base.d.ts +3 -0
  346. package/dist/Result/demo/base.js +57 -0
  347. package/dist/Result/index.d.ts +3 -0
  348. package/dist/Result/index.js +2 -0
  349. package/dist/Result/result.d.ts +10 -0
  350. package/dist/Result/result.js +28 -0
  351. package/dist/Result/style.scss +73 -0
  352. package/dist/Result/use-result-icon.d.ts +2 -0
  353. package/dist/Result/use-result-icon.js +53 -0
  354. package/dist/SafeArea/demo/base.d.ts +3 -0
  355. package/dist/SafeArea/demo/base.js +17 -0
  356. package/dist/SafeArea/demo/base.scss +18 -0
  357. package/dist/SafeArea/index.d.ts +4 -0
  358. package/dist/SafeArea/index.js +3 -0
  359. package/dist/SafeArea/safe-area.d.ts +12 -0
  360. package/dist/SafeArea/safe-area.js +15 -0
  361. package/dist/SafeArea/style.scss +17 -0
  362. package/dist/Scaffold/demo/base.d.ts +3 -0
  363. package/dist/Scaffold/demo/base.js +30 -0
  364. package/dist/Scaffold/index.d.ts +3 -0
  365. package/dist/Scaffold/index.js +2 -0
  366. package/dist/Scaffold/scaffold.d.ts +8 -0
  367. package/dist/Scaffold/scaffold.js +19 -0
  368. package/dist/Scaffold/style.scss +16 -0
  369. package/dist/ScrollView/demo/base.d.ts +3 -0
  370. package/dist/ScrollView/demo/base.js +43 -0
  371. package/dist/ScrollView/index.d.ts +3 -0
  372. package/dist/ScrollView/index.js +2 -0
  373. package/dist/ScrollView/scroll-view.d.ts +24 -0
  374. package/dist/ScrollView/scroll-view.js +84 -0
  375. package/dist/ScrollView/style.scss +19 -0
  376. package/dist/SideBar/SideBarContext.d.ts +18 -0
  377. package/dist/SideBar/SideBarContext.js +2 -0
  378. package/dist/SideBar/demo/base.d.ts +3 -0
  379. package/dist/SideBar/demo/base.js +54 -0
  380. package/dist/SideBar/demo/default-active.d.ts +3 -0
  381. package/dist/SideBar/demo/default-active.js +34 -0
  382. package/dist/SideBar/demo/scroll-mode.d.ts +3 -0
  383. package/dist/SideBar/demo/scroll-mode.js +55 -0
  384. package/dist/SideBar/index.d.ts +3 -0
  385. package/dist/SideBar/index.js +2 -0
  386. package/dist/SideBar/side-bar.d.ts +25 -0
  387. package/dist/SideBar/side-bar.js +414 -0
  388. package/dist/SideBar/style.scss +86 -0
  389. package/dist/SideBar/types.d.ts +7 -0
  390. package/dist/SideBar/types.js +1 -0
  391. package/dist/Space/demo/base.d.ts +3 -0
  392. package/dist/Space/demo/base.js +120 -0
  393. package/dist/Space/index.d.ts +3 -0
  394. package/dist/Space/index.js +2 -0
  395. package/dist/Space/space.d.ts +38 -0
  396. package/dist/Space/space.js +61 -0
  397. package/dist/Space/style.scss +77 -0
  398. package/dist/SpinLoading/demo/base.d.ts +3 -0
  399. package/dist/SpinLoading/demo/base.js +21 -0
  400. package/dist/SpinLoading/index.d.ts +2 -0
  401. package/dist/SpinLoading/index.js +2 -0
  402. package/dist/SpinLoading/spin-loading.d.ts +10 -0
  403. package/dist/SpinLoading/spin-loading.js +59 -0
  404. package/dist/SpinLoading/spin-loading.scss +40 -0
  405. package/dist/Switch/demo/base.d.ts +3 -0
  406. package/dist/Switch/demo/base.js +104 -0
  407. package/dist/Switch/index.d.ts +3 -0
  408. package/dist/Switch/index.js +2 -0
  409. package/dist/Switch/spin-icon.d.ts +3 -0
  410. package/dist/Switch/spin-icon.js +23 -0
  411. package/dist/Switch/style.scss +113 -0
  412. package/dist/Switch/switch.d.ts +15 -0
  413. package/dist/Switch/switch.js +120 -0
  414. package/dist/TabBar/TabBarContext.d.ts +10 -0
  415. package/dist/TabBar/TabBarContext.js +2 -0
  416. package/dist/TabBar/demo/base.d.ts +6 -0
  417. package/dist/TabBar/demo/base.js +26 -0
  418. package/dist/TabBar/index.d.ts +6 -0
  419. package/dist/TabBar/index.js +3 -0
  420. package/dist/TabBar/index.scss +35 -0
  421. package/dist/TabBar/tab-bar.d.ts +59 -0
  422. package/dist/TabBar/tab-bar.js +83 -0
  423. package/dist/Tabs/context.d.ts +11 -0
  424. package/dist/Tabs/context.js +4 -0
  425. package/dist/Tabs/demo/base.d.ts +3 -0
  426. package/dist/Tabs/demo/base.js +59 -0
  427. package/dist/Tabs/index.d.ts +9 -0
  428. package/dist/Tabs/index.js +5 -0
  429. package/dist/Tabs/style.scss +107 -0
  430. package/dist/Tabs/tab-nav.d.ts +9 -0
  431. package/dist/Tabs/tab-nav.js +25 -0
  432. package/dist/Tabs/tab-pane.d.ts +7 -0
  433. package/dist/Tabs/tab-pane.js +17 -0
  434. package/dist/Tabs/tab.d.ts +7 -0
  435. package/dist/Tabs/tab.js +6 -0
  436. package/dist/Tabs/tabs.d.ts +25 -0
  437. package/dist/Tabs/tabs.js +156 -0
  438. package/dist/Tag/demo/base.d.ts +7 -0
  439. package/dist/Tag/demo/base.js +67 -0
  440. package/dist/Tag/demo/style.scss +8 -0
  441. package/dist/Tag/index.d.ts +3 -0
  442. package/dist/Tag/index.js +2 -0
  443. package/dist/Tag/style.scss +85 -0
  444. package/dist/Tag/tag.d.ts +30 -0
  445. package/dist/Tag/tag.js +44 -0
  446. package/dist/Toast/demo/base.d.ts +3 -0
  447. package/dist/Toast/demo/base.js +121 -0
  448. package/dist/Toast/demo/component-mode.d.ts +3 -0
  449. package/dist/Toast/demo/component-mode.js +32 -0
  450. package/dist/Toast/index.d.ts +8 -0
  451. package/dist/Toast/index.js +4 -0
  452. package/dist/Toast/style.scss +63 -0
  453. package/dist/Toast/toast-modal.d.ts +18 -0
  454. package/dist/Toast/toast-modal.js +112 -0
  455. package/dist/Toast/toast.d.ts +20 -0
  456. package/dist/Toast/toast.js +112 -0
  457. package/dist/VerificationCodeInput/demo/base.d.ts +3 -0
  458. package/dist/VerificationCodeInput/demo/base.js +11 -0
  459. package/dist/VerificationCodeInput/index.d.ts +2 -0
  460. package/dist/VerificationCodeInput/index.js +2 -0
  461. package/dist/VerificationCodeInput/style.scss +20 -0
  462. package/dist/VerificationCodeInput/verification-code-input.d.ts +25 -0
  463. package/dist/VerificationCodeInput/verification-code-input.js +99 -0
  464. package/dist/WaterMark/demo/demo1.d.ts +7 -0
  465. package/dist/WaterMark/demo/demo1.js +47 -0
  466. package/dist/WaterMark/demo/demo1.scss +6 -0
  467. package/dist/WaterMark/demo/demo2.d.ts +3 -0
  468. package/dist/WaterMark/demo/demo2.js +31 -0
  469. package/dist/WaterMark/index.d.ts +3 -0
  470. package/dist/WaterMark/index.js +2 -0
  471. package/dist/WaterMark/style.scss +17 -0
  472. package/dist/WaterMark/water-mark.d.ts +22 -0
  473. package/dist/WaterMark/water-mark.js +108 -0
  474. package/dist/index.d.ts +63 -0
  475. package/dist/index.js +46 -0
  476. package/dist/locales/base.d.ts +139 -0
  477. package/dist/locales/base.js +139 -0
  478. package/dist/locales/en-US.d.ts +139 -0
  479. package/dist/locales/en-US.js +4 -0
  480. package/dist/locales/zh-CN.d.ts +3 -0
  481. package/dist/locales/zh-CN.js +140 -0
  482. package/dist/style/index.d.ts +1 -0
  483. package/dist/style/index.js +5 -0
  484. package/dist/style/style.scss +52 -0
  485. package/dist/style/theme-dark.scss +24 -0
  486. package/dist/style/theme-default.scss +54 -0
  487. package/dist/style/variable.scss +167 -0
  488. package/dist/utils/attach-properties-to-component.d.ts +1 -0
  489. package/dist/utils/attach-properties-to-component.js +9 -0
  490. package/dist/utils/bound.d.ts +1 -0
  491. package/dist/utils/bound.js +10 -0
  492. package/dist/utils/can-use-dom.d.ts +1 -0
  493. package/dist/utils/can-use-dom.js +1 -0
  494. package/dist/utils/convert-px.d.ts +1 -0
  495. package/dist/utils/convert-px.js +27 -0
  496. package/dist/utils/dev-log.d.ts +3 -0
  497. package/dist/utils/dev-log.js +36 -0
  498. package/dist/utils/get-container.d.ts +2 -0
  499. package/dist/utils/get-container.js +4 -0
  500. package/dist/utils/get-scroll-parent.d.ts +3 -0
  501. package/dist/utils/get-scroll-parent.js +23 -0
  502. package/dist/utils/is-dev.d.ts +1 -0
  503. package/dist/utils/is-dev.js +1 -0
  504. package/dist/utils/lang.d.ts +1 -0
  505. package/dist/utils/lang.js +1 -0
  506. package/dist/utils/matrix.d.ts +10 -0
  507. package/dist/utils/matrix.js +37 -0
  508. package/dist/utils/merge-locale.d.ts +1 -0
  509. package/dist/utils/merge-locale.js +16 -0
  510. package/dist/utils/native-props.d.ts +10 -0
  511. package/dist/utils/native-props.js +39 -0
  512. package/dist/utils/reactNode.d.ts +7 -0
  513. package/dist/utils/reactNode.js +13 -0
  514. package/dist/utils/render-imperatively.d.ts +14 -0
  515. package/dist/utils/render-imperatively.js +105 -0
  516. package/dist/utils/render-to-body.d.ts +2 -0
  517. package/dist/utils/render-to-body.js +13 -0
  518. package/dist/utils/render-to-container.d.ts +3 -0
  519. package/dist/utils/render-to-container.js +10 -0
  520. package/dist/utils/render.d.ts +9 -0
  521. package/dist/utils/render.js +87 -0
  522. package/dist/utils/rubberband.d.ts +2 -0
  523. package/dist/utils/rubberband.js +11 -0
  524. package/dist/utils/should-render.d.ts +10 -0
  525. package/dist/utils/should-render.js +12 -0
  526. package/dist/utils/supports-passive.d.ts +1 -0
  527. package/dist/utils/supports-passive.js +13 -0
  528. package/dist/utils/taro-utils.d.ts +1 -0
  529. package/dist/utils/taro-utils.js +6 -0
  530. package/dist/utils/to-css-length.d.ts +1 -0
  531. package/dist/utils/to-css-length.js +3 -0
  532. package/dist/utils/type.d.ts +65 -0
  533. package/dist/utils/type.js +48 -0
  534. package/dist/utils/use-initialized.d.ts +1 -0
  535. package/dist/utils/use-initialized.js +8 -0
  536. package/dist/utils/use-isomorphic-update-layout-effect.d.ts +2 -0
  537. package/dist/utils/use-isomorphic-update-layout-effect.js +2 -0
  538. package/dist/utils/use-lock-scroll.d.ts +2 -0
  539. package/dist/utils/use-lock-scroll.js +81 -0
  540. package/dist/utils/use-mutation-effect.d.ts +3 -0
  541. package/dist/utils/use-mutation-effect.js +26 -0
  542. package/dist/utils/use-props-value.d.ts +8 -0
  543. package/dist/utils/use-props-value.js +22 -0
  544. package/dist/utils/use-resize-effect.d.ts +2 -0
  545. package/dist/utils/use-resize-effect.js +23 -0
  546. package/dist/utils/use-touch.d.ts +17 -0
  547. package/dist/utils/use-touch.js +63 -0
  548. package/dist/utils/validate.d.ts +1 -0
  549. package/dist/utils/validate.js +4 -0
  550. package/dist/utils/with-default-props.d.ts +9 -0
  551. package/dist/utils/with-default-props.js +33 -0
  552. package/dist/utils/with-stop-propagation.d.ts +4 -0
  553. package/dist/utils/with-stop-propagation.js +38 -0
  554. package/dist/utils/zIndex.d.ts +1 -0
  555. package/dist/utils/zIndex.js +4 -0
  556. package/dist/utils/zindexContext.d.ts +3 -0
  557. package/dist/utils/zindexContext.js +6 -0
  558. package/package.json +106 -0
  559. package/readme.md +43 -0
@@ -0,0 +1,85 @@
1
+ @import "../style/variable";
2
+
3
+ $calendarCls: 'triones-antm-calendar';
4
+
5
+ .#{$calendarCls}-grid {
6
+ //display: flex;
7
+ //flex-wrap: wrap;
8
+ display: grid;
9
+ grid-template-columns: repeat(7, 1fr);
10
+ }
11
+
12
+ .#{$calendarCls}-cell {
13
+ aspect-ratio: 1;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: center;
17
+ border-radius: $trionesBorderRadius;
18
+ cursor: default;
19
+ flex-direction: column;
20
+
21
+ &-date {
22
+ display: flex;
23
+ width: 100%;
24
+ justify-content: center;
25
+ align-items: center;
26
+ }
27
+
28
+ &-mouth {
29
+ display: flex;
30
+ width: 100%;
31
+ justify-content: center;
32
+ align-items: center;
33
+ font-size: 8Px;
34
+ }
35
+
36
+ &.#{$calendarCls}-cell {
37
+ &-disabled {
38
+ color: #999999;
39
+ }
40
+
41
+ &-selected {
42
+ background-color: $trionesColorPrimary;
43
+ color: white;
44
+ }
45
+
46
+ &-selected-range {
47
+ border-radius: 0;
48
+ background-color: $trionesColorPrimaryBg;
49
+ color: black;
50
+ }
51
+ }
52
+ }
53
+
54
+ .#{$calendarCls} {
55
+ &-header {
56
+ display: flex;
57
+ justify-content: space-between;
58
+ align-items: center;
59
+
60
+ &-title {
61
+ font-size: 16Px;
62
+ padding: 8Px;
63
+ text-align: center;
64
+ }
65
+
66
+ &-button {
67
+ padding-left: 12Px;
68
+ padding-right: 12Px;
69
+ cursor: pointer;
70
+ }
71
+ }
72
+
73
+ &-week {
74
+ display: grid;
75
+ grid-template-columns: repeat(7, 1fr);
76
+
77
+ &-cell {
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ padding-top: 8Px;
82
+ padding-bottom: 8Px;
83
+ }
84
+ }
85
+ }
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ type CalendarPickerViewProps = {
3
+ mouth?: Date;
4
+ value?: Date[];
5
+ defaultValue?: Date[];
6
+ onChange?: (value: Date[]) => void;
7
+ onMouthChange?: (mouth: Date) => void;
8
+ range?: boolean;
9
+ };
10
+ /**
11
+ * 可以手势滑动的日历组件
12
+ */
13
+ export declare const TouchableCalendarGrid: FC<CalendarPickerViewProps>;
14
+ export {};
@@ -0,0 +1,425 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
7
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
8
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
+ import React, { memo, useEffect, useRef, useState } from 'react';
16
+ import Taro from '@tarojs/taro';
17
+ import { CalendarGrid } from "../Calendar";
18
+ import { checkTaroEnv } from "../utils/taro-utils";
19
+ /**
20
+ * 可以手势滑动的日历组件
21
+ */
22
+ export var TouchableCalendarGrid = /*#__PURE__*/memo(function (_ref) {
23
+ var _wrapperRef$current5;
24
+ var _ref$mouth = _ref.mouth,
25
+ mouth = _ref$mouth === void 0 ? new Date() : _ref$mouth,
26
+ value = _ref.value,
27
+ defaultValue = _ref.defaultValue,
28
+ onChange = _ref.onChange,
29
+ onMouthChange = _ref.onMouthChange,
30
+ range = _ref.range;
31
+ var isTaroEnv = checkTaroEnv();
32
+ var wrapperRef = useRef();
33
+ var _useState = useState(mouth),
34
+ _useState2 = _slicedToArray(_useState, 2),
35
+ currentMouth = _useState2[0],
36
+ setCurrentMouth = _useState2[1];
37
+ var waiting = false;
38
+ var _useState3 = useState(200),
39
+ _useState4 = _slicedToArray(_useState3, 2),
40
+ mouthHeight = _useState4[0],
41
+ setMouthHeight = _useState4[1]; //当前选中的月份的展示高度
42
+ var _useState5 = useState(false),
43
+ _useState6 = _slicedToArray(_useState5, 2),
44
+ touching = _useState6[0],
45
+ setTouching = _useState6[1]; //是否正在滑动
46
+ var _React$useState = React.useState(),
47
+ _React$useState2 = _slicedToArray(_React$useState, 2),
48
+ touchStartPoint = _React$useState2[0],
49
+ setTouchStartPoint = _React$useState2[1]; //触摸点
50
+ var _React$useState3 = React.useState(),
51
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
52
+ touchPoint = _React$useState4[0],
53
+ setTouchPoint = _React$useState4[1]; //触摸点
54
+ var _useState7 = useState(0),
55
+ _useState8 = _slicedToArray(_useState7, 2),
56
+ translateY = _useState8[0],
57
+ setTranslateY = _useState8[1];
58
+ var _useState9 = useState([]),
59
+ _useState10 = _slicedToArray(_useState9, 2),
60
+ mouths = _useState10[0],
61
+ setMouths = _useState10[1];
62
+
63
+ /**
64
+ * 计算出每个格子的大小
65
+ */
66
+ var cellSize = /*#__PURE__*/function () {
67
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
68
+ var _wrapperRef$current2;
69
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
70
+ while (1) switch (_context.prev = _context.next) {
71
+ case 0:
72
+ if (!isTaroEnv) {
73
+ _context.next = 4;
74
+ break;
75
+ }
76
+ _context.next = 3;
77
+ return new Promise(function (resolve) {
78
+ var _wrapperRef$current;
79
+ return Taro.createSelectorQuery().select("#".concat((_wrapperRef$current = wrapperRef.current) === null || _wrapperRef$current === void 0 ? void 0 : _wrapperRef$current.uid)).boundingClientRect().exec(function (res) {
80
+ var _res$;
81
+ return resolve((res === null || res === void 0 || (_res$ = res[0]) === null || _res$ === void 0 ? void 0 : _res$.width) / 7);
82
+ });
83
+ });
84
+ case 3:
85
+ return _context.abrupt("return", _context.sent);
86
+ case 4:
87
+ return _context.abrupt("return", Promise.resolve(((_wrapperRef$current2 = wrapperRef.current) === null || _wrapperRef$current2 === void 0 ? void 0 : _wrapperRef$current2.clientWidth) / 7));
88
+ case 5:
89
+ case "end":
90
+ return _context.stop();
91
+ }
92
+ }, _callee);
93
+ }));
94
+ return function cellSize() {
95
+ return _ref2.apply(this, arguments);
96
+ };
97
+ }();
98
+ /**
99
+ * 计算出最大的translateY,默认为wrapperRef.current?.clientHeight
100
+ */
101
+ var minTranslateY = /*#__PURE__*/function () {
102
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
103
+ var _wrapperRef$current4;
104
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
105
+ while (1) switch (_context2.prev = _context2.next) {
106
+ case 0:
107
+ if (!isTaroEnv) {
108
+ _context2.next = 4;
109
+ break;
110
+ }
111
+ _context2.next = 3;
112
+ return new Promise(function (resolve) {
113
+ var _wrapperRef$current3;
114
+ Taro.createSelectorQuery().select("#".concat((_wrapperRef$current3 = wrapperRef.current) === null || _wrapperRef$current3 === void 0 ? void 0 : _wrapperRef$current3.uid)).boundingClientRect().exec(function (res) {
115
+ var _res$2;
116
+ return resolve(res === null || res === void 0 || (_res$2 = res[0]) === null || _res$2 === void 0 ? void 0 : _res$2.height);
117
+ });
118
+ });
119
+ case 3:
120
+ return _context2.abrupt("return", _context2.sent);
121
+ case 4:
122
+ return _context2.abrupt("return", Promise.resolve((_wrapperRef$current4 = wrapperRef.current) === null || _wrapperRef$current4 === void 0 ? void 0 : _wrapperRef$current4.clientHeight));
123
+ case 5:
124
+ case "end":
125
+ return _context2.stop();
126
+ }
127
+ }, _callee2);
128
+ }));
129
+ return function minTranslateY() {
130
+ return _ref3.apply(this, arguments);
131
+ };
132
+ }();
133
+
134
+ /**
135
+ * 计算出该月的行数
136
+ * @param mouth
137
+ */
138
+ var mouthLines = function mouthLines(mouth) {
139
+ var firstDate = new Date(mouth.getFullYear(), mouth.getMonth(), 1);
140
+ var lastDate = new Date(mouth.getFullYear(), mouth.getMonth() + 1, 0);
141
+ var beforeDays = firstDate.getDay();
142
+ var afterDays = 6 - lastDate.getDay();
143
+ var countDays = beforeDays + lastDate.getDate() + afterDays;
144
+ return Math.ceil(countDays / 7);
145
+ };
146
+ var handleInsertMouth = /*#__PURE__*/function () {
147
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
148
+ var firstMouth, insertMouth, newMouths, insertMouthLines, insertMouthHeight;
149
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
150
+ while (1) switch (_context3.prev = _context3.next) {
151
+ case 0:
152
+ // if (waiting){
153
+ // return
154
+ // }
155
+ // debugger
156
+ // waiting = true
157
+ firstMouth = mouths[0];
158
+ insertMouth = new Date(firstMouth.getFullYear(), firstMouth.getMonth() - 1, 1);
159
+ newMouths = [insertMouth].concat(_toConsumableArray(mouths));
160
+ setMouths(newMouths);
161
+ insertMouthLines = mouthLines(insertMouth);
162
+ _context3.t0 = insertMouthLines;
163
+ _context3.next = 8;
164
+ return cellSize();
165
+ case 8:
166
+ _context3.t1 = _context3.sent;
167
+ insertMouthHeight = _context3.t0 * _context3.t1;
168
+ setTranslateY(translateY - insertMouthHeight);
169
+ // waiting = false
170
+ case 11:
171
+ case "end":
172
+ return _context3.stop();
173
+ }
174
+ }, _callee3);
175
+ }));
176
+ return function handleInsertMouth() {
177
+ return _ref4.apply(this, arguments);
178
+ };
179
+ }();
180
+ var handleAppendMouth = function handleAppendMouth() {
181
+ // if (waiting){
182
+ // return
183
+ // }
184
+ // waiting = true
185
+ var lastMouth = mouths[mouths.length - 1];
186
+ var appendMouth = new Date(lastMouth.getFullYear(), lastMouth.getMonth() + 1, 1);
187
+ var newMouths = [].concat(_toConsumableArray(mouths), [appendMouth]);
188
+ setMouths(newMouths);
189
+ // waiting = false
190
+ };
191
+ useEffect(function () {
192
+ var initMouths = [new Date(currentMouth.getFullYear(), currentMouth.getMonth() - 1, 1), new Date(currentMouth.getFullYear(), currentMouth.getMonth(), 1), new Date(currentMouth.getFullYear(), currentMouth.getMonth() + 1, 1)];
193
+ Promise.all([]).then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
194
+ var firstMouthHeight;
195
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
196
+ while (1) switch (_context4.prev = _context4.next) {
197
+ case 0:
198
+ setMouths(initMouths);
199
+ _context4.t0 = setMouthHeight;
200
+ _context4.t1 = mouthLines(currentMouth);
201
+ _context4.next = 5;
202
+ return cellSize();
203
+ case 5:
204
+ _context4.t2 = _context4.sent;
205
+ _context4.t3 = _context4.t1 * _context4.t2;
206
+ (0, _context4.t0)(_context4.t3);
207
+ _context4.t4 = mouthLines(initMouths[0]);
208
+ _context4.next = 11;
209
+ return cellSize();
210
+ case 11:
211
+ _context4.t5 = _context4.sent;
212
+ firstMouthHeight = _context4.t4 * _context4.t5;
213
+ setTranslateY(0 - firstMouthHeight);
214
+ case 14:
215
+ case "end":
216
+ return _context4.stop();
217
+ }
218
+ }, _callee4);
219
+ })));
220
+ }, [currentMouth]);
221
+ useEffect(function () {
222
+ if (mouth !== undefined) {
223
+ if (mouth !== currentMouth) {
224
+ setCurrentMouth(mouth);
225
+ }
226
+ }
227
+ }, [mouth]);
228
+ return /*#__PURE__*/React.createElement("div", {
229
+ style: {
230
+ boxSizing: 'border-box',
231
+ overflow: 'hidden',
232
+ height: mouthHeight
233
+ }
234
+ }, /*#__PURE__*/React.createElement("div", {
235
+ ref: wrapperRef,
236
+ id: (_wrapperRef$current5 = wrapperRef.current) === null || _wrapperRef$current5 === void 0 ? void 0 : _wrapperRef$current5.uid,
237
+ style: {
238
+ transform: "translate3d(0, ".concat(translateY, "px, 0)")
239
+ },
240
+ onTouchStart: function onTouchStart(event) {
241
+ event.preventDefault();
242
+ event.stopPropagation();
243
+ setTouching(true);
244
+ var startPoint = {
245
+ clientX: event.touches[0].clientX,
246
+ clientY: event.touches[0].clientY
247
+ };
248
+ setTouchStartPoint(startPoint);
249
+ setTouchPoint(startPoint);
250
+ },
251
+ onTouchMove: ( /*#__PURE__*/function () {
252
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(event) {
253
+ var movePoint, newTranslateY;
254
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
255
+ while (1) switch (_context5.prev = _context5.next) {
256
+ case 0:
257
+ event.preventDefault();
258
+ event.stopPropagation();
259
+ if (!touching) {
260
+ _context5.next = 33;
261
+ break;
262
+ }
263
+ movePoint = {
264
+ clientX: event.touches[0].clientX,
265
+ clientY: event.touches[0].clientY
266
+ };
267
+ _context5.t0 = translateY > 0;
268
+ if (_context5.t0) {
269
+ _context5.next = 12;
270
+ break;
271
+ }
272
+ _context5.t1 = translateY;
273
+ _context5.next = 9;
274
+ return minTranslateY();
275
+ case 9:
276
+ _context5.t2 = _context5.sent;
277
+ _context5.t3 = 0 - _context5.t2;
278
+ _context5.t0 = _context5.t1 < _context5.t3;
279
+ case 12:
280
+ if (!_context5.t0) {
281
+ _context5.next = 14;
282
+ break;
283
+ }
284
+ return _context5.abrupt("return");
285
+ case 14:
286
+ console.log("move", movePoint.clientY - touchPoint.clientY);
287
+ newTranslateY = translateY + (movePoint.clientY - touchPoint.clientY);
288
+ setTranslateY(newTranslateY);
289
+ setTouchPoint(movePoint);
290
+ // console.log(newTranslateY,minTranslateY())
291
+ if (!(newTranslateY > -10)) {
292
+ _context5.next = 24;
293
+ break;
294
+ }
295
+ //当向下滑动,顶部距离视窗顶部距离小于10,则插入上一个月份
296
+ console.log("insert");
297
+ _context5.next = 22;
298
+ return handleInsertMouth();
299
+ case 22:
300
+ _context5.next = 33;
301
+ break;
302
+ case 24:
303
+ _context5.t4 = newTranslateY;
304
+ _context5.next = 27;
305
+ return minTranslateY();
306
+ case 27:
307
+ _context5.t5 = _context5.sent;
308
+ _context5.t6 = 0 - _context5.t5;
309
+ _context5.t7 = _context5.t6 + 10;
310
+ if (!(_context5.t4 < _context5.t7)) {
311
+ _context5.next = 33;
312
+ break;
313
+ }
314
+ //当向下滑动,底部距离视窗底部距离小于10,则追加下一个月份
315
+ console.log("append");
316
+ handleAppendMouth();
317
+ case 33:
318
+ case "end":
319
+ return _context5.stop();
320
+ }
321
+ }, _callee5);
322
+ }));
323
+ return function (_x) {
324
+ return _ref6.apply(this, arguments);
325
+ };
326
+ }()),
327
+ onTouchEnd: ( /*#__PURE__*/function () {
328
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(event) {
329
+ var displayMouth, _mouthHeightSum, i, _mouthHeight, _topLineY, _windowDisplayHeight, _bottomLineY, _windowDisplayHeight2;
330
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
331
+ while (1) switch (_context6.prev = _context6.next) {
332
+ case 0:
333
+ setTouching(false);
334
+ if (!(Math.abs(Math.abs(touchStartPoint.clientY) - Math.abs(touchPoint.clientY)) < 5)) {
335
+ _context6.next = 3;
336
+ break;
337
+ }
338
+ return _context6.abrupt("return");
339
+ case 3:
340
+ console.log(mouths);
341
+ //region 判断当前月份是否在视窗内
342
+ _mouthHeightSum = 0;
343
+ i = 0;
344
+ case 6:
345
+ if (!(i < mouths.length)) {
346
+ _context6.next = 40;
347
+ break;
348
+ }
349
+ console.log("mouthHeight", mouthHeight);
350
+ console.log("mouths[i]", mouths[i], i);
351
+ _context6.t0 = mouthLines(mouths[i]);
352
+ _context6.next = 12;
353
+ return cellSize();
354
+ case 12:
355
+ _context6.t1 = _context6.sent;
356
+ _mouthHeight = _context6.t0 * _context6.t1;
357
+ _mouthHeightSum += _mouthHeight;
358
+ console.log("_mouthHeightSum", _mouthHeightSum);
359
+ console.log("translateY", translateY);
360
+ _topLineY = 0 - (_mouthHeightSum - _mouthHeight); //该月份区域顶部,对于顶点的偏移量
361
+ console.log("_topLineY", _topLineY);
362
+ if (!(_topLineY <= translateY && _topLineY >= translateY - mouthHeight)) {
363
+ _context6.next = 27;
364
+ break;
365
+ }
366
+ //该月份区域的顶部在视窗内
367
+ console.log("top_in");
368
+ _windowDisplayHeight = _mouthHeightSum - (0 - translateY); //该月份区域底部距离视窗顶部的距离
369
+ console.log("_windowDisplayHeight——top", _windowDisplayHeight);
370
+ if (!(_windowDisplayHeight >= mouthHeight / 2)) {
371
+ _context6.next = 27;
372
+ break;
373
+ }
374
+ console.log("displayMouth", mouths[i]);
375
+ displayMouth = mouths[i];
376
+ return _context6.abrupt("break", 40);
377
+ case 27:
378
+ _bottomLineY = 0 - _mouthHeightSum; //该月份区域底部,对于顶点的偏移量
379
+ console.log("_bottomLineY", _bottomLineY);
380
+ if (!(_bottomLineY <= translateY && _bottomLineY >= translateY - mouthHeight)) {
381
+ _context6.next = 37;
382
+ break;
383
+ }
384
+ //该月份区域的底部在视窗内
385
+ console.log("bottom_in");
386
+ _windowDisplayHeight2 = _mouthHeightSum - (0 - translateY); //该月份区域底部距离视窗顶部的距离
387
+ console.log("_windowDisplayHeight-bottom", _windowDisplayHeight2);
388
+ if (!(_windowDisplayHeight2 >= mouthHeight / 2)) {
389
+ _context6.next = 37;
390
+ break;
391
+ }
392
+ console.log("displayMouth", mouths[i]);
393
+ displayMouth = mouths[i];
394
+ return _context6.abrupt("break", 40);
395
+ case 37:
396
+ i++;
397
+ _context6.next = 6;
398
+ break;
399
+ case 40:
400
+ //endregion
401
+ if (displayMouth) {
402
+ setCurrentMouth(displayMouth);
403
+ onMouthChange === null || onMouthChange === void 0 || onMouthChange(displayMouth);
404
+ }
405
+ case 41:
406
+ case "end":
407
+ return _context6.stop();
408
+ }
409
+ }, _callee6);
410
+ }));
411
+ return function (_x2) {
412
+ return _ref7.apply(this, arguments);
413
+ };
414
+ }())
415
+ }, mouths.map(function (mouth, index) {
416
+ return /*#__PURE__*/React.createElement(CalendarGrid, {
417
+ key: index,
418
+ mouth: mouth,
419
+ value: value,
420
+ defaultValue: defaultValue,
421
+ onChange: onChange,
422
+ range: range
423
+ });
424
+ })));
425
+ });
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import "./style.scss";
3
+ import { CalendarPickerProps } from "./types";
4
+ export declare const CalendarPicker: FC<CalendarPickerProps>;
@@ -0,0 +1,87 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { memo, useEffect, useRef } from "react";
8
+ import Popup from "../Popup";
9
+ import classNames from "classnames";
10
+ import Calendar from "../Calendar";
11
+ import "./style.scss";
12
+ import { useConfig } from "../ConfigProvider";
13
+ var cls = 'triones-antm-calendar-picker';
14
+ export var CalendarPicker = /*#__PURE__*/memo(function (_ref) {
15
+ var mouth = _ref.mouth,
16
+ open = _ref.open,
17
+ title = _ref.title,
18
+ afterOpenChange = _ref.afterOpenChange,
19
+ value = _ref.value,
20
+ onOk = _ref.onOk,
21
+ onCancel = _ref.onCancel,
22
+ onClose = _ref.onClose;
23
+ var _useConfig = useConfig(),
24
+ locale = _useConfig.locale;
25
+ var _React$useState = React.useState(open || false),
26
+ _React$useState2 = _slicedToArray(_React$useState, 2),
27
+ innerOpen = _React$useState2[0],
28
+ setInnerOpen = _React$useState2[1];
29
+ var valueRef = useRef();
30
+ var handleClose = function handleClose() {
31
+ setInnerOpen(false);
32
+ onClose === null || onClose === void 0 || onClose();
33
+ };
34
+ var handleOk = function handleOk() {
35
+ onOk === null || onOk === void 0 || onOk(valueRef.current);
36
+ handleClose();
37
+ };
38
+ var handelCancel = function handelCancel() {
39
+ onCancel === null || onCancel === void 0 || onCancel();
40
+ handleClose();
41
+ };
42
+ useEffect(function () {
43
+ afterOpenChange === null || afterOpenChange === void 0 || afterOpenChange(innerOpen);
44
+ }, [innerOpen]);
45
+ useEffect(function () {
46
+ if (value !== undefined) {
47
+ if (value !== valueRef.current) {
48
+ valueRef.current = value;
49
+ }
50
+ }
51
+ }, [value]);
52
+ useEffect(function () {
53
+ if (open === undefined) {
54
+ return;
55
+ }
56
+ if (open === innerOpen) {
57
+ return;
58
+ }
59
+ setInnerOpen(open);
60
+ }, [open]);
61
+ return /*#__PURE__*/React.createElement(Popup, {
62
+ open: innerOpen,
63
+ afterOpenChange: function afterOpenChange(o) {
64
+ setInnerOpen(o);
65
+ }
66
+ }, /*#__PURE__*/React.createElement("div", {
67
+ className: classNames("".concat(cls))
68
+ }, /*#__PURE__*/React.createElement("div", {
69
+ className: classNames("".concat(cls, "-header"))
70
+ }, /*#__PURE__*/React.createElement("a", {
71
+ className: classNames("".concat(cls, "-header-button")),
72
+ onClick: handelCancel
73
+ }, locale.common.cancel), title && /*#__PURE__*/React.createElement("div", {
74
+ className: classNames("".concat(cls, "-header-title"))
75
+ }, title), /*#__PURE__*/React.createElement("a", {
76
+ className: classNames("".concat(cls, "-header-button")),
77
+ onClick: handleOk
78
+ }, locale.common.confirm)), /*#__PURE__*/React.createElement("div", {
79
+ className: classNames("".concat(cls, "-body"))
80
+ }, /*#__PURE__*/React.createElement(Calendar, {
81
+ mouth: mouth,
82
+ value: value,
83
+ onChange: function onChange(date) {
84
+ valueRef.current = date;
85
+ }
86
+ }))));
87
+ });
@@ -0,0 +1,4 @@
1
+ import { FC } from "react";
2
+ import "./style.scss";
3
+ import { CalendarPickerRangeProps } from "./types";
4
+ export declare const CalendarRangePicker: FC<CalendarPickerRangeProps>;