tntd 2.7.31 → 2.7.32

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 @@
1
+ {"version":3,"file":"row.js","sourceRoot":"","sources":["../../../src/tntd-form/grid/row.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAoC;AACpC,6CAA+B;AAC/B,8CAAgD;AAChD,yFAAiE;AAEjE,gFAAgF;AAChF,wCAAsC;AACtC,8DAAsC;AAEtC,MAAM,SAAS,GAAG,IAAA,YAAK,EAAC,KAAK,EAAE,QAAQ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S,GAAG,cAAc,CAAC;QACpC,QAAQ,CAAC,YAAY,GAAG,cAAc,CAAC;KACxC;IAED,2FAA2F;IAC3F,6CAA6C;IAC7C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;IACnC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAC9B,GAAG,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAqB,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,EAChF,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,CAAC,CACzC,CAAC;IAEF,OAAO,CACL,oBAAC,oBAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,UAAU;QACpC,6CAAS,MAAM,IAAE,SAAS,EAAE,OAAO,EAAE,KAAK,kCAAO,QAAQ,GAAK,KAAK,GAAI,GAAG,EAAE,GAAG,KAC5E,QAAQ,CACL,CACc,CACvB,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';\nimport { ConfigContext } from '../_util/context'\nimport useFlexGapSupport from '../_util/hooks/useFlexGapSupport';\nimport type { Breakpoint, ScreenMap } from '../_util/responsiveObserve';\nimport ResponsiveObserve, { responsiveArray } from '../_util/responsiveObserve';\nimport { tuple } from '../_util/type';\nimport RowContext from './RowContext';\n\nconst RowAligns = tuple('top', 'middle', 'bottom', 'stretch');\nconst RowJustify = tuple('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');\n\ntype Responsive = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';\ntype ResponsiveLike<T> = {\n [key in Responsive]?: T;\n};\n\ntype Gap = number | undefined;\nexport type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;\n\ntype ResponsiveAligns = ResponsiveLike<typeof RowAligns[number]>;\ntype ResponsiveJustify = ResponsiveLike<typeof RowJustify[number]>;\nexport interface RowProps extends React.HTMLAttributes<HTMLDivElement> {\n gutter?: Gutter | [Gutter, Gutter];\n align?: typeof RowAligns[number] | ResponsiveAligns;\n justify?: typeof RowJustify[number] | ResponsiveJustify;\n prefixCls?: string;\n wrap?: boolean;\n}\n\nfunction useMergePropByScreen(oriProp: RowProps['align'] | RowProps['justify'], screen: ScreenMap) {\n const [prop, setProp] = React.useState(typeof oriProp === 'string' ? oriProp : '');\n\n const clacMergeAlignOrJustify = () => {\n if (typeof oriProp === 'string') {\n setProp(oriProp);\n }\n if (typeof oriProp !== 'object') {\n return;\n }\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint: Breakpoint = responsiveArray[i];\n // if do not match, do nothing\n if (!screen[breakpoint]) continue;\n const curVal = oriProp[breakpoint];\n if (curVal !== undefined) {\n setProp(curVal);\n return;\n }\n }\n };\n\n React.useEffect(() => {\n clacMergeAlignOrJustify();\n }, [JSON.stringify(oriProp), screen]);\n\n return prop;\n}\n\nconst Row = React.forwardRef<HTMLDivElement, RowProps>((props, ref) => {\n const {\n prefixCls: customizePrefixCls='tnt-row',\n justify,\n align,\n className,\n style,\n children,\n gutter = 0,\n wrap,\n ...others\n } = props;\n\n const { getPrefixCls, direction } = React.useContext(ConfigContext);\n\n const [screens, setScreens] = React.useState<ScreenMap>({\n xs: true,\n sm: true,\n md: true,\n lg: true,\n xl: true,\n xxl: true,\n });\n // to save screens info when responsiveObserve callback had been call\n const [curScreens, setCurScreens] = React.useState<ScreenMap>({\n xs: false,\n sm: false,\n md: false,\n lg: false,\n xl: false,\n xxl: false,\n });\n\n // ================================== calc reponsive data ==================================\n const mergeAlign = useMergePropByScreen(align, curScreens);\n\n const mergeJustify = useMergePropByScreen(justify, curScreens);\n\n const supportFlexGap = useFlexGapSupport();\n\n const gutterRef = React.useRef<Gutter | [Gutter, Gutter]>(gutter);\n\n // ================================== Effect ==================================\n React.useEffect(() => {\n const token = ResponsiveObserve.subscribe(screen => {\n setCurScreens(screen);\n const currentGutter = gutterRef.current || 0;\n if (\n (!Array.isArray(currentGutter) && typeof currentGutter === 'object') ||\n (Array.isArray(currentGutter) &&\n (typeof currentGutter[0] === 'object' || typeof currentGutter[1] === 'object'))\n ) {\n setScreens(screen);\n }\n });\n return () => ResponsiveObserve.unsubscribe(token);\n }, []);\n\n // ================================== Render ==================================\n const getGutter = (): [Gap, Gap] => {\n const results: [Gap, Gap] = [undefined, undefined];\n const normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, undefined];\n normalizedGutter.forEach((g, index) => {\n if (typeof g === 'object') {\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint: Breakpoint = responsiveArray[i];\n if (screens[breakpoint] && g[breakpoint] !== undefined) {\n results[index] = g[breakpoint] as number;\n break;\n }\n }\n } else {\n results[index] = g;\n }\n });\n return results;\n };\n\n const prefixCls = getPrefixCls('row', customizePrefixCls);\n const gutters = getGutter();\n const classes = classNames(\n prefixCls,\n {\n [`${prefixCls}-no-wrap`]: wrap === false,\n [`${prefixCls}-${mergeJustify}`]: mergeJustify,\n [`${prefixCls}-${mergeAlign}`]: mergeAlign,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n },\n className,\n );\n\n // Add gutter related style\n const rowStyle: React.CSSProperties = {};\n const horizontalGutter = gutters[0] != null && gutters[0] > 0 ? gutters[0] / -2 : undefined;\n const verticalGutter = gutters[1] != null && gutters[1] > 0 ? gutters[1] / -2 : undefined;\n\n if (horizontalGutter) {\n rowStyle.marginLeft = horizontalGutter;\n rowStyle.marginRight = horizontalGutter;\n }\n\n if (supportFlexGap) {\n // Set gap direct if flex gap support\n [, rowStyle.rowGap] = gutters;\n } else if (verticalGutter) {\n rowStyle.marginTop = verticalGutter;\n rowStyle.marginBottom = verticalGutter;\n }\n\n // \"gutters\" is a new array in each rendering phase, it'll make 'React.useMemo' effectless.\n // So we deconstruct \"gutters\" variable here.\n const [gutterH, gutterV] = gutters;\n const rowContext = React.useMemo(\n () => ({ gutter: [gutterH, gutterV] as [number, number], wrap, supportFlexGap }),\n [gutterH, gutterV, wrap, supportFlexGap],\n );\n\n return (\n <RowContext.Provider value={rowContext}>\n <div {...others} className={classes} style={{ ...rowStyle, ...style }} ref={ref}>\n {children}\n </div>\n </RowContext.Provider>\n );\n});\n\nif (process.env.NODE_ENV !== 'production') {\n Row.displayName = 'Row';\n}\n\nexport default Row;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tntd-form/grid/style/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tntd-form/grid/style/index.tsx"],"names":[],"mappings":";;AAAA,kCAAgC;AAChC,wBAAsB","sourcesContent":["import '../../style/index.less';\nimport './index.less';\n"]}
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import type { Meta, Story } from '@tntd/storybook-react-storykit';
3
+ import type { FormProps } from './Form';
4
+ declare const _default: Meta<(<Values = any>(props: FormProps<Values> & {
5
+ children?: React.ReactNode;
6
+ } & {
7
+ ref?: React.Ref<import("./index").FormInstance<Values>> | undefined;
8
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
9
+ useForm: typeof import("./Form").useForm;
10
+ useFormInstance: typeof import("./hooks/useFormInstance").default;
11
+ useWatch: typeof import("rc-field-form/es/useWatch").default;
12
+ Item: (<Values_1 = any>(props: import("./FormItem").FormItemProps<Values_1>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
13
+ useStatus: () => {
14
+ status?: "" | "success" | "error" | "warning" | "validating" | undefined;
15
+ };
16
+ };
17
+ List: React.FC<import("./FormList").FormListProps>;
18
+ ErrorList: typeof import("./ErrorList").default;
19
+ Provider: React.FC<import("./context").FormProviderProps>;
20
+ create: () => void;
21
+ }>;
22
+ export default _default;
23
+ export declare const Basic: Story<FormProps<any>>;
24
+ export declare const FormMethodInvoke: Story<FormProps<any>>;
25
+ export declare const FormLayoutDemo: () => JSX.Element;
26
+ export declare const UnblockValidate: () => JSX.Element;
27
+ export declare const UseWatchHooks: () => JSX.Element;
28
+ export declare const DynamicAddRemoveFields: () => JSX.Element;
29
+ export declare const DynamicItemsComplex: () => JSX.Element;
30
+ export declare const FormInModal: () => JSX.Element;
31
+ export declare const FormDisabledReadonly: () => JSX.Element;
32
+ export declare const NestValidatorForm: () => JSX.Element;
33
+ //# sourceMappingURL=tntd-form.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tntd-form.stories.d.ts","sourceRoot":"","sources":["../../src/tntd-form/tntd-form.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;;;;;;;;;;;;;;;;;;;AA+BvC,wBAGsB;AAOtB,eAAO,MAAM,KAAK,uBAAoB,CAAA;AAuJtC,eAAO,MAAM,gBAAgB,uBAA+B,CAAA;AAyD5D,eAAO,MAAM,cAAc,mBAA8B,CAAA;AAyCzD,eAAO,MAAM,eAAe,mBAAmC,CAAA;AAuB/D,eAAO,MAAM,aAAa,mBAA4B,CAAA;AAuGtD,eAAO,MAAM,sBAAsB,mBAAqC,CAAA;AA8FxE,eAAO,MAAM,mBAAmB,mBAAkC,CAAA;AAkElE,eAAO,MAAM,WAAW,mBAA0B,CAAA;AAiKlD,eAAO,MAAM,oBAAoB,mBAA2B,CAAA;AAkD5D,eAAO,MAAM,iBAAiB,mBAAgC,CAAA"}