tntd 2.7.31 → 2.7.33

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 (535) hide show
  1. package/es/form/form.js +37 -38
  2. package/es/form/form.js.map +1 -1
  3. package/es/tntd-form/_util/context.js +12 -0
  4. package/es/tntd-form/_util/context.js.map +1 -0
  5. package/es/tntd-form/_util/defaultRenderEmpty.js +31 -0
  6. package/es/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  7. package/es/tntd-form/_util/hooks/useFlexGapSupport.js +9 -0
  8. package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  9. package/es/tntd-form/_util/hooks/useForceUpdate.js +5 -0
  10. package/es/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  11. package/es/tntd-form/_util/motion.js +47 -0
  12. package/es/tntd-form/_util/motion.js.map +1 -0
  13. package/es/tntd-form/_util/reactNode.js +16 -0
  14. package/es/tntd-form/_util/reactNode.js.map +1 -0
  15. package/es/tntd-form/_util/responsiveObserve.js +59 -0
  16. package/es/tntd-form/_util/responsiveObserve.js.map +1 -0
  17. package/es/tntd-form/_util/scrollTo.js +35 -0
  18. package/es/tntd-form/_util/scrollTo.js.map +1 -0
  19. package/es/tntd-form/_util/styleChecker.js +26 -0
  20. package/es/tntd-form/_util/styleChecker.js.map +1 -0
  21. package/es/tntd-form/_util/type.js +3 -0
  22. package/es/tntd-form/_util/type.js.map +1 -0
  23. package/es/tntd-form/_util/warning.js +5 -0
  24. package/es/tntd-form/_util/warning.js.map +1 -0
  25. package/es/tntd-form/_util/wave.js +168 -0
  26. package/es/tntd-form/_util/wave.js.map +1 -0
  27. package/es/tntd-form/grid/RowContext.js.map +1 -0
  28. package/es/{grid-v4 → tntd-form/grid}/col.js +1 -0
  29. package/es/tntd-form/grid/col.js.map +1 -0
  30. package/es/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  31. package/es/tntd-form/grid/index.js.map +1 -0
  32. package/es/{grid-v4 → tntd-form/grid}/row.js +0 -1
  33. package/es/tntd-form/grid/row.js.map +1 -0
  34. package/es/tntd-form/grid/style/index.js.map +1 -0
  35. package/es/tntd-form/tntd-form.stories.js +836 -0
  36. package/es/tntd-form/tntd-form.stories.js.map +1 -0
  37. package/lib/form/form.d.ts +1 -2
  38. package/lib/form/form.d.ts.map +1 -1
  39. package/lib/form/form.js +41 -40
  40. package/lib/form/form.js.map +1 -1
  41. package/lib/tntd-form/_util/context.d.ts +42 -0
  42. package/lib/tntd-form/_util/context.d.ts.map +1 -0
  43. package/lib/tntd-form/_util/context.js +22 -0
  44. package/lib/tntd-form/_util/context.js.map +1 -0
  45. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts +5 -0
  46. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -0
  47. package/lib/tntd-form/_util/defaultRenderEmpty.js +44 -0
  48. package/lib/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  49. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +3 -0
  50. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
  51. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js +28 -0
  52. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  53. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +3 -0
  54. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +1 -0
  55. package/lib/tntd-form/_util/hooks/useForceUpdate.js +24 -0
  56. package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  57. package/lib/tntd-form/_util/motion.d.ts +9 -0
  58. package/lib/tntd-form/_util/motion.d.ts.map +1 -0
  59. package/lib/tntd-form/_util/motion.js +59 -0
  60. package/lib/tntd-form/_util/motion.js.map +1 -0
  61. package/lib/tntd-form/_util/reactNode.d.ts +9 -0
  62. package/lib/tntd-form/_util/reactNode.d.ts.map +1 -0
  63. package/lib/tntd-form/_util/reactNode.js +27 -0
  64. package/lib/tntd-form/_util/reactNode.js.map +1 -0
  65. package/lib/tntd-form/_util/responsiveObserve.d.ts +22 -0
  66. package/lib/tntd-form/_util/responsiveObserve.d.ts.map +1 -0
  67. package/lib/tntd-form/_util/responsiveObserve.js +73 -0
  68. package/lib/tntd-form/_util/responsiveObserve.js.map +1 -0
  69. package/lib/tntd-form/_util/scrollTo.d.ts +1 -0
  70. package/lib/tntd-form/_util/scrollTo.d.ts.map +1 -0
  71. package/lib/tntd-form/_util/scrollTo.js +35 -0
  72. package/lib/tntd-form/_util/scrollTo.js.map +1 -0
  73. package/lib/tntd-form/_util/styleChecker.d.ts +5 -0
  74. package/lib/tntd-form/_util/styleChecker.d.ts.map +1 -0
  75. package/lib/tntd-form/_util/styleChecker.js +42 -0
  76. package/lib/tntd-form/_util/styleChecker.js.map +1 -0
  77. package/lib/tntd-form/_util/type.d.ts +4 -0
  78. package/lib/tntd-form/_util/type.d.ts.map +1 -0
  79. package/lib/tntd-form/_util/type.js +21 -0
  80. package/lib/tntd-form/_util/type.js.map +1 -0
  81. package/lib/tntd-form/_util/warning.d.ts +5 -0
  82. package/lib/tntd-form/_util/warning.d.ts.map +1 -0
  83. package/lib/tntd-form/_util/warning.js +20 -0
  84. package/lib/tntd-form/_util/warning.js.map +1 -0
  85. package/lib/tntd-form/_util/wave.d.ts +1 -0
  86. package/lib/tntd-form/_util/wave.d.ts.map +1 -0
  87. package/lib/tntd-form/_util/wave.js +168 -0
  88. package/lib/tntd-form/_util/wave.js.map +1 -0
  89. package/lib/tntd-form/grid/RowContext.d.ts.map +1 -0
  90. package/lib/tntd-form/grid/RowContext.js.map +1 -0
  91. package/lib/tntd-form/grid/col.d.ts.map +1 -0
  92. package/lib/tntd-form/grid/col.js.map +1 -0
  93. package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +1 -0
  94. package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  95. package/lib/tntd-form/grid/index.d.ts.map +1 -0
  96. package/lib/tntd-form/grid/index.js.map +1 -0
  97. package/lib/tntd-form/grid/row.d.ts.map +1 -0
  98. package/lib/{grid-v4 → tntd-form/grid}/row.js +0 -1
  99. package/lib/tntd-form/grid/row.js.map +1 -0
  100. package/lib/tntd-form/grid/style/index.d.ts.map +1 -0
  101. package/lib/tntd-form/grid/style/index.js.map +1 -0
  102. package/lib/tntd-form/tntd-form.stories.d.ts +33 -0
  103. package/lib/tntd-form/tntd-form.stories.d.ts.map +1 -0
  104. package/lib/tntd-form/tntd-form.stories.js +943 -0
  105. package/lib/tntd-form/tntd-form.stories.js.map +1 -0
  106. package/package.json +1 -1
  107. package/es/affix/style/index.js.map +0 -1
  108. package/es/alert/style/index.js +0 -2
  109. package/es/alert/style/index.js.map +0 -1
  110. package/es/anchor/style/index.js +0 -4
  111. package/es/anchor/style/index.js.map +0 -1
  112. package/es/auto-complete/style/index.js +0 -5
  113. package/es/auto-complete/style/index.js.map +0 -1
  114. package/es/avatar/style/index.js +0 -2
  115. package/es/avatar/style/index.js.map +0 -1
  116. package/es/back-top/style/index.js +0 -2
  117. package/es/back-top/style/index.js.map +0 -1
  118. package/es/badge/style/index.js +0 -2
  119. package/es/badge/style/index.js.map +0 -1
  120. package/es/breadcrumb/style/index.js +0 -4
  121. package/es/breadcrumb/style/index.js.map +0 -1
  122. package/es/button/style/index.js +0 -2
  123. package/es/button/style/index.js.map +0 -1
  124. package/es/calendar/style/index.js +0 -5
  125. package/es/calendar/style/index.js.map +0 -1
  126. package/es/card/style/index.js +0 -6
  127. package/es/card/style/index.js.map +0 -1
  128. package/es/carousel/style/index.js +0 -2
  129. package/es/carousel/style/index.js.map +0 -1
  130. package/es/cascader/style/index.js +0 -5
  131. package/es/cascader/style/index.js.map +0 -1
  132. package/es/checkbox/style/index.js +0 -2
  133. package/es/checkbox/style/index.js.map +0 -1
  134. package/es/col/style/index.js +0 -4
  135. package/es/col/style/index.js.map +0 -1
  136. package/es/collapse/style/index.js +0 -2
  137. package/es/collapse/style/index.js.map +0 -1
  138. package/es/comment/style/index.js +0 -2
  139. package/es/comment/style/index.js.map +0 -1
  140. package/es/config-provider/style/index.js +0 -1
  141. package/es/config-provider/style/index.js.map +0 -1
  142. package/es/date-picker/style/index.js +0 -7
  143. package/es/date-picker/style/index.js.map +0 -1
  144. package/es/descriptions/style/index.js +0 -2
  145. package/es/descriptions/style/index.js.map +0 -1
  146. package/es/divider/style/index.js +0 -2
  147. package/es/divider/style/index.js.map +0 -1
  148. package/es/drawer/style/index.js +0 -3
  149. package/es/drawer/style/index.js.map +0 -1
  150. package/es/dropdown/style/index.js +0 -4
  151. package/es/dropdown/style/index.js.map +0 -1
  152. package/es/empty/style/index.js +0 -2
  153. package/es/empty/style/index.js.map +0 -1
  154. package/es/form/style/index.js +0 -4
  155. package/es/form/style/index.js.map +0 -1
  156. package/es/grid-v4/RowContext.js.map +0 -1
  157. package/es/grid-v4/col.js.map +0 -1
  158. package/es/grid-v4/hooks/useBreakpoint.js.map +0 -1
  159. package/es/grid-v4/index.js.map +0 -1
  160. package/es/grid-v4/row.js.map +0 -1
  161. package/es/grid-v4/style/index.js +0 -2
  162. package/es/grid-v4/style/index.js.map +0 -1
  163. package/es/icon/style/index.js +0 -2
  164. package/es/icon/style/index.js.map +0 -1
  165. package/es/input/style/index.js +0 -4
  166. package/es/input/style/index.js.map +0 -1
  167. package/es/input-number/style/index.js +0 -2
  168. package/es/input-number/style/index.js.map +0 -1
  169. package/es/layout/style/index.js +0 -2
  170. package/es/layout/style/index.js.map +0 -1
  171. package/es/list/style/index.js +0 -7
  172. package/es/list/style/index.js.map +0 -1
  173. package/es/locale-provider/style/index.js +0 -1
  174. package/es/locale-provider/style/index.js.map +0 -1
  175. package/es/mentions/style/index.js +0 -4
  176. package/es/mentions/style/index.js.map +0 -1
  177. package/es/menu/style/index.js +0 -5
  178. package/es/menu/style/index.js.map +0 -1
  179. package/es/message/style/index.js +0 -2
  180. package/es/message/style/index.js.map +0 -1
  181. package/es/modal/style/index.js +0 -4
  182. package/es/modal/style/index.js.map +0 -1
  183. package/es/notification/style/index.js +0 -2
  184. package/es/notification/style/index.js.map +0 -1
  185. package/es/page-header/style/index.js +0 -4
  186. package/es/page-header/style/index.js.map +0 -1
  187. package/es/pagination/style/index.js +0 -4
  188. package/es/pagination/style/index.js.map +0 -1
  189. package/es/popconfirm/style/index.js +0 -5
  190. package/es/popconfirm/style/index.js.map +0 -1
  191. package/es/popover/style/index.js +0 -4
  192. package/es/popover/style/index.js.map +0 -1
  193. package/es/progress/style/index.js +0 -2
  194. package/es/progress/style/index.js.map +0 -1
  195. package/es/radio/style/index.js +0 -2
  196. package/es/radio/style/index.js.map +0 -1
  197. package/es/rate/style/index.js +0 -4
  198. package/es/rate/style/index.js.map +0 -1
  199. package/es/result/style/index.js +0 -2
  200. package/es/result/style/index.js.map +0 -1
  201. package/es/row/style/index.js +0 -4
  202. package/es/row/style/index.js.map +0 -1
  203. package/es/select/style/index.js +0 -4
  204. package/es/select/style/index.js.map +0 -1
  205. package/es/skeleton/style/index.js +0 -2
  206. package/es/skeleton/style/index.js.map +0 -1
  207. package/es/slider/style/index.js +0 -4
  208. package/es/slider/style/index.js.map +0 -1
  209. package/es/spin/style/index.js +0 -2
  210. package/es/spin/style/index.js.map +0 -1
  211. package/es/statistic/style/index.js +0 -2
  212. package/es/statistic/style/index.js.map +0 -1
  213. package/es/steps/style/index.js +0 -2
  214. package/es/steps/style/index.js.map +0 -1
  215. package/es/style/index.js +0 -1
  216. package/es/style/index.js.map +0 -1
  217. package/es/style/v2-compatible-reset.js +0 -1
  218. package/es/style/v2-compatible-reset.js.map +0 -1
  219. package/es/switch/style/index.js +0 -2
  220. package/es/switch/style/index.js.map +0 -1
  221. package/es/table/style/index.js +0 -10
  222. package/es/table/style/index.js.map +0 -1
  223. package/es/tabs/style/index.js +0 -2
  224. package/es/tabs/style/index.js.map +0 -1
  225. package/es/tag/style/index.js +0 -2
  226. package/es/tag/style/index.js.map +0 -1
  227. package/es/time-picker/style/index.js +0 -2
  228. package/es/time-picker/style/index.js.map +0 -1
  229. package/es/timeline/style/index.js +0 -2
  230. package/es/timeline/style/index.js.map +0 -1
  231. package/es/tooltip/style/index.js +0 -2
  232. package/es/tooltip/style/index.js.map +0 -1
  233. package/es/transfer/style/index.js +0 -7
  234. package/es/transfer/style/index.js.map +0 -1
  235. package/es/tree/style/index.js +0 -2
  236. package/es/tree/style/index.js.map +0 -1
  237. package/es/tree-select/style/index.js +0 -6
  238. package/es/tree-select/style/index.js.map +0 -1
  239. package/es/typography/style/index.js +0 -5
  240. package/es/typography/style/index.js.map +0 -1
  241. package/es/upload/style/index.js +0 -5
  242. package/es/upload/style/index.js.map +0 -1
  243. package/es/version/style/index.js +0 -2
  244. package/es/version/style/index.js.map +0 -1
  245. package/lib/affix/style/index.d.ts.map +0 -1
  246. package/lib/affix/style/index.js.map +0 -1
  247. package/lib/alert/style/index.d.ts +0 -3
  248. package/lib/alert/style/index.d.ts.map +0 -1
  249. package/lib/alert/style/index.js +0 -4
  250. package/lib/alert/style/index.js.map +0 -1
  251. package/lib/anchor/style/index.d.ts +0 -4
  252. package/lib/anchor/style/index.d.ts.map +0 -1
  253. package/lib/anchor/style/index.js +0 -5
  254. package/lib/anchor/style/index.js.map +0 -1
  255. package/lib/auto-complete/style/index.d.ts +0 -5
  256. package/lib/auto-complete/style/index.d.ts.map +0 -1
  257. package/lib/auto-complete/style/index.js +0 -6
  258. package/lib/auto-complete/style/index.js.map +0 -1
  259. package/lib/avatar/style/index.d.ts +0 -3
  260. package/lib/avatar/style/index.d.ts.map +0 -1
  261. package/lib/avatar/style/index.js +0 -4
  262. package/lib/avatar/style/index.js.map +0 -1
  263. package/lib/back-top/style/index.d.ts +0 -3
  264. package/lib/back-top/style/index.d.ts.map +0 -1
  265. package/lib/back-top/style/index.js +0 -4
  266. package/lib/back-top/style/index.js.map +0 -1
  267. package/lib/badge/style/index.d.ts +0 -3
  268. package/lib/badge/style/index.d.ts.map +0 -1
  269. package/lib/badge/style/index.js +0 -4
  270. package/lib/badge/style/index.js.map +0 -1
  271. package/lib/breadcrumb/style/index.d.ts +0 -5
  272. package/lib/breadcrumb/style/index.d.ts.map +0 -1
  273. package/lib/breadcrumb/style/index.js +0 -6
  274. package/lib/breadcrumb/style/index.js.map +0 -1
  275. package/lib/button/style/index.d.ts +0 -3
  276. package/lib/button/style/index.d.ts.map +0 -1
  277. package/lib/button/style/index.js +0 -4
  278. package/lib/button/style/index.js.map +0 -1
  279. package/lib/calendar/style/index.d.ts +0 -5
  280. package/lib/calendar/style/index.d.ts.map +0 -1
  281. package/lib/calendar/style/index.js +0 -6
  282. package/lib/calendar/style/index.js.map +0 -1
  283. package/lib/card/style/index.d.ts +0 -6
  284. package/lib/card/style/index.d.ts.map +0 -1
  285. package/lib/card/style/index.js +0 -7
  286. package/lib/card/style/index.js.map +0 -1
  287. package/lib/carousel/style/index.d.ts +0 -3
  288. package/lib/carousel/style/index.d.ts.map +0 -1
  289. package/lib/carousel/style/index.js +0 -4
  290. package/lib/carousel/style/index.js.map +0 -1
  291. package/lib/cascader/style/index.d.ts +0 -5
  292. package/lib/cascader/style/index.d.ts.map +0 -1
  293. package/lib/cascader/style/index.js +0 -6
  294. package/lib/cascader/style/index.js.map +0 -1
  295. package/lib/checkbox/style/index.d.ts +0 -3
  296. package/lib/checkbox/style/index.d.ts.map +0 -1
  297. package/lib/checkbox/style/index.js +0 -4
  298. package/lib/checkbox/style/index.js.map +0 -1
  299. package/lib/col/style/index.d.ts +0 -3
  300. package/lib/col/style/index.d.ts.map +0 -1
  301. package/lib/col/style/index.js +0 -4
  302. package/lib/col/style/index.js.map +0 -1
  303. package/lib/collapse/style/index.d.ts +0 -3
  304. package/lib/collapse/style/index.d.ts.map +0 -1
  305. package/lib/collapse/style/index.js +0 -4
  306. package/lib/collapse/style/index.js.map +0 -1
  307. package/lib/comment/style/index.d.ts +0 -3
  308. package/lib/comment/style/index.d.ts.map +0 -1
  309. package/lib/comment/style/index.js +0 -4
  310. package/lib/comment/style/index.js.map +0 -1
  311. package/lib/config-provider/style/index.d.ts +0 -2
  312. package/lib/config-provider/style/index.d.ts.map +0 -1
  313. package/lib/config-provider/style/index.js +0 -3
  314. package/lib/config-provider/style/index.js.map +0 -1
  315. package/lib/date-picker/style/index.d.ts +0 -6
  316. package/lib/date-picker/style/index.d.ts.map +0 -1
  317. package/lib/date-picker/style/index.js +0 -7
  318. package/lib/date-picker/style/index.js.map +0 -1
  319. package/lib/descriptions/style/index.d.ts +0 -3
  320. package/lib/descriptions/style/index.d.ts.map +0 -1
  321. package/lib/descriptions/style/index.js +0 -4
  322. package/lib/descriptions/style/index.js.map +0 -1
  323. package/lib/divider/style/index.d.ts +0 -3
  324. package/lib/divider/style/index.d.ts.map +0 -1
  325. package/lib/divider/style/index.js +0 -4
  326. package/lib/divider/style/index.js.map +0 -1
  327. package/lib/drawer/style/index.d.ts +0 -3
  328. package/lib/drawer/style/index.d.ts.map +0 -1
  329. package/lib/drawer/style/index.js +0 -4
  330. package/lib/drawer/style/index.js.map +0 -1
  331. package/lib/dropdown/style/index.d.ts +0 -4
  332. package/lib/dropdown/style/index.d.ts.map +0 -1
  333. package/lib/dropdown/style/index.js +0 -5
  334. package/lib/dropdown/style/index.js.map +0 -1
  335. package/lib/empty/style/index.d.ts +0 -3
  336. package/lib/empty/style/index.d.ts.map +0 -1
  337. package/lib/empty/style/index.js +0 -4
  338. package/lib/empty/style/index.js.map +0 -1
  339. package/lib/form/style/index.d.ts +0 -4
  340. package/lib/form/style/index.d.ts.map +0 -1
  341. package/lib/form/style/index.js +0 -5
  342. package/lib/form/style/index.js.map +0 -1
  343. package/lib/grid-v4/RowContext.d.ts.map +0 -1
  344. package/lib/grid-v4/RowContext.js.map +0 -1
  345. package/lib/grid-v4/col.d.ts.map +0 -1
  346. package/lib/grid-v4/col.js.map +0 -1
  347. package/lib/grid-v4/hooks/useBreakpoint.d.ts.map +0 -1
  348. package/lib/grid-v4/hooks/useBreakpoint.js.map +0 -1
  349. package/lib/grid-v4/index.d.ts.map +0 -1
  350. package/lib/grid-v4/index.js.map +0 -1
  351. package/lib/grid-v4/row.d.ts.map +0 -1
  352. package/lib/grid-v4/row.js.map +0 -1
  353. package/lib/grid-v4/style/index.d.ts +0 -2
  354. package/lib/grid-v4/style/index.d.ts.map +0 -1
  355. package/lib/grid-v4/style/index.js +0 -3
  356. package/lib/grid-v4/style/index.js.map +0 -1
  357. package/lib/icon/style/index.d.ts +0 -3
  358. package/lib/icon/style/index.d.ts.map +0 -1
  359. package/lib/icon/style/index.js +0 -4
  360. package/lib/icon/style/index.js.map +0 -1
  361. package/lib/input/style/index.d.ts +0 -4
  362. package/lib/input/style/index.d.ts.map +0 -1
  363. package/lib/input/style/index.js +0 -5
  364. package/lib/input/style/index.js.map +0 -1
  365. package/lib/input-number/style/index.d.ts +0 -3
  366. package/lib/input-number/style/index.d.ts.map +0 -1
  367. package/lib/input-number/style/index.js +0 -4
  368. package/lib/input-number/style/index.js.map +0 -1
  369. package/lib/layout/style/index.d.ts +0 -3
  370. package/lib/layout/style/index.d.ts.map +0 -1
  371. package/lib/layout/style/index.js +0 -4
  372. package/lib/layout/style/index.js.map +0 -1
  373. package/lib/list/style/index.d.ts +0 -7
  374. package/lib/list/style/index.d.ts.map +0 -1
  375. package/lib/list/style/index.js +0 -8
  376. package/lib/list/style/index.js.map +0 -1
  377. package/lib/locale-provider/style/index.d.ts +0 -2
  378. package/lib/locale-provider/style/index.d.ts.map +0 -1
  379. package/lib/locale-provider/style/index.js +0 -3
  380. package/lib/locale-provider/style/index.js.map +0 -1
  381. package/lib/mentions/style/index.d.ts +0 -4
  382. package/lib/mentions/style/index.d.ts.map +0 -1
  383. package/lib/mentions/style/index.js +0 -5
  384. package/lib/mentions/style/index.js.map +0 -1
  385. package/lib/menu/style/index.d.ts +0 -4
  386. package/lib/menu/style/index.d.ts.map +0 -1
  387. package/lib/menu/style/index.js +0 -5
  388. package/lib/menu/style/index.js.map +0 -1
  389. package/lib/message/style/index.d.ts +0 -3
  390. package/lib/message/style/index.d.ts.map +0 -1
  391. package/lib/message/style/index.js +0 -4
  392. package/lib/message/style/index.js.map +0 -1
  393. package/lib/modal/style/index.d.ts +0 -4
  394. package/lib/modal/style/index.d.ts.map +0 -1
  395. package/lib/modal/style/index.js +0 -5
  396. package/lib/modal/style/index.js.map +0 -1
  397. package/lib/notification/style/index.d.ts +0 -3
  398. package/lib/notification/style/index.d.ts.map +0 -1
  399. package/lib/notification/style/index.js +0 -4
  400. package/lib/notification/style/index.js.map +0 -1
  401. package/lib/page-header/style/index.d.ts +0 -4
  402. package/lib/page-header/style/index.d.ts.map +0 -1
  403. package/lib/page-header/style/index.js +0 -5
  404. package/lib/page-header/style/index.js.map +0 -1
  405. package/lib/pagination/style/index.d.ts +0 -4
  406. package/lib/pagination/style/index.d.ts.map +0 -1
  407. package/lib/pagination/style/index.js +0 -5
  408. package/lib/pagination/style/index.js.map +0 -1
  409. package/lib/popconfirm/style/index.d.ts +0 -4
  410. package/lib/popconfirm/style/index.d.ts.map +0 -1
  411. package/lib/popconfirm/style/index.js +0 -5
  412. package/lib/popconfirm/style/index.js.map +0 -1
  413. package/lib/popover/style/index.d.ts +0 -3
  414. package/lib/popover/style/index.d.ts.map +0 -1
  415. package/lib/popover/style/index.js +0 -4
  416. package/lib/popover/style/index.js.map +0 -1
  417. package/lib/progress/style/index.d.ts +0 -3
  418. package/lib/progress/style/index.d.ts.map +0 -1
  419. package/lib/progress/style/index.js +0 -4
  420. package/lib/progress/style/index.js.map +0 -1
  421. package/lib/radio/style/index.d.ts +0 -3
  422. package/lib/radio/style/index.d.ts.map +0 -1
  423. package/lib/radio/style/index.js +0 -4
  424. package/lib/radio/style/index.js.map +0 -1
  425. package/lib/rate/style/index.d.ts +0 -4
  426. package/lib/rate/style/index.d.ts.map +0 -1
  427. package/lib/rate/style/index.js +0 -5
  428. package/lib/rate/style/index.js.map +0 -1
  429. package/lib/result/style/index.d.ts +0 -3
  430. package/lib/result/style/index.d.ts.map +0 -1
  431. package/lib/result/style/index.js +0 -4
  432. package/lib/result/style/index.js.map +0 -1
  433. package/lib/row/style/index.d.ts +0 -3
  434. package/lib/row/style/index.d.ts.map +0 -1
  435. package/lib/row/style/index.js +0 -4
  436. package/lib/row/style/index.js.map +0 -1
  437. package/lib/select/style/index.d.ts +0 -4
  438. package/lib/select/style/index.d.ts.map +0 -1
  439. package/lib/select/style/index.js +0 -5
  440. package/lib/select/style/index.js.map +0 -1
  441. package/lib/skeleton/style/index.d.ts +0 -3
  442. package/lib/skeleton/style/index.d.ts.map +0 -1
  443. package/lib/skeleton/style/index.js +0 -4
  444. package/lib/skeleton/style/index.js.map +0 -1
  445. package/lib/slider/style/index.d.ts +0 -4
  446. package/lib/slider/style/index.d.ts.map +0 -1
  447. package/lib/slider/style/index.js +0 -5
  448. package/lib/slider/style/index.js.map +0 -1
  449. package/lib/spin/style/index.d.ts +0 -3
  450. package/lib/spin/style/index.d.ts.map +0 -1
  451. package/lib/spin/style/index.js +0 -4
  452. package/lib/spin/style/index.js.map +0 -1
  453. package/lib/statistic/style/index.d.ts +0 -3
  454. package/lib/statistic/style/index.d.ts.map +0 -1
  455. package/lib/statistic/style/index.js +0 -4
  456. package/lib/statistic/style/index.js.map +0 -1
  457. package/lib/steps/style/index.d.ts +0 -3
  458. package/lib/steps/style/index.d.ts.map +0 -1
  459. package/lib/steps/style/index.js +0 -4
  460. package/lib/steps/style/index.js.map +0 -1
  461. package/lib/style/index.d.ts +0 -2
  462. package/lib/style/index.d.ts.map +0 -1
  463. package/lib/style/index.js +0 -3
  464. package/lib/style/index.js.map +0 -1
  465. package/lib/style/v2-compatible-reset.d.ts +0 -2
  466. package/lib/style/v2-compatible-reset.d.ts.map +0 -1
  467. package/lib/style/v2-compatible-reset.js +0 -3
  468. package/lib/style/v2-compatible-reset.js.map +0 -1
  469. package/lib/switch/style/index.d.ts +0 -3
  470. package/lib/switch/style/index.d.ts.map +0 -1
  471. package/lib/switch/style/index.js +0 -4
  472. package/lib/switch/style/index.js.map +0 -1
  473. package/lib/table/style/index.d.ts +0 -9
  474. package/lib/table/style/index.d.ts.map +0 -1
  475. package/lib/table/style/index.js +0 -10
  476. package/lib/table/style/index.js.map +0 -1
  477. package/lib/tabs/style/index.d.ts +0 -3
  478. package/lib/tabs/style/index.d.ts.map +0 -1
  479. package/lib/tabs/style/index.js +0 -4
  480. package/lib/tabs/style/index.js.map +0 -1
  481. package/lib/tag/style/index.d.ts +0 -3
  482. package/lib/tag/style/index.d.ts.map +0 -1
  483. package/lib/tag/style/index.js +0 -4
  484. package/lib/tag/style/index.js.map +0 -1
  485. package/lib/time-picker/style/index.d.ts +0 -3
  486. package/lib/time-picker/style/index.d.ts.map +0 -1
  487. package/lib/time-picker/style/index.js +0 -4
  488. package/lib/time-picker/style/index.js.map +0 -1
  489. package/lib/timeline/style/index.d.ts +0 -3
  490. package/lib/timeline/style/index.d.ts.map +0 -1
  491. package/lib/timeline/style/index.js +0 -4
  492. package/lib/timeline/style/index.js.map +0 -1
  493. package/lib/tooltip/style/index.d.ts +0 -3
  494. package/lib/tooltip/style/index.d.ts.map +0 -1
  495. package/lib/tooltip/style/index.js +0 -4
  496. package/lib/tooltip/style/index.js.map +0 -1
  497. package/lib/transfer/style/index.d.ts +0 -7
  498. package/lib/transfer/style/index.d.ts.map +0 -1
  499. package/lib/transfer/style/index.js +0 -8
  500. package/lib/transfer/style/index.js.map +0 -1
  501. package/lib/tree/style/index.d.ts +0 -3
  502. package/lib/tree/style/index.d.ts.map +0 -1
  503. package/lib/tree/style/index.js +0 -4
  504. package/lib/tree/style/index.js.map +0 -1
  505. package/lib/tree-select/style/index.d.ts +0 -5
  506. package/lib/tree-select/style/index.d.ts.map +0 -1
  507. package/lib/tree-select/style/index.js +0 -6
  508. package/lib/tree-select/style/index.js.map +0 -1
  509. package/lib/typography/style/index.d.ts +0 -5
  510. package/lib/typography/style/index.d.ts.map +0 -1
  511. package/lib/typography/style/index.js +0 -6
  512. package/lib/typography/style/index.js.map +0 -1
  513. package/lib/upload/style/index.d.ts +0 -5
  514. package/lib/upload/style/index.d.ts.map +0 -1
  515. package/lib/upload/style/index.js +0 -6
  516. package/lib/upload/style/index.js.map +0 -1
  517. package/lib/version/style/index.d.ts +0 -2
  518. package/lib/version/style/index.d.ts.map +0 -1
  519. package/lib/version/style/index.js +0 -3
  520. package/lib/version/style/index.js.map +0 -1
  521. /package/es/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
  522. /package/es/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
  523. /package/es/{grid-v4 → tntd-form/grid}/index.js +0 -0
  524. /package/es/{affix → tntd-form/grid}/style/index.js +0 -0
  525. /package/lib/{grid-v4 → tntd-form/grid}/RowContext.d.ts +0 -0
  526. /package/lib/{grid-v4 → tntd-form/grid}/RowContext.js +0 -0
  527. /package/lib/{grid-v4 → tntd-form/grid}/col.d.ts +0 -0
  528. /package/lib/{grid-v4 → tntd-form/grid}/col.js +0 -0
  529. /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.d.ts +0 -0
  530. /package/lib/{grid-v4 → tntd-form/grid}/hooks/useBreakpoint.js +0 -0
  531. /package/lib/{grid-v4 → tntd-form/grid}/index.d.ts +0 -0
  532. /package/lib/{grid-v4 → tntd-form/grid}/index.js +0 -0
  533. /package/lib/{grid-v4 → tntd-form/grid}/row.d.ts +0 -0
  534. /package/lib/{affix → tntd-form/grid}/style/index.d.ts +0 -0
  535. /package/lib/{affix → tntd-form/grid}/style/index.js +0 -0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.cloneElement = cloneElement;
8
+ exports.isFragment = isFragment;
9
+ exports.isValidElement = void 0;
10
+ exports.replaceElement = replaceElement;
11
+ var React = _interopRequireWildcard(require("react"));
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ var isValidElement = React.isValidElement;
15
+ exports.isValidElement = isValidElement;
16
+ function isFragment(child) {
17
+ return child && isValidElement(child) && child.type === React.Fragment;
18
+ }
19
+ function replaceElement(element, replacement, props) {
20
+ if (!isValidElement(element)) {
21
+ return replacement;
22
+ }
23
+ return React.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);
24
+ }
25
+ function cloneElement(element, props) {
26
+ return replaceElement(element, element, props);
27
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNode.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/reactNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA8B;AAEf,sBAAc,GAAK,KAAK,gBAAA;AAEvC,SAAgB,UAAU,CAAC,KAAU;IACnC,OAAO,KAAK,IAAI,IAAA,sBAAc,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,QAAQ,CAAA;AACxE,CAAC;AAFD,gCAEC;AAMD,SAAgB,cAAc,CAC5B,OAAwB,EACxB,WAA4B,EAC5B,KAAmB;IAEnB,IAAI,CAAC,IAAA,sBAAc,EAAC,OAAO,CAAC,EAAE;QAC5B,OAAO,WAAW,CAAA;KACnB;IACD,OAAO,KAAK,CAAC,YAAY,CACvB,OAAO,EACP,OAAO,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CACjE,CAAA;AACH,CAAC;AAZD,wCAYC;AAED,SAAgB,YAAY,CAAC,OAAwB,EAAE,KAAmB;IACxE,OAAO,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAuB,CAAA;AACtE,CAAC;AAFD,oCAEC","sourcesContent":["import * as React from 'react'\n\nexport const { isValidElement } = React\n\nexport function isFragment(child: any): boolean {\n return child && isValidElement(child) && child.type === React.Fragment\n}\n\ntype AnyObject = Record<PropertyKey, any>\n\ntype RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | void)\n\nexport function replaceElement(\n element: React.ReactNode,\n replacement: React.ReactNode,\n props?: RenderProps\n): React.ReactNode {\n if (!isValidElement(element)) {\n return replacement\n }\n return React.cloneElement(\n element,\n typeof props === 'function' ? props(element.props || {}) : props\n )\n}\n\nexport function cloneElement(element: React.ReactNode, props?: RenderProps): React.ReactElement {\n return replaceElement(element, element, props) as React.ReactElement\n}\n"]}
@@ -0,0 +1,22 @@
1
+ export declare type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
2
+ export declare type BreakpointMap = Record<Breakpoint, string>;
3
+ export declare type ScreenMap = Partial<Record<Breakpoint, boolean>>;
4
+ export declare type ScreenSizeMap = Partial<Record<Breakpoint, number>>;
5
+ export declare const responsiveArray: Breakpoint[];
6
+ export declare const responsiveMap: BreakpointMap;
7
+ declare type SubscribeFunc = (screens: ScreenMap) => void;
8
+ declare const responsiveObserve: {
9
+ matchHandlers: {
10
+ [prop: string]: {
11
+ mql: MediaQueryList;
12
+ listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
13
+ };
14
+ };
15
+ dispatch(pointMap: ScreenMap): boolean;
16
+ subscribe(func: SubscribeFunc): number;
17
+ unsubscribe(token: number): void;
18
+ unregister(): void;
19
+ register(): void;
20
+ };
21
+ export default responsiveObserve;
22
+ //# sourceMappingURL=responsiveObserve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveObserve.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/responsiveObserve.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAClE,oBAAY,aAAa,GAAG,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACvD,oBAAY,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAC7D,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,SAAS,KAAK,IAAI,CAAC;AAKlD,QAAA,MAAM,iBAAiB;;;iBAGZ,cAAc;8BACD,cAAc,MAAM,mBAAmB,KAAK,GAAG;;;uBAGlD,SAAS;oBAKZ,aAAa,GAAG,MAAM;uBAOnB,MAAM;;;CA+B1B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.responsiveMap = exports.responsiveArray = exports["default"] = void 0;
7
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
+ var responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
12
+ exports.responsiveArray = responsiveArray;
13
+ var responsiveMap = {
14
+ xs: '(max-width: 575px)',
15
+ sm: '(min-width: 576px)',
16
+ md: '(min-width: 768px)',
17
+ lg: '(min-width: 992px)',
18
+ xl: '(min-width: 1200px)',
19
+ xxl: '(min-width: 1600px)'
20
+ };
21
+ exports.responsiveMap = responsiveMap;
22
+ var subscribers = new Map();
23
+ var subUid = -1;
24
+ var screens = {};
25
+ var responsiveObserve = {
26
+ matchHandlers: {},
27
+ dispatch: function dispatch(pointMap) {
28
+ screens = pointMap;
29
+ subscribers.forEach(function (func) {
30
+ return func(screens);
31
+ });
32
+ return subscribers.size >= 1;
33
+ },
34
+ subscribe: function subscribe(func) {
35
+ if (!subscribers.size) this.register();
36
+ subUid += 1;
37
+ subscribers.set(subUid, func);
38
+ func(screens);
39
+ return subUid;
40
+ },
41
+ unsubscribe: function unsubscribe(token) {
42
+ subscribers["delete"](token);
43
+ if (!subscribers.size) this.unregister();
44
+ },
45
+ unregister: function unregister() {
46
+ var _this = this;
47
+ Object.keys(responsiveMap).forEach(function (screen) {
48
+ var matchMediaQuery = responsiveMap[screen];
49
+ var handler = _this.matchHandlers[matchMediaQuery];
50
+ handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);
51
+ });
52
+ subscribers.clear();
53
+ },
54
+ register: function register() {
55
+ var _this2 = this;
56
+ Object.keys(responsiveMap).forEach(function (screen) {
57
+ var matchMediaQuery = responsiveMap[screen];
58
+ var listener = function listener(_ref) {
59
+ var matches = _ref.matches;
60
+ _this2.dispatch(Object.assign(Object.assign({}, screens), _defineProperty({}, screen, matches)));
61
+ };
62
+ var mql = window.matchMedia(matchMediaQuery);
63
+ mql.addListener(listener);
64
+ _this2.matchHandlers[matchMediaQuery] = {
65
+ mql: mql,
66
+ listener: listener
67
+ };
68
+ listener(mql);
69
+ });
70
+ }
71
+ };
72
+ var _default = responsiveObserve;
73
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveObserve.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/responsiveObserve.ts"],"names":[],"mappings":";;;AAKa,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;AAGF,MAAM,WAAW,GAAG,IAAI,GAAG,EAAyB,CAAC;AACrD,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC;AAChB,IAAI,OAAO,GAAG,EAAE,CAAC;AAEjB,MAAM,iBAAiB,GAAG;IACxB,aAAa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AG,CAAC,EAAE,OAAO,EAAwB,EAAE,EAAE;gBACrD,IAAI,CAAC,QAAQ,iCACR,OAAO,KACV,CAAC,MAAM,CAAC,EAAE,OAAO,IACjB,CAAC;YACL,CAAC,CAAC;YACF,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;YAC/C,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;YAC1B,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,GAAG;gBACpC,GAAG;gBACH,QAAQ;aACT,CAAC;YAEF,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC;AAEF,kBAAe,iBAAiB,CAAC","sourcesContent":["export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';\nexport type BreakpointMap = Record<Breakpoint, string>;\nexport type ScreenMap = Partial<Record<Breakpoint, boolean>>;\nexport type ScreenSizeMap = Partial<Record<Breakpoint, number>>;\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: ScreenMap) => void;\nconst subscribers = new Map<Number, SubscribeFunc>();\nlet subUid = -1;\nlet screens = {};\n\nconst responsiveObserve = {\n matchHandlers: {} as {\n [prop: string]: {\n mql: MediaQueryList;\n listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n };\n },\n dispatch(pointMap: ScreenMap) {\n screens = pointMap;\n subscribers.forEach(func => func(screens));\n return subscribers.size >= 1;\n },\n subscribe(func: SubscribeFunc): number {\n if (!subscribers.size) this.register();\n subUid += 1;\n subscribers.set(subUid, func);\n func(screens);\n return subUid;\n },\n unsubscribe(token: number) {\n subscribers.delete(token);\n if (!subscribers.size) this.unregister();\n },\n unregister() {\n Object.keys(responsiveMap).forEach((screen: string ) => {\n const matchMediaQuery = responsiveMap[screen as Breakpoint];\n const handler = this.matchHandlers[matchMediaQuery];\n handler?.mql.removeListener(handler?.listener);\n });\n subscribers.clear();\n },\n register() {\n Object.keys(responsiveMap).forEach((screen: string) => {\n const matchMediaQuery = responsiveMap[screen as Breakpoint];\n const listener = ({ matches }: { matches: boolean }) => {\n this.dispatch({\n ...screens,\n [screen]: matches,\n });\n };\n const mql = window.matchMedia(matchMediaQuery);\n mql.addListener(listener);\n this.matchHandlers[matchMediaQuery] = {\n mql,\n listener,\n };\n\n listener(mql);\n });\n },\n};\n\nexport default responsiveObserve;\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=scrollTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollTo.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/scrollTo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ // import raf from 'raf';
4
+ // import getScroll from './getScroll';
5
+ // import { easeInOutCubic } from './easings';
6
+ // interface ScrollToOptions {
7
+ // /** Scroll container, default as window */
8
+ // getContainer?: () => HTMLElement | Window;
9
+ // /** Scroll end callback */
10
+ // callback?: () => any;
11
+ // /** Animation duration, default as 450 */
12
+ // duration?: number;
13
+ // }
14
+ // export default function scrollTo(y: number, options: ScrollToOptions = {}) {
15
+ // const { getContainer = () => window, callback, duration = 450 } = options;
16
+ // const container = getContainer();
17
+ // const scrollTop = getScroll(container, true);
18
+ // const startTime = Date.now();
19
+ // const frameFunc = () => {
20
+ // const timestamp = Date.now();
21
+ // const time = timestamp - startTime;
22
+ // const nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
23
+ // if (container === window) {
24
+ // window.scrollTo(window.pageXOffset, nextScrollTop);
25
+ // } else {
26
+ // (container as HTMLElement).scrollTop = nextScrollTop;
27
+ // }
28
+ // if (time < duration) {
29
+ // raf(frameFunc);
30
+ // } else if (typeof callback === 'function') {
31
+ // callback();
32
+ // }
33
+ // };
34
+ // raf(frameFunc);
35
+ // }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollTo.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/scrollTo.ts"],"names":[],"mappings":";AAAA,yBAAyB;AACzB,uCAAuC;AACvC,8CAA8C;AAE9C,8BAA8B;AAC9B,+CAA+C;AAC/C,+CAA+C;AAC/C,+BAA+B;AAC/B,0BAA0B;AAC1B,8CAA8C;AAC9C,uBAAuB;AACvB,IAAI;AAEJ,+EAA+E;AAC/E,+EAA+E;AAE/E,sCAAsC;AACtC,kDAAkD;AAClD,kCAAkC;AAElC,8BAA8B;AAC9B,oCAAoC;AACpC,0CAA0C;AAC1C,uGAAuG;AACvG,kCAAkC;AAClC,4DAA4D;AAC5D,eAAe;AACf,8DAA8D;AAC9D,QAAQ;AACR,6BAA6B;AAC7B,wBAAwB;AACxB,mDAAmD;AACnD,oBAAoB;AACpB,QAAQ;AACR,OAAO;AACP,oBAAoB;AACpB,IAAI","sourcesContent":["// import raf from 'raf';\n// import getScroll from './getScroll';\n// import { easeInOutCubic } from './easings';\n\n// interface 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\n// export 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,5 @@
1
+ import { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';
2
+ export declare const canUseDocElement: () => false | HTMLElement;
3
+ export { isStyleSupport };
4
+ export declare const detectFlexGapSupported: () => boolean;
5
+ //# sourceMappingURL=styleChecker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleChecker.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/styleChecker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,eAAO,MAAM,gBAAgB,2BAAuD,CAAC;AAErF,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,eAAO,MAAM,sBAAsB,eAyBlC,CAAC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.detectFlexGapSupported = exports.canUseDocElement = void 0;
7
+ Object.defineProperty(exports, "isStyleSupport", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _styleChecker.isStyleSupport;
11
+ }
12
+ });
13
+ var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
14
+ var _styleChecker = require("rc-util/lib/Dom/styleChecker");
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
+ var canUseDocElement = function canUseDocElement() {
17
+ return (0, _canUseDom["default"])() && window.document.documentElement;
18
+ };
19
+ exports.canUseDocElement = canUseDocElement;
20
+ var flexGapSupported;
21
+ var detectFlexGapSupported = function detectFlexGapSupported() {
22
+ if (!canUseDocElement()) {
23
+ return false;
24
+ }
25
+ if (flexGapSupported !== undefined) {
26
+ return flexGapSupported;
27
+ }
28
+ // create flex container with row-gap set
29
+ var flex = document.createElement('div');
30
+ flex.style.display = 'flex';
31
+ flex.style.flexDirection = 'column';
32
+ flex.style.rowGap = '1px';
33
+ // create two, elements inside it
34
+ flex.appendChild(document.createElement('div'));
35
+ flex.appendChild(document.createElement('div'));
36
+ // append to the DOM (needed to obtain scrollHeight)
37
+ document.body.appendChild(flex);
38
+ flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap
39
+ document.body.removeChild(flex);
40
+ return flexGapSupported;
41
+ };
42
+ exports.detectFlexGapSupported = detectFlexGapSupported;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styleChecker.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/styleChecker.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAAkD;AAClD,+DAA8D;AAIrD,+FAJA,6BAAc,OAIA;AAFhB,MAAM,gBAAgB,GAAG,GAAG,EAAE,CAAC,IAAA,mBAAS,GAAE,IAAI,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC;AAAxE,QAAA,gBAAgB,oBAAwD;AAIrF,IAAI,gBAAqC,CAAC;AACnC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACzC,IAAI,CAAC,IAAA,wBAAgB,GAAE,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;IAED,IAAI,gBAAgB,KAAK,SAAS,EAAE;QAClC,OAAO,gBAAgB,CAAC;KACzB;IAED,yCAAyC;IACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,KAAK,CAAC,aAAa,GAAG,QAAQ,CAAC;IACpC,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;IAE1B,iCAAiC;IACjC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAChD,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAEhD,oDAAoD;IACpD,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAChC,gBAAgB,GAAG,IAAI,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,qDAAqD;IACjG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAEhC,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAzBW,QAAA,sBAAsB,0BAyBjC","sourcesContent":["import canUseDom from 'rc-util/lib/Dom/canUseDom';\nimport { isStyleSupport } from 'rc-util/lib/Dom/styleChecker';\n\nexport const canUseDocElement = () => canUseDom() && window.document.documentElement;\n\nexport { isStyleSupport };\n\nlet flexGapSupported: boolean | undefined;\nexport const detectFlexGapSupported = () => {\n if (!canUseDocElement()) {\n return false;\n }\n\n if (flexGapSupported !== undefined) {\n return flexGapSupported;\n }\n\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(flex);\n flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n document.body.removeChild(flex);\n\n return flexGapSupported;\n};\n"]}
@@ -0,0 +1,4 @@
1
+ export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
2
+ export declare const tuple: <T extends string[]>(...args: T) => T;
3
+ export declare const tupleNum: <T extends number[]>(...args: T) => T;
4
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/type.ts"],"names":[],"mappings":"AAAA,oBAAY,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAErE,eAAO,MAAM,KAAK,uCAA2C,CAAA;AAE7D,eAAO,MAAM,QAAQ,uCAA2C,CAAA"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.tupleNum = exports.tuple = void 0;
7
+ // https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead
8
+ var tuple = function tuple() {
9
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10
+ args[_key] = arguments[_key];
11
+ }
12
+ return args;
13
+ };
14
+ exports.tuple = tuple;
15
+ var tupleNum = function tupleNum() {
16
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
17
+ args[_key2] = arguments[_key2];
18
+ }
19
+ return args;
20
+ };
21
+ exports.tupleNum = tupleNum;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/type.ts"],"names":[],"mappings":";;;AACA,qHAAqH;AAC9G,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAhD,QAAA,KAAK,SAA2C;AAEtD,MAAM,QAAQ,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAA;AAAnD,QAAA,QAAQ,YAA2C","sourcesContent":["export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>\n// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead\nexport const tuple = <T extends string[]>(...args: T) => args\n\nexport const tupleNum = <T extends number[]>(...args: T) => args\n"]}
@@ -0,0 +1,5 @@
1
+ import { resetWarned } from 'rc-util/lib/warning';
2
+ export { resetWarned };
3
+ declare const _default: (valid: boolean, component: string, message: string) => void;
4
+ export default _default;
5
+ //# sourceMappingURL=warning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/warning.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,EAAE,WAAW,EAAE,CAAA;gCAEC,OAAO,aAAa,MAAM,WAAW,MAAM,KAAG,IAAI;AAAzE,wBAEC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ Object.defineProperty(exports, "resetWarned", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _warning.resetWarned;
12
+ }
13
+ });
14
+ var _warning = _interopRequireWildcard(require("rc-util/lib/warning"));
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ var _default = function _default(valid, component, message) {
18
+ (0, _warning["default"])(valid, "[antd: ".concat(component, "] ").concat(message));
19
+ };
20
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warning.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/warning.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA0D;AAEjD,4FAFS,qBAAW,OAET;AAEpB,kBAAe,CAAC,KAAc,EAAE,SAAiB,EAAE,OAAe,EAAQ,EAAE;IAC1E,IAAA,iBAAO,EAAC,KAAK,EAAE,UAAU,SAAS,KAAK,OAAO,EAAE,CAAC,CAAA;AACnD,CAAC,CAAA","sourcesContent":["import warning, { resetWarned } from 'rc-util/lib/warning'\n\nexport { resetWarned }\n\nexport default (valid: boolean, component: string, message: string): void => {\n warning(valid, `[antd: ${component}] ${message}`)\n}\n"]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=wave.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/_util/wave.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,168 @@
1
+ "use strict";
2
+
3
+ // import * as React from 'react'
4
+ // import { findDOMNode } from 'react-dom'
5
+ // import TransitionEvents from 'css-animation/lib/Event'
6
+ // import raf from './raf'
7
+ // import { ConfigConsumer, ConfigConsumerProps, CSPConfig } from '../../config-provider'
8
+ // let styleForPesudo: HTMLStyleElement | null
9
+ // // Where el is the DOM element you'd like to test for visibility
10
+ // function isHidden(element: HTMLElement) {
11
+ // if (process.env.NODE_ENV === 'test') {
12
+ // return false
13
+ // }
14
+ // return !element || element.offsetParent === null
15
+ // }
16
+ // function isNotGrey(color: string) {
17
+ // // eslint-disable-next-line no-useless-escape
18
+ // const match = (color || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/)
19
+ // if (match && match[1] && match[2] && match[3]) {
20
+ // return !(match[1] === match[2] && match[2] === match[3])
21
+ // }
22
+ // return true
23
+ // }
24
+ // export default class Wave extends React.Component<{ insertExtraNode?: boolean }> {
25
+ // private instance?: {
26
+ // cancel: () => void
27
+ // }
28
+ // private extraNode: HTMLDivElement
29
+ // private clickWaveTimeoutId: number
30
+ // private animationStartId: number
31
+ // private animationStart: boolean = false
32
+ // private destroy: boolean = false
33
+ // private csp?: CSPConfig
34
+ // componentDidMount() {
35
+ // const node = findDOMNode(this) as HTMLElement
36
+ // if (!node || node.nodeType !== 1) {
37
+ // return
38
+ // }
39
+ // this.instance = this.bindAnimationEvent(node)
40
+ // }
41
+ // componentWillUnmount() {
42
+ // if (this.instance) {
43
+ // this.instance.cancel()
44
+ // }
45
+ // if (this.clickWaveTimeoutId) {
46
+ // clearTimeout(this.clickWaveTimeoutId)
47
+ // }
48
+ // this.destroy = true
49
+ // }
50
+ // onClick = (node: HTMLElement, waveColor: string) => {
51
+ // if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {
52
+ // return
53
+ // }
54
+ // const { insertExtraNode } = this.props
55
+ // this.extraNode = document.createElement('div')
56
+ // const { extraNode } = this
57
+ // extraNode.className = 'ant-click-animating-node'
58
+ // const attributeName = this.getAttributeName()
59
+ // node.setAttribute(attributeName, 'true')
60
+ // // Not white or transparnt or grey
61
+ // styleForPesudo = styleForPesudo || document.createElement('style')
62
+ // if (
63
+ // waveColor &&
64
+ // waveColor !== '#ffffff' &&
65
+ // waveColor !== 'rgb(255, 255, 255)' &&
66
+ // isNotGrey(waveColor) &&
67
+ // !/rgba\(\d*, \d*, \d*, 0\)/.test(waveColor) && // any transparent rgba color
68
+ // waveColor !== 'transparent'
69
+ // ) {
70
+ // // Add nonce if CSP exist
71
+ // if (this.csp && this.csp.nonce) {
72
+ // styleForPesudo.nonce = this.csp.nonce
73
+ // }
74
+ // extraNode.style.borderColor = waveColor
75
+ // styleForPesudo.innerHTML = `
76
+ // [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {
77
+ // --antd-wave-shadow-color: ${waveColor};
78
+ // }`
79
+ // if (!document.body.contains(styleForPesudo)) {
80
+ // document.body.appendChild(styleForPesudo)
81
+ // }
82
+ // }
83
+ // if (insertExtraNode) {
84
+ // node.appendChild(extraNode)
85
+ // }
86
+ // TransitionEvents.addStartEventListener(node, this.onTransitionStart)
87
+ // TransitionEvents.addEndEventListener(node, this.onTransitionEnd)
88
+ // }
89
+ // onTransitionStart = (e: AnimationEvent) => {
90
+ // if (this.destroy) return
91
+ // const node = findDOMNode(this) as HTMLElement
92
+ // if (!e || e.target !== node) {
93
+ // return
94
+ // }
95
+ // if (!this.animationStart) {
96
+ // this.resetEffect(node)
97
+ // }
98
+ // }
99
+ // onTransitionEnd = (e: AnimationEvent) => {
100
+ // if (!e || e.animationName !== 'fadeEffect') {
101
+ // return
102
+ // }
103
+ // this.resetEffect(e.target as HTMLElement)
104
+ // }
105
+ // getAttributeName() {
106
+ // const { insertExtraNode } = this.props
107
+ // return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node'
108
+ // }
109
+ // bindAnimationEvent = (node: HTMLElement) => {
110
+ // if (
111
+ // !node ||
112
+ // !node.getAttribute ||
113
+ // node.getAttribute('disabled') ||
114
+ // node.className.indexOf('disabled') >= 0
115
+ // ) {
116
+ // return
117
+ // }
118
+ // const onClick = (e: MouseEvent) => {
119
+ // // Fix radio button click twice
120
+ // if ((e.target as HTMLElement).tagName === 'INPUT' || isHidden(e.target as HTMLElement)) {
121
+ // return
122
+ // }
123
+ // this.resetEffect(node)
124
+ // // Get wave color from target
125
+ // const waveColor =
126
+ // getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible
127
+ // getComputedStyle(node).getPropertyValue('border-color') ||
128
+ // getComputedStyle(node).getPropertyValue('background-color')
129
+ // this.clickWaveTimeoutId = window.setTimeout(() => this.onClick(node, waveColor), 0)
130
+ // raf.cancel(this.animationStartId)
131
+ // this.animationStart = true
132
+ // // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.
133
+ // this.animationStartId = raf(() => {
134
+ // this.animationStart = false
135
+ // }, 10)
136
+ // }
137
+ // node.addEventListener('click', onClick, true)
138
+ // return {
139
+ // cancel: () => {
140
+ // node.removeEventListener('click', onClick, true)
141
+ // },
142
+ // }
143
+ // }
144
+ // resetEffect(node: HTMLElement) {
145
+ // if (!node || node === this.extraNode || !(node instanceof Element)) {
146
+ // return
147
+ // }
148
+ // const { insertExtraNode } = this.props
149
+ // const attributeName = this.getAttributeName()
150
+ // node.setAttribute(attributeName, 'false') // edge has bug on `removeAttribute` #14466
151
+ // if (styleForPesudo) {
152
+ // styleForPesudo.innerHTML = ''
153
+ // }
154
+ // if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {
155
+ // node.removeChild(this.extraNode)
156
+ // }
157
+ // TransitionEvents.removeStartEventListener(node, this.onTransitionStart)
158
+ // TransitionEvents.removeEndEventListener(node, this.onTransitionEnd)
159
+ // }
160
+ // renderWave = ({ csp }: ConfigConsumerProps) => {
161
+ // const { children } = this.props
162
+ // this.csp = csp
163
+ // return children
164
+ // }
165
+ // render() {
166
+ // return <ConfigConsumer>{this.renderWave}</ConfigConsumer>
167
+ // }
168
+ // }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wave.js","sourceRoot":"","sources":["../../../src/tntd-form/_util/wave.tsx"],"names":[],"mappings":";AAAA,iCAAiC;AACjC,0CAA0C;AAC1C,yDAAyD;AACzD,0BAA0B;AAC1B,yFAAyF;AAEzF,8CAA8C;AAE9C,mEAAmE;AACnE,4CAA4C;AAC5C,2CAA2C;AAC3C,mBAAmB;AACnB,MAAM;AACN,qDAAqD;AACrD,IAAI;AAEJ,sCAAsC;AACtC,kDAAkD;AAClD,kFAAkF;AAClF,qDAAqD;AACrD,+DAA+D;AAC/D,MAAM;AACN,gBAAgB;AAChB,IAAI;AAEJ,qFAAqF;AACrF,yBAAyB;AACzB,yBAAyB;AACzB,MAAM;AAEN,sCAAsC;AAEtC,uCAAuC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C;AAC3C,wCAAwC;AACxC,kGAAkG;AAClG,iBAAiB;AACjB,UAAU;AACV,+BAA+B;AAC/B,sCAAsC;AACtC,0BAA0B;AAC1B,+FAA+F;AAC/F,qEAAqE;AACrE,sEAAsE;AACtE,4FAA4F;AAE5F,0CAA0C;AAC1C,mCAAmC;AAEnC,kGAAkG;AAClG,4CAA4C;AAC5C,sCAAsC;AACtC,eAAe;AACf,QAAQ;AACR,oDAAoD;AACpD,eAAe;AACf,wBAAwB;AACxB,2DAA2D;AAC3D,WAAW;AACX,QAAQ;AACR,MAAM;AAEN,qCAAqC;AACrC,4EAA4E;AAC5E,eAAe;AACf,QAAQ;AACR,6CAA6C;AAC7C,oDAAoD;AACpD,4FAA4F;AAE5F,4BAA4B;AAC5B,sCAAsC;AACtC,QAAQ;AAER,gFAAgF;AAChF,yCAAyC;AACzC,QAAQ;AACR,8EAA8E;AAC9E,0EAA0E;AAC1E,MAAM;AAEN,qDAAqD;AACrD,sCAAsC;AACtC,qBAAqB;AAErB,sBAAsB;AACtB,MAAM;AAEN,eAAe;AACf,gEAAgE;AAChE,MAAM;AACN,IAAI","sourcesContent":["// import * as React from 'react'\n// import { findDOMNode } from 'react-dom'\n// import TransitionEvents from 'css-animation/lib/Event'\n// import raf from './raf'\n// import { ConfigConsumer, ConfigConsumerProps, CSPConfig } from '../../config-provider'\n\n// let styleForPesudo: HTMLStyleElement | null\n\n// // Where el is the DOM element you'd like to test for visibility\n// function isHidden(element: HTMLElement) {\n// if (process.env.NODE_ENV === 'test') {\n// return false\n// }\n// return !element || element.offsetParent === null\n// }\n\n// function isNotGrey(color: string) {\n// // eslint-disable-next-line no-useless-escape\n// const match = (color || '').match(/rgba?\\((\\d*), (\\d*), (\\d*)(, [\\.\\d]*)?\\)/)\n// if (match && match[1] && match[2] && match[3]) {\n// return !(match[1] === match[2] && match[2] === match[3])\n// }\n// return true\n// }\n\n// export default class Wave extends React.Component<{ insertExtraNode?: boolean }> {\n// private instance?: {\n// cancel: () => void\n// }\n\n// private extraNode: HTMLDivElement\n\n// private clickWaveTimeoutId: number\n\n// private animationStartId: number\n\n// private animationStart: boolean = false\n\n// private destroy: boolean = false\n\n// private csp?: CSPConfig\n\n// componentDidMount() {\n// const node = findDOMNode(this) as HTMLElement\n// if (!node || node.nodeType !== 1) {\n// return\n// }\n// this.instance = this.bindAnimationEvent(node)\n// }\n\n// componentWillUnmount() {\n// if (this.instance) {\n// this.instance.cancel()\n// }\n// if (this.clickWaveTimeoutId) {\n// clearTimeout(this.clickWaveTimeoutId)\n// }\n\n// this.destroy = true\n// }\n\n// onClick = (node: HTMLElement, waveColor: string) => {\n// if (!node || isHidden(node) || node.className.indexOf('-leave') >= 0) {\n// return\n// }\n// const { insertExtraNode } = this.props\n// this.extraNode = document.createElement('div')\n// const { extraNode } = this\n// extraNode.className = 'ant-click-animating-node'\n// const attributeName = this.getAttributeName()\n// node.setAttribute(attributeName, 'true')\n// // Not white or transparnt or grey\n// styleForPesudo = styleForPesudo || document.createElement('style')\n// if (\n// waveColor &&\n// waveColor !== '#ffffff' &&\n// waveColor !== 'rgb(255, 255, 255)' &&\n// isNotGrey(waveColor) &&\n// !/rgba\\(\\d*, \\d*, \\d*, 0\\)/.test(waveColor) && // any transparent rgba color\n// waveColor !== 'transparent'\n// ) {\n// // Add nonce if CSP exist\n// if (this.csp && this.csp.nonce) {\n// styleForPesudo.nonce = this.csp.nonce\n// }\n\n// extraNode.style.borderColor = waveColor\n// styleForPesudo.innerHTML = `\n// [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n// --antd-wave-shadow-color: ${waveColor};\n// }`\n// if (!document.body.contains(styleForPesudo)) {\n// document.body.appendChild(styleForPesudo)\n// }\n// }\n// if (insertExtraNode) {\n// node.appendChild(extraNode)\n// }\n// TransitionEvents.addStartEventListener(node, this.onTransitionStart)\n// TransitionEvents.addEndEventListener(node, this.onTransitionEnd)\n// }\n\n// onTransitionStart = (e: AnimationEvent) => {\n// if (this.destroy) return\n\n// const node = findDOMNode(this) as HTMLElement\n// if (!e || e.target !== node) {\n// return\n// }\n\n// if (!this.animationStart) {\n// this.resetEffect(node)\n// }\n// }\n\n// onTransitionEnd = (e: AnimationEvent) => {\n// if (!e || e.animationName !== 'fadeEffect') {\n// return\n// }\n// this.resetEffect(e.target as HTMLElement)\n// }\n\n// getAttributeName() {\n// const { insertExtraNode } = this.props\n// return insertExtraNode ? 'ant-click-animating' : 'ant-click-animating-without-extra-node'\n// }\n\n// bindAnimationEvent = (node: HTMLElement) => {\n// if (\n// !node ||\n// !node.getAttribute ||\n// node.getAttribute('disabled') ||\n// node.className.indexOf('disabled') >= 0\n// ) {\n// return\n// }\n// const onClick = (e: MouseEvent) => {\n// // Fix radio button click twice\n// if ((e.target as HTMLElement).tagName === 'INPUT' || isHidden(e.target as HTMLElement)) {\n// return\n// }\n// this.resetEffect(node)\n// // Get wave color from target\n// const waveColor =\n// getComputedStyle(node).getPropertyValue('border-top-color') || // Firefox Compatible\n// getComputedStyle(node).getPropertyValue('border-color') ||\n// getComputedStyle(node).getPropertyValue('background-color')\n// this.clickWaveTimeoutId = window.setTimeout(() => this.onClick(node, waveColor), 0)\n\n// raf.cancel(this.animationStartId)\n// this.animationStart = true\n\n// // Render to trigger transition event cost 3 frames. Let's delay 10 frames to reset this.\n// this.animationStartId = raf(() => {\n// this.animationStart = false\n// }, 10)\n// }\n// node.addEventListener('click', onClick, true)\n// return {\n// cancel: () => {\n// node.removeEventListener('click', onClick, true)\n// },\n// }\n// }\n\n// resetEffect(node: HTMLElement) {\n// if (!node || node === this.extraNode || !(node instanceof Element)) {\n// return\n// }\n// const { insertExtraNode } = this.props\n// const attributeName = this.getAttributeName()\n// node.setAttribute(attributeName, 'false') // edge has bug on `removeAttribute` #14466\n\n// if (styleForPesudo) {\n// styleForPesudo.innerHTML = ''\n// }\n\n// if (insertExtraNode && this.extraNode && node.contains(this.extraNode)) {\n// node.removeChild(this.extraNode)\n// }\n// TransitionEvents.removeStartEventListener(node, this.onTransitionStart)\n// TransitionEvents.removeEndEventListener(node, this.onTransitionEnd)\n// }\n\n// renderWave = ({ csp }: ConfigConsumerProps) => {\n// const { children } = this.props\n// this.csp = csp\n\n// return children\n// }\n\n// render() {\n// return <ConfigConsumer>{this.renderWave}</ConfigConsumer>\n// }\n// }\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowContext.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/grid/RowContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGrC,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,UAAU,EAAE,OAAO,CAAC,eAAe,CAAqB,CAAC;AAE/D,eAAe,UAAU,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RowContext.js","sourceRoot":"","sources":["../../../src/tntd-form/grid/RowContext.tsx"],"names":[],"mappings":";;AACA,iCAAsC;AAQtC,MAAM,UAAU,GAA6B,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAC;AAE/D,kBAAe,UAAU,CAAC","sourcesContent":["import type { Context } from 'react';\nimport { createContext } from 'react';\n\nexport interface RowContextState {\n gutter?: [number, number];\n wrap?: boolean;\n supportFlexGap?: boolean;\n}\n\nconst RowContext: Context<RowContextState> = createContext({});\n\nexport default RowContext;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/grid/col.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,aAAK,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;AAEnC,aAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAElD,MA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C5C,gCAAgC;IAChC,IAAI,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;QAC3B,MAAM,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACvC,WAAW,CAAC,WAAW,GAAG,gBAAgB,CAAC;QAC3C,WAAW,CAAC,YAAY,GAAG,gBAAgB,CAAC;KAC7C;IAED,mDAAmD;IACnD,IAAI,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE;QAC9C,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrC,WAAW,CAAC,UAAU,GAAG,cAAc,CAAC;QACxC,WAAW,CAAC,aAAa,GAAG,cAAc,CAAC;KAC5C;IAED,IAAI,IAAI,EAAE;QACR,WAAW,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;QAEnC,uCAAuC;QACvC,6EAA6E;QAC7E,IAAI,IAAI,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE;YAC3C,WAAW,CAAC,QAAQ,GAAG,CAAC,CAAC;SAC1B;KACF;IAED,OAAO,CACL,6CAAS,MAAM,IAAE,KAAK,kCAAO,WAAW,GAAK,KAAK,GAAI,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,KAC/E,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;IACzC,GAAG,CAAC,WAAW,GAAG,KAAK,CAAC;CACzB;AAED,kBAAe,GAAG,CAAC","sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\n// import { ConfigContext } from '../../config-provider';\nimport { ConfigContext } from '../_util/context'\nimport RowContext from './RowContext';\n\n// https://github.com/ant-design/ant-design/issues/14324\ntype ColSpanType = number | string;\n\ntype FlexType = number | 'none' | 'auto' | string;\n\nexport interface ColSize {\n flex?: FlexType;\n span?: ColSpanType;\n order?: ColSpanType;\n offset?: ColSpanType;\n push?: ColSpanType;\n pull?: ColSpanType;\n}\n\nexport interface ColProps extends React.HTMLAttributes<HTMLDivElement> {\n flex?: FlexType;\n span?: ColSpanType;\n order?: ColSpanType;\n offset?: ColSpanType;\n push?: ColSpanType;\n pull?: ColSpanType;\n xs?: ColSpanType | ColSize;\n sm?: ColSpanType | ColSize;\n md?: ColSpanType | ColSize;\n lg?: ColSpanType | ColSize;\n xl?: ColSpanType | ColSize;\n xxl?: ColSpanType | ColSize;\n prefixCls?: string;\n}\n\nfunction parseFlex(flex: FlexType): string {\n if (typeof flex === 'number') {\n return `${flex} ${flex} auto`;\n }\n\n if (/^\\d+(\\.\\d+)?(px|em|rem|%)$/.test(flex)) {\n return `0 0 ${flex}`;\n }\n\n return flex;\n}\nconst sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'] as const;\nconst Col = React.forwardRef<HTMLDivElement, ColProps>((props, ref) => {\n const { getPrefixCls, direction } = React.useContext(ConfigContext);\n const { gutter, wrap, supportFlexGap } = React.useContext(RowContext);\n\n const {\n prefixCls: customizePrefixCls='tnt-col',\n span,\n order,\n offset,\n push,\n pull,\n className,\n children,\n flex,\n style,\n ...others\n } = props;\n\n const prefixCls = getPrefixCls('col', customizePrefixCls);\n\n let sizeClassObj = {};\n sizes.forEach(size => {\n let sizeProps: ColSize = {};\n const propSize = props[size];\n if (typeof propSize === 'number') {\n sizeProps.span = propSize;\n } else if (typeof propSize === 'object') {\n sizeProps = propSize || {};\n }\n\n delete others[size];\n\n sizeClassObj = {\n ...sizeClassObj,\n [`${prefixCls}-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,\n [`${prefixCls}-${size}-order-${sizeProps.order}`]: sizeProps.order || sizeProps.order === 0,\n [`${prefixCls}-${size}-offset-${sizeProps.offset}`]:\n sizeProps.offset || sizeProps.offset === 0,\n [`${prefixCls}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0,\n [`${prefixCls}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n };\n });\n\n const classes = classNames(\n prefixCls,\n {\n [`${prefixCls}-${span}`]: span !== undefined,\n [`${prefixCls}-order-${order}`]: order,\n [`${prefixCls}-offset-${offset}`]: offset,\n [`${prefixCls}-push-${push}`]: push,\n [`${prefixCls}-pull-${pull}`]: pull,\n },\n className,\n sizeClassObj,\n );\n\n const mergedStyle: React.CSSProperties = {};\n // Horizontal gutter use padding\n if (gutter && gutter[0] > 0) {\n const horizontalGutter = gutter[0] / 2;\n mergedStyle.paddingLeft = horizontalGutter;\n mergedStyle.paddingRight = horizontalGutter;\n }\n\n // Vertical gutter use padding when gap not support\n if (gutter && gutter[1] > 0 && !supportFlexGap) {\n const verticalGutter = gutter[1] / 2;\n mergedStyle.paddingTop = verticalGutter;\n mergedStyle.paddingBottom = verticalGutter;\n }\n\n if (flex) {\n mergedStyle.flex = parseFlex(flex);\n\n // Hack for Firefox to avoid size issue\n // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553\n if (wrap === false && !mergedStyle.minWidth) {\n mergedStyle.minWidth = 0;\n }\n }\n\n return (\n <div {...others} style={{ ...mergedStyle, ...style }} className={classes} ref={ref}>\n {children}\n </div>\n );\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Col.displayName = 'Col';\n}\n\nexport default Col;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../../../src/tntd-form/grid/hooks/useBreakpoint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG/D,iBAAS,aAAa,CAAC,eAAe,GAAE,OAAc,GAAG,SAAS,CAgBjE;AAED,eAAe,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBreakpoint.js","sourceRoot":"","sources":["../../../../src/tntd-form/grid/hooks/useBreakpoint.tsx"],"names":[],"mappings":";;;;;AAAA,iCAA0C;AAC1C,sFAA8D;AAE9D,sFAA8D;AAE9D,SAAS,aAAa,CAAC,kBAA2B,IAAI;IACpD,MAAM,UAAU,GAAG,IAAA,cAAM,EAAY,EAAE,CAAC,CAAC;IACzC,MAAM,WAAW,GAAG,IAAA,wBAAc,GAAE,CAAC;IAErC,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,MAAM,KAAK,GAAG,2BAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE;YACzD,UAAU,CAAC,OAAO,GAAG,cAAc,CAAC;YACpC,IAAI,eAAe,EAAE;gBACnB,WAAW,EAAE,CAAC;aACf;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE,CAAC,2BAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,UAAU,CAAC,OAAO,CAAC;AAC5B,CAAC;AAED,kBAAe,aAAa,CAAC","sourcesContent":["import { useEffect, useRef } from 'react';\nimport useForceUpdate from '../../_util/hooks/useForceUpdate';\nimport type { ScreenMap } from '../../_util/responsiveObserve';\nimport ResponsiveObserve from '../../_util/responsiveObserve';\n\nfunction useBreakpoint(refreshOnChange: boolean = true): ScreenMap {\n const screensRef = useRef<ScreenMap>({});\n const forceUpdate = useForceUpdate();\n\n useEffect(() => {\n const token = ResponsiveObserve.subscribe(supportScreens => {\n screensRef.current = supportScreens;\n if (refreshOnChange) {\n forceUpdate();\n }\n });\n\n return () => ResponsiveObserve.unsubscribe(token);\n }, []);\n\n return screensRef.current;\n}\n\nexport default useBreakpoint;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/grid/index.tsx"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,OAAO,SAAS,CAAA;AAGhB,iBAAS,aAAa,8EAErB;AAED,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;;;;AAEpB,wBAAiC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tntd-form/grid/index.tsx"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAaV,cAbP,aAAG,CAaO;AAZjB,0EAA0D;AAC1D,gDAAwB;AAWf,cAXF,aAAG,CAWE;AATZ,mBAAgB;AAEhB,uBAAuB;AACvB,SAAS,aAAa;IACpB,OAAO,IAAA,uBAAqB,GAAE,CAAC;AACjC,CAAC;AAED,6BAA0C;AAC1C,6BAAiC;AAGjC,kBAAe,EAAE,aAAa,EAAE,CAAC","sourcesContent":["import Col from './col';\nimport useInternalBreakpoint from './hooks/useBreakpoint';\nimport Row from './row';\n\nimport './style'\n\n// Do not export params\nfunction useBreakpoint() {\n return useInternalBreakpoint();\n}\n\nexport { ColProps, ColSize } from './col';\nexport { RowProps } from './row';\nexport { Row, Col };\n\nexport default { useBreakpoint };\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/tntd-form/grid/row.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,4BAA4B,CAAC;AAKxE,QAAA,MAAM,SAAS,wCAA8C,CAAC;AAC9D,QAAA,MAAM,UAAU,6EAAmF,CAAC;AAEpG,aAAK,UAAU,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3D,aAAK,cAAc,CAAC,CAAC,IAAI;KACtB,GAAG,IAAI,UAAU,CAAC,CAAC,EAAE,CAAC;CACxB,CAAC;AAGF,oBAAY,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E,aAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AACjE,aAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AACnE,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,KAAK,CAAC,EAAE,OAAO,SAAS,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC;IACpD,OAAO,CAAC,EAAE,OAAO,UAAU,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AA+BD,QAAA,MAAM,GAAG,iFA4HP,CAAC;AAMH,eAAe,GAAG,CAAC"}
@@ -153,7 +153,6 @@ var Row = React.forwardRef(function (props, ref) {
153
153
  }
154
154
  if (supportFlexGap) {
155
155
  // Set gap direct if flex gap support
156
- ;
157
156
  var _gutters = _slicedToArray(gutters, 2);
158
157
  rowStyle.rowGap = _gutters[1];
159
158
  } else if (verticalGutter) {