tntd 2.8.53 → 2.8.55

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 (1125) hide show
  1. package/es/_util/context.js +16 -11
  2. package/es/_util/defaultRenderEmpty.js +36 -13
  3. package/es/_util/hooks/useFlexGapSupport.js +27 -10
  4. package/es/_util/hooks/useForceUpdate.js +24 -6
  5. package/es/_util/hooks/useScrollLock.js +63 -45
  6. package/es/_util/motion.js +51 -33
  7. package/es/_util/reactNode.js +24 -13
  8. package/es/_util/responsiveObserve.js +68 -56
  9. package/es/_util/styleChecker.js +39 -26
  10. package/es/_util/type.js +18 -3
  11. package/es/_util/warning.js +19 -6
  12. package/es/actions/index.js +32 -11
  13. package/es/affix/index.js +24 -5
  14. package/es/affix/style/index.js +4 -3
  15. package/es/alert/alert.js +147 -0
  16. package/es/alert/alert.js.map +1 -0
  17. package/es/alert/alert.less +128 -0
  18. package/es/alert/index.js +24 -5
  19. package/es/alert/style/index.js +4 -3
  20. package/es/anchor/anchor.js +119 -54
  21. package/es/anchor/index.js +22 -6
  22. package/es/anchor/style/index.js +5 -5
  23. package/es/array-input/index.js +375 -190
  24. package/es/auth-context/index.js +10 -3
  25. package/es/auto-complete/index.js +24 -5
  26. package/es/auto-complete/style/index.js +6 -6
  27. package/es/avatar/index.js +24 -5
  28. package/es/avatar/style/index.js +4 -3
  29. package/es/back-top/index.js +24 -5
  30. package/es/back-top/style/index.js +4 -3
  31. package/es/badge/index.js +24 -5
  32. package/es/badge/style/index.js +4 -3
  33. package/es/breadcrumb/index.js +24 -5
  34. package/es/breadcrumb/style/index.js +6 -5
  35. package/es/button/button.js +51 -26
  36. package/es/button/index.js +22 -6
  37. package/es/button/style/index.js +4 -3
  38. package/es/calendar/index.js +24 -5
  39. package/es/calendar/style/index.js +6 -6
  40. package/es/card/card.js +45 -22
  41. package/es/card/index.js +21 -5
  42. package/es/card/style/index.js +7 -7
  43. package/es/carousel/index.js +24 -5
  44. package/es/carousel/style/index.js +4 -3
  45. package/es/cascader/cascader.js +84 -0
  46. package/es/cascader/cascader.js.map +1 -0
  47. package/es/cascader/cascader.less +16 -0
  48. package/es/cascader/index.js +29 -8
  49. package/es/cascader/style/index.js +6 -6
  50. package/es/check-card/group.js +226 -144
  51. package/es/check-card/index.js +168 -115
  52. package/es/checkbox/check.png +0 -0
  53. package/es/checkbox/checkbox-group.js +12 -6
  54. package/es/checkbox/checkbox.js +100 -0
  55. package/es/checkbox/checkbox.js.map +1 -0
  56. package/es/checkbox/checkbox.less +69 -0
  57. package/es/checkbox/index.js +38 -8
  58. package/es/checkbox/style/index.js +4 -3
  59. package/es/col/index.js +24 -5
  60. package/es/col/style/index.js +4 -5
  61. package/es/collapse/index.js +25 -6
  62. package/es/collapse/style/index.js +4 -3
  63. package/es/color-picker/ColorPicker.js +155 -89
  64. package/es/color-picker/index.js +21 -11
  65. package/es/columns/index.js +78 -35
  66. package/es/columns/style/index.js +1 -2
  67. package/es/comment/index.js +24 -5
  68. package/es/comment/style/index.js +4 -3
  69. package/es/config-provider/DisabledContext.js +19 -7
  70. package/es/config-provider/SizeContext.js +21 -5
  71. package/es/config-provider/config-provider.js +13 -3
  72. package/es/config-provider/index.js +85 -9
  73. package/es/config-provider/index.js.map +1 -1
  74. package/es/config-provider/style/index.js +3 -2
  75. package/es/connect/index.js +42 -24
  76. package/es/date-picker/DatePicker.js +163 -0
  77. package/es/date-picker/DatePicker.js.map +1 -0
  78. package/es/date-picker/index.js +47 -13
  79. package/es/date-picker/index.less +294 -0
  80. package/es/date-picker/style/index.js +7 -8
  81. package/es/descriptions/descriptions.js +140 -73
  82. package/es/descriptions/index.js +22 -6
  83. package/es/descriptions/style/index.js +4 -3
  84. package/es/development-login/LoginModal.js +112 -54
  85. package/es/development-login/index.js +44 -11
  86. package/es/divider/index.js +24 -5
  87. package/es/divider/style/index.js +4 -3
  88. package/es/drawer/drawer.js +144 -73
  89. package/es/drawer/index.js +23 -6
  90. package/es/drawer/style/index.js +4 -4
  91. package/es/dropdown/index.js +24 -5
  92. package/es/dropdown/style/index.js +5 -5
  93. package/es/ellipsis/Svg/CopySVG.js +71 -17
  94. package/es/ellipsis/Svg/TickSVG.js +49 -12
  95. package/es/ellipsis/index.js +191 -119
  96. package/es/empty/empty.js +89 -57
  97. package/es/empty/empty.stories.js +20 -14
  98. package/es/empty/index.js +22 -6
  99. package/es/empty/style/index.js +4 -3
  100. package/es/exception/exception.js +46 -25
  101. package/es/exception/index.js +21 -5
  102. package/es/form/form.js +95 -58
  103. package/es/form/index.js +21 -5
  104. package/es/form/style/index.js +5 -5
  105. package/es/grid/index.js +24 -5
  106. package/es/grid/style/index.js +4 -3
  107. package/es/grid-v4/RowContext.js +9 -4
  108. package/es/grid-v4/col.js +92 -70
  109. package/es/grid-v4/hooks/useBreakpoint.js +27 -18
  110. package/es/grid-v4/index.js +27 -10
  111. package/es/grid-v4/row.js +174 -132
  112. package/es/grid-v4/style/index.js +3 -3
  113. package/es/handle/index.js +166 -103
  114. package/es/handle-icon/index.js +225 -156
  115. package/es/icon/IconFont.js +58 -50
  116. package/es/icon/components/Icon.js +130 -75
  117. package/es/icon/components/index.js +13 -2
  118. package/es/icon/components/utils.js +107 -68
  119. package/es/icon/index.js +118 -91
  120. package/es/icon/style/index.js +5 -4
  121. package/es/icon/twoTonePrimaryColor.js +17 -10
  122. package/es/icon/utils.js +68 -63
  123. package/es/icon-list/index.js +7 -120
  124. package/es/icon-old/index.js +24 -5
  125. package/es/icon-old/style/index.js +4 -3
  126. package/es/img/Contain.js +68 -41
  127. package/es/img/Cover.js +116 -75
  128. package/es/img/index.js +74 -35
  129. package/es/index.js +748 -113
  130. package/es/index.js.map +1 -1
  131. package/es/input/index.js +22 -6
  132. package/es/input/input.js +106 -61
  133. package/es/input/style/index.js +5 -5
  134. package/es/input-number/index.js +50 -26
  135. package/es/input-number/inputNumber.js +89 -0
  136. package/es/input-number/inputNumber.js.map +1 -0
  137. package/es/input-number/inputNumber.less +12 -0
  138. package/es/input-number/style/index.js +4 -3
  139. package/es/label/index.js +131 -111
  140. package/es/layout/index.js +24 -5
  141. package/es/layout/style/index.js +4 -3
  142. package/es/list/index.js +24 -5
  143. package/es/list/style/index.js +8 -8
  144. package/es/loading-button/index.js +58 -30
  145. package/es/locale/default.js +12 -6
  146. package/es/locale/en_US.js +81 -74
  147. package/es/locale/index.js +38 -4
  148. package/es/locale/zh_CN.js +73 -67
  149. package/es/locale-provider/index.js +27 -8
  150. package/es/locale-provider/style/index.js +3 -2
  151. package/es/mentions/index.js +24 -5
  152. package/es/mentions/style/index.js +5 -5
  153. package/es/menu/index.js +24 -5
  154. package/es/menu/style/index.js +5 -6
  155. package/es/message/index.js +25 -6
  156. package/es/message/style/index.js +4 -3
  157. package/es/modal/index.js +22 -6
  158. package/es/modal/index.less +36 -0
  159. package/es/modal/modal.js +97 -36
  160. package/es/modal/style/index.js +5 -5
  161. package/es/notification/assets/index.js +20 -3
  162. package/es/notification/assets/svg-error-tip.js +152 -33
  163. package/es/notification/assets/svg-success-tip.js +169 -37
  164. package/es/notification/index.js +23 -5
  165. package/es/notification/notification.js +104 -23
  166. package/es/notification/style/index.js +4 -3
  167. package/es/page/Box.js +64 -36
  168. package/es/page/index.js +145 -92
  169. package/es/page/utils.js +22 -14
  170. package/es/page-container/index.js +22 -10
  171. package/es/page-header/index.js +24 -5
  172. package/es/page-header/style/index.js +5 -5
  173. package/es/page-loading/index.js +33 -24
  174. package/es/page-loading/loading.gif +0 -0
  175. package/es/pagination/index.js +24 -5
  176. package/es/pagination/style/index.js +5 -5
  177. package/es/popconfirm/index.js +24 -5
  178. package/es/popconfirm/index.less +32 -0
  179. package/es/popconfirm/popconfirm.js +96 -0
  180. package/es/popconfirm/popconfirm.js.map +1 -0
  181. package/es/popconfirm/style/index.js +5 -6
  182. package/es/popover/index.js +24 -5
  183. package/es/popover/index.less +57 -0
  184. package/es/popover/popover.js +90 -0
  185. package/es/popover/popover.js.map +1 -0
  186. package/es/popover/style/index.js +4 -5
  187. package/es/prev-locale.js +195 -131
  188. package/es/prev-locale.js.map +1 -1
  189. package/es/preview-text/index.js +264 -183
  190. package/es/progress/index.js +24 -5
  191. package/es/progress/progress.js +179 -0
  192. package/es/progress/progress.js.map +1 -0
  193. package/es/progress/progress.less +82 -0
  194. package/es/progress/style/index.js +4 -3
  195. package/es/query-form/Field/Checkbox.js +27 -19
  196. package/es/query-form/Field/Select.js +79 -43
  197. package/es/query-form/Field/SelectInput.js +98 -51
  198. package/es/query-form/Field/fieldsMap.js +52 -47
  199. package/es/query-form/Field/index.js +142 -70
  200. package/es/query-form/createActions.js +54 -47
  201. package/es/query-form/index.js +377 -261
  202. package/es/query-form/useForm.js +13 -7
  203. package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  204. package/es/query-form-backup/Field/Composition/index.less +114 -0
  205. package/es/query-form-backup/index.less +90 -0
  206. package/es/query-list-scene/List.js +357 -262
  207. package/es/query-list-scene/QueryForm.js +157 -98
  208. package/es/query-list-scene/QueryListScene.js +63 -26
  209. package/es/query-list-scene/Title.js +15 -5
  210. package/es/query-list-scene/Toolbar.js +30 -17
  211. package/es/query-list-scene/createActions.js +80 -61
  212. package/es/query-list-scene/index.js +26 -20
  213. package/es/query-list-scene/useActions.js +13 -7
  214. package/es/radio/index.js +27 -7
  215. package/es/radio/radio-group.js +12 -6
  216. package/es/radio/radio.js +110 -0
  217. package/es/radio/radio.js.map +1 -0
  218. package/es/radio/radio.less +43 -0
  219. package/es/radio/style/index.js +4 -3
  220. package/es/rate/index.js +24 -5
  221. package/es/rate/style/index.js +5 -5
  222. package/es/render-empty/index.js +8 -3
  223. package/es/render-empty/render-empty.js +29 -17
  224. package/es/result/index.js +24 -5
  225. package/es/result/style/index.js +4 -3
  226. package/es/row/index.js +24 -5
  227. package/es/row/style/index.js +4 -5
  228. package/es/scroll-bar/Bar.js +90 -47
  229. package/es/scroll-bar/Context.js +12 -6
  230. package/es/scroll-bar/ScrollBar.js +91 -62
  231. package/es/scroll-bar/Thumb.js +125 -108
  232. package/es/scroll-bar/index.js +10 -4
  233. package/es/scroll-bar/util.js +38 -27
  234. package/es/segmented/index.js +69 -43
  235. package/es/select/index.js +23 -6
  236. package/es/select/select.js +64 -39
  237. package/es/select/style/index.js +5 -5
  238. package/es/skeleton/index.js +24 -5
  239. package/es/skeleton/style/index.js +4 -3
  240. package/es/slider/index.js +24 -5
  241. package/es/slider/style/index.js +5 -5
  242. package/es/spin/index.js +24 -5
  243. package/es/spin/spin.js +79 -0
  244. package/es/spin/spin.js.map +1 -0
  245. package/es/spin/spin.less +9 -0
  246. package/es/spin/style/index.js +4 -3
  247. package/es/statistic/index.js +24 -5
  248. package/es/statistic/style/index.js +4 -3
  249. package/es/steps/assets/background_left.svg +12 -0
  250. package/es/steps/assets/background_right.svg +12 -0
  251. package/es/steps/assets/horizontal_line.svg +3 -0
  252. package/es/steps/assets/vertical_line.svg +3 -0
  253. package/es/steps/index.js +23 -7
  254. package/es/steps/stepStyle/icon.less +51 -0
  255. package/es/steps/stepStyle/progress-dot.less +10 -0
  256. package/es/steps/stepStyle/variables.less +8 -0
  257. package/es/steps/stepStyle/vertical.less +41 -0
  258. package/es/steps/steps.js +72 -45
  259. package/es/steps/style/index.js +4 -3
  260. package/es/style/index.js +3 -2
  261. package/es/style/v2-compatible-reset.js +3 -2
  262. package/es/svg-components/illustration-403.js +218 -61
  263. package/es/svg-components/illustration-404.js +302 -78
  264. package/es/svg-components/illustration-500.js +333 -86
  265. package/es/svg-components/illustration-empty.js +66 -18
  266. package/es/svg-components/illustration-failure.js +124 -39
  267. package/es/svg-components/illustration-no-access.js +126 -38
  268. package/es/svg-components/illustration-no-chart.js +146 -40
  269. package/es/svg-components/illustration-no-result.js +104 -35
  270. package/es/svg-components/illustration-offline.js +179 -41
  271. package/es/svg-components/illustration-success.js +149 -46
  272. package/es/svg-components/index.js +76 -11
  273. package/es/switch/index.js +23 -4
  274. package/es/switch/index.less +45 -0
  275. package/es/switch/style/index.js +4 -3
  276. package/es/switch/switch.js +34 -8
  277. package/es/table/assets/image-loading-background.js +57 -20
  278. package/es/table/assets/image-loading.js +38 -8
  279. package/es/table/constants.js +7 -2
  280. package/es/table/context.js +8 -3
  281. package/es/table/hooks/index.js +27 -3
  282. package/es/table/hooks/use-column-setting.js +39 -19
  283. package/es/table/hooks/use-expand-fixed.js +106 -82
  284. package/es/table/index.js +23 -7
  285. package/es/table/resizableTable/index.js +139 -78
  286. package/es/table/style/index.js +10 -11
  287. package/es/table/table-hoc.js +28 -24
  288. package/es/table/table.js +242 -181
  289. package/es/table/table.stories.js +586 -366
  290. package/es/table/total-shower.js +16 -6
  291. package/es/table/utils.js +37 -56
  292. package/es/table-container/index.js +21 -9
  293. package/es/tabs/index.js +21 -5
  294. package/es/tabs/style/index.js +4 -3
  295. package/es/tabs/tabPane.js +1 -2
  296. package/es/tabs/tabs.js +66 -35
  297. package/es/tabs/tabs.less +125 -0
  298. package/es/tabs-container/index.js +22 -10
  299. package/es/tag/index.js +22 -6
  300. package/es/tag/style/index.js +4 -3
  301. package/es/tag/tag.js +165 -123
  302. package/es/time-picker/TimePicker.js +90 -0
  303. package/es/time-picker/TimePicker.js.map +1 -0
  304. package/es/time-picker/index.js +26 -7
  305. package/es/time-picker/index.less +38 -0
  306. package/es/time-picker/style/index.js +4 -3
  307. package/es/timeline/index.js +24 -5
  308. package/es/timeline/style/index.js +4 -3
  309. package/es/title/index.js +62 -28
  310. package/es/tntd-action/Action.js +218 -0
  311. package/es/tntd-action/Action.js.map +1 -0
  312. package/es/tntd-action/index.js +11 -5
  313. package/es/tntd-action/index.less +70 -0
  314. package/es/tntd-action_backup/index.less +114 -0
  315. package/es/tntd-cascader/AntdCascader/component/DisabledContext.js +19 -7
  316. package/es/tntd-cascader/AntdCascader/component/FormItemInputContext.js +11 -3
  317. package/es/tntd-cascader/AntdCascader/component/SizeContext.js +11 -3
  318. package/es/tntd-cascader/AntdCascader/component/context.js +16 -11
  319. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +31 -13
  320. package/es/tntd-cascader/AntdCascader/component/getIcons.js +79 -51
  321. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +32 -24
  322. package/es/tntd-cascader/AntdCascader/config/utils.js +29 -21
  323. package/es/tntd-cascader/AntdCascader/config/warning.js +20 -12
  324. package/es/tntd-cascader/AntdCascader/index.js +214 -136
  325. package/es/tntd-cascader/AntdCascader/interface.js +15 -5
  326. package/es/tntd-cascader/index.js +13 -2
  327. package/es/tntd-cascader/rc-cascader/Cascader.js +330 -262
  328. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +31 -14
  329. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +216 -140
  330. package/es/tntd-cascader/rc-cascader/OptionList/index.js +225 -138
  331. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +41 -23
  332. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +180 -141
  333. package/es/tntd-cascader/rc-cascader/context.js +13 -4
  334. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +64 -41
  335. package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +41 -27
  336. package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +28 -19
  337. package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +19 -10
  338. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +33 -25
  339. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +76 -43
  340. package/es/tntd-cascader/rc-cascader/index.js +9 -3
  341. package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +53 -36
  342. package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +44 -36
  343. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +35 -25
  344. package/es/tntd-checkbox-select/index.js +249 -143
  345. package/es/tntd-form/ErrorList.js +101 -50
  346. package/es/tntd-form/Form.js +168 -110
  347. package/es/tntd-form/FormItem/ItemHolder.js +149 -126
  348. package/es/tntd-form/FormItem/index.js +289 -226
  349. package/es/tntd-form/FormItemInput.js +89 -36
  350. package/es/tntd-form/FormItemLabel.js +99 -70
  351. package/es/tntd-form/FormList.js +51 -32
  352. package/es/tntd-form/context.js +46 -32
  353. package/es/tntd-form/hooks/useDebounce.js +31 -14
  354. package/es/tntd-form/hooks/useForm.js +59 -31
  355. package/es/tntd-form/hooks/useFormInstance.js +13 -7
  356. package/es/tntd-form/hooks/useFormItemStatus.js +18 -9
  357. package/es/tntd-form/hooks/useFrameState.js +55 -37
  358. package/es/tntd-form/hooks/useItemRef.js +27 -18
  359. package/es/tntd-form/index.js +26 -17
  360. package/es/tntd-form/interface.js +7 -3
  361. package/es/tntd-form/style/index.js +6 -6
  362. package/es/tntd-form/util.js +21 -17
  363. package/es/tntd-form/validateMessagesContext.js +8 -3
  364. package/es/tntd-icon/fonts/iconfont.js +36 -53
  365. package/es/tntd-icon/index.js +40 -21
  366. package/es/tntd-layout/ActionsContext.js +8 -3
  367. package/es/tntd-layout/AppList.js +175 -199
  368. package/es/tntd-layout/Application.js +77 -86
  369. package/es/tntd-layout/Avatar.js +102 -110
  370. package/es/tntd-layout/CompatibleLanguage.js +130 -155
  371. package/es/tntd-layout/EnterpriseLayout/Avatar.js +118 -120
  372. package/es/tntd-layout/EnterpriseLayout/Language.js +74 -64
  373. package/es/tntd-layout/EnterpriseLayout/Theme.js +72 -78
  374. package/es/tntd-layout/EnterpriseLayout/index.js +28 -13
  375. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +285 -251
  376. package/es/tntd-layout/GlobalNavigation/index.js +110 -90
  377. package/es/tntd-layout/Header.js +78 -106
  378. package/es/tntd-layout/HeaderActions.js +106 -81
  379. package/es/tntd-layout/HeaderNavs.js +76 -80
  380. package/es/tntd-layout/HeaderTabs.js +222 -289
  381. package/es/tntd-layout/Iconfont.js +12 -4
  382. package/es/tntd-layout/Language.js +71 -51
  383. package/es/tntd-layout/Layout.js +216 -146
  384. package/es/tntd-layout/Logo.js +71 -115
  385. package/es/tntd-layout/OrgAppList.js +240 -363
  386. package/es/tntd-layout/SideMenu.js +269 -383
  387. package/es/tntd-layout/Theme.js +77 -68
  388. package/es/tntd-layout/createActions.js +46 -31
  389. package/es/tntd-layout/images/index.js +67 -62
  390. package/es/tntd-layout/index.js +135 -77
  391. package/es/tntd-layout/paaslayout/CompactSideMenu.js +132 -156
  392. package/es/tntd-layout/paaslayout/Header.js +53 -50
  393. package/es/tntd-layout/paaslayout/Logo.js +16 -23
  394. package/es/tntd-layout/paaslayout/SideMenu.js +132 -121
  395. package/es/tntd-layout/paaslayout/index.js +208 -117
  396. package/es/tntd-layout/storage.js +58 -24
  397. package/es/tntd-modal/index.js +97 -37
  398. package/es/tntd-rc-select/_util/DisabledContext.js +19 -7
  399. package/es/tntd-rc-select/_util/FormItemInputContext.js +11 -3
  400. package/es/tntd-rc-select/_util/PurePanel.js +87 -52
  401. package/es/tntd-rc-select/_util/SizeContext.js +11 -3
  402. package/es/tntd-rc-select/_util/context.js +16 -11
  403. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +36 -13
  404. package/es/tntd-rc-select/_util/getIcons.js +82 -51
  405. package/es/tntd-rc-select/_util/interface.js +15 -5
  406. package/es/tntd-rc-select/_util/motion.js +51 -33
  407. package/es/tntd-rc-select/_util/type.js +18 -3
  408. package/es/tntd-rc-select/_util/useCompactItemContext.js +32 -24
  409. package/es/tntd-rc-select/_util/warning.js +20 -12
  410. package/es/tntd-rc-select/index.js +153 -98
  411. package/es/tntd-reference/AHref/index.js +43 -34
  412. package/es/tntd-reference/ReferenceBatchCheck/index.js +164 -96
  413. package/es/tntd-reference/ReferenceBatchDrawer/index.js +124 -58
  414. package/es/tntd-reference/ReferenceCheck/index.js +125 -71
  415. package/es/tntd-reference/ReferenceDrawer/index.js +91 -43
  416. package/es/tntd-reference/ReferenceInfo/index.js +161 -91
  417. package/es/tntd-reference/index.js +20 -14
  418. package/es/tntd-second-page/index.js +62 -29
  419. package/es/tntd-select/DropDownWrap.js +101 -54
  420. package/es/tntd-select/index.js +652 -523
  421. package/es/tntd-select/index.less +7 -0
  422. package/es/tntd-virtual-tree/index.js +307 -199
  423. package/es/tntd-virtual-tree/utils.js +264 -184
  424. package/es/tntd-virtual-tree-select/index.js +206 -125
  425. package/es/tntd-virtual-tree-select/utils.js +69 -40
  426. package/es/tooltip/index.js +25 -6
  427. package/es/tooltip/style/index.js +4 -3
  428. package/es/tooltip/tooltip.js +64 -34
  429. package/es/transfer/index.js +24 -5
  430. package/es/transfer/style/index.js +8 -8
  431. package/es/tree/index.js +24 -5
  432. package/es/tree/style/index.js +4 -3
  433. package/es/tree-select/index.js +30 -9
  434. package/es/tree-select/style/index.js +6 -7
  435. package/es/typography/index.js +24 -5
  436. package/es/typography/style/index.js +6 -6
  437. package/es/upload/index.js +220 -116
  438. package/es/upload/style/index.js +6 -6
  439. package/es/upload/svg/UploadSVG.js +44 -14
  440. package/es/utils/checkAuth.js +34 -21
  441. package/es/utils/findMenuInfoByPath.js +41 -32
  442. package/es/utils/index.js +149 -71
  443. package/es/utils/lang.js +78 -118
  444. package/es/utils/simple-template.js +12 -4
  445. package/es/version/index.js +24 -5
  446. package/es/version/style/index.js +3 -3
  447. package/es/water-mark/index.js +131 -90
  448. package/lib/_util/context.js +19 -16
  449. package/lib/_util/defaultRenderEmpty.js +69 -39
  450. package/lib/_util/defaultRenderEmpty.js.map +1 -1
  451. package/lib/_util/hooks/useFlexGapSupport.js +98 -33
  452. package/lib/_util/hooks/useForceUpdate.js +94 -29
  453. package/lib/_util/hooks/useScrollLock.js +104 -46
  454. package/lib/_util/motion.js +50 -36
  455. package/lib/_util/reactNode.js +50 -37
  456. package/lib/_util/responsiveObserve.js +94 -58
  457. package/lib/_util/styleChecker.js +41 -32
  458. package/lib/_util/type.js +16 -6
  459. package/lib/_util/warning.js +48 -30
  460. package/lib/actions/index.js +34 -14
  461. package/lib/affix/index.d.ts +2 -2
  462. package/lib/affix/index.js +52 -21
  463. package/lib/affix/index.js.map +1 -1
  464. package/lib/affix/style/index.js +2 -3
  465. package/lib/alert/alert.d.ts +12 -0
  466. package/lib/alert/alert.d.ts.map +1 -0
  467. package/lib/alert/alert.js +147 -0
  468. package/lib/alert/alert.js.map +1 -0
  469. package/lib/alert/alert.less +128 -0
  470. package/lib/alert/index.d.ts +2 -2
  471. package/lib/alert/index.js +52 -21
  472. package/lib/alert/index.js.map +1 -1
  473. package/lib/alert/style/index.js +2 -3
  474. package/lib/anchor/anchor.d.ts +4 -4
  475. package/lib/anchor/anchor.js +194 -84
  476. package/lib/anchor/anchor.js.map +1 -1
  477. package/lib/anchor/index.js +19 -19
  478. package/lib/anchor/style/index.js +2 -4
  479. package/lib/array-input/index.js +475 -215
  480. package/lib/array-input/index.js.map +1 -1
  481. package/lib/auth-context/index.js +9 -4
  482. package/lib/auto-complete/index.d.ts +2 -2
  483. package/lib/auto-complete/index.js +52 -21
  484. package/lib/auto-complete/index.js.map +1 -1
  485. package/lib/auto-complete/style/index.js +2 -4
  486. package/lib/avatar/index.d.ts +2 -2
  487. package/lib/avatar/index.js +52 -21
  488. package/lib/avatar/index.js.map +1 -1
  489. package/lib/avatar/style/index.js +2 -3
  490. package/lib/back-top/index.d.ts +2 -2
  491. package/lib/back-top/index.js +52 -21
  492. package/lib/back-top/index.js.map +1 -1
  493. package/lib/back-top/style/index.js +2 -3
  494. package/lib/badge/index.d.ts +2 -2
  495. package/lib/badge/index.js +52 -21
  496. package/lib/badge/index.js.map +1 -1
  497. package/lib/badge/style/index.js +2 -3
  498. package/lib/breadcrumb/index.d.ts +2 -2
  499. package/lib/breadcrumb/index.js +52 -21
  500. package/lib/breadcrumb/index.js.map +1 -1
  501. package/lib/breadcrumb/style/index.js +2 -3
  502. package/lib/button/button.d.ts +4 -4
  503. package/lib/button/button.js +79 -55
  504. package/lib/button/button.js.map +1 -1
  505. package/lib/button/index.js +19 -19
  506. package/lib/button/style/index.js +2 -3
  507. package/lib/calendar/index.d.ts +2 -2
  508. package/lib/calendar/index.js +52 -21
  509. package/lib/calendar/index.js.map +1 -1
  510. package/lib/calendar/style/index.js +2 -4
  511. package/lib/card/card.d.ts +3 -3
  512. package/lib/card/card.js +73 -51
  513. package/lib/card/card.js.map +1 -1
  514. package/lib/card/index.js +19 -19
  515. package/lib/card/style/index.js +2 -4
  516. package/lib/carousel/index.d.ts +2 -2
  517. package/lib/carousel/index.js +52 -21
  518. package/lib/carousel/index.js.map +1 -1
  519. package/lib/carousel/style/index.js +2 -3
  520. package/lib/cascader/cascader.d.ts +10 -0
  521. package/lib/cascader/cascader.d.ts.map +1 -0
  522. package/lib/cascader/cascader.js +84 -0
  523. package/lib/cascader/cascader.js.map +1 -0
  524. package/lib/cascader/cascader.less +16 -0
  525. package/lib/cascader/index.d.ts +2 -2
  526. package/lib/cascader/index.js +57 -25
  527. package/lib/cascader/index.js.map +1 -1
  528. package/lib/cascader/style/index.js +2 -4
  529. package/lib/check-card/group.js +309 -172
  530. package/lib/check-card/index.js +262 -141
  531. package/lib/checkbox/check.png +0 -0
  532. package/lib/checkbox/checkbox-group.d.ts +1 -1
  533. package/lib/checkbox/checkbox-group.js +14 -9
  534. package/lib/checkbox/checkbox-group.js.map +1 -1
  535. package/lib/checkbox/checkbox.d.ts +16 -0
  536. package/lib/checkbox/checkbox.d.ts.map +1 -0
  537. package/lib/checkbox/checkbox.js +100 -0
  538. package/lib/checkbox/checkbox.js.map +1 -0
  539. package/lib/checkbox/checkbox.less +69 -0
  540. package/lib/checkbox/index.d.ts +2 -2
  541. package/lib/checkbox/index.js +66 -24
  542. package/lib/checkbox/index.js.map +1 -1
  543. package/lib/checkbox/style/index.js +2 -3
  544. package/lib/col/index.d.ts +2 -2
  545. package/lib/col/index.js +52 -21
  546. package/lib/col/index.js.map +1 -1
  547. package/lib/col/style/index.js +2 -5
  548. package/lib/collapse/index.d.ts +2 -2
  549. package/lib/collapse/index.js +54 -23
  550. package/lib/collapse/index.js.map +1 -1
  551. package/lib/collapse/style/index.js +2 -3
  552. package/lib/color-picker/ColorPicker.js +248 -115
  553. package/lib/color-picker/index.js +21 -13
  554. package/lib/color-picker/index.js.map +1 -1
  555. package/lib/columns/index.js +82 -42
  556. package/lib/columns/style/index.js +1 -2
  557. package/lib/comment/index.d.ts +2 -2
  558. package/lib/comment/index.js +52 -21
  559. package/lib/comment/index.js.map +1 -1
  560. package/lib/comment/style/index.js +2 -3
  561. package/lib/config-provider/DisabledContext.js +48 -32
  562. package/lib/config-provider/SizeContext.js +49 -29
  563. package/lib/config-provider/config-provider.d.ts +1 -1
  564. package/lib/config-provider/config-provider.js +16 -8
  565. package/lib/config-provider/config-provider.js.map +1 -1
  566. package/lib/config-provider/index.d.ts +28 -3
  567. package/lib/config-provider/index.d.ts.map +1 -1
  568. package/lib/config-provider/index.js +116 -24
  569. package/lib/config-provider/index.js.map +1 -1
  570. package/lib/config-provider/style/index.js +2 -3
  571. package/lib/connect/index.js +41 -29
  572. package/lib/date-picker/DatePicker.d.ts +21 -0
  573. package/lib/date-picker/DatePicker.d.ts.map +1 -0
  574. package/lib/date-picker/DatePicker.js +163 -0
  575. package/lib/date-picker/DatePicker.js.map +1 -0
  576. package/lib/date-picker/index.d.ts +3 -3
  577. package/lib/date-picker/index.js +76 -31
  578. package/lib/date-picker/index.js.map +1 -1
  579. package/lib/date-picker/index.less +294 -0
  580. package/lib/date-picker/style/index.js +2 -5
  581. package/lib/descriptions/descriptions.d.ts +4 -4
  582. package/lib/descriptions/descriptions.js +191 -102
  583. package/lib/descriptions/descriptions.js.map +1 -1
  584. package/lib/descriptions/index.js +22 -22
  585. package/lib/descriptions/index.js.map +1 -1
  586. package/lib/descriptions/style/index.js +2 -3
  587. package/lib/development-login/LoginModal.js +206 -80
  588. package/lib/development-login/index.js +116 -35
  589. package/lib/divider/index.d.ts +2 -2
  590. package/lib/divider/index.js +52 -21
  591. package/lib/divider/index.js.map +1 -1
  592. package/lib/divider/style/index.js +2 -3
  593. package/lib/drawer/drawer.d.ts +2 -2
  594. package/lib/drawer/drawer.js +195 -100
  595. package/lib/drawer/drawer.js.map +1 -1
  596. package/lib/drawer/index.d.ts +1 -1
  597. package/lib/drawer/index.js +20 -19
  598. package/lib/drawer/index.js.map +1 -1
  599. package/lib/drawer/style/index.js +2 -4
  600. package/lib/dropdown/index.d.ts +2 -2
  601. package/lib/dropdown/index.js +52 -21
  602. package/lib/dropdown/index.js.map +1 -1
  603. package/lib/dropdown/style/index.js +2 -4
  604. package/lib/ellipsis/Svg/CopySVG.js +74 -21
  605. package/lib/ellipsis/Svg/TickSVG.js +52 -16
  606. package/lib/ellipsis/index.js +268 -147
  607. package/lib/empty/empty.d.ts +2 -2
  608. package/lib/empty/empty.js +140 -75
  609. package/lib/empty/empty.js.map +1 -1
  610. package/lib/empty/empty.stories.js +28 -19
  611. package/lib/empty/index.js +19 -19
  612. package/lib/empty/style/index.js +2 -3
  613. package/lib/exception/exception.js +49 -31
  614. package/lib/exception/exception.js.map +1 -1
  615. package/lib/exception/index.js +18 -18
  616. package/lib/form/form.d.ts +4 -4
  617. package/lib/form/form.js +145 -86
  618. package/lib/form/form.js.map +1 -1
  619. package/lib/form/index.js +19 -19
  620. package/lib/form/style/index.js +2 -4
  621. package/lib/grid/index.d.ts +2 -2
  622. package/lib/grid/index.js +52 -21
  623. package/lib/grid/index.js.map +1 -1
  624. package/lib/grid/style/index.js +2 -3
  625. package/lib/grid-v4/RowContext.js +8 -5
  626. package/lib/grid-v4/col.js +144 -96
  627. package/lib/grid-v4/hooks/useBreakpoint.js +30 -22
  628. package/lib/grid-v4/index.js +29 -15
  629. package/lib/grid-v4/row.js +268 -158
  630. package/lib/grid-v4/style/index.js +2 -4
  631. package/lib/handle/index.js +199 -129
  632. package/lib/handle/index.js.map +1 -1
  633. package/lib/handle-icon/index.js +258 -182
  634. package/lib/handle-icon/index.js.map +1 -1
  635. package/lib/icon/IconFont.js +91 -77
  636. package/lib/icon/components/Icon.js +224 -98
  637. package/lib/icon/components/index.js +16 -8
  638. package/lib/icon/components/utils.js +154 -94
  639. package/lib/icon/index.js +188 -117
  640. package/lib/icon/index.js.map +1 -1
  641. package/lib/icon/style/index.js +2 -3
  642. package/lib/icon/twoTonePrimaryColor.js +18 -15
  643. package/lib/icon/utils.js +67 -68
  644. package/lib/icon-list/index.js +6 -121
  645. package/lib/icon-old/index.d.ts +2 -2
  646. package/lib/icon-old/index.js +52 -21
  647. package/lib/icon-old/index.js.map +1 -1
  648. package/lib/icon-old/style/index.js +2 -3
  649. package/lib/img/Contain.js +71 -45
  650. package/lib/img/Cover.js +192 -79
  651. package/lib/img/index.js +149 -61
  652. package/lib/index.d.ts +1 -0
  653. package/lib/index.d.ts.map +1 -1
  654. package/lib/index.js +750 -224
  655. package/lib/index.js.map +1 -1
  656. package/lib/input/index.js +19 -19
  657. package/lib/input/input.d.ts +5 -5
  658. package/lib/input/input.js +162 -92
  659. package/lib/input/input.js.map +1 -1
  660. package/lib/input/style/index.js +2 -4
  661. package/lib/input-number/index.d.ts +3 -3
  662. package/lib/input-number/index.js +82 -55
  663. package/lib/input-number/index.js.map +1 -1
  664. package/lib/input-number/inputNumber.d.ts +10 -0
  665. package/lib/input-number/inputNumber.d.ts.map +1 -0
  666. package/lib/input-number/inputNumber.js +89 -0
  667. package/lib/input-number/inputNumber.js.map +1 -0
  668. package/lib/input-number/inputNumber.less +12 -0
  669. package/lib/input-number/style/index.js +2 -3
  670. package/lib/label/index.d.ts +2 -2
  671. package/lib/label/index.js +182 -138
  672. package/lib/label/index.js.map +1 -1
  673. package/lib/layout/index.d.ts +2 -2
  674. package/lib/layout/index.js +52 -21
  675. package/lib/layout/index.js.map +1 -1
  676. package/lib/layout/style/index.js +2 -3
  677. package/lib/list/index.d.ts +2 -2
  678. package/lib/list/index.js +52 -21
  679. package/lib/list/index.js.map +1 -1
  680. package/lib/list/style/index.js +2 -4
  681. package/lib/loading-button/index.js +133 -56
  682. package/lib/locale/default.js +15 -10
  683. package/lib/locale/default.js.map +1 -1
  684. package/lib/locale/en_US.js +84 -78
  685. package/lib/locale/en_US.js.map +1 -1
  686. package/lib/locale/index.js +36 -18
  687. package/lib/locale/zh_CN.js +76 -71
  688. package/lib/locale/zh_CN.js.map +1 -1
  689. package/lib/locale-provider/index.d.ts +2 -2
  690. package/lib/locale-provider/index.js +56 -25
  691. package/lib/locale-provider/index.js.map +1 -1
  692. package/lib/locale-provider/style/index.js +2 -3
  693. package/lib/mentions/index.d.ts +2 -2
  694. package/lib/mentions/index.js +52 -21
  695. package/lib/mentions/index.js.map +1 -1
  696. package/lib/mentions/style/index.js +2 -4
  697. package/lib/menu/index.d.ts +2 -2
  698. package/lib/menu/index.js +52 -21
  699. package/lib/menu/index.js.map +1 -1
  700. package/lib/menu/style/index.js +2 -5
  701. package/lib/message/index.d.ts +2 -2
  702. package/lib/message/index.js +52 -21
  703. package/lib/message/index.js.map +1 -1
  704. package/lib/message/style/index.js +2 -3
  705. package/lib/modal/index.js +21 -21
  706. package/lib/modal/index.js.map +1 -1
  707. package/lib/modal/index.less +36 -0
  708. package/lib/modal/modal.d.ts +4 -4
  709. package/lib/modal/modal.js +129 -65
  710. package/lib/modal/modal.js.map +1 -1
  711. package/lib/modal/style/index.js +2 -4
  712. package/lib/notification/assets/index.js +23 -10
  713. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  714. package/lib/notification/assets/svg-error-tip.js +181 -56
  715. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  716. package/lib/notification/assets/svg-success-tip.js +198 -60
  717. package/lib/notification/index.d.ts +1 -1
  718. package/lib/notification/index.js +25 -22
  719. package/lib/notification/index.js.map +1 -1
  720. package/lib/notification/notification.d.ts +2 -2
  721. package/lib/notification/notification.js +137 -40
  722. package/lib/notification/notification.js.map +1 -1
  723. package/lib/notification/style/index.js +2 -3
  724. package/lib/page/Box.js +67 -40
  725. package/lib/page/index.js +192 -95
  726. package/lib/page/utils.js +21 -18
  727. package/lib/page-container/index.js +24 -13
  728. package/lib/page-header/index.d.ts +2 -2
  729. package/lib/page-header/index.js +52 -21
  730. package/lib/page-header/index.js.map +1 -1
  731. package/lib/page-header/style/index.js +2 -4
  732. package/lib/page-loading/index.js +35 -27
  733. package/lib/page-loading/index.js.map +1 -1
  734. package/lib/page-loading/loading.gif +0 -0
  735. package/lib/pagination/index.d.ts +2 -2
  736. package/lib/pagination/index.js +52 -21
  737. package/lib/pagination/index.js.map +1 -1
  738. package/lib/pagination/style/index.js +2 -4
  739. package/lib/popconfirm/index.d.ts +2 -2
  740. package/lib/popconfirm/index.js +52 -21
  741. package/lib/popconfirm/index.js.map +1 -1
  742. package/lib/popconfirm/index.less +32 -0
  743. package/lib/popconfirm/popconfirm.d.ts +8 -0
  744. package/lib/popconfirm/popconfirm.d.ts.map +1 -0
  745. package/lib/popconfirm/popconfirm.js +96 -0
  746. package/lib/popconfirm/popconfirm.js.map +1 -0
  747. package/lib/popconfirm/style/index.js +2 -5
  748. package/lib/popover/index.d.ts +2 -2
  749. package/lib/popover/index.js +52 -21
  750. package/lib/popover/index.js.map +1 -1
  751. package/lib/popover/index.less +57 -0
  752. package/lib/popover/popover.d.ts +14 -0
  753. package/lib/popover/popover.d.ts.map +1 -0
  754. package/lib/popover/popover.js +90 -0
  755. package/lib/popover/popover.js.map +1 -0
  756. package/lib/popover/style/index.js +2 -5
  757. package/lib/prev-locale.d.ts +12 -3
  758. package/lib/prev-locale.d.ts.map +1 -1
  759. package/lib/prev-locale.js +202 -135
  760. package/lib/prev-locale.js.map +1 -1
  761. package/lib/preview-text/index.d.ts +4 -4
  762. package/lib/preview-text/index.js +296 -209
  763. package/lib/preview-text/index.js.map +1 -1
  764. package/lib/progress/index.d.ts +2 -2
  765. package/lib/progress/index.js +52 -21
  766. package/lib/progress/index.js.map +1 -1
  767. package/lib/progress/progress.d.ts +12 -0
  768. package/lib/progress/progress.d.ts.map +1 -0
  769. package/lib/progress/progress.js +179 -0
  770. package/lib/progress/progress.js.map +1 -0
  771. package/lib/progress/progress.less +82 -0
  772. package/lib/progress/style/index.js +2 -3
  773. package/lib/query-form/Field/Checkbox.js +30 -23
  774. package/lib/query-form/Field/Select.js +172 -68
  775. package/lib/query-form/Field/SelectInput.js +192 -77
  776. package/lib/query-form/Field/fieldsMap.d.ts +1 -1
  777. package/lib/query-form/Field/fieldsMap.js +55 -53
  778. package/lib/query-form/Field/index.js +239 -96
  779. package/lib/query-form/createActions.js +57 -51
  780. package/lib/query-form/index.js +474 -286
  781. package/lib/query-form/useForm.js +15 -11
  782. package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
  783. package/lib/query-form-backup/Field/Composition/index.less +114 -0
  784. package/lib/query-form-backup/index.less +90 -0
  785. package/lib/query-list-scene/List.js +448 -289
  786. package/lib/query-list-scene/QueryForm.js +233 -103
  787. package/lib/query-list-scene/QueryListScene.js +138 -30
  788. package/lib/query-list-scene/Title.js +18 -9
  789. package/lib/query-list-scene/Toolbar.js +60 -21
  790. package/lib/query-list-scene/createActions.js +83 -65
  791. package/lib/query-list-scene/index.js +28 -24
  792. package/lib/query-list-scene/useActions.js +15 -11
  793. package/lib/radio/index.d.ts +2 -2
  794. package/lib/radio/index.js +59 -23
  795. package/lib/radio/index.js.map +1 -1
  796. package/lib/radio/radio-group.d.ts +1 -1
  797. package/lib/radio/radio-group.js +14 -9
  798. package/lib/radio/radio-group.js.map +1 -1
  799. package/lib/radio/radio.d.ts +17 -0
  800. package/lib/radio/radio.d.ts.map +1 -0
  801. package/lib/radio/radio.js +110 -0
  802. package/lib/radio/radio.js.map +1 -0
  803. package/lib/radio/radio.less +43 -0
  804. package/lib/radio/style/index.js +2 -3
  805. package/lib/rate/index.d.ts +2 -2
  806. package/lib/rate/index.js +52 -21
  807. package/lib/rate/index.js.map +1 -1
  808. package/lib/rate/style/index.js +2 -4
  809. package/lib/render-empty/index.js +7 -4
  810. package/lib/render-empty/render-empty.js +31 -22
  811. package/lib/result/index.d.ts +2 -2
  812. package/lib/result/index.js +52 -21
  813. package/lib/result/index.js.map +1 -1
  814. package/lib/result/style/index.js +2 -3
  815. package/lib/row/index.d.ts +2 -2
  816. package/lib/row/index.js +52 -21
  817. package/lib/row/index.js.map +1 -1
  818. package/lib/row/style/index.js +2 -5
  819. package/lib/scroll-bar/Bar.js +165 -73
  820. package/lib/scroll-bar/Context.js +15 -10
  821. package/lib/scroll-bar/ScrollBar.js +124 -88
  822. package/lib/scroll-bar/Thumb.js +198 -133
  823. package/lib/scroll-bar/index.js +12 -7
  824. package/lib/scroll-bar/util.js +64 -30
  825. package/lib/segmented/index.d.ts +1 -1
  826. package/lib/segmented/index.js +121 -69
  827. package/lib/select/index.d.ts +1 -1
  828. package/lib/select/index.js +20 -19
  829. package/lib/select/index.js.map +1 -1
  830. package/lib/select/select.d.ts +2 -2
  831. package/lib/select/select.js +116 -66
  832. package/lib/select/select.js.map +1 -1
  833. package/lib/select/style/index.js +2 -4
  834. package/lib/skeleton/index.d.ts +2 -2
  835. package/lib/skeleton/index.js +52 -21
  836. package/lib/skeleton/index.js.map +1 -1
  837. package/lib/skeleton/style/index.js +2 -3
  838. package/lib/slider/index.d.ts +2 -2
  839. package/lib/slider/index.js +52 -21
  840. package/lib/slider/index.js.map +1 -1
  841. package/lib/slider/style/index.js +2 -4
  842. package/lib/spin/index.d.ts +2 -2
  843. package/lib/spin/index.js +52 -21
  844. package/lib/spin/index.js.map +1 -1
  845. package/lib/spin/spin.d.ts +9 -0
  846. package/lib/spin/spin.d.ts.map +1 -0
  847. package/lib/spin/spin.js +79 -0
  848. package/lib/spin/spin.js.map +1 -0
  849. package/lib/spin/spin.less +9 -0
  850. package/lib/spin/style/index.js +2 -3
  851. package/lib/statistic/index.d.ts +2 -2
  852. package/lib/statistic/index.js +52 -21
  853. package/lib/statistic/index.js.map +1 -1
  854. package/lib/statistic/style/index.js +2 -3
  855. package/lib/steps/assets/background_left.svg +12 -0
  856. package/lib/steps/assets/background_right.svg +12 -0
  857. package/lib/steps/assets/horizontal_line.svg +3 -0
  858. package/lib/steps/assets/vertical_line.svg +3 -0
  859. package/lib/steps/index.js +19 -19
  860. package/lib/steps/stepStyle/icon.less +51 -0
  861. package/lib/steps/stepStyle/progress-dot.less +10 -0
  862. package/lib/steps/stepStyle/variables.less +8 -0
  863. package/lib/steps/stepStyle/vertical.less +41 -0
  864. package/lib/steps/steps.d.ts +3 -3
  865. package/lib/steps/steps.js +123 -63
  866. package/lib/steps/steps.js.map +1 -1
  867. package/lib/steps/style/index.js +2 -3
  868. package/lib/style/index.js +2 -3
  869. package/lib/style/v2-compatible-reset.js +2 -3
  870. package/lib/svg-components/illustration-403.d.ts +1 -1
  871. package/lib/svg-components/illustration-403.js +247 -84
  872. package/lib/svg-components/illustration-404.d.ts +1 -1
  873. package/lib/svg-components/illustration-404.js +331 -101
  874. package/lib/svg-components/illustration-500.d.ts +1 -1
  875. package/lib/svg-components/illustration-500.js +362 -109
  876. package/lib/svg-components/illustration-empty.d.ts +1 -1
  877. package/lib/svg-components/illustration-empty.js +95 -41
  878. package/lib/svg-components/illustration-failure.d.ts +1 -1
  879. package/lib/svg-components/illustration-failure.js +153 -62
  880. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  881. package/lib/svg-components/illustration-no-access.js +155 -61
  882. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  883. package/lib/svg-components/illustration-no-chart.js +175 -63
  884. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  885. package/lib/svg-components/illustration-no-result.js +133 -58
  886. package/lib/svg-components/illustration-offline.d.ts +1 -1
  887. package/lib/svg-components/illustration-offline.js +208 -64
  888. package/lib/svg-components/illustration-success.d.ts +1 -1
  889. package/lib/svg-components/illustration-success.js +178 -69
  890. package/lib/svg-components/index.js +79 -26
  891. package/lib/switch/index.js +52 -21
  892. package/lib/switch/index.less +45 -0
  893. package/lib/switch/style/index.js +2 -3
  894. package/lib/switch/switch.d.ts +2 -2
  895. package/lib/switch/switch.js +67 -26
  896. package/lib/switch/switch.js.map +1 -1
  897. package/lib/table/assets/image-loading-background.d.ts +1 -1
  898. package/lib/table/assets/image-loading-background.js +86 -43
  899. package/lib/table/assets/image-loading.d.ts +1 -1
  900. package/lib/table/assets/image-loading.js +67 -31
  901. package/lib/table/constants.js +5 -3
  902. package/lib/table/context.js +6 -4
  903. package/lib/table/hooks/index.js +25 -17
  904. package/lib/table/hooks/use-column-setting.d.ts +1 -1
  905. package/lib/table/hooks/use-column-setting.js +79 -21
  906. package/lib/table/hooks/use-column-setting.js.map +1 -1
  907. package/lib/table/hooks/use-expand-fixed.js +474 -79
  908. package/lib/table/index.js +19 -19
  909. package/lib/table/resizableTable/index.js +233 -104
  910. package/lib/table/style/index.js +2 -5
  911. package/lib/table/table-hoc.d.ts +3 -3
  912. package/lib/table/table-hoc.js +31 -29
  913. package/lib/table/table-hoc.js.map +1 -1
  914. package/lib/table/table.d.ts +3 -3
  915. package/lib/table/table.js +336 -209
  916. package/lib/table/table.js.map +1 -1
  917. package/lib/table/table.stories.js +620 -377
  918. package/lib/table/total-shower.d.ts +2 -2
  919. package/lib/table/total-shower.js +18 -11
  920. package/lib/table/total-shower.js.map +1 -1
  921. package/lib/table/utils.d.ts +1 -1
  922. package/lib/table/utils.js +39 -62
  923. package/lib/table/utils.js.map +1 -1
  924. package/lib/table-container/index.js +23 -12
  925. package/lib/tabs/index.js +19 -19
  926. package/lib/tabs/style/index.js +2 -3
  927. package/lib/tabs/tabPane.js +1 -2
  928. package/lib/tabs/tabs.d.ts +3 -3
  929. package/lib/tabs/tabs.js +94 -64
  930. package/lib/tabs/tabs.js.map +1 -1
  931. package/lib/tabs/tabs.less +125 -0
  932. package/lib/tabs-container/index.js +24 -13
  933. package/lib/tag/index.js +20 -20
  934. package/lib/tag/style/index.js +2 -3
  935. package/lib/tag/tag.d.ts +4 -4
  936. package/lib/tag/tag.js +215 -151
  937. package/lib/tag/tag.js.map +1 -1
  938. package/lib/time-picker/TimePicker.d.ts +9 -0
  939. package/lib/time-picker/TimePicker.d.ts.map +1 -0
  940. package/lib/time-picker/TimePicker.js +90 -0
  941. package/lib/time-picker/TimePicker.js.map +1 -0
  942. package/lib/time-picker/index.d.ts +2 -2
  943. package/lib/time-picker/index.js +54 -23
  944. package/lib/time-picker/index.js.map +1 -1
  945. package/lib/time-picker/index.less +38 -0
  946. package/lib/time-picker/style/index.js +2 -3
  947. package/lib/timeline/index.d.ts +2 -2
  948. package/lib/timeline/index.js +52 -21
  949. package/lib/timeline/index.js.map +1 -1
  950. package/lib/timeline/style/index.js +2 -3
  951. package/lib/title/index.js +64 -31
  952. package/lib/tntd-action/Action.d.ts +6 -0
  953. package/lib/tntd-action/Action.d.ts.map +1 -0
  954. package/lib/tntd-action/Action.js +218 -0
  955. package/lib/tntd-action/Action.js.map +1 -0
  956. package/lib/tntd-action/index.js +9 -6
  957. package/lib/tntd-action/index.less +70 -0
  958. package/lib/tntd-action_backup/index.less +114 -0
  959. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +48 -32
  960. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +39 -26
  961. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +39 -26
  962. package/lib/tntd-cascader/AntdCascader/component/context.js +19 -16
  963. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +64 -39
  964. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -1
  965. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +112 -78
  966. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +83 -51
  967. package/lib/tntd-cascader/AntdCascader/config/utils.js +58 -29
  968. package/lib/tntd-cascader/AntdCascader/config/warning.js +49 -35
  969. package/lib/tntd-cascader/AntdCascader/index.js +284 -162
  970. package/lib/tntd-cascader/AntdCascader/interface.js +13 -7
  971. package/lib/tntd-cascader/img/no-data-s.png +0 -0
  972. package/lib/tntd-cascader/index.js +16 -8
  973. package/lib/tntd-cascader/rc-cascader/Cascader.js +413 -288
  974. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +82 -40
  975. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +285 -167
  976. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +327 -164
  977. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +116 -49
  978. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +263 -167
  979. package/lib/tntd-cascader/rc-cascader/context.js +42 -27
  980. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +111 -64
  981. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +70 -50
  982. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +57 -42
  983. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +47 -33
  984. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +65 -51
  985. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +141 -66
  986. package/lib/tntd-cascader/rc-cascader/index.js +12 -7
  987. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +46 -38
  988. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +42 -39
  989. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +37 -30
  990. package/lib/tntd-checkbox-select/index.js +332 -169
  991. package/lib/tntd-form/ErrorList.js +171 -77
  992. package/lib/tntd-form/Form.js +262 -139
  993. package/lib/tntd-form/FormItem/ItemHolder.js +242 -152
  994. package/lib/tntd-form/FormItem/index.js +371 -251
  995. package/lib/tntd-form/FormItemInput.js +122 -62
  996. package/lib/tntd-form/FormItemLabel.js +151 -96
  997. package/lib/tntd-form/FormList.js +84 -58
  998. package/lib/tntd-form/context.js +79 -61
  999. package/lib/tntd-form/hooks/useDebounce.js +101 -37
  1000. package/lib/tntd-form/hooks/useForm.js +133 -57
  1001. package/lib/tntd-form/hooks/useFormInstance.js +11 -8
  1002. package/lib/tntd-form/hooks/useFormItemStatus.js +21 -13
  1003. package/lib/tntd-form/hooks/useFrameState.js +129 -63
  1004. package/lib/tntd-form/hooks/useItemRef.js +55 -41
  1005. package/lib/tntd-form/index.js +58 -42
  1006. package/lib/tntd-form/interface.js +6 -4
  1007. package/lib/tntd-form/style/index.js +2 -4
  1008. package/lib/tntd-form/util.js +18 -19
  1009. package/lib/tntd-form/validateMessagesContext.js +7 -4
  1010. package/lib/tntd-icon/fonts/iconfont.js +36 -53
  1011. package/lib/tntd-icon/index.js +41 -25
  1012. package/lib/tntd-layout/ActionsContext.js +7 -4
  1013. package/lib/tntd-layout/AppList.js +253 -222
  1014. package/lib/tntd-layout/Application.js +155 -109
  1015. package/lib/tntd-layout/Avatar.js +139 -134
  1016. package/lib/tntd-layout/CompatibleLanguage.js +207 -177
  1017. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +156 -145
  1018. package/lib/tntd-layout/EnterpriseLayout/Language.js +153 -88
  1019. package/lib/tntd-layout/EnterpriseLayout/Theme.js +149 -100
  1020. package/lib/tntd-layout/EnterpriseLayout/index.js +31 -17
  1021. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +361 -272
  1022. package/lib/tntd-layout/GlobalNavigation/index.js +195 -112
  1023. package/lib/tntd-layout/Header.js +115 -130
  1024. package/lib/tntd-layout/HeaderActions.js +145 -107
  1025. package/lib/tntd-layout/HeaderNavs.js +155 -105
  1026. package/lib/tntd-layout/HeaderTabs.js +318 -312
  1027. package/lib/tntd-layout/Iconfont.js +15 -8
  1028. package/lib/tntd-layout/Language.js +150 -75
  1029. package/lib/tntd-layout/Layout.js +292 -167
  1030. package/lib/tntd-layout/Logo.js +108 -139
  1031. package/lib/tntd-layout/OrgAppList.js +315 -383
  1032. package/lib/tntd-layout/SideMenu.js +347 -406
  1033. package/lib/tntd-layout/Theme.js +154 -90
  1034. package/lib/tntd-layout/createActions.js +49 -35
  1035. package/lib/tntd-layout/images/avatar/empty.png +0 -0
  1036. package/lib/tntd-layout/images/avatar/female1.png +0 -0
  1037. package/lib/tntd-layout/images/avatar/female2.png +0 -0
  1038. package/lib/tntd-layout/images/avatar/female3.png +0 -0
  1039. package/lib/tntd-layout/images/avatar/female4.png +0 -0
  1040. package/lib/tntd-layout/images/avatar/female5.png +0 -0
  1041. package/lib/tntd-layout/images/avatar/female6.png +0 -0
  1042. package/lib/tntd-layout/images/avatar/male1.png +0 -0
  1043. package/lib/tntd-layout/images/avatar/male2.png +0 -0
  1044. package/lib/tntd-layout/images/avatar/male3.png +0 -0
  1045. package/lib/tntd-layout/images/avatar/male4.png +0 -0
  1046. package/lib/tntd-layout/images/avatar/male5.png +0 -0
  1047. package/lib/tntd-layout/images/avatar/male6.png +0 -0
  1048. package/lib/tntd-layout/images/index.js +70 -67
  1049. package/lib/tntd-layout/index.js +168 -96
  1050. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +210 -179
  1051. package/lib/tntd-layout/paaslayout/Header.js +90 -74
  1052. package/lib/tntd-layout/paaslayout/Logo.js +25 -27
  1053. package/lib/tntd-layout/paaslayout/SideMenu.js +212 -146
  1054. package/lib/tntd-layout/paaslayout/index.js +285 -139
  1055. package/lib/tntd-layout/storage.js +65 -46
  1056. package/lib/tntd-modal/index.js +190 -62
  1057. package/lib/tntd-rc-select/_util/DisabledContext.js +48 -32
  1058. package/lib/tntd-rc-select/_util/FormItemInputContext.js +39 -26
  1059. package/lib/tntd-rc-select/_util/PurePanel.js +161 -78
  1060. package/lib/tntd-rc-select/_util/SizeContext.js +39 -26
  1061. package/lib/tntd-rc-select/_util/context.js +19 -16
  1062. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +69 -39
  1063. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js.map +1 -1
  1064. package/lib/tntd-rc-select/_util/getIcons.js +115 -78
  1065. package/lib/tntd-rc-select/_util/interface.js +13 -7
  1066. package/lib/tntd-rc-select/_util/motion.js +50 -36
  1067. package/lib/tntd-rc-select/_util/type.js +16 -6
  1068. package/lib/tntd-rc-select/_util/useCompactItemContext.js +83 -51
  1069. package/lib/tntd-rc-select/_util/warning.js +49 -35
  1070. package/lib/tntd-rc-select/img/no-data-s.png +0 -0
  1071. package/lib/tntd-rc-select/index.js +206 -125
  1072. package/lib/tntd-reference/AHref/index.js +46 -38
  1073. package/lib/tntd-reference/ReferenceBatchCheck/index.js +166 -99
  1074. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +198 -83
  1075. package/lib/tntd-reference/ReferenceCheck/index.js +127 -74
  1076. package/lib/tntd-reference/ReferenceDrawer/index.js +165 -68
  1077. package/lib/tntd-reference/ReferenceInfo/index.js +162 -93
  1078. package/lib/tntd-reference/index.js +23 -18
  1079. package/lib/tntd-second-page/index.js +63 -32
  1080. package/lib/tntd-second-page/index.js.map +1 -1
  1081. package/lib/tntd-select/DropDownWrap.js +188 -78
  1082. package/lib/tntd-select/index.d.ts +1 -1
  1083. package/lib/tntd-select/index.js +745 -549
  1084. package/lib/tntd-select/index.less +7 -0
  1085. package/lib/tntd-virtual-tree/index.js +395 -230
  1086. package/lib/tntd-virtual-tree/utils.js +328 -197
  1087. package/lib/tntd-virtual-tree-select/index.js +281 -151
  1088. package/lib/tntd-virtual-tree-select/utils.js +86 -46
  1089. package/lib/tooltip/index.js +53 -22
  1090. package/lib/tooltip/style/index.js +2 -3
  1091. package/lib/tooltip/tooltip.d.ts +2 -2
  1092. package/lib/tooltip/tooltip.js +96 -62
  1093. package/lib/tooltip/tooltip.js.map +1 -1
  1094. package/lib/transfer/index.d.ts +2 -2
  1095. package/lib/transfer/index.js +52 -21
  1096. package/lib/transfer/index.js.map +1 -1
  1097. package/lib/transfer/style/index.js +2 -4
  1098. package/lib/tree/index.d.ts +2 -2
  1099. package/lib/tree/index.js +52 -21
  1100. package/lib/tree/index.js.map +1 -1
  1101. package/lib/tree/style/index.js +2 -3
  1102. package/lib/tree-select/index.d.ts +4 -4
  1103. package/lib/tree-select/index.js +58 -26
  1104. package/lib/tree-select/index.js.map +1 -1
  1105. package/lib/tree-select/style/index.js +2 -5
  1106. package/lib/typography/index.d.ts +2 -2
  1107. package/lib/typography/index.js +52 -21
  1108. package/lib/typography/index.js.map +1 -1
  1109. package/lib/typography/style/index.js +2 -4
  1110. package/lib/upload/index.d.ts +1 -1
  1111. package/lib/upload/index.js +340 -143
  1112. package/lib/upload/index.js.map +1 -1
  1113. package/lib/upload/style/index.js +2 -4
  1114. package/lib/upload/svg/UploadSVG.js +47 -18
  1115. package/lib/utils/checkAuth.js +37 -24
  1116. package/lib/utils/findMenuInfoByPath.js +40 -35
  1117. package/lib/utils/index.js +165 -94
  1118. package/lib/utils/lang.js +81 -126
  1119. package/lib/utils/simple-template.js +11 -7
  1120. package/lib/version/index.d.ts +2 -2
  1121. package/lib/version/index.js +52 -21
  1122. package/lib/version/index.js.map +1 -1
  1123. package/lib/version/style/index.js +2 -4
  1124. package/lib/water-mark/index.js +206 -118
  1125. package/package.json +1 -1
@@ -1,20 +1,23 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ConfigConsumer = exports.ConfigContext = exports.defaultIconPrefixCls = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
9
- if (customizePrefixCls)
10
- return customizePrefixCls;
11
- return suffixCls ? `tntd-${suffixCls}` : 'tntd';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.defaultIconPrefixCls = exports.ConfigContext = exports.ConfigConsumer = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) {
9
+ return e && e.__esModule ? e : {
10
+ "default": e
11
+ };
12
+ }
13
+ var defaultGetPrefixCls = function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
14
+ if (customizePrefixCls) return customizePrefixCls;
15
+ return suffixCls ? "tntd-".concat(suffixCls) : 'tntd';
12
16
  };
13
- exports.defaultIconPrefixCls = 'anticon';
17
+ var defaultIconPrefixCls = exports.defaultIconPrefixCls = 'anticon';
14
18
  // zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
15
- exports.ConfigContext = react_1.default.createContext({
16
- // We provide a default function for Context without provider
17
- getPrefixCls: defaultGetPrefixCls,
19
+ var ConfigContext = exports.ConfigContext = _react["default"].createContext({
20
+ // We provide a default function for Context without provider
21
+ getPrefixCls: defaultGetPrefixCls
18
22
  });
19
- exports.ConfigConsumer = exports.ConfigContext.Consumer;
20
- //# sourceMappingURL=context.js.map
23
+ var ConfigConsumer = exports.ConfigConsumer = ConfigContext.Consumer;
@@ -1,31 +1,52 @@
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(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
17
14
  });
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 });
15
+ exports["default"] = void 0;
16
+ var React = _interopRequireWildcard(require("react"));
17
+ var _context = require("./context");
18
+ var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
19
+ var _empty = _interopRequireDefault(require("../../../empty"));
20
+ function _interopRequireDefault(e) {
21
+ return e && e.__esModule ? e : {
22
+ "default": e
23
+ };
24
+ }
25
+ function _getRequireWildcardCache(e) {
26
+ if ("function" != typeof WeakMap) return null;
27
+ var r = new WeakMap(),
28
+ t = new WeakMap();
29
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
30
+ return e ? t : r;
31
+ })(e);
32
+ }
33
+ function _interopRequireWildcard(e, r) {
34
+ if (!r && e && e.__esModule) return e;
35
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
36
+ "default": e
37
+ };
38
+ var t = _getRequireWildcardCache(r);
39
+ if (t && t.has(e)) return t.get(e);
40
+ var n = {
41
+ __proto__: null
42
+ },
43
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
44
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
45
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
46
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
47
+ }
48
+ return n["default"] = e, t && t.set(e, n), n;
49
+ }
29
50
  /*
30
51
  * @Descripttion: 空状态
31
52
  * @Author: 郑泳健
@@ -33,16 +54,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
54
  * @LastEditors: 郑泳健
34
55
  * @LastEditTime: 2024-07-22 16:43:38
35
56
  */
36
- const React = __importStar(require("react"));
37
- const context_1 = require("./context");
38
- const LocaleReceiver_1 = __importDefault(require("antd/es/locale-provider/LocaleReceiver"));
39
- const empty_1 = __importDefault(require("../../../empty"));
40
- const defaultRenderEmpty = (conponentName) => (React.createElement(context_1.ConfigConsumer, null, ({ getPrefixCls }) => {
41
- const prefix = getPrefixCls('empty');
42
- return (React.createElement(LocaleReceiver_1.default, { componentName: "TntdCascader" }, (locale) => {
43
- return (React.createElement("div", { className: `tntd-cascader-no-data-wrapper ${prefix}` },
44
- React.createElement(empty_1.default, { size: "mini" })));
45
- }));
46
- }));
47
- exports.default = defaultRenderEmpty;
48
- //# sourceMappingURL=defaultRenderEmpty.js.map
57
+
58
+ var defaultRenderEmpty = function defaultRenderEmpty(conponentName) {
59
+ return React.createElement(_context.ConfigConsumer, null, function (_ref) {
60
+ var getPrefixCls = _ref.getPrefixCls;
61
+ var prefix = getPrefixCls('empty');
62
+ return React.createElement(_LocaleReceiver["default"], {
63
+ componentName: "TntdCascader"
64
+ }, function (locale) {
65
+ return React.createElement("div", {
66
+ className: "tntd-cascader-no-data-wrapper ".concat(prefix)
67
+ }, React.createElement(_empty["default"], {
68
+ size: "mini"
69
+ }));
70
+ });
71
+ });
72
+ };
73
+ var _default = exports["default"] = defaultRenderEmpty;
@@ -1 +1 @@
1
- {"version":3,"file":"defaultRenderEmpty.js","sourceRoot":"","sources":["../../../../src/tntd-cascader/AntdCascader/component/defaultRenderEmpty.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA8B;AAC9B,uCAA0C;AAC1C,4FAAmE;AACnE,2DAAkC;AAElC,MAAM,kBAAkB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAAC,CACpD,oBAAC,wBAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAEpC,OAAO,CACL,oBAAC,wBAAc,IAAC,aAAa,EAAC,cAAc,IACzC,CAAC,MAAM,EAAE,EAAE;QACV,OAAO,CACL,6BAAK,SAAS,EAAE,iCAAiC,MAAM,EAAE;YACvD,oBAAC,eAAK,IAAC,IAAI,EAAC,MAAM,GAAG,CACjB,CACP,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACc,CAClB,CAAA;AAID,kBAAe,kBAAkB,CAAA","sourcesContent":["/*\n * @Descripttion: 空状态\n * @Author: 郑泳健\n * @Date: 2022-12-19 16:45:16\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-07-22 16:43:38\n */\nimport * as React from 'react'\nimport { ConfigConsumer } from './context'\nimport LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver'\nimport Empty from '../../../empty'\n\nconst defaultRenderEmpty = (conponentName: string) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefix = getPrefixCls('empty')\n\n return (\n <LocaleReceiver componentName=\"TntdCascader\">\n {(locale) => {\n return (\n <div className={`tntd-cascader-no-data-wrapper ${prefix}`}>\n <Empty size=\"mini\" />\n </div>\n )\n }}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n\nexport type RenderEmptyHandler = typeof defaultRenderEmpty\n\nexport default defaultRenderEmpty\n"]}
1
+ {"version":3,"file":"defaultRenderEmpty.js","sourceRoot":"","sources":["../../../../src/tntd-cascader/AntdCascader/component/defaultRenderEmpty.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;GAMG;AACH,6CAA8B;AAC9B,uCAA0C;AAC1C,4FAAmE;AACnE,2DAAkC;AAElC,MAAM,kBAAkB,GAAG,CAAC,aAAqB,EAAE,EAAE,CAAC,CACpD,oBAAC,wBAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IACpB,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,CAAA;IAEpC,OAAO,CACL,oBAAC,wBAAc,IAAC,aAAa,EAAC,cAAc,IACzC,CAAC,MAAM,EAAE,EAAE;QACV,OAAO,CACL,6BAAK,SAAS,EAAE,iCAAiC,MAAM,EAAE;YACvD,oBAAC,eAAK,IAAC,IAAI,EAAC,MAAM,GAAG,CACjB,CACP,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACc,CAClB,CAAA;AAID,kBAAe,kBAAkB,CAAA","sourcesContent":["/*\n * @Descripttion: 空状态\n * @Author: 郑泳健\n * @Date: 2022-12-19 16:45:16\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-07-22 16:43:38\n */\nimport * as React from 'react'\nimport { ConfigConsumer } from './context'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport Empty from '../../../empty'\n\nconst defaultRenderEmpty = (conponentName: string) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefix = getPrefixCls('empty')\n\n return (\n <LocaleReceiver componentName=\"TntdCascader\">\n {(locale) => {\n return (\n <div className={`tntd-cascader-no-data-wrapper ${prefix}`}>\n <Empty size=\"mini\" />\n </div>\n )\n }}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n\nexport type RenderEmptyHandler = typeof defaultRenderEmpty\n\nexport default defaultRenderEmpty\n"]}
@@ -1,81 +1,115 @@
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(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+ Object.defineProperty(exports, "__esModule", {
13
+ value: true
17
14
  });
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 React = __importStar(require("react"));
30
- const icon_1 = __importDefault(require("../../../icon"));
31
- function getIcons({ suffixIcon, clearIcon, menuItemSelectedIcon, removeIcon, loading, multiple, hasFeedback, prefixCls, showArrow, feedbackIcon, }) {
32
- // Clear Icon
33
- const mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : React.createElement(icon_1.default, { type: "close-circle", theme: "filled" });
34
- // Validation Feedback Icon
35
- const getSuffixIconNode = (arrowIcon) => (React.createElement(React.Fragment, null,
36
- showArrow !== false && arrowIcon,
37
- hasFeedback && feedbackIcon));
38
- // Arrow item icon
39
- let mergedSuffixIcon = null;
40
- if (suffixIcon !== undefined) {
41
- mergedSuffixIcon = getSuffixIconNode(suffixIcon);
42
- }
43
- else if (loading) {
44
- mergedSuffixIcon = getSuffixIconNode(React.createElement(icon_1.default, { type: "loading" }));
45
- }
46
- else {
47
- const iconCls = `${prefixCls}-suffix`;
48
- mergedSuffixIcon = ({ open, showSearch }) => {
49
- if (open && showSearch) {
50
- return null;
51
- }
52
- return getSuffixIconNode(React.createElement(icon_1.default, { className: iconCls, type: "down" }));
53
- };
54
- }
55
- // Checked item icon
56
- let mergedItemIcon = null;
57
- if (menuItemSelectedIcon !== undefined) {
58
- mergedItemIcon = menuItemSelectedIcon;
59
- }
60
- else if (multiple) {
61
- mergedItemIcon = React.createElement(icon_1.default, { type: "check" });
62
- }
63
- else {
64
- mergedItemIcon = null;
65
- }
66
- let mergedRemoveIcon = null;
67
- if (removeIcon !== undefined) {
68
- mergedRemoveIcon = removeIcon;
69
- }
70
- else {
71
- mergedRemoveIcon = React.createElement(icon_1.default, { type: "close" });
72
- }
73
- return {
74
- clearIcon: mergedClearIcon,
75
- suffixIcon: mergedSuffixIcon,
76
- itemIcon: mergedItemIcon,
77
- removeIcon: mergedRemoveIcon,
78
- };
15
+ exports["default"] = getIcons;
16
+ var React = _interopRequireWildcard(require("react"));
17
+ var _icon = _interopRequireDefault(require("../../../icon"));
18
+ function _interopRequireDefault(e) {
19
+ return e && e.__esModule ? e : {
20
+ "default": e
21
+ };
22
+ }
23
+ function _getRequireWildcardCache(e) {
24
+ if ("function" != typeof WeakMap) return null;
25
+ var r = new WeakMap(),
26
+ t = new WeakMap();
27
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
28
+ return e ? t : r;
29
+ })(e);
79
30
  }
80
- exports.default = getIcons;
81
- //# sourceMappingURL=getIcons.js.map
31
+ function _interopRequireWildcard(e, r) {
32
+ if (!r && e && e.__esModule) return e;
33
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
34
+ "default": e
35
+ };
36
+ var t = _getRequireWildcardCache(r);
37
+ if (t && t.has(e)) return t.get(e);
38
+ var n = {
39
+ __proto__: null
40
+ },
41
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
42
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
43
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
44
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
45
+ }
46
+ return n["default"] = e, t && t.set(e, n), n;
47
+ }
48
+ function getIcons(_ref) {
49
+ var suffixIcon = _ref.suffixIcon,
50
+ clearIcon = _ref.clearIcon,
51
+ menuItemSelectedIcon = _ref.menuItemSelectedIcon,
52
+ removeIcon = _ref.removeIcon,
53
+ loading = _ref.loading,
54
+ multiple = _ref.multiple,
55
+ hasFeedback = _ref.hasFeedback,
56
+ prefixCls = _ref.prefixCls,
57
+ showArrow = _ref.showArrow,
58
+ feedbackIcon = _ref.feedbackIcon;
59
+ // Clear Icon
60
+ var mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : React.createElement(_icon["default"], {
61
+ type: "close-circle",
62
+ theme: "filled"
63
+ });
64
+ // Validation Feedback Icon
65
+ var getSuffixIconNode = function getSuffixIconNode(arrowIcon) {
66
+ return React.createElement(React.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
67
+ };
68
+ // Arrow item icon
69
+ var mergedSuffixIcon = null;
70
+ if (suffixIcon !== undefined) {
71
+ mergedSuffixIcon = getSuffixIconNode(suffixIcon);
72
+ } else if (loading) {
73
+ mergedSuffixIcon = getSuffixIconNode(React.createElement(_icon["default"], {
74
+ type: "loading"
75
+ }));
76
+ } else {
77
+ var iconCls = "".concat(prefixCls, "-suffix");
78
+ mergedSuffixIcon = function mergedSuffixIcon(_ref2) {
79
+ var open = _ref2.open,
80
+ showSearch = _ref2.showSearch;
81
+ if (open && showSearch) {
82
+ return null;
83
+ }
84
+ return getSuffixIconNode(React.createElement(_icon["default"], {
85
+ className: iconCls,
86
+ type: "down"
87
+ }));
88
+ };
89
+ }
90
+ // Checked item icon
91
+ var mergedItemIcon = null;
92
+ if (menuItemSelectedIcon !== undefined) {
93
+ mergedItemIcon = menuItemSelectedIcon;
94
+ } else if (multiple) {
95
+ mergedItemIcon = React.createElement(_icon["default"], {
96
+ type: "check"
97
+ });
98
+ } else {
99
+ mergedItemIcon = null;
100
+ }
101
+ var mergedRemoveIcon = null;
102
+ if (removeIcon !== undefined) {
103
+ mergedRemoveIcon = removeIcon;
104
+ } else {
105
+ mergedRemoveIcon = React.createElement(_icon["default"], {
106
+ type: "close"
107
+ });
108
+ }
109
+ return {
110
+ clearIcon: mergedClearIcon,
111
+ suffixIcon: mergedSuffixIcon,
112
+ itemIcon: mergedItemIcon,
113
+ removeIcon: mergedRemoveIcon
114
+ };
115
+ }
@@ -1,54 +1,86 @@
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
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
17
5
  });
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
6
  exports.useCompactItemContext = exports.SpaceCompactItemContext = void 0;
30
- const React = __importStar(require("react"));
31
- const classnames_1 = __importDefault(require("classnames"));
32
- exports.SpaceCompactItemContext = React.createContext(null);
33
- const useCompactItemContext = (prefixCls, direction) => {
34
- const compactItemContext = React.useContext(exports.SpaceCompactItemContext);
35
- const compactItemClassnames = React.useMemo(() => {
36
- if (!compactItemContext)
37
- return '';
38
- const { compactDirection, isFirstItem, isLastItem } = compactItemContext;
39
- const separator = compactDirection === 'vertical' ? '-vertical-' : '-';
40
- return (0, classnames_1.default)({
41
- [`${prefixCls}-compact${separator}item`]: true,
42
- [`${prefixCls}-compact${separator}first-item`]: isFirstItem,
43
- [`${prefixCls}-compact${separator}last-item`]: isLastItem,
44
- [`${prefixCls}-compact${separator}item-rtl`]: direction === 'rtl',
45
- });
46
- }, [prefixCls, direction, compactItemContext]);
47
- return {
48
- compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
49
- compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,
50
- compactItemClassnames,
51
- };
52
- };
53
- exports.useCompactItemContext = useCompactItemContext;
54
- //# sourceMappingURL=useCompactItemContext.js.map
7
+ var React = _interopRequireWildcard(require("react"));
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+ function _interopRequireDefault(e) {
10
+ return e && e.__esModule ? e : {
11
+ "default": e
12
+ };
13
+ }
14
+ function _getRequireWildcardCache(e) {
15
+ if ("function" != typeof WeakMap) return null;
16
+ var r = new WeakMap(),
17
+ t = new WeakMap();
18
+ return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
19
+ return e ? t : r;
20
+ })(e);
21
+ }
22
+ function _interopRequireWildcard(e, r) {
23
+ if (!r && e && e.__esModule) return e;
24
+ if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
25
+ "default": e
26
+ };
27
+ var t = _getRequireWildcardCache(r);
28
+ if (t && t.has(e)) return t.get(e);
29
+ var n = {
30
+ __proto__: null
31
+ },
32
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor;
33
+ for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
34
+ var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
35
+ i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
36
+ }
37
+ return n["default"] = e, t && t.set(e, n), n;
38
+ }
39
+ function _typeof(o) {
40
+ "@babel/helpers - typeof";
41
+
42
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
43
+ return typeof o;
44
+ } : function (o) {
45
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
46
+ }, _typeof(o);
47
+ }
48
+ function _defineProperty(e, r, t) {
49
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
50
+ value: t,
51
+ enumerable: !0,
52
+ configurable: !0,
53
+ writable: !0
54
+ }) : e[r] = t, e;
55
+ }
56
+ function _toPropertyKey(t) {
57
+ var i = _toPrimitive(t, "string");
58
+ return "symbol" == _typeof(i) ? i : i + "";
59
+ }
60
+ function _toPrimitive(t, r) {
61
+ if ("object" != _typeof(t) || !t) return t;
62
+ var e = t[Symbol.toPrimitive];
63
+ if (void 0 !== e) {
64
+ var i = e.call(t, r || "default");
65
+ if ("object" != _typeof(i)) return i;
66
+ throw new TypeError("@@toPrimitive must return a primitive value.");
67
+ }
68
+ return ("string" === r ? String : Number)(t);
69
+ }
70
+ var SpaceCompactItemContext = exports.SpaceCompactItemContext = React.createContext(null);
71
+ var useCompactItemContext = exports.useCompactItemContext = function useCompactItemContext(prefixCls, direction) {
72
+ var compactItemContext = React.useContext(SpaceCompactItemContext);
73
+ var compactItemClassnames = React.useMemo(function () {
74
+ if (!compactItemContext) return '';
75
+ var compactDirection = compactItemContext.compactDirection,
76
+ isFirstItem = compactItemContext.isFirstItem,
77
+ isLastItem = compactItemContext.isLastItem;
78
+ var separator = compactDirection === 'vertical' ? '-vertical-' : '-';
79
+ return (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-compact").concat(separator, "item"), true), "".concat(prefixCls, "-compact").concat(separator, "first-item"), isFirstItem), "".concat(prefixCls, "-compact").concat(separator, "last-item"), isLastItem), "".concat(prefixCls, "-compact").concat(separator, "item-rtl"), direction === 'rtl'));
80
+ }, [prefixCls, direction, compactItemContext]);
81
+ return {
82
+ compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
83
+ compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,
84
+ compactItemClassnames: compactItemClassnames
85
+ };
86
+ };
@@ -1,34 +1,63 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getMergedStatus = exports.getStatusClassNames = exports.getTransitionName = exports.getTransitionDirection = void 0;
7
- const classnames_1 = __importDefault(require("classnames"));
8
- const getTransitionDirection = (placement) => {
9
- if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
10
- return `slide-down`;
11
- }
12
- return `slide-up`;
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getMergedStatus = void 0;
7
+ exports.getStatusClassNames = getStatusClassNames;
8
+ exports.getTransitionName = exports.getTransitionDirection = void 0;
9
+ var _classnames = _interopRequireDefault(require("classnames"));
10
+ function _interopRequireDefault(e) {
11
+ return e && e.__esModule ? e : {
12
+ "default": e
13
+ };
14
+ }
15
+ function _typeof(o) {
16
+ "@babel/helpers - typeof";
17
+
18
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
19
+ return typeof o;
20
+ } : function (o) {
21
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
22
+ }, _typeof(o);
23
+ }
24
+ function _defineProperty(e, r, t) {
25
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
26
+ value: t,
27
+ enumerable: !0,
28
+ configurable: !0,
29
+ writable: !0
30
+ }) : e[r] = t, e;
31
+ }
32
+ function _toPropertyKey(t) {
33
+ var i = _toPrimitive(t, "string");
34
+ return "symbol" == _typeof(i) ? i : i + "";
35
+ }
36
+ function _toPrimitive(t, r) {
37
+ if ("object" != _typeof(t) || !t) return t;
38
+ var e = t[Symbol.toPrimitive];
39
+ if (void 0 !== e) {
40
+ var i = e.call(t, r || "default");
41
+ if ("object" != _typeof(i)) return i;
42
+ throw new TypeError("@@toPrimitive must return a primitive value.");
43
+ }
44
+ return ("string" === r ? String : Number)(t);
45
+ }
46
+ var getTransitionDirection = exports.getTransitionDirection = function getTransitionDirection(placement) {
47
+ if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
48
+ return "slide-down";
49
+ }
50
+ return "slide-up";
13
51
  };
14
- exports.getTransitionDirection = getTransitionDirection;
15
- const getTransitionName = (rootPrefixCls, motion, transitionName) => {
16
- if (transitionName !== undefined) {
17
- return transitionName;
18
- }
19
- return `${rootPrefixCls}-${motion}`;
52
+ var getTransitionName = exports.getTransitionName = function getTransitionName(rootPrefixCls, motion, transitionName) {
53
+ if (transitionName !== undefined) {
54
+ return transitionName;
55
+ }
56
+ return "".concat(rootPrefixCls, "-").concat(motion);
20
57
  };
21
- exports.getTransitionName = getTransitionName;
22
58
  function getStatusClassNames(prefixCls, status, hasFeedback) {
23
- return (0, classnames_1.default)({
24
- [`${prefixCls}-status-success`]: status === 'success',
25
- [`${prefixCls}-status-warning`]: status === 'warning',
26
- [`${prefixCls}-status-error`]: status === 'error',
27
- [`${prefixCls}-status-validating`]: status === 'validating',
28
- [`${prefixCls}-has-feedback`]: hasFeedback,
29
- });
59
+ return (0, _classnames["default"])(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-status-success"), status === 'success'), "".concat(prefixCls, "-status-warning"), status === 'warning'), "".concat(prefixCls, "-status-error"), status === 'error'), "".concat(prefixCls, "-status-validating"), status === 'validating'), "".concat(prefixCls, "-has-feedback"), hasFeedback));
30
60
  }
31
- exports.getStatusClassNames = getStatusClassNames;
32
- const getMergedStatus = (contextStatus, customStatus) => customStatus || contextStatus;
33
- exports.getMergedStatus = getMergedStatus;
34
- //# sourceMappingURL=utils.js.map
61
+ var getMergedStatus = exports.getMergedStatus = function getMergedStatus(contextStatus, customStatus) {
62
+ return customStatus || contextStatus;
63
+ };