tntd 2.7.28 → 2.7.29

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 (1232) hide show
  1. package/es/_util/context.js +12 -0
  2. package/es/_util/context.js.map +1 -0
  3. package/es/_util/defaultRenderEmpty.js +31 -0
  4. package/es/_util/defaultRenderEmpty.js.map +1 -0
  5. package/es/_util/hooks/useFlexGapSupport.js +9 -0
  6. package/es/_util/hooks/useFlexGapSupport.js.map +1 -0
  7. package/es/_util/hooks/useForceUpdate.js +5 -0
  8. package/es/_util/hooks/useForceUpdate.js.map +1 -0
  9. package/es/_util/motion.js +41 -10
  10. package/es/_util/motion.js.map +1 -1
  11. package/es/_util/reactNode.js +16 -0
  12. package/es/_util/reactNode.js.map +1 -0
  13. package/es/_util/responsiveObserve.js +59 -0
  14. package/es/_util/responsiveObserve.js.map +1 -0
  15. package/es/_util/styleChecker.js +26 -0
  16. package/es/_util/styleChecker.js.map +1 -0
  17. package/es/_util/type.js +1 -2
  18. package/es/_util/type.js.map +1 -1
  19. package/es/_util/warning.js +3 -4
  20. package/es/_util/warning.js.map +1 -1
  21. package/es/actions/index.js +22 -8
  22. package/es/affix/index.js +1 -2
  23. package/es/alert/index.js +1 -2
  24. package/es/anchor/index.js +1 -2
  25. package/es/array-input/icon.js +24 -6
  26. package/es/array-input/index.js +203 -119
  27. package/es/auth-context/index.js +1 -2
  28. package/es/auto-complete/index.js +1 -2
  29. package/es/avatar/index.js +1 -2
  30. package/es/back-top/index.js +1 -2
  31. package/es/badge/index.js +1 -2
  32. package/es/breadcrumb/index.js +1 -2
  33. package/es/button/button.js +28 -23
  34. package/es/button/index.js +1 -2
  35. package/es/calendar/index.js +1 -2
  36. package/es/card/card.js +19 -15
  37. package/es/card/index.js +1 -2
  38. package/es/carousel/index.js +1 -2
  39. package/es/cascader/index.js +1 -2
  40. package/es/check-card/group.js +186 -138
  41. package/es/check-card/index.js +150 -107
  42. package/es/checkbox/checkbox-group.js +1 -2
  43. package/es/checkbox/index.js +1 -2
  44. package/es/col/index.js +1 -2
  45. package/es/collapse/index.js +1 -2
  46. package/es/color-picker/ColorPicker.js +126 -80
  47. package/es/color-picker/index.js +8 -5
  48. package/es/columns/index.js +66 -30
  49. package/es/columns/style/index.js +1 -2
  50. package/es/comment/index.js +1 -2
  51. package/es/config-provider/DisabledContext.js +9 -5
  52. package/es/config-provider/SizeContext.js +7 -3
  53. package/es/config-provider/config-provider.js +1 -2
  54. package/es/config-provider/index.js +1 -2
  55. package/es/connect/index.js +23 -20
  56. package/es/date-picker/index.js +9 -6
  57. package/es/descriptions/descriptions.js +38 -30
  58. package/es/descriptions/index.js +1 -2
  59. package/es/development-login/LoginModal.js +81 -46
  60. package/es/development-login/index.js +17 -8
  61. package/es/divider/index.js +1 -2
  62. package/es/drawer/drawer.js +27 -20
  63. package/es/drawer/index.js +1 -2
  64. package/es/dropdown/index.js +1 -2
  65. package/es/ellipsis/Svg/CopySVG.js +63 -16
  66. package/es/ellipsis/Svg/TickSVG.js +41 -11
  67. package/es/ellipsis/index.js +137 -99
  68. package/es/empty/empty.js +58 -48
  69. package/es/empty/empty.stories.js +5 -6
  70. package/es/empty/index.js +1 -2
  71. package/es/exception/exception.js +32 -19
  72. package/es/exception/index.js +1 -2
  73. package/es/form/form.js +63 -55
  74. package/es/form/index.js +1 -2
  75. package/es/grid/RowContext.js +3 -0
  76. package/es/grid/RowContext.js.map +1 -0
  77. package/es/grid/col.js +103 -0
  78. package/es/grid/col.js.map +1 -0
  79. package/es/grid/hooks/useBreakpoint.js +18 -0
  80. package/es/grid/hooks/useBreakpoint.js.map +1 -0
  81. package/es/grid/index.js +14 -0
  82. package/es/grid/index.js.map +1 -0
  83. package/es/grid/row.js +154 -0
  84. package/es/grid/row.js.map +1 -0
  85. package/es/grid/style/index.js +2 -0
  86. package/es/grid/style/index.js.map +1 -0
  87. package/es/grid/style/index.less +124 -0
  88. package/es/grid/style/mixin.less +57 -0
  89. package/es/grid/style/rtl.less +69 -0
  90. package/es/handle/index.js +131 -91
  91. package/es/icon/index.js +1 -2
  92. package/es/icon-list/index.js +1 -120
  93. package/es/img/Contain.js +60 -39
  94. package/es/img/Cover.js +98 -72
  95. package/es/img/index.js +48 -32
  96. package/es/index.js +3 -2
  97. package/es/index.js.map +1 -1
  98. package/es/input/index.js +1 -2
  99. package/es/input/input.js +93 -46
  100. package/es/input-number/index.js +1 -2
  101. package/es/label/index.js +115 -98
  102. package/es/layout/index.js +1 -2
  103. package/es/list/index.js +1 -2
  104. package/es/loading-button/index.js +33 -28
  105. package/es/locale/default.js +3 -4
  106. package/es/locale/en_US.js +41 -42
  107. package/es/locale/index.js +1 -2
  108. package/es/locale/zh_CN.js +34 -35
  109. package/es/locale-provider/index.js +2 -3
  110. package/es/mentions/index.js +1 -2
  111. package/es/menu/index.js +1 -2
  112. package/es/message/index.js +1 -2
  113. package/es/modal/index.js +1 -2
  114. package/es/modal/modal.js +24 -15
  115. package/es/notification/index.js +1 -2
  116. package/es/page/Box.js +49 -33
  117. package/es/page/index.js +120 -84
  118. package/es/page/utils.js +12 -14
  119. package/es/page-header/index.js +1 -2
  120. package/es/pagination/index.js +1 -2
  121. package/es/popconfirm/index.js +1 -2
  122. package/es/popover/index.js +1 -2
  123. package/es/prev-locale.js +49 -47
  124. package/es/preview-text/index.js +247 -177
  125. package/es/progress/index.js +1 -2
  126. package/es/query-form/Field/Checkbox.js +20 -17
  127. package/es/query-form/Field/Select.js +54 -39
  128. package/es/query-form/Field/SelectInput.js +65 -45
  129. package/es/query-form/Field/fieldsMap.js +19 -20
  130. package/es/query-form/Field/index.js +108 -67
  131. package/es/query-form/createActions.js +46 -46
  132. package/es/query-form/index.js +327 -247
  133. package/es/query-form/useForm.js +3 -4
  134. package/es/query-list-scene/List.js +321 -255
  135. package/es/query-list-scene/QueryForm.js +132 -94
  136. package/es/query-list-scene/QueryListScene.js +29 -21
  137. package/es/query-list-scene/Title.js +6 -4
  138. package/es/query-list-scene/Toolbar.js +21 -15
  139. package/es/query-list-scene/createActions.js +60 -60
  140. package/es/query-list-scene/index.js +1 -2
  141. package/es/query-list-scene/useActions.js +3 -4
  142. package/es/radio/index.js +1 -2
  143. package/es/radio/radio-group.js +1 -2
  144. package/es/rate/index.js +1 -2
  145. package/es/render-empty/index.js +1 -2
  146. package/es/render-empty/render-empty.js +19 -16
  147. package/es/result/index.js +1 -2
  148. package/es/row/index.js +1 -2
  149. package/es/segmented/index.js +55 -38
  150. package/es/select/index.js +1 -2
  151. package/es/select/select.js +43 -27
  152. package/es/skeleton/index.js +1 -2
  153. package/es/slider/index.js +1 -2
  154. package/es/spin/index.js +1 -2
  155. package/es/statistic/index.js +1 -2
  156. package/es/steps/index.js +1 -2
  157. package/es/steps/steps.js +51 -35
  158. package/es/svg-components/illustration-403.js +206 -58
  159. package/es/svg-components/illustration-404.js +290 -75
  160. package/es/svg-components/illustration-500.js +321 -83
  161. package/es/svg-components/illustration-empty.js +54 -15
  162. package/es/svg-components/illustration-failure.js +112 -36
  163. package/es/svg-components/illustration-no-access.js +114 -35
  164. package/es/svg-components/illustration-no-chart.js +134 -37
  165. package/es/svg-components/illustration-no-result.js +92 -32
  166. package/es/svg-components/illustration-offline.js +131 -43
  167. package/es/svg-components/illustration-success.js +137 -43
  168. package/es/svg-components/index.js +1 -2
  169. package/es/switch/index.js +1 -2
  170. package/es/switch/switch.js +4 -3
  171. package/es/table/assets/image-loading-background.js +45 -17
  172. package/es/table/assets/image-loading.js +26 -5
  173. package/es/table/constants.js +1 -2
  174. package/es/table/context.js +1 -2
  175. package/es/table/hooks/index.js +1 -2
  176. package/es/table/hooks/use-column-setting.js +13 -16
  177. package/es/table/index.js +1 -2
  178. package/es/table/table.js +162 -129
  179. package/es/table/table.stories.js +148 -139
  180. package/es/table/total-shower.js +8 -4
  181. package/es/table/utils.js +17 -18
  182. package/es/tabs/index.js +1 -2
  183. package/es/tabs/tabPane.js +1 -2
  184. package/es/tabs/tabs.js +35 -27
  185. package/es/tag/index.js +1 -2
  186. package/es/time-picker/index.js +1 -2
  187. package/es/timeline/index.js +1 -2
  188. package/es/title/index.js +32 -20
  189. package/es/tntd-cascader/AntdCascader/component/DisabledContext.js +9 -5
  190. package/es/tntd-cascader/AntdCascader/component/FormItemInputContext.js +1 -2
  191. package/es/tntd-cascader/AntdCascader/component/SizeContext.js +1 -2
  192. package/es/tntd-cascader/AntdCascader/component/context.js +5 -7
  193. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +22 -10
  194. package/es/tntd-cascader/AntdCascader/component/getIcons.js +72 -50
  195. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +22 -20
  196. package/es/tntd-cascader/AntdCascader/config/utils.js +17 -18
  197. package/es/tntd-cascader/AntdCascader/config/warning.js +9 -10
  198. package/es/tntd-cascader/AntdCascader/index.js +189 -118
  199. package/es/tntd-cascader/AntdCascader/interface.js +1 -2
  200. package/es/tntd-cascader/index.js +1 -2
  201. package/es/tntd-cascader/rc-cascader/Cascader.js +256 -239
  202. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +21 -11
  203. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +175 -116
  204. package/es/tntd-cascader/rc-cascader/OptionList/index.js +180 -128
  205. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +22 -19
  206. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +144 -137
  207. package/es/tntd-cascader/rc-cascader/context.js +1 -2
  208. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +44 -37
  209. package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +25 -24
  210. package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +15 -17
  211. package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +7 -8
  212. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +20 -21
  213. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +51 -41
  214. package/es/tntd-cascader/rc-cascader/index.js +1 -2
  215. package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +33 -27
  216. package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +29 -32
  217. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +26 -23
  218. package/es/tntd-form/ErrorList.js +76 -42
  219. package/es/tntd-form/ErrorList.js.map +1 -1
  220. package/es/tntd-form/Form.js +118 -97
  221. package/es/tntd-form/FormItem/ItemHolder.js +127 -118
  222. package/es/tntd-form/FormItem/ItemHolder.js.map +1 -1
  223. package/es/tntd-form/FormItem/index.js +235 -209
  224. package/es/tntd-form/FormItem/index.js.map +1 -1
  225. package/es/tntd-form/FormItemInput.js +73 -32
  226. package/es/tntd-form/FormItemInput.js.map +1 -1
  227. package/es/tntd-form/FormItemLabel.js +88 -63
  228. package/es/tntd-form/FormItemLabel.js.map +1 -1
  229. package/es/tntd-form/FormList.js +34 -28
  230. package/es/tntd-form/FormList.js.map +1 -1
  231. package/es/tntd-form/_util/context.js +12 -0
  232. package/es/tntd-form/_util/context.js.map +1 -0
  233. package/es/tntd-form/_util/defaultRenderEmpty.js +31 -0
  234. package/es/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  235. package/es/tntd-form/_util/hooks/useFlexGapSupport.js +9 -0
  236. package/es/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  237. package/es/tntd-form/_util/hooks/useForceUpdate.js +5 -0
  238. package/es/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  239. package/es/tntd-form/_util/motion.js +36 -27
  240. package/es/tntd-form/_util/reactNode.js +10 -9
  241. package/es/tntd-form/_util/responsiveObserve.js +59 -0
  242. package/es/tntd-form/_util/responsiveObserve.js.map +1 -0
  243. package/es/tntd-form/_util/scrollTo.js +2 -2
  244. package/es/tntd-form/_util/styleChecker.js +26 -0
  245. package/es/tntd-form/_util/styleChecker.js.map +1 -0
  246. package/es/tntd-form/_util/type.js +1 -2
  247. package/es/tntd-form/_util/warning.js +3 -4
  248. package/es/tntd-form/_util/wave.js +2 -2
  249. package/es/tntd-form/context.js +29 -24
  250. package/es/tntd-form/grid/RowContext.js +3 -0
  251. package/es/tntd-form/grid/RowContext.js.map +1 -0
  252. package/es/tntd-form/grid/col.js +104 -0
  253. package/es/tntd-form/grid/col.js.map +1 -0
  254. package/es/tntd-form/grid/hooks/useBreakpoint.js +18 -0
  255. package/es/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  256. package/es/tntd-form/grid/index.js +14 -0
  257. package/es/tntd-form/grid/index.js.map +1 -0
  258. package/es/tntd-form/grid/row.js +153 -0
  259. package/es/tntd-form/grid/row.js.map +1 -0
  260. package/es/tntd-form/grid/style/index.js +2 -0
  261. package/es/tntd-form/grid/style/index.js.map +1 -0
  262. package/es/tntd-form/hooks/useDebounce.js +11 -12
  263. package/es/tntd-form/hooks/useForm.js +33 -28
  264. package/es/tntd-form/hooks/useFormInstance.js +5 -4
  265. package/es/tntd-form/hooks/useFormItemStatus.js +9 -6
  266. package/es/tntd-form/hooks/useFormItemStatus.js.map +1 -1
  267. package/es/tntd-form/hooks/useFrameState.js +32 -33
  268. package/es/tntd-form/hooks/useItemRef.js +15 -14
  269. package/es/tntd-form/index.js +1 -3
  270. package/es/tntd-form/index.js.map +1 -1
  271. package/es/tntd-form/interface.js +1 -2
  272. package/es/tntd-form/style/index.js +1 -2
  273. package/es/tntd-form/tntd-form.stories.js +781 -383
  274. package/es/tntd-form/util.js +10 -13
  275. package/es/tntd-form/validateMessagesContext.js +1 -2
  276. package/es/tntd-icon/fonts/iconfont.js +36 -53
  277. package/es/tntd-icon/index.js +23 -17
  278. package/es/tntd-layout/ActionsContext.js +1 -2
  279. package/es/tntd-layout/AppList.js +135 -77
  280. package/es/tntd-layout/Application.js +42 -29
  281. package/es/tntd-layout/Avatar.js +80 -42
  282. package/es/tntd-layout/CompatibleLanguage.js +93 -56
  283. package/es/tntd-layout/EnterpriseLayout/Avatar.js +93 -47
  284. package/es/tntd-layout/EnterpriseLayout/Language.js +56 -34
  285. package/es/tntd-layout/EnterpriseLayout/Theme.js +45 -24
  286. package/es/tntd-layout/EnterpriseLayout/index.js +17 -9
  287. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +212 -153
  288. package/es/tntd-layout/GlobalNavigation/index.js +84 -50
  289. package/es/tntd-layout/Header.js +59 -26
  290. package/es/tntd-layout/HeaderActions.js +84 -34
  291. package/es/tntd-layout/HeaderNavs.js +46 -35
  292. package/es/tntd-layout/HeaderTabs.js +176 -140
  293. package/es/tntd-layout/Iconfont.js +1 -2
  294. package/es/tntd-layout/Language.js +55 -33
  295. package/es/tntd-layout/Layout.js +176 -78
  296. package/es/tntd-layout/Logo.js +52 -40
  297. package/es/tntd-layout/OrgAppList.js +208 -139
  298. package/es/tntd-layout/SideMenu.js +230 -160
  299. package/es/tntd-layout/Theme.js +47 -29
  300. package/es/tntd-layout/createActions.js +28 -29
  301. package/es/tntd-layout/images/index.js +31 -32
  302. package/es/tntd-layout/index.js +92 -60
  303. package/es/tntd-layout/paaslayout/CompactSideMenu.js +109 -65
  304. package/es/tntd-layout/paaslayout/Header.js +37 -14
  305. package/es/tntd-layout/paaslayout/Logo.js +2 -3
  306. package/es/tntd-layout/paaslayout/SideMenu.js +109 -63
  307. package/es/tntd-layout/paaslayout/index.js +159 -79
  308. package/es/tntd-layout/storage.js +18 -11
  309. package/es/tntd-modal/index.js +73 -32
  310. package/es/tntd-rc-select/_util/DisabledContext.js +9 -5
  311. package/es/tntd-rc-select/_util/FormItemInputContext.js +1 -2
  312. package/es/tntd-rc-select/_util/PurePanel.js +59 -48
  313. package/es/tntd-rc-select/_util/SizeContext.js +1 -2
  314. package/es/tntd-rc-select/_util/context.js +5 -7
  315. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +21 -10
  316. package/es/tntd-rc-select/_util/getIcons.js +72 -50
  317. package/es/tntd-rc-select/_util/interface.js +1 -2
  318. package/es/tntd-rc-select/_util/motion.js +36 -27
  319. package/es/tntd-rc-select/_util/type.js +1 -2
  320. package/es/tntd-rc-select/_util/useCompactItemContext.js +22 -20
  321. package/es/tntd-rc-select/_util/warning.js +9 -10
  322. package/es/tntd-rc-select/index.js +131 -76
  323. package/es/tntd-second-page/index.js +47 -24
  324. package/es/tntd-select/DropDownWrap.js +73 -52
  325. package/es/tntd-select/index.js +593 -505
  326. package/es/tooltip/index.js +1 -2
  327. package/es/transfer/index.js +1 -2
  328. package/es/tree/index.js +1 -2
  329. package/es/tree-select/index.js +1 -2
  330. package/es/typography/index.js +1 -2
  331. package/es/upload/index.js +4 -3
  332. package/es/utils/checkAuth.js +24 -21
  333. package/es/utils/findMenuInfoByPath.js +33 -30
  334. package/es/utils/index.js +71 -65
  335. package/es/utils/lang.js +58 -108
  336. package/es/utils/simple-template.js +2 -3
  337. package/es/version/index.js +1 -2
  338. package/es/water-mark/index.js +98 -87
  339. package/lib/_util/context.d.ts.map +1 -0
  340. package/lib/_util/context.js +22 -0
  341. package/lib/_util/context.js.map +1 -0
  342. package/lib/_util/defaultRenderEmpty.d.ts.map +1 -0
  343. package/lib/_util/defaultRenderEmpty.js +44 -0
  344. package/lib/_util/defaultRenderEmpty.js.map +1 -0
  345. package/lib/_util/hooks/useFlexGapSupport.d.ts +3 -0
  346. package/lib/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
  347. package/lib/_util/hooks/useFlexGapSupport.js +28 -0
  348. package/lib/_util/hooks/useFlexGapSupport.js.map +1 -0
  349. package/lib/_util/hooks/useForceUpdate.d.ts +3 -0
  350. package/lib/_util/hooks/useForceUpdate.d.ts.map +1 -0
  351. package/lib/_util/hooks/useForceUpdate.js +24 -0
  352. package/lib/_util/hooks/useForceUpdate.js.map +1 -0
  353. package/lib/_util/motion.d.ts +3 -0
  354. package/lib/_util/motion.d.ts.map +1 -1
  355. package/lib/_util/motion.js +54 -15
  356. package/lib/_util/motion.js.map +1 -1
  357. package/lib/_util/reactNode.d.ts +9 -0
  358. package/lib/_util/reactNode.d.ts.map +1 -0
  359. package/lib/{mention/index.js → _util/reactNode.js} +19 -17
  360. package/lib/_util/reactNode.js.map +1 -0
  361. package/lib/_util/responsiveObserve.d.ts +22 -0
  362. package/lib/_util/responsiveObserve.d.ts.map +1 -0
  363. package/lib/_util/responsiveObserve.js +73 -0
  364. package/lib/_util/responsiveObserve.js.map +1 -0
  365. package/lib/_util/styleChecker.d.ts +5 -0
  366. package/lib/_util/styleChecker.d.ts.map +1 -0
  367. package/lib/_util/styleChecker.js +42 -0
  368. package/lib/_util/styleChecker.js.map +1 -0
  369. package/lib/_util/type.d.ts.map +1 -1
  370. package/lib/_util/type.js +17 -5
  371. package/lib/_util/type.js.map +1 -1
  372. package/lib/_util/warning.d.ts.map +1 -1
  373. package/lib/_util/warning.js +17 -29
  374. package/lib/_util/warning.js.map +1 -1
  375. package/lib/actions/index.js +31 -14
  376. package/lib/affix/index.d.ts +3 -3
  377. package/lib/affix/index.js +23 -22
  378. package/lib/affix/index.js.map +1 -1
  379. package/lib/alert/index.d.ts +3 -3
  380. package/lib/alert/index.js +23 -22
  381. package/lib/alert/index.js.map +1 -1
  382. package/lib/anchor/index.d.ts +3 -3
  383. package/lib/anchor/index.js +23 -22
  384. package/lib/anchor/index.js.map +1 -1
  385. package/lib/array-input/icon.js +33 -12
  386. package/lib/array-input/index.js +254 -150
  387. package/lib/auth-context/index.js +10 -4
  388. package/lib/auto-complete/index.d.ts +3 -3
  389. package/lib/auto-complete/index.js +23 -22
  390. package/lib/auto-complete/index.js.map +1 -1
  391. package/lib/avatar/index.d.ts +3 -3
  392. package/lib/avatar/index.js +23 -22
  393. package/lib/avatar/index.js.map +1 -1
  394. package/lib/back-top/index.d.ts +3 -3
  395. package/lib/back-top/index.js +23 -22
  396. package/lib/back-top/index.js.map +1 -1
  397. package/lib/badge/index.d.ts +3 -3
  398. package/lib/badge/index.js +23 -22
  399. package/lib/badge/index.js.map +1 -1
  400. package/lib/breadcrumb/index.d.ts +3 -3
  401. package/lib/breadcrumb/index.js +23 -22
  402. package/lib/breadcrumb/index.js.map +1 -1
  403. package/lib/button/button.d.ts +4 -4
  404. package/lib/button/button.js +62 -59
  405. package/lib/button/button.js.map +1 -1
  406. package/lib/button/index.d.ts +1 -1
  407. package/lib/button/index.js +20 -19
  408. package/lib/button/index.js.map +1 -1
  409. package/lib/calendar/index.d.ts +3 -3
  410. package/lib/calendar/index.js +23 -22
  411. package/lib/calendar/index.js.map +1 -1
  412. package/lib/card/card.d.ts +3 -3
  413. package/lib/card/card.js +45 -51
  414. package/lib/card/card.js.map +1 -1
  415. package/lib/card/index.d.ts +1 -1
  416. package/lib/card/index.js +20 -19
  417. package/lib/card/index.js.map +1 -1
  418. package/lib/carousel/index.d.ts +3 -3
  419. package/lib/carousel/index.js +23 -22
  420. package/lib/carousel/index.js.map +1 -1
  421. package/lib/cascader/index.d.ts +3 -3
  422. package/lib/cascader/index.js +29 -26
  423. package/lib/cascader/index.js.map +1 -1
  424. package/lib/check-card/group.js +228 -171
  425. package/lib/check-card/index.js +171 -141
  426. package/lib/checkbox/checkbox-group.d.ts +1 -1
  427. package/lib/checkbox/checkbox-group.js +11 -9
  428. package/lib/checkbox/checkbox-group.js.map +1 -1
  429. package/lib/checkbox/index.d.ts +3 -3
  430. package/lib/checkbox/index.js +37 -25
  431. package/lib/checkbox/index.js.map +1 -1
  432. package/lib/col/index.d.ts +3 -3
  433. package/lib/col/index.js +23 -22
  434. package/lib/col/index.js.map +1 -1
  435. package/lib/collapse/index.d.ts +3 -3
  436. package/lib/collapse/index.js +24 -23
  437. package/lib/collapse/index.js.map +1 -1
  438. package/lib/color-picker/ColorPicker.js +156 -113
  439. package/lib/color-picker/index.js +18 -14
  440. package/lib/color-picker/index.js.map +1 -1
  441. package/lib/columns/index.js +81 -41
  442. package/lib/columns/style/index.js +1 -2
  443. package/lib/comment/index.d.ts +3 -3
  444. package/lib/comment/index.js +23 -22
  445. package/lib/comment/index.js.map +1 -1
  446. package/lib/config-provider/DisabledContext.js +18 -31
  447. package/lib/config-provider/SizeContext.js +19 -28
  448. package/lib/config-provider/config-provider.d.ts +1 -1
  449. package/lib/config-provider/config-provider.js +12 -8
  450. package/lib/config-provider/config-provider.js.map +1 -1
  451. package/lib/config-provider/index.d.ts +4 -4
  452. package/lib/config-provider/index.js +35 -23
  453. package/lib/config-provider/index.js.map +1 -1
  454. package/lib/connect/index.js +44 -26
  455. package/lib/date-picker/index.d.ts +4 -4
  456. package/lib/date-picker/index.js +48 -32
  457. package/lib/date-picker/index.js.map +1 -1
  458. package/lib/descriptions/descriptions.d.ts +3 -3
  459. package/lib/descriptions/descriptions.js +64 -55
  460. package/lib/descriptions/descriptions.js.map +1 -1
  461. package/lib/descriptions/index.d.ts +1 -1
  462. package/lib/descriptions/index.js +23 -22
  463. package/lib/descriptions/index.js.map +1 -1
  464. package/lib/development-login/LoginModal.js +110 -79
  465. package/lib/development-login/index.js +42 -35
  466. package/lib/divider/index.d.ts +3 -3
  467. package/lib/divider/index.js +23 -22
  468. package/lib/divider/index.js.map +1 -1
  469. package/lib/drawer/drawer.d.ts +1 -1
  470. package/lib/drawer/drawer.js +41 -30
  471. package/lib/drawer/drawer.js.map +1 -1
  472. package/lib/drawer/index.d.ts +2 -2
  473. package/lib/drawer/index.js +22 -20
  474. package/lib/drawer/index.js.map +1 -1
  475. package/lib/dropdown/index.d.ts +3 -3
  476. package/lib/dropdown/index.js +23 -22
  477. package/lib/dropdown/index.js.map +1 -1
  478. package/lib/ellipsis/Svg/CopySVG.js +70 -20
  479. package/lib/ellipsis/Svg/TickSVG.js +48 -15
  480. package/lib/ellipsis/index.js +176 -137
  481. package/lib/empty/empty.d.ts +2 -2
  482. package/lib/empty/empty.js +90 -75
  483. package/lib/empty/empty.js.map +1 -1
  484. package/lib/empty/empty.stories.js +19 -18
  485. package/lib/empty/index.d.ts +1 -1
  486. package/lib/empty/index.js +20 -19
  487. package/lib/empty/index.js.map +1 -1
  488. package/lib/exception/exception.js +46 -31
  489. package/lib/exception/exception.js.map +1 -1
  490. package/lib/exception/index.js +19 -18
  491. package/lib/form/form.d.ts +5 -5
  492. package/lib/form/form.js +90 -92
  493. package/lib/form/form.js.map +1 -1
  494. package/lib/form/index.d.ts +1 -1
  495. package/lib/form/index.js +20 -19
  496. package/lib/form/index.js.map +1 -1
  497. package/lib/grid/RowContext.d.ts +9 -0
  498. package/lib/grid/RowContext.d.ts.map +1 -0
  499. package/lib/grid/RowContext.js +10 -0
  500. package/lib/grid/RowContext.js.map +1 -0
  501. package/lib/grid/col.d.ts +29 -0
  502. package/lib/grid/col.d.ts.map +1 -0
  503. package/lib/grid/col.js +105 -0
  504. package/lib/grid/col.js.map +1 -0
  505. package/lib/grid/hooks/useBreakpoint.d.ts +4 -0
  506. package/lib/grid/hooks/useBreakpoint.d.ts.map +1 -0
  507. package/lib/grid/hooks/useBreakpoint.js +29 -0
  508. package/lib/grid/hooks/useBreakpoint.js.map +1 -0
  509. package/lib/grid/index.d.ts +12 -0
  510. package/lib/grid/index.d.ts.map +1 -0
  511. package/lib/grid/index.js +31 -0
  512. package/lib/grid/index.js.map +1 -0
  513. package/lib/grid/row.d.ts +21 -0
  514. package/lib/grid/row.d.ts.map +1 -0
  515. package/lib/grid/row.js +187 -0
  516. package/lib/grid/row.js.map +1 -0
  517. package/lib/grid/style/index.d.ts +2 -0
  518. package/lib/grid/style/index.d.ts.map +1 -0
  519. package/lib/grid/style/index.js +3 -0
  520. package/lib/grid/style/index.js.map +1 -0
  521. package/lib/grid/style/index.less +124 -0
  522. package/lib/grid/style/mixin.less +57 -0
  523. package/lib/grid/style/rtl.less +69 -0
  524. package/lib/handle/index.js +166 -125
  525. package/lib/handle/index.js.map +1 -1
  526. package/lib/icon/index.d.ts +3 -3
  527. package/lib/icon/index.js +23 -22
  528. package/lib/icon/index.js.map +1 -1
  529. package/lib/icon-list/index.js +7 -121
  530. package/lib/img/Contain.js +69 -44
  531. package/lib/img/Cover.js +117 -78
  532. package/lib/img/index.js +74 -60
  533. package/lib/index.d.ts +2 -0
  534. package/lib/index.d.ts.map +1 -1
  535. package/lib/index.js +662 -197
  536. package/lib/index.js.map +1 -1
  537. package/lib/input/index.d.ts +1 -1
  538. package/lib/input/index.js +21 -20
  539. package/lib/input/index.js.map +1 -1
  540. package/lib/input/input.d.ts +5 -5
  541. package/lib/input/input.js +100 -90
  542. package/lib/input/input.js.map +1 -1
  543. package/lib/input-number/index.d.ts +3 -3
  544. package/lib/input-number/index.js +26 -24
  545. package/lib/input-number/index.js.map +1 -1
  546. package/lib/label/index.d.ts +2 -2
  547. package/lib/label/index.js +134 -137
  548. package/lib/label/index.js.map +1 -1
  549. package/lib/layout/index.d.ts +3 -3
  550. package/lib/layout/index.js +23 -22
  551. package/lib/layout/index.js.map +1 -1
  552. package/lib/list/index.d.ts +3 -3
  553. package/lib/list/index.js +23 -22
  554. package/lib/list/index.js.map +1 -1
  555. package/lib/loading-button/index.js +58 -55
  556. package/lib/locale/default.js +12 -10
  557. package/lib/locale/default.js.map +1 -1
  558. package/lib/locale/en_US.js +50 -47
  559. package/lib/locale/en_US.js.map +1 -1
  560. package/lib/locale/index.js +36 -18
  561. package/lib/locale/zh_CN.js +42 -40
  562. package/lib/locale/zh_CN.js.map +1 -1
  563. package/lib/locale-provider/index.d.ts +3 -3
  564. package/lib/locale-provider/index.js +26 -25
  565. package/lib/locale-provider/index.js.map +1 -1
  566. package/lib/mentions/index.d.ts +3 -3
  567. package/lib/mentions/index.js +23 -22
  568. package/lib/mentions/index.js.map +1 -1
  569. package/lib/menu/index.d.ts +3 -3
  570. package/lib/menu/index.js +23 -22
  571. package/lib/menu/index.js.map +1 -1
  572. package/lib/message/index.d.ts +3 -3
  573. package/lib/message/index.js +23 -22
  574. package/lib/message/index.js.map +1 -1
  575. package/lib/modal/index.d.ts +1 -1
  576. package/lib/modal/index.js +22 -21
  577. package/lib/modal/index.js.map +1 -1
  578. package/lib/modal/modal.d.ts +4 -4
  579. package/lib/modal/modal.js +59 -59
  580. package/lib/modal/modal.js.map +1 -1
  581. package/lib/notification/index.d.ts +3 -3
  582. package/lib/notification/index.js +23 -22
  583. package/lib/notification/index.js.map +1 -1
  584. package/lib/page/Box.js +66 -40
  585. package/lib/page/index.js +148 -95
  586. package/lib/page/utils.js +22 -16
  587. package/lib/page-header/index.d.ts +3 -3
  588. package/lib/page-header/index.js +23 -22
  589. package/lib/page-header/index.js.map +1 -1
  590. package/lib/pagination/index.d.ts +3 -3
  591. package/lib/pagination/index.js +23 -22
  592. package/lib/pagination/index.js.map +1 -1
  593. package/lib/popconfirm/index.d.ts +3 -3
  594. package/lib/popconfirm/index.js +23 -22
  595. package/lib/popconfirm/index.js.map +1 -1
  596. package/lib/popover/index.d.ts +3 -3
  597. package/lib/popover/index.js +23 -22
  598. package/lib/popover/index.js.map +1 -1
  599. package/lib/prev-locale.js +68 -54
  600. package/lib/preview-text/index.d.ts +4 -4
  601. package/lib/preview-text/index.js +263 -209
  602. package/lib/preview-text/index.js.map +1 -1
  603. package/lib/progress/index.d.ts +3 -3
  604. package/lib/progress/index.js +23 -22
  605. package/lib/progress/index.js.map +1 -1
  606. package/lib/query-form/Field/Checkbox.js +28 -22
  607. package/lib/query-form/Field/Select.js +79 -68
  608. package/lib/query-form/Field/SelectInput.js +87 -73
  609. package/lib/query-form/Field/fieldsMap.d.ts +2 -2
  610. package/lib/query-form/Field/fieldsMap.js +34 -32
  611. package/lib/query-form/Field/index.js +143 -96
  612. package/lib/query-form/createActions.js +53 -50
  613. package/lib/query-form/index.js +377 -286
  614. package/lib/query-form/useForm.js +11 -11
  615. package/lib/query-list-scene/List.js +360 -289
  616. package/lib/query-list-scene/QueryForm.js +161 -103
  617. package/lib/query-list-scene/QueryListScene.js +66 -31
  618. package/lib/query-list-scene/Title.js +15 -9
  619. package/lib/query-list-scene/Toolbar.js +31 -20
  620. package/lib/query-list-scene/createActions.js +79 -64
  621. package/lib/query-list-scene/index.js +28 -24
  622. package/lib/query-list-scene/useActions.js +11 -11
  623. package/lib/radio/index.d.ts +3 -3
  624. package/lib/radio/index.js +26 -24
  625. package/lib/radio/index.js.map +1 -1
  626. package/lib/radio/radio-group.d.ts +1 -1
  627. package/lib/radio/radio-group.js +11 -9
  628. package/lib/radio/radio-group.js.map +1 -1
  629. package/lib/rate/index.d.ts +3 -3
  630. package/lib/rate/index.js +23 -22
  631. package/lib/rate/index.js.map +1 -1
  632. package/lib/render-empty/index.js +8 -4
  633. package/lib/render-empty/render-empty.js +28 -22
  634. package/lib/render-empty/render-empty.js.map +1 -1
  635. package/lib/result/index.d.ts +3 -3
  636. package/lib/result/index.js +23 -22
  637. package/lib/result/index.js.map +1 -1
  638. package/lib/row/index.d.ts +3 -3
  639. package/lib/row/index.js +23 -22
  640. package/lib/row/index.js.map +1 -1
  641. package/lib/segmented/index.d.ts +1 -1
  642. package/lib/segmented/index.js +71 -69
  643. package/lib/select/index.d.ts +2 -2
  644. package/lib/select/index.js +22 -20
  645. package/lib/select/index.js.map +1 -1
  646. package/lib/select/select.d.ts +2 -2
  647. package/lib/select/select.js +61 -64
  648. package/lib/select/select.js.map +1 -1
  649. package/lib/skeleton/index.d.ts +3 -3
  650. package/lib/skeleton/index.js +23 -22
  651. package/lib/skeleton/index.js.map +1 -1
  652. package/lib/slider/index.d.ts +3 -3
  653. package/lib/slider/index.js +23 -22
  654. package/lib/slider/index.js.map +1 -1
  655. package/lib/spin/index.d.ts +3 -3
  656. package/lib/spin/index.js +23 -22
  657. package/lib/spin/index.js.map +1 -1
  658. package/lib/statistic/index.d.ts +3 -3
  659. package/lib/statistic/index.js +23 -22
  660. package/lib/statistic/index.js.map +1 -1
  661. package/lib/steps/index.d.ts +1 -1
  662. package/lib/steps/index.js +20 -19
  663. package/lib/steps/index.js.map +1 -1
  664. package/lib/steps/steps.d.ts +3 -3
  665. package/lib/steps/steps.js +72 -59
  666. package/lib/steps/steps.js.map +1 -1
  667. package/lib/svg-components/illustration-403.d.ts +1 -1
  668. package/lib/svg-components/illustration-403.js +217 -84
  669. package/lib/svg-components/illustration-404.d.ts +1 -1
  670. package/lib/svg-components/illustration-404.js +301 -101
  671. package/lib/svg-components/illustration-500.d.ts +1 -1
  672. package/lib/svg-components/illustration-500.js +332 -109
  673. package/lib/svg-components/illustration-empty.d.ts +1 -1
  674. package/lib/svg-components/illustration-empty.js +65 -41
  675. package/lib/svg-components/illustration-failure.d.ts +1 -1
  676. package/lib/svg-components/illustration-failure.js +123 -62
  677. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  678. package/lib/svg-components/illustration-no-access.js +125 -61
  679. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  680. package/lib/svg-components/illustration-no-chart.js +145 -63
  681. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  682. package/lib/svg-components/illustration-no-result.js +103 -58
  683. package/lib/svg-components/illustration-offline.d.ts +1 -1
  684. package/lib/svg-components/illustration-offline.js +142 -69
  685. package/lib/svg-components/illustration-success.d.ts +1 -1
  686. package/lib/svg-components/illustration-success.js +148 -69
  687. package/lib/svg-components/index.js +75 -26
  688. package/lib/switch/index.js +22 -21
  689. package/lib/switch/switch.d.ts +3 -3
  690. package/lib/switch/switch.js +35 -27
  691. package/lib/switch/switch.js.map +1 -1
  692. package/lib/table/assets/image-loading-background.d.ts +1 -1
  693. package/lib/table/assets/image-loading-background.js +56 -43
  694. package/lib/table/assets/image-loading.d.ts +1 -1
  695. package/lib/table/assets/image-loading.js +37 -31
  696. package/lib/table/constants.js +6 -3
  697. package/lib/table/context.js +7 -4
  698. package/lib/table/hooks/index.js +14 -16
  699. package/lib/table/hooks/use-column-setting.d.ts +1 -1
  700. package/lib/table/hooks/use-column-setting.js +37 -20
  701. package/lib/table/hooks/use-column-setting.js.map +1 -1
  702. package/lib/table/index.d.ts +1 -1
  703. package/lib/table/index.js +20 -19
  704. package/lib/table/index.js.map +1 -1
  705. package/lib/table/table.d.ts +3 -3
  706. package/lib/table/table.js +201 -174
  707. package/lib/table/table.js.map +1 -1
  708. package/lib/table/table.stories.js +182 -154
  709. package/lib/table/total-shower.d.ts +2 -2
  710. package/lib/table/total-shower.js +14 -10
  711. package/lib/table/total-shower.js.map +1 -1
  712. package/lib/table/utils.d.ts +1 -1
  713. package/lib/table/utils.js +24 -25
  714. package/lib/table/utils.js.map +1 -1
  715. package/lib/tabs/index.d.ts +1 -1
  716. package/lib/tabs/index.js +20 -19
  717. package/lib/tabs/index.js.map +1 -1
  718. package/lib/tabs/tabPane.js +1 -2
  719. package/lib/tabs/tabs.d.ts +3 -3
  720. package/lib/tabs/tabs.js +61 -62
  721. package/lib/tabs/tabs.js.map +1 -1
  722. package/lib/tag/index.d.ts +3 -3
  723. package/lib/tag/index.js +23 -22
  724. package/lib/tag/index.js.map +1 -1
  725. package/lib/time-picker/index.d.ts +3 -3
  726. package/lib/time-picker/index.js +25 -24
  727. package/lib/time-picker/index.js.map +1 -1
  728. package/lib/timeline/index.d.ts +3 -3
  729. package/lib/timeline/index.js +23 -22
  730. package/lib/timeline/index.js.map +1 -1
  731. package/lib/title/index.js +44 -27
  732. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +18 -31
  733. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +9 -26
  734. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +9 -26
  735. package/lib/tntd-cascader/AntdCascader/component/context.js +18 -16
  736. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +36 -39
  737. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
  738. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +81 -75
  739. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +31 -50
  740. package/lib/tntd-cascader/AntdCascader/config/utils.js +29 -27
  741. package/lib/tntd-cascader/AntdCascader/config/warning.js +19 -35
  742. package/lib/tntd-cascader/AntdCascader/index.js +216 -162
  743. package/lib/tntd-cascader/AntdCascader/interface.js +13 -6
  744. package/lib/tntd-cascader/img/no-data-s.png +0 -0
  745. package/lib/tntd-cascader/index.js +12 -8
  746. package/lib/tntd-cascader/rc-cascader/Cascader.js +325 -284
  747. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +30 -41
  748. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +198 -152
  749. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +223 -163
  750. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +40 -48
  751. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +179 -166
  752. package/lib/tntd-cascader/rc-cascader/context.js +11 -27
  753. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +62 -63
  754. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +39 -49
  755. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +26 -41
  756. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +16 -33
  757. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +30 -51
  758. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +75 -65
  759. package/lib/tntd-cascader/rc-cascader/index.js +9 -7
  760. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +49 -38
  761. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +42 -39
  762. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +34 -30
  763. package/lib/tntd-form/ErrorList.js +99 -77
  764. package/lib/tntd-form/ErrorList.js.map +1 -1
  765. package/lib/tntd-form/Form.js +169 -139
  766. package/lib/tntd-form/FormItem/ItemHolder.js +154 -155
  767. package/lib/tntd-form/FormItem/ItemHolder.js.map +1 -1
  768. package/lib/tntd-form/FormItem/index.js +287 -252
  769. package/lib/tntd-form/FormItem/index.js.map +1 -1
  770. package/lib/tntd-form/FormItemInput.d.ts +1 -1
  771. package/lib/tntd-form/FormItemInput.d.ts.map +1 -1
  772. package/lib/tntd-form/FormItemInput.js +88 -62
  773. package/lib/tntd-form/FormItemInput.js.map +1 -1
  774. package/lib/tntd-form/FormItemLabel.d.ts +1 -1
  775. package/lib/tntd-form/FormItemLabel.d.ts.map +1 -1
  776. package/lib/tntd-form/FormItemLabel.js +99 -94
  777. package/lib/tntd-form/FormItemLabel.js.map +1 -1
  778. package/lib/tntd-form/FormList.js +52 -58
  779. package/lib/tntd-form/FormList.js.map +1 -1
  780. package/lib/tntd-form/_util/context.d.ts +42 -0
  781. package/lib/tntd-form/_util/context.d.ts.map +1 -0
  782. package/lib/tntd-form/_util/context.js +22 -0
  783. package/lib/tntd-form/_util/context.js.map +1 -0
  784. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts +5 -0
  785. package/lib/tntd-form/_util/defaultRenderEmpty.d.ts.map +1 -0
  786. package/lib/tntd-form/_util/defaultRenderEmpty.js +44 -0
  787. package/lib/tntd-form/_util/defaultRenderEmpty.js.map +1 -0
  788. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts +3 -0
  789. package/lib/tntd-form/_util/hooks/useFlexGapSupport.d.ts.map +1 -0
  790. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js +28 -0
  791. package/lib/tntd-form/_util/hooks/useFlexGapSupport.js.map +1 -0
  792. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts +3 -0
  793. package/lib/tntd-form/_util/hooks/useForceUpdate.d.ts.map +1 -0
  794. package/lib/tntd-form/_util/hooks/useForceUpdate.js +24 -0
  795. package/lib/tntd-form/_util/hooks/useForceUpdate.js.map +1 -0
  796. package/lib/tntd-form/_util/motion.js +51 -34
  797. package/lib/tntd-form/_util/reactNode.js +20 -37
  798. package/lib/tntd-form/_util/responsiveObserve.d.ts +22 -0
  799. package/lib/tntd-form/_util/responsiveObserve.d.ts.map +1 -0
  800. package/lib/tntd-form/_util/responsiveObserve.js +73 -0
  801. package/lib/tntd-form/_util/responsiveObserve.js.map +1 -0
  802. package/lib/tntd-form/_util/scrollTo.js +2 -2
  803. package/lib/tntd-form/_util/styleChecker.d.ts +5 -0
  804. package/lib/tntd-form/_util/styleChecker.d.ts.map +1 -0
  805. package/lib/tntd-form/_util/styleChecker.js +42 -0
  806. package/lib/tntd-form/_util/styleChecker.js.map +1 -0
  807. package/lib/tntd-form/_util/type.js +17 -5
  808. package/lib/tntd-form/_util/warning.js +17 -29
  809. package/lib/tntd-form/_util/wave.js +2 -2
  810. package/lib/tntd-form/context.js +47 -59
  811. package/lib/tntd-form/grid/RowContext.d.ts +9 -0
  812. package/lib/tntd-form/grid/RowContext.d.ts.map +1 -0
  813. package/lib/tntd-form/grid/RowContext.js +10 -0
  814. package/lib/tntd-form/grid/RowContext.js.map +1 -0
  815. package/lib/tntd-form/grid/col.d.ts +29 -0
  816. package/lib/tntd-form/grid/col.d.ts.map +1 -0
  817. package/lib/tntd-form/grid/col.js +105 -0
  818. package/lib/tntd-form/grid/col.js.map +1 -0
  819. package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts +4 -0
  820. package/lib/tntd-form/grid/hooks/useBreakpoint.d.ts.map +1 -0
  821. package/lib/tntd-form/grid/hooks/useBreakpoint.js +29 -0
  822. package/lib/tntd-form/grid/hooks/useBreakpoint.js.map +1 -0
  823. package/lib/tntd-form/grid/index.d.ts +12 -0
  824. package/lib/tntd-form/grid/index.d.ts.map +1 -0
  825. package/lib/tntd-form/grid/index.js +31 -0
  826. package/lib/tntd-form/grid/index.js.map +1 -0
  827. package/lib/tntd-form/grid/row.d.ts +21 -0
  828. package/lib/tntd-form/grid/row.d.ts.map +1 -0
  829. package/lib/tntd-form/grid/row.js +186 -0
  830. package/lib/tntd-form/grid/row.js.map +1 -0
  831. package/lib/tntd-form/grid/style/index.d.ts +3 -0
  832. package/lib/tntd-form/grid/style/index.d.ts.map +1 -0
  833. package/lib/tntd-form/grid/style/index.js +4 -0
  834. package/lib/tntd-form/grid/style/index.js.map +1 -0
  835. package/lib/tntd-form/hooks/useDebounce.js +28 -37
  836. package/lib/tntd-form/hooks/useForm.js +56 -57
  837. package/lib/tntd-form/hooks/useFormInstance.js +11 -8
  838. package/lib/tntd-form/hooks/useFormItemStatus.js +18 -13
  839. package/lib/tntd-form/hooks/useFormItemStatus.js.map +1 -1
  840. package/lib/tntd-form/hooks/useFrameState.js +51 -63
  841. package/lib/tntd-form/hooks/useItemRef.js +24 -41
  842. package/lib/tntd-form/index.d.ts.map +1 -1
  843. package/lib/tntd-form/index.js +24 -43
  844. package/lib/tntd-form/index.js.map +1 -1
  845. package/lib/tntd-form/interface.js +6 -4
  846. package/lib/tntd-form/style/index.js +2 -4
  847. package/lib/tntd-form/tntd-form.stories.d.ts +1 -1
  848. package/lib/tntd-form/tntd-form.stories.js +913 -437
  849. package/lib/tntd-form/util.js +18 -19
  850. package/lib/tntd-form/validateMessagesContext.js +8 -4
  851. package/lib/tntd-icon/fonts/iconfont.js +36 -53
  852. package/lib/tntd-icon/index.js +40 -25
  853. package/lib/tntd-layout/ActionsContext.js +8 -4
  854. package/lib/tntd-layout/AppList.js +173 -224
  855. package/lib/tntd-layout/Application.js +75 -111
  856. package/lib/tntd-layout/Avatar.js +100 -135
  857. package/lib/tntd-layout/CompatibleLanguage.js +128 -180
  858. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +117 -146
  859. package/lib/tntd-layout/EnterpriseLayout/Language.js +73 -90
  860. package/lib/tntd-layout/EnterpriseLayout/Theme.js +69 -102
  861. package/lib/tntd-layout/EnterpriseLayout/index.js +28 -17
  862. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +283 -276
  863. package/lib/tntd-layout/GlobalNavigation/index.js +108 -115
  864. package/lib/tntd-layout/Header.js +77 -136
  865. package/lib/tntd-layout/HeaderActions.js +106 -106
  866. package/lib/tntd-layout/HeaderNavs.js +78 -107
  867. package/lib/tntd-layout/HeaderTabs.js +224 -316
  868. package/lib/tntd-layout/Iconfont.js +11 -7
  869. package/lib/tntd-layout/Language.js +69 -76
  870. package/lib/tntd-layout/Layout.js +214 -171
  871. package/lib/tntd-layout/Logo.js +69 -144
  872. package/lib/tntd-layout/OrgAppList.js +238 -388
  873. package/lib/tntd-layout/SideMenu.js +269 -408
  874. package/lib/tntd-layout/Theme.js +75 -93
  875. package/lib/tntd-layout/createActions.js +45 -34
  876. package/lib/tntd-layout/images/avatar/empty.png +0 -0
  877. package/lib/tntd-layout/images/avatar/female1.png +0 -0
  878. package/lib/tntd-layout/images/avatar/female2.png +0 -0
  879. package/lib/tntd-layout/images/avatar/female3.png +0 -0
  880. package/lib/tntd-layout/images/avatar/female4.png +0 -0
  881. package/lib/tntd-layout/images/avatar/female5.png +0 -0
  882. package/lib/tntd-layout/images/avatar/female6.png +0 -0
  883. package/lib/tntd-layout/images/avatar/male1.png +0 -0
  884. package/lib/tntd-layout/images/avatar/male2.png +0 -0
  885. package/lib/tntd-layout/images/avatar/male3.png +0 -0
  886. package/lib/tntd-layout/images/avatar/male4.png +0 -0
  887. package/lib/tntd-layout/images/avatar/male5.png +0 -0
  888. package/lib/tntd-layout/images/avatar/male6.png +0 -0
  889. package/lib/tntd-layout/images/index.js +68 -66
  890. package/lib/tntd-layout/index.js +137 -95
  891. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +131 -182
  892. package/lib/tntd-layout/paaslayout/Header.js +51 -79
  893. package/lib/tntd-layout/paaslayout/Logo.js +15 -30
  894. package/lib/tntd-layout/paaslayout/SideMenu.js +131 -147
  895. package/lib/tntd-layout/paaslayout/index.js +205 -141
  896. package/lib/tntd-layout/storage.js +58 -30
  897. package/lib/tntd-modal/index.js +98 -62
  898. package/lib/tntd-rc-select/_util/DisabledContext.js +18 -31
  899. package/lib/tntd-rc-select/_util/FormItemInputContext.js +9 -26
  900. package/lib/tntd-rc-select/_util/PurePanel.js +84 -78
  901. package/lib/tntd-rc-select/_util/SizeContext.js +9 -26
  902. package/lib/tntd-rc-select/_util/context.js +18 -16
  903. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +35 -39
  904. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js.map +1 -1
  905. package/lib/tntd-rc-select/_util/getIcons.js +81 -75
  906. package/lib/tntd-rc-select/_util/interface.js +13 -6
  907. package/lib/tntd-rc-select/_util/motion.js +51 -34
  908. package/lib/tntd-rc-select/_util/type.js +17 -5
  909. package/lib/tntd-rc-select/_util/useCompactItemContext.js +31 -50
  910. package/lib/tntd-rc-select/_util/warning.js +19 -35
  911. package/lib/tntd-rc-select/img/no-data-s.png +0 -0
  912. package/lib/tntd-rc-select/index.js +152 -123
  913. package/lib/tntd-second-page/index.js +60 -33
  914. package/lib/tntd-second-page/index.js.map +1 -1
  915. package/lib/tntd-select/DropDownWrap.js +102 -78
  916. package/lib/tntd-select/index.d.ts +2 -2
  917. package/lib/tntd-select/index.js +638 -543
  918. package/lib/tooltip/index.d.ts +3 -3
  919. package/lib/tooltip/index.js +23 -22
  920. package/lib/tooltip/index.js.map +1 -1
  921. package/lib/transfer/index.d.ts +3 -3
  922. package/lib/transfer/index.js +23 -22
  923. package/lib/transfer/index.js.map +1 -1
  924. package/lib/tree/index.d.ts +3 -3
  925. package/lib/tree/index.js +23 -22
  926. package/lib/tree/index.js.map +1 -1
  927. package/lib/tree-select/index.d.ts +5 -5
  928. package/lib/tree-select/index.js +30 -27
  929. package/lib/tree-select/index.js.map +1 -1
  930. package/lib/typography/index.d.ts +3 -3
  931. package/lib/typography/index.js +23 -22
  932. package/lib/typography/index.js.map +1 -1
  933. package/lib/upload/index.d.ts +2 -2
  934. package/lib/upload/index.js +32 -26
  935. package/lib/upload/index.js.map +1 -1
  936. package/lib/utils/checkAuth.js +34 -23
  937. package/lib/utils/findMenuInfoByPath.js +41 -34
  938. package/lib/utils/index.js +151 -90
  939. package/lib/utils/lang.js +76 -120
  940. package/lib/utils/simple-template.js +11 -7
  941. package/lib/version/index.d.ts +3 -3
  942. package/lib/version/index.js +23 -22
  943. package/lib/version/index.js.map +1 -1
  944. package/lib/water-mark/index.js +130 -117
  945. package/package.json +1 -1
  946. package/es/handle/handle.js +0 -102
  947. package/es/handle/handle.js.map +0 -1
  948. package/es/mention/index.js +0 -4
  949. package/es/mention/index.js.map +0 -1
  950. package/es/tntd-form/TntdForm/components/Item.js +0 -55
  951. package/es/tntd-form/TntdForm/components/Item.js.map +0 -1
  952. package/es/tntd-form/TntdForm/components/ItemComp.js +0 -186
  953. package/es/tntd-form/TntdForm/components/ItemComp.js.map +0 -1
  954. package/es/tntd-form/TntdForm/components/List.js +0 -102
  955. package/es/tntd-form/TntdForm/components/List.js.map +0 -1
  956. package/es/tntd-form/TntdForm/index.js +0 -55
  957. package/es/tntd-form/TntdForm/index.js.map +0 -1
  958. package/es/tntd-form/TntdForm/interface.js +0 -1
  959. package/es/tntd-form/TntdForm/interface.js.map +0 -1
  960. package/es/tntd-form/TntdForm/store.js +0 -2
  961. package/es/tntd-form/TntdForm/store.js.map +0 -1
  962. package/es/tntd-form/TntdForm/utils.js +0 -219
  963. package/es/tntd-form/TntdForm/utils.js.map +0 -1
  964. package/es/tntd-select/_util/DisabledContext.js +0 -8
  965. package/es/tntd-select/_util/DisabledContext.js.map +0 -1
  966. package/es/tntd-select/_util/FormItemInputContext.js +0 -3
  967. package/es/tntd-select/_util/FormItemInputContext.js.map +0 -1
  968. package/es/tntd-select/_util/PurePanel.js +0 -55
  969. package/es/tntd-select/_util/PurePanel.js.map +0 -1
  970. package/es/tntd-select/_util/SizeContext.js +0 -3
  971. package/es/tntd-select/_util/SizeContext.js.map +0 -1
  972. package/es/tntd-select/_util/context.js +0 -14
  973. package/es/tntd-select/_util/context.js.map +0 -1
  974. package/es/tntd-select/_util/defaultRenderEmpty.js +0 -20
  975. package/es/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  976. package/es/tntd-select/_util/getIcons.js +0 -52
  977. package/es/tntd-select/_util/getIcons.js.map +0 -1
  978. package/es/tntd-select/_util/interface.js +0 -5
  979. package/es/tntd-select/_util/interface.js.map +0 -1
  980. package/es/tntd-select/_util/motion.js +0 -38
  981. package/es/tntd-select/_util/motion.js.map +0 -1
  982. package/es/tntd-select/_util/type.js +0 -4
  983. package/es/tntd-select/_util/type.js.map +0 -1
  984. package/es/tntd-select/_util/useCompactItemContext.js +0 -24
  985. package/es/tntd-select/_util/useCompactItemContext.js.map +0 -1
  986. package/es/tntd-select/_util/warning.js +0 -15
  987. package/es/tntd-select/_util/warning.js.map +0 -1
  988. package/es/tntd-select/rc-select/BaseSelect.js +0 -429
  989. package/es/tntd-select/rc-select/BaseSelect.js.map +0 -1
  990. package/es/tntd-select/rc-select/OptGroup.js +0 -5
  991. package/es/tntd-select/rc-select/OptGroup.js.map +0 -1
  992. package/es/tntd-select/rc-select/Option.js +0 -5
  993. package/es/tntd-select/rc-select/Option.js.map +0 -1
  994. package/es/tntd-select/rc-select/OptionList.js +0 -257
  995. package/es/tntd-select/rc-select/OptionList.js.map +0 -1
  996. package/es/tntd-select/rc-select/Select.js +0 -428
  997. package/es/tntd-select/rc-select/Select.js.map +0 -1
  998. package/es/tntd-select/rc-select/SelectContext.js +0 -4
  999. package/es/tntd-select/rc-select/SelectContext.js.map +0 -1
  1000. package/es/tntd-select/rc-select/SelectTrigger.js +0 -91
  1001. package/es/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  1002. package/es/tntd-select/rc-select/Selector/Input.js +0 -47
  1003. package/es/tntd-select/rc-select/Selector/Input.js.map +0 -1
  1004. package/es/tntd-select/rc-select/Selector/MultipleSelector.js +0 -97
  1005. package/es/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  1006. package/es/tntd-select/rc-select/Selector/SingleSelector.js +0 -45
  1007. package/es/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  1008. package/es/tntd-select/rc-select/Selector/index.js +0 -136
  1009. package/es/tntd-select/rc-select/Selector/index.js.map +0 -1
  1010. package/es/tntd-select/rc-select/TransBtn.js +0 -22
  1011. package/es/tntd-select/rc-select/TransBtn.js.map +0 -1
  1012. package/es/tntd-select/rc-select/hooks/useAllowClear.js +0 -25
  1013. package/es/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  1014. package/es/tntd-select/rc-select/hooks/useBaseProps.js +0 -10
  1015. package/es/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  1016. package/es/tntd-select/rc-select/hooks/useCache.js +0 -34
  1017. package/es/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  1018. package/es/tntd-select/rc-select/hooks/useDelayReset.js +0 -24
  1019. package/es/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  1020. package/es/tntd-select/rc-select/hooks/useFilterOptions.js +0 -55
  1021. package/es/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  1022. package/es/tntd-select/rc-select/hooks/useId.js +0 -28
  1023. package/es/tntd-select/rc-select/hooks/useId.js.map +0 -1
  1024. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -18
  1025. package/es/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  1026. package/es/tntd-select/rc-select/hooks/useLock.js +0 -26
  1027. package/es/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  1028. package/es/tntd-select/rc-select/hooks/useOptions.js +0 -45
  1029. package/es/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  1030. package/es/tntd-select/rc-select/hooks/useRefFunc.js +0 -14
  1031. package/es/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  1032. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -32
  1033. package/es/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  1034. package/es/tntd-select/rc-select/index.js +0 -8
  1035. package/es/tntd-select/rc-select/index.js.map +0 -1
  1036. package/es/tntd-select/rc-select/interface.js +0 -2
  1037. package/es/tntd-select/rc-select/interface.js.map +0 -1
  1038. package/es/tntd-select/rc-select/utils/commonUtil.js +0 -32
  1039. package/es/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  1040. package/es/tntd-select/rc-select/utils/keyUtil.js +0 -34
  1041. package/es/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  1042. package/es/tntd-select/rc-select/utils/legacyUtil.js +0 -32
  1043. package/es/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  1044. package/es/tntd-select/rc-select/utils/platformUtil.js +0 -5
  1045. package/es/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  1046. package/es/tntd-select/rc-select/utils/valueUtil.js +0 -99
  1047. package/es/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  1048. package/es/tntd-select/rc-select/utils/warningPropsUtil.js +0 -100
  1049. package/es/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  1050. package/lib/handle/handle.d.ts +0 -3
  1051. package/lib/handle/handle.d.ts.map +0 -1
  1052. package/lib/handle/handle.js +0 -130
  1053. package/lib/handle/handle.js.map +0 -1
  1054. package/lib/tntd-form/TntdForm/components/Item.js +0 -65
  1055. package/lib/tntd-form/TntdForm/components/ItemComp.js +0 -215
  1056. package/lib/tntd-form/TntdForm/components/List.js +0 -123
  1057. package/lib/tntd-form/TntdForm/index.js +0 -72
  1058. package/lib/tntd-form/TntdForm/interface.js +0 -5
  1059. package/lib/tntd-form/TntdForm/store.js +0 -10
  1060. package/lib/tntd-form/TntdForm/utils.js +0 -239
  1061. package/lib/tntd-select/_util/DisabledContext.d.ts +0 -10
  1062. package/lib/tntd-select/_util/DisabledContext.d.ts.map +0 -1
  1063. package/lib/tntd-select/_util/DisabledContext.js +0 -35
  1064. package/lib/tntd-select/_util/DisabledContext.js.map +0 -1
  1065. package/lib/tntd-select/_util/FormItemInputContext.d.ts +0 -4
  1066. package/lib/tntd-select/_util/FormItemInputContext.d.ts.map +0 -1
  1067. package/lib/tntd-select/_util/FormItemInputContext.js +0 -29
  1068. package/lib/tntd-select/_util/FormItemInputContext.js.map +0 -1
  1069. package/lib/tntd-select/_util/PurePanel.d.ts +0 -9
  1070. package/lib/tntd-select/_util/PurePanel.d.ts.map +0 -1
  1071. package/lib/tntd-select/_util/PurePanel.js +0 -84
  1072. package/lib/tntd-select/_util/PurePanel.js.map +0 -1
  1073. package/lib/tntd-select/_util/SizeContext.d.ts +0 -4
  1074. package/lib/tntd-select/_util/SizeContext.d.ts.map +0 -1
  1075. package/lib/tntd-select/_util/SizeContext.js +0 -29
  1076. package/lib/tntd-select/_util/SizeContext.js.map +0 -1
  1077. package/lib/tntd-select/_util/context.d.ts.map +0 -1
  1078. package/lib/tntd-select/_util/context.js +0 -20
  1079. package/lib/tntd-select/_util/context.js.map +0 -1
  1080. package/lib/tntd-select/_util/defaultRenderEmpty.d.ts.map +0 -1
  1081. package/lib/tntd-select/_util/defaultRenderEmpty.js +0 -48
  1082. package/lib/tntd-select/_util/defaultRenderEmpty.js.map +0 -1
  1083. package/lib/tntd-select/_util/getIcons.d.ts +0 -25
  1084. package/lib/tntd-select/_util/getIcons.d.ts.map +0 -1
  1085. package/lib/tntd-select/_util/getIcons.js +0 -78
  1086. package/lib/tntd-select/_util/getIcons.js.map +0 -1
  1087. package/lib/tntd-select/_util/interface.d.ts +0 -25
  1088. package/lib/tntd-select/_util/interface.d.ts.map +0 -1
  1089. package/lib/tntd-select/_util/interface.js +0 -9
  1090. package/lib/tntd-select/_util/interface.js.map +0 -1
  1091. package/lib/tntd-select/_util/motion.d.ts +0 -9
  1092. package/lib/tntd-select/_util/motion.d.ts.map +0 -1
  1093. package/lib/tntd-select/_util/motion.js +0 -42
  1094. package/lib/tntd-select/_util/motion.js.map +0 -1
  1095. package/lib/tntd-select/_util/type.d.ts +0 -10
  1096. package/lib/tntd-select/_util/type.d.ts.map +0 -1
  1097. package/lib/tntd-select/_util/type.js +0 -9
  1098. package/lib/tntd-select/_util/type.js.map +0 -1
  1099. package/lib/tntd-select/_util/useCompactItemContext.d.ts +0 -9
  1100. package/lib/tntd-select/_util/useCompactItemContext.d.ts.map +0 -1
  1101. package/lib/tntd-select/_util/useCompactItemContext.js +0 -54
  1102. package/lib/tntd-select/_util/useCompactItemContext.js.map +0 -1
  1103. package/lib/tntd-select/_util/warning.d.ts +0 -4
  1104. package/lib/tntd-select/_util/warning.d.ts.map +0 -1
  1105. package/lib/tntd-select/_util/warning.js +0 -40
  1106. package/lib/tntd-select/_util/warning.js.map +0 -1
  1107. package/lib/tntd-select/rc-select/BaseSelect.d.ts +0 -114
  1108. package/lib/tntd-select/rc-select/BaseSelect.d.ts.map +0 -1
  1109. package/lib/tntd-select/rc-select/BaseSelect.js +0 -459
  1110. package/lib/tntd-select/rc-select/BaseSelect.js.map +0 -1
  1111. package/lib/tntd-select/rc-select/OptGroup.d.ts +0 -13
  1112. package/lib/tntd-select/rc-select/OptGroup.d.ts.map +0 -1
  1113. package/lib/tntd-select/rc-select/OptGroup.js +0 -7
  1114. package/lib/tntd-select/rc-select/OptGroup.js.map +0 -1
  1115. package/lib/tntd-select/rc-select/Option.d.ts +0 -15
  1116. package/lib/tntd-select/rc-select/Option.d.ts.map +0 -1
  1117. package/lib/tntd-select/rc-select/Option.js +0 -7
  1118. package/lib/tntd-select/rc-select/Option.js.map +0 -1
  1119. package/lib/tntd-select/rc-select/OptionList.d.ts +0 -11
  1120. package/lib/tntd-select/rc-select/OptionList.d.ts.map +0 -1
  1121. package/lib/tntd-select/rc-select/OptionList.js +0 -285
  1122. package/lib/tntd-select/rc-select/OptionList.js.map +0 -1
  1123. package/lib/tntd-select/rc-select/Select.d.ts +0 -115
  1124. package/lib/tntd-select/rc-select/Select.d.ts.map +0 -1
  1125. package/lib/tntd-select/rc-select/Select.js +0 -456
  1126. package/lib/tntd-select/rc-select/Select.js.map +0 -1
  1127. package/lib/tntd-select/rc-select/SelectContext.d.ts +0 -23
  1128. package/lib/tntd-select/rc-select/SelectContext.d.ts.map +0 -1
  1129. package/lib/tntd-select/rc-select/SelectContext.js +0 -29
  1130. package/lib/tntd-select/rc-select/SelectContext.js.map +0 -1
  1131. package/lib/tntd-select/rc-select/SelectTrigger.d.ts +0 -31
  1132. package/lib/tntd-select/rc-select/SelectTrigger.d.ts.map +0 -1
  1133. package/lib/tntd-select/rc-select/SelectTrigger.js +0 -119
  1134. package/lib/tntd-select/rc-select/SelectTrigger.js.map +0 -1
  1135. package/lib/tntd-select/rc-select/Selector/Input.d.ts +0 -27
  1136. package/lib/tntd-select/rc-select/Selector/Input.d.ts.map +0 -1
  1137. package/lib/tntd-select/rc-select/Selector/Input.js +0 -75
  1138. package/lib/tntd-select/rc-select/Selector/Input.js.map +0 -1
  1139. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts +0 -17
  1140. package/lib/tntd-select/rc-select/Selector/MultipleSelector.d.ts.map +0 -1
  1141. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js +0 -125
  1142. package/lib/tntd-select/rc-select/Selector/MultipleSelector.js.map +0 -1
  1143. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts +0 -9
  1144. package/lib/tntd-select/rc-select/Selector/SingleSelector.d.ts.map +0 -1
  1145. package/lib/tntd-select/rc-select/Selector/SingleSelector.js +0 -73
  1146. package/lib/tntd-select/rc-select/Selector/SingleSelector.js.map +0 -1
  1147. package/lib/tntd-select/rc-select/Selector/index.d.ts +0 -83
  1148. package/lib/tntd-select/rc-select/Selector/index.d.ts.map +0 -1
  1149. package/lib/tntd-select/rc-select/Selector/index.js +0 -164
  1150. package/lib/tntd-select/rc-select/Selector/index.js.map +0 -1
  1151. package/lib/tntd-select/rc-select/TransBtn.d.ts +0 -13
  1152. package/lib/tntd-select/rc-select/TransBtn.d.ts.map +0 -1
  1153. package/lib/tntd-select/rc-select/TransBtn.js +0 -50
  1154. package/lib/tntd-select/rc-select/TransBtn.js.map +0 -1
  1155. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts +0 -9
  1156. package/lib/tntd-select/rc-select/hooks/useAllowClear.d.ts.map +0 -1
  1157. package/lib/tntd-select/rc-select/hooks/useAllowClear.js +0 -32
  1158. package/lib/tntd-select/rc-select/hooks/useAllowClear.js.map +0 -1
  1159. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts +0 -14
  1160. package/lib/tntd-select/rc-select/hooks/useBaseProps.d.ts.map +0 -1
  1161. package/lib/tntd-select/rc-select/hooks/useBaseProps.js +0 -37
  1162. package/lib/tntd-select/rc-select/hooks/useBaseProps.js.map +0 -1
  1163. package/lib/tntd-select/rc-select/hooks/useCache.d.ts +0 -8
  1164. package/lib/tntd-select/rc-select/hooks/useCache.d.ts.map +0 -1
  1165. package/lib/tntd-select/rc-select/hooks/useCache.js +0 -59
  1166. package/lib/tntd-select/rc-select/hooks/useCache.js.map +0 -1
  1167. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts +0 -6
  1168. package/lib/tntd-select/rc-select/hooks/useDelayReset.d.ts.map +0 -1
  1169. package/lib/tntd-select/rc-select/hooks/useDelayReset.js +0 -50
  1170. package/lib/tntd-select/rc-select/hooks/useDelayReset.js.map +0 -1
  1171. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts +0 -4
  1172. package/lib/tntd-select/rc-select/hooks/useFilterOptions.d.ts.map +0 -1
  1173. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js +0 -80
  1174. package/lib/tntd-select/rc-select/hooks/useFilterOptions.js.map +0 -1
  1175. package/lib/tntd-select/rc-select/hooks/useId.d.ts +0 -6
  1176. package/lib/tntd-select/rc-select/hooks/useId.d.ts.map +0 -1
  1177. package/lib/tntd-select/rc-select/hooks/useId.js +0 -59
  1178. package/lib/tntd-select/rc-select/hooks/useId.js.map +0 -1
  1179. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts +0 -6
  1180. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.d.ts.map +0 -1
  1181. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js +0 -44
  1182. package/lib/tntd-select/rc-select/hooks/useLayoutEffect.js.map +0 -1
  1183. package/lib/tntd-select/rc-select/hooks/useLock.d.ts +0 -8
  1184. package/lib/tntd-select/rc-select/hooks/useLock.d.ts.map +0 -1
  1185. package/lib/tntd-select/rc-select/hooks/useLock.js +0 -52
  1186. package/lib/tntd-select/rc-select/hooks/useLock.js.map +0 -1
  1187. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts +0 -12
  1188. package/lib/tntd-select/rc-select/hooks/useOptions.d.ts.map +0 -1
  1189. package/lib/tntd-select/rc-select/hooks/useOptions.js +0 -71
  1190. package/lib/tntd-select/rc-select/hooks/useOptions.js.map +0 -1
  1191. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts +0 -6
  1192. package/lib/tntd-select/rc-select/hooks/useRefFunc.d.ts.map +0 -1
  1193. package/lib/tntd-select/rc-select/hooks/useRefFunc.js +0 -40
  1194. package/lib/tntd-select/rc-select/hooks/useRefFunc.js.map +0 -1
  1195. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts +0 -2
  1196. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.d.ts.map +0 -1
  1197. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js +0 -58
  1198. package/lib/tntd-select/rc-select/hooks/useSelectTriggerControl.js.map +0 -1
  1199. package/lib/tntd-select/rc-select/index.d.ts +0 -11
  1200. package/lib/tntd-select/rc-select/index.d.ts.map +0 -1
  1201. package/lib/tntd-select/rc-select/index.js +0 -17
  1202. package/lib/tntd-select/rc-select/index.js.map +0 -1
  1203. package/lib/tntd-select/rc-select/interface.d.ts +0 -23
  1204. package/lib/tntd-select/rc-select/interface.d.ts.map +0 -1
  1205. package/lib/tntd-select/rc-select/interface.js +0 -3
  1206. package/lib/tntd-select/rc-select/interface.js.map +0 -1
  1207. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts +0 -10
  1208. package/lib/tntd-select/rc-select/utils/commonUtil.d.ts.map +0 -1
  1209. package/lib/tntd-select/rc-select/utils/commonUtil.js +0 -39
  1210. package/lib/tntd-select/rc-select/utils/commonUtil.js.map +0 -1
  1211. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts +0 -3
  1212. package/lib/tntd-select/rc-select/utils/keyUtil.d.ts.map +0 -1
  1213. package/lib/tntd-select/rc-select/utils/keyUtil.js +0 -41
  1214. package/lib/tntd-select/rc-select/utils/keyUtil.js.map +0 -1
  1215. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts +0 -4
  1216. package/lib/tntd-select/rc-select/utils/legacyUtil.d.ts.map +0 -1
  1217. package/lib/tntd-select/rc-select/utils/legacyUtil.js +0 -62
  1218. package/lib/tntd-select/rc-select/utils/legacyUtil.js.map +0 -1
  1219. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts +0 -2
  1220. package/lib/tntd-select/rc-select/utils/platformUtil.d.ts.map +0 -1
  1221. package/lib/tntd-select/rc-select/utils/platformUtil.js +0 -9
  1222. package/lib/tntd-select/rc-select/utils/platformUtil.js.map +0 -1
  1223. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts +0 -24
  1224. package/lib/tntd-select/rc-select/utils/valueUtil.d.ts.map +0 -1
  1225. package/lib/tntd-select/rc-select/utils/valueUtil.js +0 -109
  1226. package/lib/tntd-select/rc-select/utils/valueUtil.js.map +0 -1
  1227. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts +0 -5
  1228. package/lib/tntd-select/rc-select/utils/warningPropsUtil.d.ts.map +0 -1
  1229. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js +0 -130
  1230. package/lib/tntd-select/rc-select/utils/warningPropsUtil.js.map +0 -1
  1231. /package/lib/{tntd-select/_util → _util}/context.d.ts +0 -0
  1232. /package/lib/{tntd-select/_util → _util}/defaultRenderEmpty.d.ts +0 -0
@@ -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,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Col", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _col["default"];
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "Row", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _row["default"];
16
+ }
17
+ });
18
+ exports["default"] = void 0;
19
+ var _col = _interopRequireDefault(require("./col"));
20
+ var _useBreakpoint = _interopRequireDefault(require("./hooks/useBreakpoint"));
21
+ var _row = _interopRequireDefault(require("./row"));
22
+ require("./style");
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
24
+ // Do not export params
25
+ function useBreakpoint() {
26
+ return (0, _useBreakpoint["default"])();
27
+ }
28
+ var _default = {
29
+ useBreakpoint: useBreakpoint
30
+ };
31
+ exports["default"] = _default;
@@ -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,21 @@
1
+ import * as React from 'react';
2
+ import type { Breakpoint } from '../_util/responsiveObserve';
3
+ declare const RowAligns: ["top", "middle", "bottom", "stretch"];
4
+ declare const RowJustify: ["start", "end", "center", "space-around", "space-between", "space-evenly"];
5
+ declare type Responsive = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
6
+ declare type ResponsiveLike<T> = {
7
+ [key in Responsive]?: T;
8
+ };
9
+ export declare type Gutter = number | undefined | Partial<Record<Breakpoint, number>>;
10
+ declare type ResponsiveAligns = ResponsiveLike<typeof RowAligns[number]>;
11
+ declare type ResponsiveJustify = ResponsiveLike<typeof RowJustify[number]>;
12
+ export interface RowProps extends React.HTMLAttributes<HTMLDivElement> {
13
+ gutter?: Gutter | [Gutter, Gutter];
14
+ align?: typeof RowAligns[number] | ResponsiveAligns;
15
+ justify?: typeof RowJustify[number] | ResponsiveJustify;
16
+ prefixCls?: string;
17
+ wrap?: boolean;
18
+ }
19
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLDivElement>>;
20
+ export default Row;
21
+ //# sourceMappingURL=row.d.ts.map
@@ -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"}
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _classnames = _interopRequireDefault(require("classnames"));
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _context = require("../_util/context");
10
+ var _useFlexGapSupport = _interopRequireDefault(require("../_util/hooks/useFlexGapSupport"));
11
+ var _responsiveObserve = _interopRequireWildcard(require("../_util/responsiveObserve"));
12
+ var _type = require("../_util/type");
13
+ var _RowContext = _interopRequireDefault(require("./RowContext"));
14
+ 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); }
15
+ 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; }
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+ 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; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ 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); }
20
+ 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); }
21
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
22
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
23
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
24
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
25
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
26
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
+ var __rest = void 0 && (void 0).__rest || function (s, e) {
28
+ var t = {};
29
+ for (var p in s) {
30
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
31
+ }
32
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
34
+ }
35
+ return t;
36
+ };
37
+ var RowAligns = (0, _type.tuple)('top', 'middle', 'bottom', 'stretch');
38
+ var RowJustify = (0, _type.tuple)('start', 'end', 'center', 'space-around', 'space-between', 'space-evenly');
39
+ function useMergePropByScreen(oriProp, screen) {
40
+ var _React$useState = React.useState(typeof oriProp === 'string' ? oriProp : ''),
41
+ _React$useState2 = _slicedToArray(_React$useState, 2),
42
+ prop = _React$useState2[0],
43
+ setProp = _React$useState2[1];
44
+ var clacMergeAlignOrJustify = function clacMergeAlignOrJustify() {
45
+ if (typeof oriProp === 'string') {
46
+ setProp(oriProp);
47
+ }
48
+ if (_typeof(oriProp) !== 'object') {
49
+ return;
50
+ }
51
+ for (var i = 0; i < _responsiveObserve.responsiveArray.length; i++) {
52
+ var breakpoint = _responsiveObserve.responsiveArray[i];
53
+ // if do not match, do nothing
54
+ if (!screen[breakpoint]) continue;
55
+ var curVal = oriProp[breakpoint];
56
+ if (curVal !== undefined) {
57
+ setProp(curVal);
58
+ return;
59
+ }
60
+ }
61
+ };
62
+ React.useEffect(function () {
63
+ clacMergeAlignOrJustify();
64
+ }, [JSON.stringify(oriProp), screen]);
65
+ return prop;
66
+ }
67
+ var Row = React.forwardRef(function (props, ref) {
68
+ var _classNames;
69
+ var _props$prefixCls = props.prefixCls,
70
+ customizePrefixCls = _props$prefixCls === void 0 ? 'tnt-row' : _props$prefixCls,
71
+ justify = props.justify,
72
+ align = props.align,
73
+ className = props.className,
74
+ style = props.style,
75
+ children = props.children,
76
+ _props$gutter = props.gutter,
77
+ gutter = _props$gutter === void 0 ? 0 : _props$gutter,
78
+ wrap = props.wrap,
79
+ others = __rest(props, ["prefixCls", "justify", "align", "className", "style", "children", "gutter", "wrap"]);
80
+ var _React$useContext = React.useContext(_context.ConfigContext),
81
+ getPrefixCls = _React$useContext.getPrefixCls,
82
+ direction = _React$useContext.direction;
83
+ var _React$useState3 = React.useState({
84
+ xs: true,
85
+ sm: true,
86
+ md: true,
87
+ lg: true,
88
+ xl: true,
89
+ xxl: true
90
+ }),
91
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
92
+ screens = _React$useState4[0],
93
+ setScreens = _React$useState4[1];
94
+ // to save screens info when responsiveObserve callback had been call
95
+ var _React$useState5 = React.useState({
96
+ xs: false,
97
+ sm: false,
98
+ md: false,
99
+ lg: false,
100
+ xl: false,
101
+ xxl: false
102
+ }),
103
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
104
+ curScreens = _React$useState6[0],
105
+ setCurScreens = _React$useState6[1];
106
+ // ================================== calc reponsive data ==================================
107
+ var mergeAlign = useMergePropByScreen(align, curScreens);
108
+ var mergeJustify = useMergePropByScreen(justify, curScreens);
109
+ var supportFlexGap = (0, _useFlexGapSupport["default"])();
110
+ var gutterRef = React.useRef(gutter);
111
+ // ================================== Effect ==================================
112
+ React.useEffect(function () {
113
+ var token = _responsiveObserve["default"].subscribe(function (screen) {
114
+ setCurScreens(screen);
115
+ var currentGutter = gutterRef.current || 0;
116
+ if (!Array.isArray(currentGutter) && _typeof(currentGutter) === 'object' || Array.isArray(currentGutter) && (_typeof(currentGutter[0]) === 'object' || _typeof(currentGutter[1]) === 'object')) {
117
+ setScreens(screen);
118
+ }
119
+ });
120
+ return function () {
121
+ return _responsiveObserve["default"].unsubscribe(token);
122
+ };
123
+ }, []);
124
+ // ================================== Render ==================================
125
+ var getGutter = function getGutter() {
126
+ var results = [undefined, undefined];
127
+ var normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, undefined];
128
+ normalizedGutter.forEach(function (g, index) {
129
+ if (_typeof(g) === 'object') {
130
+ for (var i = 0; i < _responsiveObserve.responsiveArray.length; i++) {
131
+ var breakpoint = _responsiveObserve.responsiveArray[i];
132
+ if (screens[breakpoint] && g[breakpoint] !== undefined) {
133
+ results[index] = g[breakpoint];
134
+ break;
135
+ }
136
+ }
137
+ } else {
138
+ results[index] = g;
139
+ }
140
+ });
141
+ return results;
142
+ };
143
+ var prefixCls = getPrefixCls('row', customizePrefixCls);
144
+ var gutters = getGutter();
145
+ var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-no-wrap"), wrap === false), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(mergeJustify), mergeJustify), _defineProperty(_classNames, "".concat(prefixCls, "-").concat(mergeAlign), mergeAlign), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
146
+ // Add gutter related style
147
+ var rowStyle = {};
148
+ var horizontalGutter = gutters[0] != null && gutters[0] > 0 ? gutters[0] / -2 : undefined;
149
+ var verticalGutter = gutters[1] != null && gutters[1] > 0 ? gutters[1] / -2 : undefined;
150
+ if (horizontalGutter) {
151
+ rowStyle.marginLeft = horizontalGutter;
152
+ rowStyle.marginRight = horizontalGutter;
153
+ }
154
+ if (supportFlexGap) {
155
+ // Set gap direct if flex gap support
156
+ var _gutters = _slicedToArray(gutters, 2);
157
+ rowStyle.rowGap = _gutters[1];
158
+ } else if (verticalGutter) {
159
+ rowStyle.marginTop = verticalGutter;
160
+ rowStyle.marginBottom = verticalGutter;
161
+ }
162
+ // "gutters" is a new array in each rendering phase, it'll make 'React.useMemo' effectless.
163
+ // So we deconstruct "gutters" variable here.
164
+ var _gutters2 = _slicedToArray(gutters, 2),
165
+ gutterH = _gutters2[0],
166
+ gutterV = _gutters2[1];
167
+ var rowContext = React.useMemo(function () {
168
+ return {
169
+ gutter: [gutterH, gutterV],
170
+ wrap: wrap,
171
+ supportFlexGap: supportFlexGap
172
+ };
173
+ }, [gutterH, gutterV, wrap, supportFlexGap]);
174
+ return React.createElement(_RowContext["default"].Provider, {
175
+ value: rowContext
176
+ }, React.createElement("div", Object.assign({}, others, {
177
+ className: classes,
178
+ style: Object.assign(Object.assign({}, rowStyle), style),
179
+ ref: ref
180
+ }), children));
181
+ });
182
+ if (process.env.NODE_ENV !== 'production') {
183
+ Row.displayName = 'Row';
184
+ }
185
+ var _default = Row;
186
+ exports["default"] = _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.js","sourceRoot":"","sources":["../../../src/tntd-form/grid/row.tsx"],"names":[],"mappings":"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","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,3 @@
1
+ import '../../style/index.less';
2
+ import './index.less';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ "use strict";
2
+
3
+ require("../../style/index.less");
4
+ require("./index.less");
@@ -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"]}
@@ -1,40 +1,31 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
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
17
6
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const React = __importStar(require("react"));
7
+ exports["default"] = useDebounce;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ 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); }
10
+ 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; }
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
15
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
16
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
17
  function useDebounce(value) {
28
- const [cacheValue, setCacheValue] = React.useState(value);
29
- React.useEffect(() => {
30
- const timeout = setTimeout(() => {
31
- setCacheValue(value);
32
- }, value.length ? 0 : 10);
33
- return () => {
34
- clearTimeout(timeout);
35
- };
36
- }, [value]);
37
- return cacheValue;
38
- }
39
- exports.default = useDebounce;
40
- //# sourceMappingURL=useDebounce.js.map
18
+ var _React$useState = React.useState(value),
19
+ _React$useState2 = _slicedToArray(_React$useState, 2),
20
+ cacheValue = _React$useState2[0],
21
+ setCacheValue = _React$useState2[1];
22
+ React.useEffect(function () {
23
+ var timeout = setTimeout(function () {
24
+ setCacheValue(value);
25
+ }, value.length ? 0 : 10);
26
+ return function () {
27
+ clearTimeout(timeout);
28
+ };
29
+ }, [value]);
30
+ return cacheValue;
31
+ }
@@ -1,64 +1,63 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
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
17
6
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- const rc_field_form_1 = require("rc-field-form");
30
- const React = __importStar(require("react"));
31
- const scroll_into_view_if_needed_1 = __importDefault(require("scroll-into-view-if-needed"));
32
- const util_1 = require("../util");
7
+ exports["default"] = useForm;
8
+ var _rcFieldForm = require("rc-field-form");
9
+ var React = _interopRequireWildcard(require("react"));
10
+ var _scrollIntoViewIfNeeded = _interopRequireDefault(require("scroll-into-view-if-needed"));
11
+ var _util = require("../util");
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
+ 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); }
14
+ 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; }
15
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
19
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
21
  function toNamePathStr(name) {
34
- const namePath = (0, util_1.toArray)(name);
35
- return namePath.join('_');
22
+ var namePath = (0, _util.toArray)(name);
23
+ return namePath.join('_');
36
24
  }
37
25
  function useForm(form) {
38
- const [rcForm] = (0, rc_field_form_1.useForm)();
39
- const itemsRef = React.useRef({});
40
- const wrapForm = React.useMemo(() => form !== null && form !== void 0 ? form : Object.assign(Object.assign({}, rcForm), { __INTERNAL__: {
41
- itemRef: (name) => (node) => {
42
- const namePathStr = toNamePathStr(name);
43
- if (node) {
44
- itemsRef.current[namePathStr] = node;
45
- }
46
- else {
47
- delete itemsRef.current[namePathStr];
48
- }
49
- },
50
- }, scrollToField: (name, options = {}) => {
51
- const namePath = (0, util_1.toArray)(name);
52
- const fieldId = (0, util_1.getFieldId)(namePath, wrapForm.__INTERNAL__.name);
53
- const node = fieldId ? document.getElementById(fieldId) : null;
26
+ var _useRcForm = (0, _rcFieldForm.useForm)(),
27
+ _useRcForm2 = _slicedToArray(_useRcForm, 1),
28
+ rcForm = _useRcForm2[0];
29
+ var itemsRef = React.useRef({});
30
+ var wrapForm = React.useMemo(function () {
31
+ return form !== null && form !== void 0 ? form : Object.assign(Object.assign({}, rcForm), {
32
+ __INTERNAL__: {
33
+ itemRef: function itemRef(name) {
34
+ return function (node) {
35
+ var namePathStr = toNamePathStr(name);
54
36
  if (node) {
55
- (0, scroll_into_view_if_needed_1.default)(node, Object.assign({ scrollMode: 'if-needed', block: 'nearest' }, options));
37
+ itemsRef.current[namePathStr] = node;
38
+ } else {
39
+ delete itemsRef.current[namePathStr];
56
40
  }
57
- }, getFieldInstance: (name) => {
58
- const namePathStr = toNamePathStr(name);
59
- return itemsRef.current[namePathStr];
60
- } }), [form, rcForm]);
61
- return [wrapForm];
62
- }
63
- exports.default = useForm;
64
- //# sourceMappingURL=useForm.js.map
41
+ };
42
+ }
43
+ },
44
+ scrollToField: function scrollToField(name) {
45
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
46
+ var namePath = (0, _util.toArray)(name);
47
+ var fieldId = (0, _util.getFieldId)(namePath, wrapForm.__INTERNAL__.name);
48
+ var node = fieldId ? document.getElementById(fieldId) : null;
49
+ if (node) {
50
+ (0, _scrollIntoViewIfNeeded["default"])(node, Object.assign({
51
+ scrollMode: 'if-needed',
52
+ block: 'nearest'
53
+ }, options));
54
+ }
55
+ },
56
+ getFieldInstance: function getFieldInstance(name) {
57
+ var namePathStr = toNamePathStr(name);
58
+ return itemsRef.current[namePathStr];
59
+ }
60
+ });
61
+ }, [form, rcForm]);
62
+ return [wrapForm];
63
+ }
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const react_1 = require("react");
4
- const context_1 = require("../context");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = useFormInstance;
7
+ var _react = require("react");
8
+ var _context = require("../context");
5
9
  function useFormInstance() {
6
- const { form } = (0, react_1.useContext)(context_1.FormContext);
7
- return form;
8
- }
9
- exports.default = useFormInstance;
10
- //# sourceMappingURL=useFormInstance.js.map
10
+ var _useContext = (0, _react.useContext)(_context.FormContext),
11
+ form = _useContext.form;
12
+ return form;
13
+ }
@@ -1,15 +1,20 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _react = require("react");
8
+ var _context = require("../context");
9
+ var _warning = _interopRequireDefault(require("../../_util/warning"));
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
+ var useFormItemStatus = function useFormItemStatus() {
12
+ var _useContext = (0, _react.useContext)(_context.FormItemInputContext),
13
+ status = _useContext.status;
14
+ (0, _warning["default"])(status !== undefined, 'Form.Item', "Form.Item.useStatus should be used under Form.Item component. For more information: ".concat(window.location.protocol, "//").concat(window.location.host, "/components/form-cn/#Form.Item.useStatus"));
15
+ return {
16
+ status: status
17
+ };
4
18
  };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = require("react");
7
- const context_1 = require("../context");
8
- const warning_1 = __importDefault(require("../_util/warning"));
9
- const useFormItemStatus = () => {
10
- const { status } = (0, react_1.useContext)(context_1.FormItemInputContext);
11
- (0, warning_1.default)(status !== undefined, 'Form.Item', `Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`);
12
- return { status };
13
- };
14
- exports.default = useFormItemStatus;
15
- //# sourceMappingURL=useFormItemStatus.js.map
19
+ var _default = useFormItemStatus;
20
+ exports["default"] = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"useFormItemStatus.js","sourceRoot":"","sources":["../../../src/tntd-form/hooks/useFormItemStatus.ts"],"names":[],"mappings":";;;;;AAAA,iCAAkC;AAElC,wCAAiD;AACjD,+DAAsC;AAMtC,MAAM,iBAAiB,GAAsB,GAAG,EAAE;IAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAA;IAEnD,IAAA,iBAAO,EACL,MAAM,KAAK,SAAS,EACpB,WAAW,EACX,uFAAuF,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,0CAA0C,CACnL,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,CAAA;AACnB,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["import { useContext } from 'react'\nimport type { ValidateStatus } from '../FormItem'\nimport { FormItemInputContext } from '../context'\nimport warning from '../_util/warning'\n\ntype UseFormItemStatus = () => {\n status?: ValidateStatus\n}\n\nconst useFormItemStatus: UseFormItemStatus = () => {\n const { status } = useContext(FormItemInputContext)\n\n warning(\n status !== undefined,\n 'Form.Item',\n `Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`\n )\n\n return { status }\n}\n\nexport default useFormItemStatus\n"]}
1
+ {"version":3,"file":"useFormItemStatus.js","sourceRoot":"","sources":["../../../src/tntd-form/hooks/useFormItemStatus.ts"],"names":[],"mappings":";;;;;AAAA,iCAAkC;AAElC,wCAAiD;AACjD,kEAAyC;AAMzC,MAAM,iBAAiB,GAAsB,GAAG,EAAE;IAChD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAU,EAAC,8BAAoB,CAAC,CAAA;IAEnD,IAAA,iBAAO,EACL,MAAM,KAAK,SAAS,EACpB,WAAW,EACX,uFAAuF,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK,MAAM,CAAC,QAAQ,CAAC,IAAI,0CAA0C,CACnL,CAAA;IAED,OAAO,EAAE,MAAM,EAAE,CAAA;AACnB,CAAC,CAAA;AAED,kBAAe,iBAAiB,CAAA","sourcesContent":["import { useContext } from 'react'\nimport type { ValidateStatus } from '../FormItem'\nimport { FormItemInputContext } from '../context'\nimport warning from '../../_util/warning'\n\ntype UseFormItemStatus = () => {\n status?: ValidateStatus\n}\n\nconst useFormItemStatus: UseFormItemStatus = () => {\n const { status } = useContext(FormItemInputContext)\n\n warning(\n status !== undefined,\n 'Form.Item',\n `Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`\n )\n\n return { status }\n}\n\nexport default useFormItemStatus\n"]}