tntd 2.6.7 → 2.7.0

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 (812) hide show
  1. package/es/_util/colors.js +3 -0
  2. package/es/_util/colors.js.map +1 -0
  3. package/es/_util/easings.js +9 -0
  4. package/es/_util/easings.js.map +1 -0
  5. package/es/_util/getDataOrAriaProps.js +8 -0
  6. package/es/_util/getDataOrAriaProps.js.map +1 -0
  7. package/es/_util/getScroll.js +14 -0
  8. package/es/_util/getScroll.js.map +1 -0
  9. package/es/_util/interopDefault.js +5 -0
  10. package/es/_util/interopDefault.js.map +1 -0
  11. package/es/_util/isNumeric.js +4 -0
  12. package/es/_util/isNumeric.js.map +1 -0
  13. package/es/_util/motion.js +22 -0
  14. package/es/_util/motion.js.map +1 -0
  15. package/es/_util/openAnimation.js +51 -0
  16. package/es/_util/openAnimation.js.map +1 -0
  17. package/es/_util/raf.js +25 -0
  18. package/es/_util/raf.js.map +1 -0
  19. package/es/_util/reactNode.js +6 -0
  20. package/es/_util/reactNode.js.map +1 -0
  21. package/es/_util/ref.js +15 -0
  22. package/es/_util/ref.js.map +1 -0
  23. package/es/_util/responsiveObserve.js +82 -0
  24. package/es/_util/responsiveObserve.js.map +1 -0
  25. package/es/_util/scrollTo.js +29 -0
  26. package/es/_util/scrollTo.js.map +1 -0
  27. package/es/_util/styleChecker.js +12 -0
  28. package/es/_util/styleChecker.js.map +1 -0
  29. package/es/_util/throttleByAnimationFrame.js +40 -0
  30. package/es/_util/throttleByAnimationFrame.js.map +1 -0
  31. package/es/_util/transButton.js +103 -0
  32. package/es/_util/transButton.js.map +1 -0
  33. package/es/_util/triggerEvent.js +8 -0
  34. package/es/_util/triggerEvent.js.map +1 -0
  35. package/es/_util/type.js +3 -0
  36. package/es/_util/type.js.map +1 -0
  37. package/es/_util/warning.js +5 -0
  38. package/es/_util/warning.js.map +1 -0
  39. package/es/_util/wave.js +228 -0
  40. package/es/_util/wave.js.map +1 -0
  41. package/es/affix/index.js +1 -2
  42. package/es/alert/index.js +1 -2
  43. package/es/anchor/index.js +1 -2
  44. package/es/array-input/icon.js +24 -6
  45. package/es/array-input/index.js +203 -119
  46. package/es/auth-context/index.js +1 -2
  47. package/es/auto-complete/index.js +1 -2
  48. package/es/avatar/index.js +1 -2
  49. package/es/back-top/index.js +1 -2
  50. package/es/badge/index.js +1 -2
  51. package/es/breadcrumb/index.js +1 -2
  52. package/es/button/index.js +1 -2
  53. package/es/calendar/index.js +1 -2
  54. package/es/card/index.js +1 -2
  55. package/es/carousel/index.js +1 -2
  56. package/es/cascader/index.js +6 -3
  57. package/es/cascader/index.js.map +1 -1
  58. package/es/checkbox/checkbox-group.js +5 -0
  59. package/es/checkbox/checkbox-group.js.map +1 -0
  60. package/es/checkbox/index.js +6 -2
  61. package/es/checkbox/index.js.map +1 -1
  62. package/es/col/index.js +1 -2
  63. package/es/collapse/index.js +1 -2
  64. package/es/color-picker/ColorPicker.js +126 -80
  65. package/es/color-picker/index.js +8 -5
  66. package/es/columns/index.js +66 -30
  67. package/es/columns/style/index.js +1 -2
  68. package/es/comment/index.js +1 -2
  69. package/es/config-provider/DisabledContext.js +12 -0
  70. package/es/config-provider/DisabledContext.js.map +1 -0
  71. package/es/config-provider/SizeContext.js +9 -0
  72. package/es/config-provider/SizeContext.js.map +1 -0
  73. package/es/config-provider/config-provider.js +1 -2
  74. package/es/config-provider/context.js +41 -0
  75. package/es/config-provider/context.js.map +1 -0
  76. package/es/config-provider/index.js +4 -0
  77. package/es/config-provider/index.js.map +1 -1
  78. package/es/connect/index.js +26 -0
  79. package/es/connect/index.js.map +1 -0
  80. package/es/date-picker/index.js +11 -1
  81. package/es/date-picker/index.js.map +1 -1
  82. package/es/input/input.js +37 -25
  83. package/es/input/input.js.map +1 -1
  84. package/es/input-number/index.js +3 -1
  85. package/es/input-number/index.js.map +1 -1
  86. package/es/preview-text/index.js +195 -0
  87. package/es/preview-text/index.js.map +1 -0
  88. package/es/preview-text/index.less +3 -0
  89. package/es/query-form/index.js.map +1 -1
  90. package/es/radio/index.js +3 -0
  91. package/es/radio/index.js.map +1 -1
  92. package/es/radio/radio-group.js +6 -0
  93. package/es/radio/radio-group.js.map +1 -0
  94. package/es/select/index.js.map +1 -1
  95. package/es/select/select.js +17 -5
  96. package/es/select/select.js.map +1 -1
  97. package/es/switch/index.js +2 -3
  98. package/es/switch/index.js.map +1 -1
  99. package/es/switch/switch.js +9 -0
  100. package/es/switch/switch.js.map +1 -0
  101. package/es/table/table.less +2 -0
  102. package/es/time-picker/index.js +3 -1
  103. package/es/time-picker/index.js.map +1 -1
  104. package/es/tntd-form/ErrorList.js +53 -0
  105. package/es/tntd-form/ErrorList.js.map +1 -0
  106. package/es/tntd-form/Form.js +101 -0
  107. package/es/tntd-form/Form.js.map +1 -0
  108. package/es/tntd-form/FormItem/ItemHolder.js +135 -0
  109. package/es/tntd-form/FormItem/ItemHolder.js.map +1 -0
  110. package/es/tntd-form/FormItem/index.js +238 -0
  111. package/es/tntd-form/FormItem/index.js.map +1 -0
  112. package/es/tntd-form/FormItemInput.js +38 -0
  113. package/es/tntd-form/FormItemInput.js.map +1 -0
  114. package/es/tntd-form/FormItemLabel.js +73 -0
  115. package/es/tntd-form/FormItemLabel.js.map +1 -0
  116. package/es/tntd-form/FormList.js +34 -0
  117. package/es/tntd-form/FormList.js.map +1 -0
  118. package/es/tntd-form/TntdForm/components/ItemComp.js +2 -2
  119. package/es/tntd-form/TntdForm/components/ItemComp.js.map +1 -1
  120. package/es/tntd-form/__tests__/demo-extend.test.js +3 -0
  121. package/es/tntd-form/__tests__/demo-extend.test.js.map +1 -0
  122. package/es/tntd-form/__tests__/demo.test.js +3 -0
  123. package/es/tntd-form/__tests__/demo.test.js.map +1 -0
  124. package/es/tntd-form/__tests__/image.test.js +5 -0
  125. package/es/tntd-form/__tests__/image.test.js.map +1 -0
  126. package/es/tntd-form/__tests__/index.test.js +957 -0
  127. package/es/tntd-form/__tests__/index.test.js.map +1 -0
  128. package/es/tntd-form/__tests__/list-noStyle.test.js +41 -0
  129. package/es/tntd-form/__tests__/list-noStyle.test.js.map +1 -0
  130. package/es/tntd-form/__tests__/list.test.js +164 -0
  131. package/es/tntd-form/__tests__/list.test.js.map +1 -0
  132. package/es/tntd-form/__tests__/ref.test.js +45 -0
  133. package/es/tntd-form/__tests__/ref.test.js.map +1 -0
  134. package/es/tntd-form/__tests__/type.test.js +74 -0
  135. package/es/tntd-form/__tests__/type.test.js.map +1 -0
  136. package/es/tntd-form/_util/motion.js +38 -0
  137. package/es/tntd-form/_util/motion.js.map +1 -0
  138. package/es/tntd-form/_util/reactNode.js +15 -0
  139. package/es/tntd-form/_util/reactNode.js.map +1 -0
  140. package/es/tntd-form/_util/scrollTo.js +35 -0
  141. package/es/tntd-form/_util/scrollTo.js.map +1 -0
  142. package/es/tntd-form/_util/type.js +4 -0
  143. package/es/tntd-form/_util/type.js.map +1 -0
  144. package/es/tntd-form/_util/warning.js +6 -0
  145. package/es/tntd-form/_util/warning.js.map +1 -0
  146. package/es/tntd-form/_util/wave.js +168 -0
  147. package/es/tntd-form/_util/wave.js.map +1 -0
  148. package/es/tntd-form/context.js +35 -0
  149. package/es/tntd-form/context.js.map +1 -0
  150. package/es/tntd-form/hooks/useDebounce.js +14 -0
  151. package/es/tntd-form/hooks/useDebounce.js.map +1 -0
  152. package/es/tntd-form/hooks/useForm.js +35 -0
  153. package/es/tntd-form/hooks/useForm.js.map +1 -0
  154. package/es/tntd-form/hooks/useFormInstance.js +7 -0
  155. package/es/tntd-form/hooks/useFormInstance.js.map +1 -0
  156. package/es/tntd-form/hooks/useFormItemStatus.js +10 -0
  157. package/es/tntd-form/hooks/useFormItemStatus.js.map +1 -0
  158. package/es/tntd-form/hooks/useFrameState.js +38 -0
  159. package/es/tntd-form/hooks/useFrameState.js.map +1 -0
  160. package/es/tntd-form/hooks/useItemRef.js +19 -0
  161. package/es/tntd-form/hooks/useItemRef.js.map +1 -0
  162. package/es/tntd-form/index.js +17 -1
  163. package/es/tntd-form/index.js.map +1 -1
  164. package/es/tntd-form/interface.js +3 -0
  165. package/es/tntd-form/interface.js.map +1 -0
  166. package/es/tntd-form/style/components.less +16 -0
  167. package/es/tntd-form/style/horizontal.less +26 -0
  168. package/es/tntd-form/style/index.js +6 -0
  169. package/es/tntd-form/style/index.js.map +1 -0
  170. package/es/tntd-form/style/index.less +342 -0
  171. package/es/tntd-form/style/inline.less +40 -0
  172. package/es/tntd-form/style/mixin.less +90 -0
  173. package/es/tntd-form/style/rtl.less +204 -0
  174. package/es/tntd-form/style/status.less +45 -0
  175. package/es/tntd-form/style/vertical.less +95 -0
  176. package/es/tntd-form/tntd-form.stories.js +426 -0
  177. package/es/tntd-form/tntd-form.stories.js.map +1 -0
  178. package/es/tntd-form/util.js +21 -0
  179. package/es/tntd-form/util.js.map +1 -0
  180. package/es/tntd-form/validateMessagesContext.js +6 -0
  181. package/es/tntd-form/validateMessagesContext.js.map +1 -0
  182. package/es/tree-select/index.js +4 -1
  183. package/es/tree-select/index.js.map +1 -1
  184. package/es/upload/index.js +6 -1
  185. package/es/upload/index.js.map +1 -1
  186. package/lib/_util/colors.d.ts +3 -0
  187. package/lib/_util/colors.d.ts.map +1 -0
  188. package/lib/_util/colors.js +7 -0
  189. package/lib/_util/colors.js.map +1 -0
  190. package/lib/_util/easings.d.ts +2 -0
  191. package/lib/_util/easings.d.ts.map +1 -0
  192. package/lib/_util/easings.js +14 -0
  193. package/lib/_util/easings.js.map +1 -0
  194. package/lib/_util/getDataOrAriaProps.d.ts +2 -0
  195. package/lib/_util/getDataOrAriaProps.d.ts.map +1 -0
  196. package/lib/_util/getDataOrAriaProps.js +13 -0
  197. package/lib/_util/getDataOrAriaProps.js.map +1 -0
  198. package/lib/_util/getScroll.d.ts +2 -0
  199. package/lib/_util/getScroll.d.ts.map +1 -0
  200. package/lib/_util/getScroll.js +18 -0
  201. package/lib/_util/getScroll.js.map +1 -0
  202. package/lib/_util/interopDefault.d.ts +2 -0
  203. package/lib/_util/interopDefault.d.ts.map +1 -0
  204. package/lib/_util/interopDefault.js +9 -0
  205. package/lib/_util/interopDefault.js.map +1 -0
  206. package/lib/_util/isNumeric.d.ts +3 -0
  207. package/lib/_util/isNumeric.d.ts.map +1 -0
  208. package/lib/_util/isNumeric.js +7 -0
  209. package/lib/_util/isNumeric.js.map +1 -0
  210. package/lib/_util/motion.d.ts +24 -0
  211. package/lib/_util/motion.d.ts.map +1 -0
  212. package/lib/_util/motion.js +17 -0
  213. package/lib/_util/motion.js.map +1 -0
  214. package/lib/_util/openAnimation.d.ts +7 -0
  215. package/lib/_util/openAnimation.d.ts.map +1 -0
  216. package/lib/_util/openAnimation.js +58 -0
  217. package/lib/_util/openAnimation.js.map +1 -0
  218. package/lib/_util/raf.d.ts +10 -0
  219. package/lib/_util/raf.d.ts.map +1 -0
  220. package/lib/_util/raf.js +34 -0
  221. package/lib/_util/raf.js.map +1 -0
  222. package/lib/_util/reactNode.d.ts +3 -0
  223. package/lib/_util/reactNode.d.ts.map +1 -0
  224. package/lib/_util/reactNode.js +31 -0
  225. package/lib/_util/reactNode.js.map +1 -0
  226. package/lib/_util/ref.d.ts +4 -0
  227. package/lib/_util/ref.d.ts.map +1 -0
  228. package/lib/_util/ref.js +22 -0
  229. package/lib/_util/ref.js.map +1 -0
  230. package/lib/_util/responsiveObserve.d.ts +14 -0
  231. package/lib/_util/responsiveObserve.d.ts.map +1 -0
  232. package/lib/_util/responsiveObserve.js +83 -0
  233. package/lib/_util/responsiveObserve.js.map +1 -0
  234. package/lib/_util/scrollTo.d.ts +11 -0
  235. package/lib/_util/scrollTo.d.ts.map +1 -0
  236. package/lib/_util/scrollTo.js +34 -0
  237. package/lib/_util/scrollTo.js.map +1 -0
  238. package/lib/_util/styleChecker.d.ts +4 -0
  239. package/lib/_util/styleChecker.d.ts.map +1 -0
  240. package/lib/_util/styleChecker.js +14 -0
  241. package/lib/_util/styleChecker.js.map +1 -0
  242. package/lib/_util/throttleByAnimationFrame.d.ts +6 -0
  243. package/lib/_util/throttleByAnimationFrame.d.ts.map +1 -0
  244. package/lib/_util/throttleByAnimationFrame.js +49 -0
  245. package/lib/_util/throttleByAnimationFrame.js.map +1 -0
  246. package/lib/_util/transButton.d.ts +21 -0
  247. package/lib/_util/transButton.d.ts.map +1 -0
  248. package/lib/_util/transButton.js +112 -0
  249. package/lib/_util/transButton.js.map +1 -0
  250. package/lib/_util/triggerEvent.d.ts +2 -0
  251. package/lib/_util/triggerEvent.d.ts.map +1 -0
  252. package/lib/_util/triggerEvent.js +12 -0
  253. package/lib/_util/triggerEvent.js.map +1 -0
  254. package/lib/_util/type.d.ts +4 -0
  255. package/lib/_util/type.d.ts.map +1 -0
  256. package/lib/_util/type.js +9 -0
  257. package/lib/_util/type.js.map +1 -0
  258. package/lib/_util/warning.d.ts +5 -0
  259. package/lib/_util/warning.d.ts.map +1 -0
  260. package/lib/_util/warning.js +28 -0
  261. package/lib/_util/warning.js.map +1 -0
  262. package/lib/_util/wave.d.ts +26 -0
  263. package/lib/_util/wave.d.ts.map +1 -0
  264. package/lib/_util/wave.js +249 -0
  265. package/lib/_util/wave.js.map +1 -0
  266. package/lib/affix/index.js +5 -1
  267. package/lib/affix/index.js.map +1 -1
  268. package/lib/alert/index.js +5 -1
  269. package/lib/alert/index.js.map +1 -1
  270. package/lib/anchor/index.js +5 -1
  271. package/lib/anchor/index.js.map +1 -1
  272. package/lib/array-input/index.js +5 -1
  273. package/lib/array-input/index.js.map +1 -1
  274. package/lib/auto-complete/index.js +5 -1
  275. package/lib/auto-complete/index.js.map +1 -1
  276. package/lib/avatar/index.js +5 -1
  277. package/lib/avatar/index.js.map +1 -1
  278. package/lib/back-top/index.js +5 -1
  279. package/lib/back-top/index.js.map +1 -1
  280. package/lib/badge/index.js +5 -1
  281. package/lib/badge/index.js.map +1 -1
  282. package/lib/breadcrumb/index.js +5 -1
  283. package/lib/breadcrumb/index.js.map +1 -1
  284. package/lib/button/index.js +5 -1
  285. package/lib/button/index.js.map +1 -1
  286. package/lib/calendar/index.js +5 -1
  287. package/lib/calendar/index.js.map +1 -1
  288. package/lib/card/index.js +5 -1
  289. package/lib/card/index.js.map +1 -1
  290. package/lib/carousel/index.js +5 -1
  291. package/lib/carousel/index.js.map +1 -1
  292. package/lib/cascader/index.d.ts +6 -1
  293. package/lib/cascader/index.d.ts.map +1 -1
  294. package/lib/cascader/index.js +11 -2
  295. package/lib/cascader/index.js.map +1 -1
  296. package/lib/checkbox/checkbox-group.d.ts +8 -0
  297. package/lib/checkbox/checkbox-group.d.ts.map +1 -0
  298. package/lib/checkbox/checkbox-group.js +11 -0
  299. package/lib/checkbox/checkbox-group.js.map +1 -0
  300. package/lib/checkbox/index.d.ts +1 -0
  301. package/lib/checkbox/index.d.ts.map +1 -1
  302. package/lib/checkbox/index.js +10 -1
  303. package/lib/checkbox/index.js.map +1 -1
  304. package/lib/col/index.js +5 -1
  305. package/lib/col/index.js.map +1 -1
  306. package/lib/collapse/index.js +5 -1
  307. package/lib/collapse/index.js.map +1 -1
  308. package/lib/color-picker/ColorPicker.js +5 -1
  309. package/lib/color-picker/ColorPicker.js.map +1 -1
  310. package/lib/comment/index.js +5 -1
  311. package/lib/comment/index.js.map +1 -1
  312. package/lib/config-provider/DisabledContext.d.ts +10 -0
  313. package/lib/config-provider/DisabledContext.d.ts.map +1 -0
  314. package/lib/config-provider/DisabledContext.js +35 -0
  315. package/lib/config-provider/DisabledContext.js.map +1 -0
  316. package/lib/config-provider/SizeContext.d.ts +10 -0
  317. package/lib/config-provider/SizeContext.d.ts.map +1 -0
  318. package/lib/config-provider/SizeContext.js +32 -0
  319. package/lib/config-provider/SizeContext.js.map +1 -0
  320. package/lib/config-provider/context.d.ts +61 -0
  321. package/lib/config-provider/context.d.ts.map +1 -0
  322. package/lib/config-provider/context.js +64 -0
  323. package/lib/config-provider/context.js.map +1 -0
  324. package/lib/config-provider/index.d.ts +1 -0
  325. package/lib/config-provider/index.d.ts.map +1 -1
  326. package/lib/config-provider/index.js +9 -1
  327. package/lib/config-provider/index.js.map +1 -1
  328. package/lib/connect/index.d.ts +12 -0
  329. package/lib/connect/index.d.ts.map +1 -0
  330. package/lib/connect/index.js +32 -0
  331. package/lib/connect/index.js.map +1 -0
  332. package/lib/date-picker/index.d.ts +6 -1
  333. package/lib/date-picker/index.d.ts.map +1 -1
  334. package/lib/date-picker/index.js +17 -2
  335. package/lib/date-picker/index.js.map +1 -1
  336. package/lib/descriptions/descriptions.d.ts +1 -1
  337. package/lib/descriptions/descriptions.d.ts.map +1 -1
  338. package/lib/descriptions/descriptions.js +5 -1
  339. package/lib/descriptions/descriptions.js.map +1 -1
  340. package/lib/descriptions/index.js +5 -1
  341. package/lib/descriptions/index.js.map +1 -1
  342. package/lib/development-login/LoginModal.js +5 -1
  343. package/lib/development-login/LoginModal.js.map +1 -1
  344. package/lib/development-login/index.js +5 -1
  345. package/lib/development-login/index.js.map +1 -1
  346. package/lib/divider/index.js +5 -1
  347. package/lib/divider/index.js.map +1 -1
  348. package/lib/drawer/index.js +5 -1
  349. package/lib/drawer/index.js.map +1 -1
  350. package/lib/dropdown/index.js +5 -1
  351. package/lib/dropdown/index.js.map +1 -1
  352. package/lib/ellipsis/index.js +5 -1
  353. package/lib/ellipsis/index.js.map +1 -1
  354. package/lib/empty/empty.js +5 -1
  355. package/lib/empty/empty.js.map +1 -1
  356. package/lib/empty/index.js +5 -1
  357. package/lib/empty/index.js.map +1 -1
  358. package/lib/exception/index.js +5 -1
  359. package/lib/exception/index.js.map +1 -1
  360. package/lib/form/index.js +5 -1
  361. package/lib/form/index.js.map +1 -1
  362. package/lib/handle/index.js +5 -1
  363. package/lib/handle/index.js.map +1 -1
  364. package/lib/icon/index.js +5 -1
  365. package/lib/icon/index.js.map +1 -1
  366. package/lib/img/index.js +5 -1
  367. package/lib/img/index.js.map +1 -1
  368. package/lib/input/index.js +5 -1
  369. package/lib/input/index.js.map +1 -1
  370. package/lib/input/input.d.ts +22 -8
  371. package/lib/input/input.d.ts.map +1 -1
  372. package/lib/input/input.js +61 -27
  373. package/lib/input/input.js.map +1 -1
  374. package/lib/input-number/index.d.ts +7 -2
  375. package/lib/input-number/index.d.ts.map +1 -1
  376. package/lib/input-number/index.js +8 -2
  377. package/lib/input-number/index.js.map +1 -1
  378. package/lib/label/index.js +5 -1
  379. package/lib/label/index.js.map +1 -1
  380. package/lib/layout/index.js +5 -1
  381. package/lib/layout/index.js.map +1 -1
  382. package/lib/list/index.js +5 -1
  383. package/lib/list/index.js.map +1 -1
  384. package/lib/loading-button/index.js +5 -1
  385. package/lib/loading-button/index.js.map +1 -1
  386. package/lib/locale/index.js +5 -1
  387. package/lib/locale/index.js.map +1 -1
  388. package/lib/locale-provider/index.js +5 -1
  389. package/lib/locale-provider/index.js.map +1 -1
  390. package/lib/mentions/index.js +5 -1
  391. package/lib/mentions/index.js.map +1 -1
  392. package/lib/menu/index.js +5 -1
  393. package/lib/menu/index.js.map +1 -1
  394. package/lib/message/index.js +5 -1
  395. package/lib/message/index.js.map +1 -1
  396. package/lib/modal/index.js +5 -1
  397. package/lib/modal/index.js.map +1 -1
  398. package/lib/modal/modal.js +5 -1
  399. package/lib/modal/modal.js.map +1 -1
  400. package/lib/notification/index.js +5 -1
  401. package/lib/notification/index.js.map +1 -1
  402. package/lib/page-header/index.js +5 -1
  403. package/lib/page-header/index.js.map +1 -1
  404. package/lib/pagination/index.js +5 -1
  405. package/lib/pagination/index.js.map +1 -1
  406. package/lib/popconfirm/index.js +5 -1
  407. package/lib/popconfirm/index.js.map +1 -1
  408. package/lib/popover/index.js +5 -1
  409. package/lib/popover/index.js.map +1 -1
  410. package/lib/preview-text/index.d.ts +20 -0
  411. package/lib/preview-text/index.d.ts.map +1 -0
  412. package/lib/preview-text/index.js +224 -0
  413. package/lib/preview-text/index.js.map +1 -0
  414. package/lib/preview-text/index.less +3 -0
  415. package/lib/progress/index.js +5 -1
  416. package/lib/progress/index.js.map +1 -1
  417. package/lib/query-form/Field/Select.js +5 -1
  418. package/lib/query-form/Field/Select.js.map +1 -1
  419. package/lib/query-form/Field/SelectInput.js +5 -1
  420. package/lib/query-form/Field/SelectInput.js.map +1 -1
  421. package/lib/query-form/Field/fieldsMap.d.ts +2 -2
  422. package/lib/query-form/Field/index.d.ts +6 -0
  423. package/lib/query-form/Field/index.d.ts.map +1 -1
  424. package/lib/query-form/Field/index.js +5 -1
  425. package/lib/query-form/Field/index.js.map +1 -1
  426. package/lib/query-form/index.d.ts +9 -0
  427. package/lib/query-form/index.d.ts.map +1 -1
  428. package/lib/query-form/index.js +5 -1
  429. package/lib/query-form/index.js.map +1 -1
  430. package/lib/query-list-scene/List.d.ts +13 -0
  431. package/lib/query-list-scene/List.d.ts.map +1 -1
  432. package/lib/query-list-scene/List.js +5 -1
  433. package/lib/query-list-scene/List.js.map +1 -1
  434. package/lib/query-list-scene/QueryForm.d.ts +3 -0
  435. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  436. package/lib/query-list-scene/QueryListScene.d.ts +1 -0
  437. package/lib/query-list-scene/QueryListScene.d.ts.map +1 -1
  438. package/lib/radio/index.d.ts.map +1 -1
  439. package/lib/radio/index.js +8 -1
  440. package/lib/radio/index.js.map +1 -1
  441. package/lib/radio/radio-group.d.ts +8 -0
  442. package/lib/radio/radio-group.d.ts.map +1 -0
  443. package/lib/radio/radio-group.js +11 -0
  444. package/lib/radio/radio-group.js.map +1 -0
  445. package/lib/rate/index.js +5 -1
  446. package/lib/rate/index.js.map +1 -1
  447. package/lib/result/index.js +5 -1
  448. package/lib/result/index.js.map +1 -1
  449. package/lib/row/index.js +5 -1
  450. package/lib/row/index.js.map +1 -1
  451. package/lib/select/index.d.ts +2 -1
  452. package/lib/select/index.d.ts.map +1 -1
  453. package/lib/select/index.js +5 -1
  454. package/lib/select/index.js.map +1 -1
  455. package/lib/select/select.d.ts +20 -6
  456. package/lib/select/select.d.ts.map +1 -1
  457. package/lib/select/select.js +41 -7
  458. package/lib/select/select.js.map +1 -1
  459. package/lib/skeleton/index.js +5 -1
  460. package/lib/skeleton/index.js.map +1 -1
  461. package/lib/slider/index.js +5 -1
  462. package/lib/slider/index.js.map +1 -1
  463. package/lib/spin/index.js +5 -1
  464. package/lib/spin/index.js.map +1 -1
  465. package/lib/statistic/index.js +5 -1
  466. package/lib/statistic/index.js.map +1 -1
  467. package/lib/steps/index.js +5 -1
  468. package/lib/steps/index.js.map +1 -1
  469. package/lib/steps/steps.js +5 -1
  470. package/lib/steps/steps.js.map +1 -1
  471. package/lib/svg-components/illustration-403.d.ts +1 -1
  472. package/lib/svg-components/illustration-403.js +5 -1
  473. package/lib/svg-components/illustration-403.js.map +1 -1
  474. package/lib/svg-components/illustration-404.d.ts +1 -1
  475. package/lib/svg-components/illustration-404.js +5 -1
  476. package/lib/svg-components/illustration-404.js.map +1 -1
  477. package/lib/svg-components/illustration-500.d.ts +1 -1
  478. package/lib/svg-components/illustration-500.js +5 -1
  479. package/lib/svg-components/illustration-500.js.map +1 -1
  480. package/lib/svg-components/illustration-empty.d.ts +1 -1
  481. package/lib/svg-components/illustration-empty.js +5 -1
  482. package/lib/svg-components/illustration-empty.js.map +1 -1
  483. package/lib/svg-components/illustration-failure.d.ts +1 -1
  484. package/lib/svg-components/illustration-failure.js +5 -1
  485. package/lib/svg-components/illustration-failure.js.map +1 -1
  486. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  487. package/lib/svg-components/illustration-no-access.js +5 -1
  488. package/lib/svg-components/illustration-no-access.js.map +1 -1
  489. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  490. package/lib/svg-components/illustration-no-chart.js +5 -1
  491. package/lib/svg-components/illustration-no-chart.js.map +1 -1
  492. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  493. package/lib/svg-components/illustration-no-result.js +5 -1
  494. package/lib/svg-components/illustration-no-result.js.map +1 -1
  495. package/lib/svg-components/illustration-offline.d.ts +1 -1
  496. package/lib/svg-components/illustration-offline.js +5 -1
  497. package/lib/svg-components/illustration-offline.js.map +1 -1
  498. package/lib/svg-components/illustration-success.d.ts +1 -1
  499. package/lib/svg-components/illustration-success.js +5 -1
  500. package/lib/svg-components/illustration-success.js.map +1 -1
  501. package/lib/switch/index.d.ts +2 -3
  502. package/lib/switch/index.d.ts.map +1 -1
  503. package/lib/switch/index.js +7 -4
  504. package/lib/switch/index.js.map +1 -1
  505. package/lib/switch/switch.d.ts +10 -0
  506. package/lib/switch/switch.d.ts.map +1 -0
  507. package/lib/switch/switch.js +29 -0
  508. package/lib/switch/switch.js.map +1 -0
  509. package/lib/table/assets/image-loading-background.d.ts +1 -1
  510. package/lib/table/assets/image-loading-background.js +5 -1
  511. package/lib/table/assets/image-loading-background.js.map +1 -1
  512. package/lib/table/assets/image-loading.d.ts +1 -1
  513. package/lib/table/assets/image-loading.js +5 -1
  514. package/lib/table/assets/image-loading.js.map +1 -1
  515. package/lib/table/hooks/index.js +5 -1
  516. package/lib/table/hooks/index.js.map +1 -1
  517. package/lib/table/index.js +5 -1
  518. package/lib/table/index.js.map +1 -1
  519. package/lib/table/table.js +5 -1
  520. package/lib/table/table.js.map +1 -1
  521. package/lib/table/table.less +2 -0
  522. package/lib/tabs/index.js +5 -1
  523. package/lib/tabs/index.js.map +1 -1
  524. package/lib/tag/index.js +5 -1
  525. package/lib/tag/index.js.map +1 -1
  526. package/lib/time-picker/index.d.ts +7 -2
  527. package/lib/time-picker/index.d.ts.map +1 -1
  528. package/lib/time-picker/index.js +8 -2
  529. package/lib/time-picker/index.js.map +1 -1
  530. package/lib/timeline/index.js +5 -1
  531. package/lib/timeline/index.js.map +1 -1
  532. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +5 -1
  533. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js.map +1 -1
  534. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +5 -1
  535. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js.map +1 -1
  536. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +5 -1
  537. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js.map +1 -1
  538. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +5 -1
  539. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
  540. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +5 -1
  541. package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
  542. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +5 -1
  543. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js.map +1 -1
  544. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  545. package/lib/tntd-cascader/AntdCascader/config/warning.js +5 -1
  546. package/lib/tntd-cascader/AntdCascader/config/warning.js.map +1 -1
  547. package/lib/tntd-cascader/AntdCascader/index.js +5 -1
  548. package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
  549. package/lib/tntd-cascader/rc-cascader/Cascader.js +5 -1
  550. package/lib/tntd-cascader/rc-cascader/Cascader.js.map +1 -1
  551. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +5 -1
  552. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js.map +1 -1
  553. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +5 -1
  554. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  555. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +5 -1
  556. package/lib/tntd-cascader/rc-cascader/OptionList/index.js.map +1 -1
  557. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -1
  558. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js.map +1 -1
  559. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +5 -1
  560. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js.map +1 -1
  561. package/lib/tntd-cascader/rc-cascader/context.js +5 -1
  562. package/lib/tntd-cascader/rc-cascader/context.js.map +1 -1
  563. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -1
  564. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js.map +1 -1
  565. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -1
  566. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js.map +1 -1
  567. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +5 -1
  568. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js.map +1 -1
  569. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +5 -1
  570. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js.map +1 -1
  571. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +5 -1
  572. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js.map +1 -1
  573. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +5 -1
  574. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js.map +1 -1
  575. package/lib/tntd-form/ErrorList.d.ts +13 -0
  576. package/lib/tntd-form/ErrorList.d.ts.map +1 -0
  577. package/lib/tntd-form/ErrorList.js +82 -0
  578. package/lib/tntd-form/ErrorList.js.map +1 -0
  579. package/lib/tntd-form/Form.d.ts +36 -0
  580. package/lib/tntd-form/Form.d.ts.map +1 -0
  581. package/lib/tntd-form/Form.js +132 -0
  582. package/lib/tntd-form/Form.js.map +1 -0
  583. package/lib/tntd-form/FormItem/ItemHolder.d.ts +18 -0
  584. package/lib/tntd-form/FormItem/ItemHolder.d.ts.map +1 -0
  585. package/lib/tntd-form/FormItem/ItemHolder.js +164 -0
  586. package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -0
  587. package/lib/tntd-form/FormItem/index.d.ts +36 -0
  588. package/lib/tntd-form/FormItem/index.d.ts.map +1 -0
  589. package/lib/tntd-form/FormItem/index.js +266 -0
  590. package/lib/tntd-form/FormItem/index.js.map +1 -0
  591. package/lib/tntd-form/FormItemInput.d.ts +30 -0
  592. package/lib/tntd-form/FormItemInput.d.ts.map +1 -0
  593. package/lib/tntd-form/FormItemInput.js +66 -0
  594. package/lib/tntd-form/FormItemInput.js.map +1 -0
  595. package/lib/tntd-form/FormItemLabel.d.ts +24 -0
  596. package/lib/tntd-form/FormItemLabel.d.ts.map +1 -0
  597. package/lib/tntd-form/FormItemLabel.js +101 -0
  598. package/lib/tntd-form/FormItemLabel.js.map +1 -0
  599. package/lib/tntd-form/FormList.d.ts +26 -0
  600. package/lib/tntd-form/FormList.d.ts.map +1 -0
  601. package/lib/tntd-form/FormList.js +62 -0
  602. package/lib/tntd-form/FormList.js.map +1 -0
  603. package/lib/tntd-form/TntdForm/components/Item.js +5 -1
  604. package/lib/tntd-form/TntdForm/components/Item.js.map +1 -1
  605. package/lib/tntd-form/TntdForm/components/ItemComp.js +7 -3
  606. package/lib/tntd-form/TntdForm/components/ItemComp.js.map +1 -1
  607. package/lib/tntd-form/TntdForm/components/List.js +5 -1
  608. package/lib/tntd-form/TntdForm/components/List.js.map +1 -1
  609. package/lib/tntd-form/TntdForm/index.js +5 -1
  610. package/lib/tntd-form/TntdForm/index.js.map +1 -1
  611. package/lib/tntd-form/__tests__/demo-extend.test.d.ts +2 -0
  612. package/lib/tntd-form/__tests__/demo-extend.test.d.ts.map +1 -0
  613. package/lib/tntd-form/__tests__/demo-extend.test.js +5 -0
  614. package/lib/tntd-form/__tests__/demo-extend.test.js.map +1 -0
  615. package/lib/tntd-form/__tests__/demo.test.d.ts +2 -0
  616. package/lib/tntd-form/__tests__/demo.test.d.ts.map +1 -0
  617. package/lib/tntd-form/__tests__/demo.test.js +8 -0
  618. package/lib/tntd-form/__tests__/demo.test.js.map +1 -0
  619. package/lib/tntd-form/__tests__/image.test.d.ts +2 -0
  620. package/lib/tntd-form/__tests__/image.test.d.ts.map +1 -0
  621. package/lib/tntd-form/__tests__/image.test.js +7 -0
  622. package/lib/tntd-form/__tests__/image.test.js.map +1 -0
  623. package/lib/tntd-form/__tests__/index.test.d.ts +2 -0
  624. package/lib/tntd-form/__tests__/index.test.d.ts.map +1 -0
  625. package/lib/tntd-form/__tests__/index.test.js +981 -0
  626. package/lib/tntd-form/__tests__/index.test.js.map +1 -0
  627. package/lib/tntd-form/__tests__/list-noStyle.test.d.ts +2 -0
  628. package/lib/tntd-form/__tests__/list-noStyle.test.d.ts.map +1 -0
  629. package/lib/tntd-form/__tests__/list-noStyle.test.js +46 -0
  630. package/lib/tntd-form/__tests__/list-noStyle.test.js.map +1 -0
  631. package/lib/tntd-form/__tests__/list.test.d.ts +2 -0
  632. package/lib/tntd-form/__tests__/list.test.d.ts.map +1 -0
  633. package/lib/tntd-form/__tests__/list.test.js +169 -0
  634. package/lib/tntd-form/__tests__/list.test.js.map +1 -0
  635. package/lib/tntd-form/__tests__/ref.test.d.ts +2 -0
  636. package/lib/tntd-form/__tests__/ref.test.d.ts.map +1 -0
  637. package/lib/tntd-form/__tests__/ref.test.js +50 -0
  638. package/lib/tntd-form/__tests__/ref.test.js.map +1 -0
  639. package/lib/tntd-form/__tests__/type.test.d.ts +2 -0
  640. package/lib/tntd-form/__tests__/type.test.d.ts.map +1 -0
  641. package/lib/tntd-form/__tests__/type.test.js +98 -0
  642. package/lib/tntd-form/__tests__/type.test.js.map +1 -0
  643. package/lib/tntd-form/_util/motion.d.ts +9 -0
  644. package/lib/tntd-form/_util/motion.d.ts.map +1 -0
  645. package/lib/tntd-form/_util/motion.js +42 -0
  646. package/lib/tntd-form/_util/motion.js.map +1 -0
  647. package/lib/tntd-form/_util/reactNode.d.ts +9 -0
  648. package/lib/tntd-form/_util/reactNode.d.ts.map +1 -0
  649. package/lib/tntd-form/_util/reactNode.js +44 -0
  650. package/lib/tntd-form/_util/reactNode.js.map +1 -0
  651. package/lib/tntd-form/_util/scrollTo.d.ts +1 -0
  652. package/lib/tntd-form/_util/scrollTo.d.ts.map +1 -0
  653. package/lib/tntd-form/_util/scrollTo.js +35 -0
  654. package/lib/tntd-form/_util/scrollTo.js.map +1 -0
  655. package/lib/tntd-form/_util/type.d.ts +4 -0
  656. package/lib/tntd-form/_util/type.d.ts.map +1 -0
  657. package/lib/tntd-form/_util/type.js +9 -0
  658. package/lib/tntd-form/_util/type.js.map +1 -0
  659. package/lib/tntd-form/_util/warning.d.ts +5 -0
  660. package/lib/tntd-form/_util/warning.d.ts.map +1 -0
  661. package/lib/tntd-form/_util/warning.js +32 -0
  662. package/lib/tntd-form/_util/warning.js.map +1 -0
  663. package/lib/tntd-form/_util/wave.d.ts +1 -0
  664. package/lib/tntd-form/_util/wave.d.ts.map +1 -0
  665. package/lib/tntd-form/_util/wave.js +168 -0
  666. package/lib/tntd-form/_util/wave.js.map +1 -0
  667. package/lib/tntd-form/context.d.ts +51 -0
  668. package/lib/tntd-form/context.d.ts.map +1 -0
  669. package/lib/tntd-form/context.js +66 -0
  670. package/lib/tntd-form/context.js.map +1 -0
  671. package/lib/tntd-form/hooks/useDebounce.d.ts +2 -0
  672. package/lib/tntd-form/hooks/useDebounce.d.ts.map +1 -0
  673. package/lib/tntd-form/hooks/useDebounce.js +40 -0
  674. package/lib/tntd-form/hooks/useDebounce.js.map +1 -0
  675. package/lib/tntd-form/hooks/useForm.d.ts +16 -0
  676. package/lib/tntd-form/hooks/useForm.d.ts.map +1 -0
  677. package/lib/tntd-form/hooks/useForm.js +64 -0
  678. package/lib/tntd-form/hooks/useForm.js.map +1 -0
  679. package/lib/tntd-form/hooks/useFormInstance.d.ts +3 -0
  680. package/lib/tntd-form/hooks/useFormInstance.d.ts.map +1 -0
  681. package/lib/tntd-form/hooks/useFormInstance.js +10 -0
  682. package/lib/tntd-form/hooks/useFormInstance.js.map +1 -0
  683. package/lib/tntd-form/hooks/useFormItemStatus.d.ts +7 -0
  684. package/lib/tntd-form/hooks/useFormItemStatus.d.ts.map +1 -0
  685. package/lib/tntd-form/hooks/useFormItemStatus.js +15 -0
  686. package/lib/tntd-form/hooks/useFormItemStatus.js.map +1 -0
  687. package/lib/tntd-form/hooks/useFrameState.d.ts +4 -0
  688. package/lib/tntd-form/hooks/useFrameState.d.ts.map +1 -0
  689. package/lib/tntd-form/hooks/useFrameState.js +67 -0
  690. package/lib/tntd-form/hooks/useFrameState.js.map +1 -0
  691. package/lib/tntd-form/hooks/useItemRef.d.ts +4 -0
  692. package/lib/tntd-form/hooks/useItemRef.d.ts.map +1 -0
  693. package/lib/tntd-form/hooks/useItemRef.js +45 -0
  694. package/lib/tntd-form/hooks/useItemRef.js.map +1 -0
  695. package/lib/tntd-form/index.d.ts +23 -1
  696. package/lib/tntd-form/index.d.ts.map +1 -1
  697. package/lib/tntd-form/index.js +40 -3
  698. package/lib/tntd-form/index.js.map +1 -1
  699. package/lib/tntd-form/interface.d.ts +4 -0
  700. package/lib/tntd-form/interface.d.ts.map +1 -0
  701. package/lib/tntd-form/interface.js +5 -0
  702. package/lib/tntd-form/interface.js.map +1 -0
  703. package/lib/tntd-form/style/components.less +16 -0
  704. package/lib/tntd-form/style/horizontal.less +26 -0
  705. package/lib/tntd-form/style/index.d.ts +5 -0
  706. package/lib/tntd-form/style/index.d.ts.map +1 -0
  707. package/lib/tntd-form/style/index.js +8 -0
  708. package/lib/tntd-form/style/index.js.map +1 -0
  709. package/lib/tntd-form/style/index.less +342 -0
  710. package/lib/tntd-form/style/inline.less +40 -0
  711. package/lib/tntd-form/style/mixin.less +90 -0
  712. package/lib/tntd-form/style/rtl.less +204 -0
  713. package/lib/tntd-form/style/status.less +45 -0
  714. package/lib/tntd-form/style/vertical.less +95 -0
  715. package/lib/tntd-form/tntd-form.stories.d.ts +33 -0
  716. package/lib/tntd-form/tntd-form.stories.d.ts.map +1 -0
  717. package/lib/tntd-form/tntd-form.stories.js +455 -0
  718. package/lib/tntd-form/tntd-form.stories.js.map +1 -0
  719. package/lib/tntd-form/util.d.ts +4 -0
  720. package/lib/tntd-form/util.d.ts.map +1 -0
  721. package/lib/tntd-form/util.js +26 -0
  722. package/lib/tntd-form/util.js.map +1 -0
  723. package/lib/tntd-form/validateMessagesContext.d.ts +5 -0
  724. package/lib/tntd-form/validateMessagesContext.d.ts.map +1 -0
  725. package/lib/tntd-form/validateMessagesContext.js +8 -0
  726. package/lib/tntd-form/validateMessagesContext.js.map +1 -0
  727. package/lib/tntd-layout/AppList.js +5 -1
  728. package/lib/tntd-layout/AppList.js.map +1 -1
  729. package/lib/tntd-layout/Application.js +5 -1
  730. package/lib/tntd-layout/Application.js.map +1 -1
  731. package/lib/tntd-layout/Avatar.js +5 -1
  732. package/lib/tntd-layout/Avatar.js.map +1 -1
  733. package/lib/tntd-layout/CompatibleLanguage.js +5 -1
  734. package/lib/tntd-layout/CompatibleLanguage.js.map +1 -1
  735. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +5 -1
  736. package/lib/tntd-layout/EnterpriseLayout/Avatar.js.map +1 -1
  737. package/lib/tntd-layout/EnterpriseLayout/Language.js +5 -1
  738. package/lib/tntd-layout/EnterpriseLayout/Language.js.map +1 -1
  739. package/lib/tntd-layout/EnterpriseLayout/Theme.js +5 -1
  740. package/lib/tntd-layout/EnterpriseLayout/Theme.js.map +1 -1
  741. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +5 -1
  742. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js.map +1 -1
  743. package/lib/tntd-layout/GlobalNavigation/index.js +5 -1
  744. package/lib/tntd-layout/GlobalNavigation/index.js.map +1 -1
  745. package/lib/tntd-layout/Header.js +5 -1
  746. package/lib/tntd-layout/Header.js.map +1 -1
  747. package/lib/tntd-layout/HeaderActions.js +5 -1
  748. package/lib/tntd-layout/HeaderActions.js.map +1 -1
  749. package/lib/tntd-layout/HeaderNavs.js +5 -1
  750. package/lib/tntd-layout/HeaderNavs.js.map +1 -1
  751. package/lib/tntd-layout/HeaderTabs.js +5 -1
  752. package/lib/tntd-layout/HeaderTabs.js.map +1 -1
  753. package/lib/tntd-layout/Language.js +5 -1
  754. package/lib/tntd-layout/Language.js.map +1 -1
  755. package/lib/tntd-layout/Layout.js +5 -1
  756. package/lib/tntd-layout/Layout.js.map +1 -1
  757. package/lib/tntd-layout/Logo.js +5 -1
  758. package/lib/tntd-layout/Logo.js.map +1 -1
  759. package/lib/tntd-layout/OrgAppList.js +5 -1
  760. package/lib/tntd-layout/OrgAppList.js.map +1 -1
  761. package/lib/tntd-layout/SideMenu.js +5 -1
  762. package/lib/tntd-layout/SideMenu.js.map +1 -1
  763. package/lib/tntd-layout/Theme.js +5 -1
  764. package/lib/tntd-layout/Theme.js.map +1 -1
  765. package/lib/tntd-layout/index.js +5 -1
  766. package/lib/tntd-layout/index.js.map +1 -1
  767. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +5 -1
  768. package/lib/tntd-layout/paaslayout/CompactSideMenu.js.map +1 -1
  769. package/lib/tntd-layout/paaslayout/Header.js +5 -1
  770. package/lib/tntd-layout/paaslayout/Header.js.map +1 -1
  771. package/lib/tntd-layout/paaslayout/SideMenu.js +5 -1
  772. package/lib/tntd-layout/paaslayout/SideMenu.js.map +1 -1
  773. package/lib/tntd-layout/paaslayout/index.js +5 -1
  774. package/lib/tntd-layout/paaslayout/index.js.map +1 -1
  775. package/lib/tntd-modal/index.js +5 -1
  776. package/lib/tntd-modal/index.js.map +1 -1
  777. package/lib/tntd-select/DropDownWrap.d.ts +10 -0
  778. package/lib/tntd-select/DropDownWrap.d.ts.map +1 -1
  779. package/lib/tntd-select/DropDownWrap.js +5 -1
  780. package/lib/tntd-select/DropDownWrap.js.map +1 -1
  781. package/lib/tntd-select/index.d.ts +12 -1
  782. package/lib/tntd-select/index.d.ts.map +1 -1
  783. package/lib/tntd-select/index.js +5 -1
  784. package/lib/tntd-select/index.js.map +1 -1
  785. package/lib/tooltip/index.js +5 -1
  786. package/lib/tooltip/index.js.map +1 -1
  787. package/lib/transfer/index.js +5 -1
  788. package/lib/transfer/index.js.map +1 -1
  789. package/lib/tree/index.js +5 -1
  790. package/lib/tree/index.js.map +1 -1
  791. package/lib/tree-select/index.d.ts +7 -1
  792. package/lib/tree-select/index.d.ts.map +1 -1
  793. package/lib/tree-select/index.js +10 -2
  794. package/lib/tree-select/index.js.map +1 -1
  795. package/lib/typography/index.js +5 -1
  796. package/lib/typography/index.js.map +1 -1
  797. package/lib/upload/index.d.ts +6 -1
  798. package/lib/upload/index.d.ts.map +1 -1
  799. package/lib/upload/index.js +11 -2
  800. package/lib/upload/index.js.map +1 -1
  801. package/lib/utils/index.js +5 -1
  802. package/lib/utils/index.js.map +1 -1
  803. package/lib/version/index.js +5 -1
  804. package/lib/version/index.js.map +1 -1
  805. package/package.json +7 -4
  806. package/themes/default/variables.less +43 -0
  807. package/es/mention/index.js +0 -5
  808. package/es/mention/index.js.map +0 -1
  809. package/lib/mention/index.d.ts +0 -5
  810. package/lib/mention/index.d.ts.map +0 -1
  811. package/lib/mention/index.js +0 -20
  812. package/lib/mention/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../src/_util/colors.ts"],"names":[],"mappings":";;;AAAA,iCAA+B;AAE/B,wDAAwD;AAC3C,QAAA,gBAAgB,GAAG,IAAA,YAAK,EACnC,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,MAAM,CACP,CAAC","sourcesContent":["import { tuple } from './type';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const PresetColorTypes = tuple(\n 'pink',\n 'red',\n 'yellow',\n 'orange',\n 'cyan',\n 'green',\n 'blue',\n 'purple',\n 'geekblue',\n 'magenta',\n 'volcano',\n 'gold',\n 'lime',\n);\n\nexport type PresetColorType = (typeof PresetColorTypes)[number];\n"]}
@@ -0,0 +1,2 @@
1
+ export declare function easeInOutCubic(t: number, b: number, c: number, d: number): number;
2
+ //# sourceMappingURL=easings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easings.d.ts","sourceRoot":"","sources":["../../src/_util/easings.ts"],"names":[],"mappings":"AACA,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAOxE"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.easeInOutCubic = void 0;
4
+ // eslint-disable-next-line import/prefer-default-export
5
+ function easeInOutCubic(t, b, c, d) {
6
+ const cc = c - b;
7
+ t /= d / 2;
8
+ if (t < 1) {
9
+ return (cc / 2) * t * t * t + b;
10
+ }
11
+ return (cc / 2) * ((t -= 2) * t * t + 2) + b;
12
+ }
13
+ exports.easeInOutCubic = easeInOutCubic;
14
+ //# sourceMappingURL=easings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easings.js","sourceRoot":"","sources":["../../src/_util/easings.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,SAAgB,cAAc,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IACvE,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACX,IAAI,CAAC,GAAG,CAAC,EAAE;QACT,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACjC;IACD,OAAO,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/C,CAAC;AAPD,wCAOC","sourcesContent":["// eslint-disable-next-line import/prefer-default-export\nexport function easeInOutCubic(t: number, b: number, c: number, d: number) {\n const cc = c - b;\n t /= d / 2;\n if (t < 1) {\n return (cc / 2) * t * t * t + b;\n }\n return (cc / 2) * ((t -= 2) * t * t + 2) + b;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function getDataOrAriaProps(props: any): any;
2
+ //# sourceMappingURL=getDataOrAriaProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDataOrAriaProps.d.ts","sourceRoot":"","sources":["../../src/_util/getDataOrAriaProps.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,GAAG,OAUpD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function getDataOrAriaProps(props) {
4
+ return Object.keys(props).reduce((prev, key) => {
5
+ if ((key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') &&
6
+ key.substr(0, 7) !== 'data-__') {
7
+ prev[key] = props[key];
8
+ }
9
+ return prev;
10
+ }, {});
11
+ }
12
+ exports.default = getDataOrAriaProps;
13
+ //# sourceMappingURL=getDataOrAriaProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDataOrAriaProps.js","sourceRoot":"","sources":["../../src/_util/getDataOrAriaProps.ts"],"names":[],"mappings":";;AAAA,SAAwB,kBAAkB,CAAC,KAAU;IACnD,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,GAAW,EAAE,EAAE;QAC1D,IACE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,IAAI,GAAG,KAAK,MAAM,CAAC;YAChF,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,SAAS,EAC9B;YACA,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;SACxB;QACD,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAVD,qCAUC","sourcesContent":["export default function getDataOrAriaProps(props: any) {\n return Object.keys(props).reduce((prev: any, key: string) => {\n if (\n (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-' || key === 'role') &&\n key.substr(0, 7) !== 'data-__'\n ) {\n prev[key] = props[key];\n }\n return prev;\n }, {});\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function getScroll(target: HTMLElement | Window | null, top: boolean): number;
2
+ //# sourceMappingURL=getScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScroll.d.ts","sourceRoot":"","sources":["../../src/_util/getScroll.tsx"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAgB3F"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function getScroll(target, top) {
4
+ if (typeof window === 'undefined') {
5
+ return 0;
6
+ }
7
+ const prop = top ? 'pageYOffset' : 'pageXOffset';
8
+ const method = top ? 'scrollTop' : 'scrollLeft';
9
+ const isWindow = target === window;
10
+ let ret = isWindow ? target[prop] : target[method];
11
+ // ie6,7,8 standard mode
12
+ if (isWindow && typeof ret !== 'number') {
13
+ ret = document.documentElement[method];
14
+ }
15
+ return ret;
16
+ }
17
+ exports.default = getScroll;
18
+ //# sourceMappingURL=getScroll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScroll.js","sourceRoot":"","sources":["../../src/_util/getScroll.tsx"],"names":[],"mappings":";;AAAA,SAAwB,SAAS,CAAC,MAAmC,EAAE,GAAY;IACjF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,OAAO,CAAC,CAAC;KACV;IAED,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC;IACjD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC;IAChD,MAAM,QAAQ,GAAG,MAAM,KAAK,MAAM,CAAC;IAEnC,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAE,MAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,MAAsB,CAAC,MAAM,CAAC,CAAC;IAChF,wBAAwB;IACxB,IAAI,QAAQ,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACvC,GAAG,GAAI,QAAQ,CAAC,eAA+B,CAAC,MAAM,CAAC,CAAC;KACzD;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAhBD,4BAgBC","sourcesContent":["export default function getScroll(target: HTMLElement | Window | null, top: boolean): number {\n if (typeof window === 'undefined') {\n return 0;\n }\n\n const prop = top ? 'pageYOffset' : 'pageXOffset';\n const method = top ? 'scrollTop' : 'scrollLeft';\n const isWindow = target === window;\n\n let ret = isWindow ? (target as Window)[prop] : (target as HTMLElement)[method];\n // ie6,7,8 standard mode\n if (isWindow && typeof ret !== 'number') {\n ret = (document.documentElement as HTMLElement)[method];\n }\n\n return ret;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function interopDefault(m: any): any;
2
+ //# sourceMappingURL=interopDefault.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interopDefault.d.ts","sourceRoot":"","sources":["../../src/_util/interopDefault.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,GAAG,OAE5C"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // https://github.com/moment/moment/issues/3650
4
+ // since we are using ts 3.5.1, it should be safe to remove.
5
+ function interopDefault(m) {
6
+ return m.default || m;
7
+ }
8
+ exports.default = interopDefault;
9
+ //# sourceMappingURL=interopDefault.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interopDefault.js","sourceRoot":"","sources":["../../src/_util/interopDefault.ts"],"names":[],"mappings":";;AAAA,+CAA+C;AAC/C,4DAA4D;AAC5D,SAAwB,cAAc,CAAC,CAAM;IAC3C,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC;AACxB,CAAC;AAFD,iCAEC","sourcesContent":["// https://github.com/moment/moment/issues/3650\n// since we are using ts 3.5.1, it should be safe to remove.\nexport default function interopDefault(m: any) {\n return m.default || m;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ declare const isNumeric: (value: any) => boolean;
2
+ export default isNumeric;
3
+ //# sourceMappingURL=isNumeric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumeric.d.ts","sourceRoot":"","sources":["../../src/_util/isNumeric.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,UAAW,GAAG,KAAG,OAE/B,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const isNumeric = (value) => {
4
+ return !isNaN(parseFloat(value)) && isFinite(value);
5
+ };
6
+ exports.default = isNumeric;
7
+ //# sourceMappingURL=isNumeric.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumeric.js","sourceRoot":"","sources":["../../src/_util/isNumeric.ts"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG,CAAC,KAAU,EAAW,EAAE;IACxC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AACtD,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["const isNumeric = (value: any): boolean => {\n return !isNaN(parseFloat(value)) && isFinite(value);\n};\n\nexport default isNumeric;\n"]}
@@ -0,0 +1,24 @@
1
+ import type React from 'react';
2
+ declare type MotionFunc = (element: HTMLElement) => React.CSSProperties;
3
+ interface Motion {
4
+ visible?: boolean;
5
+ motionName?: string;
6
+ motionAppear?: boolean;
7
+ motionEnter?: boolean;
8
+ motionLeave?: boolean;
9
+ motionLeaveImmediately?: boolean;
10
+ removeOnLeave?: boolean;
11
+ leavedClassName?: string;
12
+ onAppearStart?: MotionFunc;
13
+ onAppearActive?: MotionFunc;
14
+ onAppearEnd?: MotionFunc;
15
+ onEnterStart?: MotionFunc;
16
+ onEnterActive?: MotionFunc;
17
+ onEnterEnd?: MotionFunc;
18
+ onLeaveStart?: MotionFunc;
19
+ onLeaveActive?: MotionFunc;
20
+ onLeaveEnd?: MotionFunc;
21
+ }
22
+ declare const collapseMotion: Motion;
23
+ export default collapseMotion;
24
+ //# sourceMappingURL=motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/_util/motion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,aAAK,UAAU,GAAG,CAAC,OAAO,EAAE,WAAW,KAAK,KAAK,CAAC,aAAa,CAAA;AAE/D,UAAU,MAAM;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,cAAc,CAAC,EAAE,UAAU,CAAA;IAC3B,WAAW,CAAC,EAAE,UAAU,CAAA;IACxB,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,YAAY,CAAC,EAAE,UAAU,CAAA;IACzB,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAA;CACxB;AAOD,QAAA,MAAM,cAAc,EAAE,MAQrB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // ================== Collapse Motion ==================
4
+ const getCollapsedHeight = () => ({ height: 0, opacity: 0 });
5
+ const getRealHeight = node => ({ height: node.scrollHeight, opacity: 1 });
6
+ const getCurrentHeight = node => ({ height: node.offsetHeight });
7
+ const collapseMotion = {
8
+ motionName: 'ant-motion-collapse',
9
+ onAppearStart: getCollapsedHeight,
10
+ onEnterStart: getCollapsedHeight,
11
+ onAppearActive: getRealHeight,
12
+ onEnterActive: getRealHeight,
13
+ onLeaveStart: getCurrentHeight,
14
+ onLeaveActive: getCollapsedHeight,
15
+ };
16
+ exports.default = collapseMotion;
17
+ //# sourceMappingURL=motion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.js","sourceRoot":"","sources":["../../src/_util/motion.tsx"],"names":[],"mappings":";;AAwBA,wDAAwD;AACxD,MAAM,kBAAkB,GAAe,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;AACxE,MAAM,aAAa,GAAe,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAA;AACrF,MAAM,gBAAgB,GAAe,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAA;AAE5E,MAAM,cAAc,GAAW;IAC7B,UAAU,EAAE,qBAAqB;IACjC,aAAa,EAAE,kBAAkB;IACjC,YAAY,EAAE,kBAAkB;IAChC,cAAc,EAAE,aAAa;IAC7B,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,kBAAkB;CAClC,CAAA;AAED,kBAAe,cAAc,CAAA","sourcesContent":["import type React from 'react'\n\ntype MotionFunc = (element: HTMLElement) => React.CSSProperties\n\ninterface Motion {\n visible?: boolean\n motionName?: string // It also support object, but we only use string here.\n motionAppear?: boolean\n motionEnter?: boolean\n motionLeave?: boolean\n motionLeaveImmediately?: boolean // Trigger leave motion immediately\n removeOnLeave?: boolean\n leavedClassName?: string\n onAppearStart?: MotionFunc\n onAppearActive?: MotionFunc\n onAppearEnd?: MotionFunc\n onEnterStart?: MotionFunc\n onEnterActive?: MotionFunc\n onEnterEnd?: MotionFunc\n onLeaveStart?: MotionFunc\n onLeaveActive?: MotionFunc\n onLeaveEnd?: MotionFunc\n}\n\n// ================== Collapse Motion ==================\nconst getCollapsedHeight: MotionFunc = () => ({ height: 0, opacity: 0 })\nconst getRealHeight: MotionFunc = node => ({ height: node.scrollHeight, opacity: 1 })\nconst getCurrentHeight: MotionFunc = node => ({ height: node.offsetHeight })\n\nconst collapseMotion: Motion = {\n motionName: 'ant-motion-collapse',\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n}\n\nexport default collapseMotion\n"]}
@@ -0,0 +1,7 @@
1
+ declare const animation: {
2
+ enter(node: HTMLElement, done: () => void): any;
3
+ leave(node: HTMLElement, done: () => void): any;
4
+ appear(node: HTMLElement, done: () => void): any;
5
+ };
6
+ export default animation;
7
+ //# sourceMappingURL=openAnimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openAnimation.d.ts","sourceRoot":"","sources":["../../src/_util/openAnimation.tsx"],"names":[],"mappings":"AAyCA,QAAA,MAAM,SAAS;gBACD,WAAW,QAAQ,MAAM,IAAI;gBAG7B,WAAW,QAAQ,MAAM,IAAI;iBAG5B,WAAW,QAAQ,MAAM,IAAI;CAG3C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ /**
7
+ * Deprecated. We should replace the animation with pure react motion instead of modify style directly.
8
+ * If you are creating new component with animation, please use `./motion`.
9
+ */
10
+ const css_animation_1 = __importDefault(require("css-animation"));
11
+ const raf_1 = __importDefault(require("raf"));
12
+ function animate(node, show, done) {
13
+ let height;
14
+ let requestAnimationFrameId;
15
+ return (0, css_animation_1.default)(node, 'ant-motion-collapse-legacy', {
16
+ start() {
17
+ if (!show) {
18
+ node.style.height = `${node.offsetHeight}px`;
19
+ node.style.opacity = '1';
20
+ }
21
+ else {
22
+ height = node.offsetHeight;
23
+ node.style.height = '0px';
24
+ node.style.opacity = '0';
25
+ }
26
+ },
27
+ active() {
28
+ if (requestAnimationFrameId) {
29
+ raf_1.default.cancel(requestAnimationFrameId);
30
+ }
31
+ requestAnimationFrameId = (0, raf_1.default)(() => {
32
+ node.style.height = `${show ? height : 0}px`;
33
+ node.style.opacity = show ? '1' : '0';
34
+ });
35
+ },
36
+ end() {
37
+ if (requestAnimationFrameId) {
38
+ raf_1.default.cancel(requestAnimationFrameId);
39
+ }
40
+ node.style.height = '';
41
+ node.style.opacity = '';
42
+ done();
43
+ },
44
+ });
45
+ }
46
+ const animation = {
47
+ enter(node, done) {
48
+ return animate(node, true, done);
49
+ },
50
+ leave(node, done) {
51
+ return animate(node, false, done);
52
+ },
53
+ appear(node, done) {
54
+ return animate(node, true, done);
55
+ },
56
+ };
57
+ exports.default = animation;
58
+ //# sourceMappingURL=openAnimation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openAnimation.js","sourceRoot":"","sources":["../../src/_util/openAnimation.tsx"],"names":[],"mappings":";;;;;AAAA;;;GAGG;AACH,kEAAyC;AACzC,8CAAsB;AAEtB,SAAS,OAAO,CAAC,IAAiB,EAAE,IAAa,EAAE,IAAgB;IACjE,IAAI,MAAc,CAAC;IACnB,IAAI,uBAA+B,CAAC;IACpC,OAAO,IAAA,uBAAY,EAAC,IAAI,EAAE,4BAA4B,EAAE;QACtD,KAAK;YACH,IAAI,CAAC,IAAI,EAAE;gBACT,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,YAAY,IAAI,CAAC;gBAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;aAC1B;iBAAM;gBACL,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;gBAC3B,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;gBAC1B,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;aAC1B;QACH,CAAC;QACD,MAAM;YACJ,IAAI,uBAAuB,EAAE;gBAC3B,aAAG,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;aACrC;YACD,uBAAuB,GAAG,IAAA,aAAG,EAAC,GAAG,EAAE;gBACjC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC7C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;YACxC,CAAC,CAAC,CAAC;QACL,CAAC;QACD,GAAG;YACD,IAAI,uBAAuB,EAAE;gBAC3B,aAAG,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;aACrC;YACD,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,CAAC;YACvB,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,EAAE,CAAC;YACxB,IAAI,EAAE,CAAC;QACT,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,SAAS,GAAG;IAChB,KAAK,CAAC,IAAiB,EAAE,IAAgB;QACvC,OAAO,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;IACD,KAAK,CAAC,IAAiB,EAAE,IAAgB;QACvC,OAAO,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,CAAC,IAAiB,EAAE,IAAgB;QACxC,OAAO,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;CACF,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n * Deprecated. We should replace the animation with pure react motion instead of modify style directly.\n * If you are creating new component with animation, please use `./motion`.\n */\nimport cssAnimation from 'css-animation';\nimport raf from 'raf';\n\nfunction animate(node: HTMLElement, show: boolean, done: () => void) {\n let height: number;\n let requestAnimationFrameId: number;\n return cssAnimation(node, 'ant-motion-collapse-legacy', {\n start() {\n if (!show) {\n node.style.height = `${node.offsetHeight}px`;\n node.style.opacity = '1';\n } else {\n height = node.offsetHeight;\n node.style.height = '0px';\n node.style.opacity = '0';\n }\n },\n active() {\n if (requestAnimationFrameId) {\n raf.cancel(requestAnimationFrameId);\n }\n requestAnimationFrameId = raf(() => {\n node.style.height = `${show ? height : 0}px`;\n node.style.opacity = show ? '1' : '0';\n });\n },\n end() {\n if (requestAnimationFrameId) {\n raf.cancel(requestAnimationFrameId);\n }\n node.style.height = '';\n node.style.opacity = '';\n done();\n },\n });\n}\n\nconst animation = {\n enter(node: HTMLElement, done: () => void) {\n return animate(node, true, done);\n },\n leave(node: HTMLElement, done: () => void) {\n return animate(node, false, done);\n },\n appear(node: HTMLElement, done: () => void) {\n return animate(node, true, done);\n },\n};\n\nexport default animation;\n"]}
@@ -0,0 +1,10 @@
1
+ interface RafMap {
2
+ [id: number]: number;
3
+ }
4
+ declare function wrapperRaf(callback: () => void, delayFrames?: number): number;
5
+ declare namespace wrapperRaf {
6
+ var cancel: (pid?: number | undefined) => void;
7
+ var ids: RafMap;
8
+ }
9
+ export default wrapperRaf;
10
+ //# sourceMappingURL=raf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raf.d.ts","sourceRoot":"","sources":["../../src/_util/raf.ts"],"names":[],"mappings":"AAEA,UAAU,MAAM;IACd,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;CACtB;AAMD,iBAAwB,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,WAAW,GAAE,MAAU,GAAG,MAAM,CAkBxF;kBAlBuB,UAAU;;;;eAAV,UAAU"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const raf_1 = __importDefault(require("raf"));
7
+ let id = 0;
8
+ const ids = {};
9
+ // Support call raf with delay specified frame
10
+ function wrapperRaf(callback, delayFrames = 1) {
11
+ const myId = id++;
12
+ let restFrames = delayFrames;
13
+ function internalCallback() {
14
+ restFrames -= 1;
15
+ if (restFrames <= 0) {
16
+ callback();
17
+ delete ids[myId];
18
+ }
19
+ else {
20
+ ids[myId] = (0, raf_1.default)(internalCallback);
21
+ }
22
+ }
23
+ ids[myId] = (0, raf_1.default)(internalCallback);
24
+ return myId;
25
+ }
26
+ exports.default = wrapperRaf;
27
+ wrapperRaf.cancel = function cancel(pid) {
28
+ if (pid === undefined)
29
+ return;
30
+ raf_1.default.cancel(ids[pid]);
31
+ delete ids[pid];
32
+ };
33
+ wrapperRaf.ids = ids; // export this for test usage
34
+ //# sourceMappingURL=raf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raf.js","sourceRoot":"","sources":["../../src/_util/raf.ts"],"names":[],"mappings":";;;;;AAAA,8CAAsB;AAMtB,IAAI,EAAE,GAAW,CAAC,CAAC;AACnB,MAAM,GAAG,GAAW,EAAE,CAAC;AAEvB,8CAA8C;AAC9C,SAAwB,UAAU,CAAC,QAAoB,EAAE,cAAsB,CAAC;IAC9E,MAAM,IAAI,GAAW,EAAE,EAAE,CAAC;IAC1B,IAAI,UAAU,GAAW,WAAW,CAAC;IAErC,SAAS,gBAAgB;QACvB,UAAU,IAAI,CAAC,CAAC;QAEhB,IAAI,UAAU,IAAI,CAAC,EAAE;YACnB,QAAQ,EAAE,CAAC;YACX,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;SAClB;aAAM;YACL,GAAG,CAAC,IAAI,CAAC,GAAG,IAAA,aAAG,EAAC,gBAAgB,CAAC,CAAC;SACnC;IACH,CAAC;IAED,GAAG,CAAC,IAAI,CAAC,GAAG,IAAA,aAAG,EAAC,gBAAgB,CAAC,CAAC;IAElC,OAAO,IAAI,CAAC;AACd,CAAC;AAlBD,6BAkBC;AAED,UAAU,CAAC,MAAM,GAAG,SAAS,MAAM,CAAC,GAAY;IAC9C,IAAI,GAAG,KAAK,SAAS;QAAE,OAAO;IAE9B,aAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;AAClB,CAAC,CAAC;AAEF,UAAU,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,6BAA6B","sourcesContent":["import raf from 'raf';\n\ninterface RafMap {\n [id: number]: number;\n}\n\nlet id: number = 0;\nconst ids: RafMap = {};\n\n// Support call raf with delay specified frame\nexport default function wrapperRaf(callback: () => void, delayFrames: number = 1): number {\n const myId: number = id++;\n let restFrames: number = delayFrames;\n\n function internalCallback() {\n restFrames -= 1;\n\n if (restFrames <= 0) {\n callback();\n delete ids[myId];\n } else {\n ids[myId] = raf(internalCallback);\n }\n }\n\n ids[myId] = raf(internalCallback);\n\n return myId;\n}\n\nwrapperRaf.cancel = function cancel(pid?: number) {\n if (pid === undefined) return;\n\n raf.cancel(ids[pid]);\n delete ids[pid];\n};\n\nwrapperRaf.ids = ids; // export this for test usage\n"]}
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare function cloneElement(element: React.ReactNode, ...restArgs: any[]): {} | null | undefined;
3
+ //# sourceMappingURL=reactNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNode.d.ts","sourceRoot":"","sources":["../../src/_util/reactNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,GAAG,QAAQ,EAAE,GAAG,EAAE,yBAIxE"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.cloneElement = void 0;
23
+ const React = __importStar(require("react"));
24
+ // eslint-disable-next-line import/prefer-default-export
25
+ function cloneElement(element, ...restArgs) {
26
+ if (!React.isValidElement(element))
27
+ return element;
28
+ return React.cloneElement(element, ...restArgs);
29
+ }
30
+ exports.cloneElement = cloneElement;
31
+ //# sourceMappingURL=reactNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNode.js","sourceRoot":"","sources":["../../src/_util/reactNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAE/B,wDAAwD;AACxD,SAAgB,YAAY,CAAC,OAAwB,EAAE,GAAG,QAAe;IACvE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAEnD,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,CAAC;AAClD,CAAC;AAJD,oCAIC","sourcesContent":["import * as React from 'react';\n\n// eslint-disable-next-line import/prefer-default-export\nexport function cloneElement(element: React.ReactNode, ...restArgs: any[]) {\n if (!React.isValidElement(element)) return element;\n\n return React.cloneElement(element, ...restArgs);\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare function fillRef<T>(ref: React.Ref<T>, node: T): void;
3
+ export declare function composeRef<T>(...refs: React.Ref<T>[]): React.Ref<T>;
4
+ //# sourceMappingURL=ref.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../src/_util/ref.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,QAMpD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAMnE"}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.composeRef = exports.fillRef = void 0;
4
+ require("react");
5
+ function fillRef(ref, node) {
6
+ if (typeof ref === 'function') {
7
+ ref(node);
8
+ }
9
+ else if (typeof ref === 'object' && ref && 'current' in ref) {
10
+ ref.current = node;
11
+ }
12
+ }
13
+ exports.fillRef = fillRef;
14
+ function composeRef(...refs) {
15
+ return (node) => {
16
+ refs.forEach(ref => {
17
+ fillRef(ref, node);
18
+ });
19
+ };
20
+ }
21
+ exports.composeRef = composeRef;
22
+ //# sourceMappingURL=ref.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ref.js","sourceRoot":"","sources":["../../src/_util/ref.ts"],"names":[],"mappings":";;;AAAA,iBAA0B;AAE1B,SAAgB,OAAO,CAAI,GAAiB,EAAE,IAAO;IACnD,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;QAC7B,GAAG,CAAC,IAAI,CAAC,CAAC;KACX;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,SAAS,IAAI,GAAG,EAAE;QAC5D,GAAW,CAAC,OAAO,GAAG,IAAI,CAAC;KAC7B;AACH,CAAC;AAND,0BAMC;AAED,SAAgB,UAAU,CAAI,GAAG,IAAoB;IACnD,OAAO,CAAC,IAAO,EAAE,EAAE;QACjB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACjB,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAND,gCAMC","sourcesContent":["import React from 'react';\n\nexport function fillRef<T>(ref: React.Ref<T>, node: T) {\n if (typeof ref === 'function') {\n ref(node);\n } else if (typeof ref === 'object' && ref && 'current' in ref) {\n (ref as any).current = node;\n }\n}\n\nexport function composeRef<T>(...refs: React.Ref<T>[]): React.Ref<T> {\n return (node: T) => {\n refs.forEach(ref => {\n fillRef(ref, node);\n });\n };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ export declare type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
2
+ export declare type BreakpointMap = Partial<Record<Breakpoint, string>>;
3
+ export declare const responsiveArray: Breakpoint[];
4
+ export declare const responsiveMap: BreakpointMap;
5
+ declare type SubscribeFunc = (screens: BreakpointMap) => void;
6
+ declare const responsiveObserve: {
7
+ dispatch(pointMap: BreakpointMap): boolean;
8
+ subscribe(func: SubscribeFunc): string;
9
+ unsubscribe(token: string): void;
10
+ unregister(): void;
11
+ register(): void;
12
+ };
13
+ export default responsiveObserve;
14
+ //# sourceMappingURL=responsiveObserve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveObserve.d.ts","sourceRoot":"","sources":["../../src/_util/responsiveObserve.ts"],"names":[],"mappings":"AAoBA,oBAAY,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAClE,oBAAY,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe,EAAE,UAAU,EAA0C,CAAC;AAEnF,eAAO,MAAM,aAAa,EAAE,aAO3B,CAAC;AAEF,aAAK,aAAa,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC;AAStD,QAAA,MAAM,iBAAiB;uBACF,aAAa;oBAYhB,aAAa;uBAYV,MAAM;;;CAiC1B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.responsiveMap = exports.responsiveArray = void 0;
4
+ // matchMedia polyfill for
5
+ // https://github.com/WickyNilliams/enquire.js/issues/82
6
+ let enquire;
7
+ // TODO: Will be removed in antd 4.0 because we will no longer support ie9
8
+ if (typeof window !== 'undefined') {
9
+ const matchMediaPolyfill = (mediaQuery) => {
10
+ return {
11
+ media: mediaQuery,
12
+ matches: false,
13
+ addListener() { },
14
+ removeListener() { },
15
+ };
16
+ };
17
+ // ref: https://github.com/ant-design/ant-design/issues/18774
18
+ if (!window.matchMedia)
19
+ window.matchMedia = matchMediaPolyfill;
20
+ // eslint-disable-next-line global-require
21
+ enquire = require('enquire.js');
22
+ }
23
+ exports.responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
24
+ exports.responsiveMap = {
25
+ xs: '(max-width: 575px)',
26
+ sm: '(min-width: 576px)',
27
+ md: '(min-width: 768px)',
28
+ lg: '(min-width: 992px)',
29
+ xl: '(min-width: 1200px)',
30
+ xxl: '(min-width: 1600px)',
31
+ };
32
+ let subscribers = [];
33
+ let subUid = -1;
34
+ let screens = {};
35
+ const responsiveObserve = {
36
+ dispatch(pointMap) {
37
+ screens = pointMap;
38
+ if (subscribers.length < 1) {
39
+ return false;
40
+ }
41
+ subscribers.forEach(item => {
42
+ item.func(screens);
43
+ });
44
+ return true;
45
+ },
46
+ subscribe(func) {
47
+ if (subscribers.length === 0) {
48
+ this.register();
49
+ }
50
+ const token = (++subUid).toString();
51
+ subscribers.push({
52
+ token,
53
+ func,
54
+ });
55
+ func(screens);
56
+ return token;
57
+ },
58
+ unsubscribe(token) {
59
+ subscribers = subscribers.filter(item => item.token !== token);
60
+ if (subscribers.length === 0) {
61
+ this.unregister();
62
+ }
63
+ },
64
+ unregister() {
65
+ Object.keys(exports.responsiveMap).map((screen) => enquire.unregister(exports.responsiveMap[screen]));
66
+ },
67
+ register() {
68
+ Object.keys(exports.responsiveMap).map((screen) => enquire.register(exports.responsiveMap[screen], {
69
+ match: () => {
70
+ const pointMap = Object.assign(Object.assign({}, screens), { [screen]: true });
71
+ this.dispatch(pointMap);
72
+ },
73
+ unmatch: () => {
74
+ const pointMap = Object.assign(Object.assign({}, screens), { [screen]: false });
75
+ this.dispatch(pointMap);
76
+ },
77
+ // Keep a empty destory to avoid triggering unmatch when unregister
78
+ destroy() { },
79
+ }));
80
+ },
81
+ };
82
+ exports.default = responsiveObserve;
83
+ //# sourceMappingURL=responsiveObserve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveObserve.js","sourceRoot":"","sources":["../../src/_util/responsiveObserve.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,wDAAwD;AACxD,IAAI,OAAY,CAAC;AAEjB,0EAA0E;AAC1E,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IACjC,MAAM,kBAAkB,GAAG,CAAC,UAAkB,EAAE,EAAE;QAChD,OAAO;YACL,KAAK,EAAE,UAAU;YACjB,OAAO,EAAE,KAAK;YACd,WAAW,KAAI,CAAC;YAChB,cAAc,KAAI,CAAC;SACpB,CAAC;IACJ,CAAC,CAAC;IACF,6DAA6D;IAC7D,IAAI,CAAC,MAAM,CAAC,UAAU;QAAE,MAAM,CAAC,UAAU,GAAG,kBAAyB,CAAC;IACtE,0CAA0C;IAC1C,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACjC;AAKY,QAAA,eAAe,GAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAEtE,QAAA,aAAa,GAAkB;IAC1C,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,oBAAoB;IACxB,EAAE,EAAE,qBAAqB;IACzB,GAAG,EAAE,qBAAqB;CAC3B,CAAC;AAIF,IAAI,WAAW,GAGV,EAAE,CAAC;AACR,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC;AAChB,IAAI,OAAO,GAAG,EAAE,CAAC;AAEjB,MAAM,iBAAiB,GAAG;IACxB,QAAQ,CAAC,QAAuB;QAC9B,OAAO,GAAG,QAAQ,CAAC;QACnB,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC;SACd;QAED,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;YACzB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;IACD,SAAS,CAAC,IAAmB;QAC3B,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjB;QACD,MAAM,KAAK,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAC;QACpC,WAAW,CAAC,IAAI,CAAC;YACf,KAAK;YACL,IAAI;SACL,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IACD,WAAW,CAAC,KAAa;QACvB,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;QAC/D,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,IAAI,CAAC,UAAU,EAAE,CAAC;SACnB;IACH,CAAC;IACD,UAAU;QACR,MAAM,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,CAAC,MAAkB,EAAE,EAAE,CACpD,OAAO,CAAC,UAAU,CAAC,qBAAa,CAAC,MAAM,CAAC,CAAC,CAC1C,CAAC;IACJ,CAAC;IACD,QAAQ;QACN,MAAM,CAAC,IAAI,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,CAAC,MAAkB,EAAE,EAAE,CACpD,OAAO,CAAC,QAAQ,CAAC,qBAAa,CAAC,MAAM,CAAC,EAAE;YACtC,KAAK,EAAE,GAAG,EAAE;gBACV,MAAM,QAAQ,mCACT,OAAO,KACV,CAAC,MAAM,CAAC,EAAE,IAAI,GACf,CAAC;gBACF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;YACD,OAAO,EAAE,GAAG,EAAE;gBACZ,MAAM,QAAQ,mCACT,OAAO,KACV,CAAC,MAAM,CAAC,EAAE,KAAK,GAChB,CAAC;gBACF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAC1B,CAAC;YACD,mEAAmE;YACnE,OAAO,KAAI,CAAC;SACb,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,kBAAe,iBAAiB,CAAC","sourcesContent":["// matchMedia polyfill for\n// https://github.com/WickyNilliams/enquire.js/issues/82\nlet enquire: any;\n\n// TODO: Will be removed in antd 4.0 because we will no longer support ie9\nif (typeof window !== 'undefined') {\n const matchMediaPolyfill = (mediaQuery: string) => {\n return {\n media: mediaQuery,\n matches: false,\n addListener() {},\n removeListener() {},\n };\n };\n // ref: https://github.com/ant-design/ant-design/issues/18774\n if (!window.matchMedia) window.matchMedia = matchMediaPolyfill as any;\n // eslint-disable-next-line global-require\n enquire = require('enquire.js');\n}\n\nexport type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';\nexport type BreakpointMap = Partial<Record<Breakpoint, string>>;\n\nexport const responsiveArray: Breakpoint[] = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\n\nexport const responsiveMap: BreakpointMap = {\n xs: '(max-width: 575px)',\n sm: '(min-width: 576px)',\n md: '(min-width: 768px)',\n lg: '(min-width: 992px)',\n xl: '(min-width: 1200px)',\n xxl: '(min-width: 1600px)',\n};\n\ntype SubscribeFunc = (screens: BreakpointMap) => void;\n\nlet subscribers: Array<{\n token: string;\n func: SubscribeFunc;\n}> = [];\nlet subUid = -1;\nlet screens = {};\n\nconst responsiveObserve = {\n dispatch(pointMap: BreakpointMap) {\n screens = pointMap;\n if (subscribers.length < 1) {\n return false;\n }\n\n subscribers.forEach(item => {\n item.func(screens);\n });\n\n return true;\n },\n subscribe(func: SubscribeFunc) {\n if (subscribers.length === 0) {\n this.register();\n }\n const token = (++subUid).toString();\n subscribers.push({\n token,\n func,\n });\n func(screens);\n return token;\n },\n unsubscribe(token: string) {\n subscribers = subscribers.filter(item => item.token !== token);\n if (subscribers.length === 0) {\n this.unregister();\n }\n },\n unregister() {\n Object.keys(responsiveMap).map((screen: Breakpoint) =>\n enquire.unregister(responsiveMap[screen]),\n );\n },\n register() {\n Object.keys(responsiveMap).map((screen: Breakpoint) =>\n enquire.register(responsiveMap[screen], {\n match: () => {\n const pointMap = {\n ...screens,\n [screen]: true,\n };\n this.dispatch(pointMap);\n },\n unmatch: () => {\n const pointMap = {\n ...screens,\n [screen]: false,\n };\n this.dispatch(pointMap);\n },\n // Keep a empty destory to avoid triggering unmatch when unregister\n destroy() {},\n }),\n );\n },\n};\n\nexport default responsiveObserve;\n"]}
@@ -0,0 +1,11 @@
1
+ interface ScrollToOptions {
2
+ /** Scroll container, default as window */
3
+ getContainer?: () => HTMLElement | Window;
4
+ /** Scroll end callback */
5
+ callback?: () => any;
6
+ /** Animation duration, default as 450 */
7
+ duration?: number;
8
+ }
9
+ export default function scrollTo(y: number, options?: ScrollToOptions): void;
10
+ export {};
11
+ //# sourceMappingURL=scrollTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollTo.d.ts","sourceRoot":"","sources":["../../src/_util/scrollTo.ts"],"names":[],"mappings":"AAIA,UAAU,eAAe;IACvB,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,WAAW,GAAG,MAAM,CAAC;IAC1C,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC;IACrB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,QAuBxE"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const raf_1 = __importDefault(require("raf"));
7
+ const getScroll_1 = __importDefault(require("./getScroll"));
8
+ const easings_1 = require("./easings");
9
+ function scrollTo(y, options = {}) {
10
+ const { getContainer = () => window, callback, duration = 450 } = options;
11
+ const container = getContainer();
12
+ const scrollTop = (0, getScroll_1.default)(container, true);
13
+ const startTime = Date.now();
14
+ const frameFunc = () => {
15
+ const timestamp = Date.now();
16
+ const time = timestamp - startTime;
17
+ const nextScrollTop = (0, easings_1.easeInOutCubic)(time > duration ? duration : time, scrollTop, y, duration);
18
+ if (container === window) {
19
+ window.scrollTo(window.pageXOffset, nextScrollTop);
20
+ }
21
+ else {
22
+ container.scrollTop = nextScrollTop;
23
+ }
24
+ if (time < duration) {
25
+ (0, raf_1.default)(frameFunc);
26
+ }
27
+ else if (typeof callback === 'function') {
28
+ callback();
29
+ }
30
+ };
31
+ (0, raf_1.default)(frameFunc);
32
+ }
33
+ exports.default = scrollTo;
34
+ //# sourceMappingURL=scrollTo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollTo.js","sourceRoot":"","sources":["../../src/_util/scrollTo.ts"],"names":[],"mappings":";;;;;AAAA,8CAAsB;AACtB,4DAAoC;AACpC,uCAA2C;AAW3C,SAAwB,QAAQ,CAAC,CAAS,EAAE,UAA2B,EAAE;IACvE,MAAM,EAAE,YAAY,GAAG,GAAG,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC;IAE1E,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,SAAS,GAAG,IAAA,mBAAS,EAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,MAAM,SAAS,GAAG,GAAG,EAAE;QACrB,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,SAAS,GAAG,SAAS,CAAC;QACnC,MAAM,aAAa,GAAG,IAAA,wBAAc,EAAC,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;QAChG,IAAI,SAAS,KAAK,MAAM,EAAE;YACxB,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;SACpD;aAAM;YACJ,SAAyB,CAAC,SAAS,GAAG,aAAa,CAAC;SACtD;QACD,IAAI,IAAI,GAAG,QAAQ,EAAE;YACnB,IAAA,aAAG,EAAC,SAAS,CAAC,CAAC;SAChB;aAAM,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE;YACzC,QAAQ,EAAE,CAAC;SACZ;IACH,CAAC,CAAC;IACF,IAAA,aAAG,EAAC,SAAS,CAAC,CAAC;AACjB,CAAC;AAvBD,2BAuBC","sourcesContent":["import raf from 'raf';\nimport getScroll from './getScroll';\nimport { easeInOutCubic } from './easings';\n\ninterface ScrollToOptions {\n /** Scroll container, default as window */\n getContainer?: () => HTMLElement | Window;\n /** Scroll end callback */\n callback?: () => any;\n /** Animation duration, default as 450 */\n duration?: number;\n}\n\nexport default function scrollTo(y: number, options: ScrollToOptions = {}) {\n const { getContainer = () => window, callback, duration = 450 } = options;\n\n const container = getContainer();\n const scrollTop = getScroll(container, true);\n const startTime = Date.now();\n\n const frameFunc = () => {\n const timestamp = Date.now();\n const time = timestamp - startTime;\n const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);\n if (container === window) {\n window.scrollTo(window.pageXOffset, nextScrollTop);\n } else {\n (container as HTMLElement).scrollTop = nextScrollTop;\n }\n if (time < duration) {\n raf(frameFunc);\n } else if (typeof callback === 'function') {\n callback();\n }\n };\n raf(frameFunc);\n}\n"]}
@@ -0,0 +1,4 @@
1
+ declare const isStyleSupport: (styleName: string | Array<string>) => boolean;
2
+ export declare const isFlexSupported: boolean;
3
+ export default isStyleSupport;
4
+ //# sourceMappingURL=styleChecker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleChecker.d.ts","sourceRoot":"","sources":["../../src/_util/styleChecker.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,cAAe,MAAM,GAAG,MAAM,MAAM,CAAC,KAAG,OAQ3D,CAAC;AAEF,eAAO,MAAM,eAAe,SAA2D,CAAC;AAExF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isFlexSupported = void 0;
4
+ const isStyleSupport = (styleName) => {
5
+ if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
6
+ const styleNameList = Array.isArray(styleName) ? styleName : [styleName];
7
+ const { documentElement } = window.document;
8
+ return styleNameList.some(name => name in documentElement.style);
9
+ }
10
+ return false;
11
+ };
12
+ exports.isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);
13
+ exports.default = isStyleSupport;
14
+ //# sourceMappingURL=styleChecker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleChecker.js","sourceRoot":"","sources":["../../src/_util/styleChecker.tsx"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAAG,CAAC,SAAiC,EAAW,EAAE;IACpE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,EAAE;QACvF,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACzE,MAAM,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC;QAE5C,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;KAClE;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEW,QAAA,eAAe,GAAG,cAAc,CAAC,CAAC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAExF,kBAAe,cAAc,CAAC","sourcesContent":["const isStyleSupport = (styleName: string | Array<string>): boolean => {\n if (typeof window !== 'undefined' && window.document && window.document.documentElement) {\n const styleNameList = Array.isArray(styleName) ? styleName : [styleName];\n const { documentElement } = window.document;\n\n return styleNameList.some(name => name in documentElement.style);\n }\n return false;\n};\n\nexport const isFlexSupported = isStyleSupport(['flex', 'webkitFlex', 'Flex', 'msFlex']);\n\nexport default isStyleSupport;\n"]}